Ver Fonte

提交采购申请添加生产计划去掉状态查询条件

PC-202503171525\Administrator há 1 ano atrás
pai
commit
d7dc2b37b7

+ 8 - 7
src/views/materialPlan/components/produceOrder.vue

@@ -369,12 +369,13 @@ export default {
 
     /* 刷新表格 */
     reload(where) {
-      if (where != undefined && where.status.length > 0) {
-        this.$nextTick(() => {
-          if (this.$refs.table && this.$refs.table.reload)
-            this.$refs.table.reload({ page: 1, where: where });
-        })
-      }
+      this.$nextTick(() => {
+        if (this.$refs.table && this.$refs.table.reload)
+          this.$refs.table.reload({ page: 1, where: where });
+      })
+      // if (where != undefined && where.status.length > 0) {
+      //
+      // }
     },
 
     handleClose() {
@@ -416,4 +417,4 @@ export default {
   text-align: center;
   padding: 10px 0;
 }
-</style>
+</style>

+ 12 - 12
src/views/materialPlan/components/saleOrderPop.vue

@@ -50,18 +50,18 @@ export default {
           align: 'center',
           showOverflowTooltip: true,
           minWidth: 120,
-          // filters: [
-          //   { value: '1', text: '未采购' },
-          //   { value: '2', text: '已采购' },
-          // ],
-          // filterMethod: (value, row, column) => {
-          //   if (value == row.purchaseType) {
-          //     return row;
-          //   }
-          // },
-          // formatter: (row) => {
-          //   return row.purchaseType == '2' ? '已采购' : '未采购';
-          // }
+          filters: [
+            { value: '1', text: '未采购' },
+            { value: '2', text: '已采购' },
+          ],
+          filterMethod: (value, row, column) => {
+            if (value == row.purchaseType) {
+              return row;
+            }
+          },
+          formatter: (row) => {
+            return row.purchaseType == '2' ? '已采购' : '未采购';
+          }
         },
         {
           prop: 'code',

+ 3 - 3
src/views/productionPlan/components/productionPlan-search.vue

@@ -292,7 +292,7 @@ export default {
     activeName: {
       handler() {
         if (this.activeName) {
-          this.where.status = this.statusOpt[this.activeName][0].value;
+          // this.where.status = this.statusOpt[this.activeName][0].value;
           this.reset();
         }
       },
@@ -311,13 +311,13 @@ export default {
         }
       }
 
-      where.status = where.status.split(',');
+      // where.status = where.status.split(',');
       this.$emit('search', where);
     },
     /*  重置 */
     reset() {
       this.where = { ...this.defaultWhere };
-      this.where.status = this.statusOpt[this.activeName][0].value;
+      // this.where.status = this.statusOpt[this.activeName][0].value;
       this.search();
     }
   }