Browse Source

费用起止期筛选

yaoyao 1 year ago
parent
commit
dfe2b32e57
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/views/AgreementManage/CarInsurance/ProductCostExamine.vue

+ 13 - 0
src/views/AgreementManage/CarInsurance/ProductCostExamine.vue

@@ -40,6 +40,11 @@
           default-first-option placeholder="费用描述">
         </el-select>
       </el-form-item>
+      <el-form-item label="费用起止期">
+        <el-date-picker value-format="yyyy-MM-dd" v-model="date1" size="small" type="daterange" align="left"
+          range-separator="至" start-placeholder="费用起期" end-placeholder="费用止期">
+        </el-date-picker>
+      </el-form-item>
       <el-form-item>
         <el-button type="primary" @click="costQuery">查询</el-button>
       </el-form-item>
@@ -271,6 +276,7 @@ export default {
   data() {
     return {
       date: "",
+      date1: "",
       reject: "",
       productpageRequest: {
         createStartTime: "",
@@ -668,6 +674,13 @@ export default {
         this.productpageRequest.createStartTime = "";
         this.productpageRequest.createEndTime = "";
       }
+      if (this.date1 != null) {
+        this.productpageRequest.costStartDate = this.date1[0];
+        this.productpageRequest.costsEndDate = this.date1[1];
+      } else {
+        this.productpageRequest.costStartDate = "";
+        this.productpageRequest.costsEndDate = "";
+      }
       this.$api.insCompany
         .getCostsAuditList(this.productpageRequest)
         .then((res) => {