|
|
@@ -39,6 +39,15 @@
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
+ // 当前工序已分配给他人(routeList 项 isSomeone 为 true)时禁用领料/投料/报工/委外请托
|
|
|
+ isSomeoneDisabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
+ isSomeoneDisabledMsg: {
|
|
|
+ type: String,
|
|
|
+ default: '无法操作'
|
|
|
+ },
|
|
|
activeName: {
|
|
|
type: String,
|
|
|
default: '0'
|
|
|
@@ -388,6 +397,17 @@
|
|
|
'请先完成领料、投料后再进行首件两检'
|
|
|
};
|
|
|
}
|
|
|
+ // 当前工序已分配给他人时,禁用领料/投料/报工/委外请托
|
|
|
+ if (
|
|
|
+ this.isSomeoneDisabled &&
|
|
|
+ ['pick', 'feed', 'job', 'Outsourcing'].includes(i.type)
|
|
|
+ ) {
|
|
|
+ return {
|
|
|
+ ...i,
|
|
|
+ disable: true,
|
|
|
+ msg: this.isSomeoneDisabledMsg || '无法操作'
|
|
|
+ };
|
|
|
+ }
|
|
|
if (this.isPreProductionResult) {
|
|
|
for (let key in this.isPreProductionResult) {
|
|
|
let obj = this.disableObj[key];
|