|
|
@@ -0,0 +1,106 @@
|
|
|
+<template>
|
|
|
+ <view class="app-content">
|
|
|
+ <form>
|
|
|
+ <view class="module-com input-line-wrap">
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">批发总赊账</view>
|
|
|
+ <view>{{ pfDebt }}</view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">批发总余额</view>
|
|
|
+ <view>{{ pfBalance }}</view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">零售总赊账</view>
|
|
|
+ <view>{{ lsDebt }}</view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">零售总余额</view>
|
|
|
+ <view>{{ lsBalance }}</view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </form>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import TuiListCell from '@/components/plugin/list-cell'
|
|
|
+import AppAvatarModule from '@/components/module/app-avatar'
|
|
|
+import AppAreaSel from '@/components/app-area-sel'
|
|
|
+import { showTotalBalance } from "@/api/custom"
|
|
|
+export default {
|
|
|
+ name: 'totalBalance',
|
|
|
+ components: {
|
|
|
+ TuiListCell,
|
|
|
+ AppAvatarModule,
|
|
|
+ AppAreaSel
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ lsBalance:0,
|
|
|
+ lsDebt:0,
|
|
|
+ pfBalance:0,
|
|
|
+ pfDebt:0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init() {
|
|
|
+ showTotalBalance().then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.lsBalance = res.data.ls.balance||0
|
|
|
+ this.lsDebt = res.data.ls.debt||0
|
|
|
+ this.pfBalance = res.data.pf.balance||0
|
|
|
+ this.pfDebt = res.data.pf.debt||0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .app-content {
|
|
|
+ min-height: calc(100vh - 20upx);
|
|
|
+ padding-top:10upx;
|
|
|
+ padding-bottom:150upx;
|
|
|
+ }
|
|
|
+ .prompt-text {
|
|
|
+ color: $fontColor3;
|
|
|
+ padding-left: 30upx;
|
|
|
+ margin-bottom: 30upx;
|
|
|
+ }
|
|
|
+ .module-com {
|
|
|
+ .member-wrap {
|
|
|
+ .member-det {
|
|
|
+ font-size: 24upx;
|
|
|
+ margin-left: 20upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .remark-wrap {
|
|
|
+ align-items: flex-start;
|
|
|
+ .remark {
|
|
|
+ height: 180upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 按钮
|
|
|
+ .confirm-btn {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0upx;
|
|
|
+ width: calc(100% - 60upx);
|
|
|
+ margin: 60upx 30upx 20upx;
|
|
|
+ background-color: white;
|
|
|
+ z-index: 999;
|
|
|
+ .admin-button-com {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|