|
@@ -266,6 +266,7 @@
|
|
|
<deptSelect
|
|
<deptSelect
|
|
|
v-model="row.executeDeptId"
|
|
v-model="row.executeDeptId"
|
|
|
@changeGroup="areaPersonGroup($index)"
|
|
@changeGroup="areaPersonGroup($index)"
|
|
|
|
|
+ :ref="'deptSelectRef' + $index"
|
|
|
v-if="dialogTitle != '详情'"
|
|
v-if="dialogTitle != '详情'"
|
|
|
/>
|
|
/>
|
|
|
<span v-else>{{ row.executeDeptName }}</span>
|
|
<span v-else>{{ row.executeDeptName }}</span>
|
|
@@ -284,6 +285,7 @@
|
|
|
v-model="row.executeUserId"
|
|
v-model="row.executeUserId"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
v-if="dialogTitle != '详情'"
|
|
v-if="dialogTitle != '详情'"
|
|
|
|
|
+ :ref="'userSelectRef' + $index"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in row.areaPersonList"
|
|
v-for="item in row.areaPersonList"
|
|
@@ -594,7 +596,12 @@
|
|
|
let isRepairGroupId = true,
|
|
let isRepairGroupId = true,
|
|
|
isRepairUserId = true;
|
|
isRepairUserId = true;
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- const planDeviceList = this.equipmentList.map((item) => {
|
|
|
|
|
|
|
+ const planDeviceList = this.equipmentList.map((item, index) => {
|
|
|
|
|
+ let repairGroupName = this.$refs[
|
|
|
|
|
+ 'deptSelectRef' + index
|
|
|
|
|
+ ].$refs.treeSelect.getNodeByValue(item.executeDeptId)?.name;
|
|
|
|
|
+ let repairUserName = item.areaPersonList.find(areaPerson=>areaPerson.id==item.executeUserId)?.name;
|
|
|
|
|
+
|
|
|
if (!item.executeDeptId) {
|
|
if (!item.executeDeptId) {
|
|
|
isRepairGroupId = false;
|
|
isRepairGroupId = false;
|
|
|
}
|
|
}
|
|
@@ -609,8 +616,8 @@
|
|
|
workItems: [],
|
|
workItems: [],
|
|
|
repairGroupId: item.executeDeptId,
|
|
repairGroupId: item.executeDeptId,
|
|
|
repairUserId: item.executeUserId,
|
|
repairUserId: item.executeUserId,
|
|
|
- repairGroupName: item.executeDeptName,
|
|
|
|
|
- repairUserName: item.executeUserName
|
|
|
|
|
|
|
+ repairGroupName,
|
|
|
|
|
+ repairUserName
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
let boolen = planDeviceList.length > 0;
|
|
let boolen = planDeviceList.length > 0;
|