|
@@ -1,14 +1,14 @@
|
|
|
<template>
|
|
<template>
|
|
|
<app-pull-refresh ref="pullRefreshRef" v-model:error="error" v-model:pageIndex="pageIndex" :page-count="pageCount"
|
|
<app-pull-refresh ref="pullRefreshRef" v-model:error="error" v-model:pageIndex="pageIndex" :page-count="pageCount"
|
|
|
- @refresh="onRefresh" disabled>
|
|
|
|
|
|
|
+ @refresh="onRefresh" disabled style="height:auto">
|
|
|
<app-list :columns="columns" :data-list="dataList" v-if="dataList.length" @click="onClick">
|
|
<app-list :columns="columns" :data-list="dataList" v-if="dataList.length" @click="onClick">
|
|
|
<!-- 日期 -->
|
|
<!-- 日期 -->
|
|
|
- <template #profitmonth="{ value}">
|
|
|
|
|
|
|
+ <template #profitmonth="{ value }">
|
|
|
{{ formatDate(value, 'YYYY-MM') }}
|
|
{{ formatDate(value, 'YYYY-MM') }}
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
|
- <template #operate="{row}">
|
|
|
|
|
- <Button type="primary" size="mini" @click="submit(row)">申请支取</Button>
|
|
|
|
|
|
|
+ <template #operate="{ row }">
|
|
|
|
|
+ <Button type="primary" size="mini" @click.stop="submit(row)">申请支取</Button>
|
|
|
</template>
|
|
</template>
|
|
|
</app-list>
|
|
</app-list>
|
|
|
<Empty v-if="!dataList.length"></Empty>
|
|
<Empty v-if="!dataList.length"></Empty>
|
|
@@ -43,7 +43,7 @@ const error = shallowRef(false)
|
|
|
const pullRefreshRef = shallowRef()
|
|
const pullRefreshRef = shallowRef()
|
|
|
|
|
|
|
|
const columns = computed<Model.TableColumn[]>(() => {
|
|
const columns = computed<Model.TableColumn[]>(() => {
|
|
|
- const result=[
|
|
|
|
|
|
|
+ const result = [
|
|
|
{ prop: 'profitmonth', label: '时间' },
|
|
{ prop: 'profitmonth', label: '时间' },
|
|
|
{ prop: 'sumamount', label: '金额' },
|
|
{ prop: 'sumamount', label: '金额' },
|
|
|
]
|
|
]
|
|
@@ -81,7 +81,7 @@ const submit = (item: Model.THJPromotionIncomeRsp) => {
|
|
|
onSubmit(item.profitmonth, item.sumamount).then(() => {
|
|
onSubmit(item.profitmonth, item.sumamount).then(() => {
|
|
|
hideLoading()
|
|
hideLoading()
|
|
|
dialog('请求成功,请耐心等待审核。').then(() => {
|
|
dialog('请求成功,请耐心等待审核。').then(() => {
|
|
|
- router.back()
|
|
|
|
|
|
|
+ pullRefreshRef.value?.refresh()
|
|
|
})
|
|
})
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
Toast.fail(err)
|
|
Toast.fail(err)
|
|
@@ -93,44 +93,4 @@ const submit = (item: Model.THJPromotionIncomeRsp) => {
|
|
|
watch(() => props.status, () => {
|
|
watch(() => props.status, () => {
|
|
|
pullRefreshRef.value?.refresh()
|
|
pullRefreshRef.value?.refresh()
|
|
|
})
|
|
})
|
|
|
-</script>
|
|
|
|
|
-
|
|
|
|
|
-<style lang="less">
|
|
|
|
|
-.promotion {
|
|
|
|
|
- &__container {
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- overflow-y: auto;
|
|
|
|
|
-
|
|
|
|
|
- .list {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
-
|
|
|
|
|
- &-row {
|
|
|
|
|
- font-size: .32rem;
|
|
|
|
|
- border-bottom: 1px solid #eee;
|
|
|
|
|
- padding: .12rem .32rem;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &-column {
|
|
|
|
|
- flex: 1;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
-
|
|
|
|
|
- &:first-child {
|
|
|
|
|
- text-align: left;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &:last-child {
|
|
|
|
|
- text-align: right;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- span:last-child {
|
|
|
|
|
- color: #999;
|
|
|
|
|
- font-size: .24rem;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</script>
|