|
|
|
@ -195,6 +195,7 @@ |
|
|
|
pageSize:100, |
|
|
|
statusList:[0,3] |
|
|
|
}, |
|
|
|
type:'worker', |
|
|
|
returnFormData:{}, |
|
|
|
groupOrderIdList:[], |
|
|
|
goodsList:[], |
|
|
|
@ -219,7 +220,10 @@ |
|
|
|
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() |
|
|
|
this.searchCountForm.linkId = uni.getStorageSync('worker').workerId |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad(option) { |
|
|
|
if(option.type){ |
|
|
|
this.type = option.type |
|
|
|
} |
|
|
|
this.getReturnCount() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -242,6 +246,11 @@ |
|
|
|
}, |
|
|
|
getReturnCount(){ |
|
|
|
let that = this |
|
|
|
if(this.type == 'worker'){ |
|
|
|
this.searchCountForm.linkId = uni.getStorageSync('worker').workerId |
|
|
|
}else{ |
|
|
|
this.searchCountForm.linkId = uni.getStorageSync('shopId') |
|
|
|
} |
|
|
|
this.tui.request("/mall/refund/page", "POST", this.searchCountForm, false, false).then((res) => { |
|
|
|
if (res.code == 200 && res.result != null) { |
|
|
|
that.returnCount = res.result.records.length; |
|
|
|
|