浏览代码

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;
   }