From 93d2defddb21068f61e4f88895f4b389b672eb46 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 31 八月 2023 15:45:19 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.110.209:9001/r/lims-before

---
 src/views/inspectionManagement/reportForInspection/index.vue |   31 ++++++-------------------------
 1 files changed, 6 insertions(+), 25 deletions(-)

diff --git a/src/views/inspectionManagement/reportForInspection/index.vue b/src/views/inspectionManagement/reportForInspection/index.vue
index 2081aa0..cf50f4f 100644
--- a/src/views/inspectionManagement/reportForInspection/index.vue
+++ b/src/views/inspectionManagement/reportForInspection/index.vue
@@ -75,7 +75,7 @@
 						:data="inspectionTable" style="width: 100%" @selection-change="handleSelectionChange">
 						<el-table-column type="selection" :selectable="checkSelect" min-width="5%"></el-table-column>
 						<el-table-column type="index" label="搴忓彿" min-width="8%" />
-						<el-table-column prop="createTime" label="鏉ユ枡鏃ユ湡" min-width="8%" />
+						<el-table-column prop="dateSurvey" label="鏉ユ枡鏃ユ湡" min-width="8%" />
 						<el-table-column prop="supplierName" label="渚涘簲鍟嗗悕绉�" min-width="12%" />
 						<el-table-column prop="materialCoding" label="鏉愭枡缂栫爜" min-width="8%" />
 						<el-table-column prop="materialName" label="鏉愭枡鍚嶇О" min-width="8%" />
@@ -84,7 +84,7 @@
 						<el-table-column prop="quantity" label="鏁伴噺" min-width="5%" />
 						<el-table-column prop="inspectionDate" label="鎶ユ鏃ユ湡" min-width="8%" />
 						<el-table-column prop="surveyor" label="妫�楠屼汉" min-width="8%" />
-						<el-table-column prop="dateSurvey" label="妫�楠屾棩鏈�" min-width="8%" />
+						<el-table-column prop="insTime" label="妫�楠屾棩鏈�" min-width="8%" />
 						<el-table-column prop="type" label="鐘舵��" min-width="8%">
 							<template slot-scope="scope">
 								<span :style="{ color: scope.row.type === 1 ? 'green' : 'red' }">
@@ -340,19 +340,7 @@
 					label: '鏈姤妫�'
 				}],
 				radioValue: null,
-				inspectionTable: [{
-					createTime: '2023-07-28',
-					supplier_name: '鍥界綉灞变笢鐪佺數鍔涙湁闄愬叕鍙�',
-					materialCoding: 'BP214274',
-					materialName: '閾濆寘閽㈢粸绾�',
-					specificationsModels: 'JLHA/G1A-185/30-26/7',
-					unit: '鍚�',
-					quantity: 21,
-					dateSurvey: '2023-08-02',
-					surveyor: '榛勫皬鏄�',
-					inspectionDate: '2023-12-09',
-					condition: 1
-				}],
+				inspectionTable: [],
 				currentPage: 1,
 				pageSize: 10,
 				total: 20,
@@ -430,7 +418,6 @@
 				});
 			},
 			blurOptions(row) {
-				console.log("鏇存柊", row);
 			},
 			async initNewSelection() {
 				const res = await selectUser();
@@ -449,7 +436,6 @@
 					cancelButtonText: '鍙栨秷',
 					type: 'warning'
 				}).then(() => {
-					console.log(row.id);
 					this.deleteMaterialFun(row, index);
 				}).catch(() => {});
 			},
@@ -479,7 +465,6 @@
             let name = this.checkData[0].materialName;
             let specifications = this.checkData[0].specificationsModels;
             this.getChooseVersionFun(mcode,name,specifications);
-            console.log(this.standardLibraryData);
 						this.addReportDialog = true;
 					}
 				}
@@ -500,7 +485,6 @@
               specifications : specifications,
               version: version
           }).then((res)=>{
-            console.log(res);
             vm.standardLibraryData = res.data;
           })
           
@@ -556,12 +540,9 @@
 			//鐢熸垚鎶ユ鍗�
 			async createReport(param) {
 				let res = await addInspect(param);
-				const res2 = await selectInspectsListById({
-					id: res.data
-				});
-				this.resultData = res2.data;
-				this.inspectionForm = res2.data;
-				this.inspectionItems = res2.data.insProducts;
+				if(res.data==null)return
+				this.$message.success('鎶ユ鎴愬姛')
+				this.$router.push(`/experiment/Viewdetails/${res.data}`)
 			},
 			// 鑾峰彇鍒嗛〉鍒楄〃鏁版嵁
 			async getRawMaterialList() {

--
Gitblit v1.9.3