剩余模块:生产退料

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

@@ -61,7 +61,7 @@
</view>
</view>
</view>
<scanFrame ref="scanFrameRef" @confirmation="scanFrameCnfirmation"
<scanFrame ref="scanFrameRef" @confirmation="scanFrameCnfirmation" :qtyState="true"
@scanFrameDataFeedback="(res:object)=>{state.scanFrameDataFeedback = res}"
@fast="(row:any)=>{state.scanFrameDataFeedback = row}" @err="scanFrameErrFun" @boxShow="scanFrameBoxShowShow" />
<shortcut ref="shortcutRef" @dataToscanFrame="dataToscanFrameFun" @boxShow="shortcutBoxShowShow" />
@@ -104,6 +104,7 @@
inputFocus: true,
scanFrameDataFeedback: {},
shortcutDataFeedback: {},
code:''
})
onLoad((pageData : any) => {
console.log(pageData);
@@ -124,7 +125,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
@@ -152,6 +154,9 @@
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
debounceTimer.value = setTimeout(() => {
state.queryString = e
if(e != '') state.code = e
console.log(state.code);
console.log(state.queryString);
if (state.queryString !== '') getReceiveBillScanData(e)
})
}
@@ -198,13 +203,14 @@
const str = JSON.stringify(obj);
console.log(item);
temporaryScanDraftSave({
FVHUBFormId: "SAL_OUTSTOCK", //数据类型
FVHUBFormId: "SAL_OUTSTOCK", //数据类型
FVHUBFBillNo: state.FBillNo, //单据编号
FVHUBScanNumber: state.queryString, //条码
FVHUBScanNumber: state.code, //条码
FVHUBMaterialNumber: item.articlesStr, //物料编码
FVHUBScanQty: item.quantityStr + '', //扫描数量
FVHUBScanQty: item.quantityStr + '', //扫描数量
FVHUBEntryId: scanFrameRef.value.state.receiveBillScanData.Id, //物料ID
FVHUBFlot: item.batchNumberStr, //批号
FVHUBFlot: item.batchNumberStr, //批号
FVHUBJSON: item.FVHUBJSON, //序列号
FVHUBStock: {
FNUMBER: item.warehouseData.FNUMBER //仓库编号
},
@@ -263,19 +269,17 @@
EntryIds.push(item.FVHUBEntryId)
ids.push(item.FID)
ScanEntry.push({
FENTRYID: item.FVHUBEntryId,
Qty: item.FVHUBScanQty,
Flot: item.FVHUBFlot,
StockId: item.FVHUBStock,
StockFlex: item.FVHUBStockFlex,
Sno: item.FVHUBJSON
Ids:state.materialId,
EntryIds: item.FVHUBEntryId,
// Qty: item.FVHUBScanQty,
// Flot: item.FVHUBFlot,
// StockId: item.FVHUBStock,
// StockFlex: item.FVHUBStockFlex,
FMaxcessSNo: item.FVHUBJSON
})
})
//推送数据
SAL_OUTSTOCKCheck({
Ids: state.materialId,
EntryIds: EntryIds.toString(),
}).then((res : any) => {
SAL_OUTSTOCKCheck({Items:ScanEntry}).then((res : any) => {
if (res.code === 200) {
fStockFlexDetailDelete({ Ids: ids.toString() }).then((res : any) => {
if (res.code === 200) {
@@ -283,6 +287,8 @@
uni.$u.toast('操作成功')
}
})
} else {
uni.$u.toast(res.msg)
}
})
@@ -304,7 +310,7 @@
*/
const fnDataList = (FBillNo : any) => {
let param = {
id: FBillNo,
Id: FBillNo,
};
uni.showLoading({ mask: true });
SAL_OUTSTOCKView(param).then(res => {