|
@@ -8,17 +8,22 @@
|
|
|
<t-th>人员</t-th>
|
|
<t-th>人员</t-th>
|
|
|
<t-th>变动</t-th>
|
|
<t-th>变动</t-th>
|
|
|
<t-th>余额</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">
|
|
|
<t-tr>
|
|
<t-tr>
|
|
|
<t-td align="center" color="info"><view >{{ item.addTime.substr(5,11) }}</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:180upx;">{{ 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.staffName }}</view></t-td>
|
|
|
<t-td align="center" color="info"><view >{{ item.amount }}</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-td align="center" color="info"><view >{{ item.remark }}</view></t-td>
|
|
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
|
|
+ <block v-if="!$util.isEmpty(item.remark)">
|
|
|
|
|
+ <t-tr>
|
|
|
|
|
+ <t-td align="center" color="info">
|
|
|
|
|
+ <view style="text-align: left;color:red;">备注:{{ item.remark }}</view>
|
|
|
|
|
+ </t-td>
|
|
|
|
|
+ </t-tr>
|
|
|
|
|
+ </block>
|
|
|
</view>
|
|
</view>
|
|
|
</t-table>
|
|
</t-table>
|
|
|
</block>
|
|
</block>
|
|
@@ -29,7 +34,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
- import { getCustomBalanceChange } from '@/api/custom'
|
|
|
|
|
|
|
+ import { getBalanceChangeList } from '@/api/custom'
|
|
|
import list from '@/mixins/list'
|
|
import list from '@/mixins/list'
|
|
|
export default {
|
|
export default {
|
|
|
name: "balanceChange",
|
|
name: "balanceChange",
|
|
@@ -43,19 +48,20 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async init(){
|
|
async init(){
|
|
|
- const res = await getCustomBalanceChange({ page:this.list.page,customId:this.option.customId })
|
|
|
|
|
|
|
+ let id = this.option.id ? this.option.id : 0
|
|
|
|
|
+ const res = await getBalanceChangeList({ page:this.list.page,customId:id })
|
|
|
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){
|
|
|
|
|
+ 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)
|
|
|
- },
|
|
|
|
|
- goDetail(item){
|
|
|
|
|
- if(item.capitalType == 64){
|
|
|
|
|
- this.$util.pageTo({url: "/admin/clear/customInfo?id="+item.relateId})
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async onPullDownRefresh() {
|
|
async onPullDownRefresh() {
|