|
|
@@ -1,26 +1,18 @@
|
|
|
<template>
|
|
|
<!--布局容器-->
|
|
|
<div class="container" style="width: 99%; margin-top: 0px">
|
|
|
- <!-- <kt-common-table
|
|
|
- permsButton3="sys:handlingFees:balance"
|
|
|
- :data="pageResult"
|
|
|
- :columns="columns"
|
|
|
- :button3Name="'结算'"
|
|
|
- @handleButton3="balanceFun"
|
|
|
- :showBatchDelete="false"
|
|
|
- @findPage="findPage" >
|
|
|
- </kt-common-table> -->
|
|
|
<templateTable
|
|
|
:formList="formList"
|
|
|
:searchData.sync="searchData"
|
|
|
:tableConfig="tableConfig"
|
|
|
+ :btnGroup="btnGroup"
|
|
|
:data="tableData"
|
|
|
@findPage="findPage"
|
|
|
@handleSearchList="handleSearchList"
|
|
|
:pagination="pageData"
|
|
|
>
|
|
|
</templateTable>
|
|
|
- <el-dialog
|
|
|
+ <!-- <el-dialog
|
|
|
v-dialogDrag
|
|
|
title="结算"
|
|
|
:visible.sync="dialogVisible"
|
|
|
@@ -40,7 +32,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="合同附件" prop="contractFileId" style="width: 50%">
|
|
|
+ <el-form-item label="银行收款截图" prop="contractFileId" style="width: 50%">
|
|
|
<el-upload
|
|
|
v-model="formData.contractFileId"
|
|
|
class="upload-demo"
|
|
|
@@ -48,10 +40,8 @@
|
|
|
name="DX_00"
|
|
|
:show-file-list="false"
|
|
|
:http-request="httpRequest"
|
|
|
- :before-upload="beforeAvatarUpload"
|
|
|
>
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -61,7 +51,7 @@
|
|
|
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
|
<el-button size="small" type="primary" @click="submit('formData')">确 定</el-button>
|
|
|
</span>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -83,15 +73,83 @@ export default {
|
|
|
return {
|
|
|
searchData:{},
|
|
|
formList:[
|
|
|
- {
|
|
|
- label: "订单号:",
|
|
|
- prop: "orderno",
|
|
|
- type: "input",
|
|
|
- },{
|
|
|
+ {
|
|
|
label: "车牌号:",
|
|
|
prop: "licenseno",
|
|
|
type: "input",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "被保人:",
|
|
|
+ prop: "userId",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "保险公司:",
|
|
|
+ prop: "companyName",
|
|
|
+ type: "company",
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ label: "险种:",
|
|
|
+ prop: "riskcode",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "保司机构:",
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "协议号:",
|
|
|
+ prop: "agreementId",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "交强保单号:",
|
|
|
+ prop: "policyno",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商业保单号:",
|
|
|
+ prop: "syPolicyno",
|
|
|
+ type: "input",
|
|
|
+ }, {
|
|
|
+ label: "非车保单号:",
|
|
|
+ prop: "noPolicyno",
|
|
|
+ type: "input",
|
|
|
+ }, {
|
|
|
+ label: "结算状态:",
|
|
|
+ prop: "handlingFeesStatus",
|
|
|
+ type: "select",
|
|
|
+ options:[
|
|
|
+ {
|
|
|
+ label:'已结算',
|
|
|
+ value:'1'
|
|
|
+ },{
|
|
|
+ label:'未结算',
|
|
|
+ value:'0'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
+ label: "签单日期:",
|
|
|
+ prop: "signDate",
|
|
|
+ type: "date",
|
|
|
+ }, {
|
|
|
+ label: "创建日期:",
|
|
|
+ prop: "createTime",
|
|
|
+ type: "date",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "结算日期:",
|
|
|
+ prop: "settlementTime",
|
|
|
+ type: "date",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ btnGroup:[
|
|
|
+ {
|
|
|
+ name:'批量结算',
|
|
|
+ click:(row, index) => {return this.balanceFun(row)},
|
|
|
+ }
|
|
|
],
|
|
|
tableConfig:{
|
|
|
columns: [
|
|
|
@@ -101,23 +159,23 @@ export default {
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "noPolicyno",
|
|
|
- label: "非车保单号",
|
|
|
+ prop: "signDate",
|
|
|
+ label: "签单日期",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "syPolicyno",
|
|
|
- label: "商业保单号",
|
|
|
+ prop: "licenseno",
|
|
|
+ label: "车牌号",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "policyno",
|
|
|
- label: "交强保单号",
|
|
|
+ prop: "userId",
|
|
|
+ label: "被保险人",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "deptId",
|
|
|
- label: "机构",
|
|
|
+ prop: "companyName",
|
|
|
+ label: "保险公司",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
@@ -126,78 +184,121 @@ export default {
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "payDate",
|
|
|
- label: "出单时间",
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ label: "保司机构",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "Signdate",
|
|
|
- label: "签单日期",
|
|
|
+ prop: "agreementId",
|
|
|
+ label: "协议号",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "companyId",
|
|
|
- label: "保险公司",
|
|
|
+ prop: "policyno",
|
|
|
+ label: "交强保单号",
|
|
|
type: "text"
|
|
|
},{
|
|
|
- prop: "agreementId",
|
|
|
- label: "协议号",
|
|
|
+ prop: "syPolicyno",
|
|
|
+ label: "商业保单号",
|
|
|
type: "text"
|
|
|
|
|
|
},{
|
|
|
- prop: "licenseno",
|
|
|
- label: "车牌号",
|
|
|
+ prop: "noPolicyno",
|
|
|
+ label: "非车保单号",
|
|
|
type: "text"
|
|
|
|
|
|
+ },{
|
|
|
+ prop: "jqPremium",
|
|
|
+ label: "交强险保费",
|
|
|
+ type: "text"
|
|
|
},{
|
|
|
prop: "taxamount",
|
|
|
label: "车船税",
|
|
|
type: "text"
|
|
|
},{
|
|
|
- prop: "noTaxPremium",
|
|
|
- label: "不含税保费",
|
|
|
+ prop: "syPremium",
|
|
|
+ label: "商业险保费",
|
|
|
type: "text"
|
|
|
+
|
|
|
},{
|
|
|
- prop: "commissionFeerate",
|
|
|
- label: "手续费比例",
|
|
|
+ prop: "noPremium",
|
|
|
+ label: "非车保费",
|
|
|
type: "text"
|
|
|
|
|
|
},{
|
|
|
- prop: "otherFeerate",
|
|
|
- label: "其他费用比例",
|
|
|
+ prop: "jqReceivableProportion",
|
|
|
+ label: "交强应收比例",
|
|
|
type: "text"
|
|
|
|
|
|
},{
|
|
|
- prop: "commissionFeevalue",
|
|
|
- label: "手续费金额",
|
|
|
+ prop: "jqSuperviseCostsProportion",
|
|
|
+ label: "交强手续费比例",
|
|
|
type: "text"
|
|
|
|
|
|
},{
|
|
|
- prop: "otherFeevalue",
|
|
|
- label: "其他费用金额",
|
|
|
+ prop: "jqOtherCostsProportion",
|
|
|
+ label: "交强非跟单比例",
|
|
|
type: "text"
|
|
|
|
|
|
},{
|
|
|
- prop: "allFeeValue",
|
|
|
- label: "总费用",
|
|
|
+ prop: "syReceivableProportion",
|
|
|
+ label: "商业应收比例",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ },{
|
|
|
+ prop: "sySuperviseCostsProportion",
|
|
|
+ label: "商业手续费比例",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ },{
|
|
|
+ prop: "syOtherCostsProportion",
|
|
|
+ label: "商业非跟单比例",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ },{
|
|
|
+ prop: "noReceivableProportion",
|
|
|
+ label: "非车应收比例",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ },{
|
|
|
+ prop: "noSuperviseCostsProportion",
|
|
|
+ label: "非车手续费比例",
|
|
|
type: "text"
|
|
|
|
|
|
},{
|
|
|
- prop: "finalFeeValue",
|
|
|
- label: "已结算费用",
|
|
|
+ prop: "noOtherCostsProportion",
|
|
|
+ label: "非车非跟单比例",
|
|
|
type: "text"
|
|
|
|
|
|
+ },{
|
|
|
+ prop: "commissionFeevalue",
|
|
|
+ label: "手续费金额",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ },{
|
|
|
+ prop: "otherFeevalue",
|
|
|
+ label: "非跟单金额",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ },{
|
|
|
+ prop: "allFeeValue",
|
|
|
+ label: "应收金额",
|
|
|
+ type: "text"
|
|
|
},{
|
|
|
prop: "createTime",
|
|
|
label: "创建时间",
|
|
|
type: "text"
|
|
|
},{
|
|
|
- prop: "voucherNumber",
|
|
|
- label: "凭证号",
|
|
|
+ prop: "settlementTime",
|
|
|
+ label: "结算日期",
|
|
|
+ type: "text"
|
|
|
+ },{
|
|
|
+ prop: "settlementUserId",
|
|
|
+ label: "结算人",
|
|
|
type: "text"
|
|
|
},{
|
|
|
- prop: "contractId",
|
|
|
- label: "合同号",
|
|
|
+ prop: "updateUserId",
|
|
|
+ label: "修改人",
|
|
|
type: "text"
|
|
|
},{
|
|
|
prop: "handlingFeesStatus",
|
|
|
@@ -212,6 +313,7 @@ export default {
|
|
|
}]
|
|
|
}
|
|
|
],
|
|
|
+ isCheckBox:true,
|
|
|
loading:true,
|
|
|
isPaginationShow:true,
|
|
|
isShowIndex: true,
|
|
|
@@ -233,8 +335,9 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
agreementType: '1',
|
|
|
- isNotCar:'0',
|
|
|
- isOther:'0'
|
|
|
+ isNotCar:'1',
|
|
|
+ isOther:'0',
|
|
|
+ handlingFeesStatus:'1'
|
|
|
},
|
|
|
formData:{},
|
|
|
rules: {
|
|
|
@@ -254,6 +357,9 @@ export default {
|
|
|
this.findPage();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSelectionChange(row){
|
|
|
+ console.log(row,33333);
|
|
|
+ },
|
|
|
// 查询
|
|
|
handleSearchList() {
|
|
|
this.findPage();
|
|
|
@@ -278,30 +384,29 @@ export default {
|
|
|
},
|
|
|
// 结算
|
|
|
balanceFun(row){
|
|
|
- this.formData={
|
|
|
- voucherNumber:'',
|
|
|
- contractId:'',
|
|
|
- contractFileId:'',
|
|
|
- orderno:row.orderno,
|
|
|
- policyno:row.policyno,
|
|
|
- commissionFeevalue:row.commissionFeevalue,
|
|
|
- }
|
|
|
+ // this.formData={
|
|
|
+ // voucherNumber:'',
|
|
|
+ // contractId:'',
|
|
|
+ // contractFileId:'',
|
|
|
+ // orderno:row.orderno,
|
|
|
+ // policyno:row.policyno,
|
|
|
+ // commissionFeevalue:row.commissionFeevalue,
|
|
|
+ // }
|
|
|
this.dialogVisible=true
|
|
|
-
|
|
|
- },
|
|
|
- // 上传图片的方法Start
|
|
|
- beforeAvatarUpload(file) {
|
|
|
- // var testmsg = file.name.substring(file.name.lastIndexOf(".") + 1);
|
|
|
- // const extension = testmsg === "pdf";//限制只能上传pdf文件,否则阻止上传
|
|
|
- // const extension1 = testmsg === "docx";//限制只能上传pdf文件,否则阻止上传
|
|
|
- // const extension2 = testmsg === "doc";//限制只能上传pdf文件,否则阻止上传
|
|
|
- // if (!extension && !extension1 && !extension2 ) {
|
|
|
- // this.$message({
|
|
|
- // message: "只允许上传PDF和Word文件!",
|
|
|
- // type: "warning",
|
|
|
- // });
|
|
|
- // }
|
|
|
- // return extension && extension1 && extension2
|
|
|
+ // this.$api.task.plyFeebalance({...this.formData,id:this.formData.contractFileId}).then(res => {
|
|
|
+ this.$api.task.plyFeebalance({...this.formData,id:this.formData.contractFileId}).then(res => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.dialogVisible=false
|
|
|
+ this.findPage()
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//上传影像
|
|
|
httpRequest(options) {
|
|
|
@@ -322,29 +427,29 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- submit(formData){
|
|
|
- this.$refs[formData].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- this.$api.task.plyFeebalance({...this.formData,id:this.formData.contractFileId}).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.dialogVisible=false
|
|
|
- this.findPage()
|
|
|
- }
|
|
|
- else{
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
- });
|
|
|
+ // submit(formData){
|
|
|
+ // this.$refs[formData].validate((valid) => {
|
|
|
+ // if (valid) {
|
|
|
+ // this.$api.task.plyFeebalance({...this.formData,id:this.formData.contractFileId}).then(res => {
|
|
|
+ // if (res.code == "200") {
|
|
|
+ // this.$message({
|
|
|
+ // message: res.msg,
|
|
|
+ // type: 'success'
|
|
|
+ // })
|
|
|
+ // this.dialogVisible=false
|
|
|
+ // this.findPage()
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+ // this.$message.error(res.msg)
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
|
|
|
- },
|
|
|
+ // },
|
|
|
tablePageChange(val) {
|
|
|
this.pageData.pageSize = val;
|
|
|
this.findPage();
|