lilei 2 anni fa
parent
commit
1a7bc89f80

+ 7 - 1
src/components/Select/index.js

@@ -29,6 +29,12 @@ export default {
     isEnable: { // 是否只获取已启用的数据
       type: Boolean,
       default: false
+    },
+    notIn: {
+      type: Array,
+      default: function(){
+        return []
+      }
     }
   }),
   created () {
@@ -41,7 +47,7 @@ export default {
       isEnable: _this.isEnable ? 1 : undefined
     }).then(res => {
       if (res.status == 200) {
-        _this.dataList = res.data.list
+        _this.dataList = res.data.list.filter(item => _this.notIn.indexOf(item.code)<0)
       }
     })
   },

+ 1 - 0
src/views/salesReturnManagement/receiveCheck/list.vue

@@ -27,6 +27,7 @@
                   ref="billStatus"
                   id="receiveCheck-billStatus"
                   code="SALES_RETURN_BILL_STATUS"
+                  :notIn="['WAIT_SUBMIT', 'WAIT_AUDIT', 'AUDIT_REJECT', 'CANCEL']"
                   placeholder="请选择业务状态"
                   allowClear></v-select>
               </a-form-item>