|
|
@@ -36,7 +36,7 @@
|
|
|
class="el-button--small-yh"
|
|
|
:type="form.enableOrNot == 0 ? 'primary' : ''"
|
|
|
size="small"
|
|
|
- v-if="form.id"
|
|
|
+ v-if="form.checkStatus=='审核通过'"
|
|
|
@click="editEnable"
|
|
|
>
|
|
|
{{ form.enableOrNot == 0 ? "启用" : "禁用" }}
|
|
|
@@ -414,6 +414,7 @@ export default {
|
|
|
corpTypeVisible: false,
|
|
|
loadingBtn: false,
|
|
|
form: {
|
|
|
+ enableOrNot:0,
|
|
|
ifLimitAmount: "0",
|
|
|
},
|
|
|
form4: {},
|
|
|
@@ -956,7 +957,7 @@ export default {
|
|
|
type: "success",
|
|
|
message: data.enableOrNot ? "禁用成功!" : "启用成功!",
|
|
|
});
|
|
|
- this.getDetail(this.detailData.id);
|
|
|
+ this.getDetail(this.form.id);
|
|
|
// this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
|
|
|
});
|
|
|
},
|
|
|
@@ -964,7 +965,7 @@ export default {
|
|
|
for (let item in this.data) {
|
|
|
if (index != item) {
|
|
|
if (this.data[item].defaultAddres == 1) {
|
|
|
- this.$message.warning("开启默认地址");
|
|
|
+ this.$message.warning("已设置默认地址");
|
|
|
return (row.defaultAddres = 0);
|
|
|
}
|
|
|
}
|
|
|
@@ -1129,6 +1130,10 @@ export default {
|
|
|
}
|
|
|
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'
|
|
|
+ }
|
|
|
for (let item of this.data) {
|
|
|
if (!/^[1][3,4,5,7,8,9][0-9]{9}$/.test(item.tel)) {
|
|
|
return this.$message.error("地址信息:请输入正确电话");
|