|
@@ -525,16 +525,16 @@ export default { |
|
@@ -525,16 +525,16 @@ export default { |
|
525
|
this.weighList = []
|
525
|
this.weighList = []
|
|
526
|
return
|
526
|
return
|
|
527
|
}
|
527
|
}
|
|
528
|
- // 校验:所选计划的「是否买断、供料单位、收料单位、车间」必须一致
|
528
|
+ // 校验:所选计划的「是否买断、供料单位、收料单位、分厂、采购处、区域」必须一致
|
|
529
|
const first = list[0]
|
529
|
const first = list[0]
|
|
530
|
const isSame = list.every(item =>
|
530
|
const isSame = list.every(item =>
|
|
531
|
item.buyout === first.buyout &&
|
531
|
item.buyout === first.buyout &&
|
|
532
|
item.supplierName === first.supplierName &&
|
532
|
item.supplierName === first.supplierName &&
|
|
533
|
- item.companyName === first.companyName &&
|
|
|
|
534
|
- item.workshopName === first.workshopName
|
533
|
+ item.companyName === first.companyName && item.workshopId === first.workshopId &&
|
|
|
|
534
|
+ item.purchaseDepartment === first.purchaseDepartment && item.region === first.region
|
|
535
|
)
|
535
|
)
|
|
536
|
if (!isSame) {
|
536
|
if (!isSame) {
|
|
537
|
- uni.showToast({ title: '是否买断,供料单位,收料单位应保持一致', icon: 'none' })
|
537
|
+ uni.showToast({ title: '是否买断,供料单位,收料单位,分厂,采购处,区域应保持一致', icon: 'none' })
|
|
538
|
this.planSheet.selectedKeys = this.selectedPlanRows.map(it => it.id)
|
538
|
this.planSheet.selectedKeys = this.selectedPlanRows.map(it => it.id)
|
|
539
|
return
|
539
|
return
|
|
540
|
}
|
540
|
}
|