|
|
@ -114,21 +114,12 @@ const scanLocationCode = ref() |
|
|
|
const toPackUnit = ref() |
|
|
|
const comMessageRef = ref() |
|
|
|
const printService = ref() |
|
|
|
onLoad(() => { |
|
|
|
getBusinessType() |
|
|
|
// nextTick(() => { |
|
|
|
// if (uni.getStorageSync('overPackageRecordPointParams')) { |
|
|
|
// const overPackageRecordPointParams = uni.getStorageSync('overPackageRecordPointParams') |
|
|
|
// dataContent.value.printerUuid = overPackageRecordPointParams.printDeafult.value |
|
|
|
// dataContent.value.modelCode = overPackageRecordPointParams.templateDeafult.value |
|
|
|
// printService.value.setDefaultData(overPackageRecordPointParams.printDeafult, overPackageRecordPointParams.templateDeafult) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}) |
|
|
|
|
|
|
|
onLoad((option) => { |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: option.title |
|
|
|
}) |
|
|
|
getBusinessType() |
|
|
|
}) |
|
|
|
onNavigationBarButtonTap((e) => { |
|
|
|
if (e.index === 0) { |
|
|
@ -247,7 +238,7 @@ const setData = (result) => { |
|
|
|
item.subList.push(newDetail) |
|
|
|
scanPopupGetFocus() |
|
|
|
} else if (detail.scaned == true) { |
|
|
|
showErrorMessage(`箱码[${detail.packingNumber}批次[${balance.batch}]已经在列表中`) |
|
|
|
showErrorMessage(`箱码[${detail.packingNumber}批次[${balance.batch}]重复扫描`) |
|
|
|
} |
|
|
|
} |
|
|
|
calcHandleQty1() |
|
|
@ -316,6 +307,10 @@ const commit = () => { |
|
|
|
showErrorMessage('请选择目标包装规格') |
|
|
|
return |
|
|
|
} |
|
|
|
if(fromPackUnit.value == toPackUnit.value){ |
|
|
|
showErrorMessage("来源包装规格与目标包装规格一致,不能进行翻包操作") |
|
|
|
return; |
|
|
|
} |
|
|
|
checkSubmit() |
|
|
|
} else { |
|
|
|
showErrorMessage('没有要扫描的数据') |
|
|
@ -385,7 +380,7 @@ const submitJob = () => { |
|
|
|
barcodeBase64: '', |
|
|
|
}) |
|
|
|
}) |
|
|
|
showCommitSuccessMessage("提交成功<br>生成翻包记录<br>", list) |
|
|
|
showCommitSuccessMessage("提交成功\n生成翻包记录\n", list) |
|
|
|
} else { |
|
|
|
showErrorMessage("提交失败[" + res.msg + "]") |
|
|
|
} |
|
|
@ -463,12 +458,16 @@ const showCommitSuccessMessage = (hint, pointData) => { |
|
|
|
comMessageRef.value.showSuccessMessage(hint, (res) => { |
|
|
|
if (res) { |
|
|
|
detailSource.value = [] |
|
|
|
fromLocationCode.value = '' |
|
|
|
let fromLocationCode = '' |
|
|
|
// fromLocationCode.value = '' |
|
|
|
dataContent.value = {} |
|
|
|
itemCode.value = '' |
|
|
|
toPackUnitShow.value = '请选择' |
|
|
|
toPackQty.value = '' |
|
|
|
if (pointData.length > 0) { |
|
|
|
pointData.forEach(item=>{ |
|
|
|
item.fromLocationCode = fromLocationCode |
|
|
|
}) |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/point/index?points=${JSON.stringify(pointData)}` |
|
|
|
}) |
|
|
|