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 | 55 +++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 37 insertions(+), 18 deletions(-) diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue index eeffd82..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,7 +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="$parent.playOrder(4)">鍏夌氦閰嶇疆</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" @@ -120,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> @@ -246,27 +246,27 @@ </div> </el-col> <el-col class="search_thing" :span="6"> - <div class="search_label">宸ョ▼鍚嶇О锛�</div> + <div class="search_label"><span class="required-span">* </span>宸ョ▼鍚嶇О锛�</div> <div class="search_input"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.value1" :readonly="active>1"></el-input> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.engineering" :readonly="active>1"></el-input> </div> </el-col> <el-col class="search_thing" :span="6"> - <div class="search_label">宸ュ巶鍚嶇ОEN锛�</div> + <div class="search_label"><span class="required-span">* </span>宸ョ▼鍚嶇ОEN锛�</div> <div class="search_input"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.value2" :readonly="active>1"></el-input> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.engineeringEn" :readonly="active>1"></el-input> </div> </el-col> <el-col class="search_thing" :span="6"> - <div class="search_label">鐢熶骇鍗曚綅锛�</div> + <div class="search_label"><span class="required-span">* </span>鐢熶骇鍗曚綅锛�</div> <div class="search_input"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.value3" :readonly="active>1"></el-input> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.production" :readonly="active>1"></el-input> </div> </el-col> <el-col class="search_thing" :span="6"> - <div class="search_label">鐢熶骇鍗曚綅EN锛�</div> + <div class="search_label"><span class="required-span">* </span>鐢熶骇鍗曚綅EN锛�</div> <div class="search_input"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.value4" :readonly="active>1"></el-input> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="addObj.productionEn" :readonly="active>1"></el-input> </div> </el-col> <el-col class="search_thing" :span="6" style="align-items: flex-start;margin: 8px 0;"> @@ -278,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> @@ -540,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: { @@ -588,10 +591,10 @@ orderType: null, send: 1, formType: '閫佹', - value1: null, - value2: null, - value3: null, - value4: null, + engineering: null, + engineeringEn: null, + production: null, + productionEn: null, }, sample: { sampleCode: null, @@ -666,7 +669,8 @@ noLoading: false, orderType: [], filters: [], - formType: [] + formType: [], + configShow: false } }, watch: { @@ -755,6 +759,14 @@ this.$message.error('璇疯緭鍏ユ潵鏍锋柟寮�') } else if (!this.addObj.orderType) { this.$message.error('璇烽�夋嫨妫�楠岀被鍒�') + }else if (!this.addObj.engineering) { + this.$message.error('璇疯緭鍏ュ伐绋嬪悕绉�') + } else if (!this.addObj.engineeringEn) { + this.$message.error('璇疯緭鍏ュ伐绋嬪悕绉癊N') + }else if (!this.addObj.production) { + this.$message.error('璇疯緭鍏ョ敓浜у崟浣�') + }else if (!this.addObj.productionEn) { + this.$message.error('璇疯緭鍏ョ敓浜у崟浣岴N') } else if (this.sampleList.length < 1) { this.$message.error('璇锋坊鍔犱竴涓牱鍝�') } else if (!this.sampleList.every(m => m.sample)) { @@ -1310,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