Commit b49f9499 authored by caimeng's avatar caimeng

协议签署

parent 737ce1c0
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
分笔代扣 分笔代扣
</el-button> </el-button>
<template v-if="$permissionUtils.rolePermission('protocolSign')"> <template v-if="$permissionUtils.rolePermission('protocolSign')">
<el-button v-if="params.level==='CF'" type="primary" size="mini" @click="handleChangeCFBill">CF账单变更 <el-button v-if="params.level==='CF'" :disabled="cf.disabled" type="primary" size="mini"
@click="handleChangeCFBill">CF账单变更
</el-button> </el-button>
</template> </template>
</td> </td>
...@@ -296,6 +297,7 @@ ...@@ -296,6 +297,7 @@
<el-table-column align="center" prop="planIndex" label="期数"></el-table-column> <el-table-column align="center" prop="planIndex" label="期数"></el-table-column>
<el-table-column align="center" prop="planAmt" label="应还款金额"></el-table-column> <el-table-column align="center" prop="planAmt" label="应还款金额"></el-table-column>
<el-table-column align="center" prop="planBen" label="本金"></el-table-column> <el-table-column align="center" prop="planBen" label="本金"></el-table-column>
<el-table-column align="center" prop="planFu" label="服务费"></el-table-column>
<el-table-column align="center" prop="planXi" label="利息"></el-table-column> <el-table-column align="center" prop="planXi" label="利息"></el-table-column>
<el-table-column align="center" prop="planBurden" label="担保费"></el-table-column> <el-table-column align="center" prop="planBurden" label="担保费"></el-table-column>
</el-table> </el-table>
...@@ -404,6 +406,7 @@ export default { ...@@ -404,6 +406,7 @@ export default {
}, },
}, },
cf: { cf: {
disabled: false,
visible: false, visible: false,
form: {} form: {}
}, },
...@@ -429,10 +432,11 @@ export default { ...@@ -429,10 +432,11 @@ export default {
const {success, result} = res.data; const {success, result} = res.data;
// console.log(res.data.result,'888'); // console.log(res.data.result,'888');
if (success && result != null) { if (success && result != null) {
const {loanVo, applyVo, planVo} = result; const {loanVo, applyVo, planVo, isChangePlan} = result;
this.advanceLoanAmt.loanNo = applyVo.loanNo; this.advanceLoanAmt.loanNo = applyVo.loanNo;
this.advanceLoanAmt.bizType = applyVo.bizType; this.advanceLoanAmt.bizType = applyVo.bizType;
this.advanceLoanAmt.clientNo = applyVo.clientNo; this.advanceLoanAmt.clientNo = applyVo.clientNo;
this.cf.disabled = isChangePlan
this.data = planVo; this.data = planVo;
if (planVo == null) { if (planVo == null) {
...@@ -565,7 +569,9 @@ export default { ...@@ -565,7 +569,9 @@ export default {
// CF 账单变更提交 // CF 账单变更提交
async handleChangeCFSubmit() { async handleChangeCFSubmit() {
try { try {
const loanNo = this.params.loanNo
this.cf.form.applyUser = localStorage.getItem("loginName") this.cf.form.applyUser = localStorage.getItem("loginName")
this.cf.form.loanNo = loanNo
const res = await this.$$post('/protocol/changePlan', {...this.cf.form}) const res = await this.$$post('/protocol/changePlan', {...this.cf.form})
if (res.status === 200 && res.data.success) { if (res.status === 200 && res.data.success) {
this.$message.success('操作成功'); this.$message.success('操作成功');
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<template v-if="EnumList.length"> <template v-if="EnumList.length">
<el-form-item prop="protocolType" label="协议类型"> <el-form-item prop="protocolType" label="协议类型">
<el-select clearable v-model="form.protocolType" @change="handleChange" clearable placeholder="请选择产品"> <el-select clearable v-model="form.protocolType" clearable placeholder="请选择产品">
<el-option <el-option
v-for="item in EnumList" v-for="item in EnumList"
:key="item.protocolType" :key="item.protocolType"
...@@ -74,17 +74,24 @@ ...@@ -74,17 +74,24 @@
<el-table-column align="center" label="附件"> <el-table-column align="center" label="附件">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.annexUrl"></div> <div v-if="!scope.row.annexUrl"></div>
<div v-else> <div class="display:flex;" v-else>
<span>1</span> <template v-for="item in scope.row.annexUrl">
<el-image
v-if="item.indexOf('.jpg')!==-1"
:key="item"
:preview-src-list="scope.row.imgs"
style="width: 50px; height: 50px;margin: 0 8px 8px 8px"
:src="item"
fit="contain"></el-image>
<div v-else>
<video :key="item" @click="handlePreviewVideo(item)" style="width:50px;height:50px;object-fit:fill;" :src="item" />
</div>
</template>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="状态"> <el-table-column align="center" prop="statusStr" label="状态"></el-table-column>
<template slot-scope="scope">
<div v-if="scope.row.invalid==='true'">生效中</div>
<div v-else>已作废</div>
</template>
</el-table-column>
<el-table-column align="center" width="90" prop="gmtCreated" :formatter="transDateFormat" <el-table-column align="center" width="90" prop="gmtCreated" :formatter="transDateFormat"
label="创建时间"></el-table-column> label="创建时间"></el-table-column>
<el-table-column align="center" width="90" prop="urlEffectiveTime" :formatter="transDateFormat" <el-table-column align="center" width="90" prop="urlEffectiveTime" :formatter="transDateFormat"
...@@ -145,6 +152,17 @@ ...@@ -145,6 +152,17 @@
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<el-dialog width="45%" title="视频预览" :visible.sync="showvideoplay" v-model="showvideoplay">
<video
controls
preload="auto"
style="width:100%;height:400px;object-fit: contain;"
:src="videourl"
v-if="videourl"
></video>
</el-dialog>
</div> </div>
</template> </template>
...@@ -158,6 +176,10 @@ export default { ...@@ -158,6 +176,10 @@ export default {
}, },
data() { data() {
return { return {
showvideoplay:false,
videourl:'',
delayVisible: false, delayVisible: false,
SignVisible: false, SignVisible: false,
EnumList: [], EnumList: [],
...@@ -216,6 +238,19 @@ export default { ...@@ -216,6 +238,19 @@ export default {
const res = await this.$$post('/protocol/selectProtocolList', {...form}) const res = await this.$$post('/protocol/selectProtocolList', {...form})
if (res.status === 200 && res.data.success) { if (res.status === 200 && res.data.success) {
const {data, total} = res.data.result const {data, total} = res.data.result
data.forEach(item=>{
const imgs = []
if(item.annexUrl!==null){
item.annexUrl.forEach(img=>{
if(img.indexOf('mp4')===-1){
imgs.push(img)
}
})
item.imgs = imgs
}
})
this.list = data; this.list = data;
this.total = total this.total = total
} else { } else {
...@@ -308,6 +343,24 @@ export default { ...@@ -308,6 +343,24 @@ export default {
this.init(); this.init();
}, },
/** 预览大图 */
handlePreview(item,list){
const cache = []
list.forEach(item=>{
console.log(item,'==')
if(item.indexOf('mp4')===-1){
cache.push(item)
}
})
},
/** 视频预览 */
handlePreviewVideo(item){
console.log(item,'nasha')
this.showvideoplay = true;
this.videourl = item;
}
} }
} }
......
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