From b22ca897c863fc34f6f8f9a13c3e303f9f34c180 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 28 五月 2024 15:19:23 +0800
Subject: [PATCH] 光纤配置对接检验项目信息部分字段

---
 src/components/do/b1-ins-order/add.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 03ffe0e..440208c 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -92,7 +92,7 @@
 
 <template>
   <div class="ins_order_add">
-    <div>
+    <div v-show="!configShow">
       <el-row class="title">
         <el-col :span="6" style="padding-left: 20px;">濮旀墭鍗曚俊鎭�</el-col>
         <el-col :span="18" style="text-align: right;">
@@ -107,6 +107,7 @@
           <el-button size="medium" @click="templateDia=true" v-show="active==1">
             <span style="color: #3A7BFA;">淇濆瓨妯℃澘</span>
           </el-button>
+          <el-button size="medium" type="primary" @click="openConfig">鍏夌氦閰嶇疆</el-button>
           <el-button size="medium" type="primary" @click="save" :loading="saveLoad" v-show="active==1">鎻愪氦</el-button>
           <!-- 瀹℃牳 -->
           <el-button size="medium" @click="upInsOrderOfState(2)" :loading="saveLoad" v-show="active==3"
@@ -119,7 +120,7 @@
         </el-col>
       </el-row>
     </div>
-    <div class="search">
+    <div class="search" v-show="!configShow">
       <el-row>
         <el-col class="search_thing" :span="6">
           <div class="search_label">濮旀墭缂栧彿锛�</div>
@@ -277,7 +278,7 @@
         </el-col>
       </el-row>
     </div>
-    <div>
+    <div v-show="!configShow">
       <el-table class="el-table sampleTable" ref="sampleTable" :data="sampleList" height="250px" tooltip-effect="dark"
         border @selection-change="selectSample" highlight-current-row @row-click="rowClick" style="margin-top: 10px;">
         <el-table-column type="selection" width="60" :selectable="selectable" v-if="active==1"></el-table-column>
@@ -539,14 +540,17 @@
         </el-row>
       </span>
     </el-dialog>
+    <fiberOpticConfig :currentId="currentId" v-if="configShow"/>
   </div>
 </template>
 
 <script>
   import ValueTable from '../../tool/value-table.vue'
+  import fiberOpticConfig from './fiberoptic-config.vue'
   export default {
     components: {
-      ValueTable
+      ValueTable,
+      fiberOpticConfig
     },
     props: {
       active: {
@@ -665,7 +669,8 @@
         noLoading: false,
         orderType: [],
         filters: [],
-        formType: []
+        formType: [],
+        configShow: false
       }
     },
     watch: {
@@ -1317,6 +1322,13 @@
       filterHandler(value, row, column) {
         const property = column['property'];
         return row[property] === value;
+      },
+      openConfig(){
+        if(this.sampleIds.length===0){
+          this.$message.error("鏈�夋嫨鏍峰搧")
+          return
+        }
+        this.configShow = true
       }
     }
   }

--
Gitblit v1.9.3