Commit da3ca9d3 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

Develop zhouyi

See merge request GFP/RBC/rbc-frontend!129
parents eb909d88 0cc81ff9
......@@ -84,6 +84,7 @@ export default {
})
},
approvalLogical: function (bill, param) {
const getApprovalList = () => {
let taskId = bill.getGlobalParam('reviewParam').taskId;
bill.setControlsSate(param["_control_name_"], "enable", false)
let selectedApprovers = []
......@@ -140,15 +141,15 @@ export default {
}).catch(() => {
GMS.$hideContainer.$Message.error('未找到下一节点的审批人');
})
},
executeApproval: function(bill, param) {
}
if (param.param.actions) {
let saveParam = {
actions: param.param.actions
}
bill.executeServerAction(saveParam, function (code, data) {
if (code === 200) {
this.approval(bill, param);
getApprovalList()
} else {
bill.setControlsSate(param["_control_name_"], "enable", true)
if (data.message.includes('还款金额不能大于未还金额')) {
......@@ -160,10 +161,10 @@ export default {
}
}.bind(this));
} else {
this.approval(bill, param);
getApprovalList()
}
},
approval: function (bill, param) {
executeApproval: function(bill, param) {
let taskId = bill.getGlobalParam('reviewParam').taskId;
let comments = bill.getGlobalParam('reviewParam').suggestions ? bill.getGlobalParam('reviewParam').suggestions : "";
GMS.$http.post('/rbc/workflow/approve/completed/' + taskId + '?result=1&comments=' + comments).then(
......
......@@ -8,32 +8,12 @@ export default {
if (context.getTableType) {
let _tn = context.getTableType(table);
let _data = context.getSubData(_tn.title);
if (_data instanceof Array) {
let field = arguments[0][0].FieldCode
let matchProp = arguments[0][1].StaticValue
let matchValue = arguments[0][2].StaticValue
if (matchValue) {
for (const iterator of _data) {
let _val = iterator.getValue(field)
if (_val instanceof Object) {
if (_val[matchProp] == matchValue) {
size++;
}
} else {
if (_val == matchValue) {
size++;
}
}
}
} else {
size = _data.length
}
}
return _data.length>0
}
}
return size
},
getResultType: function () {
return FMR.ConstDataTypes.General;
return 1;
}
}
\ No newline at end of file
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