剩余模块:生产退料
This commit is contained in:
@@ -109,6 +109,7 @@
|
||||
inputFocus: true,
|
||||
scanFrameDataFeedback: {},
|
||||
shortcutDataFeedback: {},
|
||||
code:''
|
||||
})
|
||||
onLoad((pageData : any) => {
|
||||
console.log(pageData);
|
||||
@@ -130,7 +131,8 @@
|
||||
// scanFrameRef.value.stateShow(true)
|
||||
})
|
||||
const scanConfirmFun = (e : any) => {
|
||||
getReceiveBillScanData(e)
|
||||
if(e != '') state.code = e
|
||||
getReceiveBillScanData(state.code)
|
||||
}
|
||||
const shortcutBoxShowShow = (val:boolean) => {
|
||||
state.shortcutRefShow = val
|
||||
@@ -158,6 +160,7 @@
|
||||
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
|
||||
debounceTimer.value = setTimeout(() => {
|
||||
state.queryString = e
|
||||
if(e != '') state.code = e
|
||||
if (state.queryString !== '') getReceiveBillScanData(e)
|
||||
}, 500)
|
||||
}
|
||||
@@ -207,9 +210,10 @@
|
||||
const str = JSON.stringify(obj);
|
||||
console.log(item);
|
||||
temporaryScanDraftSave({
|
||||
FType : "Return",
|
||||
FVHUBFormId: "PRD_PPBOM", //数据类型
|
||||
FVHUBFBillNo: state.BillNo, //单据编号
|
||||
FVHUBScanNumber: state.queryString, //条码
|
||||
FVHUBScanNumber: state.code, //条码
|
||||
FVHUBMaterialNumber: item.articlesStr, //物料编码
|
||||
FVHUBScanQty: item.quantityStr + '', //扫描数量
|
||||
FVHUBEntryId: scanFrameRef.value.state.receiveBillScanData.Id, //物料ID
|
||||
@@ -220,7 +224,6 @@
|
||||
FVHUBMaterial: {
|
||||
FNUMBER: item.articlesStr
|
||||
},
|
||||
FType: "Return",
|
||||
...JSON.parse(str),
|
||||
}).then((res : any) => {
|
||||
console.log(res);
|
||||
@@ -245,7 +248,8 @@
|
||||
const scanRecordFun = () => {
|
||||
toPages('/pages/records/index', {
|
||||
FormId: 'PRD_PPBOM',
|
||||
FbillNo: state.BillNo
|
||||
FbillNo: state.BillNo,
|
||||
apiData:{FType : "Return"}
|
||||
})
|
||||
}
|
||||
/**
|
||||
@@ -262,7 +266,8 @@
|
||||
let param = {
|
||||
FormId: 'PRD_PPBOM',
|
||||
UserId: uni.getStorageSync('userInfo').Context.UserId,
|
||||
FbillNo: state.BillNo
|
||||
FbillNo: state.BillNo,
|
||||
FType : "Return",
|
||||
};
|
||||
uni.showLoading({ mask: true });
|
||||
//获取扫描数据里的所有数据
|
||||
@@ -289,12 +294,13 @@
|
||||
AutoAudit: 'true',
|
||||
ScanEntry: ScanEntry
|
||||
}
|
||||
}).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
}).then((resA : any) => {
|
||||
if (resA.code === 200) {
|
||||
fStockFlexDetailDelete({ Ids: ids.toString() }).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
fnDataList(state.materialId);
|
||||
uni.$u.toast(t('public.cg'))
|
||||
toPages('/pages/returnMaterials/print',{fBillNo:resA.data.SuccessEntitys[0].Number})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user