剩余模块:生产入库,销售出库
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
</l-header>
|
||||
<view class="input-box">
|
||||
<view class="input-item">
|
||||
<up-input :placeholder="t('verify.tm')" border="none" clearable inputAlign="left"
|
||||
:focus="state.inputFocus" v-model="state.queryString" @change="changeFun" ref="inputRef">
|
||||
<up-input :placeholder="t('verify.tm')" border="none" clearable inputAlign="left" inputmode="none"
|
||||
v-model="state.queryString" @change="changeFun" ref="inputRef">
|
||||
<template #prefix>
|
||||
<up-icon name="scan" color="#2979ff" size="24"></up-icon>
|
||||
</template>
|
||||
@@ -122,7 +122,7 @@
|
||||
query.select(".material-listBox").boundingClientRect((data) => {
|
||||
state.scrollHeight = data.height
|
||||
}).exec();
|
||||
// scanFrameRef.value.stateShow(true)
|
||||
|
||||
|
||||
})
|
||||
/**
|
||||
@@ -175,18 +175,18 @@
|
||||
const postTemporaryScanDraftSaveFun = (item : any) => {
|
||||
console.log(item);
|
||||
temporaryScanDraftSave({
|
||||
FVHUBFormId: "PUR_ReceiveBill", //数据类型
|
||||
FVHUBFBillNo: state.FBillNo, //单据编号
|
||||
FVHUBScanNumber: state.queryString, //条码
|
||||
FVHUBFormId: "PUR_ReceiveBill", //数据类型
|
||||
FVHUBFBillNo: state.FBillNo, //单据编号
|
||||
FVHUBScanNumber: state.queryString, //条码
|
||||
FVHUBMaterialNumber: item.MaterialNumber, //物料编码
|
||||
FVHUBScanQty: item.BarCodeQty + '', //扫描数量
|
||||
FVHUBEntryId: item.Id, //行ID
|
||||
FVHUBFlot: item.FLot_Text, //批号
|
||||
FVHUBScanQty: item.BarCodeQty + '', //扫描数量
|
||||
FVHUBEntryId: item.Id, //行ID
|
||||
FVHUBFlot: item.FLot_Text, //批号
|
||||
FVHUBStock: {
|
||||
FNUMBER: "" //仓库编号
|
||||
},
|
||||
FVHUBMaterial: {
|
||||
FNUMBER: item.MaterialNumber //物料编码
|
||||
FNUMBER: item.MaterialNumber //物料编码
|
||||
},
|
||||
// ...JSON.parse(str),''
|
||||
}).then((res : any) => {
|
||||
@@ -225,7 +225,7 @@
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
let ids : any = []
|
||||
let checkIds : any = []
|
||||
// let checkIds : any = []
|
||||
let param = {
|
||||
FormId: 'PUR_ReceiveBill',
|
||||
UserId: uni.getStorageSync('userInfo').Context.UserId,
|
||||
@@ -233,23 +233,25 @@
|
||||
};
|
||||
uni.showLoading({ mask: true });
|
||||
//获取扫描数据里的所有数据
|
||||
temporaryScanList(param).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.list.length != 0) {
|
||||
res.data.list.forEach((item : any) => {
|
||||
ids.push(item.FID)
|
||||
temporaryScanList(param).then(resScanList => {
|
||||
if (resScanList.code == 200) {
|
||||
if (resScanList.data.list.length != 0) {
|
||||
resScanList.data.list.forEach((item : any) => {
|
||||
ids.push(item.FVHUBEntryId)
|
||||
})
|
||||
console.log(ids);
|
||||
// debugger
|
||||
//推送数据
|
||||
state.dataList.forEach((item : any) => {
|
||||
checkIds.push(item.Id)
|
||||
})
|
||||
// state.dataList.forEach((item : any) => {
|
||||
// checkIds.push(item.Id)
|
||||
// })
|
||||
PURReceiveBillScanCheck({
|
||||
EntryIds: checkIds.toString(),
|
||||
EntryIds: ids.toString(),
|
||||
Ids: state.materialId
|
||||
}).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
fStockFlexDetailDelete({ Ids: ids.toString() }).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
}).then((resCheck : any) => {
|
||||
if (resCheck.code === 200) {
|
||||
fStockFlexDetailDelete({ Ids: ids.toString() }).then((resDelete : any) => {
|
||||
if (resDelete.code === 200) {
|
||||
fnDataList(state.materialId);
|
||||
uni.$u.toast(t('public.cg'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user