lihongxiao 2 سال پیش
والد
کامیت
0899bdbc83

+ 2 - 0
src/components/TemplateTable/index.vue

@@ -342,7 +342,9 @@ export default {
     resetForm(formName) {
       this.searchDataClone = {}
       // this.$refs[formName].resetFields();
+      this.$emit("resetForm", '');
       this.handleSearchList();
+
     },
     handleOpt(row, index) {
       this.$emit('handleOpt', row, index)

+ 1 - 1
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -107,7 +107,7 @@
           </template>
         </el-table-column> -->
         <el-table-column prop="updateTime" label="修改时间" align="center" :formatter="updatetimeFormatter"></el-table-column>
-        <el-table-column prop="validStatus" label="是否有效" align="center">
+        <el-table-column prop="validStatus" label="是否启用" align="center">
           <template slot-scope="scope">
             <span :style="{ color: scope.row.validStatus == '1' ? '#67c23a' : '#909399' }">{{
               scope.row.validStatus == 1 ? "启用" : "禁用" }}</span>

+ 11 - 7
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesDetail.vue

@@ -4,8 +4,8 @@
     <templateTable ref="templateTable" :formList="formList"  :btnGroup="btnGroup" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
       @findPage="findPage" @getList="findPage" @selectionChange="selectionChange" @handleSearchList="handleSearchList" :pagination="pageData">
     <template slot="批量修改">
-      <el-upload style="display: inline-block;" action="#" :show-file-list="false" class="upload-demo"  :limit="1" :auto-upload="false"
-        :on-change="drivingupload"  ref="upload3"  accept=".png, .jpg, .jpeg" >
+      <el-upload   style="display: inline-block;" action="#" :show-file-list="false" class="upload-demo"  :limit="1" :auto-upload="false"
+        :on-change="drivingupload"  ref="upload1"  accept=".png, .jpg, .jpeg" >
         <el-button size="small" type="primary" :disabled="selectionList.length==0">批量修改</el-button>
       </el-upload>
     </template>
@@ -198,7 +198,7 @@
                 <i v-else class="el-icon-plus avatar-uploader-icon"></i>
               </el-upload>
       <templateTable ref="templateTable1" :tableConfig="tableConfigbatch" :data="batchData" @findPage="findPagegbatch"
-        :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChange" @selectAll="selectAll">
+        :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChangebatch" @selectAll="selectAll">
         <template slot="uploadUrl" slot-scope="scope">
           <span @click="uploadUrlClick(scope.row.uploadUrl)">{{ scope.row.uploadUrl }}</span>
         </template>
@@ -245,6 +245,7 @@ export default {
       InsCompanyList: [],
       year: '',
       selectionList:[],
+      selectionListbatch:[],
       dialogVisible:false,
       formDataId:'',
       formDataList:{},
@@ -614,13 +615,13 @@ export default {
   },
   methods: {
     handleSumbit() {
-    if(!this.selectionList[0].uploadUrl){
+    if(!this.selectionListbatch[0].uploadUrl){
       this.$message.error('请选择有导出路径的数据!')
       return false
     }
     let data = {
       isNotCar: '0',
-      selectIds: this.selectionList.map(e => e.id),
+      selectIds: this.selectionListbatch.map(e => e.id),
       settlementImageId:this.fileListBatchId
     }
     this.$api.task.batchInvoicing(data)
@@ -780,14 +781,17 @@ export default {
           });
     },
     selectionChange(val,ref) {
+      this.selectionList = val;      
+    },
+    selectionChangebatch(val,ref) {
       if(val.length > 1){
           const del_row = val.shift()
           ref.toggleRowSelection(del_row,false) //设置这一行取消选中
         }
-    this.selectionList = val;      
+    this.selectionListbatch = val;      
     },
     drivingupload(file, fileList){
-      this.fileList=[]
+      this.$refs.upload1.clearFiles()
       const params = new FormData(); // 声明formData数据类型
       params.append("multipartFile", file.raw);
       params.append("type", "image");

+ 14 - 3
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryUnsettled.vue

@@ -2,7 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable :formList="formList" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
-      @findPage="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
+      @findPage="findPage" @handleSearchList="handleSearchList"  @resetForm="resetForm" :pagination="pageData">
       <template slot="data">
           <yearMonthYay ref="yearMonthYay" @getYearData="getYearData"  @getMonthData="getMonthData"  @getDayData="getDayData"></yearMonthYay>
       </template>
@@ -139,8 +139,15 @@ export default {
           },
           {
             prop: "invoicingMethod",
-            label: " 开票方式",
-            type: "text"
+            label: "开票方式",
+            type: "statMap",
+            options:[{
+              label: "保司开票",
+              value: "0",
+            }, {
+              label: "掌柜开票",
+              value: "1",
+            }]
           },
           {
             prop: "invoicCommissionFeevalue",
@@ -190,6 +197,10 @@ export default {
     handleSearchList(data) {
       this.findPage(data);
     },
+    resetForm() {
+            this.formData={}
+            this.$refs.yearMonthYay.clear()
+        },
     //列表数据
     findPage(data) {
       this.tableConfig.loading = true;

+ 9 - 6
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/HandlingFees.vue

@@ -321,12 +321,8 @@ export default {
         {
           label: "险种",
           prop: "riskcode",
-          type: "input",
-        },
-        {
-          label: "保司机构",
-          prop: "partnerCompaniesName",
-          type: "input",
+          type: "select",
+          options:[]
         },
 
         {
@@ -681,6 +677,13 @@ export default {
       this.$api.insCompany.dicType(type).then((res) => {
         if (res.code == 200) {
           this[type + "options"] = res.data.ddList;
+          if(type=='InsInsuranceKind'){
+              this.formList.forEach(e=>{
+                if(e.prop=='riskcode'){
+                  e.options=res.data.ddList
+                }
+              }) 
+          }
         }
       });
     },

+ 7 - 3
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/InvoicedAndSettled.vue

@@ -1,8 +1,8 @@
 <template>
     <!--布局容器-->
     <div  style="width: 99%; margin-top: 0px">
-        <templateTable class="invoiceAnd" :formList="formList"  :tableConfig="tableConfig" :data="tableData"
-            @findPage="findPage" @handleSearchList="handleSearchList" :pagination="pageData" @getList="getList">
+        <templateTable class="invoiceAnd" :formList="formList"  :tableConfig="tableConfig" :data="tableData" 
+            @findPage="findPage" @handleSearchList="handleSearchList" @resetForm="resetForm" :pagination="pageData" @getList="getList">
             <template slot="data">
                 <yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData"
                     @getDayData="getDayData"></yearMonthYay>
@@ -421,6 +421,10 @@ export default {
         handleSearchList(data) {
             this.findPage(data);
         },
+        resetForm() {
+            this.formData={}
+            this.$refs.yearMonthYay.clear()
+        },
         //列表数据
         findPage(data) {
             // if (data) {
@@ -447,7 +451,7 @@ export default {
         getList(data) {
             this.findPage(data)
         },
-
+       
         // 结算
         balanceFun(row) {
             this.$api.task

+ 10 - 5
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesDetail.vue

@@ -5,7 +5,7 @@
       @findPage="findPage" @getList="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
       <template slot="批量修改">
       <el-upload style="display: inline-block;" action="#" :show-file-list="false" class="upload-demo"  :limit="1" :auto-upload="false"
-        :on-change="drivingupload"  ref="upload3"  accept=".png, .jpg, .jpeg" >
+        :on-change="drivingupload"  ref="upload1"  accept=".png, .jpg, .jpeg" >
         <el-button size="small" :disabled="selectionList.length==0" type="primary">批量修改</el-button>
       </el-upload>
     </template>
@@ -166,7 +166,7 @@
                 <i v-else class="el-icon-plus avatar-uploader-icon"></i>
               </el-upload>
       <templateTable ref="templateTable1" :tableConfig="tableConfigbatch" :data="batchData" @findPage="findPagegbatch"
-        :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChange" @selectAll="selectAll">
+        :pagination="pageDataPro" @getList="getListgbatch" @selectionChange="selectionChangebatch" @selectAll="selectAll">
         <template slot="uploadUrl" slot-scope="scope">
           <span @click="uploadUrlClick(scope.row.uploadUrl)">{{ scope.row.uploadUrl }}</span>
         </template>
@@ -466,6 +466,7 @@ export default {
         ]
       },
       fileList:[],
+      selectionListbatch:[],
       dialogVisibleprogress:false,
       batchData:[],
       dialogVisibleBatch:false,
@@ -542,13 +543,13 @@ export default {
   },
   methods: {
     handleSumbit() {
-    if(!this.selectionList[0].uploadUrl){
+    if(!this.selectionListbatch[0].uploadUrl){
       this.$message.error('请选择有导出路径的数据!')
       return false
     }
     let data = {
       isNotCar: '1',
-      selectIds: this.selectionList.map(e => e.id),
+      selectIds: this.selectionListbatch.map(e => e.id),
       settlementImageId:this.fileListBatchId
     }
     this.$api.task.batchInvoicing(data)
@@ -718,17 +719,21 @@ drivinguploadBatchs(file, fileList){
           });
     },
     selectionChange(val,ref) {
+      this.selectionList = val;      
+    },
+    selectionChangebatch(val,ref) {
       if(val.length > 1){
           const del_row = val.shift()
           ref.toggleRowSelection(del_row,false) //设置这一行取消选中
         }
-    this.selectionList = val;      
+    this.selectionListbatch = val;      
     },
     selectAll (selection,ref){
           ref.clearSelection()
           return
     },
     drivingupload(file, fileList){
+      this.$refs.upload1.clearFiles()
       const params = new FormData(); // 声明formData数据类型
       params.append("multipartFile", file.raw);
       params.append("type", "image");

+ 13 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryUnsettled.vue

@@ -2,7 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable :formList="formList" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
-      @findPage="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
+      @findPage="findPage" @handleSearchList="handleSearchList"  @resetForm="resetForm" :pagination="pageData">
       <template slot="data">
           <yearMonthYay ref="yearMonthYay" @getYearData="getYearData"  @getMonthData="getMonthData"  @getDayData="getDayData"></yearMonthYay>
       </template>
@@ -140,7 +140,14 @@ export default {
           {
             prop: "invoicingMethod",
             label: " 开票方式",
-            type: "text"
+            type: "statMap",
+            options:[{
+              label: "保司开票",
+              value: "0",
+            }, {
+              label: "掌柜开票",
+              value: "1",
+            }]
           },
           {
             prop: "invoicCommissionFeevalue",
@@ -190,6 +197,10 @@ export default {
     handleSearchList(data) {
       this.findPage(data);
     },
+    resetForm() {
+            this.formData={}
+            this.$refs.yearMonthYay.clear()
+        },
     //列表数据
     findPage(data) {
       this.tableConfig.loading = true;

+ 10 - 6
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/HandlingFees.vue

@@ -265,13 +265,10 @@ export default {
         {
           label: "险种",
           prop: "riskcode",
-          type: "input",
-        },
-        {
-          label: "保司机构",
-          prop: "partnerCompaniesName",
-          type: "input",
+          type: "select",
+          options:[]
         },
+       
         // {
         //   label: "交强保单号",
         //   prop: "policyno",
@@ -641,6 +638,13 @@ export default {
       this.$api.insCompany.dicType(type).then((res) => {
         if (res.code == 200) {
           this[type + "options"] = res.data.ddList;
+          if(type=='InsInsuranceKind'){
+              this.formList.forEach(e=>{
+                if(e.prop=='riskcode'){
+                  e.options=res.data.ddList
+                }
+              }) 
+          }
         }
       });
     },

+ 5 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/InvoicedAndSettled.vue

@@ -2,7 +2,7 @@
     <!--布局容器-->
     <div class="invoiceAnd" style="width: 99%; margin-top: 0px">
         <templateTable :formList="formList" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
-            @findPage="findPage" @handleSearchList="handleSearchList" :pagination="pageData" @getList="getList">
+            @findPage="findPage" @handleSearchList="handleSearchList"  @resetForm="resetForm" :pagination="pageData" @getList="getList">
             <template slot="data">
                 <yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData"
                     @getDayData="getDayData"></yearMonthYay>
@@ -306,6 +306,10 @@ export default {
         handleSearchList(data) {
             this.findPage(data);
         },
+        resetForm() {
+            this.formData={}
+            this.$refs.yearMonthYay.clear()
+        },
         //列表数据
         findPage(data) {
             // if (data) {

+ 6 - 0
src/views/FinancialManagement/CarInsurance/PlatformSettlement/yearMonthYay.vue

@@ -47,6 +47,12 @@ export default {
             const oldestYear = 1900; // 设定最早的年份
             this.yearlist  = Array.from(Array(currentYear - oldestYear + 1).keys()).map(i => currentYear - i);
         },
+        clear(){
+            this.year=''
+            this.month=''
+            this.day=''
+           
+        },
         //获取月份
         changeYear(val){
             let arr = [];