Parcourir la source

池州接口:完善工程信息、招投标信息不能正确取值问题。

chenshilong il y a 5 ans
Parent
commit
ca151d45f7

+ 3 - 3
web/building_saas/standard_interface/config.js

@@ -75,9 +75,9 @@ const INTERFACE_CONFIG = (() => {
     '安徽@池州': {
       scriptName: 'anhui_chizhou.js',
       fileSuffix: {
-        [BID_INVITATION]: '.CZGLZB',
-        [BID_SUBMISSION]: '.CZLTB',
-        [CONTROL]: '.CZGLZBKZJ',
+        [BID_INVITATION]: '.czglzb',
+        [BID_SUBMISSION]: '.czgltb',
+        [CONTROL]: '.czglzbkzj',
       }
     },
     '广东@中山': {

+ 22 - 22
web/building_saas/standard_interface/export/anhui_chizhou.js

@@ -72,19 +72,19 @@ INTERFACE_EXPORT = (() => {
         function GongCXX() {
             const attrs = [
                 { name: '项目编号', value: getValueByKey(info, 'projNum') },
-                { name: '项目名称', value: projectData.name },
+                { name: '项目名称', value: projectData.name },    // projName
                 { name: '建设单位', value: getValueByKey(info, 'constructingUnits') },
                 { name: '起始桩号', value: getValueByKey(info, 'startAndChainages') },
-                { name: '终点桩号', value: getValueByKey(info, 'startAndChainages') },
-                { name: '建设地址', value: getValueByKey(info, '') },
-                { name: '项目概况', value: getValueByKey(info, '') },
-                { name: '建设性质', value: getValueByKey(info, '') },
-                { name: '专业划分', value: getValueByKey(info, '') },
-                { name: '道路里程', value: getValueByKey(info, '') },
-                { name: '设计单位', value: getValueByKey(info, '') },
+                { name: '终点桩号', value: getValueByKey(info, 'endChainages') },
+                { name: '建设地址', value: getValueByKey(info, 'constructionAddress') },
+                { name: '项目概况', value: getValueByKey(info, 'projOverview') },
+                { name: '建设性质', value: getValueByKey(info, 'natureConstruction') },
+                { name: '专业划分', value: getValueByKey(info, 'specialityDivision') },
+                { name: '道路里程', value: getValueByKey(info, 'roadDistance') },
+                { name: '设计单位', value: getValueByKey(info, 'designUnit') },
                 { name: '计税方式', value: getValueByKey(info, 'taxMode') },
                 { name: '文件类型', value: getValueByKey(info, 'projType') },
-                { name: '标准版本号', value: getValueByKey(info, '') },
+                { name: '标准版本号', value: '1.0' },
                 { name: 'GUID', value: projectData._id }
             ];
             Element.call(this, '工程信息', attrs);
@@ -100,10 +100,10 @@ INTERFACE_EXPORT = (() => {
                 { name: '造价咨询人法定代表人或其授权人', value: getValueByKey(info, 'consultantAuthorizer') },
                 { name: '造价咨询法人或其授权人身份证号', value: getValueByKey(info, 'consultantAuthorizerTaxpayerIdentificationNo') },
                 { name: '编制人', value: getValueByKey(info, 'tenderCompiler') },
-                { name: '编制人资格证号', value: getValueByKey(info, '') },
+                { name: '编制人资格证号', value: getValueByKey(info, 'tenderCompilerQualificationCertificateNo') },
                 { name: '编制日期', value: getValueByKey(info, 'compilationTime'), type: TYPE.DATE},
                 { name: '复核人', value: getValueByKey(info, 'tenderExaminer') },
-                { name: '复核人资格证号', value: getValueByKey(info, '') },
+                { name: '复核人资格证号', value: getValueByKey(info, 'tenderExaminerQualificationCertificateNo') },
                 { name: '复核日期', value: getValueByKey(info, 'reviewTime'), type: TYPE.DATE }
             ];
             Element.call(this, '招标信息', attrs);
@@ -119,19 +119,19 @@ INTERFACE_EXPORT = (() => {
                 { name: '造价咨询人法定代表人或其授权人', value: getValueByKey(info, 'consultantAuthorizer') },
                 { name: '造价咨询法人或其授权人身份证号', value: getValueByKey(info, 'consultantAuthorizerTaxpayerIdentificationNo') },
                 { name: '编制人', value: getValueByKey(info, 'tenderCompiler') },
-                { name: '编制人资格证号', value: getValueByKey(info, '') },
+                { name: '编制人资格证号', value: getValueByKey(info, 'tenderCompilerQualificationCertificateNo') },
                 { name: '编制日期', value: getValueByKey(info, 'compilationTime'), type: TYPE.DATE},
                 { name: '复核人', value: getValueByKey(info, 'tenderExaminer') },
-                { name: '复核人资格证号', value: getValueByKey(info, '') },
+                { name: '复核人资格证号', value: getValueByKey(info, 'tenderExaminerQualificationCertificateNo') },
                 { name: '复核日期', value: getValueByKey(info, 'reviewTime'), type: TYPE.DATE },
 
                 { name: '审核人', value: getValueByKey(info, 'tenderExaminer') },
-                { name: '审核人资格证号', value: getValueByKey(info, '') },
+                { name: '审核人资格证号', value: getValueByKey(info, 'reviewerQualificationCertificateNo') },
                 { name: '审核日期', value: getValueByKey(info, 'reviewTime'), type: TYPE.DATE },
 
                 { name: '控制价总价', value: summary.totalCost, type: TYPE.DECIMAL },
-                { name: '工期', value: getValueByKey(info, '') },
-                { name: '质量要求', value: getValueByKey(info, '') }
+                { name: '工期', value: getValueByKey(info, 'timeLimit') },
+                { name: '质量要求', value: getValueByKey(info, 'qualityRequirements') }
             ];
             Element.call(this, '招标控制价', attrs);
         }
@@ -145,20 +145,20 @@ INTERFACE_EXPORT = (() => {
                 { name: '投标人法定代表或其授权人', value: getValueByKey(info, 'bidderAuthorizer') },
                 { name: '投标人法人或其授权人身份证号', value: getValueByKey(info, 'bidderAuthorizerTaxpayerIdentificationNo') },
                 { name: '编制人', value: getValueByKey(info, 'tenderCompiler') },
-                { name: '编制人资格证号', value: getValueByKey(info, 'authorNo') },
+                { name: '编制人资格证号', value: getValueByKey(info, 'tenderCompilerQualificationCertificateNo') },
                 { name: '编制日期', value: getValueByKey(info, 'compilationTime'), type: TYPE.DATE},
                 { name: '复核人', value: getValueByKey(info, 'tenderExaminer') },
-                { name: '复核人资格证号', value: getValueByKey(info, '') },
+                { name: '复核人资格证号', value: getValueByKey(info, 'tenderExaminerQualificationCertificateNo') },
                 { name: '复核日期', value: getValueByKey(info, 'reviewTime'), type: TYPE.DATE },
                 { name: '审核人', value: getValueByKey(info, 'tenderExaminer') },
                 { name: '审核人资格证号', value: getValueByKey(info, 'auditorNo') },
                 { name: '审核日期', value: getValueByKey(info, 'reviewTime'), type: TYPE.DATE },
 
                 { name: '投标总价', value: summary.totalCost, type: TYPE.DECIMAL },
-                { name: '工期', value: getValueByKey(info, '') },
-                { name: '投标担保金额', value: getValueByKey(info, '') },
-                { name: '质量承诺', value: getValueByKey(info, '') },
-                { name: '投标担保方式', value: getValueByKey(info, '') },
+                { name: '工期', value: getValueByKey(info, 'timeLimit') },
+                { name: '投标担保金额', value: getValueByKey(info, 'tenderGuaranteeAmount') },
+                { name: '质量承诺', value: getValueByKey(info, 'qualityCommitment') },
+                { name: '投标担保方式', value: getValueByKey(info, 'tenderGuaranteeMethod') },
 
                 { name: '造价软件品牌', value: '纵横公路云造价' },
                 { name: '造价软件版本', value: "Ver" + VERSION },