linwenxin пре 4 месеци
родитељ
комит
362c9427ad
1 измењених фајлова са 44 додато и 2 уклоњено
  1. 44 2
      src/views/salesPurchasing/merchandisePurchaseReturn/index.vue

+ 44 - 2
src/views/salesPurchasing/merchandisePurchaseReturn/index.vue

@@ -173,7 +173,45 @@ export default {
     },
     // 更多参数
     moreParameters() {
-      return []
+      if (this.pageType == 'list') {
+        return [
+          {
+            name: '状态',
+            key: 'status',
+            value: '',
+            conditions: [
+              {
+                label: '提交',
+                value: 'SUBMIT'
+              },
+              {
+                label: '保存',
+                value: 'SAVE'
+              },
+              {
+                label: '审核通过',
+                value: 'OK'
+              },
+              {
+                label: '待审核',
+                value: 'WAIT'
+              },
+              {
+                label: '驳回',
+                value: 'FAIL'
+              },
+              {
+                label: '全部',
+                value: ''
+              }
+            ]
+          }
+        ]
+      } else if (this.pageType == 'goodsder') {
+        return []
+      } else if (this.pageType == 'codeder') {
+        return []
+      }
     },
     formItemsFeicTes() {
       return [
@@ -241,7 +279,11 @@ export default {
     // 列表请求函数
     getList(p, cb) {
       if (this.pageType == 'list') {
-        return goodsPurchaseRetList(p)
+        var pam = JSON.parse(JSON.stringify(p))
+        if (pam.status) {
+          pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
+        }
+        return goodsPurchaseRetList(pam)
       } else if (this.pageType == 'goodsder') {
         return goodsPurchaseRetItemList(p)
       } else if (this.pageType == 'codeder') {