|
@@ -50,22 +50,21 @@ export default {
|
|
|
spinning: false,
|
|
|
isShow: this.openModal,
|
|
|
columns: [{ title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
|
|
|
- { title: '人员姓名', width: '12%', dataIndex: 'userName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '人员类型', dataIndex: 'userType', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '状态', dataIndex: 'state', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '审批意见', dataIndex: 'remark', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '附件', dataIndex: 'hasAttachments', width: '20%', align: 'center', customRender: function (text) { return text != '0' ? '请在钉钉中查看附件内容' : '--' } },
|
|
|
- { title: '操作时间', dataIndex: 'date', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
|
|
|
+ { title: '人员姓名', width: '12%', dataIndex: 'approvalName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '人员类型', dataIndex: 'processTaskType', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '状态', dataIndex: 'approvalStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '审批意见', dataIndex: 'approvalOpinion', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '附件', dataIndex: 'attachmentNames', width: '20%', align: 'center', customRender: function (text) { return text != '0' ? '请在钉钉中查看附件内容' : '--' } },
|
|
|
+ { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.spinning = true
|
|
|
delete parameter.tableId
|
|
|
delete parameter.index
|
|
|
- // 当有多次重复审批时,传 businessSn;否则使用processInstanceId
|
|
|
- return getProcessInstance({ businessType: 'EXPENSES', businessSn: this.itemSn, processInstanceId: this.itemId }).then(res => {
|
|
|
+ return getProcessInstance({ businessType: 'EXPENSES', businessSn: this.itemSn }).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
|
- data = res.data
|
|
|
+ data = res.data ? res.data[0] ? res.data[0].opinionList ? res.data[0].opinionList : [] : [] : []
|
|
|
const no = 0
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
data[i].no = no + i + 1
|