Commit 70595c7a authored by caimeng's avatar caimeng

添加提前结清证明

parent eb06b621
...@@ -16,18 +16,29 @@ ...@@ -16,18 +16,29 @@
:formatter="capitalCodeFormat"></el-table-column> :formatter="capitalCodeFormat"></el-table-column>
<el-table-column align="center" prop="status" label="借款单状态"> <el-table-column align="center" prop="status" label="借款单状态">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="success" v-if="scope.row.status==='AUDITED'" size="small">{{loanStatusFormat(scope.row)}}</el-tag> <el-tag type="success" v-if="scope.row.status==='AUDITED'" size="small">{{ loanStatusFormat(scope.row) }}
<el-tag v-else-if="scope.row.status==='SETTLED'" size="small">{{loanStatusFormat(scope.row)}}</el-tag> </el-tag>
<el-tag type="danger" v-else-if="scope.row.status==='OVERDUED'" size="small">{{loanStatusFormat(scope.row)}}</el-tag> <el-tag v-else-if="scope.row.status==='SETTLED'" size="small">{{ loanStatusFormat(scope.row) }}</el-tag>
<el-tag type="warning" v-else-if="scope.row.status==='SUBMITED'" size="small">{{loanStatusFormat(scope.row)}}</el-tag> <el-tag type="danger" v-else-if="scope.row.status==='OVERDUED'" size="small">
<el-tag effect="warning" v-else-if="scope.row.status==='BACKING'" size="small">{{loanStatusFormat(scope.row)}}</el-tag> {{ loanStatusFormat(scope.row) }}
<el-tag type="info" v-else size="small">{{loanStatusFormat(scope.row)}}</el-tag> </el-tag>
<el-tag type="warning" v-else-if="scope.row.status==='SUBMITED'" size="small">
{{ loanStatusFormat(scope.row) }}
</el-tag>
<el-tag effect="warning" v-else-if="scope.row.status==='BACKING'" size="small">
{{ loanStatusFormat(scope.row) }}
</el-tag>
<el-tag type="info" v-else size="small">{{ loanStatusFormat(scope.row) }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="cancelMemo" label="备注"></el-table-column> <el-table-column align="center" prop="cancelMemo" label="备注"></el-table-column>
<el-table-column align="center" label="查看详情"> <el-table-column align="center" label="查看详情">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="handleClick(scope.row)">详情</el-button> <el-button type="text" size="small" @click="handleClick(scope.row)">详情</el-button>
<template v-if="scope.row.status==='SETTLED' && scope.row.capitalCode !== 'OWNBUSINESS'">
<el-button type="text" size="small" @click="handleShow(scope.row,'SettleReport','结清报告')">结清报告
</el-button>
</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -42,17 +53,29 @@ ...@@ -42,17 +53,29 @@
:params="items" :params="items"
:dialogVisible="visible"/> :dialogVisible="visible"/>
</template> </template>
<!-- 那啥-->
<template v-if="mcDialogVisible">
<component
@handleClose="mcDialogVisible = false"
:is="ActiveCom"
:title="mcTitle"
:params="mcItems"
:visible="mcDialogVisible"/>
</template>
</div> </div>
</template> </template>
<script> <script>
import LoanDetail from "./LoanDetail"; import LoanDetail from "./LoanDetail";
import SettleReport from "./SettleReport";
import * as moment from "moment"; import * as moment from "moment";
export default { export default {
name: 'AddUserServiceDialog', name: 'AddUserServiceDialog',
components: { components: {
LoanDetail LoanDetail,
SettleReport
}, },
props: { props: {
params: { params: {
...@@ -68,13 +91,18 @@ export default { ...@@ -68,13 +91,18 @@ export default {
items: {}, items: {},
mcDialogVisible: false,
mcItems: null,
mcTitle: "",
ActiveCom: "",
data: [] data: []
} }
}, },
async created() { async created() {
console.log(this.params,999); console.log(this.params, 999);
const {clientNo,clientProductName} = this.params; const {clientNo, clientProductName} = this.params;
const res = await this.$$post('/loan/getLoanListByClientNo/',{productName:clientProductName,clientNo:clientNo}); const res = await this.$$post('/loan/getLoanListByClientNo/', {productName: clientProductName, clientNo: clientNo});
const {success, result} = res.data; const {success, result} = res.data;
if (success && result !== null) { if (success && result !== null) {
this.data = result; this.data = result;
...@@ -101,13 +129,26 @@ export default { ...@@ -101,13 +129,26 @@ export default {
}, },
// 切换选项卡 // 切换选项卡
handleClick(row) { handleClick(row) {
console.log(row,'一行信息'); console.log(row, '一行信息');
this.visible = true; this.visible = true;
this.title = '借款详情'; this.title = '借款详情';
this.items = { this.items = {
...this.params, ...this.params,
...row ...row
}; };
},
handleShow(row, com, title) {
console.log(row, '当前行')
this.mcDialogVisible = true;
this.mcItems = {
...row,
...this.loan,
...this.loanModel,
...this.basicInfo,
...this.$route.query
};
this.mcTitle = title;
this.ActiveCom = com;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment