From d975fc4756806f5b51f006c19c33571b9b8c0b3b Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 20 十二月 2024 09:30:19 +0800
Subject: [PATCH] 修改下单时要求值输入限制

---
 src/components/do/b1-ins-order/cable-config.vue |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/src/components/do/b1-ins-order/cable-config.vue b/src/components/do/b1-ins-order/cable-config.vue
index 897a0b6..8e706c9 100644
--- a/src/components/do/b1-ins-order/cable-config.vue
+++ b/src/components/do/b1-ins-order/cable-config.vue
@@ -2,7 +2,7 @@
   <div class="ins_order_config">
     <div>
       <el-row class="title">
-        <el-col :span="6" style="padding-left: 20px;">鐢电紗閰嶇疆</el-col>
+        <el-col :span="6" style="padding-left: 20px;text-align: left;">鐢电紗閰嶇疆</el-col>
         <el-col :span="18" style="text-align: right;">
           <el-button size="medium" @click="outConfig">
             <span style="color: #3A7BFA;">杩� 鍥�</span>
@@ -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