添加无货

main
fanfan 1 year ago
parent 6d90d8e1bc
commit c4afe65700
  1. 15
      pages/sureOrder/index.vue

@ -441,7 +441,7 @@
setting: {}, setting: {},
timer: "", timer: "",
distance_unit: "", distance_unit: "",
stockValue: '货', stockValue: '货',
addressResult: { addressResult: {
province: '江苏省', province: '江苏省',
city: '南京市', city: '南京市',
@ -494,16 +494,21 @@
num: item.total_num num: item.total_num
}) })
}); });
that.addressResult.province = order.address ? order.address.region.province : '江苏省' if(that.curDelivery == DeliveryTypeEnum.EXTRACT.value){
that.addressResult.city = order.address ? order.address.region.city : '南京市' that.addressResult.province = order.extractShop ? order.extractShop.region.province : '江苏省'
that.addressResult.district = order.address ? order.address.region.region : '玄武区' that.addressResult.city = order.extractShop ? order.extractShop.region.city : '南京市'
that.addressResult.district = order.extractShop ? order.extractShop.region.region : '玄武区'
}else{
that.addressResult.province = order.address ? order.address.region.province : '江苏省'
that.addressResult.city = order.address ? order.address.region.city : '南京市'
that.addressResult.district = order.address ? order.address.region.region : '玄武区'
}
let params = { let params = {
list: list, list: list,
province: this.addressResult.province, province: this.addressResult.province,
city: this.addressResult.city, city: this.addressResult.city,
district: this.addressResult.district district: this.addressResult.district
} }
console.log(params)
let { let {
status, status,
message, message,

Loading…
Cancel
Save