|
@@ -333,7 +333,48 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleExportAll() {
|
|
handleExportAll() {
|
|
-
|
|
|
|
|
|
+ const _this = this
|
|
|
|
+ const outData = []
|
|
|
|
+ const title = []
|
|
|
|
+ title.push('款项名称')
|
|
|
|
+ title.push('合同编号')
|
|
|
|
+ title.push('网签备案号')
|
|
|
|
+ title.push('买受人')
|
|
|
|
+ title.push('房屋')
|
|
|
|
+ title.push('应收(元)')
|
|
|
|
+ title.push('已收(元)')
|
|
|
|
+ title.push('收款状态')
|
|
|
|
+ title.push('推送状态')
|
|
|
|
+ title.push('开票状态')
|
|
|
|
+ outData.push(title)
|
|
|
|
+ _this.excelFlag = true
|
|
|
|
+ this.baseRequest('formalInvoiceListAll', this.search).then((res) => {
|
|
|
|
+ if (res.data) {
|
|
|
|
+ res.data.forEach(function(item) {
|
|
|
|
+ const json = _this.getItemJson(item)
|
|
|
|
+ const jsonArray = []
|
|
|
|
+ jsonArray.push(json.paymentTypeStr)
|
|
|
|
+ jsonArray.push(json.contractNumber)
|
|
|
|
+ jsonArray.push(json.recordNumber)
|
|
|
|
+ jsonArray.push(json.buyerName)
|
|
|
|
+ jsonArray.push(json.houseName)
|
|
|
|
+ jsonArray.push(json.receivableMoney)
|
|
|
|
+ jsonArray.push(json.receivedMoney)
|
|
|
|
+ jsonArray.push(json.collectionStatusStr)
|
|
|
|
+ jsonArray.push(json.sendStatusStr)
|
|
|
|
+ jsonArray.push(json.invoiceStatusStr)
|
|
|
|
+ outData.push(jsonArray)
|
|
|
|
+ })
|
|
|
|
+ const OutSize = [{ wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 },
|
|
|
|
+ { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }]
|
|
|
|
+ const fileName = '导出数据 ' + new Date().Format('yyyyMMddhhmm')
|
|
|
|
+ this.$outputXlsxFile(outData, OutSize, fileName)
|
|
|
|
+ }
|
|
|
|
+ _this.excelFlag = false
|
|
|
|
+ }).catch((e) => {
|
|
|
|
+ _this.excelFlag = false
|
|
|
|
+ // console.log(e)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
this.selected = val
|
|
this.selected = val
|