opt:优化

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-08-06 14:37:54 +08:00
parent 988479d2ed
commit a6d51dd827
6 changed files with 25 additions and 13 deletions

View File

@@ -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
}
}