Răsfoiți Sursa

协议修改

@dongkboy 2 ani în urmă
părinte
comite
508a8cdce0
1 a modificat fișierele cu 10 adăugiri și 17 ștergeri
  1. 10 17
      src/views/AgreementManage/CarInsurance/AgreementProductFee.vue

+ 10 - 17
src/views/AgreementManage/CarInsurance/AgreementProductFee.vue

@@ -369,8 +369,6 @@
     </el-dialog>
     </el-dialog>
     <el-dialog title="批量操作" :visible.sync="batchdialogVisible" width="30%">
     <el-dialog title="批量操作" :visible.sync="batchdialogVisible" width="30%">
       <div class="tab-panestyle">
       <div class="tab-panestyle">
-
-
         <el-form :inline="true" :model="batchUpdateForm" class="demo-form-inline  tab-panecent" style="padding: 20px;">
         <el-form :inline="true" :model="batchUpdateForm" class="demo-form-inline  tab-panecent" style="padding: 20px;">
           <el-form-item label="费用起期:">
           <el-form-item label="费用起期:">
             <el-date-picker size="small" style="width: 300px" v-model="batchUpdateForm.costsStartDate" type="datetime"
             <el-date-picker size="small" style="width: 300px" v-model="batchUpdateForm.costsStartDate" type="datetime"
@@ -1411,19 +1409,14 @@ export default {
     checkStartDate1() {
     checkStartDate1() {
       let tempStartDate = this.batchUpdateForm.costsStartDate;
       let tempStartDate = this.batchUpdateForm.costsStartDate;
       let tempEndDate = this.batchUpdateForm.costsEndDate;
       let tempEndDate = this.batchUpdateForm.costsEndDate;
-      if (!tempStartDate) {
-        this.batchUpdateForm.costsEndDate = null;
-        this.$message({
-          message: "请先选择费用起期!",
-          type: "error",
-        });
-      }
-      if (!this.validateEndDate(tempStartDate, tempEndDate)) {
-        this.batchUpdateForm.costsEndDate = null;
-        this.$message({
-          message: "费用止期不能小于/等于费用起期!",
-          type: "error",
-        });
+      if (tempStartDate && tempEndDate) {
+        if (!this.validateEndDate(tempStartDate, tempEndDate)) {
+          this.batchUpdateForm.costsEndDate = null;
+          this.$message({
+            message: "费用止期不能小于/等于费用起期!",
+            type: "error",
+          });
+        }
       }
       }
     },
     },
     //产品批量编辑
     //产品批量编辑
@@ -1496,8 +1489,8 @@ export default {
         this.productpageRequest.pageNum = data.pageRequest.pageNum;
         this.productpageRequest.pageNum = data.pageRequest.pageNum;
         this.productpageRequest.pageSize = data.pageRequest.pageSize;
         this.productpageRequest.pageSize = data.pageRequest.pageSize;
       } else {
       } else {
-        this.productpageRequest.pageNum = 1;
-        this.productpageRequest.pageSize = 20;
+        // this.productpageRequest.pageNum = 1;
+        // this.productpageRequest.pageSize = 20;
       }
       }
       this.$api.insCompany
       this.$api.insCompany
         .productCostQuery(this.productpageRequest)
         .productCostQuery(this.productpageRequest)