فهرست منبع

fix(customer): 修复新增联系人时的验证逻辑

- 移除对 supplierNo 的检查条件
- 仅保留对 detailData.id 的验证
- 确保在供应商基本信息未保存时不执行新增联系人操作
肖路 1 هفته پیش
والد
کامیت
caa457087a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/views/customer/info/detail.vue

+ 1 - 1
src/views/customer/info/detail.vue

@@ -1552,7 +1552,7 @@ const handleContactReset = () => {
 
 /** 新增联系人 */
 const handleAddContact = () => {
-  if (!detailData.value.id || !detailData.value.supplierNo) {
+  if (!detailData.value.id ) {
     ElMessage.warning('请先保存供应商基本信息后再新增联系人信息');
     return;
   }