web100 2 år sedan
förälder
incheckning
58df876f02
1 ändrade filer med 10 tillägg och 13 borttagningar
  1. 10 13
      src/views/tirePartsMall/basicData/supplier/detailsPage.vue

+ 10 - 13
src/views/tirePartsMall/basicData/supplier/detailsPage.vue

@@ -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("确定将选择数据删除?", {