|
@@ -196,17 +196,21 @@ export default {
|
|
|
},
|
|
|
// 批量打印
|
|
|
async handlePlPrint () {
|
|
|
- const rows = this.tableData
|
|
|
this.spinning = true
|
|
|
+ const rows = []
|
|
|
const bookSns = []
|
|
|
- rows.map(item => {
|
|
|
- if (bookSns.indexOf(item.bookSn) < 0) {
|
|
|
- bookSns.push(item.bookSn)
|
|
|
+ this.tableData.map(item => {
|
|
|
+ if(item.financeBookDetailList){
|
|
|
+ rows.push(item.financeBookDetailList[0])
|
|
|
+ const booksn = item.financeBookDetailList[0].bookSn
|
|
|
+ if (bookSns.indexOf(booksn) < 0) {
|
|
|
+ bookSns.push(booksn)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
const retArr = []
|
|
|
const auditInfo = await getBatchLastProcessInstance({ 'businessType': 'FINANCE_BOOK', 'businessSnList': bookSns }).then(res => res.data)
|
|
|
- console.log(auditInfo)
|
|
|
+ console.log(bookSns,auditInfo)
|
|
|
bookSns.map(item => {
|
|
|
// 授信明细
|
|
|
const rs = rows.filter(a => a.bookSn == item)
|