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