修改收令单位不显示调度命令问题

This commit is contained in:
dong 2023-04-19 10:41:17 +08:00
parent c52925960c
commit d082dc2fbc
2 changed files with 16 additions and 17 deletions

View File

@ -38,18 +38,18 @@
<span style="margin-left: 10px">{{ getStateInfo(scope.row.rcvCompanies).time || '' }}</span>
</template>
</el-table-column>
<el-table-column label="发令单位">
<el-table-column label="发令单位" show-overflow-tooltip>
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.sendCompany ? scope.row.sendCompany.name : '' }}</span>
</template>
</el-table-column>
<el-table-column prop="sender" label="发令人" />
<el-table-column prop="sender" label="发令人" show-overflow-tooltip />
<el-table-column label="签否">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ getSignedStatus(getStateInfo(scope.row.rcvCompanies)) }}</span>
</template>
</el-table-column>
<el-table-column label="签收人">
<el-table-column label="签收人" show-overflow-tooltip>
<template slot-scope="scope">
<span style="margin-left: 10px">{{ getSignedBy(scope.row.rcvCompanies) || '' }}</span>
</template>
@ -352,7 +352,10 @@ export default {
},
findDisCmdObj(obj, val) {
return Object.values(obj).find(item => {
return item.rcvCompanies[0].id == val;
const find = item.rcvCompanies.find(ii => {
return ii.id == val;
});
return find;
});
},
searchCmd() {

View File

@ -1324,20 +1324,16 @@ export default {
console.log('tabClick');
},
selectionChange(selection) {
this.command.rcvCompanies = [];
selection.forEach(item => {
const find = this.command.rcvCompanies.find(every => {
return item.code == every.code;
});
if (!find) {
const obj = {
name: item.name,
rsCompany: true,
cpType: item.cpType,
code: item.code,
...item
};
this.command.rcvCompanies.push(obj);
}
const obj = {
name: item.name,
rsCompany: true,
cpType: item.cpType,
code: item.code,
...item
};
this.command.rcvCompanies.push(obj);
});
},
getCompanyIdList(sum) {