|
|
@@ -3,24 +3,17 @@
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
|
- <t-th><view style="width:150upx;">来源</view></t-th>
|
|
|
- <t-th><view style="width:200upx;">事项</view></t-th>
|
|
|
+ <t-th><view>时间</view></t-th>
|
|
|
+ <t-th><view>登记人</view></t-th>
|
|
|
+ <t-th><view>事项</view></t-th>
|
|
|
<t-th>金额</t-th>
|
|
|
- <t-th>余额</t-th>
|
|
|
- <t-th>可提现</t-th>
|
|
|
</t-tr>
|
|
|
- <view v-for="(item, index) in list.data" :key="index" @click="goDetail(item)">
|
|
|
+ <view v-for="(item, index) in list.data" :key="index">
|
|
|
<t-tr>
|
|
|
- <t-td align="center" color="info">
|
|
|
- <view style="width:150upx;">
|
|
|
- <view>{{ item.addTime.substr(5,11) }}</view>
|
|
|
- <view>{{item.ptStyle==1?'零售':'批发'}}-{{ item.fromType ==1 ? '门店' : item.fromType == 2 ? '商城' : item.fromType ==3 ? '朋友圈' : '其它' }}</view>
|
|
|
- </view>
|
|
|
- </t-td>
|
|
|
- <t-td align="center" color="info"><view style="width:200upx;">{{ item.event }}</view></t-td>
|
|
|
- <t-td align="center" color="info"><view >{{ parseFloat(item.amount) }}</view></t-td>
|
|
|
- <t-td align="center" color="info"><view >{{ parseFloat(item.balance) }}</view></t-td>
|
|
|
- <t-td align="center" color="info"><view >{{ parseFloat(item.txBalance) }}</view></t-td>
|
|
|
+ <t-td align="center" color="info">{{ item.addTime.substr(5,11) }}</t-td>
|
|
|
+ <t-td align="center" color="info">{{item.staffName}}</t-td>
|
|
|
+ <t-td align="center" color="info">{{item.type == 0 ? '店租':item.type==1?'水电':item.type==2?'物业':item.type==3?'伙食':item.type==4?'房租':'其它'}}</t-td>
|
|
|
+ <t-td align="center" color="info">{{item.amount?parseFloat(item.amount):0}}</t-td>
|
|
|
</t-tr>
|
|
|
</view>
|
|
|
</t-table>
|
|
|
@@ -38,7 +31,7 @@
|
|
|
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
-import { changeList } from '@/api/shop-ye-change'
|
|
|
+import { getExpendList } from '@/api/expend'
|
|
|
import list from '@/mixins/list'
|
|
|
export default {
|
|
|
name: "cashList",
|
|
|
@@ -55,21 +48,12 @@ export default {
|
|
|
this.$util.pageTo({url: '/admin/expend/addExpend'})
|
|
|
},
|
|
|
async init(){
|
|
|
- const res = await changeList({
|
|
|
- page:this.list.page,tx:0
|
|
|
- })
|
|
|
+ const res = await getExpendList({ page:this.list.page })
|
|
|
if (this.$util.isEmpty(res.data.list)){
|
|
|
this.completes(res)
|
|
|
return
|
|
|
}
|
|
|
- let currentList = res.data.list
|
|
|
- currentList.forEach(function(item,index,array){
|
|
|
- array[index].amount = item.io ==0 ? '-'+item.amount : '+'+item.amount
|
|
|
- });
|
|
|
- res.data.list = currentList
|
|
|
this.completes(res)
|
|
|
- },
|
|
|
- goDetail(item){
|
|
|
}
|
|
|
},
|
|
|
async onPullDownRefresh() {
|