Browse Source

feat(eam): 添加换线复杂度字段和RFID设备维修流程优化

- 移除设备ID判断逻辑,统一默认维修类型为设备维修组
- 新增换线复杂度下拉选择框,针对换线专家组和RFID业务场景
- 在数据模型中添加lineChangeComplexity字段并配置验证规则
- 更新工单表格列配置,添加换线复杂度显示列
- 优化RFID设备维修类型自动分配逻辑
- 调整故障描述输入框行数从3行改为2行
- 完善换线复杂度必填验证和提交前检查逻辑
master
qiankanghui 4 days ago
parent
commit
22dd1317e4
  1. 74
      src/views/modules/eam/eamFeedBack.vue
  2. 18
      src/views/modules/eam/eamWorkOrderForDefect.vue

74
src/views/modules/eam/eamFeedBack.vue

@ -296,8 +296,7 @@
</el-form-item>
<el-form-item v-if="saveModalData.repairReportingType === '设备故障'" label="维修类型" prop="repairType">
<el-select v-model="saveModalData.repairType" style="width: 104px"
:disabled="repairReportingTypeFlag || (saveModalData.bu && saveModalData.bu.includes('RFID') &&
saveModalData.objectID && !saveModalData.objectID.startsWith('B'))"
:disabled="repairReportingTypeFlag"
@change="repairTypeChange">
<el-option label="换线专家组" value="换线专家组"></el-option>
<el-option label="设备维修组" value="设备维修组"></el-option>
@ -317,8 +316,15 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="saveModalData" style="margin-left: 7px">
<el-form-item label="故障描述":rules="saveRules.feedBackDesc">
<el-input type="textarea" v-model="saveModalData.feedBackDesc" :rows="3" resize='none' show-word-limit style="width: 456px"></el-input>
<el-form-item v-if="saveModalData.repairType === '换线专家组' && saveModalData.bu && saveModalData.bu.includes('RFID')" label="换线复杂度" prop="lineChangeComplexity" :rules="saveRules.lineChangeComplexity">
<el-select v-model="saveModalData.lineChangeComplexity" placeholder="请选择" clearable style="width: 456px">
<el-option label="换胶,天线,芯片,热压头,检测(大换型)" value="换胶,天线,芯片,热压头,检测(大换型)"></el-option>
<el-option label="换胶、天线、芯片(中换型)" value="换胶、天线、芯片(中换型)"></el-option>
<el-option label="胶、天线、芯片只换其中一项(小换型)" value="胶、天线、芯片只换其中一项(小换型)"></el-option>
</el-select>
</el-form-item>
<el-form-item label="故障描述" prop="feedBackDesc" :rules="saveRules.feedBackDesc">
<el-input type="textarea" v-model="saveModalData.feedBackDesc" :rows="2" resize='none' show-word-limit style="width: 456px"></el-input>
</el-form-item>
</el-form>
<el-footer style="height:35px;margin-top: 50px;text-align:center">
@ -515,31 +521,11 @@
},
watch: {
"saveModalData.bu"(newV, oldV) {
if (newV.includes('RFID') && this.saveModalData.repairReportingType !== 'TPM红牌') {
if (this.saveModalData.objectID && this.saveModalData.objectID.startsWith('B')) {
this.saveModalData.repairType = '换线专家组'
this.repairReportingTypeFlag = false //
} else {
this.saveModalData.repairType = '设备维修组'
this.repairReportingTypeFlag = true //
}
} else {
this.saveModalData.repairType = '设备维修组'
this.repairReportingTypeFlag = false //
}
this.saveModalData.repairType = '设备维修组'
this.repairReportingTypeFlag = false //
},
"saveModalData.objectID"(newV, oldV) {
// BURFIDIDB
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 () {
@ -637,7 +623,8 @@
repairReportingType: '',
repairType: '',
planOperator: '',
planOperatorName: ''
planOperatorName: '',
lineChangeComplexity: ''
},
classesList: [],
operatorData: {
@ -1175,6 +1162,13 @@
message: ' ',
trigger: ['blur','change']
}
],
lineChangeComplexity: [
{
required: true,
message: ' ',
trigger: ['blur','change']
}
]
},
saveMatterRules: {
@ -1274,16 +1268,6 @@
buChangedMethod(){
if (this.saveModalData.bu == '2_01-Label'){
this.repairReportingTypeFlag = true
} else if (this.saveModalData.bu.includes('RFID') &&
this.saveModalData.repairReportingType !== 'TPM红牌') {
// BURFIDIDB
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 //
}
@ -1291,11 +1275,6 @@
//
repairTypeChange() {
//
if (this.saveModalData.bu && this.saveModalData.bu.includes('RFID') &&
this.saveModalData.objectID && !this.saveModalData.objectID.startsWith('B')) {
// RFID BUIDB
this.saveModalData.repairType = '设备维修组'
}
},
//
@ -1347,7 +1326,8 @@
repairReportingType: '设备故障',
repairType: '设备维修组',
planOperator: '',
planOperatorName: ''
planOperatorName: '',
lineChangeComplexity: ''
}
this.fileData = {
file: [],
@ -1402,6 +1382,12 @@
this.$message.warning("请选择计划执行人员!")
return;
}
if (this.saveModalData.repairType === '换线专家组' &&
this.saveModalData.bu && this.saveModalData.bu.includes('RFID') &&
(this.saveModalData.lineChangeComplexity === '' || this.saveModalData.lineChangeComplexity == null)) {
this.$message.warning("请填写换线复杂度!")
return;
}
if (this.saveModalData.feedBackDesc === '' || this.saveModalData.feedBackDesc == null) {
this.$message.warning("请填写故障描述!")
return;

18
src/views/modules/eam/eamWorkOrderForDefect.vue

@ -1357,6 +1357,24 @@ export default {
fixed: '',
columnWidth: 200,
},
{
userId: this.$store.state.user.name,
functionId: 101004002,
serialNumber: '101004002Table1LineChangeComplexity',
tableId: "101004002Table1",
tableName: "维修工单表",
columnProp: 'lineChangeComplexity',
headerAlign: "center",
align: "left",
columnLabel: '换线复杂度',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150,
},
{
userId: this.$store.state.user.name,
functionId: 101004002,

Loading…
Cancel
Save