SET NAMES utf8;

SET FOREIGN_KEY_CHECKS=0;

CREATE TABLE IF NOT EXISTS `t_affair_detail`  (
`detail_id` int(11) NOT NULL AUTO_INCREMENT,
`detail_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`affair_id` int(11) NOT NULL,
`column_id` int(11) NOT NULL,
`is_manual` int(1) NULL DEFAULT 0,
`is_system` int(1) NULL DEFAULT 0,
PRIMARY KEY (`detail_id`) USING BTREE,
INDEX `affair_id`(`affair_id`) USING BTREE,
CONSTRAINT `t_affair_detail_ibfk_1` FOREIGN KEY (`affair_id`) REFERENCES `t_affair` (`affair_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_affair_detail_calculation
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_affair_detail_calculation`  (
`calculation_id` int(11) NOT NULL AUTO_INCREMENT,
`detail_sub_id` int(11) NOT NULL,
`calculation_formula` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`calculation_formula_title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`calculation_result` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`calculation_result_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`calculation_result_accuracy` tinyint(1) NULL DEFAULT 0,
`all_algebras` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`calculation_steps` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL,
PRIMARY KEY (`calculation_id`) USING BTREE,
INDEX `detail_sub_id`(`detail_sub_id`) USING BTREE,
CONSTRAINT `t_affair_detail_calculation_ibfk_2` FOREIGN KEY (`detail_sub_id`) REFERENCES `t_affair_detail_sub` (`detail_sub_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_affair_detail_sub
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_affair_detail_sub`  (
`detail_sub_id` int(11) NOT NULL AUTO_INCREMENT,
`detail_sub_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`detail_id` int(11) NOT NULL,
`detail_sub_column_names` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`result_column_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`result_column_unit` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`detail_sub_order` int(11) NULL DEFAULT 0,
`is_horizontal` tinyint(1) NULL DEFAULT 0,
`subscript_name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`detail_sub_id`) USING BTREE,
INDEX `detail_id`(`detail_id`) USING BTREE,
CONSTRAINT `t_affair_detail_sub_ibfk_1` FOREIGN KEY (`detail_id`) REFERENCES `t_affair_detail` (`detail_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_affair_detail_system_column
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_affair_detail_system_column`  (
`column_id` int(11) NOT NULL AUTO_INCREMENT,
`column_pid` int(11) NULL DEFAULT 0,
`group_id` int(11) NULL DEFAULT NULL,
`column_order` int(11) NULL DEFAULT NULL,
`column_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`column_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`column_unit` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '[]',
`column_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`column_control` tinyint(1) NULL DEFAULT 0,
`column_rule` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`column_is_virtual` tinyint(1) NULL DEFAULT 0,
`column_unit_symbiosis` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`column_detachable` tinyint(1) NULL DEFAULT 0,
`column_branch_calculation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`status` tinyint(2) NULL DEFAULT NULL,
PRIMARY KEY (`column_id`, `column_name`) USING BTREE,
UNIQUE INDEX `column_name`(`column_name`) USING BTREE,
INDEX `group_id`(`group_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_affair_detail_system_column_group
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_affair_detail_system_column_group`  (
`group_id` int(11) NOT NULL AUTO_INCREMENT,
`group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
PRIMARY KEY (`group_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci  ROW_FORMAT = Dynamic;

CREATE TABLE IF NOT EXISTS `t_inventory_detail_calculation`  (
`detail_calculation_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`warehouse_type` int(11) NOT NULL,
`common_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`detail_calculation_key` int(11) NOT NULL,
`detail_calculation_time` datetime(0) NOT NULL,
`detail_calculation_value` decimal(22, 6) NULL DEFAULT NULL,
`detail_calculation_note` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`user_id` int(11) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 99,
`ctime` datetime(0) NULL DEFAULT NULL,
`call_time` datetime(0) NOT NULL,
PRIMARY KEY (`detail_calculation_id`) USING BTREE,
INDEX `inventory`(`detail_calculation_key`, `common_id`, `detail_calculation_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_inventory_detail_record
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_inventory_detail_record`  (
`detail_record_id` int(11) NOT NULL AUTO_INCREMENT,
`inventory_id` int(11) NOT NULL,
`detail_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`detail_record_time` datetime(0) NOT NULL,
`detail_record_value` decimal(22, 6) NOT NULL,
`detail_record_type` tinyint(1) NOT NULL DEFAULT 0,
`detail_diff_value` decimal(22, 6) NULL DEFAULT NULL,
`transfer_in_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_id` int(11) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 99,
`ctime` datetime(0) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`detail_record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_inventory_detail_sub_record
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_inventory_detail_sub_record`  (
`detail_sub_record_id` int(11) NOT NULL AUTO_INCREMENT,
`detail_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`detail_sub_qrcode_id` int(11) NOT NULL,
`detail_sub_record_time` datetime(0) NOT NULL,
`detail_sub_record_value` decimal(22, 6) NOT NULL,
`detail_sub_record_type` tinyint(1) NOT NULL DEFAULT 0,
`detail_sub_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_id` int(11) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 99,
`ctime` datetime(0) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`detail_sub_record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_inventory_fast
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_inventory_fast`  (
`inventory_fast_id` int(11) NOT NULL AUTO_INCREMENT,
`affair_id` int(11) NOT NULL,
`inventory_fast_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`inventory_fast_data_ids` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`inventory_fast_content` text CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`notice_affair_id` int(11) NULL DEFAULT NULL,
`from_affair_id` int(11) NULL DEFAULT NULL,
`from_affair_data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`requirement_quantity` decimal(22, 6) NULL DEFAULT NULL,
`requirement_quantity_unit` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
`requirement_note` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`requirement_voice` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`synchronous_quantity` decimal(22, 6) NULL DEFAULT NULL,
`synchronous_quantity_unit` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
`ctime` datetime(0) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
`company_id` int(11) NULL DEFAULT NULL,
`user_id` int(11) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 99,
PRIMARY KEY (`inventory_fast_id`) USING BTREE,
INDEX `status`(`status`, `affair_id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_inventory_notice_affair
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_inventory_notice_affair`  (
`notice_affair_id` int(11) NOT NULL AUTO_INCREMENT,
`affair_id` int(11) NOT NULL,
`from_affair_id` int(11) NOT NULL,
`from_affair_data_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`notice_state` tinyint(1) NULL DEFAULT 0,
`requirement_quantity` decimal(22, 6) NULL DEFAULT NULL,
`requirement_quantity_unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`requirement_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`requirement_voice` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`allow_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`ignore_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_id` int(11) NULL DEFAULT NULL,
`ctime` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
PRIMARY KEY (`notice_affair_id`) USING BTREE,
UNIQUE INDEX `id`(`notice_affair_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_link_affair
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_affair`  (
`affair_id` int(11) NOT NULL,
`link_type` tinyint(1) NOT NULL DEFAULT 0,
`link_order` int(11) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
`join_permission` tinyint(1) NULL DEFAULT 2,
`join_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`must_scan_join` tinyint(1) NULL DEFAULT 0,
`must_join_detail` tinyint(1) NULL DEFAULT 0,
`all_column_default_inherit` tinyint(1) NULL DEFAULT 0,
`can_join_detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`can_multiple_affair` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`affair_id`, `link_type`) USING BTREE,
UNIQUE INDEX `affair_id`(`affair_id`, `link_type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_affair_tag
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_affair_tag`  (
`affair_id` int(11) NOT NULL,
`link_type` tinyint(1) NOT NULL DEFAULT 0,
`affair_order` int(11) NULL DEFAULT 0,
`inherit_affair_id` int(11) NOT NULL,
`inherit_tag_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`affair_id`, `link_type`, `inherit_affair_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_basic
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_basic`  (
`basic_id` int(13) NOT NULL AUTO_INCREMENT,
`basic_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`from_basic_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`is_multiplex` tinyint(1) NULL DEFAULT 0,
`user_id` int(11) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 99,
`ctime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`basic_id`, `basic_number`) USING BTREE,
UNIQUE INDEX `basic_number`(`basic_number`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_basic_record
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_basic_record`  (
`basic_record_id` int(20) NOT NULL AUTO_INCREMENT,
`basic_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`affair_id` int(11) NOT NULL,
`data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`detail_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`user_id` int(11) NULL DEFAULT NULL,
`ctime` decimal(15, 0) NOT NULL DEFAULT 0,
PRIMARY KEY (`basic_record_id`) USING BTREE,
UNIQUE INDEX `basicAffair`(`basic_number`, `affair_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_column
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_column`  (
`affair_id` int(11) NOT NULL,
`column_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`link_type` tinyint(1) NOT NULL DEFAULT 0,
`column_order` int(11) NULL DEFAULT 0,
`not_hand_modify` tinyint(1) NULL DEFAULT 0,
`is_force_inherit` tinyint(1) NULL DEFAULT 0,
`inherit_type` tinyint(1) NULL DEFAULT 0,
`inherit_order` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`affair_id`, `column_name`, `link_type`) USING BTREE,
UNIQUE INDEX `affair_id`(`affair_id`, `column_name`, `link_type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_column_inherit
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_column_inherit`  (
`affair_id` int(11) NOT NULL,
`column_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`link_type` tinyint(1) NOT NULL DEFAULT 0,
`is_uniformity` tinyint(1) NULL DEFAULT 0,
`detail_id` int(11) NULL DEFAULT NULL,
`inherit_affair_id` int(11) NOT NULL,
`inherit_column_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`inherit_column_order` int(11) NULL DEFAULT 0,
`inherit_detail_id` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`affair_id`, `column_name`, `link_type`, `inherit_affair_id`, `inherit_column_name`) USING BTREE,
UNIQUE INDEX `affair_id`(`affair_id`, `column_name`, `link_type`, `inherit_affair_id`, `inherit_column_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_qrcode
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_qrcode`  (
`qrcode_id` int(13) NOT NULL AUTO_INCREMENT,
`qrcode_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`qrcode_print` tinyint(1) NULL DEFAULT 0,
`qrcode_type` tinyint(1) NULL DEFAULT 0,
`qrcode_state` tinyint(1) NULL DEFAULT 0,
`activate_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`activate_user_id` int(11) NULL DEFAULT NULL,
`activate_time` datetime(0) NULL DEFAULT NULL,
`ctime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`qrcode_id`, `qrcode_number`) USING BTREE,
UNIQUE INDEX `qrcode_number`(`qrcode_number`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_qrcode_enable
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_qrcode_enable`  (
`enable_id` int(13) NOT NULL AUTO_INCREMENT,
`start_interval` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`end_interval` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`user_id` int(11) NULL DEFAULT NULL,
`ctime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`enable_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_link_set
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_link_set`  (
`id` int(11) NOT NULL AUTO_INCREMENT,
`utime` datetime(0) NULL DEFAULT NULL,
`manual_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`replace_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`multiplex_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`print_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_notice
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_notice`  (
`notice_id` int(11) NOT NULL AUTO_INCREMENT,
`notice_type` tinyint(1) NOT NULL DEFAULT 1,
`user_id` int(11) NULL DEFAULT NULL,
`notice_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`notice_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`notice_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`data_count` int(11) NULL DEFAULT 0,
`ctime` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_notice_frequently
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_notice_frequently`  (
`notice_frequently_id` int(11) NOT NULL AUTO_INCREMENT,
`notice_frequently_type` tinyint(1) NULL DEFAULT 2,
`notice_frequently_user_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`user_id` int(11) NULL DEFAULT NULL,
`utime` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
UNIQUE INDEX `frequently_id`(`notice_frequently_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_notice_user
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_notice_user`  (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notice_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`ctime` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`notice_state` tinyint(1) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `notice_id`(`user_id`, `notice_id`, `notice_state`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;


-- ----------------------------
-- Table structure for t_documentary_reply
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_documentary_reply`  (
`reply_id` int(11) NOT NULL AUTO_INCREMENT,
`documentary_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`documentary_number_pid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`documentary_type` tinyint(1) NULL DEFAULT 1,
`reply_user_id` int(11) NULL DEFAULT NULL,
`reply_time` datetime(0) NULL DEFAULT NULL,
`reply_txt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`reply_image` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`reply_voice` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`reply_notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`viewed_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`notice_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`reply_id`, `documentary_number`) USING BTREE,
INDEX `documentary_number`(`documentary_number`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_documentary_reply_frequently
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_documentary_reply_frequently`  (
`frequently_id` int(11) NOT NULL AUTO_INCREMENT,
`frequently_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`user_id` int(11) NULL DEFAULT NULL,
`ctime` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
PRIMARY KEY (`frequently_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_documentary_type
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_documentary_type`  (
`documentary_type` tinyint(1) NOT NULL DEFAULT 1,
`permission` tinyint(1) NULL DEFAULT 0,
`user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`ignore_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`documentary_type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

ALTER TABLE `t_documentary`
DROP PRIMARY KEY,
ADD PRIMARY KEY (`documentary_id`, `documentary_number`) USING BTREE;

ALTER TABLE `t_affair_sheet_column`
ADD COLUMN IF NOT EXISTS `detail_id` int(11) NULL DEFAULT NULL AFTER `column_order`;

ALTER TABLE `t_machine_calculation`
MODIFY COLUMN IF EXISTS `calculation_condition` varchar (80) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `tagIds`,
ADD COLUMN IF NOT EXISTS `total_weight` decimal (22,2) NULL DEFAULT NULL AFTER `pipe_weight`;

ALTER TABLE `t_rule_new`
ADD COLUMN IF NOT EXISTS `set_begin` tinyint(1) NULL DEFAULT 0 AFTER `image_search`,
ADD COLUMN IF NOT EXISTS `set_account`  tinyint(1) NULL DEFAULT 0 AFTER `set_begin`,
ADD COLUMN IF NOT EXISTS `qr_code_modular`  tinyint(1) NULL DEFAULT 0 AFTER `set_account`,
ADD COLUMN IF NOT EXISTS `qr_code_modular_set`  tinyint(1) NULL DEFAULT 0 AFTER `qr_code_modular`,
ADD COLUMN IF NOT EXISTS `qr_code_modular_delete`  tinyint(1) NULL DEFAULT 0 AFTER `qr_code_modular_set`,
ADD COLUMN IF NOT EXISTS `inventory_modular`  tinyint(1) NULL DEFAULT 0 AFTER `qr_code_modular_delete`,
ADD COLUMN IF NOT EXISTS `inventory_modular_set`  tinyint(1) NULL DEFAULT 0 AFTER `inventory_modular`,
ADD COLUMN IF NOT EXISTS `set_inventory`  tinyint(1) NULL DEFAULT 0 AFTER `inventory_modular_set`,
ADD COLUMN IF NOT EXISTS `documentary_modify_record_see`  tinyint(1) NULL AFTER `set_inventory`;

ALTER TABLE `t_user_reminder`
ADD COLUMN IF NOT EXISTS `inventory_notice_reminder` tinyint(1) NULL DEFAULT 0 AFTER `customer_tag_reminder`,
ADD COLUMN IF NOT EXISTS `documentary_reply_reminder`  tinyint(1) NULL DEFAULT 0 AFTER `inventory_notice_reminder`;

ALTER TABLE `t_printer`
MODIFY COLUMN IF EXISTS `printer_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `printer_from_id`;

ALTER TABLE `t_affair_frequently`
ADD COLUMN IF NOT EXISTS `affair_category` tinyint(1) NULL DEFAULT 0 AFTER `affair_id`;

ALTER TABLE `t_affair_bar`
ADD COLUMN IF NOT EXISTS `affair_selected` int(11) NULL AFTER `affair_category`;

ALTER TABLE `t_affair_modify_record`
DROP INDEX IF EXISTS `type`,
ADD INDEX `type`(`type`);

ALTER TABLE `t_documentary`
ADD COLUMN IF NOT EXISTS `documentary_type` tinyint(1) NULL DEFAULT 1 AFTER `documentary_state`,
ADD COLUMN IF NOT EXISTS `receive_user_ids`  text CHARACTER SET utf8 COLLATE utf8_bin NULL AFTER `documentary_type`;


ALTER TABLE `t_documentary_step`
ADD COLUMN IF NOT EXISTS `step_is_system` tinyint(1) NULL DEFAULT 0 AFTER `step_number`,
ADD COLUMN IF NOT EXISTS `documentary_type`  tinyint(1) NULL DEFAULT 1 AFTER `step_is_system`;

ALTER TABLE `t_documentary_statistics`
ADD COLUMN IF NOT EXISTS `documentary_type` tinyint(1) NULL DEFAULT 1 AFTER `statistics_number`;

REPLACE INTO `t_affair_detail_system_column_group`(`group_id`, `group_name`) VALUES (1, '标识');
REPLACE INTO `t_affair_detail_system_column_group`(`group_id`, `group_name`) VALUES (2, '数量');
REPLACE INTO `t_affair_detail_system_column_group`(`group_id`, `group_name`) VALUES (3, '计算');
REPLACE INTO `t_affair_detail_system_column_group`(`group_id`, `group_name`) VALUES (4, '字段');
REPLACE INTO `t_affair_detail_system_column_group`(`group_id`, `group_name`) VALUES (5, '对象');

REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (1, '产品规格');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (2, '对象');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (3, '供求');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (4, '加工');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (5, '生产');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (6, '仓库');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (7, '财务');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (8, '时间');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (9, '公用');
REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (10, '成本');

REPLACE INTO `t_affair_system_column_group`(`group_id`, `group_name`) VALUES (11, '客户运营');

-- ----------------------------
-- Table structure for t_early_warning
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_early_warning`  (
`warning_id` int(11) NOT NULL AUTO_INCREMENT,
`warning_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`warning_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`warning_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`warning_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
`warning_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`warning_other` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`permission` tinyint(1) NULL DEFAULT 0,
`user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`view_permission` tinyint(1) NULL DEFAULT 2,
`view_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`ctime` datetime(0) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`warning_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_early_warning_credit
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_early_warning_credit`  (
`credit_id` int(11) NOT NULL AUTO_INCREMENT,
`objectKey` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`credit_value` double(18, 2) NULL DEFAULT NULL,
`period_value` int(18) NULL DEFAULT NULL,
`status` int(2) NULL DEFAULT 99,
`user_id` int(11) NULL DEFAULT NULL,
`ctime` datetime(0) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`credit_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
CONSTRAINT `t_early_warning_credit_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

ALTER TABLE `t_bill_order`
ADD COLUMN IF NOT EXISTS `total_affair_data_id`  varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `create_bill_order_number`;

ALTER TABLE `t_screen`
ADD COLUMN IF NOT EXISTS `screen_data`  longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `screen_type`;
ALTER TABLE `t_customized`
ADD COLUMN IF NOT EXISTS `customized_template`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' AFTER `view_user_ids`,
ADD COLUMN IF NOT EXISTS `status`  int(2) NULL DEFAULT 99 AFTER `customized_template`;

CREATE TABLE IF NOT EXISTS `t_early_warning_personal`  (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`entry_key` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`entry_value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`ctime` datetime(0) NULL DEFAULT NULL,
`utime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `user_id`(`user_id`, `entry_key`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

ALTER TABLE `t_tag_frequently`
ADD COLUMN IF NOT EXISTS `see`  tinyint(1) NULL DEFAULT 0 AFTER `tag_id`;

-- ----------------------------
-- Table structure for t_edge_distribution
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_edge_distribution`  (
    `edge_distribution_id` int(11) NOT NULL AUTO_INCREMENT,
    `notice_affair_id` int(11) NOT NULL,
    `from_affair_detail_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `piece_number` int(11) NOT NULL,
    `strip_quantity` int(22) NULL DEFAULT NULL,
    `single_quantity` decimal(22, 2) NULL DEFAULT NULL,
    `total_quantity` decimal(22, 2) NULL DEFAULT NULL,
    `responsible_user_id` int(11) NULL DEFAULT NULL,
    `ctime` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
    PRIMARY KEY (`edge_distribution_id`) USING BTREE,
    INDEX `notice_affair_id`(`notice_affair_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_edge_in_calculation
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_edge_in_calculation`  (
    `calculation_id` int(11) NOT NULL AUTO_INCREMENT,
    `data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `affair_id` int(11) NOT NULL,
    `tagIds` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `tag_numbers` tinyint(1) NULL DEFAULT 0,
    `calculation_key` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `calculation_time` datetime NOT NULL,
    `calculation_ctime` datetime NOT NULL,
    `calculation_condition` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `calculation_value` decimal(22, 2) NOT NULL,
    `calculation_value_unit` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `product_id` int(11) NOT NULL,
    `collection_id` int(11) NOT NULL,
    `product_color` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `product_width` decimal(14, 2) NOT NULL,
    `product_height` decimal(14, 2) NOT NULL,
    `total_weight` decimal(14, 2) NULL DEFAULT NULL,
    `estimate_weight_m_rate` decimal(14, 2) NULL DEFAULT NULL,
    `strip_quantity` decimal(14, 0) NULL DEFAULT NULL,
    `user_id` int(11) NOT NULL,
    `call_time` datetime NOT NULL,
    PRIMARY KEY (`calculation_id`, `data_id`) USING BTREE,
    UNIQUE INDEX `data_id`(`data_id`) USING BTREE,
    INDEX `call_time`(`call_time`) USING BTREE,
    INDEX `affair_id`(`affair_id`, `calculation_time`, `calculation_condition`, `tagIds`, `calculation_key`, `product_id`, `product_color`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for t_edge_notice_affair
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_edge_notice_affair`  (
     `notice_affair_id` int(11) NOT NULL AUTO_INCREMENT,
     `affair_id` int(11) NOT NULL,
     `affair_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
     `from_affair_id` int(11) NOT NULL,
     `from_affair_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
     `colleague_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
     `notice_state` tinyint(1) NULL DEFAULT 0,
     `edge_distribution_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
     `edge_cutting_unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
     `edge_cutting_price` decimal(22, 5) NULL DEFAULT NULL,
     `distribution_user_id` int(11) NULL DEFAULT NULL,
     `responsible_user_id` int(11) NULL DEFAULT NULL,
     `ignore_user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
     `ctime` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
     PRIMARY KEY (`notice_affair_id`) USING BTREE,
     UNIQUE INDEX `id`(`notice_affair_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Table structure for t_edge_out_calculation
-- ----------------------------
CREATE TABLE IF NOT EXISTS `t_edge_out_calculation`  (
   `calculation_id` int(11) NOT NULL AUTO_INCREMENT,
   `data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
   `affair_id` int(11) NOT NULL,
   `tagIds` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
   `tag_numbers` tinyint(1) NULL DEFAULT 0,
   `from_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
   `colleague_data_id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
   `calculation_condition` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
   `calculation_time` datetime NOT NULL,
   `calculation_stime` datetime NOT NULL,
   `calculation_ctime` datetime NOT NULL,
   `edge_quantity` decimal(15, 6) NOT NULL,
   `edge_price` decimal(15, 6) NOT NULL,
   `edge_total_amount` decimal(15, 6) NOT NULL,
   `shipment_quantity` decimal(22, 6) NOT NULL,
   `is_complete` int(1) NOT NULL DEFAULT 0,
   `clearing_storehouse` int(1) NOT NULL DEFAULT 0,
   `responsible_user_id` int(11) NOT NULL,
   `user_id` int(11) NOT NULL,
   `call_time` datetime NOT NULL,
   PRIMARY KEY (`calculation_id`, `data_id`, `from_data_id`) USING BTREE,
   UNIQUE INDEX `data_id`(`data_id`) USING BTREE,
   INDEX `call_time`(`call_time`) USING BTREE,
   INDEX `affair_id`(`affair_id`, `calculation_time`, `calculation_condition`, `tagIds`, `from_data_id`) USING BTREE,
   INDEX `responsible_user_id`(`responsible_user_id`, `calculation_time`, `calculation_stime`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

ALTER TABLE `t_affair_calculation`
    ADD COLUMN IF NOT EXISTS `calculation_rounding` longtext NULL AFTER `calculation_steps`;
ALTER TABLE `t_bill_order`
    ADD COLUMN IF NOT EXISTS `waste_user_id` int(11) NULL DEFAULT NULL AFTER `total_affair_data_id`;

ALTER TABLE `t_bill_order`
    ADD COLUMN IF NOT EXISTS `wtime` datetime NULL DEFAULT NULL AFTER `waste_user_id`;

ALTER TABLE `t_documentary_type`
    ADD COLUMN IF NOT EXISTS `documentary_name` varchar(4) NULL DEFAULT NULL AFTER `documentary_type`;

ALTER TABLE `t_documentary_type`
    ADD COLUMN IF NOT EXISTS `documentary_title` varchar(8) NULL DEFAULT NULL AFTER `documentary_name`;

ALTER TABLE `t_documentary_type`
    ADD COLUMN IF NOT EXISTS `plan_affair_id` int(11) NULL DEFAULT NULL AFTER `documentary_title`;

ALTER TABLE `t_documentary_type`
    ADD COLUMN IF NOT EXISTS `affair_id` int(11) NULL DEFAULT NULL AFTER `plan_affair_id`;

ALTER TABLE `t_documentary_type`
    ADD COLUMN IF NOT EXISTS `is_system` tinyint(1) NULL DEFAULT 0 AFTER `ignore_user_ids`;
ALTER TABLE `t_machine_calculation`
    ADD COLUMN IF NOT EXISTS `calculation_ctime` datetime NOT NULL AFTER `calculation_time2`;
ALTER TABLE `t_statement_calculation`
    ADD COLUMN IF NOT EXISTS `difference_amount` decimal(22, 8) NULL DEFAULT NULL AFTER `calculation_receivables_payment_category`;

REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (1, 0, 1, 1, '序号', 'detail_serial_number', '[]', '', 45, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (2, 0, 1, 2, '编号', 'detail_identifier_number', '[]', '', 45, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (3, 0, 1, 3, '箱号', 'detail_case_number', '[]', '', 45, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (4, 0, 1, 4, '包号', 'detail_package_number', '[]', '', 45, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (5, 0, 1, 5, '匹号', 'detail_piece_number', '[]', '', 45, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (6, 0, 1, 6, '匹号', 'detail_piece_number_no', '[]', '', 52, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (101, 0, 2, 1, '箱数', 'xiang_quantity', '[{\"key\":\"xiang\",\"value\":\"箱\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (102, 0, 2, 2, '包数', 'package_quantity', '[{\"key\":\"package\",\"value\":\"包\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (103, 0, 2, 3, '件数', 'piece_quantity', '[{\"key\":\"piece\",\"value\":\"件\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (104, 0, 2, 4, '米数', 'metre_quantity', '[{\"key\":\"m\",\"value\":\"米\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (105, 0, 2, 5, '条数', 'strip_quantity', '[{\"key\":\"one\",\"value\":\"条\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (106, 0, 2, 6, '码数', 'yard_quantity', '[{\"key\":\"yard\",\"value\":\"码\"}]', '{\"key\":\"double\",\"value\":\"1\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,1})?$/\",\"tips\":\"只能为数字和1位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (107, 0, 2, 7, '粒数', 'pcs_quantity', '[{\"key\":\"pcs\",\"value\":\"粒\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (108, 0, 2, 8, '片数', 'slice_quantity', '[{\"key\":\"slice\",\"value\":\"片\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (109, 0, 2, 9, '套数', 'set_quantity', '[{\"key\":\"set\",\"value\":\"套\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (110, 0, 2, 10, '匹数', 'pi_quantity', '[{\"key\":\"pi\",\"value\":\"匹\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (111, 0, 2, 11, '卷数', 'rolls_quantity', '[{\"key\":\"rolls\",\"value\":\"卷\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (112, 0, 2, 12, '公斤数', 'key_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"1\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,1})?$/\",\"tips\":\"只能为数字和1位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (113, 0, 2, 13, '斤数', 'jin_quantity', '[{\"key\":\"jin\",\"value\":\"斤\"}]', '{\"key\":\"double\",\"value\":\"1\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,1})?$/\",\"tips\":\"只能为数字和1位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (114, 0, 2, 14, '价格', 'detail_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (115, 0, 2, 15, '单匹重量', 'single_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (116, 0, 2, 16, '管重量', 'pipe_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (117, 0, 2, 17, '胚布净重', 'cloth_net_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (118, 0, 2, 18, '明细入库数量', 'detail_in_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (119, 0, 2, 19, '明细出库数量', 'detail_out_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (120, 0, 2, 20, '箱号', 'case_number_quantity', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (121, 0, 2, 21, '包号', 'package_number_quantity', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (122, 0, 2, 22, '编号', 'identifier_number_quantity', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (123, 0, 2, 23, '匹号', 'piece_number_quantity', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (124, 0, 2, 24, '明细割边数量', 'detail_edge_cutting_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (125, 0, 2, 25, '明细割边价格', 'detail_edge_cutting_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (126, 0, 2, 26, '明细打卷数量', 'detail_hit_rolls_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (127, 0, 2, 27, '明细打卷价格', 'detail_hit_rolls_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (201, 0, 3, 1, '总码数', 'total_yard_quantity', '[{\"key\":\"yard\",\"value\":\"码\"}]', '{\"key\":\"double\",\"value\":\"1\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,1})?$/\",\"tips\":\"只能为数字和1位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (202, 0, 3, 2, '总重量', 'total_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"jin\",\"value\":\"斤\"}]', '{\"key\":\"double\",\"value\":\"1\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,1})?$/\",\"tips\":\"只能为数字和1位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (203, 0, 3, 3, '总米数', 'total_metre_quantity', '[{\"key\":\"m\",\"value\":\"米\"}]', '{\"key\":\"double\",\"value\":\"1\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,1})?$/\",\"tips\":\"只能为数字和1位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (204, 0, 3, 4, '总条数', 'total_strip_quantity', '[{\"key\":\"one\",\"value\":\"条\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (205, 0, 3, 5, '总粒数', 'total_pcs_quantity', '[{\"key\":\"pcs\",\"value\":\"粒\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (206, 0, 3, 6, '总片数', 'total_slice_quantity', '[{\"key\":\"slice\",\"value\":\"片\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (207, 0, 3, 7, '总金额', 'total_detail_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (208, 0, 3, 8, '明细割边总额', 'detail_edge_cutting_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (209, 0, 3, 9, '明细打卷总额', 'detail_hit_rolls_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (301, 0, 4, 1, '产品型号', 'product_pname', '[{\"key\":\"product_id\"}]', '{\"key\":\"product_id\",\"value\":\"product_pname\"}', 40, '{\"regex\":\"\",\"tips\":\"选择产品型号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (302, 0, 4, 2, '机台选择', 'machine_number', '[{\"key\":\"machine_id\"}]', '{\"key\":\"machine\",\"value\":\"machine_number\"}', 50, '{\"regex\":\"\",\"tips\":\"填写机台编号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (303, 0, 4, 3, '花高', 'product_height', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (304, 0, 4, 4, '花宽', 'product_width', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (305, 0, 4, 5, '出码率', 'product_weight', '[{\"key\":\"yard/kg\",\"value\":\"码/公斤\"},{\"key\":\"one/kg\",\"value\":\"条/公斤\"},{\"key\":\"m/kg\",\"value\":\"米/公斤\"},{\"key\":\"slice/kg\",\"value\":\"片/公斤\"},{\"key\":\"pcs/kg\",\"value\":\"粒/公斤\"},{\"key\":\"jin/kg\",\"value\":\"斤/公斤\"},{\"key\":\"set/kg\",\"value\":\"套/公斤\"},{\"key\":\"ge/kg\",\"value\":\"个/公斤\"},{\"key\":\"zhe/kg\",\"value\":\"支/公斤\"},{\"key\":\"duan/kg\",\"value\":\"段/公斤\"},{\"key\":\"gang/kg\",\"value\":\"缸/公斤\"},{\"key\":\"xiang/kg\",\"value\":\"箱/公斤\"},{\"key\":\"piece/kg\",\"value\":\"件/公斤\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (306, 0, 4, 6, '产品类型', 'product_type', '[{\"key\":\"1\",\"value\":\"面料\"},{\"key\":\"2\",\"value\":\"小边\"},{\"key\":\"3\",\"value\":\"大边\"},{\"key\":\"4\",\"value\":\"睫毛\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, '{\"regex\":\"\",\"tips\":\"选择产品类型单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (307, 0, 4, 7, '原料规格', 'product_specification', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, '{\"regex\":\"\",\"tips\":\"规格\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (308, 0, 4, 8, '成品密度', 'finished_density', '[{\"key\":\"eye\",\"value\":\"眼\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (309, 0, 4, 9, '颜色', 'product_color', '[{\"key\":\"all\",\"value\":\"胚布,本白,黑,红,黄\",\"acq\":\"胚布\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, '{\"regex\":\"\",\"tips\":\"产品颜色\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (310, 0, 4, 10, '色号', 'product_color_number', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, '{\"regex\":\"\",\"tips\":\"色号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (311, 0, 4, 11, '时间', 'public_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (312, 0, 4, 12, '备注', 'public_note', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, '{\"regex\":\"\",\"tips\":\" 最多50个字符\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (313, 0, 4, 13, '明细入库时间', 'detail_in_warehouse_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, '', 0, '', 0, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (314, 0, 4, 14, '明细出库时间', 'detail_out_warehouse_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, '', 0, '', 0, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (315, 0, 4, 15, '明细完成时间', 'detail_complete_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, '', 0, '', 0, '', NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (601, 0, 5, 1, '销售对象', 'sale_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (602, 0, 5, 2, '采购对象', 'purchase_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (603, 0, 5, 3, '加工对象', 'machining_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (604, 0, 5, 4, '送货对象', 'delivery_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (605, 0, 5, 5, '原料厂', 'material_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (606, 0, 5, 6, '染厂', 'dyeing_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (607, 0, 5, 7, '割边店', 'coped_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (608, 0, 5, 8, '刺绣店', 'embroidery_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (609, 0, 5, 9, '加工店', 'machiningShop_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (610, 0, 5, 10, '剪线厂', 'shearingFactory_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (611, 0, 5, 11, '物流公司', 'logistics_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (612, 0, 5, 12, '付款对象', 'payment_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (613, 0, 5, 13, '收款对象', 'receivables_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (614, 0, 5, 14, '收票公司', 'tickets_object', '', '', 49, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_detail_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (615, 0, 5, 15, '公司客户', 'public_object', '', '', 49, '', 0, '', 0, NULL, NULL);

ALTER TABLE `t_documentary_type`
    MODIFY COLUMN `documentary_type`  int(11) NOT NULL AUTO_INCREMENT FIRST ,
    AUTO_INCREMENT=100,
    ADD COLUMN IF NOT EXISTS `documentary_name`  varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `documentary_type`,
    ADD COLUMN IF NOT EXISTS `documentary_title`  varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `documentary_name`,
    ADD COLUMN IF NOT EXISTS `plan_affair_id`  int(11) NULL AFTER `documentary_title`,
    ADD COLUMN IF NOT EXISTS `affair_id`  int(11) NULL AFTER `plan_affair_id`,
    ADD COLUMN IF NOT EXISTS `column_data`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `affair_id`,
    ADD COLUMN IF NOT EXISTS `is_system`  tinyint(1) NULL DEFAULT 0 AFTER `ignore_user_ids`;

ALTER TABLE `t_documentary`
    MODIFY COLUMN IF EXISTS `documentary_type`  int(11) NULL DEFAULT 1 AFTER `documentary_state`;

ALTER TABLE `t_documentary_reply`
    MODIFY COLUMN IF EXISTS `documentary_type`  int(11) NULL DEFAULT 1 AFTER `documentary_number_pid`;

ALTER TABLE `t_documentary_statistics`
    MODIFY COLUMN IF EXISTS `documentary_type`  int(11) NULL DEFAULT 1 AFTER `statistics_number`;

ALTER TABLE `t_documentary_step`
    MODIFY COLUMN IF EXISTS `documentary_type`  int(11) NULL DEFAULT 1 AFTER `step_is_system`;

ALTER TABLE `t_link_affair`
    MODIFY COLUMN IF EXISTS `link_type`  int(11) NOT NULL DEFAULT 0 AFTER `affair_id`;

ALTER TABLE `t_link_affair_tag`
    MODIFY COLUMN IF EXISTS `link_type` int(11) NOT NULL DEFAULT 0 AFTER `affair_id`;

ALTER TABLE `t_link_column`
    MODIFY COLUMN IF EXISTS `link_type` int(11) NOT NULL DEFAULT 0 AFTER `column_name`;

ALTER TABLE `t_link_column_inherit`
    MODIFY COLUMN IF EXISTS `link_type` int(11) NOT NULL DEFAULT 0 AFTER `column_name`;

ALTER TABLE `t_notice_frequently`
    ADD COLUMN IF NOT EXISTS `notice_frequently_type_id`  int(11) NULL DEFAULT 0 AFTER `notice_frequently_type`;

ALTER TABLE `t_affair_frequently`
    ADD COLUMN IF NOT EXISTS `affair_category_id`  int(11) NULL DEFAULT 0 AFTER `affair_category`;

ALTER TABLE `t_affair_bar`
    ADD COLUMN IF NOT EXISTS `affair_category_id`  int(11) NULL DEFAULT 0 AFTER `affair_category`;

CREATE TABLE IF NOT EXISTS `t_report_set`  (
`report_set_id` int(11) NOT NULL AUTO_INCREMENT,
`report_forms_id` int(11) NULL DEFAULT 99,
`report_set_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`report_set_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`ctime` datetime NULL DEFAULT NULL,
`utime` datetime NULL DEFAULT NULL,
PRIMARY KEY (`report_set_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

CREATE TABLE IF NOT EXISTS `t_entry`  (
`entry_id` int(11) NOT NULL AUTO_INCREMENT,
`entry_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`entry_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`permission` tinyint(1) NULL DEFAULT 1,
`user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`status` int(11) NULL DEFAULT 99,
`user_id` int(11) NULL DEFAULT NULL,
`ctime` datetime NULL DEFAULT NULL,
`utime` datetime NULL DEFAULT NULL,
PRIMARY KEY (`entry_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

ALTER TABLE `t_rule_new`
ADD COLUMN IF NOT EXISTS `unified_set_modular`  tinyint(1) NULL DEFAULT 0 AFTER `documentary_modify_record_see`,
ADD COLUMN IF NOT EXISTS `set_stop_reason`  tinyint(1) NULL DEFAULT 0 AFTER `unified_set_modular`,
ADD COLUMN IF NOT EXISTS `set_pan_head_type`  tinyint(1) NULL DEFAULT 0 AFTER `set_stop_reason`,
ADD COLUMN IF NOT EXISTS `set_cost_name`  tinyint(1) NULL DEFAULT 0 AFTER `set_pan_head_type`,
ADD COLUMN IF NOT EXISTS `set_receivables_category`  tinyint(1) NULL DEFAULT 0 AFTER `set_cost_name`,
ADD COLUMN IF NOT EXISTS `set_payment_category`  tinyint(1) NULL DEFAULT 0 AFTER `set_receivables_category`,
ADD COLUMN IF NOT EXISTS `set_financial_details`  tinyint(1) NULL DEFAULT 0 AFTER `set_payment_category`,
ADD COLUMN IF NOT EXISTS `set_machining_type`  tinyint(1) NULL DEFAULT 0 AFTER `set_financial_details`,
ADD COLUMN IF NOT EXISTS `set_product_specification`  tinyint(1) NULL DEFAULT 0 AFTER `set_machining_type`;


ALTER TABLE `t_edge_out_calculation`
    ADD COLUMN IF NOT EXISTS `loss`  decimal(22,6) NOT NULL AFTER `clearing_storehouse`;

ALTER TABLE `t_edge_out_calculation`
    ADD COLUMN IF NOT EXISTS `deduction_amount`  decimal(22,6) NOT NULL COMMENT '损耗' AFTER `loss`;

ALTER TABLE `t_edge_distribution`
    ADD COLUMN IF NOT EXISTS `loss_quantity`  decimal(22,2) NULL AFTER `responsible_user_id`,
    ADD COLUMN IF NOT EXISTS `loss_amount`  decimal(22,3) NULL AFTER `loss_quantity`,
    ADD COLUMN IF NOT EXISTS `loss_user_id`  int(11) NULL AFTER `loss_amount`;

UPDATE `t_affair_system_column` SET `column_title`='赔款金额' WHERE (`column_id`='395');
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES ('396', '0', '8', '36', '赔款时间', 'deduction_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', '6', '', '0', '', '0', NULL, NULL);

ALTER TABLE `t_edge_distribution`
    ADD COLUMN IF NOT EXISTS `loss_price`  decimal(22,5) NULL AFTER `responsible_user_id`,
    ADD COLUMN IF NOT EXISTS `loss_time`  varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' AFTER `loss_amount`;

ALTER TABLE `t_edge_out_calculation`
    ADD COLUMN IF NOT EXISTS `deduction_time`  datetime NULL AFTER `deduction_amount`;

ALTER TABLE `t_entry`
    ADD COLUMN IF NOT EXISTS `affair_id`  int(11) NULL DEFAULT NULL AFTER `user_ids`;

ALTER TABLE `t_entry` ADD FOREIGN KEY (`affair_id`) REFERENCES `t_affair` (`affair_id`) ON DELETE CASCADE ON UPDATE CASCADE;

CREATE TABLE IF NOT EXISTS `t_unified_set`  (
`unified_set_id` int(11) NOT NULL AUTO_INCREMENT,
`unified_set_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`unified_set_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`unified_set_type` tinyint(1) NULL DEFAULT 1,
`user_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`unified_set_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

ALTER TABLE `t_entry`
    MODIFY COLUMN IF EXISTS `entry_value`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `entry_name`;

ALTER TABLE `t_rule_new`
DROP COLUMN IF EXISTS `machine_modular_pause`,
DROP COLUMN IF EXISTS `set_begin`,
DROP COLUMN IF EXISTS `set_account`,
DROP COLUMN IF EXISTS `set_inventory`,
DROP COLUMN IF EXISTS `set_stop_reason`,
DROP COLUMN IF EXISTS `set_pan_head_type`,
DROP COLUMN IF EXISTS `set_cost_name`,
DROP COLUMN IF EXISTS `set_receivables_category`,
DROP COLUMN IF EXISTS `set_payment_category`,
DROP COLUMN IF EXISTS `set_financial_details`,
DROP COLUMN IF EXISTS `set_machining_type`,
DROP COLUMN IF EXISTS `set_product_specification`;

ALTER TABLE `t_affair_system_column`
    ADD COLUMN IF NOT EXISTS `column_pid_control`  tinyint(4) NULL AFTER `column_control`;

ALTER TABLE `t_affair_sheet_column`
    ADD COLUMN IF NOT EXISTS `column_data`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `column_order`;

REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (1, 0, 1, 1, '产品型号', 'product_pname', '[{\"key\":\"product_id\"}]', '{\"key\":\"product_id\",\"value\":\"product_pname\"}', 7, 0, '{\"regex\":\"\",\"tips\":\"选择产品型号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (2, 0, 1, 3, '花高', 'product_height', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (3, 0, 1, 6, '花宽', 'product_width', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (4, 0, 1, 9, '出码率', 'product_weight', '[{\"key\":\"yard/kg\",\"value\":\"码/公斤\"},{\"key\":\"one/kg\",\"value\":\"条/公斤\"},{\"key\":\"m/kg\",\"value\":\"米/公斤\"},{\"key\":\"slice/kg\",\"value\":\"片/公斤\"},{\"key\":\"pcs/kg\",\"value\":\"粒/公斤\"},{\"key\":\"jin/kg\",\"value\":\"斤/公斤\"},{\"key\":\"set/kg\",\"value\":\"套/公斤\"},{\"key\":\"ge/kg\",\"value\":\"个/公斤\"},{\"key\":\"zhe/kg\",\"value\":\"支/公斤\"},{\"key\":\"duan/kg\",\"value\":\"段/公斤\"},{\"key\":\"gang/kg\",\"value\":\"缸/公斤\"},{\"key\":\"xiang/kg\",\"value\":\"箱/公斤\"},{\"key\":\"piece/kg\",\"value\":\"件/公斤\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (5, 0, 1, 5, '净拉花高', 'product_freeheight', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (6, 0, 1, 10, '弹力类型', 'product_elasticity', '[{\"key\":\"1\",\"value\":\"有弹\"},{\"key\":\"2\",\"value\":\"无弹\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择弹力类型单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (7, 0, 1, 2, '产品类型', 'product_type', '[{\"key\":\"1\",\"value\":\"面料\"},{\"key\":\"2\",\"value\":\"小边\"},{\"key\":\"3\",\"value\":\"大边\"},{\"key\":\"4\",\"value\":\"睫毛\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择产品类型单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (8, 0, 1, 11, '颜色', 'product_color', '[{\"key\":\"all\",\"value\":\"胚布,本白,黑,红,黄\",\"acq\":\"胚布\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"产品颜色\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (9, 0, 1, 13, '色牢度', 'product_color_fastness', '[{\"key\":\"0\",\"value\":\"无\"},{\"key\":\"1\",\"value\":\"2级\"},{\"key\":\"2\",\"value\":\"2.5级\"},{\"key\":\"3\",\"value\":\"3级\"},{\"key\":\"4\",\"value\":\"3.5级\"},{\"key\":\"5\",\"value\":\"4级\"},{\"key\":\"6\",\"value\":\"4.5级\"},{\"key\":\"7\",\"value\":\"5级\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择色牢度单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (10, 0, 1, 14, '材质', 'product_material', '[{\"key\":\"all\",\"value\":\"锦氨,涤氨,全棉,全涤,人造丝,棉\",\"acq\":\"锦氨\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"产品材质\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (11, 0, 1, 15, '开机密度', 'boot_density', '[{\"key\":\"eye\",\"value\":\"眼\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (12, 0, 3, 1, '销售价格', 'sale_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (13, 0, 3, 2, '销售总额', 'sale_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (14, 0, 3, 3, '销售数量', 'sale_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (15, 0, 2, 1, '销售对象', 'sale_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (16, 15, 2, 9999, '客户姓名', 'sale_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (17, 15, 2, 9999, '手机号码', 'sale_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^1\\d{10}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (18, 15, 2, 9999, '客户QQ', 'sale_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (19, 15, 2, 9999, '客户邮箱', 'sale_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (20, 15, 2, 9999, '公司名称', 'sale_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (21, 15, 2, 9999, '公司地址', 'sale_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (22, 15, 2, 9999, '公司固话', 'sale_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (23, 15, 2, 9999, '公司邮箱', 'sale_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (24, 15, 2, 9999, '公司传真', 'sale_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (25, 15, 2, 9999, '公司QQ', 'sale_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (26, 0, 3, 8, '采购价格', 'purchase_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (27, 0, 3, 9, '采购总额', 'purchase_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (28, 0, 3, 10, '采购数量', 'purchase_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (29, 0, 2, 2, '采购对象', 'purchase_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (30, 29, 2, 9999, '客户姓名', 'purchase_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (31, 29, 2, 9999, '手机号码', 'purchase_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (32, 29, 2, 9999, '客户QQ', 'purchase_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (33, 29, 2, 9999, '客户邮箱', 'purchase_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (34, 29, 2, 9999, '公司名称', 'purchase_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (35, 29, 2, 9999, '公司地址', 'purchase_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (36, 29, 2, 9999, '公司固话', 'purchase_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (37, 29, 2, 9999, '公司邮箱', 'purchase_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (38, 29, 2, 9999, '公司传真', 'purchase_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (39, 29, 2, 9999, '公司QQ', 'purchase_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (40, 0, 4, 2, '加工价格', 'machining_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (41, 0, 4, 3, '加工总额', 'machining_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (42, 0, 4, 4, '加工数量', 'machining_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (43, 0, 2, 3, '加工对象', 'machining_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (44, 43, 2, 9999, '客户姓名', 'machining_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (45, 43, 2, 9999, '手机号码', 'machining_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/ \",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (46, 43, 2, 9999, '客户QQ', 'machining_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (47, 43, 2, 9999, '客户邮箱', 'machining_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (48, 43, 2, 9999, '公司名称', 'machining_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (49, 43, 2, 9999, '公司地址', 'machining_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (50, 43, 2, 9999, '公司固话', 'machining_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (51, 43, 2, 9999, '公司邮箱', 'machining_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (52, 43, 2, 9999, '公司传真', 'machining_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (53, 43, 2, 9999, '公司QQ', 'machining_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (54, 0, 4, 1, '加工类别', 'machining_type', '[{\"key\":\"machining_type_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"2\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"加工类别\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (55, 0, 2, 7, '割边店', 'coped_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (56, 55, 2, 9999, '客户姓名', 'coped_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (57, 55, 2, 9999, '手机号码', 'coped_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (58, 55, 2, 9999, '客户QQ', 'coped_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (59, 55, 2, 9999, '客户邮箱', 'coped_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (60, 55, 2, 9999, '公司名称', 'coped_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (61, 55, 2, 9999, '公司地址', 'coped_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (62, 55, 2, 9999, '公司固话', 'coped_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (63, 55, 2, 9999, '公司邮箱', 'coped_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (64, 55, 2, 9999, '公司传真', 'coped_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (65, 55, 2, 9999, '公司QQ', 'coped_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (66, 0, 2, 6, '染厂', 'dyeing_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (67, 66, 2, 9999, '客户姓名', 'dyeing_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (68, 66, 2, 9999, '手机号码', 'dyeing_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (69, 66, 2, 9999, '客户QQ', 'dyeing_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (70, 66, 2, 9999, '客户邮箱', 'dyeing_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (71, 66, 2, 9999, '公司名称', 'dyeing_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (72, 66, 2, 9999, '公司地址', 'dyeing_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (73, 66, 2, 9999, '公司固话', 'dyeing_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (74, 66, 2, 9999, '公司邮箱', 'dyeing_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (75, 66, 2, 9999, '公司传真', 'dyeing_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (76, 66, 2, 9999, '公司QQ', 'dyeing_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (77, 0, 2, 8, '刺绣店', 'embroidery_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (78, 77, 2, 9999, '客户姓名', 'embroidery_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (79, 77, 2, 9999, '手机号码', 'embroidery_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (80, 77, 2, 9999, '客户QQ', 'embroidery_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (81, 77, 2, 9999, '客户邮箱', 'embroidery_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (82, 77, 2, 9999, '公司名称', 'embroidery_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (83, 77, 2, 9999, '公司地址', 'embroidery_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (84, 77, 2, 9999, '公司固话', 'embroidery_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (85, 77, 2, 9999, '公司邮箱', 'embroidery_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (86, 77, 2, 9999, '公司传真', 'embroidery_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (87, 77, 2, 9999, '公司QQ', 'embroidery_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (88, 0, 3, 11, '物流价格', 'logistics_price', '[{\"key\":\"yuan/piece\",\"value\":\"元/件\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"}]', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'logistics', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (89, 0, 3, 12, '物流数量', 'logistics_quantity', '[{\"key\":\"piece\",\"value\":\"件\"},{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'logistics', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (90, 0, 2, 11, '物流公司', 'logistics_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (91, 90, 2, 9999, '客户姓名', 'logistics_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (92, 90, 2, 9999, '手机号码', 'logistics_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (93, 90, 2, 9999, '客户QQ', 'logistics_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (94, 90, 2, 9999, '客户邮箱', 'logistics_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (95, 90, 2, 9999, '公司名称', 'logistics_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (96, 90, 2, 9999, '公司地址', 'logistics_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (97, 90, 2, 9999, '公司固话', 'logistics_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (98, 90, 2, 9999, '公司邮箱', 'logistics_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (99, 90, 2, 9999, '公司传真', 'logistics_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (100, 90, 2, 9999, '公司QQ', 'logistics_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (101, 0, 2, 4, '送货对象', 'delivery_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (102, 101, 2, 9999, '客户姓名', 'delivery_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (103, 101, 2, 9999, '手机号码', 'delivery_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (104, 101, 2, 9999, '客户QQ', 'delivery_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (105, 101, 2, 9999, '客户邮箱', 'delivery_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (106, 101, 2, 9999, '公司名称', 'delivery_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (107, 101, 2, 9999, '公司地址', 'delivery_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (108, 101, 2, 9999, '公司固话', 'delivery_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (109, 101, 2, 9999, '公司邮箱', 'delivery_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (110, 101, 2, 9999, '公司传真', 'delivery_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (111, 101, 2, 9999, '公司QQ', 'delivery_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (112, 0, 5, 1, '机台选择', 'machine_number', '[{\"key\":\"machine_id\"}]', '{\"key\":\"machine\",\"value\":\"machine_number\"}', 9, 0, '{\"regex\":\"\",\"tips\":\"填写机台编号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (113, 0, 5, 2, '机型', 'model_name', '[{\"key\":\"model_id\"}]', '{\"key\":\"model_id\",\"value\":\"model_name\"}', 10, 0, '{\"regex\":\"\",\"tips\":\"填写机型编号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (114, 0, 5, 9, '生产数量', 'production_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (115, 0, 5, 10, '计划生产数量', 'plan_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (116, 0, 5, 11, '实际生产数量', 'reality_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (117, 0, 1, 16, '成品密度', 'finished_density', '[{\"key\":\"eye\",\"value\":\"眼\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (118, 0, 1, 19, '捻度', 'twist', '[{\"key\":\"rpm\",\"value\":\"转\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (119, 0, 1, 20, '梳节数', 'combing_amount', '[{\"key\":\"hold\",\"value\":\"把\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (120, 0, 1, 21, '纱数', 'yarn_amount', '[{\"key\":\"pcs\",\"value\":\"粒\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (121, 0, 1, 22, '净针', 'net_needle', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (122, 0, 1, 17, '原料成分', 'material_composition', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"原料\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (123, 0, 1, 18, '原料规格', 'product_specification', '[{\"key\":\"product_specification_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"1\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"规格\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (124, 0, 2, 5, '原料厂', 'material_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (125, 124, 2, 9999, '客户姓名', 'material_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (126, 124, 2, 9999, '手机号码', 'material_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (127, 124, 2, 9999, '客户QQ', 'material_customer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (128, 124, 2, 9999, '客户邮箱', 'material_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (129, 124, 2, 9999, '公司名称', 'material_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (130, 124, 2, 9999, '公司地址', 'material_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (131, 124, 2, 9999, '公司固话', 'material_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (132, 124, 2, 9999, '公司邮箱', 'material_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (133, 124, 2, 9999, '公司传真', 'material_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (134, 124, 2, 9999, '公司QQ', 'material_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (135, 0, 8, 10, '要求交货时间', 'requirement_delivery_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (136, 0, 8, 11, '实际发货时间', 'actual_delivery_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (137, 0, 8, 12, '交货周期', 'delivery_cycle', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (138, 0, 8, 13, '验货时间', 'inspection_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (139, 0, 8, 30, '时间', 'data_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (140, 0, 8, 8, '入库时间', 'in_warehouse_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (141, 0, 8, 9, '出库时间', 'out_warehouse_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (142, 0, 8, 14, '开始时间', 'start_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (143, 0, 8, 15, '结束时间', 'end_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (144, 0, 8, 5, '停机时间', 'stop_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (145, 0, 8, 4, '开机时间', 'boot_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (146, 0, 6, 2, '入库数量', 'in_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (147, 0, 6, 5, '出库数量', 'out_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (148, 0, 6, 6, '库存数量', 'inventory_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (149, 0, 6, 9, '存放区域', 'storage_area', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"存放区域\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (150, 0, 9, 2, '图片', 'public_image', '[]', '{\"key\":\"strip\",\"value\":\"6\"}', 4, 0, '{\"regex\":\"\",\"tips\":\"最多6张图片\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (151, 0, 9, 1, '语音', 'public_voice', '[]', '{\"key\":\"strip\",\"value\":\"6\"}', 5, 0, '{\"regex\":\"\",\"tips\":\"最多6条语音\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (152, 0, 4, 11, '前处理', 'dyeing_pretreatment', '[{\"key\":\"1\",\"value\":\"是\"},{\"key\":\"2\",\"value\":\"否\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"是否\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (153, 0, 4, 12, '手感', 'dyeing_feel', '[{\"key\":\"all\",\"value\":\"软,平滑,白糊,树胶\",\"acq\":\"软\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (154, 0, 8, 2, '销售时间', 'sale_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (155, 0, 8, 19, '付款时间', 'payment_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (156, 0, 8, 18, '收款时间', 'receivables_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (157, 0, 3, 5, '退货价格', 'sale_refund_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (158, 0, 3, 6, '退货总额', 'sale_refund_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (159, 0, 3, 4, '退货数量', 'sale_refund_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (160, 0, 7, 8, '收取现金', 'sale_collect_cash', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (161, 0, 7, 9, '支出现金', 'purchase_pay_cash', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (162, 0, 9, 4, '金额', 'public_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (163, 0, 9, 10, '数量', 'public_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (164, 0, 2, 15, '公司客户', 'public_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (165, 164, 2, 9999, '客户姓名', 'public_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (166, 164, 2, 9999, '手机号码', 'public_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (167, 164, 2, 9999, '客户QQ', 'public_ustomer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (168, 164, 2, 9999, '客户邮箱', 'public_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (169, 164, 2, 9999, '公司名称', 'public_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (170, 164, 2, 9999, '公司地址', 'public_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (171, 164, 2, 9999, '公司固话', 'public_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (172, 164, 2, 9999, '公司邮箱', 'public_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (173, 164, 2, 9999, '公司传真', 'public_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (174, 164, 2, 9999, '公司QQ', 'public_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (175, 0, 2, 13, '收款对象', 'receivables_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (176, 175, 2, 9999, '客户姓名', 'receivables_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (177, 175, 2, 9999, '手机号码', 'receivables_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (178, 175, 2, 9999, '客户QQ', 'receivables_ustomer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (179, 175, 2, 9999, '客户邮箱', 'receivables_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (180, 175, 2, 9999, '公司名称', 'receivables_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (181, 175, 2, 9999, '公司地址', 'receivables_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (182, 175, 2, 9999, '公司固话', 'receivables_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (183, 175, 2, 9999, '公司邮箱', 'receivables_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (184, 175, 2, 9999, '公司传真', 'receivables_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (185, 175, 2, 9999, '公司QQ', 'receivables_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (186, 0, 7, 1, '收款金额', 'receivables_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (187, 0, 2, 12, '付款对象', 'payment_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (188, 187, 2, 9999, '客户姓名', 'payment_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (189, 187, 2, 9999, '手机号码', 'payment_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/ \",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (190, 187, 2, 9999, '客户QQ', 'payment_ustomer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (191, 187, 2, 9999, '客户邮箱', 'payment_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (192, 187, 2, 9999, '公司名称', 'payment_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (193, 187, 2, 9999, '公司地址', 'payment_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (194, 187, 2, 9999, '公司固话', 'payment_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (195, 187, 2, 9999, '公司邮箱', 'payment_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (196, 187, 2, 9999, '公司传真', 'payment_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (197, 187, 2, 9999, '公司QQ', 'payment_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (198, 0, 7, 3, '付款金额', 'payment_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (199, 0, 9, 3, '备注', 'public_note', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (200, 0, 7, 7, '银行卡号', 'public_bank_number', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"30\"}', 11, 0, '{\"regex\":\"/^[0-9\\\\s]{8,24}$/\",\"tips\":\" 请填入正确的银行卡号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (201, 0, 9, 11, '粒数', 'public_grain', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (202, 0, 1, 4, '胚布花高', 'product_cloth_height', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (203, 0, 1, 7, '胚布花宽', 'product_cloth_width', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (204, 0, 1, 8, '净拉花宽', 'product_freewidtht', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (205, 0, 4, 10, '预定型', 'predetermined_type', '[{\"key\":\"1\",\"value\":\"是\"},{\"key\":\"2\",\"value\":\"否\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"是否\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (206, 0, 5, 5, '针位', 'needle_position', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (207, 0, 5, 6, '匹数', 'machine_horse', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (208, 0, 5, 7, '单匹重量', 'single_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (209, 0, 5, 8, '管重量', 'pipe_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (210, 0, 7, 6, '银行名称', 'public_bank_name', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (211, 0, 8, 1, '订单时间', 'order_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (212, 0, 8, 3, '采购时间', 'purchase_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (213, 0, 8, 6, '计划开机时间', 'plan_boot_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (214, 0, 8, 7, '计划停机时间', 'plan_stop_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (215, 0, 8, 16, '延长时间', 'expand_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (216, 0, 8, 17, '缩短时间', 'shorten_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (217, 0, 9, 5, '价格', 'public_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (218, 0, 9, 6, '总额', 'public_total', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (219, 0, 9, 8, '重量', 'public_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (220, 0, 8, 22, '下布时间', 'lower_cloth_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (221, 0, 6, 1, '仓库货物', 'warehouse_goods', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 12, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (222, 221, 6, 99991, '产品型号', 'warehouse_product_pname', '[{\"key\":\"warehouse_product_id\"}]', '{\"key\":\"product_id\",\"value\":\"product_pname\"}', 7, 0, '{\"regex\":\"\",\"tips\":\"选择产品型号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (223, 221, 6, 99993, '颜色', 'warehouse_product_color', '[{\"key\":\"all\",\"value\":\"胚布,本白,黑,红,黄\",\"acq\":\"胚布\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"产品颜色\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (224, 0, 1, 12, '色号', 'product_color_number', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"色号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (225, 221, 6, 99994, '色号', 'warehouse_product_color_number', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"色号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (226, 221, 6, 99995, '花高', 'warehouse_product_height', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (227, 221, 6, 99996, '花宽', 'warehouse_product_width', '[{\"key\":\"cm\",\"value\":\"厘米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (228, 221, 6, 99997, '原料成分', 'warehouse_material_composition', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"原料\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (229, 221, 6, 99998, '机台选择', 'warehouse_machine_number', '[{\"key\":\"warehouse_machine_id\"}]', '{\"key\":\"machine_id\",\"value\":\"machine_number\"}', 9, 0, '{\"regex\":\"\",\"tips\":\"填写机台编号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (230, 221, 6, 99999, '存放区域', 'warehouse_storage_area', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"存放区域\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (231, 0, 6, 3, '要求入库数量', 'requirement_in_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (232, 0, 6, 4, '实际入库数量', 'actual_in_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (233, 0, 6, 7, '要求出库数量', 'requirement_out_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (234, 0, 6, 8, '实际出库数量', 'actual_out_warehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (235, 221, 6, 999912, '库存数量', 'warehouse_inventory_quantity', '[]', '{\"key\":\"string\",\"value\":\"255\"}', -1, 0, '{\"regex\":\"\",\"tips\":\"\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (236, 0, 5, 4, '盘头类型', 'pan_head_type', ' [{\"key\":\"pan_head_type_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"1\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"盘头类型\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (237, 0, 9, 7, '成品价格', 'public_finished_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (238, 0, 9, 9, '胚布价格', 'public_embryo_price', '[{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"},{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/one\",\"value\":\"元/条\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"},{\"key\":\"yuan/slice\",\"value\":\"元/片\"},{\"key\":\"yuan/pcs\",\"value\":\"元/粒\"},{\"key\":\"yuan/jin\",\"value\":\"元/斤\"},{\"key\":\"yuan/set\",\"value\":\"元/套\"},{\"key\":\"yuan/ge\",\"value\":\"元/个\"},{\"key\":\"yuan/zhe\",\"value\":\"元/支\"},{\"key\":\"yuan/duan\",\"value\":\"元/段\"},{\"key\":\"yuan/gang\",\"value\":\"元/缸\"},{\"key\":\"yuan/xiang\",\"value\":\"元/箱\"},{\"key\":\"yuan/piece\",\"value\":\"元/件\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (239, 0, 4, 13, '进仓卡号', 'jincang_card', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 0, '{\"regex\":\"\",\"tips\":\" 最多50个字符\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (240, 0, 4, 15, '出仓卡号', 'chucang_card', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 0, '{\"regex\":\"\",\"tips\":\" 最多50个字符\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (241, 0, 4, 14, '颜色单价', 'color _price', '[{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"}]', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (242, 0, 4, 16, '手感单价', 'handle_feel_price', '[{\"key\":\"yuan/kg\",\"value\":\"元/公斤\"}]', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (243, 0, 4, 17, '包装单价', 'packing_price', '[{\"key\":\"yuan/rolls\",\"value\":\"元/卷\"}]', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (244, 0, 4, 18, '包装数量', 'packing_quantity', '[{\"key\":\"rolls\",\"value\":\"卷\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (245, 0, 5, 3, '盘头沙数', 'pan_head_sand_number', '[{\"key\":\"one\",\"value\":\"条\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (246, 0, 3, 13, '收货地址', 'receiving_address', '[{\"key\":\"oneself\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"收货地址\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (247, 0, 7, 2, '账户', 'account_category', '[{\"key\":\"oneself\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"50\"}', 35, 0, '{\"regex\":\"\",\"tips\":\"请选择账户\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (248, 0, 7, 4, '费用名称', 'cost_name', '[{\"key\":\"cost_name_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"2\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"费用名称\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (249, 0, 9, 12, '负责人', 'responsible_user_realname', '[{\"key\":\"responsible_user_id\"}]', '{\"key\":\"user_id\",\"value\":\"user_realname\"}', 24, 0, '{\"regex\":\"\",\"tips\":\"选择负责人\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (250, 0, 9, 13, '审批人', 'approver_user_realname', '[{\"key\":\"approver_user_id\"}]', '{\"key\":\"user_id\",\"value\":\"user_realname\"}', 24, 0, '{\"regex\":\"\",\"tips\":\"选择审批人\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (251, 0, 9, 14, '员工', 'staff_user_realname', '[{\"key\":\"staff_user_id\"}]', '{\"key\":\"user_id\",\"value\":\"user_realname\"}', 24, 0, '{\"regex\":\"\",\"tips\":\"选择员工\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (252, 0, 3, 7, '退货类型', 'sale_refund_type', '[{\"key\":\"1\",\"value\":\"退还货物给客户\"},{\"key\":\"2\",\"value\":\"回收卖出的货物\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择退货类型单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (253, 0, 7, 5, '调账类型', 'adjustment_type', '[{\"key\":\"1\",\"value\":\"减少总额\"},{\"key\":\"2\",\"value\":\"增加总额\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择调账类型单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (254, 0, 8, 23, '加工时间', 'processing_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (255, 0, 8, 26, '退货时间', 'sale_refund_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (256, 0, 8, 27, '对账时间', 'reconciliation_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (257, 0, 3, 14, '发货地址', 'send_address', '[{\"key\":\"oneself\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"发货地址\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (258, 0, 4, 5, '要求进仓数量', 'requirement_in_storehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (259, 0, 4, 6, '实际进仓数量', 'actual_in_storehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (260, 0, 4, 7, '出仓数量', 'out_storehouse_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (261, 0, 4, 8, '是否清仓', 'clearing_storehouse', '[{\"key\":\"1\",\"value\":\"是\"},{\"key\":\"2\",\"value\":\"否\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"请选择\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (262, 0, 8, 24, '进仓时间', 'in_storehouse_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (263, 0, 8, 25, '出仓时间', 'out_storehouse_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (264, 0, 4, 9, '是否结单', 'knot_order', '[{\"key\":\"1\",\"value\":\"是\"},{\"key\":\"2\",\"value\":\"否\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"请选择\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (265, 0, 2, 14, '收票公司', 'tickets_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (266, 265, 2, 9999, '客户姓名', 'tickets_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (267, 265, 2, 9999, '手机号码', 'tickets_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (268, 265, 2, 9999, '客户QQ', 'tickets_ustomer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (269, 265, 2, 9999, '客户邮箱', 'tickets_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (270, 265, 2, 9999, '公司名称', 'tickets_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (271, 265, 2, 9999, '公司地址', 'tickets_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (272, 265, 2, 9999, '公司固话', 'tickets_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (273, 265, 2, 9999, '公司邮箱', 'tickets_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (274, 265, 2, 9999, '公司传真', 'tickets_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (275, 265, 2, 9999, '公司QQ', 'tickets_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (276, 0, 8, 20, '开票时间', 'ticket_opening_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (277, 0, 8, 21, '收票时间', 'collect_ticket_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (278, 0, 2, 9, '加工店', 'machiningShop_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (279, 278, 2, 9999, '客户姓名', 'machiningShop_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (280, 278, 2, 9999, '手机号码', 'machiningShop_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (281, 278, 2, 9999, '客户QQ', 'machiningShop_ustomer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (282, 278, 2, 9999, '客户邮箱', 'machiningShop_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (283, 278, 2, 9999, '公司名称', 'machiningShop_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (284, 278, 2, 9999, '公司地址', 'machiningShop_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (285, 278, 2, 9999, '公司固话', 'machiningShop_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (286, 278, 2, 9999, '公司邮箱', 'machiningShop_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (287, 278, 2, 9999, '公司传真', 'machiningShop_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (288, 278, 2, 9999, '公司QQ', 'machiningShop_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (289, 0, 2, 10, '剪线厂', 'shearingFactory_object', '', '', 8, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (290, 289, 2, 9999, '客户姓名', 'shearingFactory_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (291, 289, 2, 9999, '手机号码', 'shearingFactory_customer_phone', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0?(13|14|15|17|18)[0-9]{9}$/\",\"tips\":\"填入11位手机号码\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (292, 289, 2, 9999, '客户QQ', 'shearingFactory_ustomer_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (293, 289, 2, 9999, '客户邮箱', 'shearingFactory_customer_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (294, 289, 2, 9999, '公司名称', 'shearingFactory_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (295, 289, 2, 9999, '公司地址', 'shearingFactory_company_addr', '[]', '{\"key\":\"string\",\"value\":\"255\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (296, 289, 2, 9999, '公司固话', 'shearingFactory_company_tel', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (297, 289, 2, 9999, '公司邮箱', 'shearingFactory_company_email', '[]', '{\"key\":\"email\",\"value\":\"\"}', 0, 0, '{\"regex\":\"\",\"tips\":\"填入正确的邮箱\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (298, 289, 2, 9999, '公司传真', 'shearingFactory_company_fax', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (299, 289, 2, 9999, '公司QQ', 'shearingFactory_company_qq', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (300, 0, 7, 10, '财务明细', 'financial_details', '[{\"key\":\"financial_details_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"2\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"财务明细\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (301, 0, 1, 24, '供应商型号', 'collection_pname', '[{\"key\":\"collection_id\"}]', '{\"key\":\"collection_id\",\"value\":\"collection_pname\"}', 28, 0, '{\"regex\":\"\",\"tips\":\"选择供应商型号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (302, 0, 1, 23, '克重', 'product_gram_weight', '[{\"key\":\"g/m2\",\"value\":\"平方米克重\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (303, 221, 6, 999911, '备注', 'warehouse_note', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', -1, 0, '{\"regex\":\"\",\"tips\":\"设置备注\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (304, 0, 9, 10, '自建来源', 'self_built_source', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"自建来源\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (305, 221, 6, 99992, '供应商型号', 'warehouse_collection_pname', '[{\"key\":\"warehouse_collection_id\"}]', '{\"key\":\"collection_id\",\"value\":\"collection_pname\"}', 28, 0, '{\"regex\":\"\",\"tips\":\"选择供应商型号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (306, 0, 7, 11, '收款模式', 'receivables_mode', '[{\"key\":\"1\",\"value\":\"全款\"},{\"key\":\"2\",\"value\":\"订金\"},{\"key\":\"3\",\"value\":\"尾款\"},{\"key\":\"4\",\"value\":\"优惠\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择收款模式单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (307, 0, 7, 12, '对应单据', 'bill_order_number', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 34, 0, '{\"regex\":\"\",\"tips\":\"选择票据号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (308, 0, 7, 13, '转账金额', 'transfer_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (309, 0, 7, 14, '付款类别', 'payment_category', '[{\"key\":\"payment_category_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"2\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"付款类别\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (310, 0, 7, 15, '收款类别', 'receivables_category', '[{\"key\":\"receivables_category_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"2\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"收款类别\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (311, 0, 7, 16, '调款类型', 'adjustment_money_type', '[{\"key\":\"1\",\"value\":\"减少总额\"},{\"key\":\"2\",\"value\":\"增加总额\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"选择调款类型单选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (312, 0, 7, 17, '调款金额', 'adjustment_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (313, 0, 7, 18, '转入账户', 'transfer_in_category', '[{\"key\":\"oneself\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"50\"}', 35, 0, '{\"regex\":\"\",\"tips\":\"转入账户\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (314, 0, 7, 19, '转出账户', 'transfer_out_category', '[{\"key\":\"oneself\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"50\"}', 35, 0, '{\"regex\":\"\",\"tips\":\"转出账户\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (315, 0, 8, 28, '转账时间', 'transfer_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (316, 0, 8, 29, '调款时间', 'adjustment_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (317, 0, 10, 1, '货物净额', 'net_cargo', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (318, 0, 10, 2, '染费', 'dye_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (319, 0, 10, 3, '割边费', 'edge_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (320, 0, 10, 4, '剪线费', 'trimming_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (321, 0, 10, 5, '剪睫毛费', 'eyelashes_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (322, 0, 10, 6, '运费', 'freight_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (323, 0, 10, 7, '快递费', 'express_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (324, 0, 10, 8, '样品费', 'Sample_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (325, 0, 10, 9, '税金', 'taxes_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (326, 0, 10, 10, '人工费', 'labor_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (327, 0, 10, 11, '打卷费', 'marking_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (328, 0, 10, 12, '印花费', 'stamp_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (329, 0, 10, 13, '总成本', 'total_cost', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (330, 0, 4, 19, '对色光源', 'color_light_source', '[{\"key\":\"oneself\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"对色光源\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (331, 0, 5, 12, '停机事由', 'stop_reason_name', '[{\"key\":\"stop_reason_id\"}]', '{\"key\":\"stop_reason_id\",\"value\":\"stop_reason_name\"}', 39, 0, '{\"regex\":\"\",\"tips\":\"选择暂停事由\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (332, 0, 8, 31, '暂停时间', 'suspended_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (333, 0, 8, 31, '启动时间', 'activate_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (334, 221, 6, 999910, '其他描述', 'warehouse_other_description', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 1, 0, '{\"regex\":\"\",\"tips\":\"设置其他描述\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (335, 0, 9, 15, '核对数量', 'check_amount', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/ \",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (336, 0, 8, 32, '确认时间', 'confirm_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (337, 0, 8, 33, '收到时间', 'received_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (338, 0, 6, 10, '同步数量', 'synchronous_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"},{\"key\":\"pcs\",\"value\":\"粒\"},{\"key\":\"jin\",\"value\":\"斤\"},{\"key\":\"set\",\"value\":\"套\"},{\"key\":\"ge\",\"value\":\"个\"},{\"key\":\"zhe\",\"value\":\"支\"},{\"key\":\"duan\",\"value\":\"段\"},{\"key\":\"gang\",\"value\":\"缸\"},{\"key\":\"xiang\",\"value\":\"箱\"},{\"key\":\"piece\",\"value\":\"件\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 13, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (339, 0, 6, 11, '进货数量', 'in_goods_quantity', '[{\"key\":\"yard\",\"value\":\"码\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 44, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 2, '', 0, '{\"calculation_total_accuracy\":\"2\",\"calculation_total\":\"in_goods_quantity_one_yard_mul\",\"calculation_column\":\"in_goods_quantity_one,in_goods_quantity_yard\",\"calculation_operator\":\"*\"}', NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (340, 339, 6, 99991, '匹号', 'in_goods_quantity_pin_number', '[]', '', 45, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (341, 339, 6, 99992, '条数', 'in_goods_quantity_one', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (342, 339, 6, 99993, '码数', 'in_goods_quantity_yard', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (343, 339, 6, 99994, '合计', 'in_goods_quantity_one_yard_mul', '[]', '', -1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (344, 0, 4, 20, '出仓重量', 'out_storehouse_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (345, 0, 6, 12, '割边发货数量', 'edge_delivery_quantity', '[{\"key\":\"yard\",\"value\":\"码\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 47, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 2, '', 0, '{\"calculation_group_total\":\"edge_delivery_quantity_box_quantity\",\"calculation_total_accuracy\":\"2\",\"calculation_total\":\"edge_delivery_quantity_box_pcs_yard_mul\",\"calculation_column\":\"edge_delivery_quantity_box_pcs,edge_delivery_quantity_box_yard\",\"calculation_operator\":\"*\"}', NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (346, 345, 6, 99991, '箱号', 'edge_delivery_quantity_box_number', '[]', '', 45, 0, '', 20, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (347, 345, 6, 99992, '本箱数量', 'edge_delivery_quantity_box_quantity', '[]', '', -1, 0, '', 20, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (348, 345, 6, 99993, '颜色', 'edge_delivery_quantity_box_color', '[]', '', 48, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (349, 345, 6, 99994, '粒数', 'edge_delivery_quantity_box_pcs', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^([0-9]{0,2})+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (350, 345, 6, 99995, '单粒码数', 'edge_delivery_quantity_box_yard', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^([0-9]{0,2})+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (351, 345, 6, 99996, '总码数', 'edge_delivery_quantity_box_pcs_yard_mul', '[]', '', -1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (352, 0, 9, 16, '图片2', 'public_image_2', '[]', '{\"key\":\"strip\",\"value\":\"6\"}', 4, 0, '{\"regex\":\"\",\"tips\":\"最多6张图片\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (353, 0, 9, 17, '图片3', 'public_image_3', '[]', '{\"key\":\"strip\",\"value\":\"6\"}', 4, 0, '{\"regex\":\"\",\"tips\":\"最多6张图片\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (354, 0, 5, 13, '总重量', 'total_weight', '[{\"key\":\"kg\",\"value\":\"公斤\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (355, 0, 1, 24, '货品名称', 'description_goods', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"货品名称\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (356, 0, 1, 25, '幅宽', 'width_cloth', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"幅宽\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (357, 0, 1, 26, '幅高', 'height_cloth', '[{\"key\":\"all\",\"value\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"幅高\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (358, 0, 3, 15, '总米数', 'total_metre_quantity', '[{\"key\":\"m\",\"value\":\"米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (359, 0, 3, 16, '出米率', 'product_metre', '[{\"key\":\"yard/m\",\"value\":\"码/米\"},{\"key\":\"kg/m\",\"value\":\"公斤/米\"},{\"key\":\"one/m\",\"value\":\"条/米\"},{\"key\":\"m/m\",\"value\":\"米/米\"},{\"key\":\"slice/m\",\"value\":\"片/米\"},{\"key\":\"pcs/m\",\"value\":\"粒/米\"},{\"key\":\"jin/m\",\"value\":\"斤/米\"},{\"key\":\"set/m\",\"value\":\"套/米\"},{\"key\":\"ge/m\",\"value\":\"个/米\"},{\"key\":\"zhe/m\",\"value\":\"支/米\"},{\"key\":\"duan/m\",\"value\":\"段/米\"},{\"key\":\"gang/m\",\"value\":\"缸/米\"},{\"key\":\"xiang/m\",\"value\":\"箱/米\"},{\"key\":\"piece/m\",\"value\":\"件/米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (360, 0, 3, 17, '每米价格', 'metre_price', '[{\"key\":\"yuan/m\",\"value\":\"元/米\"}]', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (361, 0, 4, 21, '匹号', 'match_number', '[{\"key\":\"1\",\"value\":\"1\"},{\"key\":\"2\",\"value\":\"2\"},{\"key\":\"3\",\"value\":\"3\"},{\"key\":\"4\",\"value\":\"4\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 3, 0, '{\"regex\":\"\",\"tips\":\"选择匹号多选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (362, 0, 4, 22, '总条数', 'total_strip_quantity', '[]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (363, 0, 4, 23, '每条数量', 'per_strip_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (364, 0, 4, 24, '总数量', 'total_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, '', NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (365, 0, 4, 25, '割边数量', 'edge_cutting_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (366, 0, 4, 26, '割边价格', 'edge_cutting_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (367, 0, 4, 27, '割边总额', 'edge_cutting_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (368, 0, 4, 28, '打卷数量', 'hit_rolls_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, 'PriceQuantity', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (369, 0, 4, 29, '打卷价格', 'hit_rolls_price', '[{\"key\":\"yuan/yard\",\"value\":\"元/码\"},{\"key\":\"yuan/m\",\"value\":\"元/米\"}]\r\n', '{\"key\":\"double\",\"value\":\"5\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,5})?$/\",\"tips\":\"只能为数字和5位小数点\"}', 0, 'PriceQuantity', 2, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (370, 0, 4, 30, '打卷总额', 'hit_rolls_total_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (371, 0, 8, 34, '收货时间', 'receiving_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (372, 0, 4, 31, '预计出码(米)率', 'estimate_weight_m_rate', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (373, 0, 4, 32, '是否完成', 'is_complete', '[{\"key\":\"2\",\"value\":\"否\"},{\"key\":\"1\",\"value\":\"是\"}]', '{\"key\":\"string\",\"value\":\"25\"}', 2, 0, '{\"regex\":\"\",\"tips\":\"请选择\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (374, 0, 8, 35, '出货时间', 'shipment_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (375, 0, 4, 33, '出货数量', 'shipment_quantity', '[{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"m\",\"value\":\"米\"}]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (376, 0, 3, 18, '数量详情', 'quantity_info', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 53, 0, '{\"regex\":\"/^[0-9.+]+$/\",\"tips\":\"只能为数字,小数点,加号\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (377, 0, 3, 19, '空差', 'space_difference', '[]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (378, 0, 3, 20, '差额', 'difference_amount', '[]', '{\"key\":\"double\",\"value\":\"7\"}', 54, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,7})?$/\",\"tips\":\"数字且不能手动修改\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (379, 0, 9, 18, '文件', 'public_file', '[]', '{\"key\":\"strip\",\"value\":\"6\"}', 56, 0, '{\"regex\":\"\",\"tips\":\"最多6个文件\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (380, 0, 11, 1, '渠道', 'reception_channel', '[{\"key\":\"reception_channel_id\"}]', '{\"key\":\"string\",\"value\":\"50\",\"type\":\"2\"}', 57, 0, '{\"regex\":\"\",\"tips\":\"渠道\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (381, 0, 11, 2, '接待日期', 'reception_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (382, 0, 11, 3, '接待方式', 'reception_mode', '[{\"key\":\"all\",\"value\":\"\",\"acq\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"接待方式\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (383, 0, 11, 4, '接待人员', 'reception_personnel', '[{\"key\":\"all\",\"value\":\"\",\"acq\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"接待人员\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (384, 0, 11, 5, '接待意向度', 'reception_intention', '[{\"key\":\"all\",\"value\":\"\",\"acq\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"接待意向度\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (385, 0, 11, 6, '接待情况', 'reception_situation', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (386, 0, 11, 7, '企业名称', 'enterprise_name', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (387, 0, 11, 8, '企业法人代表', 'enterprise_representative', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 0, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (388, 0, 11, 9, '企业注册资金', 'enterprise_registered_capital', '[{\"key\":\"wan_yuan\",\"value\":\"万元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (389, 0, 11, 10, '企业年纳税额', 'enterprise_annual_ratal', '[{\"key\":\"wan_yuan\",\"value\":\"万元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (390, 0, 11, 11, '企业行业类型', 'enterprise_industry_type', '[{\"key\":\"all\",\"value\":\"\",\"acq\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"企业行业类型\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (391, 0, 11, 12, '意向', 'intention', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (392, 0, 11, 13, '企业注册地', 'enterprise_registration_address', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (393, 0, 11, 14, '企业简介', 'enterprise_profile', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 1, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (394, 0, 4, 34, '损耗', 'loss', '[]\r\n', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (395, 0, 4, 35, '赔款金额', 'deduction_amount', '[{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"3\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,3})?$/\",\"tips\":\"只能为数字和3位小数点\"}', 0, '', 1, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (396, 0, 8, 36, '赔款时间', 'deduction_time', '[]', '{\"key\":\"date_time\",\"value\":\"1\"}', 6, 0, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (397, 0, 11, 15, '需求分析', 'demand_analysis', '[{\"key\":\"demand_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"需求分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (398, 0, 11, 16, '情况分析', 'situation_analysis', '[{\"key\":\"situation_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"情况分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (399, 0, 11, 17, '问题分析', 'problem_analysis', '[{\"key\":\"problem_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"问题分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (400, 0, 11, 18, '客户分析', 'customer_analysis', '[{\"key\":\"customer_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"客户分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (401, 0, 11, 19, '具体分析', 'specific_analysis', '[{\"key\":\"specific_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"具体分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (402, 0, 11, 20, '意向分析', 'intention_analysis', '[{\"key\":\"intention_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"意向分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (403, 0, 11, 21, '能力分析', 'capability_analysis', '[{\"key\":\"capability_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"能力分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (404, 0, 11, 22, '实力分析', 'strength_analysis', '[{\"key\":\"strength_analysis_ids\"}]', '{\"key\":\"string\",\"value\":\"500\",\"type\":\"3\"}', 59, 0, '{\"regex\":\"\",\"tips\":\"实力分析\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (405, 0, 1, 27, '产品多选', 'product_pnames', '[{\"key\":\"product_ids\"}]', '{\"key\":\"product_id\",\"value\":\"product_pname\"}', 14, 0, '{\"regex\":\"\",\"tips\":\"选择产品型号可以多选\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (406, 0, 11, 23, '租赁面积', 'lease_area', '[{\"key\":\"m2\",\"value\":\"平方米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (407, 0, 11, 24, '购买面积', 'purchase_area', '[{\"key\":\"m2\",\"value\":\"平方米\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (408, 0, 11, 25, '企业年营业额', 'enterprise_turnover', '[{\"key\":\"wan_yuan\",\"value\":\"万元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (409, 0, 11, 26, '员工规模', 'staff_scale', '[{\"key\":\"people\",\"value\":\"人\"}]', '{\"key\":\"integer\",\"value\":\"\"}', 0, 0, '{\"regex\":\"/^0|[1-9][0-9]{0,18}$/\",\"tips\":\"请填入1到18位纯数字\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (411, 0, 11, 27, '意向价', 'intention_price', '[{\"key\":\"wan_yuan\",\"value\":\"万元\"},{\"key\":\"yuan\",\"value\":\"元\"}]', '{\"key\":\"double\",\"value\":\"2\"}', 0, 0, '{\"regex\":\"/^[0-9]+(.[0-9]{0,2})?$/\",\"tips\":\"只能为数字和2位小数点\"}', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (412, 0, 2, 16, '企业客户', 'enterprise_alone_object', '', '', 60, 0, '', 1, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (413, 0, 2, 10001, '所在分组', 'alone_customer_group_title', '[{\"key\":\"alone_customer_group_id\"}]', '{\"key\":\"id\",\"value\":\"title\"}', 61, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (414, 0, 2, 10002, '公司名称', 'alone_company_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (415, 0, 2, 10003, '公司简介', 'alone_company_notes', '[]', '{\"key\":\"string\",\"value\":\"1000\"}', 1, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (416, 0, 2, 10004, '公司地址', 'alone_company_addr', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 1, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (417, 0, 2, 10005, '经营范围', 'alone_company_major', '[]', '{\"key\":\"string\",\"value\":\"500\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (418, 0, 2, 10006, '公司电话', 'alone_company_tel', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (419, 0, 2, 10007, '公司传真', 'alone_company_fax', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (420, 0, 2, 10008, '公司邮箱', 'alone_company_email', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (421, 0, 2, 10009, '公司QQ', 'alone_company_qq', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (422, 0, 2, 10010, '公司标签', 'alone_company_tag_titles', '[{\"key\":\"alone_company_tag_ids\"}]', '{\"key\":\"tag_id\",\"value\":\"tag_title\",\"type\":\"5\"}', 18, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (423, 0, 2, 10011, '客户姓名', 'alone_customer_name', '[]', '{\"key\":\"string\",\"value\":\"25\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (424, 0, 2, 10012, '客户手机', 'alone_customer_phone', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (425, 0, 2, 10013, '客户手机2', 'alone_customer_phone2', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (426, 0, 2, 10014, '客户手机3', 'alone_customer_phone3', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (427, 0, 2, 10015, '客户邮箱', 'alone_customer_email', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (428, 0, 2, 10016, '客户QQ', 'alone_customer_qq', '[]', '{\"key\":\"string\",\"value\":\"50\"}', 0, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (429, 0, 2, 10017, '客户标签', 'alone_customer_tag_titles', '[{\"key\":\"alone_customer_tag_ids\"}]', '{\"key\":\"tag_id\",\"value\":\"tag_title\",\"type\":\"5\"}', 18, 60, '', 0, '', 0, NULL, NULL);
REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_pid_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `column_branch_calculation`, `status`) VALUES (430, 0, 11, 28, '介绍人', 'introducer', '[{\"key\":\"all\",\"value\":\"\",\"acq\":\"\"}]', '{\"key\":\"string\",\"value\":\"255\"}', 11, 0, '{\"regex\":\"\",\"tips\":\"介绍人\"}', 0, '', 0, NULL, NULL);

ALTER TABLE `t_affair_rule`
    ADD COLUMN IF NOT EXISTS `rule_allow_view_user_ids`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `rule_allow_view`;

CREATE TABLE IF NOT EXISTS `t_product_entry`  (
`entry_id` int(11) NOT NULL AUTO_INCREMENT,
`entry_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`entry_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`is_system` tinyint(1) NULL DEFAULT 1,
`status` int(11) NULL DEFAULT 99,
`user_id` int(11) NULL DEFAULT NULL,
`ctime` datetime NULL DEFAULT NULL,
`utime` datetime NULL DEFAULT NULL,
PRIMARY KEY (`entry_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 101 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
UPDATE `t_affair_system_column` SET `column_id`='7', `column_pid`='0', `group_id`='1', `column_order`='2', `column_title`='产品类型', `column_name`='product_type', `column_unit`='[{\"key\":\"product_type_id\"}]', `column_type`='{\"key\":\"string\",\"value\":\"50\",\"type\":\"4\"}', `column_control`='57', `column_pid_control`='0', `column_rule`='{\"regex\":\"\",\"tips\":\"选择产品类型单选\"}', `column_is_virtual`='0', `column_unit_symbiosis`='', `column_detachable`='0', `column_branch_calculation`=NULL, `status`=NULL WHERE (`column_id`='7');

UPDATE `t_affair_system_column` SET `column_unit`='[{\"key\":\"enterprise_industry_type_id\"}]', `column_type`='{\"key\":\"string\",\"value\":\"50\",\"type\":\"1\"}', `column_control`='57' WHERE (`column_id`='390');
ALTER TABLE `t_user_reminder`
ADD COLUMN IF NOT EXISTS `screen_affair_list`  tinyint(1) NULL DEFAULT 0 AFTER `documentary_reply_reminder`,
ADD COLUMN IF NOT EXISTS `screen_documentary_list`  tinyint(1) NULL DEFAULT 0 AFTER `screen_affair_list`;

UPDATE `t_affair_system_column` SET `column_unit`='[{\"key\":\"account_category_id\"}]' WHERE (`column_id`='247');
UPDATE `t_affair_system_column` SET `column_unit`='[{\"key\":\"transfer_in_category_id\"}]' WHERE (`column_id`='313');
UPDATE `t_affair_system_column` SET `column_unit`='[{\"key\":\"transfer_out_category_id\"}]' WHERE (`column_id`='314');

SET FOREIGN_KEY_CHECKS=1;