Browse Source

调拨出库、调拨入库任务提交

wms3.0_pda
lijuncheng 12 months ago
parent
commit
6874d3d63b
  1. 4
      pages/inspect/job/inspectFullDetail.vue
  2. 67
      pages/issue/coms/comScanIssuePack.vue
  3. 2
      pages/transfer/job/issueDetail.vue
  4. 31
      pages/transfer/job/receiptDetail.vue

4
pages/inspect/job/inspectFullDetail.vue

@ -99,7 +99,6 @@
},
onLoad(option) {
this.id = option.id;
if (this.id != undefined) {
// //
if (option.status == "1") {
@ -336,7 +335,6 @@
return;
}
//
if (this.inspectType == "FULL") {
if (this.scanCount == this.subList.length) {
this.submitJob();
} else {
@ -349,8 +347,6 @@
}
});
}
}
},
submitJob() {

67
pages/issue/coms/comScanIssuePack.vue

@ -215,75 +215,8 @@
this.showErrorMessage('发料库位【' + fromlocation + '】不存在')
}
},
onScan1(result) {
try {
let that = this;
if (that.fromLocationCode == '') {
that.showErrorMessage('请选择来源库位', res => {
that.$refs.toLocationCombox.onFocus();
});
return;
}
let packageInfo = result.package;
let itemCode = result.label.itemCode;
let packingCode = result.label.packingNumber;
let lot = result.label.batch;
that.dataContent.forEach(l => {
let item = l.Items.find(r => r.itemCode == itemCode);
if (item == undefined) {
continue;
// that.showErrorMessage('' + itemCode + '',
// res => {
// that.getfocus();
// }
// )
// return;
} else {
//
uni.showLoading({
title: '加载中',
mask: true
})
getBalanceByManagementPrecision(result.label, that.fromLocationCode, that
.fromInventoryStatuses,
balanceRes => {
if (balanceRes.success) {
if (balanceRes.data.list.length == 0) {
this.showErrorMessage('在来源库位[' + this.fromLocationCode +
'],未查找到该包装的库存记录',
res => {
this.packGetFocus();
})
} else if (balanceRes.data.list.length == 1) {
let balance = balanceRes.data.list[0];
this.afterGetBalance(result.label, balance, packageInfo);
} else {
this.showBalanceSelect(balanceRes.data.list);
}
} else {
this.showErrorMessage(balanceRes.message.message);
}
uni.hideLoading();
});
}
})
} catch (e) {
this.showErrorMessage(e.stack)
uni.hideLoading();
}
},
onScan(result) {
try {
let that = this;

2
pages/transfer/job/issueDetail.vue

@ -355,7 +355,7 @@
transferIssueJobSubmit(params).then(res => {
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成调拨出库记录" + res.data.Number )
this.showCommitSuccessMessage("提交成功<br>生成调拨出库记录" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}

31
pages/transfer/job/receiptDetail.vue

@ -276,7 +276,8 @@
']不一致,是否继续入库?', res => {
if (res) {
itemDetail.scaned = true;
itemDetail.handleQty = result.label.qty
itemDetail.handleQty = result.label.qty;
itemDetail.toInventoryStatus = result.balance.inventoryStatus
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty = result.package.stdPackQty
@ -288,7 +289,8 @@
});
} else {
itemDetail.scaned = true;
itemDetail.handleQty = result.label.qty
itemDetail.handleQty = result.label.qty;
itemDetail.toInventoryStatus = result.balance.inventoryStatus
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty = result.package.stdPackQty
@ -339,6 +341,7 @@
},
submitJob() {
uni.showLoading({
title: "提交中....",
mask: true
@ -360,18 +363,18 @@
this.managementList = res.list;
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
transferReceiptJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成调拨入库记录<br>" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
// transferReceiptJobSubmit(params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data)
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// uni.hideLoading()
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
@ -389,6 +392,8 @@
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber;
detail.toContainerNumber = '';
detail.toLocationCode = this.toLocationCode;
detail.toBatch = info.batch;
subList.push(detail)
}

Loading…
Cancel
Save