|
|
@@ -3,24 +3,14 @@
|
|
|
<form>
|
|
|
<view class="module-com input-line-wrap">
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" v-if="Number(pfShopId)>0">
|
|
|
- <view class="tui-title">批发总赊账</view>
|
|
|
- <view>{{ pfDebt }}</view>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false" v-if="Number(pfShopId)>0">
|
|
|
- <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>
|
|
|
+ <view class="tui-title">批发</view>
|
|
|
+ <view>{{ pfAmount }}</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">零售总余额</view>
|
|
|
- <view>{{ lsBalance }}</view>
|
|
|
+ <view class="tui-title">零售</view>
|
|
|
+ <view>{{ lsAmount }}</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
</view>
|
|
|
@@ -41,11 +31,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- lsBalance:0,
|
|
|
- lsDebt:0,
|
|
|
- pfBalance:0,
|
|
|
- pfDebt:0,
|
|
|
- pfShopId:0
|
|
|
+ lsAmount:0,
|
|
|
+ pfAmount:0
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
@@ -57,11 +44,8 @@ export default {
|
|
|
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
|
|
|
- this.pfShopId = res.data.pfShopId||0
|
|
|
+ this.lsAmount = res.data.lsAmount||0
|
|
|
+ this.pfAmount = res.data.pfAmount||0
|
|
|
}
|
|
|
})
|
|
|
}
|