You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
9.3 KiB
1 lines
9.3 KiB
<view class="page1"><view style="width:100%;margin:20rpx auto;background:#fff;"><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-1" type="cart" size="24" color="red" bind:__l="__l"></uni-icons></view> 销售金额 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.totalAmount}}</text></view></view><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-2" type="cart" size="24" color="red" bind:__l="__l"></uni-icons></view> 销售总件数 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.totalJCount}}</text></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-3" type="wallet" size="24" color="red" bind:__l="__l"></uni-icons></view> 销售利润 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.totalProfit==null?0:shopInfo.totalProfit}}</text></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="box" bindtap="__e"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-4" type="wallet" size="24" color="red" bind:__l="__l"></uni-icons></view> 实际利润 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{$root.g0}}</text></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-5" type="refreshempty" size="24" color="red" bind:__l="__l"></uni-icons></view> 退货金额 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.returnTotalAmount}}</text></view></view><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-6" type="refreshempty" size="24" color="red" bind:__l="__l"></uni-icons></view> 退货总件数 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.returnTotalCount}}</text></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-7" type="home" size="24" color="red" bind:__l="__l"></uni-icons></view> 进货金额 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.purchasingCost}}</text></view></view><view class="box"><view style="width:60%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="fd3e2da4-8" type="home" size="24" color="red" bind:__l="__l"></uni-icons></view> 进货总件数 </view><view style="width:37%;"><text style="display:inline-block;width:100%;text-align:right;">{{shopInfo.purchasingCount}}</text></view></view><view data-event-opts="{{[['tap',[['classificationFilter',['$event']]]]]}}" class="bottom-btn" bindtap="__e"> 筛选 </view></view><uni-popup class="vue-ref" vue-id="fd3e2da4-9" background-color="#fff" data-ref="filterPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="filter-popup"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="width:50rpx;height:50rpx;position:absolute;right:20rpx;top:25rpx;" bindtap="__e"><uni-icons vue-id="{{('fd3e2da4-10')+','+('fd3e2da4-9')}}" type="closeempty" color="red" size="22" bind:__l="__l"></uni-icons></view><view style="height:100rpx;line-height:100rpx;font-weight:bold;font-size:36rpx;text-align:center;"> 筛选 </view><uni-datetime-picker bind:input="__e" style="margin-bottom:20rpx;" vue-id="{{('fd3e2da4-11')+','+('fd3e2da4-9')}}" type="daterange" value="{{range}}" data-event-opts="{{[['^input',[['__set_model',['','range','$event',[]]]]]]}}" bind:__l="__l"></uni-datetime-picker><block wx:for="{{indexList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickType',[index]]]]]}}" class="shop-box" style="{{'margin-top:20px;text-align:center;width:30%;border:1px solid #eee;height:70rpx;border-radius:10rpx;line-height:70rpx;float:left;margin-left:2.5%;'+('background:'+(item.isTrue?'#088FEB':'#eee')+';')+('color:'+(item.isTrue?'#fff':'#777')+';')}}" bindtap="__e"><text>{{item.categoryName}}</text></view></block><view style="position:fixed;bottom:20rpx;width:100%;display:flex;"><view data-event-opts="{{[['tap',[['clearData',['$event']]]]]}}" class="bottom-left popup-btn" bindtap="__e">清空已选</view><view data-event-opts="{{[['tap',[['confirmData',['$event']]]]]}}" class="bottom-right popup-btn" bindtap="__e">确认</view></view></view></uni-popup><block wx:if="{{showDayPrice}}"><view style="width:100%;height:100%;position:fixed;top:0;background:rgba(0,0,0,0.7);"><view style="position:fixed;margin:auto;height:660rpx;left:0;right:0;top:0;bottom:0;width:600rpx;background:#fff;border-radius:10px;color:#000;"><view style="width:100%;height:80rpx;font-size:30rpx;text-align:center;line-height:80rpx;font-weight:bold;"> 利润明细 </view><view style="display:flex;"><view style="width:25%;display:flex;flex-direction:column;text-align:center;"><text style="font-weight:bold;">{{shopInfo.totalAmount}}</text><text>销售金额</text></view><view style="width:25%;display:flex;flex-direction:column;text-align:center;"><text style="font-weight:bold;">{{$root.g1}}</text><text>销售成本</text></view><view style="width:25%;display:flex;flex-direction:column;text-align:center;"><text style="font-weight:bold;">{{shopInfo.returnTotalAmount}}</text><text>退货金额</text></view><view style="width:25%;display:flex;flex-direction:column;text-align:center;"><text style="font-weight:bold;">{{shopInfo.saleReturnCost}}</text><text>退货成本</text></view></view><view style="width:95%;height:380rpx;margin:0 auto;margin-top:20rpx;border-top:1px solid #eee;"><view style="background:#ecf5ff;width:100%;color:#5fd9ee;height:80rpx;line-height:80rpx;padding-left:20rpx;"> 点击↓↓↓可查看计算公式 </view><view data-event-opts="{{[['tap',[['changeFormula',['0']]]]]}}" class="tan-lirun" bindtap="__e"><text style="font-weight:bold;margin-top:20rpx;">{{shopInfo.totalProfit}}</text><text>销售利润</text></view><view data-event-opts="{{[['tap',[['changeFormula',['1']]]]]}}" class="tan-lirun" style="float:right;" bindtap="__e"><text style="font-weight:bold;margin-top:20rpx;">{{$root.g2}}</text><text>实际利润</text></view><view data-event-opts="{{[['tap',[['changeFormula',['3']]]]]}}" class="tan-lirun" bindtap="__e"><text style="font-weight:bold;margin-top:20rpx;">{{(shopInfo.totalProfit==0||shopInfo.totalProfit==null?0:shopInfo.totalAmount==0||shopInfo.totalAmount==null?0:$root.g3)+"%"}}</text><text>销售利润率</text></view><view data-event-opts="{{[['tap',[['changeFormula',['2']]]]]}}" class="tan-lirun" style="float:right;" bindtap="__e"><text style="font-weight:bold;margin-top:20rpx;">{{(shopInfo.totalProfit-shopInfo.returnTotalAmount+shopInfo.saleReturnCost==0||shopInfo.totalProfit-shopInfo.returnTotalAmount+shopInfo.saleReturnCost==null?0:shopInfo.totalAmount-shopInfo.returnTotalAmount==0||shopInfo.totalAmount-shopInfo.returnTotalAmount==null?0:$root.g4)+"%"}}</text><text>实际利润率</text></view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" style="height:100rpx;width:100%;line-height:100rpx;text-align:center;border-top:1px solid #eee;font-size:40rpx;" bindtap="__e"> 确定 </view></view></view></block><block wx:if="{{showFormula}}"><view style="height:230rpx;position:fixed;z-index:999;margin:auto;left:0;right:0;top:0;bottom:0;width:400rpx;background:rgba(0,0,0,0.7);border-radius:10px;color:#eee;"><view style="width:100%;height:80rpx;font-size:30rpx;text-align:center;line-height:80rpx;">{{''+(showDan==0?'销售利润':showDan==1?'实际利润':showDan==2?'实际利润率':showDan==3?'销售利润率':'')+'计算公式'}}</view><view style="text-align:center;line-height:40rpx;"><block wx:if="{{showDan==3}}"><view style="margin-top:20rpx;"><view>公式:销售利润/销售金额*100</view><view>{{shopInfo.totalProfit+"/"+shopInfo.totalAmount+"*100="+(shopInfo.totalProfit==0&&shopInfo.totalAmount==0?0:$root.g5)+"%"}}</view></view></block><block wx:if="{{showDan==2}}"><view style="margin-top:20rpx;"><view>公式:实际利润/(销售金额-退货金额)</view><view>{{$root.g6+"/"+(shopInfo.totalAmount-shopInfo.returnTotalAmount)+" * 100="+(shopInfo.totalProfit-shopInfo.returnTotalAmount+shopInfo.saleReturnCost==0?0:$root.g7)+"%"}}</view></view></block><block wx:if="{{showDan==1}}"><view style="margin-top:20rpx;"><view>公式:销售利润-(退货金额-退货成本)</view><view>{{shopInfo.totalProfit+"-("+shopInfo.returnTotalAmount+"-"+shopInfo.saleReturnCost+")="+$root.g8}}</view></view></block><block wx:if="{{showDan==0}}"><view style="margin-top:20rpx;"><view>公式:销售金额-销售成本</view><view>{{shopInfo.totalAmount+"-"+(shopInfo.totalAmount-shopInfo.totalProfit)+"="+shopInfo.totalProfit}}</view></view></block></view></view></block></view>
|