Browse Source

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

intex
lijuncheng 19 hours 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 => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams();
let params = this.setParams();
console.log("提交参数", JSON.stringify(params));
productReceiptJobsubmit(params).then(res => {
uni.hideLoading()
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 {
this.showErrorMessage("提交失败[" + res.msg + "]")
}

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

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

Loading…
Cancel
Save