From c720c2a6eb50796876cae4b18b37b54e9a99ea60 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 09 十二月 2024 16:14:28 +0800
Subject: [PATCH] 电路试验互调数采

---
 src/components/do/b1-inspect-order-plan/circuit-parameters1.vue |   60 ++++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 36 insertions(+), 24 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/circuit-parameters1.vue b/src/components/do/b1-inspect-order-plan/circuit-parameters1.vue
index 8c83ab2..f38bd20 100644
--- a/src/components/do/b1-inspect-order-plan/circuit-parameters1.vue
+++ b/src/components/do/b1-inspect-order-plan/circuit-parameters1.vue
@@ -36,9 +36,8 @@
       <el-col :span="7">
         <div style="display: flex;align-items: center;justify-content: flex-end;flex-wrap: wrap;" class="btns" v-if="!isLook">
           <el-button type="primary" size="small" @click="addList(allBandList,'棰戞')" :disabled="state>1" style="margin: 4px;">娣诲姞棰戞</el-button>
-          <el-button size="small" @click="deleteList(allBandList.length-1,allBandList,'鍒犻櫎棰戞')" :disabled="state>1" style="margin: 4px;">鍒犻櫎棰戞</el-button>
-          <el-button type="primary" size="small" @click="addList(angleList)" :disabled="state>1" style="margin: 4px;">娣诲姞瑙掑害</el-button>
-          <el-button size="small" @click="deleteList(angleList.length-1,angleList)" :disabled="state>1" style="margin: 4px;">鍒犻櫎瑙掑害</el-button>
+          <el-button type="success" size="small" @click="addList(angleList)" :disabled="state>1" style="margin: 4px;">娣诲姞瑙掑害</el-button>
+          <el-button size="small" @click="deleteList(angleList.length-1,angleList)" :disabled="state>1" style="margin: 4px;" type="danger">鍒犻櫎瑙掑害</el-button>
         </div>
       </el-col>
     </el-row>
@@ -70,8 +69,9 @@
             :value="item.value">
           </el-option>
         </el-select>
+        <el-button size="small" @click="deleteList(y,allBandList,'鍒犻櫎棰戞')" :disabled="state>1" style="margin-left: 16px;" type="danger">鍒犻櫎棰戞</el-button>
         <el-button type="primary" size="small" @click="addList(h.projectList,'浜掕皟')" style="margin-left: 16px;" :disabled="state>1" v-show="!isLook&&intermodulationNum>0">娣诲姞浜掕皟</el-button>
-        <el-button size="small" @click="deleteList(0,h.projectList,'浜掕皟')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0">鍒犻櫎浜掕皟</el-button>
+        <!-- <el-button size="small" @click="deleteList(0,h.projectList,'浜掕皟')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0">鍒犻櫎浜掕皟</el-button> -->
         <el-button type="primary" size="small" @click="save(h,y)" :disabled="state>1" :loading="loading[y]" v-show="!isLook">淇� 瀛�</el-button>
       </div>
       <el-divider></el-divider>
@@ -86,7 +86,7 @@
               <div style="text-align: center;">{{ n.unit }}</div>
             </el-col>
             <el-col :span="2">
-              <div style="text-align: center;" v-html="n.tell"></div>
+              <div style="text-align: center;" v-html="n.ask"></div>
             </el-col>
             <el-col :span="16">
               <div class="content" style="text-align: center;width: 100%;overflow-x: auto;">
@@ -127,7 +127,7 @@
               <div style="text-align: center;">{{ n.unit }}</div>
             </el-col>
             <el-col :span="2">
-              <div style="text-align: center;" v-html="n.tell"></div>
+              <div style="text-align: center;" v-html="n.ask"></div>
             </el-col>
             <el-col :span="16">
               <div class="content" style="text-align: center;width: 100%;overflow-x: auto;">
@@ -145,6 +145,7 @@
                             :value="item.value">
                           </el-option>
                         </el-select>
+                        <el-button type="danger" icon="el-icon-delete" circle size="small" @click="deleteList(j,h.projectList,'浜掕皟')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0" style="margin-left: 20px;"></el-button>
                       </div>
                     </td>
                   </tr>
@@ -189,7 +190,7 @@
               <div style="text-align: center;">{{ n.unit }}</div>
             </el-col>
             <el-col :span="2">
-              <div style="text-align: center;" v-html="n.tell"></div>
+              <div style="text-align: center;" v-html="n.ask"></div>
             </el-col>
             <el-col :span="16">
               <div class="content" style="text-align: center;width: 100%;overflow-x: auto;">
@@ -235,7 +236,7 @@
               <div style="text-align: center;">{{ n.unit }}</div>
             </el-col>
             <el-col :span="2">
-              <div style="text-align: center;" v-html="n.tell"></div>
+              <div style="text-align: center;" v-html="n.ask"></div>
             </el-col>
             <el-col :span="17">
               <div class="content" style="text-align: center;width: 100%;overflow-x: auto;">
@@ -302,7 +303,7 @@
         {
           name:'鐢靛帇椹绘尝姣�',
           unit:'/',
-          tell:'鈮�1.45',
+          ask:'鈮�1.45',
           result:'',
           conclusion:'鍚堟牸',
           portList:[],
@@ -312,7 +313,7 @@
         {
           name:'鍚屾瀬鍖栭殧绂诲害',
           unit:'dB',
-          tell:'鈮�1.45',
+          ask:'鈮�1.45',
           result:'',
           conclusion:'鍚堟牸',
           portList:[],
@@ -323,7 +324,7 @@
           name:'浜掕皟',
           band:'2100MHz',
           unit:'dB',
-          tell:'鈮�1.45',
+          ask:'鈮�1.45',
           result:'',
           conclusion:'鍚堟牸',
           portList:[],
@@ -333,7 +334,7 @@
         {
           name:'鍋忓樊',
           unit:'dB',
-          tell:'鈮�1.45',
+          ask:'鈮�1.45',
           result:'',
           conclusion:'鍚堟牸',
           portList:[],
@@ -344,7 +345,7 @@
           name:'鏈�澶ц�﹀悎搴�',
           unit:'dB',
           band:'2100MHz',
-          tell:'鈮�1.45',
+          ask:'鈮�1.45',
           result:'',
           conclusion:'鍚堟牸',
           portList:[],
@@ -479,19 +480,19 @@
                   this.angleList = angleList
                   this.upTemplateState = false;
                 }
-                let tell = ''
-                if(item.tell.includes(',')){
-                  item.tell.split(',').forEach((m,i)=>{
-                    tell = tell + m+ (i==item.tell.split(',').length-1?'':'<br/>')
+                let ask = ''
+                if(item.ask.includes(',')){
+                  item.ask.split(',').forEach((m,i)=>{
+                    ask = ask + m+ (i==item.ask.split(',').length-1?'':'<br/>')
                   })
                 }else{
-                  tell = item.tell
+                  ask = item.ask
                 }
-                console.log(tell)
+                console.log(ask)
                 let obj = {
                   inspectionItemSubclass: item.inspectionItemSubclass,
                   unit:item.unit,
-                  tell:tell,
+                  ask:ask,
                   result:n.result,
                   id:item.id,
                   often:n.often,
@@ -581,11 +582,11 @@
       this.upTemplateState = false;
       if(list.length>1){
         if(type=='浜掕皟'){
-          let index = null;
+          // let index = null;
           let num = 0;
           list.forEach((m,i)=>{
             if(m.inspectionItemSubclass.includes('浜掕皟')){
-              index = i;
+              // index = i;
               num++
             }
           })
@@ -773,8 +774,8 @@
       this.$delete(this.loading, y)
       this.$set( this.loading, y, true)
       this.$axios.post(this.$api.insOrderPlan.saveInsContext2, {
-        orderId:this.orderId,
-        sampleId:this.sampleId,
+        // orderId:this.orderId,
+        sampleId:this.orderId,
         sonLaboratory:h.projectList[0].sonLaboratory,
         frequency:h.band,
         insProductResult2s:arr
@@ -797,6 +798,17 @@
         console.log(err)
       })
     },
+    saveAll(){
+      if(this.allBandList.find(m=>!m.band)){
+        this.$message.error('璇峰厛濉啓棰戞')
+        return false
+      }else{
+        this.allBandList.forEach((h,j)=>{
+          this.save(h,j)
+        })
+        return true
+      }
+    },
     // 鏇存柊妯℃澘
     upTemplate(obj){
       this.upTemplateState = true;

--
Gitblit v1.9.3