linwenxin 4 kuukautta sitten
vanhempi
commit
7292f11170

+ 33 - 2
src/views/mallManagement/purchaseScheduleManagement/purchaseSchedule/index.vue

@@ -129,7 +129,31 @@ export default {
     },
     // 更多参数
     moreParameters() {
-      return []
+      return [
+        {
+          name: '状态',
+          key: 'status',
+          value: '',
+          conditions: [
+            {
+              label: '已保存',
+              value: 'SAVE'
+            },
+            {
+              label: '待审核',
+              value: 'WAIT'
+            },
+            {
+              label: '审核通过',
+              value: 'OK'
+            },
+            {
+              label: '全部',
+              value: ''
+            }
+          ]
+        }
+      ]
     }
   },
   watch: {
@@ -178,7 +202,14 @@ export default {
     }),
     // 列表请求函数
     getList(p, cb) {
-      return goodsPlanItemList(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 goodsPlanItemList(pam)
+      } catch (err) {}
     },
     // 列表导出函数
     exportList: goodsPlanListExport,

+ 39 - 5
src/views/salesPurchasing/goodsPurchasedStored/index.vue

@@ -196,10 +196,6 @@ export default {
         return []
       }
     },
-    // 更多参数
-    moreParameters() {
-      return []
-    },
     formItemsFeicTes() {
       return [
         {
@@ -253,6 +249,40 @@ export default {
           }
         }
       ]
+    },
+    // 更多参数
+    moreParameters() {
+      if (this.pageType == 'list') {
+        return [
+          {
+            name: '状态',
+            key: 'status',
+            value: '',
+            conditions: [
+              {
+                label: '已保存',
+                value: 'SAVE'
+              },
+              {
+                label: '审核通过',
+                value: 'OK'
+              },
+              {
+                label: '审核驳回',
+                value: 'FAIL'
+              },
+              {
+                label: '全部',
+                value: ''
+              }
+            ]
+          }
+        ]
+      } else if (this.pageType == 'goodsder') {
+        return []
+      } else if (this.pageType == 'codeder') {
+        return []
+      }
     }
   },
   watch: {
@@ -348,7 +378,11 @@ export default {
     // 列表请求函数
     getList(p, cb) {
       if (this.pageType == 'list') {
-        return goodsPurchaseList(p)
+        var pam = JSON.parse(JSON.stringify(p))
+        if (pam.status) {
+          pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
+        }
+        return goodsPurchaseList(pam)
       } else if (this.pageType == 'goodsder') {
         return goodsPurchaseItemList(p)
       } else if (this.pageType == 'codeder') {