From 36a30a262c16b6c37be7d1817c46d6693a324cc4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 19 十二月 2024 13:15:57 +0800
Subject: [PATCH] 完成管理评审搬迁

---
 src/components/do/b1-ins-order/cable-config.vue |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/src/components/do/b1-ins-order/cable-config.vue b/src/components/do/b1-ins-order/cable-config.vue
index 575fc95..8e706c9 100644
--- a/src/components/do/b1-ins-order/cable-config.vue
+++ b/src/components/do/b1-ins-order/cable-config.vue
@@ -24,7 +24,7 @@
       <div class="search_thing" v-if="currentTab=='缁濈紭'">
         <div class="search_label">妫�楠屾爣鍑嗭細</div>
         <el-select v-model="insulating.standardMethodListId" placeholder="璇烽�夋嫨妫�楠屾爣鍑�" size="small"
-        @change="(value)=>methodChange(value)">
+        @change="(value)=>methodChange(value)" multiple>
           <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id">
           </el-option>
         </el-select>
@@ -32,7 +32,7 @@
       <div class="search_thing" v-if="currentTab=='鎶ゅ'">
         <div class="search_label">妫�楠屾爣鍑嗭細</div>
         <el-select v-model="sheath.standardMethodListId" placeholder="璇烽�夋嫨妫�楠屾爣鍑�" size="small"
-        @change="(value)=>methodChange(value)">
+        @change="(value)=>methodChange(value)" multiple>
           <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id">
           </el-option>
         </el-select>
@@ -56,7 +56,7 @@
           <template slot-scope="scope">
             <el-input size="small" placeholder="瑕佹眰鍊�" v-model="scope.row.ask" clearable type="textarea"
               :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row)"
-              v-if="active==1&&isAskOnlyRead"></el-input>
+              v-if="active==1"></el-input>
             <span v-else>{{ scope.row.ask }}</span>
           </template>
         </el-table-column>
@@ -86,12 +86,12 @@
         tree: '',
         standards: [],
         insulating: {
-          standardMethodListId: null,
+          standardMethodListId: [],
           insProduct: [],
           num: 1
         },
         sheath: {
-          standardMethodListId: null,
+          standardMethodListId: [],
           insProduct: []
         },
         isAskOnlyRead: false
@@ -177,15 +177,9 @@
     },
     methodChange(val) {
       if (val === null || val === '') return
-      let standard = this.standards.find(a => a.id === val)
-      if(standard!=null && standard.code==='濮旀墭瑕佹眰'){
-        this.isAskOnlyRead = true
-      }else{
-        this.isAskOnlyRead = false
-      }
       this.$axios.post(this.$api.standardTree.selectStandardProductList, {
         model: this.$parent.addObj.model,
-        standardMethodListId: val,
+        standardMethodListId: val.join(','),
         factory: this.tree + ' - '
       }, {
         headers: {

--
Gitblit v1.9.3