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
12 KiB

<view class="page1"><uni-datetime-picker style="margin-bottom:20rpx;" vue-id="44aeab14-1" type="daterange" value="{{range}}" data-event-opts="{{[['^change',[['searchList']]],['^input',[['__set_model',['','range','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-datetime-picker><view style="width:100%;margin:20rpx auto;background:#fff;"><view data-event-opts="{{[['tap',[['goDetail',['xiaoshou']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-2" type="cart" size="24" color="red" bind:__l="__l"></uni-icons></view> 销售金额 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.totalAmount}}</text><uni-icons vue-id="44aeab14-3" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['xiaoshou']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-4" type="cart" size="24" color="red" bind:__l="__l"></uni-icons></view> 销售总件数 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.totalJCount}}</text><uni-icons vue-id="44aeab14-5" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view data-event-opts="{{[['tap',[['goDetail',['xiaoshoulirun']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-6" type="wallet" size="24" color="red" bind:__l="__l"></uni-icons></view> 销售利润 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.totalProfit==null?0:shopInfo.totalProfit}}</text><uni-icons vue-id="44aeab14-7" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-8" type="wallet" size="24" color="red" bind:__l="__l"></uni-icons></view> 实际利润 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{$root.g0}}</text><uni-icons vue-id="44aeab14-9" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view data-event-opts="{{[['tap',[['goDetail',['jinhuo']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-10" type="home" size="24" color="red" bind:__l="__l"></uni-icons></view> 进货金额 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.purchasingCost}}</text><uni-icons vue-id="44aeab14-11" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['jinhuo']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-12" type="home" size="24" color="red" bind:__l="__l"></uni-icons></view> 进货总件数 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.purchasingCount}}</text><uni-icons vue-id="44aeab14-13" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view data-event-opts="{{[['tap',[['goDetail',['tuihuo']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-14" type="refreshempty" size="24" color="red" bind:__l="__l"></uni-icons></view> 退货金额 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.returnTotalAmount}}</text><uni-icons vue-id="44aeab14-15" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['tuihuo']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-16" type="refreshempty" size="24" color="red" bind:__l="__l"></uni-icons></view> 退货总件数 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.returnTotalCount}}</text><uni-icons vue-id="44aeab14-17" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view style="width:100%;height:10rpx;background:#eee;"></view><view data-event-opts="{{[['tap',[['goDetail',['shishou']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-18" type="auth" size="24" color="red" bind:__l="__l"></uni-icons></view> 实收金额 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.totalAlreadyEarn}}</text><uni-icons vue-id="44aeab14-19" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['xiadankehu']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-20" type="staff" size="24" color="red" bind:__l="__l"></uni-icons></view> 下单客户 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;">{{shopInfo.totalCCount}}</text><uni-icons vue-id="44aeab14-21" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['gongyingshang']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-22" type="staff" size="24" color="red" bind:__l="__l"></uni-icons></view> 按供应商查看库存 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;"></text><uni-icons vue-id="44aeab14-23" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['fenleitongji']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-24" type="fire" size="24" color="red" bind:__l="__l"></uni-icons></view> 按商品分类统计 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;"></text><uni-icons vue-id="44aeab14-25" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view><view data-event-opts="{{[['tap',[['goDetail',['rexiao']]]]]}}" class="box" bindtap="__e"><view style="width:69%;"><view style="width:50rpx;height:50rpx;float:left;margin-right:20rpx;"><uni-icons vue-id="44aeab14-26" type="fire" size="24" color="red" bind:__l="__l"></uni-icons></view> 热销商品 </view><view style="width:30%;"><text style="display:inline-block;width:150rpx;text-align:center;"></text><uni-icons vue-id="44aeab14-27" type="right" size="24" color="#777" bind:__l="__l"></uni-icons></view></view></view><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',[['e1',['$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>