Преглед изворни кода

导出重庆招投标接口,文件类型是“招标”或“控制价”时,暂估价材料、评标材料的数量、合价均取0。

zhongzewei пре 6 година
родитељ
комит
eb59356245
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      web/building_saas/main/js/models/exportStandardInterface.js

+ 2 - 2
web/building_saas/main/js/models/exportStandardInterface.js

@@ -872,9 +872,9 @@ const XMLStandard = (function () {
                 {name: '材料名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
                 {name: '规格型号', value: source.specs, maxLen: 255},
                 {name: '计量单位', value: source.unit, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
-                {name: '数量', value: source.quantity, type: _config.TYPE.DECIMAL},
+                {name: '数量', value: exportKind === _config.EXPORT_KIND.Tender ? source.quantity : '0', type: _config.TYPE.DECIMAL},
                 {name: '单价', value: source.marketPrice, type: _config.TYPE.DECIMAL},
-                {name: '合价', value: source.totalPrice, type: _config.TYPE.NUM2},
+                {name: '合价', value: exportKind === _config.EXPORT_KIND.Tender ? source.totalPrice : '0', type: _config.TYPE.NUM2},
                 {name: '产地', value: source.originPlace, maxLen: 255},
                 {name: '厂家', value: source.vender, maxLen: 255},
                 {name: '品牌', value: source.brand, maxLen: 255},