fix: 修改O卷标签并添加禁用O卷功能
更新优品卷标签为O卷,同时在CoilSelector组件中添加disableO属性以禁用O卷选择 在发货单相关组件中设置disableO为true,防止选择O卷
This commit is contained in:
@@ -219,7 +219,12 @@ export default {
|
||||
multiple: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
// 是否禁用O卷
|
||||
disableO: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -489,6 +494,10 @@ export default {
|
||||
this.$message.warning('您没有权限选择此钢卷');
|
||||
return; // 终止后续逻辑
|
||||
}
|
||||
if (this.disableO && row.qualityStatus == 'O') {
|
||||
this.$message.warning('O卷不能选择');
|
||||
return;
|
||||
}
|
||||
this.handleSelect(row);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user