Browse Source

fix: 导出增加工单状态

zh 2 years ago
parent
commit
c851486705
3 changed files with 909 additions and 456 deletions
  1. 898 453
      package-lock.json
  2. 1 1
      package.json
  3. 10 2
      src/views/supply/engin/home_list.vue

File diff suppressed because it is too large
+ 898 - 453
package-lock.json


+ 1 - 1
package.json

@@ -15,7 +15,7 @@
     "test:ci": "npm run lint && npm run test:unit"
   },
   "dependencies": {
-    "@zjlib/element-plugins": "^2.3.8",
+    "@zjlib/element-plugins": "^2.4.4",
     "axios": "0.18.1",
     "clipboard": "^2.0.8",
     "concurrent-tasks": "^1.0.7",

+ 10 - 2
src/views/supply/engin/home_list.vue

@@ -334,7 +334,7 @@ export default {
         }
       }
       try {
-        let res = await v2EnginOrderHomeCountList(params)
+        const res = await v2EnginOrderHomeCountList(params)
         this.numSum.totalC = res.data.totalC
         this.numSum.amountC = res.data.amountC
         this.numSum.totalEC = res.data.totalEC
@@ -345,7 +345,15 @@ export default {
       return v2EnginOrderHomeList(params)
     },
     // 列表导出函数
-    exportList: v2EnginOrderHomeListExport,
+    exportList(...p) {
+      if (this.orderStatusParam !== '') {
+        p[0] = {
+          ...p[0],
+          params: [{ param: 'a.examine_status', compare: '=', value: this.orderStatusParam }, ...p[0].params]
+        }
+      }
+      return v2EnginOrderHomeListExport(...p)
+    },
     // 表格列解析渲染数据更改
     columnParsing(item, defaultData) {
       // console.log(item)

Some files were not shown because too many files changed in this diff