|
@@ -64,18 +64,24 @@ export default defineComponent({
|
|
|
},
|
|
|
methods: {
|
|
|
async getList() {
|
|
|
+ if (this.loading) return
|
|
|
this.loading = true
|
|
|
try {
|
|
|
const params = {
|
|
|
...this.params,
|
|
|
searchDate: dayjs(this.currentDate).format('YYYY-MM')
|
|
|
}
|
|
|
+
|
|
|
const url =
|
|
|
this.type === 'buy'
|
|
|
? '/api-student/userOrder/page'
|
|
|
- : '/api-student/UserOrderRefunds/page'
|
|
|
+ : '/api-student/userOrderRefunds/page'
|
|
|
const { code, data } = await request.post(url, {
|
|
|
- data: params
|
|
|
+ data: {
|
|
|
+ ...params,
|
|
|
+ dateTime: this.type === 'refund' ? params.searchDate : undefined,
|
|
|
+ timeType: this.type === 'refund' ? 'MONTH' : undefined
|
|
|
+ }
|
|
|
})
|
|
|
if (code === 200) {
|
|
|
const result = data || {}
|
|
@@ -230,7 +236,7 @@ export default defineComponent({
|
|
|
value={
|
|
|
this.type === 'buy'
|
|
|
? orderType[item.status]
|
|
|
- : returnType[item.status]
|
|
|
+ : item.operateReason
|
|
|
}
|
|
|
valueClass={styles.tradeType}
|
|
|
/>
|
|
@@ -293,7 +299,7 @@ export default defineComponent({
|
|
|
<ColResult
|
|
|
btnStatus={false}
|
|
|
classImgSize="SMALL"
|
|
|
- tips="暂无购买记录"
|
|
|
+ tips={this.type === 'buy' ? '暂无购买记录' : '暂无退款记录'}
|
|
|
/>
|
|
|
)}
|
|
|
|