소스 검색

feat: 池州导入接口,导入字段“清单章节号”

vian 5 년 전
부모
커밋
03c6d5f59b
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      modules/all_models/bills.js
  2. 1 0
      web/building_saas/standard_interface/import/anhui_chizhou.js

+ 1 - 0
modules/all_models/bills.js

@@ -20,6 +20,7 @@ let billsSchema = new Schema({
   chapterID: Number,
   billsLibId: Number,
   code: String,
+  sectionCode: String, // 清单章节号,池州接口需要
   fullCode: String,
   type: {
     type: Number,

+ 1 - 0
web/building_saas/standard_interface/import/anhui_chizhou.js

@@ -98,6 +98,7 @@ INTERFACE_IMPORT = (() => {
       // 第100-700章的数据
       if (oneSevenBills) {
         oneSevenBills.children = extractItemsRecur(oneSevenSrc, [['工程量清单明细']], (src) => ({
+          sectionCode: getValue(src, ['_清单章节号']),
           code: getValue(src, ['_子目号']),
           name: getValue(src, ['_子目名称']),
           unit: getValue(src, ['_单位']),