소스 검색

添加期数

MaiXinRong 1 년 전
부모
커밋
abd558d76a
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      app/const/spread.js
  2. 4 0
      app/public/js/project_spread.js

+ 4 - 0
app/const/spread.js

@@ -155,6 +155,7 @@ const BaseSetCol = {
         { key: 'memo', name: '备注', fixed: [], bills: 1, pos: 0 },
         { key: 'ex_memo2', name: '备注2', fixed: [], bills: 1, pos: 1, },
         { key: 'ex_memo3', name: '备注3', fixed: [], bills: 1, pos: 1, },
+        { key: 'add_stage_order', name: '添加期数', fixed: [], bills: 1, pos: 1, },
         { key: 'is_tp', name: '总额计量', fixed: [], bills: 1, pos: 0 },
         { key: 'gxby', name: '工序报验', fixed: ['valid', 'alias'], bills: 1, pos: 1, },
         { key: 'dagl', name: '档案管理', fixed: ['valid', 'alias'], bills: 1, pos: 1, },
@@ -251,6 +252,7 @@ const glSpreadTemplate = {
         { key: 'ex_memo2', valid: 0 },
         { key: 'ex_memo3', valid: 0 },
         { key: 'is_tp', valid: 1},
+        { key: 'add_stage_order', valid: 1},
         { key: 'gxby', valid: 1},
         { key: 'dagl', valid: 1},
     ],
@@ -345,6 +347,7 @@ const szSpreadTemplate = {
         { key: 'ex_memo2', valid: 0 },
         { key: 'ex_memo3', valid: 0 },
         { key: 'is_tp', valid: 1},
+        { key: 'add_stage_order', valid: 1},
         { key: 'gxby', valid: 1},
         { key: 'dagl', valid: 1},
     ],
@@ -439,6 +442,7 @@ const fjSpreadTemplate = {
         { key: 'ex_memo2', valid: 0 },
         { key: 'ex_memo3', valid: 0 },
         { key: 'is_tp', valid: 1},
+        { key: 'add_stage_order', valid: 1},
         { key: 'gxby', valid: 1},
         { key: 'dagl', valid: 1},
     ],

+ 4 - 0
app/public/js/project_spread.js

@@ -36,6 +36,10 @@ $(document).ready(() => {
             const baseCol = BaseSetCol.find(b => { return x.key === b.key });
             data.push({ ...x, ...baseCol });
         });
+        BaseSetCol.forEach(x => {
+            const col = colSet.find(c => { return c.key === x.key });
+            if (!col) data.push({ ...x, valid: 0});
+        });
         SpreadJsObj.loadSheetData(colSheet, SpreadJsObj.DataType.Data, data);
     };