opt:优化
This commit is contained in:
@@ -214,6 +214,8 @@ export default {
|
||||
return
|
||||
}
|
||||
const mater = this.rows[0].material_code
|
||||
const out_code = this.rows[0].out_code
|
||||
const floor_code = this.rows[0].floor_code
|
||||
for (let i = 0; i < this.rows.length; i++) {
|
||||
const now = this.rows[i]
|
||||
if (now.is_merge === '1') {
|
||||
@@ -225,7 +227,15 @@ export default {
|
||||
return
|
||||
}
|
||||
if (now.material_code !== mater) {
|
||||
this.crud.notify('合单的物料必须相同:' + now.material_code, CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.crud.notify('合单的订单物料必须相同:' + now.material_code, CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (now.out_code !== out_code) {
|
||||
this.crud.notify('合单的出库提升机必须相同:' + now.out_code, CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (now.floor_code !== floor_code) {
|
||||
this.crud.notify('合单的订单楼层必须相同:' + now.floor_code, CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user