Browse Source

修改任务返回取消

wms3.0_pda
lijuncheng 10 months ago
parent
commit
66102c4b65
  1. 23
      pages/deliver/job/deliverDetail.vue
  2. 30
      pages/issue/job/issueDetail.vue
  3. 2
      pages/purchaseReturn/record/returnRecord.vue
  4. 22
      pages/repleinsh/job/repleinshDetail.vue

23
pages/deliver/job/deliverDetail.vue

@ -137,12 +137,21 @@
//
onBackPress(e) {
//
if (this.received) {
//
cancleTakeDeliverJob(this.id).then(res => {}).catch(error => {
this.showMessage(err);
})
if (e.from == 'backbutton') {
if (this.received) {
//
cancleTakeDeliverJob(this.id).then(res => {
uni.navigateBack();
}).catch(error => {
uni.navigateBack();
})
} else {
uni.navigateBack();
}
return true;
}
},
methods: {
@ -342,10 +351,10 @@
let handleQty = 0;
if (batch != undefined) {
batch.Records.forEach(res => {
handleQty = calc.add(handleQty,res.qty)
handleQty = calc.add(handleQty, res.qty)
})
batch.handleQty = handleQty;
itemHandleQty = calc.add(itemHandleQty,handleQty)
itemHandleQty = calc.add(itemHandleQty, handleQty)
}
})
}

30
pages/issue/job/issueDetail.vue

@ -62,6 +62,10 @@
getManagementPrecisions
} from '@/common/balance.js';
import {
calc
} from '@/common/calc.js';
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue'
import comIssueDetailCard from '@/pages/issue/coms/comIssueDetailCard.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
@ -90,7 +94,8 @@
subList: [], //subList
detailSource: [], //
detailOptions: [],
scanOptions: []
scanOptions: [],
received:false
};
},
@ -122,12 +127,21 @@
//
onBackPress(e) {
//
if (this.received) {
//
cancleTakeIssueJob(this.id).then(res => {}).catch(error => {
this.showMessage(err);
})
if (e.from === 'backbutton') {
if (this.received) {
//
cancleTakeIssueJob(this.id).then(res => {
uni.navigateBack();
}).catch(error => {
uni.navigateBack();
})
} else {
uni.navigateBack();
}
return true;
}
},
watch: {
@ -392,10 +406,10 @@
let handleQty = 0;
if (batch != undefined) {
batch.Records.forEach(res => {
handleQty += Number(res.qty)
handleQty = calc.add(handleQty,res.qty)
})
batch.handleQty = handleQty;
itemHandleQty += handleQty;
itemHandleQty = calc.add(itemHandleQty,handleQty)
}
})
}

2
pages/purchaseReturn/record/returnRecord.vue

@ -252,7 +252,7 @@
purchaseReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成采购退货记录" + res.data)
this.showCommitSuccessMessage("提交成功<br>生成采购退货记录<br>" + res.data)
} else {
this.showErrorMessage("提交失败" + res.msg)
}

22
pages/repleinsh/job/repleinshDetail.vue

@ -99,7 +99,8 @@
detailOptions: [],
scanOptions: [],
toLocationCode: '',
tolocationTypeList: []
tolocationTypeList: [],
received:false,
};
},
@ -131,12 +132,21 @@
//
onBackPress(e) {
//
if (this.received) {
//
cancleTakeRepleinshJob(this.id).then(res => {}).catch(error => {
this.showMessage(err);
})
if (e.from === 'backbutton') {
if (this.received) {
//
cancleTakeRepleinshJob(this.id).then(res => {
uni.navigateBack();
}).catch(error => {
uni.navigateBack();
})
} else {
uni.navigateBack();
}
return true;
}
},
watch: {

Loading…
Cancel
Save