|
@@ -336,19 +336,16 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
addressUnique(row, index) {
|
|
|
- console.log(row.defaultAddres);
|
|
|
- for (let item in this.form.addressList) {
|
|
|
- console.log(this.form.addaddressList[item].defaultAddres);
|
|
|
- }
|
|
|
- // for (let item in this.form.addressList) {
|
|
|
- // if (index != item) {
|
|
|
- // if (this.form.addressList[item].defaultAddres == 1) {
|
|
|
- // console.log(1);
|
|
|
- // row.defaultAddres = 0
|
|
|
- // return this.$message.error("已有默认地址请关闭后再选择")
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ console.log(this.form.corpsAddrList);
|
|
|
+ for (let item in this.form.corpsAddrList) {
|
|
|
+ if (index != item) {
|
|
|
+ if (this.form.corpsAddrList[item].defaultAddres == 1) {
|
|
|
+ console.log(1);
|
|
|
+ row.defaultAddres = 0
|
|
|
+ return this.$message.error("已有默认地址请关闭后再选择")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
rowDelBox(row, index, isButton) {
|
|
|
this.$confirm("确定将选择数据删除?", {
|