|
@@ -32,25 +32,38 @@
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
<el-table-column type="index" width="60" />
|
|
|
- <el-table-column label="批次号" prop="" />
|
|
|
+ <el-table-column label="批次号" prop="number" />
|
|
|
<el-table-column label="买受人" prop="buyerName" width="200" />
|
|
|
<el-table-column label="房屋" prop="houseName" width="200" />
|
|
|
|
|
|
- <el-table-column label="票据类型" prop="receiptType" />
|
|
|
+ <el-table-column label="票据类型" prop="receiptTypeStr" />
|
|
|
<el-table-column label="票面金额" prop="receiptMoney" />
|
|
|
- <el-table-column label="票据编号" prop="receiptNumber" />
|
|
|
+ <el-table-column label="票据编号" prop="receiptNumber" width="200">
|
|
|
+ <template scope="scope">
|
|
|
+ <el-button size="mini" type="text" @click="downLoad(scope.row)">
|
|
|
+ {{ scope.row.receiptNumber }}
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="经办人" prop="createdName" />
|
|
|
<el-table-column label="经办时间" prop="createdAt" width="110" />
|
|
|
<el-table-column label="票据状态" prop="receiptStatusStr">
|
|
|
<template scope="scope">
|
|
|
<span
|
|
|
- style="color: green"
|
|
|
+ :style="{'color':scope.row.receiptStatusStr==='已红冲'?'red'
|
|
|
+ :scope.row.receiptStatusStr==='已开'?'green':'gray'}"
|
|
|
>
|
|
|
{{ scope.row.receiptStatusStr }}
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="关联票号" prop="associationNumber" width="110" />
|
|
|
+ <el-table-column label="关联票号" prop="associationNumber" width="200">
|
|
|
+ <template scope="scope">
|
|
|
+ <el-button size="mini" type="text" @click="downLoad(scope.row)">
|
|
|
+ {{ scope.row.associationNumber }}
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
<div class="table-page">
|
|
@@ -80,7 +93,7 @@ export default {
|
|
|
mixins: [Base, BaseData],
|
|
|
data() {
|
|
|
return {
|
|
|
- dc_key: [],
|
|
|
+ dc_key: ['RECEIPT_TYPE', 'RECEIPT_STATUS'],
|
|
|
// 列表相关
|
|
|
search: {
|
|
|
},
|
|
@@ -135,6 +148,9 @@ export default {
|
|
|
this.handleSearch()
|
|
|
},
|
|
|
getItemJson: function(item) {
|
|
|
+ item.number = item.batchNumber + '-' + item.roomSelectionNumber
|
|
|
+ item.receiptTypeStr = this.dc_map.RECEIPT_TYPE[item.receiptType]
|
|
|
+ item.receiptStatusStr = this.dc_map.RECEIPT_STATUS[item.receiptStatus]
|
|
|
return item
|
|
|
},
|
|
|
|
|
@@ -146,6 +162,9 @@ export default {
|
|
|
},
|
|
|
cancel: function() {
|
|
|
this.dialogVisible = false
|
|
|
+ },
|
|
|
+ downLoad() {
|
|
|
+
|
|
|
},
|
|
|
baseRequest(opUrl, postData) {
|
|
|
return this.$channel.globeRequest('ReceiptManageController', opUrl, postData, 'project')
|