出库优化
This commit is contained in:
parent
f151d168a2
commit
f969630687
|
|
@ -498,6 +498,9 @@ const onHandleOutbound = async () => {
|
||||||
|
|
||||||
// 标准箱识别
|
// 标准箱识别
|
||||||
const boxScan = async () => {
|
const boxScan = async () => {
|
||||||
|
// boxCode.value = 'BOX20250906-009'
|
||||||
|
// boxOut()
|
||||||
|
// return
|
||||||
if (maxNum.value == 0) {
|
if (maxNum.value == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '待出库数量已为0!',
|
title: '待出库数量已为0!',
|
||||||
|
|
@ -592,7 +595,7 @@ const boxOut = async () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: '标准箱未绑定设备!', icon: 'none' })
|
uni.showToast({ title: res.data.msg, icon: 'none' })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: '扫码识别失败', icon: 'none' })
|
uni.showToast({ title: '扫码识别失败', icon: 'none' })
|
||||||
|
|
@ -608,6 +611,13 @@ const boxOutBound = async () => {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (!boxInfo.value || boxInfo.value.length == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '无符合出库条件的设备!',
|
||||||
|
icon: 'none',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
// 解构所需要的数据
|
// 解构所需要的数据
|
||||||
const { typeId, parentId, publishTask } = queryParams.value
|
const { typeId, parentId, publishTask } = queryParams.value
|
||||||
// 组装出库参数
|
// 组装出库参数
|
||||||
|
|
@ -624,7 +634,8 @@ const boxOutBound = async () => {
|
||||||
parentId,
|
parentId,
|
||||||
typeId,
|
typeId,
|
||||||
publishTask,
|
publishTask,
|
||||||
code: queryParams.value.code
|
code: queryParams.value.code,
|
||||||
|
jiJuType: e.jiJuType
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
console.log(paramsList)
|
console.log(paramsList)
|
||||||
|
|
@ -660,8 +671,9 @@ const onCodeIdentify = () => {
|
||||||
|
|
||||||
// 扫码识别按钮
|
// 扫码识别按钮
|
||||||
const scanStart = () => {
|
const scanStart = () => {
|
||||||
// qrCodeScan.value = '202401-00006'
|
// qrCodeScan.value = '202308-00657'
|
||||||
// getMaInfoScan()
|
// getMaInfoScan()
|
||||||
|
// return
|
||||||
if (maxNum.value == 0) {
|
if (maxNum.value == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '待出库数量已为0!',
|
title: '待出库数量已为0!',
|
||||||
|
|
@ -793,6 +805,7 @@ const confirmCodeOutBound = async () => {
|
||||||
publishTask,
|
publishTask,
|
||||||
code: queryParams.value.code,
|
code: queryParams.value.code,
|
||||||
keyId: keyId.value,
|
keyId: keyId.value,
|
||||||
|
jiJuType: codeData.value.jiJuType,
|
||||||
})
|
})
|
||||||
const res = await setOutboundNumAPI({ leaseOutDetailsList: paramsList })
|
const res = await setOutboundNumAPI({ leaseOutDetailsList: paramsList })
|
||||||
console.log('333333333333', res)
|
console.log('333333333333', res)
|
||||||
|
|
|
||||||
|
|
@ -203,6 +203,7 @@ export default {
|
||||||
materialName: this.codeData.maName,
|
materialName: this.codeData.maName,
|
||||||
typeId: this.codeData.typeId,
|
typeId: this.codeData.typeId,
|
||||||
outType: 4,
|
outType: 4,
|
||||||
|
jiJuType: this.codeData.jiJuType,
|
||||||
}
|
}
|
||||||
uni.$emit('paramsReceived', params)
|
uni.$emit('paramsReceived', params)
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue