Browse Source

修改客户新增必填提示

hurx 3 days ago
parent
commit
a5f6a96f26
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/views/customer/customerFile/customerInfo/add.vue

+ 9 - 0
src/views/customer/customerFile/customerInfo/add.vue

@@ -969,6 +969,15 @@ const handleSubmit = async () => {
       return;
     }
 
+    if (!salesForm.salesPersonId) {
+      ElMessage.warning('请选择业务人员!');
+      return;
+    }
+    if (!salesForm.serviceStaffId) {
+      ElMessage.warning('请选择客服人员!');
+      return;
+    }
+
     // 2. 表单字段校验
     await formRef.value?.validate();
     await salesFormRef.value?.validate();