剩余模块:生产退料

This commit is contained in:
2025-06-09 22:07:10 +08:00
parent 63a44af1d8
commit 03e22dd9f6
77 changed files with 2832 additions and 817 deletions

View File

@@ -115,6 +115,7 @@
inputFocus: true,
scanFrameDataFeedback: {},
shortcutDataFeedback: {},
code:''
})
onLoad((pageData : any) => {
console.log(pageData);
@@ -136,7 +137,8 @@
})
const scanConfirmFun = (e : any) => {
getReceiveBillScanData(e)
if(e != '') state.code = e
getReceiveBillScanData(state.code)
}
const shortcutBoxShowShow = (val : boolean) => {
state.shortcutRefShow = val
@@ -165,6 +167,7 @@
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
debounceTimer.value = setTimeout(() => {
state.queryString = e
if(e != '') state.code = e
if (state.queryString !== '') getReceiveBillScanData(e)
})
}
@@ -177,6 +180,8 @@
}).then((res : any) => {
if (res.data !== null) {
console.log(res);
const scanData = res.data
if( scanData.UnScanQty > scanData.BarCodeQty ) scanData.UnScanQty = scanData.BarCodeQty
scanFrameRef.value.getreceiveBillScanData({ ...res.data, queryString: state.queryString, scanFrameShowSate: state.shortcutDataFeedback.scanFrameShowSate, stashVerify: true })
if (Object.keys(state.shortcutDataFeedback).length) {
if (state.shortcutDataFeedback.scanFrameShowSate) {
@@ -217,7 +222,7 @@
temporaryScanDraftSave({
FVHUBFormId: "PUR_ReceiveBill", //数据类型
FVHUBFBillNo: state.FBillNo, //单据编号
FVHUBScanNumber: state.queryString, //条码
FVHUBScanNumber: state.code, //条码
FVHUBMaterialNumber: item.articlesStr, //物料编码
FVHUBScanQty: item.quantityStr + '', //扫描数量
FVHUBEntryId: scanFrameRef.value.state.receiveBillScanData.Id, //物料ID