Browse Source

YT-1192 修改号品收货任务提交

intex
lijuncheng 1 day ago
parent
commit
b142b1176c
  1. 12
      src/pages/productReceipt/job/productReceiptDetail.vue
  2. 22
      src/pages/productReceipt/job/productReceiptJob.vue

12
src/pages/productReceipt/job/productReceiptDetail.vue

@ -487,12 +487,20 @@
getManagementPrecisions(itemCodes, this.toLocationCode, res => { getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
var params = this.setParams(); let params = this.setParams();
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
productReceiptJobsubmit(params).then(res => { productReceiptJobsubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功\n生成预生产收货记录\n" + res.data, ) var hint = ""
if(params.type=='predict'){
hint="提交成功\n生成补给品收货记录\n" +res.data
}else if(params.type=='assemble'){
hint="提交成功\n生成号口品收货记录\n" +res.data
}else {
hint="提交成功\n生成收货记录\n"
}
this.showCommitSuccessMessage(hint)
} else { } else {
this.showErrorMessage("提交失败[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
} }

22
src/pages/productReceipt/job/productReceiptJob.vue

@ -137,19 +137,19 @@
timerRefresh() { timerRefresh() {
this.getList('refresh'); this.getList('refresh');
this.stopRefresh(); // this.stopRefresh();
var that = this; // var that = this;
this.timer = setInterval(function() { // this.timer = setInterval(function() {
that.getList('refresh'); // that.getList('refresh');
console.log('装配刷新'); // console.log('');
}, planRefreshTime) // }, planRefreshTime)
}, },
stopRefresh() { stopRefresh() {
console.log('stopRefresh装配刷新'); console.log('stopRefresh装配刷新');
if (this.timer) { // if (this.timer) {
clearInterval(this.timer); // clearInterval(this.timer);
this.timer = null; // this.timer = null;
} // }
}, },
getList(type) { getList(type) {
let that = this; let that = this;
@ -450,7 +450,7 @@
return; return;
} }
if (this.type == 'predict') { if (this.type == 'predict'||this.type == 'assemble') {
uni.navigateTo({ uni.navigateTo({
url: './productReceiptDetail?id=' + result.masterId + '&status=' + result.status + url: './productReceiptDetail?id=' + result.masterId + '&status=' + result.status +
'&scanMessage=' + scanMessage + '&title=' + this.title '&scanMessage=' + scanMessage + '&title=' + this.title

Loading…
Cancel
Save