wjj il y a 1 semaine
Parent
commit
331017a5d4
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6 3
      src/views/qw/companyCustomer/index.vue

+ 6 - 3
src/views/qw/companyCustomer/index.vue

@@ -1179,9 +1179,9 @@ export default {
     // 收货地址联动校验
     const validateAddress = (rule, value, callback) => {
       if (
-        !this.createOrderForm.provinceId ||
-        !this.createOrderForm.cityId ||
-        !this.createOrderForm.districtId
+        !this.createOrderForm.province ||
+        !this.createOrderForm.city ||
+        !this.createOrderForm.district
       ) {
         callback(new Error("请完整选择省/市/区"));
       } else if (!this.createOrderForm.detail) {
@@ -1390,6 +1390,7 @@ export default {
           this.createOrderForm.district = selectedNode.pathLabels[2];
         }
       }
+      console.log(this.createOrderForm)
     },
     sAddress(row) {
       getAddress(row.address)
@@ -1531,6 +1532,8 @@ export default {
             district: this.createOrderForm.district,
             totalAmount: this.totalMoney,
           };
+          console.log("params", params);
+          return;
           createUserOrder(params)
             .then((response) => {
               if (response.code === 200) {