二维码出库弹框确认
This commit is contained in:
parent
588a21585c
commit
f5ce6a7835
|
|
@ -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' })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue