剩余模块:生产退料
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
inputFocus: true,
|
||||
scanFrameDataFeedback: {}, //传回的扫描弹框数据
|
||||
shortcutDataFeedback: {}, //传回的默认值数据
|
||||
code:''
|
||||
})
|
||||
onLoad((pageData : any) => {
|
||||
console.log(pageData);
|
||||
@@ -123,15 +124,16 @@
|
||||
|
||||
})
|
||||
const scanConfirmFun = (e : any) => {
|
||||
getReceiveBillScanData(e)
|
||||
if(e != '') state.code = e
|
||||
getReceiveBillScanData(state.code)
|
||||
}
|
||||
const shortcutBoxShowShow = (val : boolean) => {
|
||||
state.shortcutRefShow = val
|
||||
console.log('=============================================',state.shortcutRefShow);
|
||||
console.log(state.shortcutRefShow);
|
||||
}
|
||||
const scanFrameBoxShowShow = (val : boolean) => {
|
||||
state.scanFrameRefShow = val
|
||||
console.log('=============================================',state.scanFrameRefShow);
|
||||
console.log(state.scanFrameRefShow);
|
||||
}
|
||||
/**
|
||||
* 数据逻辑
|
||||
@@ -153,6 +155,7 @@
|
||||
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
|
||||
debounceTimer.value = setTimeout(() => {
|
||||
state.queryString = e
|
||||
if(e != '') state.code = e
|
||||
if (state.queryString !== '') getReceiveBillScanData(e)
|
||||
})
|
||||
}
|
||||
@@ -165,6 +168,8 @@
|
||||
}).then((res : any) => {
|
||||
if (res.code == 200) {
|
||||
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) {
|
||||
@@ -203,8 +208,8 @@
|
||||
temporaryScanDraftSave({
|
||||
FVHUBFormId: "PUR_ReceiveBill", //数据类型
|
||||
FVHUBFBillNo: state.FBillNo, //单据编号
|
||||
FVHUBScanNumber: state.queryString, //条码
|
||||
FVHUBMaterialNumber: item.articlesStr, //物料编码
|
||||
FVHUBScanNumber: state.code, //条码
|
||||
FVHUBMaterialNumber: item.articlesStr, //物料编码
|
||||
FVHUBScanQty: item.quantityStr + '', //扫描数量
|
||||
FVHUBEntryId: scanFrameRef.value.state.receiveBillScanData.Id, //行ID
|
||||
FVHUBFlot: item.batchNumberStr, //批号
|
||||
|
||||
Reference in New Issue
Block a user