|
|
|
@ -1532,6 +1532,8 @@ if (uni.restoreGlobal) {
|
|
|
|
|
/** |
|
|
|
|
* 提示 |
|
|
|
|
* @param {String} content 提示的文字 |
|
|
|
|
* @param {String} icon 提示icon |
|
|
|
|
* @param {Boolean} isShowMsg 是否弹窗显示文字 |
|
|
|
|
*/ |
|
|
|
|
handleToast(content, icon = "none", isShowMsg = true) { |
|
|
|
|
if (isShowMsg) |
|
|
|
@ -1553,7 +1555,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
clearTimeout(timer); |
|
|
|
|
timer = setTimeout(function() { |
|
|
|
|
func2.apply(context, args); |
|
|
|
|
formatAppLog("log", "at utils/utils.js:488", "timer :>> ", timer); |
|
|
|
|
formatAppLog("log", "at utils/utils.js:490", "timer :>> ", timer); |
|
|
|
|
clearTimeout(timer); |
|
|
|
|
}, delay); |
|
|
|
|
}(); |
|
|
|
@ -1809,7 +1811,7 @@ if (uni.restoreGlobal) {
|
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
const Base64$1 = new Base64(); |
|
|
|
|
const devhost = "http://test.api.huo5you.com/"; |
|
|
|
|
const devhost = "http://192.168.3.2:13000/"; |
|
|
|
|
const imghost = ""; |
|
|
|
|
const host = devhost; |
|
|
|
|
const APPKEY = "h5u:h5u_secret"; |
|
|
|
@ -2317,8 +2319,9 @@ if (uni.restoreGlobal) {
|
|
|
|
|
} = response2; |
|
|
|
|
if (data) { |
|
|
|
|
if (data.code !== 200 && data.code !== 401) { |
|
|
|
|
if (data.msg) |
|
|
|
|
utils.handleToast(data.msg.length > 100 ? "系统异常,请联系管理员" : data.msg); |
|
|
|
|
const content2 = data.audio ? data.audio : data.msg ? data.msg : ""; |
|
|
|
|
if (content2) |
|
|
|
|
utils.handleToast(content2.length > 100 ? "系统异常,请联系管理员" : content2); |
|
|
|
|
} else if (data.audio) |
|
|
|
|
utils.handleToast(data.audio, "none", false); |
|
|
|
|
} |
|
|
|
@ -2338,22 +2341,22 @@ if (uni.restoreGlobal) {
|
|
|
|
|
delete params.data.isLogin; |
|
|
|
|
} else |
|
|
|
|
isLogin = false; |
|
|
|
|
formatAppLog("log", "at utils/request.js:456", "params :>> ", params); |
|
|
|
|
formatAppLog("log", "at utils/request.js:457", "requestObj :>> ", requestObj); |
|
|
|
|
formatAppLog("log", "at utils/request.js:458", "params :>> ", params); |
|
|
|
|
formatAppLog("log", "at utils/request.js:459", "requestObj :>> ", requestObj); |
|
|
|
|
const _key = params.url + JSON.stringify(params.data); |
|
|
|
|
if (requestObj[_key]) { |
|
|
|
|
const { |
|
|
|
|
request |
|
|
|
|
} = requestObj[_key]; |
|
|
|
|
if (canCancel && request) { |
|
|
|
|
formatAppLog("log", "at utils/request.js:467", "request :>> ", request); |
|
|
|
|
formatAppLog("log", "at utils/request.js:469", "request :>> ", request); |
|
|
|
|
request.abort(); |
|
|
|
|
} else |
|
|
|
|
return new Promise((resolve) => resolve({ |
|
|
|
|
code: 4e3 |
|
|
|
|
})); |
|
|
|
|
} |
|
|
|
|
formatAppLog("log", "at utils/request.js:473", "222 :>> ", 222); |
|
|
|
|
formatAppLog("log", "at utils/request.js:475", "222 :>> ", 222); |
|
|
|
|
requestObj[_key] = { |
|
|
|
|
params |
|
|
|
|
}; |
|
|
|
@ -17805,32 +17808,24 @@ This will fail in production if not fixed.`);
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!isHave) { |
|
|
|
|
utils.handleToast("是否异常卸车"); |
|
|
|
|
OrderStowage.value.setDetails({ |
|
|
|
|
title: "异常卸车", |
|
|
|
|
showPopUp: true, |
|
|
|
|
async success() { |
|
|
|
|
try { |
|
|
|
|
const submitData = { |
|
|
|
|
orderPackageCode: _scanCode, |
|
|
|
|
loadId: details.loadId, |
|
|
|
|
incomingType: "6" |
|
|
|
|
}; |
|
|
|
|
let res = {}; |
|
|
|
|
if (details.page === "ArrivalList") |
|
|
|
|
res = await postCarsLoadUnloadPackage(submitData); |
|
|
|
|
else if (details.page === "RelayScanList") |
|
|
|
|
res = await postTransferUnloadPackage(submitData); |
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
details.isAbnormal = true; |
|
|
|
|
OrderStowage.value.details.showPopUp = false; |
|
|
|
|
basicContainer.value.startPullDownRefresh(); |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue:636", "err :>> ", err); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
try { |
|
|
|
|
const submitData = { |
|
|
|
|
orderPackageCode: _scanCode, |
|
|
|
|
loadId: details.loadId, |
|
|
|
|
incomingType: "6" |
|
|
|
|
}; |
|
|
|
|
let res = {}; |
|
|
|
|
if (details.page === "ArrivalList") |
|
|
|
|
res = await postCarsLoadUnloadPackage(submitData); |
|
|
|
|
else if (details.page === "RelayScanList") |
|
|
|
|
res = await postTransferUnloadPackage(submitData); |
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
details.isAbnormal = true; |
|
|
|
|
basicContainer.value.startPullDownRefresh(); |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue:661", "err :>> ", err); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (_trayCode) { |
|
|
|
@ -17903,7 +17898,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
function scandata() { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue:729", "deta :>> ", details.pageType); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue:752", "deta :>> ", details.pageType); |
|
|
|
|
if (Number(details.pageType) === 1) |
|
|
|
|
scanOrder(); |
|
|
|
|
else if (Number(details.pageType) === 2) |
|
|
|
@ -17916,7 +17911,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
title: "零担卸车", |
|
|
|
|
showPopUp: true, |
|
|
|
|
async success() { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue:745", "details.zeroInfo :>> ", details.zeroInfo); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue:768", "details.zeroInfo :>> ", details.zeroInfo); |
|
|
|
|
const submitData = { |
|
|
|
|
loadId: details.loadId, |
|
|
|
|
waybillNo: details.zeroInfo.waybillNo, |
|
|
|
@ -32702,7 +32697,6 @@ This will fail in production if not fixed.`);
|
|
|
|
|
__name: "signOrderScan", |
|
|
|
|
setup(__props) { |
|
|
|
|
const { scanState } = storeToRefs(useSystemSettingsStore()); |
|
|
|
|
const utils2 = vue.inject("utils"); |
|
|
|
|
let details = vue.reactive({ |
|
|
|
|
schanvalue: "", |
|
|
|
|
typearr: [ |
|
|
|
@ -32746,7 +32740,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
return num; |
|
|
|
|
}); |
|
|
|
|
onLoad(async (op) => { |
|
|
|
|
utils2.ttsspke("请扫描包条码"); |
|
|
|
|
utils.ttsspke("请扫描包条码"); |
|
|
|
|
details.items = JSON.parse(op.item); |
|
|
|
|
details.id = JSON.parse(op.item).id; |
|
|
|
|
details.deliveryId = op.deliveryId; |
|
|
|
@ -32810,7 +32804,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}); |
|
|
|
|
vue.onMounted(async () => { |
|
|
|
|
await vue.nextTick(); |
|
|
|
|
utils2.getViewDistanceFormTop(".scve").then((res) => { |
|
|
|
|
utils.getViewDistanceFormTop(".scve").then((res) => { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:338", "res :>> ", res); |
|
|
|
|
details.scrollHeight = res; |
|
|
|
|
}); |
|
|
|
@ -32850,7 +32844,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
if (response2.code === 200) |
|
|
|
|
; |
|
|
|
|
else if (response2.code == 3006) { |
|
|
|
|
utils2.ttsspke("是否异常签收"); |
|
|
|
|
utils.ttsspke("是否异常签收"); |
|
|
|
|
tip.value.setdetails({ |
|
|
|
|
isshow: true, |
|
|
|
|
content: "请确认是否异常签收", |
|
|
|
@ -32864,10 +32858,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
if (response22.code !== 200) |
|
|
|
|
return; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:407", response22); |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: response22.msg, |
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
response22.audio && utils.handleToast(response22.audio, "none", false); |
|
|
|
|
initpage(); |
|
|
|
|
tip.value.setdetails({ isshow: false }); |
|
|
|
|
}, |
|
|
|
@ -32880,14 +32871,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: response2.msg, |
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
response2.audio && utils.handleToast(response2.audio, "none", false); |
|
|
|
|
} |
|
|
|
|
} else if (Number(details.orderStatus) === 3) { |
|
|
|
|
let response2 = await signforsignforIn(data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:433", response2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:427", response2); |
|
|
|
|
if (response2.code == 3006) { |
|
|
|
|
tip.value.setdetails({ |
|
|
|
|
isshow: true, |
|
|
|
@ -32899,13 +32887,10 @@ This will fail in production if not fixed.`);
|
|
|
|
|
reservationId: details.id |
|
|
|
|
}; |
|
|
|
|
let response22 = await signforsignforcontinue(data2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:445", response22); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:439", response22); |
|
|
|
|
if (response22.code !== 200) |
|
|
|
|
return; |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: response22.msg, |
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
response22.audio && utils.handleToast(response22.audio, "none", false); |
|
|
|
|
initpage(); |
|
|
|
|
tip.value.setdetails({ isshow: false }); |
|
|
|
|
}, |
|
|
|
@ -32918,10 +32903,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: response2.msg, |
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
response2.audio && utils.handleToast(response2.audio, "none", false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
initpage(); |
|
|
|
@ -32950,13 +32932,13 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.orderStatus = state; |
|
|
|
|
if (details.orderStatus === 1) { |
|
|
|
|
details.datalist = details.orderArr; |
|
|
|
|
utils2.ttsspke("请扫描包条码"); |
|
|
|
|
utils.ttsspke("请扫描包条码"); |
|
|
|
|
} else if (details.orderStatus === 2) { |
|
|
|
|
details.datalist = details.zeroArr; |
|
|
|
|
utils2.ttsspke("请输入数量"); |
|
|
|
|
utils.ttsspke("请输入数量"); |
|
|
|
|
} else { |
|
|
|
|
details.datalist = details.stockArr; |
|
|
|
|
utils2.ttsspke("请输入库存品"); |
|
|
|
|
utils.ttsspke("请输入库存品"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
async function initpage() { |
|
|
|
@ -32989,7 +32971,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
if (value.isAbnormalLoading === 1) |
|
|
|
|
val.abnormalLoading += 1; |
|
|
|
|
}); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:549", "val :>> ", val); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:537", "val :>> ", val); |
|
|
|
|
details.orderArr.push(val); |
|
|
|
|
}); |
|
|
|
|
} else if (details.orderStatus == 3) { |
|
|
|
@ -33005,7 +32987,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
else |
|
|
|
|
details.datalist = details.stockArr; |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:567", "err :>> ", err); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:555", "err :>> ", err); |
|
|
|
|
} finally { |
|
|
|
|
computedNum(); |
|
|
|
|
uni.hideLoading(); |
|
|
|
@ -33033,7 +33015,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
function checkphon(item2, index2) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:598", "item :>> ", item2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:586", "item :>> ", item2); |
|
|
|
|
if (item2.isZero === "1") { |
|
|
|
|
const inpList = item2.distributionParcelNumberVOS.map((val) => { |
|
|
|
|
return { |
|
|
|
@ -33075,7 +33057,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
parcelListDTOS: [] |
|
|
|
|
}; |
|
|
|
|
data.parcelListDTOS = deta.inpList.map((val) => { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:642", "val :>> ", val); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:630", "val :>> ", val); |
|
|
|
|
return { |
|
|
|
|
parcelListId: val.id, |
|
|
|
|
stockArticleId: val.stockArticleId, |
|
|
|
@ -33086,11 +33068,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
if (res.audio) { |
|
|
|
|
utils2.ttsspke(res.audio); |
|
|
|
|
utils.ttsspke(res.audio); |
|
|
|
|
} |
|
|
|
|
initpage(); |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:659", "err :>> ", err); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/signOrderScan/signOrderScan.vue:647", "err :>> ", err); |
|
|
|
|
} finally { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
tiplists.value.setdetails({ isshow: false }); |
|
|
|
@ -36397,7 +36379,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.trayType = op.trayType; |
|
|
|
|
if (op.pageName) |
|
|
|
|
utils.ttsspke("当前打托方式为" + op.pageName); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:436", "details.trayType :>> ", details.trayType); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:407", "details.trayType :>> ", details.trayType); |
|
|
|
|
if (!op.trayType) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "获取打托方式出错", |
|
|
|
@ -36409,7 +36391,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
uni.$off("scancodedate"); |
|
|
|
|
uni.$on("scancodedate", function(code2) { |
|
|
|
|
if (code2) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:449", code2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:420", code2); |
|
|
|
|
details.scancode = code2; |
|
|
|
|
if (details.showstate === 2) { |
|
|
|
|
details.waybillCode = code2; |
|
|
|
@ -36460,7 +36442,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
let res = await warehouseTrayTypedeleteOrderCode(data); |
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:519", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:490", "res :>> ", res); |
|
|
|
|
initlist(); |
|
|
|
|
tip.value.setisshow(false); |
|
|
|
|
}, |
|
|
|
@ -36508,7 +36490,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
trayGoodsId: item2.trayGoodsId |
|
|
|
|
}; |
|
|
|
|
let res = await warehouseTrayTypedeleteStockByTrayGoodsId(data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:573", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:544", "res :>> ", res); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
initlist(); |
|
|
|
|
} |
|
|
|
@ -36527,14 +36509,16 @@ This will fail in production if not fixed.`);
|
|
|
|
|
trayCode: details.trayCode |
|
|
|
|
}; |
|
|
|
|
let res = await warehouseTrayTypeorderScanTrayCode(data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:593", res.data, "resresresres"); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:564", res.data, "resresresres"); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
details.detauser = {}; |
|
|
|
|
details.datelist = []; |
|
|
|
|
if (res.data.isHasData == 1) { |
|
|
|
|
details.detauser = res.data.data; |
|
|
|
|
details.stock.marketId = res.data.data.marketId; |
|
|
|
|
details.stock.marketName = res.data.data.marketName; |
|
|
|
|
details.Remarktext = res.data.data.reamrk; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:602", " details.detauser :>> ", details.detauser); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:576", " details.detauser :>> ", details.detauser); |
|
|
|
|
if (details.tabBarState === 1) |
|
|
|
|
details.datelist = details.detauser.packageList; |
|
|
|
|
else if (details.tabBarState === 2) |
|
|
|
@ -36568,7 +36552,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
let res = await warehouseTrayTypeorderScanTrayCode(data); |
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:639", "res", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:613", "res", res); |
|
|
|
|
if (Number(res.data.isHasData) === 0) { |
|
|
|
|
uni.setStorageSync("trayCodeType", res.data.data); |
|
|
|
|
uni.redirectTo({ |
|
|
|
@ -36588,11 +36572,11 @@ This will fail in production if not fixed.`);
|
|
|
|
|
orderPackageCode: details.scancode |
|
|
|
|
}; |
|
|
|
|
let response2 = await warehouseTrayTypeorderScanOrderPackageCode(submitData); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:666", "response", response2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:640", "response", response2); |
|
|
|
|
const res = await initlist(); |
|
|
|
|
const { code: code2 } = res; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:670", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:672", "details.scancode :>> ", details.scancode); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:644", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:646", "details.scancode :>> ", details.scancode); |
|
|
|
|
if (code2 !== 200) |
|
|
|
|
return; |
|
|
|
|
if (((_a = details == null ? void 0 : details.detauser) == null ? void 0 : _a.trayNum) && ((_b = details == null ? void 0 : details.detauser) == null ? void 0 : _b.trayNum) > 0) { |
|
|
|
@ -36602,7 +36586,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
data: { orderCode } |
|
|
|
|
} = response2; |
|
|
|
|
const scanOrder2 = details.datelist.find((val) => val.dataCode === orderCode); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:685", "scanOrder :>> ", scanOrder2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:659", "scanOrder :>> ", scanOrder2); |
|
|
|
|
if (scanOrder2 && scanOrder2.orderTotalNum === scanOrder2.scanNum) { |
|
|
|
|
utils.ttsspke(`订单${orderCode}已齐套`); |
|
|
|
|
} |
|
|
|
@ -36613,26 +36597,26 @@ This will fail in production if not fixed.`);
|
|
|
|
|
orderPackageCode: details.scancode |
|
|
|
|
}; |
|
|
|
|
const res = warehouseTrayTypeenterStockNoDataMaterialCode(data); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:703", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:677", "res :>> ", res); |
|
|
|
|
} |
|
|
|
|
async function setTabBarState(state) { |
|
|
|
|
details.tabBarState = state; |
|
|
|
|
if (details.tabBarState === 1) |
|
|
|
|
details.datelist = details.detauser ? details.detauser.packageList : []; |
|
|
|
|
details.datelist = details.detauser && details.detauser.packageList ? details.detauser.packageList : []; |
|
|
|
|
else if (details.tabBarState === 2) |
|
|
|
|
details.datelist = details.detauser ? details.detauser.zeroList : []; |
|
|
|
|
details.datelist = details.detauser && details.detauser.zeroList ? details.detauser.zeroList : []; |
|
|
|
|
else if (details.tabBarState === 3) { |
|
|
|
|
details.datelist = details.detauser ? details.detauser.stockList : []; |
|
|
|
|
details.datelist = details.detauser && details.detauser.stockList ? details.detauser.stockList : []; |
|
|
|
|
if (!details.stock.marketId) |
|
|
|
|
chooseMarket(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
async function chooseMarket() { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:728", "111 :>> ", 111); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:730", "details.datelist :>> ", details.datelist.length); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:702", "111 :>> ", 111); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:704", "details.datelist :>> ", details.datelist.length); |
|
|
|
|
if (details.datelist.length === 0) { |
|
|
|
|
const res = await warehouseTrayTypefindAllMarket({}); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:734", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:708", "res :>> ", res); |
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
const _marketArr = res.data; |
|
|
|
@ -36650,9 +36634,9 @@ This will fail in production if not fixed.`);
|
|
|
|
|
icon: "none" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:753", "detail :>> ", detail); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:727", "detail :>> ", detail); |
|
|
|
|
details.stock.marketId = _marketArr[detail.checklist[0]].marketId; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:755", "_marketName :>> ", _marketArr); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:729", "_marketName :>> ", _marketArr); |
|
|
|
|
details.stock.marketName = _marketArr[detail.checklist[0]].marketName; |
|
|
|
|
tiplists.value.setdetails({ isshow: false }); |
|
|
|
|
}, |
|
|
|
@ -36716,7 +36700,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
let response2 = await warehouseTrayTypegetZeroOrderByWaybillCode(data); |
|
|
|
|
if (response2.code !== 200) |
|
|
|
|
return; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:829", response2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:803", response2); |
|
|
|
|
details.codelist = response2.data; |
|
|
|
|
details.codelist.map((item2) => { |
|
|
|
|
item2["number"] = 0; |
|
|
|
@ -36726,7 +36710,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
async function confirmlist() { |
|
|
|
|
let zeroList = []; |
|
|
|
|
let isfl = false; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:845", "details.codelist :>> ", details.codelist); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:819", "details.codelist :>> ", details.codelist); |
|
|
|
|
isfl = !details.codelist.some((item2) => { |
|
|
|
|
if (item2.number === 0) { |
|
|
|
|
return false; |
|
|
|
@ -36805,21 +36789,21 @@ This will fail in production if not fixed.`);
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
Promise.all(PromiseArr).then((res) => { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:940", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:914", "res :>> ", res); |
|
|
|
|
setshowstate(0); |
|
|
|
|
initlist(); |
|
|
|
|
details.stock.searchStockList = []; |
|
|
|
|
details.stock.materialCode = ""; |
|
|
|
|
}); |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:947", "err :>> ", err); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:921", "err :>> ", err); |
|
|
|
|
} finally { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
const print = () => { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:959", "bluetoothList :>> ", bluetoothList); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:960", "details.detauser :>> ", details.detauser); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:933", "bluetoothList :>> ", bluetoothList); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue:934", "details.detauser :>> ", details.detauser); |
|
|
|
|
tiplists.value.setdetails({ |
|
|
|
|
title: "是否打印", |
|
|
|
|
isshow: true, |
|
|
|
@ -40570,13 +40554,22 @@ This will fail in production if not fixed.`);
|
|
|
|
|
details.allocationId = res.data.allocationId; |
|
|
|
|
details.datalist = ((_a = res.data) == null ? void 0 : _a.list) || []; |
|
|
|
|
if (details.checkstate === 2) |
|
|
|
|
return details.renderList = details.datalist; |
|
|
|
|
details.renderList = details.datalist; |
|
|
|
|
if (Number(details.upshelfScanType) === 4 && details.datalist.length !== 0 && details.uplistarr.length !== 0) { |
|
|
|
|
return utils.handleToast("该库位已有数据, 无法上架"); |
|
|
|
|
} |
|
|
|
|
const _arr = []; |
|
|
|
|
for (let i2 = 0; i2 < details.datalist.length; i2++) { |
|
|
|
|
_arr.push(details.datalist[i2].orderCode); |
|
|
|
|
} |
|
|
|
|
for (let i2 = 0; i2 < details.uplistarr.length; i2++) { |
|
|
|
|
_arr.push(details.uplistarr[i2].orderCode); |
|
|
|
|
} |
|
|
|
|
details.orderCodeArr = _arr; |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:397", "details.orderCodeArr :>> ", details.orderCodeArr); |
|
|
|
|
} |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:391", "err :>> ", err); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:403", "err :>> ", err); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
const scanOther = async (_code) => { |
|
|
|
@ -40636,7 +40629,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
utils.ttsspke(res.audio); |
|
|
|
|
} |
|
|
|
|
} catch (err) { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:472", "err :>> ", err); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:484", "err :>> ", err); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
async function scandata() { |
|
|
|
@ -40860,7 +40853,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
item2.checked = !item2.checked; |
|
|
|
|
}; |
|
|
|
|
const handleDownLoadByOrder = async (item2) => { |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:754", "item :>> ", item2); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:766", "item :>> ", item2); |
|
|
|
|
const res = await postorderUpshelfDetailByAllocationId({ |
|
|
|
|
orderCode: item2.orderCode, |
|
|
|
|
allocationId: details.allocationId |
|
|
|
@ -40950,7 +40943,7 @@ This will fail in production if not fixed.`);
|
|
|
|
|
}; |
|
|
|
|
res = await warehouseUpdownTypedownStock(data); |
|
|
|
|
} |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:857", "res :>> ", res); |
|
|
|
|
formatAppLog("log", "at pagesHome/pages/ScanUp/ScanUp.vue:869", "res :>> ", res); |
|
|
|
|
if (res.code !== 200) |
|
|
|
|
return; |
|
|
|
|
details.scancode = details.allocationId; |
|
|
|
|