|
|
|
@ -2654,10 +2654,11 @@ export default {
|
|
|
|
|
if (this.reservationId) { |
|
|
|
|
// 判断是否都没有选择包件 |
|
|
|
|
const checkInfoValues = this.form.stockArticleList.every( |
|
|
|
|
item => !item.packageListInfo || !item.packageListInfo.length |
|
|
|
|
item => !item.reservationNum |
|
|
|
|
); |
|
|
|
|
if (checkInfoValues) { |
|
|
|
|
ElMessageBox.prompt( |
|
|
|
|
|
|
|
|
|
await ElMessageBox.prompt( |
|
|
|
|
'当前所有订单都没有选择包件是否确认"取消本次计划"?', |
|
|
|
|
'请填写取消原因', |
|
|
|
|
{ |
|
|
|
@ -2691,12 +2692,15 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
console.log(data, '要提交的数据'); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
.catch(() => { |
|
|
|
|
console.log('关闭弹窗'); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
return |
|
|
|
|
} else { |
|
|
|
|
for (let i = 0; i < this.form.stockArticleList.length; i++) { |
|
|
|
|
if ( |
|
|
|
|
!this.form.stockArticleList[i].packageListInfo || |
|
|
|
|
!this.form.stockArticleList[i].packageListInfo.length |
|
|
|
|
!this.form.stockArticleList[i].reservationNum |
|
|
|
|
) { |
|
|
|
|
ElMessageBox.confirm( |
|
|
|
|
`订单自编号:${this.form.stockArticleList[i].orderCode}没有选择包件是否移除!`, |
|
|
|
@ -2711,7 +2715,9 @@ export default {
|
|
|
|
|
this.renderOrderData.splice(i, 1); |
|
|
|
|
this.form.stockArticleList.splice(i, 1); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
.catch(() => { |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|