Browse Source

拒收接口

hella_online_20240829
yufei0306 6 months ago
parent
commit
598b24f495
  1. 13
      src/api/request2.js
  2. 19
      src/pages/purchaseReceipt/job/receiptDetail.vue

13
src/api/request2.js

@ -2289,6 +2289,19 @@ export function productDismantleRecordSubmit(params) {
}); });
} }
/**
* 拒收接口
* @param {*} id
*
*/
export function productDismantleJobClose(params) {
return request({
url: baseApi + "/wms/purchasereceipt-job-main/close?id="+params,
method: "put",
data: {},
});
}
/** /**
* 制品发货 任务 * 制品发货 任务
* status 任务状态 * status 任务状态

19
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -98,6 +98,9 @@
import locationCompare from '@/mycomponents/location/locationCompare.vue' import locationCompare from '@/mycomponents/location/locationCompare.vue'
import comReceiptDetailCard from '@/pages/purchaseReceipt/coms/comReceiptDetailCard.vue' import comReceiptDetailCard from '@/pages/purchaseReceipt/coms/comReceiptDetailCard.vue'
import jobTopAsn from '@/mycomponents/job/jobTopAsn.vue' import jobTopAsn from '@/mycomponents/job/jobTopAsn.vue'
import {
productDismantleJobClose
} from '@/api/request2.js';
export default { export default {
name: 'receipt_detail', name: 'receipt_detail',
@ -414,7 +417,21 @@
reject() { reject() {
this.$refs.comMessage.showQuestionMessage('是否要拒收任务<br>[' + this.jobContent.asnNumber + ']?', res => { this.$refs.comMessage.showQuestionMessage('是否要拒收任务<br>[' + this.jobContent.asnNumber + ']?', res => {
if (res) { if (res) {
this.showErrorMessage("需要赵雪冰提供拒收接口") uni.showLoading({
title: "提交中....",
mask: true
});
productDismantleJobClose(this.id).then(res => {
console.log('拒收',res)
if (res.data) {
navigateBack(1)
} else {
this.showErrorMessage(res.msg)
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
} }
}) })
}, },

Loading…
Cancel
Save