ezhizao_zx 1 ano atrás
pai
commit
4a67d9e3fc

+ 9 - 0
api/business/processInspection.js

@@ -117,4 +117,13 @@ export function getLotInfo(data) {
 		method: 'post',
 		data: data
 	})
+}
+
+
+// 删除序检
+export function delProcessInspection(id) {
+	return req.request({
+		url: '/business/inspecion/' + id,
+		method: 'delete'
+	})
 }

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "(测试)德迈仕数字生产管理平台",
     "appid" : "__UNI__54D8B02",
     "description" : "",
-    "versionName" : "1.0.31",
-    "versionCode" : 131,
+    "versionName" : "1.0.23",
+    "versionCode" : 123,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 40 - 6
pages/outsourcedInspection/form.vue

@@ -22,13 +22,17 @@
 				<view class="value">{{processInspecion.lot. productDescription }}</view>
 			</view>
 			<view class="info-row uni-row">
-				<view class="label">当前工序</view>
+				<view class="label">外协工序</view>
 				<view class="value">{{ processInspecion.lot.processAlias }}</view>
 			</view>
 			<view class="info-row uni-row">
 				<view class="label">投产数量</view>
 				<view class="value">{{ processInspecion.lot.pudName }}</view>
 			</view>
+			<view class="info-row uni-row">
+				<view class="label">检查载具</view>
+				<view class="value">{{ processInspecion.inspectionCarrierCode }}</view>
+			</view>
 		</view>
 
 		<!-- 废品信息 -->
@@ -51,13 +55,32 @@
 						@click="handleDelWaste(index)" />
 				</view>
 
-				<view class="result uni-row">
+				<!-- <view class="result uni-row">
 					<view class="label">检查结果</view>
 					<input v-model="item.checkResult" placeholder="请输入检查结果" />
 					<view class="label" style="text-align: right; padding-right: 16rpx;">数量
 					</view>
 					<input class="number" type="number" @blur="rejectNumberChange" v-model="item.rejectNum"
 						placeholder="" />
+				</view> -->
+				<view class="resu uni-row">
+					<view class="label">检查结果</view>
+					<input v-model="item.checkResult" placeholder="请输入检查结果" />
+				</view>
+				<view class="resu uni-row">
+					<view class="label">超差范围</view>
+					<input v-model="item.exceedLimits" placeholder="请输入超差范围" />
+				</view>
+				<view class="resu uni-row">
+					<view class="label">检查量</view>
+					<input class="number" type="number" @blur="rejectNumberChange" v-model="item.examiningNum"
+						placeholder="" />
+					<view class="label">不良品量</view>
+					<input class="number" type="number" @blur="rejectNumberChange" v-model="item.disqualificationNum"
+						placeholder="" />
+					<view class="label">废品量</view>
+					<input class="number" type="number" @blur="rejectNumberChange" v-model="item.rejectNum"
+						placeholder="" />
 				</view>
 			</view>
 		</view>
@@ -85,17 +108,21 @@
 		<!-- 报工部分 -->
 		<view class="daywork-container">
 			<!--  此处后续要加上条件限制,当状态为合格或不合格的时候不能修改状态,需要有权限的人来进行修改 -->
-			<view class="result uni-row">
+			<!-- <view class="result uni-row">
 				<view class="label">检测量</view>
 				<input type="number" v-model="processInspecion.examiningNum" placeholder="请输入检测量" />
 				<view class="label" style="text-align: right; padding-right: 24rpx">废品量</view>
 				<input type="number" v-model="processInspecion.rejectNum" placeholder="请输入废品量" />
-			</view>
+			</view> -->
 			<view class="result uni-row">
 				<view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">序检状态</view>
 				<uni-data-checkbox style="margin-top: 20rpx;" v-model="processInspecion.status" :localdata="range"
 					@change="change"></uni-data-checkbox>
 			</view>
+			<view class="result uni-row">
+				<view class="label">废品总数</view>
+				<view class="value" style="margin-left: 10px;">{{ processInspecion.rejectNum }}</view>
+			</view>
 			<view class="remark uni-row">
 				<view class="label">备注</view>
 				<textarea v-model="processInspecion.remark" />
@@ -199,7 +226,7 @@
 				console.log("res", res);
 				if (res.code == 200) {
 					processInspecion.value = res.data;
-					unfitInfos.value = res.data.dayworkItemRejects;
+					unfitInfos.value = res.data.rejects;
 					consultations.value = res.data.dayworkItemConsults;
 					console.log("res", res);
 					uni.hideLoading();
@@ -227,10 +254,16 @@
 
 	const rejectNumberChange = () => {
 		let sumReject = 0
+		let sumDisqualificationNum = 0
+		let sumExaminingNum = 0
 		unfitInfos.value.forEach(v => {
-			sumReject += Number(v.rejectNum)
+			sumReject += (v.rejectNum != null ? Number(v.rejectNum) : 0)
+			sumDisqualificationNum += (v.disqualificationNum != null ? Number(v.disqualificationNum) : 0)
+			sumExaminingNum += (v.examiningNum != null ? Number(v.examiningNum) : 0)
 		})
 		processInspecion.value.rejectNum = sumReject
+		processInspecion.value.disqualificationNum = sumDisqualificationNum
+		processInspecion.value.examiningNum = sumExaminingNum
 		console.log(processInspecion.value)
 	}
 
@@ -379,6 +412,7 @@
 			success: function(res) {
 				if (res.confirm) {
 					unfitInfos.value.splice(index, 1)
+					rejectNumberChange()
 				} else if (res.cancel) {
 					return
 				}

+ 57 - 5
pages/outsourcedInspection/index.vue

@@ -19,7 +19,11 @@
 			<view class="lot-code uni-row">
 				<text>批次号:{{ item.lotCode }}</text>
 				<text :style="selectType(item)">{{ selectText(item) }}</text>
-				<uni-icons type="right" size="16" />
+				<!-- <uni-icons type="right" size="16" /> -->
+				<text v-if="item.creatorId === userId && item.status == 0" class="fa fa-trash"
+					style="font-size: 16; color: red;" @click.stop="deleteItem(item)"></text>
+				<text v-else class="fa fa-trash" style="font-size: 16; color: white;"></text>
+
 			</view>
 			<view class="info">
 				<view class="info-row uni-row">
@@ -32,12 +36,20 @@
 					<view class="label">检查数量:</view>
 					<view class="value">{{ item.examiningNum }}</view>
 					<view class="label">不合格数:</view>
+					<view class="value">{{ item.disqualificationNum }}</view>
+					<view class="label">废品量:</view>
 					<view class="value">{{ item.rejectNum }}</view>
 				</view>
 				<view class="info-row uni-row">
 					<view class="label">产品描述:</view>
 					<view class="value">{{ item.productDescription }}</view>
 				</view>
+				<view class="info-row uni-row" style="justify-content: space-between;">
+					<view class="label">检测载具:</view>
+					<view class="value">{{ item.inspectionCarrierCode }}</view>
+					<button class="reporting-tag" size="mini" type="primary"
+						@click.stop="changeCheckCarrier(item)">检测载具</button>
+				</view>
 			</view>
 		</view>
 	</view>
@@ -49,7 +61,8 @@
 	} from 'vue'
 	import {
 		getOutsourcedInspection,
-		getLotInfo
+		getLotInfo,
+		delProcessInspection
 	} from '@/api/business/processInspection.js'
 	import {
 		timestampToTime,
@@ -72,6 +85,7 @@
 	const inspecionList = ref([]); //时间后筛选数组
 	const original = ref([]); //原始数组
 	const startTime = ref(new Date().toISOString().split('T')[0])
+	const userId = ref(store.userInfo.userId)
 
 	const range = [{
 		value: 0,
@@ -101,7 +115,7 @@
 		uni.showLoading({
 			title: '加载中'
 		});
-		quer.value.userId = store.userInfo.userId;
+		// quer.value.userId = store.userInfo.userId;
 		quer.value.startTime = startTime.value;
 		getOutsourcedInspection(quer.value).then(res => {
 			console.log("res", res);
@@ -129,8 +143,10 @@
 			success: (res) => {
 				console.log("P2查询", res);
 				//将工序编码保存到store中
-				store.outsourcedCode = res.data.rows.map(item => item.prcode.trim());
-				console.log("store", store.outsourcedCode);
+				if (res.data.code == 200) {
+					store.outsourcedCode = res.data.rows.map(item => item.prcode.trim());
+					// console.log("store", store.outsourcedCode);
+				}
 			},
 			fail: (err) => {
 				console.log(err)
@@ -141,6 +157,7 @@
 	//时间筛选
 	function timeSizer() {
 		// inspecionList.value = filterSameDayItems(original.value, startTime.value);
+		getList()
 	}
 
 	// 筛选函数
@@ -214,6 +231,41 @@
 			url: '/pages/outsourcedInspection/form'
 		})
 	}
+	const deleteItem = (item) => {
+		// uni.showToast({
+		// 	title: "删除方法未完成"
+		// })
+		uni.showModal({
+			title: '确认',
+			content: '确认删除该序检么?',
+			success: function(res) {
+				if (res.confirm) {
+					delProcessInspection(item.id).then(res => {
+						if (res.code === 200) {
+							console.log(res)
+							getList()
+						} else {
+							uni.showToast({
+								icon: 'none',
+								title: res.msg
+							})
+						}
+					})
+
+				} else if (res.cancel) {
+					uni.showToast({
+						title: '已取消',
+						icon: 'none'
+					})
+				}
+			}
+		})
+	}
+	const changeCheckCarrier = (item) => {
+		uni.showToast({
+			title: "检测载具方法未完成"
+		})
+	}
 </script>
 
 <style lang="scss">

+ 171 - 93
pages/outsourcedInspection/scan.vue

@@ -10,9 +10,8 @@
 				<view class="label">产品描述</view>
 				<view class="value">{{ lot.productDescription }}</view>
 			</view>
-
 			<view class="info-row uni-row">
-				<view class="label">当前工序</view>
+				<view class="label">外协工序</view>
 				<view class="value">{{ lot.processAlias }}</view>
 			</view>
 			<view class="info-row uni-row">
@@ -20,15 +19,21 @@
 				<view class="value">{{ lot.pudName }}</view>
 			</view>
 			<view class="info-row uni-row">
-				<view class="label">所有箱号</view>
+				<view class="label">批次箱号</view>
 				<view class="value">{{ lot.allCarrierName }}</view>
 			</view>
-			<input type="text" v-model="carrierCode" placeholder="请输入箱号" />
+			<view class="info-row uni-row">
+				<view class="label">序检箱号</view>
+				<view class="value">{{ lot.inspectionCarrierCode }}</view>
+			</view>
+			<input type="text" v-model="carrierCode" placeholder="请输入箱号或检查载具号" />
 			<view class="btn uni-row" style="background-color: #ff5555;" @click.stop="handleScanCode">
 				<uni-icons type="scan" size="16" style="color: #ffffff; margin-right: 8rpx;" />
-				<text>扫描箱码</text>
+				<text>扫描箱码或载具二维码</text>
+			</view>
+			<view class="btn uni-row" style="margin-top: 48rpx;" @click.stop="handleConfirm">箱码确定</view>
+			<view class="btn uni-row" style="background-color: #26d01d;" @click.stop="handleSave">保存
 			</view>
-			<view class="btn uni-row" style="margin-top: 48rpx;" @click.stop="handleConfirm">确定</view>
 		</view>
 		<dialog-processInspection ref='selectProcessInspection'
 			@handleSelectProcessInspection='handleSelectProcessInspection'></dialog-processInspection>
@@ -46,6 +51,7 @@
 		onShow
 	} from '@dcloudio/uni-app'
 	import {
+		saveOutsourcedInspecion,
 		getLotInfo,
 		getCarrierInfo,
 		getLotOutsourcedInfo
@@ -57,70 +63,11 @@
 	const lot = ref({})
 	const query = ref({})
 	const selectProcessInspection = ref(null)
-
+	const lastRequestTimestamp = ref(0);
 
 	// 页面生命周期函数
 	onLoad(() => {})
 
-	// 扫码
-	/* 【原有代码】
-	const handleScanCode = () => {
-		// 引入原生插件
-		const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
-		if (mpaasScanModule) {
-			// 调用插件的 mpaasScan 方法
-			mpaasScanModule.mpaasScan({
-					// 扫码识别类型,参数可多选,qrCode、barCode,
-					// 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
-					scanType: ["qrCode", "barCode"],
-					// 是否隐藏相册,默认false不隐藏
-					hideAlbum: false,
-				},
-				(ret) => {
-					console.log(ret);
-					const result = JSON.parse(ret.resp_result);
-					if (!result.carrierId || result.carrierId == "") {
-						uni.showToast({
-							icon: "none",
-							title: "请扫载具码",
-							duration: 1000
-						})
-						return;
-					}
-					//判断该箱是否绑定批次
-
-				result.processCode = store.outsourcedCode;
-				
-				getLotOutsourcedInfo(result).then(resqust => {
-					if (resqust.code == 200) {
-						lot.value = resqust.data;
-						lot.value.carrierCode = result.carrierCode
-						carrierCode.value = result.carrierCode;
-						// store.processInspection = null;
-						console.log("resqust", resqust);
-						uni.hideLoading();
-					} else {
-						// uni.hideLoading();
-						uni.showToast({
-							icon: 'none',
-							title: resqust.msg,
-							duration: 2000
-						})
-					}
-
-				}).catch(err => {
-					uni.showToast({
-						icon: 'none',
-						title: err.message,
-						duration: 2000
-					})
-				})
-			}
-			)
-		}
-	}
-	*/
-
 	const handleScanCode = () => {
 		// 引入原生插件
 		const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
@@ -176,22 +123,50 @@
 					})
 				}
 			)
+		} else {
+			const result = {
+				carrierCode: '000657',
+				processCode: store.outsourcedCode
+			}
+			getLotOutsourcedInfo(result).then(resquest => {
+				if (resquest.code == 200) {
+					lot.value = resquest.data;
+					lot.value.carrierCode = result.carrierCode
+					carrierCode.value = result.carrierCode;
+					// store.processInspection = null;
+					// console.log("resqust", resqust);
+					uni.hideLoading();
+				} else {
+					// uni.hideLoading();
+					uni.showToast({
+						icon: 'none',
+						title: resquest.msg,
+						duration: 2000
+					})
+				}
+			}).catch(err => {
+				uni.showToast({
+					icon: 'none',
+					title: err.message,
+					duration: 2000
+				})
+			})
 		}
 	}
 
 	//选择批号弹窗带回
 	function handleSelectProcessInspection(data) {
-		console.log("带回", data)
+		// console.log("带回", data)
 		query.value.lotCode = data
 		uni.showLoading({
 			title: '加载中'
 		});
-		getLotInfo(query.value).then(res => {
+		getLotOutsourcedInfo(query.value).then(res => {
 			if (res.code == 200) {
 				lot.value = res.data;
 				lot.value.carrierCode = query.value.carrierCode
 				carrierCode.value = query.value.carrierCode;
-				console.log("res", res);
+				// console.log("res", res);
 				uni.hideLoading();
 			} else {
 				uni.showToast({
@@ -205,47 +180,150 @@
 
 	// 确定后,将批次id,批次号,传递过去
 	const handleConfirm = () => {
+		/** 因为调试时无法扫码所以暂时用确定方法代替扫码 **/
+		/** 调用查询方法查询箱号信息 **/
+		/**
+		 * 如果返回的是载具信息表示这是检查载具,将载具的id和code存到lot.inspectionCarrierId和lot.inspectionCarrierCode中
+		 * 如果返回的是1条dayweorCarrier的载具绑定信息则调用查询方法查询批次信息
+		 * 如果返回的是多条dayweorCarrier的载具绑定信息,则表示这是一箱多批需要调用选择批号弹窗在processInspection文件scan229行有对应的方法
+		 * 
+		 * */
 		if (lot.carrierCode || carrierCode.value !== "") {
-			lot.value.carrierCode = carrierCode.value
-			uni.showLoading({
-				title: '加载中'
-			});
-			lot.value.processCode = store.outsourcedCode;
-			/************************ 根据扫码查询到的数据和需要检查的工序查询信息 ************************/
-			getLotOutsourcedInfo(lot.value).then(resqust => {
-				if (resqust.code == 200) {
-					lot.value = resqust.data;
-					lot.value.carrierCode = carrierCode.value
-					store.processInspection = null;
-					console.log("resqust", resqust);
-					uni.hideLoading();
-					uni.navigateTo({
-						url: "/pages/outsourcedInspection/form",
-						success: (resqust) => {
-							// 通过eventChannel向被打开页面传送数据
-							resqust.eventChannel.emit("outsourcedInspectionFrom", {
-								data: lot.value
+			// lot.value.carrierCode = carrierCode.value
+			const result = {
+				// ...lot.value
+				carrierCode: carrierCode.value
+			}
+			getCarrierInfo(result).then(response => {
+				if (response.code == 200) {
+					// 判断是哪种返回值 假设是想信息则给lot附检查箱信息
+					// 假设是dayworkCarriers 则 判断是几个批次,假设为多批,则弹出选择框。
+					if (response.data.dayworkCarriers != null) {
+						if (response.data.dayworkCarriers.length > 1) {
+							query.value = result;
+							selectProcessInspection.value.open(response.data.dayworkCarriers)
+						} else {
+							// console.log(response)
+							uni.showLoading({
+								title: '加载中'
+							});
+							// 此处根据拿到的箱子id, 获取到相对应的【 lot_id】,【 lot_code】, 以及该批次关联的其它箱号
+							// 需要定义一个请求方法, 从后端获取
+							getLotOutsourcedInfo(result).then(res => {
+								if (res.code == 200) {
+									lot.value = {
+										...lot.value,
+										...res.data
+									};
+									lot.value.carrierCode = result.carrierCode
+									carrierCode.value = result.carrierCode;
+									// console.log("res", res);
+									uni.hideLoading();
+								} else {
+									uni.showToast({
+										icon: 'none',
+										title: res.msg,
+										duration: 2000
+									})
+								}
+							}).catch(err => {
+								uni.showToast({
+									icon: 'none',
+									title: err.message,
+									duration: 2000
+								})
 							})
+
 						}
-					})
+					} else if (response.data.inspectionCarrier != null) {
+						console.log(response)
+						lot.value.inspectionCarrierCode = response.data.inspectionCarrier.code
+						lot.value.inspectionCarrierId = response.data.inspectionCarrier.id
+					}
 				} else {
-					// uni.hideLoading();
 					uni.showToast({
 						icon: 'none',
-						title: resqust.msg,
+						title: response.msg,
 						duration: 2000
 					})
 				}
-
+			}).catch(err => {
+				uni.showToast({
+					icon: 'none',
+					title: err.message,
+					duration: 2000
+				})
 			})
 		} else {
 			uni.showToast({
 				icon: 'none',
-				title: "请输入箱号或扫描箱码",
+				title: "请输入箱号",
+				duration: 2000
+			})
+			return;
+		}
+	}
+	const handleSave = () => {
+		// 判断是否已有批次和检查载具
+		if (lot.value.lotCode == '' || lot.value.lotCode == null) {
+			uni.showToast({
+				icon: 'none',
+				title: "请先扫外协箱码",
+				duration: 2000
+			})
+			return
+		}
+		if (lot.value.inspectionCarrierId == null) {
+			uni.showToast({
+				icon: 'none',
+				title: "请先扫检查载具",
+				duration: 2000
+			})
+			return
+		}
+		// 保存
+
+		const currentTime = Date.now();
+
+		// 检查是否已经过去了 2 秒
+		if (currentTime - lastRequestTimestamp.value < 2000) {
+			// 如果在 2 秒 内已经点击,那么不执行
+			uni.showToast({
+				icon: 'none',
+				title: `请勿重复点击`,
 				duration: 2000
 			})
 			return;
 		}
+
+		let pages = getCurrentPages();
+
+		saveOutsourcedInspecion({
+			lot: lot.value,
+			user: store.userInfo,
+			status: 0,
+			inspectionCarrierCode: lot.value.inspectionCarrierCode,
+			inspectionCarrierId: lot.value.inspectionCarrierId
+		}).then(res => {
+			if (res.code == 200) {
+				let index = 0;
+				for (let i = 0; i < pages.length; i++) {
+					if (pages[i].$page.fullPath == "/pages/outsourcedInspection/index") {
+						index = pages.length - i - 1;
+					}
+				}
+				console.log("index", index);
+				uni.navigateBack({
+					delta: index
+				});
+			} else {
+				uni.showToast({
+					icon: 'none',
+					title: res.msg,
+					duration: 2000
+				})
+			}
+		});
 	}
 </script>
 

+ 0 - 0
pages/outsourcedInspection-copy/consultation.vue → pages/outsourcedInspection20240619/consultation.vue


+ 0 - 0
pages/outsourcedInspection-copy/form.vue → pages/outsourcedInspection20240619/form.vue


+ 0 - 0
pages/outsourcedInspection-copy/index.vue → pages/outsourcedInspection20240619/index.vue


+ 0 - 0
pages/outsourcedInspection-copy/options.vue → pages/outsourcedInspection20240619/options.vue


+ 38 - 85
pages/outsourcedInspection-copy/scan.vue → pages/outsourcedInspection20240619/scan.vue

@@ -176,34 +176,6 @@
 					})
 				}
 			)
-		} else {
-			const result = {
-				carrierCode: '000657',
-				processCode: store.outsourcedCode
-			}
-			getLotOutsourcedInfo(result).then(resqust => {
-				if (resqust.code == 200) {
-					lot.value = resqust.data;
-					lot.value.carrierCode = result.carrierCode
-					carrierCode.value = result.carrierCode;
-					// store.processInspection = null;
-					console.log("resqust", resqust);
-					uni.hideLoading();
-				} else {
-					// uni.hideLoading();
-					uni.showToast({
-						icon: 'none',
-						title: resqust.msg,
-						duration: 2000
-					})
-				}
-			}).catch(err => {
-				uni.showToast({
-					icon: 'none',
-					title: err.message,
-					duration: 2000
-				})
-			})
 		}
 	}
 
@@ -233,67 +205,48 @@
 
 	// 确定后,将批次id,批次号,传递过去
 	const handleConfirm = () => {
-		/** 因为调试时无法扫码所以暂时用确定方法代替扫码 **/
-		if (carrierCode.value !== "") {
-			const result = {
-				carrierCode: carrierCode.value
-			};
-			/** 调用查询方法查询箱号信息 **/
-			/**
-			 * 如果返回的是载具信息表示这是检查载具,将载具的id和code存到lot.inspectionCarrierId和lot.inspectionCarrierCode中
-			 * 如果返回的是1条dayweorCarrier的载具绑定信息则调用查询方法查询批次信息
-			 * 如果返回的是多条dayweorCarrier的载具绑定信息,则表示这是一箱多批需要调用选择批号弹窗在processInspection文件scan229行有对应的方法
-			 * 
-			 * */
-			getCarrierInfo(result).then(resqust => {
+		if (lot.carrierCode || carrierCode.value !== "") {
+			lot.value.carrierCode = carrierCode.value
+			uni.showLoading({
+				title: '加载中'
+			});
+			lot.value.processCode = store.outsourcedCode;
+			/************************ 根据扫码查询到的数据和需要检查的工序查询信息 ************************/
+			getLotOutsourcedInfo(lot.value).then(resqust => {
+				if (resqust.code == 200) {
+					lot.value = resqust.data;
+					lot.value.carrierCode = carrierCode.value
+					store.processInspection = null;
+					console.log("resqust", resqust);
+					uni.hideLoading();
+					uni.navigateTo({
+						url: "/pages/outsourcedInspection/form",
+						success: (resqust) => {
+							// 通过eventChannel向被打开页面传送数据
+							resqust.eventChannel.emit("outsourcedInspectionFrom", {
+								data: lot.value
+							})
+						}
+					})
+				} else {
+					// uni.hideLoading();
+					uni.showToast({
+						icon: 'none',
+						title: resqust.msg,
+						duration: 2000
+					})
+				}
 
 			})
+		} else {
+			uni.showToast({
+				icon: 'none',
+				title: "请输入箱号或扫描箱码",
+				duration: 2000
+			})
+			return;
 		}
 	}
-	// // 确定后,将批次id,批次号,传递过去
-	// const handleConfirm = () => {
-	// 	if (lot.carrierCode || carrierCode.value !== "") {
-	// 		lot.value.carrierCode = carrierCode.value
-	// 		uni.showLoading({
-	// 			title: '加载中'
-	// 		});
-	// 		lot.value.processCode = store.outsourcedCode;
-	// 		/************************ 根据扫码查询到的数据和需要检查的工序查询信息 ************************/
-	// 		getLotOutsourcedInfo(lot.value).then(resqust => {
-	// 			if (resqust.code == 200) {
-	// 				lot.value = resqust.data;
-	// 				lot.value.carrierCode = carrierCode.value
-	// 				store.processInspection = null;
-	// 				console.log("resqust", resqust);
-	// 				uni.hideLoading();
-	// 				uni.navigateTo({
-	// 					url: "/pages/outsourcedInspection/form",
-	// 					success: (resqust) => {
-	// 						// 通过eventChannel向被打开页面传送数据
-	// 						resqust.eventChannel.emit("outsourcedInspectionFrom", {
-	// 							data: lot.value
-	// 						})
-	// 					}
-	// 				})
-	// 			} else {
-	// 				// uni.hideLoading();
-	// 				uni.showToast({
-	// 					icon: 'none',
-	// 					title: resqust.msg,
-	// 					duration: 2000
-	// 				})
-	// 			}
-
-	// 		})
-	// 	} else {
-	// 		uni.showToast({
-	// 			icon: 'none',
-	// 			title: "请输入箱号或扫描箱码",
-	// 			duration: 2000
-	// 		})
-	// 		return;
-	// 	}
-	// }
 </script>
 
 <style lang="scss">