Browse Source

采购订单生成-退回需求增加判断
:已关闭状态不可退回

002390 1 year ago
parent
commit
3538f4f291
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/purchase/task/tui-hui-xu-qiu/index.vue

+ 6 - 1
src/views/purchase/task/tui-hui-xu-qiu/index.vue

@@ -20,7 +20,12 @@ export default {
   computed: {
     disabled: {
       get() {
-        return !this.selectData.length;
+        if (this.selectData.length > 0) {
+          // status: '4' 已关闭
+          let close = this.selectData.findIndex((item) => item.status === "4");
+          return close !== -1;
+        }
+        return true;
       },
       set() {},
     },