浏览代码

帮机构下单

zhengjinyi 1 年之前
父节点
当前提交
0b1ada6087

+ 3 - 3
src/main/resources/static/js/supplier-center/order/order-create.js

@@ -157,13 +157,13 @@ const seeDetail = new Vue({
                 }
             });
         },
-        getTownList(parentId){
+        getTownList(cityId){
             const _this = this;
             this.townList = [];
             this.addressForm.townId = '';
             this.confirmParam.cityId = this.prosParams.cityId = this.addressForm.cityId
-            console.log('cityId',this.confirmParam.cityId)
-            OrderApi.GetAddressSelect({parentId: parentId,type:2},function(res){
+            console.log('cityId',cityId)
+            OrderApi.GetAddressSelect({parentId: cityId,type:2},function(res){
                 if(res.code === 0 && res.data){
                     _this.townList = res.data;
                 }else{

+ 2 - 2
src/main/resources/templates/supplier-center/order/order-create.html

@@ -50,7 +50,7 @@
                 </el-col>
                 <el-col :span="6">
                   <el-form-item label="" prop="cityId" :rules="rules.cityId" label-position="false" label-width="0px">
-                    <el-select v-model="addressForm.cityId" clearable @change="getTownList(addressForm.provinceId)">
+                    <el-select v-model="addressForm.cityId" clearable @change="getTownList(addressForm.cityId)">
                       <el-option value="" label="请选择"></el-option>
                       <el-option v-for="(item, index) in cityList" :key="index" :label="item.name" :value="item.id"></el-option>
                     </el-select>
@@ -94,7 +94,7 @@
                 </el-col>
                 <el-col :span="8">
                   <el-form-item label="市:" prop="cityId" :rules="rules.cityId" label-position="top">
-                    <el-select v-model="addressForm.cityId" clearable @change="getTownList(addressForm.provinceId)">
+                    <el-select v-model="addressForm.cityId" clearable @change="getTownList(addressForm.cityId)">
                       <el-option value="" label="请选择"></el-option>
                       <el-option v-for="(item, index) in cityList" :key="index" :label="item.name" :value="item.id"></el-option>
                     </el-select>