chenrui 4 سال پیش
والد
کامیت
df09ec9e91
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      src/views/common/custList.vue
  2. 1 1
      src/views/financialManagement/inventoryReview/list.vue

+ 2 - 1
src/views/common/custList.vue

@@ -9,6 +9,7 @@
     :not-found-content="fetching ? undefined : null"
     @search="fetchUser"
     @change="handleChange"
+    allowClear
   >
     <a-spin v-if="fetching" slot="notFoundContent" size="small" />
     <a-select-option v-for="item in data" :key="item.dealerSn" :value="item.dealerSn">
@@ -53,7 +54,7 @@ export default {
         data: [],
         fetching: false
       })
-      this.$emit('change', value)
+      this.$emit('change', value || { key: undefined })
     },
     resetForm () {
       this.dealerName = []

+ 1 - 1
src/views/financialManagement/inventoryReview/list.vue

@@ -11,7 +11,7 @@
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-item label="盘点审核时间">
-              <a-range-picker v-model="queryParam.creatDate" id="inventoryReviewList-creatDate"/>
+              <a-range-picker v-model="queryParam.creatDate" allowClear id="inventoryReviewList-creatDate"/>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">