二维码出库弹框确认

This commit is contained in:
bb_pan 2025-07-26 13:44:36 +08:00
parent 588a21585c
commit f5ce6a7835
1 changed files with 15 additions and 15 deletions

View File

@ -242,7 +242,7 @@ const getCodeDetailData = async (id, publishTask, typeId) => {
//
const getCodeDeviceListData = async () => {
const ids = checkedIds.value.map(item => item.maId)
const ids = checkedIds.value.map((item) => item.maId)
const checkedIdSet = new Set(ids)
const res = await getCodeDeviceListAPI(queryCodeParams.value)
const newRows = res.rows || []
@ -521,7 +521,7 @@ const onCodeIdentify = () => {
//
const scanStart = () => {
// qrCodeScan.value = '201809-00026'
// qrCodeScan.value = '202401-00006'
// getMaInfoScan()
if (maxNum.value == 0) {
uni.showToast({
@ -590,7 +590,7 @@ const getMaInfoScan = async () => {
console.log(res)
if (res.code == 200) {
if (res.data && res.data.recordList.length > 0) {
if(res.data.recordList[0].typeModelName != queryParams.value.typeName) {
if (res.data.recordList[0].typeModelName != queryParams.value.typeName) {
uni.showModal({
title: '提示',
content: '当前扫描到的物资规格与当前任务规格不一致, 请仔细检查核对',
@ -601,18 +601,18 @@ const getMaInfoScan = async () => {
return
}
codeData.value = res.data.recordList[0]
confirmCodeOutBound()
// 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: `物资类型:${res.data.recordList[0].typeName}\n规格型号${res.data.recordList[0].typeModelName}\n设备编码${res.data.recordList[0].maCode}`,
confirmText: '确定',
cancelText: '取消',
success: async (res) => {
if (res.confirm) {
confirmCodeOutBound()
}
},
})
} else {
uni.showToast({ title: res.data.msg, icon: 'none' })
}