|
@@ -3,14 +3,19 @@
|
|
|
<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><view style="width:150upx;">日期</view></t-th>
|
|
|
<t-th><view style="width:230upx;">事项</view></t-th>
|
|
<t-th><view style="width:230upx;">事项</view></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 style="width:150upx;">
|
|
|
|
|
+ <view>{{ item.addTime.substr(5,11) }}</view>
|
|
|
|
|
+ <view>{{item.ptStyle==1?'零售':'批发'}}</view>
|
|
|
|
|
+ </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: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 >{{ 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>
|
|
@@ -25,7 +30,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
-import { debtChangeList } from '@/api/custom'
|
|
|
|
|
|
|
+import { totalDebtChangeList } from '@/api/shop'
|
|
|
import list from '@/mixins/list'
|
|
import list from '@/mixins/list'
|
|
|
export default {
|
|
export default {
|
|
|
name: "debtChange",
|
|
name: "debtChange",
|
|
@@ -39,7 +44,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async init(){
|
|
async init(){
|
|
|
- const res = await debtChangeList({ page:this.list.page,customId:this.option.customId })
|
|
|
|
|
|
|
+ const res = await totalDebtChangeList({ page:this.list.page,customId:this.option.customId })
|
|
|
if (this.$util.isEmpty(res.data.list)){
|
|
if (this.$util.isEmpty(res.data.list)){
|
|
|
this.completes(res)
|
|
this.completes(res)
|
|
|
return
|
|
return
|
|
@@ -50,8 +55,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
res.data.list = currentList
|
|
res.data.list = currentList
|
|
|
this.completes(res)
|
|
this.completes(res)
|
|
|
- },
|
|
|
|
|
- goDetail(item){
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async onPullDownRefresh() {
|
|
async onPullDownRefresh() {
|