فهرست منبع

fix: 信息价类别总表缺少编码列

vian 1 سال پیش
والد
کامیت
021b13a803
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 2
      modules/price_info_class/facade/index.js
  2. 1 0
      web/maintain/price_info_class/js/summarySheet.js

+ 2 - 2
modules/price_info_class/facade/index.js

@@ -108,10 +108,10 @@ async function exportExcelData() {
     // 整理数据
     let classData = [];
     for (const tmp of items) {
-        const item = [tmp.class || '', tmp.classCode || '', tmp.name || '', tmp.specs || '', tmp.unit || ''];
+        const item = [tmp.class || '', tmp.classCode || '', tmp.code || '', tmp.name || '', tmp.specs || '', tmp.unit || ''];
         classData.push(item);
     }
-    const excelData = [['class', '别名编码', '材料名称', '规格型号', '单位']];
+    const excelData = [['class', '别名编码', '编码', '材料名称', '规格型号', '单位']];
     excelData.push.apply(excelData, classData);
 
     return excelData;

+ 1 - 0
web/maintain/price_info_class/js/summarySheet.js

@@ -92,6 +92,7 @@ const SUMMARY_BOOK = (() => {
     header: [
       { headerName: 'class', headerWidth: 100, dataCode: 'class', dataType: 'String', hAlign: 'center', vAlign: 'center' },
       { headerName: '别名编码', headerWidth: 100, dataCode: 'classCode', dataType: 'String', hAlign: 'left', vAlign: 'center', formatter: "@" },
+      { headerName: '编码', headerWidth: 100, dataCode: 'code', dataType: 'String', hAlign: 'left', vAlign: 'center', formatter: "@" },
       { headerName: '材料名称', headerWidth: 350, dataCode: 'name', dataType: 'String', hAlign: 'left', vAlign: 'center' },
       { headerName: '规格型号', headerWidth: 200, dataCode: 'specs', dataType: 'String', hAlign: 'left', vAlign: 'center' },
       { headerName: '单位', headerWidth: 80, dataCode: 'unit', dataType: 'String', hAlign: 'center', vAlign: 'center' },