From a0eb3c8e9f2d145e94d8b6b8374d8233dcea86c2 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 05 九月 2023 14:53:11 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.65.113:9001/r/lims-before --- src/views/inspectionManagement/commissionInspection/addCommision.vue | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/views/inspectionManagement/commissionInspection/addCommision.vue b/src/views/inspectionManagement/commissionInspection/addCommision.vue index cbb7408..a68cbc8 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() { @@ -260,19 +262,7 @@ experiment: [], addway: '' }, - experList: [{ - key: '1', - label: '澶栬妫�鏌�' - }, { - key: '2', - label: '鍔ㄤ綔鐢靛帇璇曢獙' - }, { - key: '3', - label: '鐢甸樆绠℃硠婕忕數娴佽瘯楠�' - }, { - key: '4', - label: '缁濈紭閮ㄥ垎浜ゆ祦鑰愬帇璇曢獙' - }], + experList: [], sampleoptions: [], samplecodeoptions: [], model_spe_options: [], @@ -342,7 +332,6 @@ let res = await getContractsSampleInfo({ viewId }) - console.log(res.data); }, async getSampleName() { const res = await getSampleName() @@ -368,12 +357,16 @@ }, addInspection() { let exper = this.addPointerForm.experiment[0] - this.addPointerForm.addway = 1 for (let i = 1; i < this.addPointerForm.experiment.length; i++) { exper += ',' + this.addPointerForm.experiment[i] } this.addPointerForm.experiment = exper let tmp = this.addPointerForm + this.sampleoptions.forEach(a => { + if (a.key == tmp.sampleName) tmp.sampleName = a.value + }) + tmp.speName = tmp.addway + '-' + tmp.speName + tmp.addway = 1 this.detectionInfo.push(tmp) this.dialogueFormVisible = false this.addPointerForm = { @@ -384,7 +377,8 @@ samplesNumber: '', remarks: '', experiment: [], - addway: '' + addway: '', + speName: '' } }, async submitInspection() { @@ -406,7 +400,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) { @@ -444,6 +439,11 @@ return item.name }) }) + this.model_sta_options.forEach(a => { + if (a.key == val) { + this.addPointerForm.speName = a.value + } + }) }, getContractsSampleInfo() { getContractsSampleInfo({ @@ -467,7 +467,7 @@ } this.detectionInfo = res.data.linkDetectionList }) - } + }, } } </script> -- Gitblit v1.9.3