|
|
@@ -1128,9 +1128,9 @@ export default {
|
|
|
if (!/^[1][3,4,5,7,8,9][0-9]{9}$/.test(this.form.tel)) {
|
|
|
return this.$message.error("请输入正确电话");
|
|
|
}
|
|
|
- if (this.contactsData.length == 0) return this.$message.error("请添加客户联系人");
|
|
|
+ // if (this.contactsData.length == 0) return this.$message.error("请添加客户联系人");
|
|
|
if (this.data.length == 0) return this.$message.error("请添加地址信息");
|
|
|
-
|
|
|
+
|
|
|
if(this.data.filter((item) => item.defaultAddres == 1).length == 0){
|
|
|
this.data[this.data.length - 1].defaultAddres = '1'
|
|
|
}
|