From ef1c0d5baa9d766dfe81a5fa972a6f83225536da Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期三, 30 八月 2023 18:06:25 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.110.209:9001/r/lims-before --- src/views/inspectionManagement/commissionInspection/addCommision.vue | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/views/inspectionManagement/commissionInspection/addCommision.vue b/src/views/inspectionManagement/commissionInspection/addCommision.vue index 42dbefa..00c25ea 100644 --- a/src/views/inspectionManagement/commissionInspection/addCommision.vue +++ b/src/views/inspectionManagement/commissionInspection/addCommision.vue @@ -22,7 +22,8 @@ <el-table-column type="index" label="搴忓彿" min-width="10%" /> <el-table-column prop="sampleNumber" label="鏍峰搧缂栧彿" min-width="8%" /> <el-table-column prop="sampleName" label="鏍峰搧鍚嶇О" min-width="10%" /> - <el-table-column prop="specificationsModels" label="瑙勬牸鍨嬪彿" min-width="10%" /> + <el-table-column prop="speName" label="瑙勬牸鍨嬪彿" min-width="10%" > + </el-table-column> <el-table-column prop="unit" label="鍗曚綅" min-width="8%" /> <el-table-column prop="samplesNumber" label="鏁伴噺" min-width="8%" /> <!-- <el-table-column prop="addway" label="娣诲姞鏂瑰紡" min-width="8%"> @@ -228,7 +229,8 @@ addInspection, isIfViewUUID, getProductList, - getContractsSampleInfo + getContractsSampleInfo, + getSpecificationsName } from '@/api/inspection/commisioninspection' export default { data() { @@ -315,6 +317,7 @@ this.viewId = this.$route.params.viewId this.$store.commit('settings/SAVE_LINK', this.viewId) this.getlink(this.$route.params.viewId) + this.getContractsSampleInfo(this.$route.params.viewId) }, mounted() { this.getSampleName() @@ -335,6 +338,11 @@ } else { this.getContractsSampleInfo() } + }) + }, + async getContractsSampleInfo(viewId) { + let res = await getContractsSampleInfo({ + viewId }) }, async getSampleName() { @@ -377,7 +385,8 @@ samplesNumber: '', remarks: '', experiment: [], - addway: '' + addway: '', + speName: '' } }, async submitInspection() { @@ -399,7 +408,8 @@ reportNumber: parseInt(this.infoForm.num), sampleDeliveryMode: sampledeliveryway, sampleDeliveryPhone: this.infoForm.sendertel, - sampleSender: this.infoForm.sender + sampleSender: this.infoForm.sender, + speName: this.infoForm.speName }) this.infoForm.commisioncode = res.data if (res.data) { @@ -437,11 +447,17 @@ return item.name }) }) + this.model_sta_options.forEach(a=>{ + if(a.key == val){ + this.addPointerForm.speName = a.value + } + }) }, getContractsSampleInfo() { getContractsSampleInfo({ viewId: this.viewId }).then(res => { + if (res.data == null) return this.infoForm = { commisioncode: res.data.entrustCoding, deadline: res.data.completionDeadline, @@ -459,7 +475,7 @@ } this.detectionInfo = res.data.linkDetectionList }) - } + }, } } </script> -- Gitblit v1.9.3