Переглянути джерело

批量导入计量数据调整

MaiXinRong 11 місяців тому
батько
коміт
fe2f210be0

+ 4 - 3
app/public/js/shares/batch_import.js

@@ -128,8 +128,8 @@ const BatchImportStageGcl = function (setting) {
                 $('#bi-download-error').hide();
             }
         },
-        importStageGcl: async function (node, cover, ignore) {
-            const updateData = { lid: node.lid, type: 'stage', cover, ignore, tenders: [] };
+        importStageGcl: async function (node, cover, ignore, loadChange) {
+            const updateData = { lid: node.lid, type: 'stage', cover, ignore, loadChange, tenders: [] };
             for (const tender of node.children) {
                 updateData.tenders.push({ tid: tender.tid, name: tender.name, stageCount: tender.stageCount, stage: tender.stage });
             }
@@ -153,6 +153,7 @@ const BatchImportStageGcl = function (setting) {
             this.beforeBatchImport();
             const cover = $('#bi-cover')[0].checked;
             const ignore = $('#bi-ignore')[0].checked;
+            const change = $('#bi-change')[0].checked;
             for (const node of this.batchTree.children) {
                 if (!node.selected) continue;
 
@@ -163,7 +164,7 @@ const BatchImportStageGcl = function (setting) {
                     try {
                         node.status = '开始导入';
                         SpreadJsObj.reLoadRowData(biObj.sheet, row);
-                        await biObj.importStageGcl(node, cover, ignore);
+                        await biObj.importStageGcl(node, cover, ignore, change);
                         node.status = '导入完成';
                     } catch(err) {
                         console.log(err);

+ 4 - 0
app/view/shares/batch_import_modal.ejs

@@ -19,6 +19,10 @@
                                 <input class="form-check-input" type="checkbox" id="bi-ignore">
                                 <label class="form-check-label" for="bi-ignore">以本标段清单为准</label>
                             </div>
+                            <div class="form-check form-check-inline">
+                                <input class="form-check-input" type="checkbox" id="bi-change">
+                                <label class="form-check-label" for="bi-change">含变更</label>
+                            </div>
                         </div>
                         <div class="ml-auto">
                             <button class="btn btn-sm btn-primary" id="bi-start">导入</button>