add:增加子卷规格校验

This commit is contained in:
2024-07-02 17:13:27 +08:00
parent 3faf1b65c1
commit c3a8cd70bd
3 changed files with 8 additions and 2 deletions

View File

@@ -380,6 +380,9 @@ export default {
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) {
debugger
const descriptionList = this.currentSelection.filter(item => item.paper_tube_description !== null && item.paper_tube_description !== '')
if (descriptionList.length === 0) {
this.crud.notify('未查询到该子卷的规格信息,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)
}
const paper_tube_description = descriptionList[0].paper_tube_description
const descriptionsAreSame = this.currentSelection.every(item => item.paper_tube_description === paper_tube_description)
if (descriptionsAreSame) {