|
|
@@ -118,7 +118,7 @@
|
|
|
</p>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <p class="no-addr">暂无收货地址信息</p>
|
|
|
+ <p class="no-addr">请维护收货地址信息</p>
|
|
|
</template>
|
|
|
</div>
|
|
|
<i class="iconfont icon-xiangyou inline-block"></i>
|
|
|
@@ -472,7 +472,16 @@
|
|
|
getDeliveryRule () {
|
|
|
return !this.selectedAddress.id ? {} : this.$http.post(`/trade/distributionRule/usable/rule?area=${this.selectedAddress.area}`, this.ruleParamsArr)
|
|
|
.then(res => {
|
|
|
- this.fareRule = res.data || {}
|
|
|
+// this.fareRule = res.data || {}
|
|
|
+ this.orderData.forEach(item => {
|
|
|
+ this.fareRule[item.storeid] = [{
|
|
|
+ fare: 0,
|
|
|
+ uuid: item.storeid,
|
|
|
+ ruleName: '卖家配送,全国包邮',
|
|
|
+ method: 1302,
|
|
|
+ currencyName: this.payData.currencyName
|
|
|
+ }]
|
|
|
+ })
|
|
|
this.initFare()
|
|
|
}, err => {
|
|
|
this.setRemindText(err.response.data || '系统错误')
|
|
|
@@ -616,7 +625,7 @@
|
|
|
if (this.addressData && this.addressData.length) {
|
|
|
this.showAddrModal = true
|
|
|
} else {
|
|
|
- this.setRemindText('暂无收货地址,请前往pc端维护')
|
|
|
+ this.setRemindText('暂未设置收货地址,请前往【我】->【收货地址信息】进行维护】')
|
|
|
}
|
|
|
},
|
|
|
// 配送规则校验
|
|
|
@@ -632,7 +641,7 @@
|
|
|
// 收货地址校验
|
|
|
checkAddress () {
|
|
|
if (!this.selectedAddress || !this.selectedAddress.id) {
|
|
|
- this.setRemindText('收货地址信息为空,请前往pc端添加收货地址')
|
|
|
+ this.setRemindText('暂未设置收货地址,请前往【我】->【收货地址信息】进行维护】')
|
|
|
return false
|
|
|
} else if (this.selectedAddress.area.indexOf('香港') > -1) {
|
|
|
if (this.payData.currency === 'RMB') {
|
|
|
@@ -726,11 +735,11 @@
|
|
|
// 1103线下 1102线上
|
|
|
orderInfo.paytype = '1103'
|
|
|
orderInfo.splitInfo = {
|
|
|
- ruleList: JSON.stringify(submitParam.ruleList),
|
|
|
- takeList: JSON.stringify(submitParam.takeList)
|
|
|
+ ruleList: JSON.stringify(submitParam.ruleList)
|
|
|
+// takeList: JSON.stringify(submitParam.takeList)
|
|
|
}
|
|
|
orderInfo.orderDetails = this.convertOrderDetailParams()
|
|
|
- console.log(orderInfo)
|
|
|
+// console.log(orderInfo)
|
|
|
return orderInfo
|
|
|
|
|
|
// 人民币为专用增值税发票,美元不开发票 --1205专用增值税发票 --1206普通发票 --1207不开发票
|
|
|
@@ -745,8 +754,8 @@
|
|
|
remarkObj: {},
|
|
|
// 配送方式
|
|
|
ruleList: {},
|
|
|
- // 自提点
|
|
|
- takeList: {},
|
|
|
+// // 自提点
|
|
|
+// takeList: {},
|
|
|
// 是否包含寄售商品
|
|
|
includeConsignment: false
|
|
|
}
|
|
|
@@ -754,7 +763,7 @@
|
|
|
params.goodsPrice += item.goodsPrice
|
|
|
params.remarkObj[item.storeid] = item.remark
|
|
|
params.ruleList[item.storeid] = item.fare
|
|
|
- params.takeList[item.storeid] = this.checkShowTakeSelf(item) && this.takeSelfData[item.storeid] ? [0] : null
|
|
|
+// params.takeList[item.storeid] = this.checkShowTakeSelf(item) && this.takeSelfData[item.storeid] ? [0] : null
|
|
|
if (item.storeid === '33069557578d44e69bd91ad12d28a8d4') {
|
|
|
params.includeConsignment = true
|
|
|
}
|