Browse Source

bug 修复

lilei 3 years ago
parent
commit
86c536ee8e
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/expenseManagement/expenseReimbursementDetail/list.vue

+ 6 - 1
src/views/expenseManagement/expenseReimbursementDetail/list.vue

@@ -95,6 +95,7 @@
                     allowClear
                     allowClear
                     style="width: 100%;"
                     style="width: 100%;"
                     v-model="queryParam.splitObjType"
                     v-model="queryParam.splitObjType"
+                    @change="splitObjTypeChange"
                     placeholder="请选择承担方类型"
                     placeholder="请选择承担方类型"
                   ></v-select>
                   ></v-select>
                 </a-form-item>
                 </a-form-item>
@@ -104,7 +105,7 @@
                   <!-- 部门 -->
                   <!-- 部门 -->
                   <department v-show="queryParam.splitObjType=='DEPARTMENT'" style="width: 100%;" placeholder="请选择承担方" v-model="queryParam.splitObjSn"></department>
                   <department v-show="queryParam.splitObjType=='DEPARTMENT'" style="width: 100%;" placeholder="请选择承担方" v-model="queryParam.splitObjSn"></department>
                   <!-- 经销商 -->
                   <!-- 经销商 -->
-                  <custList v-show="queryParam.splitObjType=='CUSTOMER'" @change="custChange" placeholder="请选择(输入名称搜索)"></custList>
+                  <custList v-show="queryParam.splitObjType=='CUSTOMER'" ref="custList" @change="custChange" placeholder="请选择(输入名称搜索)"></custList>
                   <a-select style="width: 100%" v-if="!queryParam.splitObjType" placeholder="请选择">
                   <a-select style="width: 100%" v-if="!queryParam.splitObjType" placeholder="请选择">
                     <a-select-option value="" :disabled="true">
                     <a-select-option value="" :disabled="true">
                       请先选择承担方类型
                       请先选择承担方类型
@@ -290,6 +291,10 @@ export default {
         this.queryParam.accountNameSn = v.key
         this.queryParam.accountNameSn = v.key
       }
       }
     },
     },
+    splitObjTypeChange (v) {
+      this.queryParam.splitObjSn = undefined
+      this.$refs.custList.dealerName = []
+    },
     //  导出
     //  导出
     handleExport () {
     handleExport () {
       const _this = this
       const _this = this