@dongkboy 2 лет назад
Родитель
Сommit
0f5b91d7b8

+ 53 - 27
src/views/FinancialManagement/ReconciliationSystem/ReceivablePayableCollection/ReceivablePayableCollection.vue

@@ -49,7 +49,6 @@
             </el-form-item>
           </el-col>
 
-
           <el-col :span="6">
             <el-form-item label="险种">
               <el-input
@@ -91,7 +90,6 @@
             </el-form-item>
           </el-col>
 
-
           <el-col :span="6">
             <el-form-item label="运营团队">
               <el-input
@@ -114,7 +112,11 @@
           </el-col>
           <el-col :span="6">
             <el-form-item label="渠道结算状态">
-              <el-select v-model="pageRequest.clearingState" placeholder="请选择状态" class="widths">
+              <el-select
+                v-model="pageRequest.clearingState"
+                placeholder="请选择状态"
+                class="widths"
+              >
                 <el-option label="未结算" value="0"></el-option>
                 <el-option label="已结算" value="1"></el-option>
               </el-select>
@@ -122,7 +124,11 @@
           </el-col>
           <el-col :span="6">
             <el-form-item label="保司结算状态">
-              <el-select v-model="pageRequest.insuranceClearingState" placeholder="请选择状态" class="widths">
+              <el-select
+                v-model="pageRequest.insuranceClearingState"
+                placeholder="请选择状态"
+                class="widths"
+              >
                 <el-option label="未结算" value="0"></el-option>
                 <el-option label="已结算" value="1"></el-option>
               </el-select>
@@ -235,17 +241,17 @@ export default {
         channel: "", //渠道
         channelClassification: "", //渠道分类
         clearingState: "", //结算状态
-        insuranceClearingState:"",//保司结算状态
-        insuranceDeptId:"",//
+        insuranceClearingState: "", //保司结算状态
+        insuranceDeptId: "", //
         insuranceId: "", //保险公司
         insuredName: "",
         licenseNo: "",
         operationsTeam: "",
-        insuranceType:"",
-        insuranceDept:"",
-        jqPolicyId:"",
-        syPolicyId:"",
-        nonCarPolicyId:"",
+        insuranceType: "",
+        insuranceDept: "",
+        jqPolicyId: "",
+        syPolicyId: "",
+        nonCarPolicyId: "",
       },
       // 右侧列表查询数据Start
       pageResult: [],
@@ -285,7 +291,11 @@ export default {
           label: "非车险应收比例",
           minWidth: 160,
         },
-        { prop: "nonCarPremiumRatio", label: "非车险手续费比例", minWidth: 160 },
+        {
+          prop: "nonCarPremiumRatio",
+          label: "非车险手续费比例",
+          minWidth: 160,
+        },
         {
           prop: "nonCarNonCopyingRatio",
           label: "非车险非跟单比例",
@@ -315,7 +325,11 @@ export default {
         { prop: "totalReceivableAmount", label: "总应收金额", minWidth: 160 },
         { prop: "settlementAmount", label: "结算金额", minWidth: 160 },
         { prop: "clearingState", label: "结算状态", minWidth: 160 },
-        { prop: "insuranceClearingState", label: "保司结算状态", minWidth: 160 },
+        {
+          prop: "insuranceClearingState",
+          label: "保司结算状态",
+          minWidth: 160,
+        },
       ],
       row: {},
       companyList: [],
@@ -327,12 +341,22 @@ export default {
   mounted() {},
   methods: {
     clearingTimeChange(e) {
-      this.pageRequest.agencySettlementTimeStartTime = e[0];
-      this.pageRequest.agencySettlementTimeEndTime = e[1];
+      if (e == null) {
+        this.pageRequest.agencySettlementTimeStartTime = "";
+        this.pageRequest.agencySettlementTimeEndTime = "";
+      } else {
+        this.pageRequest.agencySettlementTimeStartTime = e[0];
+        this.pageRequest.agencySettlementTimeEndTime = e[1];
+      }
     },
     signDateTimeChange(e) {
-      this.pageRequest.signDateStartTime = e[0];
-      this.pageRequest.signDateEndTime = e[1];
+      if (e == null) {
+        this.pageRequest.signDateStartTime = "";
+        this.pageRequest.signDateEndTime = "";
+      } else {
+        this.pageRequest.signDateStartTime = e[0];
+        this.pageRequest.signDateEndTime = e[1];
+      }
     },
     //保险公司查询
     companyInt() {
@@ -394,16 +418,18 @@ export default {
       });
     },
     handlePrint() {
-      this.$api.task.excelReceivableAndSettlementExport(this.pageRequest).then((res) => {
-        let url = process.env.BASE_URL + res.msg;
-        // 4.创建url之后可以模拟对此文件对象的一系列操作,例如:预览、下载
-        let a = document.createElement("a");
-        a.href = url;
-        a.download = "应收应付表.xlsx";
-        a.click();
-        // 5.释放这个临时的对象url
-        window.URL.revokeObjectURL(url);
-      });
+      this.$api.task
+        .excelReceivableAndSettlementExport(this.pageRequest)
+        .then((res) => {
+          let url = process.env.BASE_URL + res.msg;
+          // 4.创建url之后可以模拟对此文件对象的一系列操作,例如:预览、下载
+          let a = document.createElement("a");
+          a.href = url;
+          a.download = "应收应付表.xlsx";
+          a.click();
+          // 5.释放这个临时的对象url
+          window.URL.revokeObjectURL(url);
+        });
     },
     //联级选择器触发事件
     handleChange(val) {

+ 11 - 2
src/views/FinancialManagement/ReconciliationSystem/ReceivablePayableCollection/SettlementSource.vue

@@ -367,10 +367,19 @@ export default {
   mounted() {},
   methods: {
     signDateChange(e) {
-      this.pageRequest.signDate = e.toString();
+      if (e == null) {
+        this.pageRequest.signDate = "";
+      }else{
+        this.pageRequest.signDate = e.toString();
+      }
     },
     agencySettlementTimeChange(e){
-      this.pageRequest.agencySettlementTime = e.toString();
+      if (e == null) {
+        this.pageRequest.agencySettlementTime = "";
+
+      }else{
+        this.pageRequest.agencySettlementTime = e.toString();
+      }
 
     },
     //保险公司查询

+ 16 - 9
src/views/FinancialManagement/ReconciliationSystem/ReceivablePayableCollection/Source.vue

@@ -138,7 +138,6 @@
               ></el-input>
             </el-form-item>
           </el-col>
-
         </el-row>
       </el-form>
       <div class="flex j-end" style="margin-right: 100px">
@@ -324,7 +323,7 @@ export default {
         syPolicyId: "", //商业保单号
         nonCarPolicyId: "", //非车保单号
         insuranceClearingState: "",
-        insuranceDept:"",//保司机构
+        insuranceDept: "", //保司机构
       },
       dialogUpdateVisible: false,
       dialogFormVisible: false,
@@ -425,10 +424,18 @@ export default {
   mounted() {},
   methods: {
     clearingTimeChange(e) {
-      this.pageRequest.clearingTime = e.toString();
+      if (e == null) {
+        this.pageRequest.clearingTime = "";
+      } else {
+        this.pageRequest.clearingTime = e.toString();
+      }
     },
     signingTimeChange(e) {
-      this.pageRequest.signingTime = e.toString();
+      if (e == null) {
+        this.pageRequest.signingTime = "";
+      } else {
+        this.pageRequest.signingTime = e.toString();
+      }
     },
     //保险公司查询
     companyInt() {
@@ -493,15 +500,15 @@ export default {
     },
     //批量修改
     handleTableSettled(ids) {
-      console.log(ids)
+      console.log(ids);
       this.UpdateList = ids;
       this.dialogUpdateVisible = true;
     },
     BulkUpdate() {
-      let params={
-        ids:this.UpdateList,
-        insuranceClearingState:this.insuranceClearingState,
-      }
+      let params = {
+        ids: this.UpdateList,
+        insuranceClearingState: this.insuranceClearingState,
+      };
       this.$api.task.sourceUpdates(params).then((res) => {
         if (res.code == "200") {
           this.$message({