|
@@ -73,20 +73,23 @@ async function handleSubmitForm() {
|
|
|
await formRef.value.validate();
|
|
|
const { RealName, CompanyId, UserId, areaCode, Mobile } = formData.value;
|
|
|
|
|
|
- // 新增用户时进行校验
|
|
|
- const checkRes = await apiCustomerUser.userAddCheck({
|
|
|
- AreaCode: areaCode,
|
|
|
- Mobile,
|
|
|
- })
|
|
|
- if (checkRes.Ret !== 200) return
|
|
|
- if (checkRes.Data.CheckResult !== 0) {
|
|
|
- ElMessageBox.confirm(checkRes.Data.Tips,'操作提示',{
|
|
|
- autofocus:false,
|
|
|
- }).then(()=>{
|
|
|
- }).catch(()=>{})
|
|
|
- return
|
|
|
+ if (props.contactTatle === '添加联系人') {
|
|
|
+ // 新增用户时进行校验
|
|
|
+ const checkRes = await apiCustomerUser.userAddCheck({
|
|
|
+ AreaCode: areaCode,
|
|
|
+ Mobile,
|
|
|
+ })
|
|
|
+ if (checkRes.Ret !== 200) return
|
|
|
+ if (checkRes.Data.CheckResult !== 0) {
|
|
|
+ ElMessageBox.confirm(checkRes.Data.Tips,'操作提示',{
|
|
|
+ autofocus:false,
|
|
|
+ }).then(()=>{
|
|
|
+ }).catch(()=>{})
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
const params = {
|
|
|
RealName,
|
|
|
CompanyId,
|