Commit 56de8128 by Joey

perf(@gms/gms-plugin-billexpand): 工作流轨迹修复审批结束节点,样式调整

parent 3fc45192
......@@ -13,6 +13,7 @@ export const APPROVAL_TRACK_TABLE = {
CREATE_TIME: 'createTime',
APPROVAL_COMMENT: 'approvalcomments',
NODE_NAME: 'approvalnodename',
CURRENT_NODE: 'currnode',
CREATOR_FULL_NAME: 'creatorfullname',
OPERATION: 'operation',
}
......
......@@ -166,17 +166,20 @@ export default {
if (subTable instanceof Array) {
this.data = subTable.map((obj) => {
const operation = obj.getValue(APPROVAL_TRACK_TABLE.OPERATION)
const currNode = obj.getValue(APPROVAL_TRACK_TABLE.CURRENT_NODE)
return {
state: 2,
result:
operation == '提交'
? -1
: operation == '同意'
? 1
: operation == '驳回'
? 3
: -2,
currNode == 99
? -2
: operation == '提交'
? -1
: operation == '同意'
? 1
: operation == '驳回'
? 3
: -2,
actualOwner: obj.getValue(APPROVAL_TRACK_TABLE.CREATOR_FULL_NAME),
createTime: obj.getValue(APPROVAL_TRACK_TABLE.CREATE_TIME),
completeTime: obj.getValue(APPROVAL_TRACK_TABLE.CREATE_TIME),
......@@ -184,6 +187,7 @@ export default {
title: obj.getValue(APPROVAL_TRACK_TABLE.NODE_NAME),
}
})
this.data = this.data.reverse()
}
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment