opt:增加子卷重量校验
This commit is contained in:
@@ -401,9 +401,15 @@ export default {
|
|||||||
debugger
|
debugger
|
||||||
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) {
|
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) {
|
||||||
debugger
|
debugger
|
||||||
|
const weightList = this.currentSelection.filter(item => item.weight === '0' || item.weight === null)
|
||||||
|
if (weightList.length > 0) {
|
||||||
|
this.crud.notify('该子卷重量不能为空,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||||
|
return
|
||||||
|
}
|
||||||
const descriptionList = this.currentSelection.filter(item => item.paper_tube_description !== null && item.paper_tube_description !== '')
|
const descriptionList = this.currentSelection.filter(item => item.paper_tube_description !== null && item.paper_tube_description !== '')
|
||||||
if (descriptionList.length === 0) {
|
if (descriptionList.length === 0) {
|
||||||
this.crud.notify('未查询到该子卷的规格信息,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
this.crud.notify('未查询到该子卷的规格信息,请检查子卷的分切计划信息!', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
const paper_tube_description = descriptionList[0].paper_tube_description
|
const paper_tube_description = descriptionList[0].paper_tube_description
|
||||||
const descriptionsAreSame = this.currentSelection.every(item => item.paper_tube_description === paper_tube_description)
|
const descriptionsAreSame = this.currentSelection.every(item => item.paper_tube_description === paper_tube_description)
|
||||||
|
|||||||
Reference in New Issue
Block a user