|
|
@@ -5,12 +5,10 @@
|
|
|
|
|
|
<view class="label">
|
|
|
<text>日期:{{item.addTime.substr(5,11)}}</text>
|
|
|
- <text>单号:{{item.orderSn}}</text>
|
|
|
+ <text>单号:{{item.refundSn}}</text>
|
|
|
<text>操作:{{item.shopAdminName}}</text>
|
|
|
- <text>类型:{{item.book == 1 ? '预订单多退少补' :'普通'}}</text>
|
|
|
-
|
|
|
- <text style="position:absolute;right:-425upx;top:0upx;">{{ item.status==0?'退款中':item.status==1?'已完成':'退款中' }}</text>
|
|
|
-
|
|
|
+ <text>备注:{{item.remark}}</text>
|
|
|
+ <text style="position:absolute;right:-465upx;top:0upx;">{{ item.status==0?'退款中':item.status==1?'已完成':'退款中' }}</text>
|
|
|
</view>
|
|
|
<view class="flex val">¥{{parseFloat(item.refundPrice)}} <view class="iconfont iconxiangyou"></view> </view>
|
|
|
|
|
|
@@ -23,7 +21,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { list } from "@/mixins";
|
|
|
-import { refundList } from "@/api/refund";
|
|
|
+import { getRefundList } from "@/api/cg-refund";
|
|
|
export default {
|
|
|
name: "refundList",
|
|
|
components: {},
|
|
|
@@ -34,13 +32,13 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
|
- this._list().then((res) => {
|
|
|
+ this.getRefundData().then((res) => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (!this.list.finished) {
|
|
|
- this._list().then((res) => {
|
|
|
+ this.getRefundData().then((res) => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
} else {
|
|
|
@@ -53,25 +51,15 @@ export default {
|
|
|
},
|
|
|
onShow() {
|
|
|
this.resetList();
|
|
|
- this._list();
|
|
|
+ this.getRefundData();
|
|
|
},
|
|
|
methods: {
|
|
|
goDetail(item){
|
|
|
- if(item.book == 1){
|
|
|
- this.$msg('预订单多退少补')
|
|
|
- return false
|
|
|
- }
|
|
|
this.$util.pageTo({url: '/pagesPurchase/refundDetail',query: {id: item.id}})
|
|
|
},
|
|
|
- _list() {
|
|
|
- return refundList({
|
|
|
- page: this.list.page,
|
|
|
- orderSn:this.option.orderSn
|
|
|
- }).then((res) => {
|
|
|
- this.completes(res);
|
|
|
- if (this.$util.isEmpty(res.data)){
|
|
|
- return false
|
|
|
- }
|
|
|
+ getRefundData() {
|
|
|
+ return getRefundList({page: this.list.page,relateOrderSn:this.option.orderSn}).then((res) => {
|
|
|
+ this.completes(res)
|
|
|
});
|
|
|
},
|
|
|
},
|