Bläddra i källkod

fix(客户管理):删除客户、新建客户并新建联系人bug修复

wanglj 2 år sedan
förälder
incheckning
178681cbec
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 1
      src/views/customer/components/Edit.vue
  2. 2 1
      src/views/customer/list.vue

+ 1 - 1
src/views/customer/components/Edit.vue

@@ -267,7 +267,7 @@
       // 联系人弹窗
       async createContact() {
         const res = await this.customerSave()
-        if (!res) return
+        if (!res || !res.name) return
         this.$emit('createContact', res)
       },
       // 省份改变

+ 2 - 1
src/views/customer/list.vue

@@ -2,7 +2,7 @@
  * @Author: wanglj 471442253@qq.com
  * @Date: 2022-12-26 16:34:37
  * @LastEditors: wanglj
- * @LastEditTime: 2023-02-13 17:46:36
+ * @LastEditTime: 2023-02-28 16:08:54
  * @Description: file content
  * @FilePath: \opms_frontend\src\views\customer\list.vue
 -->
@@ -372,6 +372,7 @@
                 type: 'success',
                 message: '删除成功!',
               })
+              this.fetchData()
             }
           })
           .catch(() => {})