From 8876c234904459d038a2b282b3fdc30e006f9925 Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期日, 18 八月 2024 14:21:40 +0800
Subject: [PATCH] fix8-气动打码

---
 jcdm-ui/src/views/main/om/productionOrde/index.vue |   47 +++++++++++++++++++++++++++++++++++------------
 1 files changed, 35 insertions(+), 12 deletions(-)

diff --git a/jcdm-ui/src/views/main/om/productionOrde/index.vue b/jcdm-ui/src/views/main/om/productionOrde/index.vue
index e4973c5..2d160cb 100644
--- a/jcdm-ui/src/views/main/om/productionOrde/index.vue
+++ b/jcdm-ui/src/views/main/om/productionOrde/index.vue
@@ -3,7 +3,7 @@
     <div v-if="!showDetailFlag">
     <el-card class="box-card">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label-width="100" label="鐢熶骇閫氱煡鍗�" prop="productName">
+      <el-form-item label-width="100" label="鐢熶骇閫氱煡鍗�" prop="productionNotice">
         <el-input v-model="queryParams.productionNotice" placeholder="璇疯緭鍏ョ敓浜ч�氱煡鍗�" clearable @keyup.enter.native="handleQuery"/>
       </el-form-item>
       <el-form-item label-width="100" label="宸ュ巶缂栧彿" prop="workshopCode">
@@ -76,7 +76,7 @@
           plain
           icon="el-icon-edit"
           size="mini"
-          :disabled="single"
+          :disabled="multiple"
           @click="handleUpdate"
           v-hasPermi="['om:productionOrde:edit']"
         >淇敼</el-button>
@@ -679,20 +679,43 @@
     },
     /** 澶氶�夋閫変腑鏁版嵁 */
     handleSelectionChange(selection) {
+      console.log('this.single1111',this.single)
+      console.log('selecion',selection)
       this.ids = selection.map(item => item.id)
-      this.move = selection.length!==1
-      if(!selection.length){
+      if (selection.length >1){
+        this.single = false
+        this.multiple = true
+      } else if (selection.length === 1){
+        this.single = true
+        this.multiple = false
+      } else {
         this.single = true
         this.multiple = true
-      }else {
-        if(selection[0].orderStatus === '1' && selection.length === 1){
-          this.single = false
-          this.multiple = false
-        }
-        if(selection[0].orderStatus === '2' && selection.length === 1){
-          this.singleSelect = selection[0]
-        }
       }
+      // let statusList = selection.filter(x => x.orderStatus === "1")
+      // console.log('statusList',statusList)
+      // if (selection.length === statusList.length){
+      //   //寰呯敓鎴�
+      //   this.single = false
+      // }
+
+      // this.ids = selection.map(item => item.id)
+      // this.move = selection.length!==1
+      // if(!selection.length){
+      //   console.log('1')
+      //   this.single = true
+      //   this.multiple = true
+      // } else {
+      //   if(selection[0].orderStatus === '1' && selection.length === 1){
+      //     console.log('2')
+      //     this.single = false
+      //     this.multiple = false
+      //   }
+      //   if(selection[0].orderStatus === '2' && selection.length === 1){
+      //     console.log('3',this.single)
+      //     this.singleSelect = selection[0]
+      //   }
+      // }
     },
 
     /** 鏂板鎸夐挳鎿嶄綔 */

--
Gitblit v1.9.3