Quellcode durchsuchen

update sql and css

oubo vor 4 Jahren
Ursprung
Commit
b8ef88b4e5
3 geänderte Dateien mit 425 neuen und 20 gelöschten Zeilen
  1. 205 0
      data/sql/structure.sql
  2. 22 20
      data/upgrade/v4.0.0/v4.0.0.sql
  3. 198 0
      sapi/web/reportForms/css/column_detail.css

+ 205 - 0
data/sql/structure.sql

@@ -2160,4 +2160,209 @@ END
 ;;
 delimiter ;
 
+DROP TABLE IF EXISTS `t_affair_detail`;
+CREATE TABLE `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 = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_affair_detail_calculation
+-- ----------------------------
+DROP TABLE IF EXISTS `t_affair_detail_calculation`;
+CREATE TABLE `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 = 163 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_affair_detail_sub
+-- ----------------------------
+DROP TABLE IF EXISTS `t_affair_detail_sub`;
+CREATE TABLE `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 = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_affair_detail_system_column
+-- ----------------------------
+DROP TABLE IF EXISTS `t_affair_detail_system_column`;
+CREATE TABLE `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 = 618 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_affair_detail_system_column_group
+-- ----------------------------
+DROP TABLE IF EXISTS `t_affair_detail_system_column_group`;
+CREATE TABLE `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 = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci  ROW_FORMAT = Dynamic;
+
+DROP TABLE IF EXISTS `t_inventory_detail_calculation`;
+CREATE TABLE `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
+-- ----------------------------
+DROP TABLE IF EXISTS `t_inventory_detail_record`;
+CREATE TABLE `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 = 113 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_inventory_detail_sub_record
+-- ----------------------------
+DROP TABLE IF EXISTS `t_inventory_detail_sub_record`;
+CREATE TABLE `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
+-- ----------------------------
+DROP TABLE IF EXISTS `t_inventory_fast`;
+CREATE TABLE `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 = 111 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Table structure for t_inventory_notice_affair
+-- ----------------------------
+DROP TABLE IF EXISTS `t_inventory_notice_affair`;
+CREATE TABLE `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 = 1567 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Compact;
+DROP TABLE IF EXISTS `t_link_set`;
+CREATE TABLE `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 = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+
 SET FOREIGN_KEY_CHECKS = 1;

+ 22 - 20
data/upgrade/v4.0.0/v4.0.0.sql

@@ -2,8 +2,7 @@ SET NAMES utf8;
 
 SET FOREIGN_KEY_CHECKS=0;
 
-DROP TABLE IF EXISTS `t_affair_detail`;
-CREATE TABLE `t_affair_detail`  (
+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,
@@ -18,8 +17,7 @@ CONSTRAINT `t_affair_detail_ibfk_1` FOREIGN KEY (`affair_id`) REFERENCES `t_affa
 -- ----------------------------
 -- Table structure for t_affair_detail_calculation
 -- ----------------------------
-DROP TABLE IF EXISTS `t_affair_detail_calculation`;
-CREATE TABLE `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,
@@ -37,8 +35,7 @@ CONSTRAINT `t_affair_detail_calculation_ibfk_2` FOREIGN KEY (`detail_sub_id`) RE
 -- ----------------------------
 -- Table structure for t_affair_detail_sub
 -- ----------------------------
-DROP TABLE IF EXISTS `t_affair_detail_sub`;
-CREATE TABLE `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,
@@ -56,8 +53,7 @@ CONSTRAINT `t_affair_detail_sub_ibfk_1` FOREIGN KEY (`detail_id`) REFERENCES `t_
 -- ----------------------------
 -- Table structure for t_affair_detail_system_column
 -- ----------------------------
-DROP TABLE IF EXISTS `t_affair_detail_system_column`;
-CREATE TABLE `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,
@@ -81,15 +77,13 @@ INDEX `group_id`(`group_id`) USING BTREE
 -- ----------------------------
 -- Table structure for t_affair_detail_system_column_group
 -- ----------------------------
-DROP TABLE IF EXISTS `t_affair_detail_system_column_group`;
-CREATE TABLE `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 = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci  ROW_FORMAT = Dynamic;
 
-DROP TABLE IF EXISTS `t_inventory_detail_calculation`;
-CREATE TABLE `t_inventory_detail_calculation`  (
+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,
@@ -109,8 +103,7 @@ INDEX `inventory`(`detail_calculation_key`, `common_id`, `detail_calculation_tim
 -- ----------------------------
 -- Table structure for t_inventory_detail_record
 -- ----------------------------
-DROP TABLE IF EXISTS `t_inventory_detail_record`;
-CREATE TABLE `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 '',
@@ -130,8 +123,7 @@ PRIMARY KEY (`detail_record_id`) USING BTREE
 -- ----------------------------
 -- Table structure for t_inventory_detail_sub_record
 -- ----------------------------
-DROP TABLE IF EXISTS `t_inventory_detail_sub_record`;
-CREATE TABLE `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,
@@ -150,8 +142,7 @@ PRIMARY KEY (`detail_sub_record_id`) USING BTREE
 -- ----------------------------
 -- Table structure for t_inventory_fast
 -- ----------------------------
-DROP TABLE IF EXISTS `t_inventory_fast`;
-CREATE TABLE `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 '',
@@ -178,8 +169,7 @@ INDEX `status`(`status`, `affair_id`, `user_id`) USING BTREE
 -- ----------------------------
 -- Table structure for t_inventory_notice_affair
 -- ----------------------------
-DROP TABLE IF EXISTS `t_inventory_notice_affair`;
-CREATE TABLE `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,
@@ -197,6 +187,18 @@ PRIMARY KEY (`notice_affair_id`) USING BTREE,
 UNIQUE INDEX `id`(`notice_affair_id`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1567 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Compact;
 
+-- ----------------------------
+-- 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 = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
 
 ALTER TABLE `t_affair_sheet_column`
 ADD COLUMN IF NOT EXISTS `detail_id` int(11) NULL DEFAULT NULL AFTER `column_order`;

+ 198 - 0
sapi/web/reportForms/css/column_detail.css

@@ -0,0 +1,198 @@
+/*一般公用样式*/
+
+::-webkit-scrollbar {
+    width: 0;
+}
+
+/*让页面平滑滚动*/
+body {
+    scroll-behavior: smooth;
+    margin: 0;
+    -moz-user-select: none;
+    -webkit-user-select: none;
+    -ms-user-select: none;
+    -khtml-user-select: none;
+    user-select: none;
+}
+
+p {
+    margin: 0;
+    padding: 0;
+}
+
+/*表格公用样式*/
+table {
+    /*设置相邻单元格的边框间的距离*/
+    border-spacing: 0;
+    /*表格设置合并边框模型*/
+    border-collapse: collapse;
+    display: table;
+    width: 100%;
+    border: 1px solid #d9e1ec;
+    box-sizing: border-box;
+    table-layout: fixed;
+}
+
+tr, td {
+    border: 1px solid #d9e1ec;
+    text-align: center;
+}
+
+td {
+    padding: 1vh 0;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    word-break: break-all;
+    box-sizing: border-box;
+}
+
+/*头部统计远离边界*/
+.statistics {
+    width: 100%;
+    margin: 0 auto;
+}
+
+.statistics ul {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+
+.statistics li {
+    text-align: center;
+    color: #4b5162;
+    padding: 1vh 0;
+}
+
+/*题头的字体颜色*/
+.table_title {
+    color: #4b5162;
+}
+
+/*头部统计*/
+.flex_between {
+    display: flex;
+    display: -webkit-flex;
+    justify-content: space-between;
+    -webkit-justify-content: space-between;
+}
+
+
+/*优化表格样式*/
+.table_column {
+    border: 1px;
+}
+
+.table_column td {
+    color: #3d4f5e;
+    background: linear-gradient(#f8fcff, #def2ff);
+    border-color: #d9e1ec;
+}
+
+.content {
+    display: block;
+    overflow: scroll;
+    table-layout: fixed;
+    -webkit-overflow-scrolling: touch;
+    height: 100px;
+}
+
+.table_content, .table_content tr:first-child, .table_content tr:first-child td {
+    border-top: 0;
+}
+
+.table_content td {
+    color: #4b5162;
+    border-color: #d9e1ec;
+}
+
+.table_content tr:nth-child(odd) {
+    background: #fff;
+}
+
+.table_content tr:nth-child(even) {
+    background: #f7fbff;
+}
+
+.none {
+    display: none;
+}
+
+.visibility-hidden {
+    visibility: hidden;
+}
+
+/*选择序号进行跳转*/
+.table-serial-btn {
+    width: 40px;;
+    height: 40px;
+    border-radius: 40px;
+    font-size: 0.8rem;
+    background: #157dfe;
+    color: #fff;
+    opacity: 0.5;
+    outline: none;
+    border: 0;
+    position: fixed;
+    margin-bottom: 1rem;
+    margin-right: 1rem;
+    bottom: 0;
+    right: 0;
+}
+
+.serial-menu {
+    width: 100%;
+}
+
+.serial-content {
+    width: 90%;
+    margin: 5px auto;
+    display: flex;
+    justify-content: space-between;
+    flex-wrap: wrap;
+}
+
+.serial-btn {
+    width: 80px;;
+    height: 40px;
+    font-size: 1rem;
+    background: #157dfe;
+    color: #fff;
+    border-radius: 1rem;
+    margin-bottom: 1rem;
+    outline: none;
+    border: 0;
+}
+
+.serial-box {
+    width: 60%;
+    margin-left: 20%;
+    display: flex;
+    display: -webkit-flex;
+    justify-content: space-between;
+    -webkit-justify-content: space-between;
+    position: fixed;
+    bottom: 0;
+}
+
+.serial-box .cancel {
+    width: 30%;
+    background: #f1f1f1;
+    color: #939393;
+    font-size: 0.8rem;
+    padding: 0.6rem 0;
+}
+
+.serial-box .determine {
+    width: 30%;
+    background: #157dfe;
+    color: #fff;
+    font-size: 0.8rem;
+    padding: 0.6rem 0;
+}
+
+
+
+
+
+