|
@@ -236,16 +236,26 @@ export default {
|
|
|
const auditInfo = await getBatchLastProcessInstance({ 'businessType': 'FINANCE_BOOK', 'businessSnList': bookSns }).then(res => res.data)
|
|
|
console.log(auditInfo)
|
|
|
bookSns.map(item => {
|
|
|
+ // 授信明细
|
|
|
const rs = rows.filter(a => a.bookSn == item)
|
|
|
let detailItemUseStr = ''
|
|
|
rs.map(b => {
|
|
|
if (b.detailItemUseList) {
|
|
|
- b.detailItemUseList.map(k => {
|
|
|
- detailItemUseStr = detailItemUseStr + k.itemName + '(' + k.itemAmount + ');'
|
|
|
+ b.detailItemUseList.map((k,i) => {
|
|
|
+ detailItemUseStr = detailItemUseStr + k.itemName + '(' + k.itemAmount + ')' + (i==b.detailItemUseList.length-1 ? '。':';')
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- retArr.push({ audit: auditInfo[item], detail: detailItemUseStr, subList: rs })
|
|
|
+ // 审核信息
|
|
|
+ let auditStr = ''
|
|
|
+ const auditList = auditInfo[item]
|
|
|
+ if(auditList&&auditList.taskVOList){
|
|
|
+ const auditLists = auditList.taskVOList.filter(item => item.userType == '审批人')
|
|
|
+ auditLists.map((a,i)=>{
|
|
|
+ auditStr = auditStr + a.userName + '(' + a.state + ')' + (i==auditLists.length-1 ? '。':';')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ retArr.push({ audit: auditStr, detail: detailItemUseStr, subList: rs })
|
|
|
})
|
|
|
console.log(retArr, '------------')
|
|
|
this.handlePrint(retArr, 1, rows, bookSns)
|