|
|
@@ -2,8 +2,8 @@
|
|
|
<!--布局容器-->
|
|
|
<div class="container" style="width: 99%; margin-top: 0px">
|
|
|
<templateTable custom :formList="formList" ref="templateTable" :searchData.sync="searchData"
|
|
|
- :tableConfig="tableConfig" :data="tableData" :btnGroup="btnGroup" @findPage="findPage"
|
|
|
- @handleSearchList="handleSearchList" :pagination="pageData" @areaSelectChange="areaSelectChange" @getList="getList">
|
|
|
+ :tableConfig="tableConfig" :data="tableData" :btnGroup="btnGroup" @findPage="findPage" @companySelectChange="selectCompanyChange"
|
|
|
+ @handleSearchList="handleSearchList" :pagination="pageData" @areaSelectChange="areaSelectChange" @getList="getList">
|
|
|
<!-- <template slot="内部机构">
|
|
|
<el-select v-model="labelData" placeholder="请选择" :popper-append-to-body="false" style="width: 100%" size="small">
|
|
|
<el-option :value="selectTree" class="deptOption" disabled>
|
|
|
@@ -12,10 +12,10 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</template> -->
|
|
|
- <template slot="保司机构">
|
|
|
+ <!-- <template slot="保司机构">
|
|
|
<el-cascader v-model="pageData.partnerCompaniesIdList" size="small" :show-all-levels="false" ize="small"
|
|
|
:options="ztreeNodes" :props="optionProps" clearable filterable></el-cascader>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
|
|
|
<template slot="dockingPerson">
|
|
|
<el-select v-model="pageData.dockingPerson" filterable clearable placeholder="请选择" size="small">
|
|
|
@@ -35,10 +35,10 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</templateTable>
|
|
|
- <el-dialog :visible.sync="dialogVisibleBatch" width="30%" :before-close="handleCloseBatch">
|
|
|
- <el-form :model="InvoicingData" :rules="rules" ref="InvoicingData" size="small" label-width="90px">
|
|
|
+ <el-dialog :visible.sync="dialogVisibleBatch" width="45%" :before-close="handleCloseBatch">
|
|
|
+ <!-- <el-form :model="InvoicingData" :rules="rules" ref="InvoicingData" size="small" label-width="100px">
|
|
|
<el-row>
|
|
|
- <el-col :span="10">
|
|
|
+ <el-col :span="9">
|
|
|
<el-form-item label="开票方式:" prop="invoicingMethod">
|
|
|
<el-select v-model="InvoicingData.invoicingMethod" placeholder="请选择">
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
@@ -46,25 +46,47 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="10">
|
|
|
+ <el-col :span="9" :offset="1">
|
|
|
<el-form-item label="税点:" prop="taxPoints">
|
|
|
<el-input v-model="InvoicingData.taxPoints"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="10" v-if="InvoicingData.invoicingMethod == '1'">
|
|
|
+ <el-col :span="9" v-if="InvoicingData.invoicingMethod == '1'">
|
|
|
<el-form-item label="开票号:" prop="invoicId">
|
|
|
<el-input v-model="InvoicingData.invoicId"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="10">
|
|
|
+ <el-col :span="9" :offset="1">
|
|
|
<el-form-item label="总手续费:">
|
|
|
<span> {{ batchData.totalAmount }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ </el-form> -->
|
|
|
+ <el-form :model="InvoicingData" :rules="rules" ref="InvoicingData" size="small" label-width="100px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="开票方式:" prop="invoicingMethod">
|
|
|
+ <el-select v-model="InvoicingData.invoicingMethod" placeholder="请选择">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="税点:" prop="taxPoints">
|
|
|
+ <el-input v-model="InvoicingData.taxPoints"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" v-if="InvoicingData.invoicingMethod == '1'">
|
|
|
+ <el-form-item label="开票号:" prop="invoicId">
|
|
|
+ <el-input v-model="InvoicingData.invoicId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
- <templateTable ref="templateTable1" :tableConfig="tableConfigbatch" :data="batchData" @findPage="findPagegbatch"
|
|
|
- :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChange" @selectAll="selectAll">
|
|
|
+ <templateTable ref="templateTable1" :formList="formListbatch" :tableConfig="tableConfigbatch" :data="batchData" @findPage="findPagegbatch"
|
|
|
+ :pagination="pageDataPro" @getList="getListgbatch" @handleSearchList="handleSearchListbatch" @selectionChange="selectionChange" @selectAll="selectAll">
|
|
|
<template slot="uploadUrl" slot-scope="scope">
|
|
|
<span @click="uploadUrlClick(scope.row.uploadUrl)">{{ scope.row.uploadUrl }}</span>
|
|
|
</template>
|
|
|
@@ -109,8 +131,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="保司机构" prop="partnerCompaniesId">
|
|
|
- <el-cascader v-model="formDataAdd.partnerCompaniesId" size="small" :show-all-levels="false" ize="small"
|
|
|
- :options="ztreeNodes" :props="optionProps" clearable filterable></el-cascader>
|
|
|
+ <el-cascader ref="partnerCompaniesCascader" v-model="formDataAdd.partnerCompaniesId" size="small" :show-all-levels="false" ize="small"
|
|
|
+ :options="ztreeNodes" @change="partnerCompaniesFun" :props="optionProps" clearable filterable></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -122,7 +144,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="险种" prop="riskcode">
|
|
|
- <el-select v-model="formDataAdd.riskcode" multiple placeholder="选择险种" size="small">
|
|
|
+ <el-select v-model="formDataAdd.riskcode" placeholder="选择险种" size="small">
|
|
|
<el-option v-for="item in InsInsuranceKindoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
:value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
@@ -167,8 +189,6 @@ import { mapState } from 'vuex'
|
|
|
export default {
|
|
|
name: "baosi",
|
|
|
components: { KtCommonTable, templateTable },
|
|
|
- created() {
|
|
|
- },
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
perms: state => state.user.perms
|
|
|
@@ -200,6 +220,13 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
},
|
|
|
+ formListbatch:[
|
|
|
+ {
|
|
|
+ label: "上传时间",
|
|
|
+ prop: "createTime",
|
|
|
+ type: "date",
|
|
|
+ },
|
|
|
+ ],
|
|
|
ztreeNodes: [],
|
|
|
InsInsuranceKindoptions: [],
|
|
|
optionProps: {
|
|
|
@@ -255,26 +282,39 @@ export default {
|
|
|
type: 'selectDept',
|
|
|
options: []
|
|
|
},
|
|
|
- {
|
|
|
- label: "保司机构",
|
|
|
- name: "保司机构",
|
|
|
- type: "slot",
|
|
|
- },
|
|
|
{
|
|
|
label: "车牌号",
|
|
|
prop: "licenseno",
|
|
|
type: "input",
|
|
|
},
|
|
|
- {
|
|
|
- label: "被保人",
|
|
|
- prop: "insuredName",
|
|
|
- type: "input",
|
|
|
- },
|
|
|
{
|
|
|
label: "保险公司",
|
|
|
prop: "companyName",
|
|
|
type: "company",
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'allPartnerCompaniesId',
|
|
|
+ label: '保司总公司',
|
|
|
+ type: 'selectCompany',
|
|
|
+ options: []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'provincePartnerCompaniesId',
|
|
|
+ label: '保司省公司',
|
|
|
+ type: 'selectCompany',
|
|
|
+ options: []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'PartnerCompaniesId',
|
|
|
+ label: '保司中心支公司',
|
|
|
+ type: 'selectCompany',
|
|
|
+ options: []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "被保人",
|
|
|
+ prop: "insuredName",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
label: "险种",
|
|
|
@@ -282,17 +322,6 @@ export default {
|
|
|
type: "select",
|
|
|
options:[]
|
|
|
},
|
|
|
-
|
|
|
- // {
|
|
|
- // label: "交强保单号",
|
|
|
- // prop: "policyno",
|
|
|
- // type: "input",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "商业保单号",
|
|
|
- // prop: "syPolicyno",
|
|
|
- // type: "input",
|
|
|
- // },
|
|
|
{
|
|
|
label: "非车保单号",
|
|
|
prop: "noPolicyno",
|
|
|
@@ -334,14 +363,6 @@ export default {
|
|
|
label: "签单日期",
|
|
|
prop: "signDate",
|
|
|
type: "datePicker",
|
|
|
- }, {
|
|
|
- label: "交强起保日期",
|
|
|
- prop: "jqStartDate",
|
|
|
- type: "datePicker",
|
|
|
- }, {
|
|
|
- label: "商业起保日期",
|
|
|
- prop: "syDate",
|
|
|
- type: "datePicker",
|
|
|
},
|
|
|
],
|
|
|
tableConfigbatch: {
|
|
|
@@ -351,6 +372,11 @@ export default {
|
|
|
label: "任务id",
|
|
|
type: "text"
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: "partnerCompaniesName",
|
|
|
+ label: "保司名称 ",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
{
|
|
|
prop: "createdAt",
|
|
|
label: "开始时间",
|
|
|
@@ -543,7 +569,7 @@ export default {
|
|
|
},
|
|
|
dialogVisibleBatch: false,
|
|
|
totalAmount: '',
|
|
|
- batchData: {},
|
|
|
+ batchData: [],
|
|
|
dockingPersonOption: [],
|
|
|
fileList:[],
|
|
|
progressPercent:0,
|
|
|
@@ -558,6 +584,7 @@ export default {
|
|
|
this.getDicType("InsInsuranceKind"); //险种类型
|
|
|
this.getDicType("agreementType"); //险种类型
|
|
|
this.areaqueryList(1, 99, "provinceId");
|
|
|
+ this.companyqueryList(0,'allPartnerCompaniesId');
|
|
|
|
|
|
this.findPage();
|
|
|
let params = {
|
|
|
@@ -584,6 +611,38 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ companyqueryList(parentId, filed) {
|
|
|
+ this.$api.task.esmInsCompany( parentId).then((res) => {
|
|
|
+ this.selectDataMatching(this.formList, filed, res.data);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ selectCompanyChange(obj) {
|
|
|
+ switch (obj.filed) {
|
|
|
+ case 'allPartnerCompaniesId':
|
|
|
+ this.companyqueryList( obj.id, 'provincePartnerCompaniesId')
|
|
|
+ break;
|
|
|
+ case 'provincePartnerCompaniesId':
|
|
|
+ this.companyqueryList( obj.id, 'PartnerCompaniesId')
|
|
|
+ break;
|
|
|
+ case 'PartnerCompaniesId':
|
|
|
+
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ }
|
|
|
+ },
|
|
|
+ partnerCompaniesFun(val){
|
|
|
+ if(val && val.length>0){
|
|
|
+ this.formDataAdd.partnerCompaniesId=val[val.length-1]
|
|
|
+ this.formDataAdd.partnerCompaniesName=this.$refs.partnerCompaniesCascader.getCheckedNodes()[0].label
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.formDataAdd.partnerCompaniesId=''
|
|
|
+ this.formDataAdd.partnerCompaniesName=''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleSearchListbatch(data){
|
|
|
+ this.findPagegbatch(data)
|
|
|
+ },
|
|
|
selectAll (selection,ref){
|
|
|
ref.clearSelection()
|
|
|
return
|
|
|
@@ -595,9 +654,9 @@ export default {
|
|
|
}
|
|
|
this.selectionList = val;
|
|
|
},
|
|
|
- findPagegbatch() {
|
|
|
+ findPagegbatch(data) {
|
|
|
this.tableConfigbatch.loading = true
|
|
|
- this.$api.task.importAsyncQuery({...this.pageDataPro,handStatus:1})
|
|
|
+ this.$api.task.importAsyncQuery({...this.pageDataPro,handStatus:1,...data})
|
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableConfigbatch.loading = false
|
|
|
@@ -665,6 +724,7 @@ export default {
|
|
|
this.pageData.deptId = data.id
|
|
|
},
|
|
|
newAdd() {
|
|
|
+ this.formDataAdd={}
|
|
|
this.dialogVisibleAdd = true
|
|
|
},
|
|
|
handleCloseadd() {
|
|
|
@@ -677,7 +737,7 @@ export default {
|
|
|
isNotCar: 1,
|
|
|
isNotDocumentary: 0,
|
|
|
companyName:this.formDataAdd.companyId? this.InsCompanyList.find(val => val.id == this.formDataAdd.companyId).name:'',
|
|
|
- partnerCompaniesName:this.formDataAdd.partnerCompaniesId? this.InsCompanyList.find(val => val.id == this.formDataAdd.partnerCompaniesId).name:'',
|
|
|
+ // partnerCompaniesName:this.formDataAdd.partnerCompaniesId? this.InsCompanyList.find(val => val.id == this.formDataAdd.partnerCompaniesId).name:'',
|
|
|
}
|
|
|
this.$api.task.fncplyFeeInsert({ ...this.formDataAdd, ...data })
|
|
|
.then(res => {
|
|
|
@@ -730,10 +790,6 @@ export default {
|
|
|
handleSearchList(data) {
|
|
|
let signDateStart = ''
|
|
|
let signDateEnd = ''
|
|
|
- let jqStartDate = ''
|
|
|
- let jqEndDate = ''
|
|
|
- let syStartDate = ''
|
|
|
- let syEndDate = ''
|
|
|
if (data && data.signDate && data.signDate.length > 0) {
|
|
|
signDateStart = data.signDate[0]
|
|
|
signDateEnd = data.signDate[1]
|
|
|
@@ -742,24 +798,9 @@ export default {
|
|
|
signDateStart = ''
|
|
|
signDateEnd = ''
|
|
|
}
|
|
|
- if (data && data.jqStartDate && data.jqStartDate.length > 0) {
|
|
|
- jqStartDate = data.jqStartDate[0]
|
|
|
- jqEndDate = data.jqStartDate[1]
|
|
|
- }
|
|
|
- else {
|
|
|
- jqStartDate = ''
|
|
|
- jqEndDate = ''
|
|
|
- }
|
|
|
- if (data && data.syDate && data.syDate.length > 0) {
|
|
|
- syStartDate = data.syDate[0]
|
|
|
- syEndDate = data.syDate[1]
|
|
|
- }
|
|
|
- else {
|
|
|
- syStartDate = ''
|
|
|
- syEndDate = ''
|
|
|
- }
|
|
|
+
|
|
|
this.$api.task
|
|
|
- .bxTotalAmount({ ...this.pageData, ...data, signDateStart, signDateEnd, jqStartDate, jqEndDate, syStartDate, syEndDate })
|
|
|
+ .bxTotalAmount({ ...this.pageData, ...data, signDateStart, signDateEnd })
|
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.moneyList = res.data ? res.data : []
|
|
|
@@ -768,7 +809,7 @@ export default {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
});
|
|
|
- this.findPage({ ...data, signDateStart, signDateEnd, jqStartDate, jqEndDate, syStartDate, syEndDate });
|
|
|
+ this.findPage({ ...data, signDateStart, signDateEnd });
|
|
|
},
|
|
|
templateDownload() {
|
|
|
let a = document.createElement('a')
|