Browse Source

补料记录清除数据

wms3.0_pda
lijuncheng 8 months ago
parent
commit
abf213daaa
  1. 21
      pages/repleinsh/coms/comRepleinshRequestPopup.vue
  2. 5
      pages/repleinsh/record/repleinshRecord.vue

21
pages/repleinsh/coms/comRepleinshRequestPopup.vue

@ -116,11 +116,10 @@
fgLocationCode: "", fgLocationCode: "",
itemCodeFocus: false, itemCodeFocus: false,
isCheckItemCode: false, isCheckItemCode: false,
counQty: 0, counQty: undefined,
editPosition: true, editPosition: true,
numberFocus: false, numberFocus: false,
uom: "", uom: "",
positionInfo: "请选择位置",
show: false, show: false,
isModifiedPosition: true, isModifiedPosition: true,
positionList: [], positionList: [],
@ -167,7 +166,12 @@
// this.qty = 0 // this.qty = 0
// this.itemCodeGetFocus(); // this.itemCodeGetFocus();
// } // }
this.qty = 0;
this.itemCode = '请扫描物料信息'
this.toLocationCode = '请扫目标库位'
this.isCheckItemCode =false;
this.counQty =undefined;
this.numberFocus = false
this.$refs.popup.open('bottom'); this.$refs.popup.open('bottom');
// this.showScanLocation(); // this.showScanLocation();
}, },
@ -207,10 +211,21 @@
}, },
confirm() { confirm() {
if (this.toLocationCode == "请扫目标库位") {
this.showErrorMessage("请输入目标库位")
return
}
if (this.itemCode == "" || !this.isCheckItemCode) { if (this.itemCode == "" || !this.isCheckItemCode) {
this.showErrorMessage("请输入物料", "itemCode") this.showErrorMessage("请输入物料", "itemCode")
return return
} }
if (this.counQty == undefined) {
this.showErrorMessage("请输入数量")
return
}
if (this.qty == 0) { if (this.qty == 0) {
this.showErrorMessage("数量必须大于0") this.showErrorMessage("数量必须大于0")
return return

5
pages/repleinsh/record/repleinshRecord.vue

@ -206,6 +206,8 @@
if (res.data.length > 0) { if (res.data.length > 0) {
res.data.forEach(r => { res.data.forEach(r => {
r.toLocationCode = item.toLocation.code; r.toLocationCode = item.toLocation.code;
r.itemName = item.itemName
r.uom = item.uom;
that.subList.push(r); that.subList.push(r);
}) })
@ -367,13 +369,12 @@
submitJob() { submitJob() {
var params = this.setParams() var params = this.setParams()
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
repleinshRecordSubmit(params).then(res => { repleinshRecordSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成补料记录<br>" + res.data) this.showCommitSuccessMessage("提交成功<br>生成补料记录<br>" + res.data)
} else { } else {
this.showErrorMessage("提交失败:" + res.msg) this.showErrorMessage("提交失败[" + res.msg+"]")
} }
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()

Loading…
Cancel
Save