|
@@ -34,18 +34,18 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
-<!-- <el-col :span="3" class="col-txt"><span>付款截止日</span></el-col>-->
|
|
|
-<!-- <el-col :span="9" class="col-input">-->
|
|
|
-<!-- <el-form-item>-->
|
|
|
-<!-- <el-date-picker-->
|
|
|
-<!-- v-model="form.deadline"-->
|
|
|
-<!-- popper-class="statistic_base"-->
|
|
|
-<!-- type="date"-->
|
|
|
-<!-- placeholder="年月日"-->
|
|
|
-<!-- value-format="yyyy-MM-dd"-->
|
|
|
-<!-- />-->
|
|
|
-<!-- </el-form-item>-->
|
|
|
-<!-- </el-col>-->
|
|
|
+ <!-- <el-col :span="3" class="col-txt"><span>付款截止日</span></el-col>-->
|
|
|
+ <!-- <el-col :span="9" class="col-input">-->
|
|
|
+ <!-- <el-form-item>-->
|
|
|
+ <!-- <el-date-picker-->
|
|
|
+ <!-- v-model="form.deadline"-->
|
|
|
+ <!-- popper-class="statistic_base"-->
|
|
|
+ <!-- type="date"-->
|
|
|
+ <!-- placeholder="年月日"-->
|
|
|
+ <!-- value-format="yyyy-MM-dd"-->
|
|
|
+ <!-- />-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
<el-col :span="3" class="col-txt"><span>应收房款(元)</span></el-col>
|
|
|
<el-col :span="9" class="col-input">
|
|
|
<el-form-item>
|
|
@@ -88,11 +88,14 @@
|
|
|
<el-table-column label="到账日期" prop="payTime" width="200" />
|
|
|
<el-table-column label="到账银行账号" prop="bankFullName" width="200" />
|
|
|
<el-table-column label="到账金额" prop="payMoney" width="110" />
|
|
|
+ <el-table-column label="状态" prop="paymentStatusStr" width="200" />
|
|
|
<el-table-column header-align="center" label="操作" width="180">
|
|
|
<template scope="scope">
|
|
|
<el-button size="mini" type="text" @click="handleView(scope.row)">查看</el-button>
|
|
|
<el-button size="mini" type="text" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
<el-button size="mini" type="text" @click="downLoad(scope.row)">电子收据</el-button>
|
|
|
+ <el-button v-if="scope.row.contentType == '1'" size="mini" type="text" @click="handleConvert(scope.row,1)">转首款</el-button>
|
|
|
+ <el-button v-if="scope.row.contentType == '1'" size="mini" type="text" @click="handleConvert(scope.row,2)">转房款</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -138,7 +141,7 @@ export default {
|
|
|
mixins: [Base, BaseData],
|
|
|
data() {
|
|
|
return {
|
|
|
- dc_key: ['PAYMENT_METHODS', 'CONTENT_TYPE', 'COLLECTION_METHODS'],
|
|
|
+ dc_key: ['PAYMENT_METHODS', 'CONTENT_TYPE', 'COLLECTION_METHODS', 'PAYMENT_STATUS'],
|
|
|
form: {
|
|
|
|
|
|
},
|
|
@@ -212,6 +215,7 @@ export default {
|
|
|
item.paymentMethodStr = this.dc_map.COLLECTION_METHODS[item.paymentMethod]
|
|
|
item.contentTypeStr = this.dc_map.CONTENT_TYPE[item.contentType]
|
|
|
item.bankFullName = item.bankName + item.bankBranchName + item.bankNumber
|
|
|
+ item.paymentStatusStr = this.dc_map.PAYMENT_STATUS[item.paymentStatus]
|
|
|
return item
|
|
|
},
|
|
|
cancel() {
|
|
@@ -279,6 +283,42 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ handleConvert(row, type) {
|
|
|
+ this.$confirm('确认转换吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ const postData = {
|
|
|
+ id: row.id,
|
|
|
+ type: type
|
|
|
+ }
|
|
|
+ this.baseRequest('convertType', postData).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.getData()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '转换成功!'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.data.msg
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch((err) => {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: err
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
baseRequest(opUrl, postData) {
|
|
|
return this.$channel.globeRequest('PayLogController', opUrl, postData, 'project')
|
|
|
}
|