From 06205a1b49435f32b17b0a9e9673e9fa8ac28fda Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期四, 04 一月 2024 10:57:21 +0800
Subject: [PATCH] 优化

---
 jcdm-ui/src/views/main/om/productionOrde/index.vue |   20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/jcdm-ui/src/views/main/om/productionOrde/index.vue b/jcdm-ui/src/views/main/om/productionOrde/index.vue
index 046384d..17ac58c 100644
--- a/jcdm-ui/src/views/main/om/productionOrde/index.vue
+++ b/jcdm-ui/src/views/main/om/productionOrde/index.vue
@@ -576,25 +576,7 @@
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
-      // this.ids = selection.map(item => item.id)
-      // const statusSize = selection.map(item => item.orderStatus)
-      // const intArr = statusSize.map(str => parseInt(str));
-      // const sum = intArr.reduce((a, b) => a + b, 0);
-      // this.single = selection.length!==1
-      // this.multiple = !selection.length
-      // if(selection[0].orderStatus!== '1'||sum!==selection.length){
-      //   this.single = true
-      //   this.multiple = true
-      // }
-      // if(selection.length > 1){
-      //   this.move = true
-      // }else {
-      //   this.move = false
-      // }
-
       this.ids = selection.map(item => item.id)
-      // this.single = selection.length!==1
-      // this.multiple = !selection.length
       this.move = selection.length!==1
       if(!selection.length){
         this.single = true
@@ -609,12 +591,14 @@
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
+      this.initWorkshop();
       this.reset();
       this.open = true;
       this.titleName = "娣诲姞鐢熶骇宸ュ崟";
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {
+      this.initWorkshop();
       this.reset();
       const id = row.id || this.ids
       getProductionOrde(id).then(response => {

--
Gitblit v1.9.3