|
|
@ -10,7 +10,7 @@ |
|
|
|
<view class="rh-name-line"> |
|
|
|
<view> |
|
|
|
<view>微信昵称:</view> |
|
|
|
<text>{{ orderInfo.sys_optuname || '-' }}</text> |
|
|
|
<text>{{ orderInfo.nickname || '-' }}</text> |
|
|
|
</view> |
|
|
|
<view :style="{color:getStatus(orderInfo.pay_status)==='已退款'?'#EA5061':'#9C9C9F'}">{{ getStatus(orderInfo.pay_status) }}</view> |
|
|
|
</view> |
|
|
@ -20,16 +20,16 @@ |
|
|
|
<text>{{ orderInfo.mobile || '-' }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rh-name-line"> |
|
|
|
<!-- <view class="rh-name-line"> |
|
|
|
<view> |
|
|
|
<view>身份:</view> |
|
|
|
<text>{{ orderInfo.sys_optuname || '-' }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="rh-name-line"> |
|
|
|
<view> |
|
|
|
<view>下单途径:</view> |
|
|
|
<text>{{ orderInfo.operator || '-' }}</text> |
|
|
|
<text>{{ orderInfo.retail_source || '-' }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -39,12 +39,12 @@ |
|
|
|
<view class="rgi-goods-ls"> |
|
|
|
<view class="rgl-item" v-for="(e, i) in orderInfo.retail_order_goods" :key="i"> |
|
|
|
<view class="rgl-item-desc"> |
|
|
|
<view>{{ e.name || '-' }}</view> |
|
|
|
<view>¥{{ e.price || 0 }}</view> |
|
|
|
<view>{{ e.erp_retail_goods ? (e.erp_retail_goods.goods_name || '-') : (e.name || '-') }}</view> |
|
|
|
<view>¥{{ e.erp_retail_goods ? (e.erp_retail_goods.erp_goods ? e.erp_retail_goods.erp_goods.erp_goods_price : 0) : 0 }}</view> |
|
|
|
</view> |
|
|
|
<view class="rgl-item-sku">sku:{{ e.sku || '-' }}</view> |
|
|
|
<view class="rgl-item-sku">sku:{{ e.erp_retail_goods ? (e.erp_retail_goods.erp_goods ? e.erp_retail_goods.erp_goods.erp_goods_sku : '-') : '-' }}</view> |
|
|
|
<view class="rgl-item-type-spec"> |
|
|
|
<view>型号:{{ e.unit || '-' }} 规格:{{ e.spec || '-' }}</view> |
|
|
|
<view>型号:{{ e.erp_retail_goods ? (e.erp_retail_goods.erp_goods ? e.erp_retail_goods.erp_goods.erp_goods_type : '-') : '-' }} 规格:{{ e.spec || '-' }}</view> |
|
|
|
<text>x{{ e.nums || 0 }}</text> |
|
|
|
</view> |
|
|
|
<view v-if="orderInfo.retail_order_goods.length - 1 == i ? false : true" class="rgl-item-bottom-line"></view> |
|
|
@ -58,7 +58,7 @@ |
|
|
|
</view> |
|
|
|
<view class="rc-total-amount-line"> |
|
|
|
<view>积分抵扣</view> |
|
|
|
<text>¥{{ orderInfo.deduction_integral || 0 }}</text> |
|
|
|
<text>¥{{ orderInfo.deduction_amount || 0 }}</text> |
|
|
|
</view> |
|
|
|
<view class="rc-total-amount-line"> |
|
|
|
<view>折扣金额</view> |
|
|
@ -74,17 +74,36 @@ |
|
|
|
<!-- 订单编号 --> |
|
|
|
<view class="rpi-tit">支付详情</view> |
|
|
|
<p-line :keyname="'订单编号'" :value="orderInfo.order_no || '-'" isbtn></p-line> |
|
|
|
<p-line :keyname="'支付方式'" :value="payTypeTxt(orderInfo.pay_type, orderInfo.card_no)"></p-line> |
|
|
|
<!-- <p-line :keyname="'支付方式'" :value="payTypeTxt(orderInfo.pay_type, orderInfo.card_no)"></p-line> --> |
|
|
|
<p-line :keyname="'支付方式'" :value="orderInfo.extension ? orderInfo.extension.pay_type_text || '-' : '-'"></p-line> |
|
|
|
<p-line :keyname="'支付时间'" :value="orderInfo.pay_time || '-'"></p-line> |
|
|
|
</view> |
|
|
|
<view v-if="orderInfo.refunds&&orderInfo.refunds.length"> |
|
|
|
<!-- <view v-if="orderInfo.refunds&&orderInfo.refunds.length"> |
|
|
|
<view class="rc-refund-info" v-for="(item, index) in orderInfo.refunds" :key="index"> |
|
|
|
<view class="rpi-tit">退款信息{{ index + 1 }}</view> |
|
|
|
<p-line :keyname="'退款金额:'" :value="item.refund_amount ? '¥' + item.refund_amount : '0'"></p-line> |
|
|
|
<p-line :keyname="'退款金额:'" :value="item.refund_amount ? '¥' + item.refund_amount : '¥0'"></p-line> |
|
|
|
<p-line :keyname="'退款单号:'" :value="item.refund_no || '-'"></p-line> |
|
|
|
<p-line :keyname="'退款时间:'" :value="item.refund_time || '-'"></p-line> |
|
|
|
<p-line :keyname="'退款原因:'" :value="item.refund_reason || '-'"></p-line> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- <view v-if="orderInfo.refund_no"> |
|
|
|
<view class="rc-refund-info"> |
|
|
|
<view class="rpi-tit">退款信息</view> |
|
|
|
<p-line :keyname="'退款金额:'" :value="orderInfo.refund_amount ? '¥' + orderInfo.refund_amount : '¥0'"></p-line> |
|
|
|
<p-line :keyname="'退款单号:'" :value="orderInfo.refund_no || '-'"></p-line> |
|
|
|
<p-line :keyname="'退款时间:'" :value="orderInfo.refund_time || '-'"></p-line> |
|
|
|
<p-line :keyname="'退款原因:'" :value="orderInfo.refund_reason || '商家主动退款'"></p-line> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view v-if="refundList.length"> |
|
|
|
<view class="rc-refund-info" v-for="(item, index) in refundList" :key="index"> |
|
|
|
<view class="rpi-tit">退款信息{{ index + 1 }}</view> |
|
|
|
<p-line :keyname="'退款金额:'" :value="item.refund_amount ? '¥' + item.refund_amount : '¥0'"></p-line> |
|
|
|
<p-line :keyname="'退款单号:'" :value="item.refund_no || '-'"></p-line> |
|
|
|
<p-line :keyname="'退款时间:'" :value="item.refund_time || '-'"></p-line> |
|
|
|
<p-line :keyname="'退款原因:'" :value="item.refund_reason || '商家主动退款'"></p-line> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -95,6 +114,7 @@ import server from '../../../js/server'; |
|
|
|
import util from '../../../../../utils/util'; |
|
|
|
import s_line from '../../../components/s_line/s_line.vue'; |
|
|
|
import p_line from '../../../components/p_line/p_line.vue'; |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
's-line': s_line, |
|
|
@ -102,9 +122,13 @@ export default { |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
orderInfo: {} |
|
|
|
orderInfo: {}, |
|
|
|
refundList: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
...mapState([ 'brandInfo',]) |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
this.getOrderInfo(options.order_no); |
|
|
|
}, |
|
|
@ -131,17 +155,25 @@ export default { |
|
|
|
util.showLoad(); |
|
|
|
server.get({ |
|
|
|
url: ORDER_API.retailOrderInfo, |
|
|
|
data: { order_no }, |
|
|
|
data: { order_no, brand_id: this.brandInfo.brand.id }, |
|
|
|
failMsg: '加载失败!' |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
util.hideLoad(); |
|
|
|
this.orderInfo = res || {}; |
|
|
|
// this.orderInfo.refunds = [ |
|
|
|
// { refund_amount: this.orderInfo.refund_amount, refund_no: this.orderInfo.refund_no, refund_time: this.orderInfo.refund_time, refund_reason: this.orderInfo.refund_reason }, |
|
|
|
// { refund_amount: this.orderInfo.refund_amount, refund_no: this.orderInfo.refund_no, refund_time: this.orderInfo.refund_time, refund_reason: this.orderInfo.refund_reason } |
|
|
|
// ]; |
|
|
|
}) |
|
|
|
server.get({ |
|
|
|
url: ORDER_API.retailOrderInfoRefundList, |
|
|
|
data: { order_no, brand_id: this.brandInfo.brand.id }, |
|
|
|
failMsg: '加载失败!' |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
util.hideLoad(); |
|
|
|
this.refundList = res.list; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|