|
|
@@ -4,14 +4,16 @@
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
|
<t-th>日期</t-th>
|
|
|
- <t-th><view style="width:230upx;">事项</view></t-th>
|
|
|
+ <t-th><view style="width:180upx;">事项</view></t-th>
|
|
|
+ <t-th>人员</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)">
|
|
|
<t-tr>
|
|
|
<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 style="width:180upx;">{{ item.event }}</view></t-td>
|
|
|
+ <t-td align="center" color="info"><view >{{ item.staffName }}</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-tr>
|
|
|
@@ -25,10 +27,10 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
-import { debtChangeList } from '@/api/custom'
|
|
|
+import { getCustomBalanceChange } from '@/api/custom'
|
|
|
import list from '@/mixins/list'
|
|
|
export default {
|
|
|
- name: "debtChange",
|
|
|
+ name: "balanceChange",
|
|
|
components: {
|
|
|
AppWrapperEmpty
|
|
|
},
|
|
|
@@ -39,7 +41,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init(){
|
|
|
- const res = await debtChangeList({ page:this.list.page,customId:this.option.customId })
|
|
|
+ const res = await getCustomBalanceChange({ page:this.list.page,customId:this.option.customId })
|
|
|
if (this.$util.isEmpty(res.data.list)){
|
|
|
this.completes(res)
|
|
|
return
|
|
|
@@ -66,8 +68,7 @@ export default {
|
|
|
} else {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped></style>
|