|
@@ -3,16 +3,16 @@
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
<t-tr header>
|
|
|
- <t-th>事项</t-th>
|
|
|
|
|
- <t-th>金额</t-th>
|
|
|
|
|
- <t-th>可提现余额</t-th>
|
|
|
|
|
- <t-th>总余额</t-th>
|
|
|
|
|
|
|
+ <t-th>日期</t-th>
|
|
|
|
|
+ <t-th><view style="width:230upx;">事项</view></t-th>
|
|
|
|
|
+ <t-th>变动</t-th>
|
|
|
|
|
+ <t-th>欠款</t-th>
|
|
|
</t-tr>
|
|
</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" @click="goDetail(item)">
|
|
|
<t-tr>
|
|
<t-tr>
|
|
|
- <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.txBalance) }}</view></t-td>
|
|
|
|
|
|
|
+ <t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</view></t-td>
|
|
|
|
|
+ <t-td align="center" color="info"><view style="width:230upx;">{{ item.event }}</view></t-td>
|
|
|
|
|
+ <t-td align="center" color="info"><view >{{ 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.balance) }}</view></t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
</view>
|
|
</view>
|
|
@@ -23,13 +23,12 @@
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
-import { changeList } from '@/api/shop-ye-change'
|
|
|
|
|
|
|
+import { debtChangeList } from '@/api/ghs'
|
|
|
import list from '@/mixins/list'
|
|
import list from '@/mixins/list'
|
|
|
export default {
|
|
export default {
|
|
|
- name: "debtChangeDetail",
|
|
|
|
|
|
|
+ name: "debtChange",
|
|
|
components: {
|
|
components: {
|
|
|
AppWrapperEmpty
|
|
AppWrapperEmpty
|
|
|
},
|
|
},
|
|
@@ -40,16 +39,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async init(){
|
|
async init(){
|
|
|
- const res = await changeList({
|
|
|
|
|
- page:this.list.page,tx:0
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ const res = await debtChangeList({ page:this.list.page,ghsId:this.option.ghsId })
|
|
|
if (this.$util.isEmpty(res.data.list)){
|
|
if (this.$util.isEmpty(res.data.list)){
|
|
|
this.completes(res)
|
|
this.completes(res)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
let currentList = res.data.list
|
|
let currentList = res.data.list
|
|
|
currentList.forEach(function(item,index,array){
|
|
currentList.forEach(function(item,index,array){
|
|
|
- array[index].amount = item.io ==0 ? '-'+item.amount : '+'+item.amount
|
|
|
|
|
|
|
+ array[index].amount = item.io == 0 ? '-'+parseFloat(item.amount) : '+'+parseFloat(item.amount)
|
|
|
});
|
|
});
|
|
|
res.data.list = currentList
|
|
res.data.list = currentList
|
|
|
this.completes(res)
|
|
this.completes(res)
|
|
@@ -73,5 +70,4 @@ export default {
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-
|
|
|
|
|
<style lang="scss" scoped></style>
|
|
<style lang="scss" scoped></style>
|