|
|
@@ -3,23 +3,29 @@
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
|
- <t-th v-for="(item, index) in columns" :key="index" :align="item.align">
|
|
|
- {{ item.name }}
|
|
|
- </t-th>
|
|
|
+ <t-th><view style="width:150upx;">申请时间</view></t-th>
|
|
|
+ <t-th>到账时间</t-th>
|
|
|
+ <t-th>提现</t-th>
|
|
|
+ <t-th>实到</t-th>
|
|
|
+ <t-th>状态</t-th>
|
|
|
</t-tr>
|
|
|
<t-tr v-for="(item, index) in list.data" :key="index">
|
|
|
- <t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color" >
|
|
|
- <view>
|
|
|
- {{ item[column.dataIndex] || "" }}
|
|
|
+ <t-td>
|
|
|
+ <view style="width:150upx;">
|
|
|
+ <view>{{item.addTime.substr(5,11)}}</view>
|
|
|
+ <view>{{item.ptStyle==1?'零售':'批发'}}</view>
|
|
|
</view>
|
|
|
- </t-td>
|
|
|
+ </t-td>
|
|
|
+ <t-td> <view>{{item.updateTime.substr(5,11)}}</view> </t-td>
|
|
|
+ <t-td> <view>{{item.amount}}</view> </t-td>
|
|
|
+ <t-td> <view>{{item.beAmount}}</view> </t-td>
|
|
|
+ <t-td> <view>{{item.status==1?'处理中':item.status==2?'已提现':'失败'}}</view> </t-td>
|
|
|
</t-tr>
|
|
|
</t-table>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
</block>
|
|
|
- <!-- <kd-entrance></kd-entrance> -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -28,58 +34,26 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import { withdrawCashList } from '@/api/store'
|
|
|
import list from '@/mixins/list'
|
|
|
export default {
|
|
|
- name: "withDraw", //提现记录
|
|
|
+ name: "withDraw",
|
|
|
components: {
|
|
|
AppWrapperEmpty
|
|
|
},
|
|
|
mixins:[list],
|
|
|
data() {
|
|
|
return {
|
|
|
- columns: [
|
|
|
- {
|
|
|
- name: "时间",
|
|
|
- dataIndex: "addTime",
|
|
|
- color: "info",
|
|
|
- align: "center"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "提现",
|
|
|
- dataIndex: "amount",
|
|
|
- color: "info",
|
|
|
- align: "center"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "实收",
|
|
|
- dataIndex: "beAmount",
|
|
|
- color: "info",
|
|
|
- align: "center"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "状态",
|
|
|
- dataIndex: "statusText",
|
|
|
- color: "info",
|
|
|
- align: "center"
|
|
|
- }
|
|
|
- ],
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
async init(){
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中'
|
|
|
- });
|
|
|
- try {
|
|
|
+ uni.showLoading({ title: '加载中' })
|
|
|
+ try {
|
|
|
const res = await withdrawCashList({
|
|
|
page:this.list.page
|
|
|
})
|
|
|
- res.data.list = res.data.list.map(i=>({
|
|
|
- ...i,
|
|
|
- statusText: i.status ==1?'待处理':i.status ==2?'已完成':'未通过'
|
|
|
- }))
|
|
|
- this.completes(res)
|
|
|
- } finally {
|
|
|
- uni.hideLoading();
|
|
|
- }
|
|
|
+ this.completes(res)
|
|
|
+ } finally {
|
|
|
+ uni.hideLoading();
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
async onPullDownRefresh() {
|