|
|
@ -1315,6 +1315,13 @@ import labelPrintTemplates from '@/mixins/labelPrintTemplates.js'; |
|
|
this.$message.warning('请先勾选要变动属性的标签!'); |
|
|
this.$message.warning('请先勾选要变动属性的标签!'); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
// 校验:已入库或已消耗的单据不允许属性变动 |
|
|
|
|
|
const invalidList = this.selectionDataList.filter(item => item.finalStatus === '已入库' || item.finalStatus === '已消耗'); |
|
|
|
|
|
if (invalidList.length > 0) { |
|
|
|
|
|
const rollNos = invalidList.map(item => item.rollNo).join('、'); |
|
|
|
|
|
this.$message.warning(`标签号 ${rollNos} 状态为"已入库"或"已消耗",不允许属性变动!`); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
// 重置表单 |
|
|
// 重置表单 |
|
|
this.attributeChangeForm = { |
|
|
this.attributeChangeForm = { |
|
|
parentRollNo: '', |
|
|
parentRollNo: '', |
|
|
|