From 154d53ca0f4c9a3f1a8433ae4d458f65a81341dc Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 06 九月 2023 11:28:56 +0800
Subject: [PATCH] 	modified:   .env.development 	modified:   src/views/experiment/planAssignments/plan.vue 	modified:   src/views/inspectionManagement/commissionInspection/addCommision.vue 	modified:   src/views/inspectionManagement/commissionInspection/index.vue 	modified:   src/views/inspectionManagement/reportForInspection/index.vue 	modified:   src/views/laboratory/ledger/index.vue 	modified:   src/views/standardLibrary/index.vue

---
 src/views/inspectionManagement/commissionInspection/addCommision.vue |   46 ++++++++++++++++++++--------------------------
 1 files changed, 20 insertions(+), 26 deletions(-)

diff --git a/src/views/inspectionManagement/commissionInspection/addCommision.vue b/src/views/inspectionManagement/commissionInspection/addCommision.vue
index 306bafb..c077f91 100644
--- a/src/views/inspectionManagement/commissionInspection/addCommision.vue
+++ b/src/views/inspectionManagement/commissionInspection/addCommision.vue
@@ -22,10 +22,7 @@
 						<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%" >
-							<template slot-scope="scope">
-								
-							</template>
+						<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%" />
@@ -125,7 +122,7 @@
 								</el-col>
 								<el-col :span="5">
 									<el-form-item label="鎶ュ憡鏁帮細">
-										<el-input style="width: 200px;" v-model="infoForm.num" placeholder="璇疯緭鍏ユ姤鍛婃暟" autocomplete="off"
+										<el-input type="number" min="0" style="width: 200px;" v-model="infoForm.num" placeholder="璇疯緭鍏ユ姤鍛婃暟" autocomplete="off"
 											size="small" />
 									</el-form-item>
 								</el-col>
@@ -161,7 +158,7 @@
 								<el-form-item label="鏍峰搧鍚嶇О锛�">
 									<el-select v-model="addPointerForm.sampleName" size="small" placeholder="璇烽�夋嫨鏍峰搧鍚嶇О"
 										@change="upMaterialName">
-										<el-option v-for="options in sampleoptions" :value="options.key" :label="options.value"></el-option>
+										<el-option v-for="(options,index) in sampleoptions" :key="index" :value="options.key" :label="options.value"></el-option>
 									</el-select>
 								</el-form-item>
 							</el-col>
@@ -232,7 +229,8 @@
 		addInspection,
 		isIfViewUUID,
 		getProductList,
-		getContractsSampleInfo
+		getContractsSampleInfo,
+		getSpecificationsName
 	} from '@/api/inspection/commisioninspection'
 	export default {
 		data() {
@@ -264,19 +262,7 @@
 					experiment: [],
 					addway: ''
 				},
-				experList: [{
-					key: '1',
-					label: '澶栬妫�鏌�'
-				}, {
-					key: '2',
-					label: '鍔ㄤ綔鐢靛帇璇曢獙'
-				}, {
-					key: '3',
-					label: '鐢甸樆绠℃硠婕忕數娴佽瘯楠�'
-				}, {
-					key: '4',
-					label: '缁濈紭閮ㄥ垎浜ゆ祦鑰愬帇璇曢獙'
-				}],
+				experList: [],
 				sampleoptions: [],
 				samplecodeoptions: [],
 				model_spe_options: [],
@@ -371,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 = {
@@ -387,7 +377,8 @@
 					samplesNumber: '',
 					remarks: '',
 					experiment: [],
-					addway: ''
+					addway: '',
+					speName: ''
 				}
 			},
 			async submitInspection() {
@@ -409,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) {
@@ -447,6 +439,11 @@
 						return item.name
 					})
 				})
+				this.model_sta_options.forEach(a => {
+					if (a.key == val) {
+						this.addPointerForm.speName = a.value
+					}
+				})
 			},
 			getContractsSampleInfo() {
 				getContractsSampleInfo({
@@ -471,9 +468,6 @@
 					this.detectionInfo = res.data.linkDetectionList
 				})
 			},
-			getSpeName(id){
-				return name
-			}
 		}
 	}
 </script>

--
Gitblit v1.9.3