liujd 6 лет назад
Родитель
Сommit
3b17682656
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      admin-update/src/views/order/components/sel-order.vue

+ 6 - 4
admin-update/src/views/order/components/sel-order.vue

@@ -288,9 +288,9 @@
 									style="width: 100%"
 								></el-cascader>
 							</el-form-item>
-							<el-form-item label="详细地址" prop="receiveFullAddress">
+							<el-form-item label="详细地址" prop="receiveAddress">
 								<el-autocomplete
-									v-model="orderForm.receiveFullAddress"
+									v-model="orderForm.receiveAddress"
 									:fetch-suggestions="querySearchAsync"
 									placeholder="请输入内容"
 									@select="addressFn"
@@ -663,7 +663,7 @@ export default {
 				this.addressArr = [shopProvince, shopCity];
 				this.orderForm.receiveProvince = shopProvince;
 				this.orderForm.receiveCity = shopCity;
-				this.orderForm.receiveAddress = shopProvince + shopCity;
+				// this.orderForm.receiveAddress = shopProvince + shopCity;
 				this.orderForm.latitude = res.shop.shopLat || 0;
 				this.orderForm.longitude = res.shop.shopLong || 0;
 			});
@@ -694,16 +694,18 @@ export default {
 				.then(res => {
 					let newArr = res.data;
 					newArr = newArr.map(e => {
-						e.value = e.address;
+						e.value = e.title;
 						return e;
 					});
 					cb(newArr);
 				});
 		},
 		addressFn(item) {
+			console.log('江总', item)
 			this.orderForm.latitude = item.location.lat;
 			this.orderForm.longitude = item.location.lng;
 			this.orderForm.receiveAddress = item.title;
+			this.orderForm.receiveFullAddress = item.address
 		},
 		submitOrderFn() {
 			this.$service.order