|
|
@@ -2,7 +2,12 @@
|
|
|
<!--布局容器-->
|
|
|
<div class="container" style="width: 99%; margin-top: 0px">
|
|
|
<templateTable :formList="formList" :searchData.sync="searchData" :tableConfig="tableConfig" :btnGroup="btnGroup"
|
|
|
- :data="tableData" @getList="getList" @handleSearchList="handleSearchList" :pagination="queryBatchFrom">
|
|
|
+ :data="tableData" @getList="getList" @handleSearchList="handleSearchList" :pagination="queryBatchFrom" @selectionChange="selectionChange">
|
|
|
+ <el-table-column slot="status" label="状态" align="center" slot-scope="scope">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ getStatus(scope.row) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<template slot="excel导入" slot-scope="scope">
|
|
|
<div style="display:inline-block;margin:0 5px">
|
|
|
<el-upload class="upload" ref="upload" :show-file-list="false" :limit="1" action="#"
|
|
|
@@ -110,7 +115,13 @@
|
|
|
<el-col :span="6">车船税:{{ formBatchDetailData.vavt }}</el-col>
|
|
|
<el-col :span="6">其他保费:{{ formBatchDetailData.other }}</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
+ <el-row >
|
|
|
+ <el-col :span="6">交强险费用:{{ formBatchDetailData.mliftaCost }}</el-col>
|
|
|
+ <el-col :span="6">商业险费用:{{ formBatchDetailData.cipCost }}</el-col>
|
|
|
+ <el-col :span="6">车船税费用:{{ formBatchDetailData.vavtCost }}</el-col>
|
|
|
+ <el-col :span="6">其他费用:{{ formBatchDetailData.otherCost }}</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-top:20px">
|
|
|
<el-col :span="6">险种:{{ formBatchDetailData.insCoverage }}</el-col>
|
|
|
<el-col :span="6">付款日期:{{ formBatchDetailData.payDate }}</el-col>
|
|
|
</el-row>
|
|
|
@@ -319,15 +330,16 @@ export default {
|
|
|
mixins: [mixin],
|
|
|
components: { templateTable },
|
|
|
created() {
|
|
|
- // this.$api.cost.gainTopList().then(res => {
|
|
|
- // if (res.data) {
|
|
|
- // this.InsCompanyList = res.data;
|
|
|
- // }
|
|
|
- // });
|
|
|
+ this.$api.insCompany
|
|
|
+ .dicType('checkingStatusEnum')
|
|
|
+ .then((response) => {
|
|
|
+ this.checkingStatusEnum=response.data.ddList
|
|
|
+ })
|
|
|
this.getList()
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ checkingStatusEnum:[],
|
|
|
InsCompany: "",
|
|
|
InsCompanyList: [],
|
|
|
queryBatchFrom: {
|
|
|
@@ -360,7 +372,7 @@ export default {
|
|
|
totalSize: 0
|
|
|
},
|
|
|
Unmatched: [],
|
|
|
-
|
|
|
+ selectionIds:[]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -403,7 +415,15 @@ export default {
|
|
|
closeVisible() {
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
-
|
|
|
+ getStatus(row) {
|
|
|
+ let data=''
|
|
|
+ this.checkingStatusEnum.find(val=>{
|
|
|
+ if(val.dictValue==row.status){
|
|
|
+ data=val.dictTag
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return data
|
|
|
+ },
|
|
|
templateDownload() {
|
|
|
let a = document.createElement('a')
|
|
|
a.href = `${process.env.BASE_URL}/template/finance_channel_model_A.xlsx`;
|
|
|
@@ -488,13 +508,17 @@ export default {
|
|
|
},
|
|
|
mateFun(row) {
|
|
|
this.dialogMateVisible = true;
|
|
|
- this.batchNumDetailId=row.id
|
|
|
- this.mate1(row.id)
|
|
|
- this.mate2(row.id)
|
|
|
+ this.batchNumDetailId=[row.id]
|
|
|
+ this.mate1([row.id])
|
|
|
+ this.mate2([row.id])
|
|
|
},
|
|
|
// 匹配页面
|
|
|
- mate1(batchNum){
|
|
|
- this.$api.cost.getChannelMatchingIns({batchNum,isMatch:1,...this.matchPage1}).then(res => {
|
|
|
+ mate1(ids){
|
|
|
+ let dto={
|
|
|
+ ids,
|
|
|
+ isMatch:1
|
|
|
+ }
|
|
|
+ this.$api.cost.getChannelMatchingIns({dto,...this.matchPage1}).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
this.mateData = res.data.content;
|
|
|
this.matchPage1.pageNum=res.data.pageNum
|
|
|
@@ -503,8 +527,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- mate2(batchNum){
|
|
|
- this.$api.cost.getChannelMatchingIns({batchNum,isMatch:0,...this.matchPage2}).then(res => {
|
|
|
+ mate2(ids){
|
|
|
+ let dto={
|
|
|
+ ids,
|
|
|
+ isMatch:0
|
|
|
+ }
|
|
|
+ this.$api.cost.getChannelMatchingIns({dto,...this.matchPage2}).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
if(res.data.content&&res.data.content.length>0){
|
|
|
this.isDisabled=true
|
|
|
@@ -519,7 +547,35 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ selectionChange(row){
|
|
|
+ this.selectionIds=row
|
|
|
+
|
|
|
+ },
|
|
|
+ batchMatching(){
|
|
|
+ let isStatus=false
|
|
|
+ this.selectionIds.forEach(val=>{
|
|
|
+ if(val.status=='0'){
|
|
|
+ isStatus=true
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ isStatus=false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(isStatus){
|
|
|
+ let ids=this.selectionIds.map(val=> val.id)
|
|
|
+ this.dialogMateVisible = true;
|
|
|
+ this.batchNumDetailId=ids
|
|
|
+ this.mate1(ids)
|
|
|
+ this.mate2(ids)
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$message.warning('请选择可匹配的数据!')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleUnmatchedFun(row) {
|
|
|
+ this.dialogBVatchUpdata = true;
|
|
|
+ this.mateform=row
|
|
|
+ },
|
|
|
closdialogBVatceVisible() {
|
|
|
this.dialogBVatchUpdata = false;
|
|
|
},
|
|
|
@@ -534,7 +590,10 @@ export default {
|
|
|
cip:this.mateform.cip1,
|
|
|
mlifta:this.mateform.mlifta1,
|
|
|
vavt:this.mateform.vavt1,
|
|
|
- id:this.mateform.id
|
|
|
+ id:this.mateform.id,
|
|
|
+ cipCost:this.mateform.mliftaCost1,
|
|
|
+ mliftaCost:this.mateform.mliftaCost1,
|
|
|
+ vavtCost:this.mateform.vavtCost1,
|
|
|
}
|
|
|
this.$api.cost
|
|
|
.getchanneEdit(obj)
|
|
|
@@ -547,6 +606,9 @@ export default {
|
|
|
this.dialogBVatchUpdata = false;
|
|
|
this.mate2(this.batchNumDetailId)
|
|
|
}
|
|
|
+ else{
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
tableCurrentmatch2Change(val) {
|