Ver Fonte

修改客户新增必填提示

hurx há 3 dias atrás
pai
commit
a5f6a96f26
1 ficheiros alterados com 9 adições e 0 exclusões
  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();