linwenxin 4 mesiacov pred
rodič
commit
5def9aeb62

+ 29 - 2
src/views/mallManagement/purchaseScheduleManagement/purchasePlanAdjustment/index.vue

@@ -121,7 +121,27 @@ export default {
     },
     // 更多参数
     moreParameters() {
-      return []
+      return [
+        {
+          name: '状态',
+          key: 'status',
+          value: '',
+          conditions: [
+            {
+              label: '已保存',
+              value: 'SAVE'
+            },
+            {
+              label: '审核通过',
+              value: 'OK'
+            },
+            {
+              label: '全部',
+              value: ''
+            }
+          ]
+        }
+      ]
     }
   },
   methods: {
@@ -145,7 +165,14 @@ export default {
     }),
     // 列表请求函数
     getList(p, cb) {
-      return goodsAdjustPlanList(p)
+      var pam = JSON.parse(JSON.stringify(p))
+      try {
+        if (pam.status) {
+          pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
+        }
+        cb && cb(pam)
+        return goodsAdjustPlanList(pam)
+      } catch (err) {}
     },
     // 列表导出函数
     exportList: goodsAdjustPlanListExport,