|
@@ -110,7 +110,8 @@
|
|
console.log(ret)
|
|
console.log(ret)
|
|
const result = {
|
|
const result = {
|
|
carrierCode: ret.resp_result,
|
|
carrierCode: ret.resp_result,
|
|
- processCode: ''
|
|
|
|
|
|
+ processCode: '',
|
|
|
|
+ deptId : store.curDeptDetails.deptId
|
|
}
|
|
}
|
|
if (!result.carrierCode || result.carrierCode == "") {
|
|
if (!result.carrierCode || result.carrierCode == "") {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -140,6 +141,7 @@
|
|
});
|
|
});
|
|
// 此处根据拿到的箱子id, 获取到相对应的【 lot_id】,【 lot_code】, 以及该批次关联的其它箱号
|
|
// 此处根据拿到的箱子id, 获取到相对应的【 lot_id】,【 lot_code】, 以及该批次关联的其它箱号
|
|
// 需要定义一个请求方法, 从后端获取
|
|
// 需要定义一个请求方法, 从后端获取
|
|
|
|
+ result.deptId = store.curDeptDetails.deptId
|
|
getLotInfo(result).then(res => {
|
|
getLotInfo(result).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -205,7 +207,8 @@
|
|
)
|
|
)
|
|
} else {
|
|
} else {
|
|
const result = {
|
|
const result = {
|
|
- carrierCode: '000312'
|
|
|
|
|
|
+ carrierCode: '000391',
|
|
|
|
+ deptId : store.curDeptDetails.deptId
|
|
}
|
|
}
|
|
getCarrierInfo(result).then(response => {
|
|
getCarrierInfo(result).then(response => {
|
|
if (response.code == 200) {
|
|
if (response.code == 200) {
|
|
@@ -214,6 +217,7 @@
|
|
if (response.data.dayworkCarriers != null) {
|
|
if (response.data.dayworkCarriers != null) {
|
|
if (response.data.dayworkCarriers.length > 1) {
|
|
if (response.data.dayworkCarriers.length > 1) {
|
|
query.value = result;
|
|
query.value = result;
|
|
|
|
+ query.value.deptId = store.curDeptDetails.deptId
|
|
selectProcessInspection.value.open(response.data.dayworkCarriers)
|
|
selectProcessInspection.value.open(response.data.dayworkCarriers)
|
|
|
|
|
|
} else {
|
|
} else {
|
|
@@ -224,6 +228,7 @@
|
|
});
|
|
});
|
|
// 此处根据拿到的箱子id, 获取到相对应的【 lot_id】,【 lot_code】, 以及该批次关联的其它箱号
|
|
// 此处根据拿到的箱子id, 获取到相对应的【 lot_id】,【 lot_code】, 以及该批次关联的其它箱号
|
|
// 需要定义一个请求方法, 从后端获取
|
|
// 需要定义一个请求方法, 从后端获取
|
|
|
|
+
|
|
getLotInfo(result).then(res => {
|
|
getLotInfo(result).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -244,8 +249,8 @@
|
|
};
|
|
};
|
|
lot.value.carrierCode = result.carrierCode
|
|
lot.value.carrierCode = result.carrierCode
|
|
carrierCode.value = result.carrierCode;
|
|
carrierCode.value = result.carrierCode;
|
|
- lot.value.inspectionCarrierId = '1803605009575755783'
|
|
|
|
- lot.value.inspectionCarrierCode = "300085"
|
|
|
|
|
|
+ lot.value.inspectionCarrierId = '1803605009554784261'
|
|
|
|
+ lot.value.inspectionCarrierCode = "300053"
|
|
// console.log("res", res);
|
|
// console.log("res", res);
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
// 判断是否批次号和检查箱码都扫完
|
|
// 判断是否批次号和检查箱码都扫完
|
|
@@ -351,6 +356,7 @@
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中'
|
|
title: '加载中'
|
|
});
|
|
});
|
|
|
|
+
|
|
getLotInfo(query.value).then(res => {
|
|
getLotInfo(query.value).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
console.log(res)
|
|
console.log(res)
|