|
|
@@ -12,7 +12,7 @@
|
|
|
</tui-list-cell>
|
|
|
<!-- 门店送或快递送需要设置地址 -->
|
|
|
<appAddressGroup :customId="customId" cityTitle="配送城市" @selectAdress="selectAdress" ></appAddressGroup>
|
|
|
- <appSendTime :sendDate.sync="formData.sendDate" :sendTime.sync="formData.sendTime"></appSendTime>
|
|
|
+ <appSendTime @alterTime="selectAdress('')" :sendDate.sync="formData.sendDate" :sendTime.sync="formData.sendTime"></appSendTime>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -105,23 +105,29 @@ export default {
|
|
|
this.formData.sendSide = list[0].id;
|
|
|
},
|
|
|
selectAdress(info) {
|
|
|
- this.formData.receiveProvince = info.province;
|
|
|
- this.formData.receiveCity = info.city;
|
|
|
- this.formData.receiveFloor = info.floor;
|
|
|
- this.formData.receiveAddress = info.address;
|
|
|
- this.formData.receiveLong = info.longitude;
|
|
|
- this.formData.receiveLat = info.latitude;
|
|
|
+ if(info){
|
|
|
+ this.formData.receiveProvince = info.province;
|
|
|
+ this.formData.receiveCity = info.city;
|
|
|
+ this.formData.receiveFloor = info.floor;
|
|
|
+ this.formData.receiveAddress = info.address;
|
|
|
+ this.formData.receiveLong = info.longitude;
|
|
|
+ this.formData.receiveLat = info.latitude;
|
|
|
+ }
|
|
|
+
|
|
|
console.log('this.formData',this.formData)
|
|
|
this.$nextTick(() => {
|
|
|
let params = {
|
|
|
+ id: this.orderid,
|
|
|
customId: this.customId,
|
|
|
- expressId: this.formData.sendSide,
|
|
|
+ province: this.formData.receiveProvince,
|
|
|
city:this.formData.receiveCity,
|
|
|
address:this.formData.receiveAddress,
|
|
|
floor:this.formData.receiveFloor,
|
|
|
- orderId: this.orderid,
|
|
|
+ expressId: this.formData.sendSide,
|
|
|
+ // orderId: this.orderid,
|
|
|
long: this.formData.receiveLong,
|
|
|
lat: this.formData.receiveLat,
|
|
|
+ sendTime: this.formData.sendTime,
|
|
|
};
|
|
|
this.freightCount(params);
|
|
|
});
|