|
|
@@ -1,207 +1,34 @@
|
|
|
<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" :data="tableData"
|
|
|
+ <templateTable ref="templateTable" :formList="formList" :btnGroup="btnGroup" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
|
|
|
@findPage="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
|
|
|
+ <template slot="data">
|
|
|
+ <yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData" @getDayData="getDayData"></yearMonthYay>
|
|
|
+ </template>
|
|
|
+ </templateTable>
|
|
|
+ <el-dialog
|
|
|
+ title="详情"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="80%"
|
|
|
+ :before-close="handleClose">
|
|
|
+ <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData"
|
|
|
+ @findPage="findPageDetail" >
|
|
|
</templateTable>
|
|
|
- <el-dialog v-dialogDrag title="结算" :visible.sync="dialogVisible" width="40%" @close="closdialogVisible">
|
|
|
- 选择年份:<el-date-picker v-model="year" type="year" @change="handleChange" value-format="yyyy" placeholder="选择年">
|
|
|
- </el-date-picker>
|
|
|
- <el-table v-if="year" ref="multipleTable" :data="insuranceTableData" border tooltip-effect="dark"
|
|
|
- style="margin-top:15px">
|
|
|
- <el-table-column prop="totalorders" label="总单数">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="monthSigdate" label="月份">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="allLOtherFeevalue" label="总单数">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click="handleClick(scope.row)" type="text" size="small">结算</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <!-- <el-button size="small" type="primary" @click="submit()">确 定</el-button> -->
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
- <el-dialog title="结算" :visible.sync="dialogVisiblepro" width="40%" @close="closdialogVisiblePro">
|
|
|
- <el-form :model="formData" :rules="rules" ref="formData" :inline="true" size="small">
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="凭证号" prop="voucherNumber">
|
|
|
- <el-input v-model="formData.voucherNumber"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="合同号" prop="contractId">
|
|
|
- <el-input v-model="formData.contractId"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="结算金额" prop="settlementAmount">
|
|
|
- <el-input v-model="formData.settlementAmount"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="合同附件" prop="contractFileId" style="width: 50%">
|
|
|
- <el-upload v-model="formData.contractFileId" class="upload-demo" action="" 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">只能上传pdf/docx文件</div>
|
|
|
- </el-upload>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="dialogVisiblepro = false">取 消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="submit('formData')">确 定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
- <el-dialog title="详情" :visible.sync="dialogVisibleDetail" width="80%" @close="closdialogVisibleDetail">
|
|
|
- <el-button size="small" type="primary" icon="el-icon-plus" @click="addDetailData()">新增</el-button>
|
|
|
- <el-table :data="DetailtableData" border style="margin-top:15px">
|
|
|
- <el-table-column prop="orderno" label="订单号(子订单)">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="policyno" label="交强保单号">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="syPolicyno" label="商业保单号">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="noPolicyno" label="非车保单号">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="dept_id" label="机构">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="riskcode" label="险种">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="payDate" label="出单日期">
|
|
|
- </el-table-column>
|
|
|
- <template></template>
|
|
|
- <el-table-column prop="signdate" label="签单日期">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="companyId" label="保险公司id">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="agreementId" label="协议号">
|
|
|
- </el-table-column> <el-table-column prop="licenseno" label="车牌号">
|
|
|
- </el-table-column> <el-table-column prop="taxamount" label="车船税">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="noTaxPremium" label="不含税保费">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="otherFeerate" label="其他费用比例">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="otherFeevalue" label="其他费用金额">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="allFeeValue" label="总费用">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column fixed="right" width="180" label="操作">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click="detailUpload(scope.row)" type="text">编辑</el-button>
|
|
|
- <el-button @click="detailDetele(scope.row)" type="text">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="dialogVisibleDetail = false">取 消</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
- <!-- 详情里的新增 -->
|
|
|
- <el-dialog :title="titleDetail" :visible.sync="detailDialogVisible" width="60%" @close="detailclosdialogVisible">
|
|
|
- <el-form :model="formDataAdd" :rules="rulesAdd" ref="formDataAdd" :inline="true" label-width="130px" size="small">
|
|
|
- <el-row>
|
|
|
- <!-- <el-col :span="8">
|
|
|
- <el-form-item label="保险公司id" prop="companyId">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.companyId"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col> -->
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="交强保单号" prop="policyno">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.policyno"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="商业保单号" prop="syPolicyno">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.syPolicyno"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="非车保单号" prop="noPolicyno">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.noPolicyno"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="协议号" prop="agreementId">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.agreementId"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="险种" prop="riskcode">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.riskcode"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="出单日期" prop="payDate">
|
|
|
- <el-date-picker :disabled="titleDetail == '编辑'" v-model="formDataAdd.payDate" type="date" placeholder="选择日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col> <el-col :span="8">
|
|
|
- <el-form-item label="签单日期" prop="signdate">
|
|
|
- <el-date-picker :disabled="titleDetail == '编辑'" v-model="formDataAdd.signdate" type="date" placeholder="选择日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col> <el-col :span="8">
|
|
|
- <el-form-item label="车牌号" prop="licenseno">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.licenseno"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="不含税保费" prop="noTaxPremium">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.noTaxPremium"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="总费用" prop="allFeeValue">
|
|
|
- <el-input :disabled="titleDetail == '编辑'" v-model="formDataAdd.allFeeValue"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="跟单费比例" prop="otherFeerate">
|
|
|
- <el-input v-model="formDataAdd.otherFeerate"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="跟单费金额" prop="otherFeevalue">
|
|
|
- <el-input v-model="formDataAdd.otherFeevalue"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="detailDialogVisible = false">取 消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="submitAdd('formDataAdd')">确 定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
+ <el-button size="small" @click="dialogVisible = false">取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import KtCommonTable from "@/views/Core/KtCommonTable.vue";//表格组件
|
|
|
import templateTable from '@/components/TemplateTable/index.vue'
|
|
|
import { mapState } from 'vuex'
|
|
|
+import yearMonthYay from '../../PlatformSettlement/yearMonthYay.vue'
|
|
|
|
|
|
export default {
|
|
|
name: "baosi",
|
|
|
- components: { KtCommonTable, templateTable },
|
|
|
+ components: { templateTable,yearMonthYay },
|
|
|
created() {
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -212,157 +39,233 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
year: '',
|
|
|
- insuranceTableData: [],
|
|
|
searchData: {},
|
|
|
+ formDataId:'',
|
|
|
+ dialogVisible:false,
|
|
|
formList: [
|
|
|
- {
|
|
|
- label: "年份:",
|
|
|
- prop: "orderno",
|
|
|
- type: "year",
|
|
|
- },
|
|
|
- ],
|
|
|
+ {
|
|
|
+ label: "保险公司",
|
|
|
+ prop: "companyName",
|
|
|
+ type: "company",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "合作公司名称",
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "年月日",
|
|
|
+ name: "data",
|
|
|
+ type: "slot",
|
|
|
+ },
|
|
|
+ ],
|
|
|
tableConfig: {
|
|
|
columns: [
|
|
|
{
|
|
|
- prop: "companyId",
|
|
|
- label: "保险id",
|
|
|
+ prop: "companyName",
|
|
|
+ label: "保险公司名称",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "totalorders",
|
|
|
- label: "总单数",
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ label: "合作公司名称",
|
|
|
type: "text"
|
|
|
},
|
|
|
{
|
|
|
- prop: "allLOtherFeevalue",
|
|
|
- label: "跟单费总额",
|
|
|
+ prop: "otherFeevalue",
|
|
|
+ label: "总跟单费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "noInvoicCommissionFeevalue",
|
|
|
+ label: "未开票跟单费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "invoicCommissionFeevalue",
|
|
|
+ label: "已开票跟单费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "settleMentAmount",
|
|
|
+ label: "已开票已结算跟单费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "unSettledAmount",
|
|
|
+ label: "已开票未结算跟单费",
|
|
|
type: "text"
|
|
|
},
|
|
|
-
|
|
|
],
|
|
|
loading: true,
|
|
|
isPaginationShow: true,
|
|
|
isShowIndex: true,
|
|
|
- optBtns: [
|
|
|
+ optBtns:[
|
|
|
{
|
|
|
- type: 'primary',
|
|
|
- label: '结算',
|
|
|
- perm: 'sys:documentaryFees2:balance',
|
|
|
- click: (row, index) => { return this.openBalanceFun(row) },
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'primary',
|
|
|
- label: '详情',
|
|
|
- click: (row, index) => { return this.openDetail(row) },
|
|
|
- }
|
|
|
+ type:'primary',
|
|
|
+ label:'详情',
|
|
|
+ click:(row, index) => {return this.haldDetail(row)},
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
+ btnGroup:[
|
|
|
+ {
|
|
|
+ name:'导出',
|
|
|
+ click:(row, index) => {return this.handExport()},
|
|
|
+ }
|
|
|
+ ],
|
|
|
tableData: [],
|
|
|
formData: {},
|
|
|
- DetailtableData: [],
|
|
|
- balanceRow: {},
|
|
|
- formDataList: {},
|
|
|
- formDataAdd: {},
|
|
|
- dialogVisible: false,
|
|
|
- dialogVisiblepro: false,
|
|
|
- dialogVisibleDetail: false,
|
|
|
- detailDialogVisible: false,
|
|
|
- formDataDetailId: '',
|
|
|
pageData: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
agreementType: 2,
|
|
|
isNotCar: '0',
|
|
|
- isNotDocumentary: '1'
|
|
|
- },
|
|
|
- rules: {
|
|
|
- voucherNumber: [
|
|
|
- { required: true, message: '请输入凭证号', trigger: 'blur' },
|
|
|
- ],
|
|
|
- contractId: [
|
|
|
- { required: true, message: '请输入合同号', trigger: 'blur' },
|
|
|
- ],
|
|
|
- contractFileId: [
|
|
|
- { required: true, message: '请上传合同', trigger: 'blur' },
|
|
|
- ],
|
|
|
+ isNotDocumentary: '1'
|
|
|
},
|
|
|
- rulesAdd: {
|
|
|
- otherFeevalue: [
|
|
|
- { required: true, message: '请输入跟单费金额', trigger: 'blur' },
|
|
|
- ],
|
|
|
- otherFeerate: [
|
|
|
- { required: true, message: '请输入跟单费比例', trigger: 'blur' },
|
|
|
+ formTableData:[],
|
|
|
+ tableConfigDetail:{
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ prop: "orderno",
|
|
|
+ label: "订单号(子订单)",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "companyName",
|
|
|
+ label: "保险公司名称",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ label: "合作公司名称",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "policyno",
|
|
|
+ label: "交强保单号",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syPolicyno",
|
|
|
+ label: "商业保单号",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqPremium",
|
|
|
+ label: "交强保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syPremium",
|
|
|
+ label: "商业保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqNoTaxPremium",
|
|
|
+ label: "交强不含税保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syNoTaxPremium",
|
|
|
+ label: "商业不含税保费",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "otherFeevalue",
|
|
|
+ label: "跟单费金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "otherFeerate",
|
|
|
+ label: "跟单费比例",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqOtherCostsProportion",
|
|
|
+ label: "交强跟单比例",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syOtherCostsProportion",
|
|
|
+ label: "商业跟单比例",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqOtherCostsPremium",
|
|
|
+ label: "交强跟单金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "syOtherCostsPremium",
|
|
|
+ label: "商业跟单金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+
|
|
|
],
|
|
|
- },
|
|
|
- titleDetail: "新增"
|
|
|
+ loading: true,
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.findPage();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getYearData(val){
|
|
|
+ this.formData.year=val
|
|
|
+ },
|
|
|
+ getMonthData(val){
|
|
|
+ this.formData.month=val
|
|
|
+ },
|
|
|
+ getDayData(val){
|
|
|
+ this.formData.day=val
|
|
|
+ },
|
|
|
// 查询
|
|
|
- handleSearchList() {
|
|
|
- this.findPage();
|
|
|
+ handleSearchList(data) {
|
|
|
+ this.findPage(data);
|
|
|
},
|
|
|
//列表数据
|
|
|
findPage(data) {
|
|
|
+ let signDateStart=''
|
|
|
+ let signDateEnd=''
|
|
|
+ if(data&& data.signDate){
|
|
|
+ signDateStart=data.signDate[0]
|
|
|
+ signDateEnd=data.signDate[1]
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ signDateStart=''
|
|
|
+ signDateEnd=''
|
|
|
+ }
|
|
|
this.tableConfig.loading = true;
|
|
|
this.$api.task
|
|
|
- .NonSettlementQuery(this.pageData)
|
|
|
+ .allOtherAmount({...this.pageData,...data,...this.formData,signDateStart,signDateEnd})
|
|
|
.then(res => {
|
|
|
- if (res.data) {
|
|
|
- this.tableData = res.data.content;
|
|
|
- this.pageData.pageNum = res.data.pageNum;
|
|
|
- this.pageData.pageSize = res.data.pageSize;
|
|
|
- this.pageData.totalSize = res.data.totalSize;
|
|
|
+ if (res.code==200) {
|
|
|
+ this.tableData = res.data;
|
|
|
+ // this.pageData.pageNum = res.data.pageNum;
|
|
|
+ // this.pageData.pageSize = res.data.pageSize;
|
|
|
+ // this.pageData.totalSize = res.data.totalSize;
|
|
|
this.tableConfig.loading = false;
|
|
|
}
|
|
|
+ else{
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
- closdialogVisible() {
|
|
|
- this.dialogVisible = false;
|
|
|
- },
|
|
|
- closdialogVisiblePro() {
|
|
|
- this.dialogVisiblepro = false;
|
|
|
- },
|
|
|
- closdialogVisibleDetail() {
|
|
|
- this.dialogVisibleDetail = false;
|
|
|
- },
|
|
|
- detailclosdialogVisible() {
|
|
|
- this.detailDialogVisible = false;
|
|
|
- },
|
|
|
- // 结算
|
|
|
- openBalanceFun(row) {
|
|
|
- this.dialogVisible = true
|
|
|
- this.year = ''
|
|
|
- this.formDataList = row
|
|
|
- },
|
|
|
- handleClick(row) {
|
|
|
- this.balanceRow = row
|
|
|
- this.formData = {}
|
|
|
- this.dialogVisiblepro = true;
|
|
|
- },
|
|
|
- submit(formData) {
|
|
|
- this.$refs[formData].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- this.$api.task.batchBalance({ ...this.formData, ids: this.formDataList.ids, totAmount: this.formDataList.allLOtherFeevalue }).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.dialogVisiblepro = false
|
|
|
- this.year = ''
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
- });
|
|
|
+ findPageDetail(data) {
|
|
|
+ this.tableConfigDetail.loading=true
|
|
|
+ this.$api.task
|
|
|
+ .plyFeeNonSettldetail(data)
|
|
|
+ .then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
+ this.formTableData = res.data;
|
|
|
+ this.tableConfigDetail.loading = false;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.tableConfigDetail.loading = false;
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
tablePageChange(val) {
|
|
|
this.pageData.pageSize = val;
|
|
|
@@ -372,142 +275,42 @@ export default {
|
|
|
this.pageData.pageNum = val;
|
|
|
this.findPage();
|
|
|
},
|
|
|
- // 上传图片的方法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
|
|
|
+ haldDetail(row){
|
|
|
+ this.formDataId=row.id
|
|
|
+ this.dialogVisible=true
|
|
|
+ this.findPageDetail(row)
|
|
|
},
|
|
|
- //上传影像
|
|
|
- httpRequest(options) {
|
|
|
- let file = options.file;
|
|
|
- const params = new FormData(); // 声明formData数据类型
|
|
|
- params.append("multipartFile", file);
|
|
|
- params.append("type", 'settle');
|
|
|
- this.$api.letter.uploadFile(params).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.$message({
|
|
|
- message: '上传成功',
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.formData.contractFileId = res.data.id
|
|
|
+ handleClose(){
|
|
|
+ this.dialogVisible=false
|
|
|
+ },
|
|
|
+ handExport(){
|
|
|
+ if( this.$refs.templateTable.searchDataClone){
|
|
|
+ let signDateStart=''
|
|
|
+ let signDateEnd=''
|
|
|
+ if(this.$refs.templateTable.searchDataClone && this.$refs.templateTable.searchDataClone.signDate && this.$refs.templateTable.searchDataClone.signDate.length>0){
|
|
|
+ signDateStart=this.$refs.templateTable.searchDataClone.signDate[0]
|
|
|
+ signDateEnd=this.$refs.templateTable.searchDataClone.signDate[1]
|
|
|
}
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- handleChange(val) {
|
|
|
- this.year = val
|
|
|
- let obj = {
|
|
|
- agreementType: '2',
|
|
|
- isNotCar: '0',
|
|
|
- isNotDocumentary: '1',
|
|
|
- documentaryFeesStatus: '0',
|
|
|
- year: val,
|
|
|
- companyId: this.formDataList.companyId,
|
|
|
+ else{
|
|
|
+ signDateStart=''
|
|
|
+ signDateEnd=''
|
|
|
}
|
|
|
- this.$api.task.totalQuery(obj).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.insuranceTableData = res.data.content
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 详情
|
|
|
- openDetail(row) {
|
|
|
- this.formDataList = row
|
|
|
- this.formDataDetailId = row.ids
|
|
|
- this.openDetailFun(row.ids)
|
|
|
- },
|
|
|
- openDetailFun(id) {
|
|
|
- this.$api.task.NonSettldetail({ ids: id }).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.DetailtableData = res.data
|
|
|
- this.dialogVisibleDetail = true
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- addDetailData() {
|
|
|
- // this.formDataAdd={}
|
|
|
- this.titleDetail = '新增'
|
|
|
- this.detailDialogVisible = true
|
|
|
- },
|
|
|
- detailUpload(row) {
|
|
|
- this.$api.task.plyFeeUploadId(row.id).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
-
|
|
|
- this.titleDetail = '编辑'
|
|
|
- this.formDataAdd = res.data
|
|
|
- this.detailDialogVisible = true
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- submitAdd(formDataAdd) {
|
|
|
- this.$refs[formDataAdd].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (this.titleDetail == '新增') {
|
|
|
- this.$api.task.plyFeeInsert({ ...this.formDataAdd,companyId:this.formDataList.companyId,isNotCar:'0' }).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.openDetailFun(res.msg)
|
|
|
- this.detailDialogVisible = false
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- else{
|
|
|
- this.$api.task.plyFeeUpload({...this.formDataAdd,companyId:this.formDataList.companyId}).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.openDetailFun(this.formDataDetailId)
|
|
|
- this.detailDialogVisible=false
|
|
|
+ this.$api.task.bxOtherExcel({...this.pageData,...this.$refs.templateTable.searchDataClone,signDateStart,signDateEnd})
|
|
|
+ .then(res => {
|
|
|
+ if (res.code==200) {
|
|
|
+ let url = process.env.BASE_URL + res.data; // 3.创建一个临时的url指向blob对象
|
|
|
+ let a = document.createElement("a");
|
|
|
+ a.href = url;
|
|
|
+ a.download = "导出文件.xlsx";
|
|
|
+ a.click();
|
|
|
+ window.URL.revokeObjectURL(url);
|
|
|
}
|
|
|
else{
|
|
|
- this.$message.error(res.msg)
|
|
|
+ this.$message.error(res.msg)
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- } else {
|
|
|
- return false;
|
|
|
+ });
|
|
|
}
|
|
|
- });
|
|
|
},
|
|
|
- detailDetele(row) {
|
|
|
- this.$api.task.plyFeeDelete({ id: row.id,isNotCar:'0', companyId:this.formDataList.companyId}).then(res => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.openDetailFun(res.msg)
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
};
|
|
|
</script>
|