领料出库,退料管理bug修复

This commit is contained in:
hongchao 2025-02-10 15:05:49 +08:00
parent 12c299bed1
commit 39a81033d0
3 changed files with 23 additions and 16 deletions

View File

@ -153,7 +153,7 @@ const scanStart = async () => {
uni.showToast({ title: '扫码失败', icon: 'none' })
}
if(ret.resp_code==1000){
qrCode.value = ret.resp_result.split("qrcode=")[1];
qrCode.value = ret.resp_result;
console.log(qrCode.value)
let param={
"qrCode":qrCode.value,

View File

@ -122,7 +122,7 @@ const codeScan = async () => {
}
if(ret.resp_code==1000){
// uni.showToast({ title: '', icon: 'none' })
qrCode.value = ret.resp_result.split("qrcode=")[1];
qrCode.value = ret.resp_result;
codeToBack()
}
})
@ -141,6 +141,7 @@ const codeToBack = async () => {
if(res.code==200){
if(res.data.length>0){
maInfo.value = res.data[0]
console.log('22222222',maInfo.value)
}else{
uni.showToast({ title: '扫码二维码未绑定设备编码!', icon: 'none'})
}
@ -162,14 +163,17 @@ const submitCode = () => {
let info = {
agreementId:maInfo.value.agreementId,
backPerson:backPerson.value,
phone:phone.value
phone:phone.value,
proId:maInfo.value.proId,
unitId:maInfo.value.unitId
}
let detail = [{
"maId":maInfo.value.maId,
"maCode":maInfo.value.maCode,
"typeId":maInfo.value.typeId,
"apDetection":apDetection.value,
"bmFileInfos":bmFileInfos.value
"bmFileInfos":bmFileInfos.value,
"preNum":1,
}]
let param = {
"backApplyInfo":info,

View File

@ -418,7 +418,8 @@ const scanStart = () => {
}
if(ret.resp_code==1000){
// uni.showToast({ title: '', icon: 'none' })
qrCodeScan.value = ret.resp_result.split("qrcode=")[1]
console.log('444444444444444',ret)
qrCodeScan.value = ret.resp_result
if (qrCodeScan.value=="") {
uni.showToast({ title: '扫码识别失败', icon: 'none'})
}else{
@ -438,17 +439,18 @@ const getMaInfoScan = async () => {
if (res.code == 200) {
if (res.data && res.data.recordList.length > 0) {
codeData.value = res.data.recordList[0]
uni.showModal({
title: '出库',
content: `监测到${qrCodeScan.value}绑定设备${res.data.recordList[0].maCode},是否确定出库?`,
confirmText: '确定',
cancelText: '取消',
success: async (res) => {
if (res.confirm) {
confirmCodeOutBound()
}
}
})
confirmCodeOutBound()
// uni.showModal({
// title: '',
// content: `${qrCodeScan.value}${res.data.recordList[0].maCode}?`,
// confirmText: '',
// cancelText: '',
// success: async (res) => {
// if (res.confirm) {
// confirmCodeOutBound()
// }
// }
// })
}else{
uni.showToast({ title: res.data.msg, icon: 'none'})
}
@ -476,6 +478,7 @@ const confirmCodeOutBound = async () => {
typeModelName: codeData.value.typeModelName,
})
const res = await setOutboundNumAPI({ leaseOutDetailsList: paramsList })
console.log('333333333333',res)
if (res.code === 200) {
uni.showToast({
title: '出库成功!',