|
@@ -1,3 +1,6 @@
|
|
|
|
|
+<!--
|
|
|
|
|
+ 上游采购售后详情:展示退款信息;sameDay=0 时显示「隔天售后」(对齐销售侧)
|
|
|
|
|
+-->
|
|
|
<template>
|
|
<template>
|
|
|
<view class="app-content">
|
|
<view class="app-content">
|
|
|
<view class="flex refund-item">
|
|
<view class="flex refund-item">
|
|
@@ -20,6 +23,12 @@
|
|
|
<view class="refund-label"><text></text>退款金额:</view>
|
|
<view class="refund-label"><text></text>退款金额:</view>
|
|
|
<view class="list">¥{{refundPrice}}</view>
|
|
<view class="list">¥{{refundPrice}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- 仅隔天展示,与销售侧 refundDetail「售后类型」一致 -->
|
|
|
|
|
+ <view class="flex refund-item" v-if="isNextDayRefund">
|
|
|
|
|
+ <view class="refund-label">售后类型:</view>
|
|
|
|
|
+ <!-- 与列表页隔天售后同色 #e67e22 -->
|
|
|
|
|
+ <view class="list" style="color:#e67e22;font-weight:bold;">隔天售后</view>
|
|
|
|
|
+ </view>
|
|
|
<view class=" refund-item" v-if="!$util.isEmpty(remark)">
|
|
<view class=" refund-item" v-if="!$util.isEmpty(remark)">
|
|
|
<view class="refund-label" style="color:red;font-weight:bold;">备注信息:</view>
|
|
<view class="refund-label" style="color:red;font-weight:bold;">备注信息:</view>
|
|
|
<view class="list" style="color:red;font-weight:bold;">{{remark}}</view>
|
|
<view class="list" style="color:red;font-weight:bold;">{{remark}}</view>
|
|
@@ -34,18 +43,28 @@ export default {
|
|
|
product:'',
|
|
product:'',
|
|
|
refundPrice:0,
|
|
refundPrice:0,
|
|
|
refundType:1,
|
|
refundType:1,
|
|
|
- remark:''
|
|
|
|
|
|
|
+ remark:'',
|
|
|
|
|
+ sameDay: 1
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ /** sameDay=0 为隔天售后 */
|
|
|
|
|
+ isNextDayRefund() {
|
|
|
|
|
+ return Number(this.sameDay) === 0
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
onShow() {
|
|
onShow() {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init() {
|
|
init() {
|
|
|
getRefundFullInfo({ id: this.option.id }).then(res=>{
|
|
getRefundFullInfo({ id: this.option.id }).then(res=>{
|
|
|
this.product = res.data.itemList||[];
|
|
this.product = res.data.itemList||[];
|
|
|
- this.refundType = res.data.info.refundType||0;
|
|
|
|
|
- this.refundPrice = res.data.info.refundPrice?parseFloat(res.data.info.refundPrice):0
|
|
|
|
|
- this.remark = res.data.info.remark?res.data.info.remark:''
|
|
|
|
|
|
|
+ const info = res.data.info || {}
|
|
|
|
|
+ this.refundType = info.refundType||0;
|
|
|
|
|
+ this.refundPrice = info.refundPrice?parseFloat(info.refundPrice):0
|
|
|
|
|
+ this.remark = info.remark?info.remark:''
|
|
|
|
|
+ // 缺省按当天,避免历史单无字段时误标隔天
|
|
|
|
|
+ this.sameDay = info.sameDay != null ? info.sameDay : 1
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
@@ -128,4 +147,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|