问题修复
This commit is contained in:
parent
2e57cbd63e
commit
96616c94ca
|
|
@ -142,15 +142,21 @@
|
|||
}
|
||||
});
|
||||
if (goodsToAssign.length > 0) {
|
||||
let params = {
|
||||
goodsList: goodsToAssign,
|
||||
workerId: member.workerId,
|
||||
totalPay: this.dispatchTotalPrice,
|
||||
orderMasterId: this.curOrder.orderMasterId,
|
||||
isAll: isAll
|
||||
if (this.dispatchTotalPrice) {
|
||||
let params = {
|
||||
goodsList: goodsToAssign,
|
||||
workerId: member.workerId,
|
||||
totalPay: this.dispatchTotalPrice,
|
||||
orderMasterId: this.curOrder.orderMasterId,
|
||||
isAll: isAll
|
||||
}
|
||||
this.$emit('assignWork', params);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请填写派单价格',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
console.log(params)
|
||||
this.$emit('assignWork', params);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请至少选择一种规格',
|
||||
|
|
|
|||
|
|
@ -752,13 +752,18 @@
|
|||
},
|
||||
async assignWork(params) {
|
||||
let res = await this.$request.assign(params);
|
||||
if (res.code === 0) {
|
||||
if (res && res.code === 0) {
|
||||
this.getCanAssignList(this.curOrder);
|
||||
this.reloadMasterOrderPage();
|
||||
uni.showToast({
|
||||
title: '派单成功',
|
||||
icon: 'success'
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '派单失败,请确认派单价格不高于本订单价格',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
async assignWork2MySelf(orderInfo) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue