|
@@ -157,6 +157,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async onSetOrderReturnChild() {
|
|
|
+ const returnNum = Number(this.list[0].return_num)
|
|
|
+
|
|
|
let total = 0
|
|
|
const list = this.list.map(({ id, can_sell_num, defective_num, loss_num }) => {
|
|
|
total += (can_sell_num + defective_num + loss_num)
|
|
@@ -168,8 +170,8 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- if (Number(this.sitem.out_num) !== total) {
|
|
|
- this.$message.warning('销售仓入库数量、次品仓入库数量、丢失数量相加必须等于发货数量')
|
|
|
+ if (total !== returnNum) {
|
|
|
+ this.$message.warning('销售仓入库数量、次品仓入库数量、丢失数量相加必须等于退货数量')
|
|
|
return
|
|
|
}
|
|
|
|