From efcf450e8e7e375ef4ffe9f421ec0d34c5378180 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期四, 07 九月 2023 14:02:32 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.218.113:9001/r/lims-before --- src/views/inspectionManagement/commissionInspection/index.vue | 49 +++++++++++++++++++++++++++---------------------- 1 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/views/inspectionManagement/commissionInspection/index.vue b/src/views/inspectionManagement/commissionInspection/index.vue index b6dec7b..707c3b1 100644 --- a/src/views/inspectionManagement/commissionInspection/index.vue +++ b/src/views/inspectionManagement/commissionInspection/index.vue @@ -1,45 +1,45 @@ <template> <div> - <div v-if="!showDetail"> + <div> <div class="content-main"> <div class="top-bar"> <el-form ref="form" :inline="true" :model="searchData"> <el-form-item label="濮旀墭缂栧彿:" class="sermargin"> - <el-input v-model="searchData.code" class="input-form" placeholder="璇疯緭鍏�"> + <el-input size="small" v-model="searchData.code" class="input-form" placeholder="璇疯緭鍏�"> </el-input> </el-form-item> <el-form-item label="鏍峰搧鍚嶇О:" class="sermargin"> - <el-input v-model="searchData.name" class="input-form" placeholder="璇疯緭鍏�"> + <el-input size="small" v-model="searchData.name" class="input-form" placeholder="璇疯緭鍏�"> </el-input> </el-form-item> <el-form-item label="濮旀墭鍗曚綅:" style="margin-right: 20px;"> - <el-select v-model="searchData.department" placeholder="鍏ㄩ儴"> + <el-select v-model="searchData.department" placeholder="鍏ㄩ儴" size="small"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> </el-form-item> <el-form-item> - <el-button type="primary" @click="search">鏌ヨ</el-button> - <el-button type="primary" plain @click="reset">閲嶇疆</el-button> + <el-button type="primary" size="small" @click="search">鏌ヨ</el-button> + <el-button type="primary" size="small" plain @click="reset">閲嶇疆</el-button> </el-form-item> </el-form> <el-form> - <el-popover placement="left" width="350" trigger="click"> + <el-popover placement="left" width="410" trigger="click"> <div class="vue_qr_div"> <el-row> <el-col> <el-input v-model="view" readonly size="medium" style="width: 250px;margin-right: 10px;"></el-input> - <el-button size="small" type="primary" v-if="viewId==null" @click="viewDia=true">鐢熸垚</el-button> - <el-button size="small" type="primary" v-else-if="viewId!=null" @click="copy">澶嶅埗</el-button> + <el-button size="small" type="primary" @click="viewDia=true">鐢熸垚</el-button> + <el-button size="small" type="primary" @click="copy">澶嶅埗</el-button> </el-col> </el-row> <el-row style="margin-top: 10px;"> <el-col v-if="viewId==null">褰撳墠閾炬帴宸茶繃鏈燂紝璇风偣鍑荤敓鎴愭寜閽噸鏂扮敓鎴�</el-col> <el-col - v-else-if="viewId!=null">褰撳墠閾炬帴灏嗗湪{{(parseInt(viewTime)/60/60)>1?(parseInt(viewTime)/60/60).toFixed(1)+'灏忔椂':Math.round(parseInt(viewTime)/60)+'鍒嗛挓'}}鍚庤繃鏈�</el-col> + v-else-if="viewId!=null">褰撳墠閾炬帴灏嗗湪{{(parseInt(viewTime2)/60/60)>1?(parseInt(viewTime2)/60/60).toFixed(1)+'灏忔椂':Math.round(parseInt(viewTime2)/60)+'鍒嗛挓'}}鍚庤繃鏈�</el-col> </el-row> </div> - <el-button slot="reference" class="rightBtn" type="primary" @click="goToaddCommision">鏂板濮旀墭</el-button> + <el-button size="small" slot="reference" class="rightBtn" type="primary" @click="goToaddCommision">鏂板濮旀墭</el-button> </el-popover> </el-form> </div> @@ -73,7 +73,7 @@ <el-table-column prop="contacts" label="濮旀墭缂栧埗浜�" min-width="8%" /> <el-table-column prop="inspection_status" label="鐘舵��" min-width="8%"> <template slot-scope="scope"> - <div v-if="scope.row.inspection_status === 0"> + <div v-if="scope.row.inspection_status === 2"> <span style="color: green;">宸叉姤妫�</span> </div> <div v-else> @@ -97,9 +97,6 @@ </div> </div> </div> - </div> - <div v-else> - <router-view /> </div> <el-dialog title="閾炬帴鏃堕暱璁剧疆" :visible.sync="viewDia" width="30%"> <div> @@ -212,11 +209,11 @@ value: null }, { - label: '宸叉楠�', - value: 0 + label: '宸叉姤妫�', + value: 2 }, { - label: '寰呮楠�', + label: '鏈姤妫�', value: 1 } ], @@ -228,7 +225,15 @@ view: null, viewId: null, viewTime: 1, + viewTime2: 1, viewDia: false + } + }, + watch:{ + addReportDialog(newVal){ + if(newVal === false){ + this.resetForm("addInspectionForm"); + } } }, created() { @@ -246,7 +251,7 @@ this.addReportDialog = false }, checkSelect(row) { - if (row.type === 1) { + if (row.inspection_status === 2) { return false; } else { return true; @@ -469,9 +474,9 @@ selectViewUUID({ day: this.day }).then(res => { - this.view = `${this.vueIp}addCommision/${res.data.id}` + this.view = `${this.vueIp}/#/addCommision/${res.data.id}` this.viewId = res.data.id - this.viewTime = res.data.time + this.viewTime2 = res.data.time }) }, getViewId() { @@ -479,7 +484,7 @@ day: this.viewTime == null ? 1 : this.viewTime }).then(res => { this.viewId = res.data - this.view = `${this.vueIp}addCommision/${res.data.id}` + this.view = `${this.vueIp}/#/addCommision/${res.data.id}` this.viewDia = false this.$message.success('閾炬帴宸茬敓鎴愶紝鐐瑰嚮澶嶅埗鎸夐挳杩涜澶嶅埗') }) -- Gitblit v1.9.3