|
|
@ -292,7 +292,10 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item v-if="saveModalData.repairReportingType === '设备故障'" label="维修类型" prop="repairType"> |
|
|
<el-form-item v-if="saveModalData.repairReportingType === '设备故障'" label="维修类型" prop="repairType"> |
|
|
<el-select v-model="saveModalData.repairType" style="width: 104px" :disabled="this.repairReportingTypeFlag?'disabled':false"> |
|
|
|
|
|
|
|
|
<el-select v-model="saveModalData.repairType" style="width: 104px" |
|
|
|
|
|
:disabled="repairReportingTypeFlag || (saveModalData.bu && saveModalData.bu.includes('RFID') && |
|
|
|
|
|
saveModalData.objectID && !saveModalData.objectID.startsWith('B'))" |
|
|
|
|
|
@change="repairTypeChange"> |
|
|
<el-option label="换线专家组" value="换线专家组"></el-option> |
|
|
<el-option label="换线专家组" value="换线专家组"></el-option> |
|
|
<el-option label="设备维修组" value="设备维修组"></el-option> |
|
|
<el-option label="设备维修组" value="设备维修组"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
@ -510,11 +513,31 @@ |
|
|
watch: { |
|
|
watch: { |
|
|
"saveModalData.bu"(newV, oldV) { |
|
|
"saveModalData.bu"(newV, oldV) { |
|
|
if (newV.includes('RFID') && this.saveModalData.repairReportingType !== 'TPM红牌') { |
|
|
if (newV.includes('RFID') && this.saveModalData.repairReportingType !== 'TPM红牌') { |
|
|
this.saveModalData.repairType = '换线专家组' |
|
|
|
|
|
|
|
|
if (this.saveModalData.objectID && this.saveModalData.objectID.startsWith('B')) { |
|
|
|
|
|
this.saveModalData.repairType = '换线专家组' |
|
|
|
|
|
this.repairReportingTypeFlag = false // 允许编辑 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
|
|
|
this.repairReportingTypeFlag = true // 不允许编辑 |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
|
|
|
this.repairReportingTypeFlag = false // 允许编辑 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
"saveModalData.objectID"(newV, oldV) { |
|
|
|
|
|
// 当BU是RFID时,根据设备ID是否以B开头设置维修类型 |
|
|
|
|
|
if (this.saveModalData.bu && this.saveModalData.bu.includes('RFID') && |
|
|
|
|
|
this.saveModalData.repairReportingType !== 'TPM红牌') { |
|
|
|
|
|
if (newV && newV.startsWith('B')) { |
|
|
|
|
|
this.saveModalData.repairType = '换线专家组' |
|
|
|
|
|
this.repairReportingTypeFlag = false // 允许编辑 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
|
|
|
this.repairReportingTypeFlag = true // 不允许编辑 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
@ -1245,10 +1268,29 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
buChangedMethod(){ |
|
|
buChangedMethod(){ |
|
|
if (this.saveModalData.bu=='2_01-Label'){ |
|
|
|
|
|
this.repairReportingTypeFlag=true |
|
|
|
|
|
}else { |
|
|
|
|
|
this.repairReportingTypeFlag=false |
|
|
|
|
|
|
|
|
if (this.saveModalData.bu == '2_01-Label'){ |
|
|
|
|
|
this.repairReportingTypeFlag = true |
|
|
|
|
|
} else if (this.saveModalData.bu.includes('RFID') && |
|
|
|
|
|
this.saveModalData.repairReportingType !== 'TPM红牌') { |
|
|
|
|
|
// 当BU是RFID时,根据设备ID是否以B开头设置 |
|
|
|
|
|
if (this.saveModalData.objectID && this.saveModalData.objectID.startsWith('B')) { |
|
|
|
|
|
this.saveModalData.repairType = '换线专家组' |
|
|
|
|
|
this.repairReportingTypeFlag = false // 允许编辑 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
|
|
|
this.repairReportingTypeFlag = true // 不允许编辑 |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.repairReportingTypeFlag = false // 允许编辑 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 维修类型变化事件 |
|
|
|
|
|
repairTypeChange() { |
|
|
|
|
|
// 当用户手动更改维修类型时的处理逻辑 |
|
|
|
|
|
if (this.saveModalData.bu && this.saveModalData.bu.includes('RFID') && |
|
|
|
|
|
this.saveModalData.objectID && !this.saveModalData.objectID.startsWith('B')) { |
|
|
|
|
|
// 如果是RFID BU且设备ID非B开头,强制设为设备维修组 |
|
|
|
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -1708,18 +1750,30 @@ |
|
|
if (this.tagNo === 200) { |
|
|
if (this.tagNo === 200) { |
|
|
this.saveModalData.objectID = val.ObjectID |
|
|
this.saveModalData.objectID = val.ObjectID |
|
|
this.saveModalData.objectDesc = val.ObjectDesc |
|
|
this.saveModalData.objectDesc = val.ObjectDesc |
|
|
if (val.deviceManager!=''&&val.deviceManager!=null){ |
|
|
|
|
|
|
|
|
if (val.deviceManager != '' && val.deviceManager != null) { |
|
|
let peopleList = val.deviceManager.split(';') |
|
|
let peopleList = val.deviceManager.split(';') |
|
|
await this.getOperatorList(1) |
|
|
await this.getOperatorList(1) |
|
|
peopleList.forEach((username)=>{ |
|
|
|
|
|
this.operatorList.forEach((item)=>{ |
|
|
|
|
|
if (item.adminID === username){ |
|
|
|
|
|
|
|
|
peopleList.forEach((username) => { |
|
|
|
|
|
this.operatorList.forEach((item) => { |
|
|
|
|
|
if (item.adminID === username) { |
|
|
this.saveModalData.planOperator = item.adminID |
|
|
this.saveModalData.planOperator = item.adminID |
|
|
this.saveModalData.planOperatorName = item.adminName |
|
|
this.saveModalData.planOperatorName = item.adminName |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 根据BU和设备ID设置维修类型 |
|
|
|
|
|
if (this.saveModalData.bu && this.saveModalData.bu.includes('RFID') && |
|
|
|
|
|
this.saveModalData.repairReportingType !== 'TPM红牌') { |
|
|
|
|
|
if (val.ObjectID && val.ObjectID.startsWith('B')) { |
|
|
|
|
|
this.saveModalData.repairType = '换线专家组' |
|
|
|
|
|
this.repairReportingTypeFlag = false // 允许编辑 |
|
|
|
|
|
} else { |
|
|
|
|
|
this.saveModalData.repairType = '设备维修组' |
|
|
|
|
|
this.repairReportingTypeFlag = true // 不允许编辑 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 1055) { |
|
|
if (this.tagNo === 1055) { |
|
|
this.saveModalData.defectID = val.DefectID |
|
|
this.saveModalData.defectID = val.DefectID |
|
|
@ -1831,6 +1885,7 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取 tableDefault 列 |
|
|
// 获取 tableDefault 列 |
|
|
async getColumnList(tableId, columnId) { |
|
|
async getColumnList(tableId, columnId) { |
|
|
let queryTable= { |
|
|
let queryTable= { |
|
|
|