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