<template>
  <view class="main">
<!--  当蒙层框里面的if判断中的任意一个参数变为true 就表示有悬浮框产生 然后生成一层最上面的蒙层 让它可以点击任意位置关闭悬浮框  -->
    <view class="meng" v-if="showCost || showPay|| showMonthRevenue|| showMonthExpenditure|| successRate|| thisYearSum|| nowYearSumRate|| showNetProfit|| budget|| showYearNetProfit|| revenueAll|| revenueSuccess|| revenueCostRate|| nowYearSum|| budgetSum|| incomeSuccess|| nowYearBudget|| nowYearRevenueCost|| compareYesSuccessRate|| userRevenueSmallSum|| thisMonthSum|| thisMonthRevenueRate|| thisMonthSmallSumSuccess1st|| thisMonthSmallSumSuccess2st|| thisMonthSmallSumSuccess2stTitle|| otherSmallSum"
          @click="handleShowNotice('false')"></view>
    <view class="meng" v-if="showOutNoitive || showInComeNotice || otherLeftChar || otherMonthSum ||otherThisMonthRate ||otherThisMonthSuccess || serviceSmallSum" @click="handleShowNotice2('false')"></view>
<!--    :style="{height: ((668/750) * pageWidth + 36)+'px'}"-->
    <view class="header" >
<!--      <image class="headerBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/revenyeBg.png"/>-->
      <view class="headerTop" :style="{height:(menu.top + menu.height) + 'px'}">
        <view class="headerBox">
<!--          <image class="headerBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/revenyeBg.png"/>-->
          <view class="imageBox" :style="{height:menu.height + 'px',bottom:0}">
            <image @click="handleBack" class="backIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"></image>
          </view>
        </view>
      </view>
      <view :style="{width: '100%',height:(menu.top + menu.height) + 'px'}"></view>
<!--      :style="{top: (menu.bottom+18) +'px'}"-->
      <view style="display: flex;justify-content: space-between;align-items: center">
        <view>
          <view class="pageTitle">财务营收报表</view>
        </view>
        <picker style="margin-right: 34rpx;margin-top: 24rpx" mode="date" fields="month" :value="single" :start="startDate" :end="endData" @change="bindDateChange" >
          <text class="timeText">{{single}}</text>
          <image class="timeIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/newIndex/3stDownArrow.svg"/>
        </picker>
      </view>
      <view class="pageNotice">*以下经营数据由财务部提供填入(非系统计算)</view>
      <view class="headerDetail" :style="{top: (menu.bottom+68) +'px'}">
        <swiper style="height: 220px" @change="handleChangeSwiper" :current="selectMonth" 	:indicator-dots="true">
          <block v-for="(item,index) in monthList" :key="index">
            <swiper-item :item-id="item" :data-item-id="selectMonth" :style="{zIndex:index+1}">
              <view class="detailBox" >
                <image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/monthSum.png"/>

                <view class="detailPage">
                  <text class="detailPageTitle">{{ `${thisMonth}月累计收支比例` }}</text>
                  <view class="notice"  @click="handleShowNotice('showCost')">?
                    <view  class="noticeBox" :style="{left:'10%'}" v-if="showCost" @click.stop="handleShowNotice('showCost')">
                      <view>成本同比：本月成本 / 本月收入</view>
                      <view>本月收入：营业收入 + 营业外收入</view>
<!--                      <view>支出比：累积支出 / 支出预计</view>-->
                      <view>本月支出=管理费用 + 销售费用 + 财务费用 + 营业外支出 + 税金及附加</view>
                    </view>
                  </view>
                </view>

                <view class="moneyBox">
                  <view class="moneyItem">
<!--                    <view class="itemTop">-->
<!--                      <view class="itemChart">-->
<!--                        &lt;!&ndash;                  <YearCharts :success="pageDetail.monthAmount.CostInRate"/>&ndash;&gt;-->
<!--                        <YearCharts :success="currentResult.costRatio || 0" :name="'costRatio'+index" />-->
<!--                      </view>-->
<!--                      <view class="itemMessage">-->
<!--                        &lt;!&ndash;                  <text class="itemRate">{{ `${pageDetail.monthAmount.CostInRate||''}%`  }}</text>&ndash;&gt;-->
<!--                        <text class="itemRate">{{ `${currentResult.costRatio||'-'}%`  }}</text>-->
<!--                        <view class="itemLabel">成本比</view>-->
<!--                      </view>-->
<!--                    </view>-->
                    <view class="successBox">
                      <view class="successBoxItem">
                        <!--                  <text class="successNumber">{{ pageDetail.monthAmount.ThisMonthIn?$util.fmoney(pageDetail.monthAmount.ThisMonthIn / 10000,2):'' }}</text>-->
                        <text class="successNumber">{{ currentResult.thisMonthInCome?$util.fmoney(currentResult.thisMonthInCome,2):'-' }}</text>
                        <view class="successTime">本月收入
                          <text class="successUnit">/万元</text>
                        </view>
                      </view>
                      <view class="successBoxItem" style="margin-top: 12rpx">
                        <!--                  <text class="successNumber">{{ pageDetail.monthAmount.ThisMonthIn?$util.fmoney(pageDetail.monthAmount.ThisMonthIn / 10000,2):'' }}</text>-->
                        <text class="successNumber">{{ currentResult.inComeThisYear?$util.fmoney(currentResult.inComeThisYear,2):'-' }}</text>
                        <view class="successTime">累计收入
                          <text class="successUnit">/万元</text>
                        </view>
                      </view>
                      <view  class="successBoxItem" style="margin-top: 12rpx">
                        <!--                  <text class="successNumber"  style="color: #E83944">{{-->
                        <!--                      `${pageDetail.monthAmount.IncomeChangeRate>0?'+':pageDetail.monthAmount.IncomeChangeRate<0?'-':''}${pageDetail.monthAmount.IncomeChangeRate||''}%`-->
                        <!--                    }}</text> -->
                        <text class="successNumber"  style="color: #E83944">{{
                            `${currentResult.inComeYear?$util.fmoney(currentResult.inComeYear,2):'-'}%`
                          }}</text>
                        <text class="successTime">收入同比</text>
                      </view>

                    </view>
                  </view>

                  <view class="moneyItem">
<!--                    <view class="itemTop">-->
<!--                      <view class="itemChart">-->
<!--                        &lt;!&ndash;                  <YearCharts :success="pageDetail.monthAmount.InOutRate"/>&ndash;&gt;-->
<!--                        <YearCharts :success="currentResult.expendRatio || 0" :name="'expendRatio'+index" />-->
<!--                      </view>-->
<!--                      <view class="itemMessage">-->
<!--                        &lt;!&ndash;                  <text class="itemRate">{{`${pageDetail.monthAmount.InOutRate||''}%`}}</text>&ndash;&gt;-->
<!--                        <text class="itemRate">{{`${currentResult.expendRatio||'-'}%`}}</text>-->
<!--                        <view class="itemLabel">支出比</view>-->
<!--                      </view>-->
<!--                    </view>-->
                    <view class="successBox">
                      <view class="successBoxItem">
                        <!--                  <text class="successNumber">{{ $util.fmoney(pageDetail.monthAmount.ThisMonthOut/10000,2) }}</text>-->
                        <text class="successNumber">{{ currentResult.thisMonthExpend?$util.fmoney(currentResult.thisMonthExpend,2):'-' }}</text>
                        <view class="successTime">
                          本月支出
                          <text class="successUnit">/万元</text>
                        </view>
                      </view>
                      <view class="successBoxItem" style="margin-top: 12rpx">
                        <!--                  <text class="successNumber">{{ $util.fmoney(pageDetail.monthAmount.ThisMonthOut/10000,2) }}</text>-->
                        <text class="successNumber">{{ currentResult.expenditureThisYear?$util.fmoney(currentResult.expenditureThisYear,2):'-' }}</text>
                        <view class="successTime">
                          累计支出
                          <text class="successUnit">/万元</text>
                        </view>
                      </view>
                      <view class="successBoxItem" style="margin-top: 12rpx">
                        <!--                  <text class="successNumber" style="color: #E83944">{{-->
                        <!--                      `${pageDetail.monthAmount.PayoutChangeRate>0?'+':pageDetail.monthAmount.PayoutChangeRate<0?'-':''}${pageDetail.monthAmount.PayoutChangeRate||''}%`-->
                        <!--                    }}</text>-->
                        <text class="successNumber" style="color: #E83944">{{
                            `${currentResult.costYear?$util.fmoney(currentResult.costYear,2):'-'}%`
                          }}</text>
                        <text class="successTime">成本同比</text>
                      </view>
                    </view>
                  </view>
                </view>
              </view>
            </swiper-item>
          </block>
        </swiper>
      </view>
    </view>

    <view class="content">
      <view class="profitYear">
        <view class="itemBox">
          <view style="display: flex;align-items: center">
            <view class="itemBoxTitle">{{ `${thisYear}年度累计利润` }}</view>
            <view class="notice" @click="handleShowNotice('successRate')">?
              <view class="noticeBox" :style="{left:'10%',top:'15px'}" v-if="successRate" @click.stop="handleShowNotice('successRate')">
<!--                <view>利润总额完成率=本年累计/年度预算<br/>{{ `(${$util.fmoney(pageDetail.yearProfit.ThisYearTotal/10000,2)} / ${$util.fmoney(pageDetail.yearProfit.ThisYearBudget/10000,2)})` }}</view>-->
<!--                <view>净利润完成度=本年净利润/净利润预算<br/>{{ `(${$util.fmoney(pageDetail.yearProfit.ThisYearTotalC/10000,2)} / ${$util.fmoney(pageDetail.yearProfit.ThisYearBudgetC/10000,2)})` }}</view>                -->

                <view>利润总额完成率=本年累计/年度预算<br/>{{ `(${currentResult.profitThisYear?$util.fmoney(currentResult.profitThisYear,2):'-'} / ${currentResult.profitBudgetThisYear?$util.fmoney(currentResult.profitBudgetThisYear,2):'-'})` }}</view>
                <view>净利润完成度=本年净利润/净利润预算<br/>{{ `(${currentResult.thisYearNetProfit?$util.fmoney(currentResult.thisYearNetProfit,2):'-'} / ${currentResult.thisYearNetProfitBudget?$util.fmoney(currentResult.thisYearNetProfitBudget,2):'-'})` }}</view>
                <view>净利润预算=年度预算-年度预计所得税费用{{`(${currentResult.profitBudgetThisYear?$util.fmoney(currentResult.profitBudgetThisYear,2):'-'} - ${'-'})`}}</view>
                <view>本年净利润=本年累计-本年累计所得税{{`(${currentResult.profitThisYear?$util.fmoney(currentResult.profitThisYear,2):'-'} - ${'-'})`}}</view>
              </view>
            </view>
          </view>
          <image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/yearSum.png"/>
          <view class="itemDetailBox">
            <view class="detailBoxTop">
              <view class="successLabel">
                <text class="successLabelText">完成率</text>
              </view>
<!--              <text class="successValue">{{`${pageDetail.yearProfit.CompleteRate||''}%`}}</text>-->
              <text class="successValue">{{`${currentResult.profitRate || '-'}%`}}</text>
            </view>

            <view class="progress">
<!--              <view class="have" :style="{width:secondBoxProgress>100?'100%':pageDetail.yearProfit.CompleteRate}"></view>-->
              <view class="have" :style="{width:currentResult.profitRate>100?'100%':`${currentResult.profitRate}%`}"></view>
            </view>

            <view class="yearDetail">
              <view class="yearItem">
<!--                <view class="itemValue">{{$util.fmoney(pageDetail.yearProfit.ThisYearTotal/10000,2)}}</view>-->
                <view class="itemValue">{{ currentResult.profitThisYear?$util.fmoney(currentResult.profitThisYear,2):'-' }}</view>
                <text class="itemLabel">含税累计<text class="itemUnit">/万元</text></text>
              </view>

              <view class="yearItem">
<!--                <view class="itemValue">{{$util.fmoney(pageDetail.yearProfit.ThisYearBudget/10000,2)}}</view>-->
                <view class="itemValue">{{currentResult.profitBudgetThisYear?$util.fmoney(currentResult.profitBudgetThisYear,2):'-'}}</view>
                <text class="itemLabel">年度预算<text class="itemUnit">/万元</text></text>
              </view>

              <view class="yearItem" style="width: 80px">
<!--                <view class="itemValue" style="color: #E83944">{{-->
<!--                    `${pageDetail.yearProfit.TRate>0?'+':pageDetail.yearProfit.TRate<0?'-':''}${pageDetail.yearProfit.TRate||''}%`-->
<!--                  }}</view>   -->
                <view class="itemValue" style="color: #E83944">{{
                    `${currentResult.profitYOY || '-'}%`
                  }}</view>
                <text class="itemLabel">同比</text>
              </view>
            </view>
            <view class="yearDetail">
              <view class="yearItem">
<!--                <view class="itemValue">{{$util.fmoney(pageDetail.yearProfit.ThisYearTotalC/10000,2)}}</view>-->
                <view class="itemValue">{{currentResult.thisYearNetProfit?$util.fmoney(currentResult.thisYearNetProfit,2):'-'}}</view>
                <text class="itemLabel">除税净利润<text class="itemUnit">/万元</text></text>
              </view>

              <view class="yearItem">
<!--                <view class="itemValue">{{$util.fmoney(pageDetail.yearProfit.ThisYearBudgetC/10000,2)}}</view>-->
                <view class="itemValue">{{currentResult.thisYearNetProfitBudget?$util.fmoney(currentResult.thisYearNetProfitBudget,2):'-'}}</view>
                <text class="itemLabel">净利润预算<text class="itemUnit">/万元</text></text>
              </view>

              <view class="yearItem" style="width: 80px">
<!--                <view class="itemValue" style="color: #E83944">{{-->
<!--                    `${pageDetail.yearProfit.CompleteRateC||''}%`-->
<!--                  }}</view> -->
                <view class="itemValue" style="color: #E83944">{{
                    `${currentResult.thisYearNetProfitSuccess||'-'}%`
                  }}</view>
                <view class="itemLabel" style="display: flex;align-items: center">完成度</view>
              </view>
            </view>
          </view>
        </view>
      </view>

      <view class="accrueYear" v-if="false">
        <view class="itemBox">
          <view style="width:100%;display: flex;align-items: center">
            <view class="itemBoxTitle">2023年营收累计</view>
            <view class="notice" v-if="revenueAll" @click="handleShowNotice('revenueAll')">?
              <view class="noticeBox" :style="{ left: '10%', top: '15px' }"
                @click.stop="handleShowNotice('revenueAll')">
                <view>不包含营业外收入</view>
                <view>完成率=本年累计 / 年度预算<br/>(472,356,021.71/725,370,000.00)</view>
                <view>成本比=本年成本/本年累计收入<br/>(180,563,832.50/472,356,021.71)</view>
                <view>年度累计收入同比：本年累计收入的同比值</view>
              </view>
            </view>
          </view>
          <image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/yearRevenue.png" />
          <view class="itemDetailBox">
<!--            @click="handleShowNotice('revenueSuccess')"-->
            <view class="leftCharts" >
              <OtherCharts :success="thirdBoxRate" :colorList="['#9E3CE9', '#ECD8FB']"  />
              <text class="numberValue">65.12%</text>
            </view>
<!--            <view class="notices">-->
<!--              <view class="noticeBox" :style="{ left: '0px', top: '50%' }" v-if="revenueSuccess"-->
<!--                @click.stop="handleShowNotice('revenueSuccess')">-->
<!--                <text>完成率=本年累计 / 年度预算(472,356,021.71/725,370,000.00)</text>-->
<!--              </view>-->
<!--            </view>-->
            <view class="rightBox">
              <view class="rightBoxTop">
                <view class="itemTop">
                  <text class="itemTopValue">47,235.60</text>
                  <text class="itemTopTitle">本年累计<text class="itemTopUnit">/万元</text></text>
                </view>
                <view class="itemRateBox">
                  <view class="addRate">38.23%</view>
                  <view class="rateText" style="display: flex;align-items: center">
                    成本比
<!--                    <view class="notice" @click="handleShowNotice('revenueCostRate')">?-->
<!--                      <view class="noticeBox" :style="{ right: '0px', top: '30%' }" v-if="revenueCostRate"-->
<!--                        @click.stop="handleShowNotice('revenueCostRate')">-->
<!--                        <text>成本比=本年成本/本年累计收入(180,563,832.50/472,356,021.71)</text>-->
<!--                      </view>-->
<!--                    </view>-->
                  </view>
                </view>
              </view>
              <view class="rightBoxTop">
                <view class="itemTop">
                  <text class="itemTopValue">72,537.00</text>
                  <text class="itemTopTitle">年度预算<text class="itemTopUnit">/万元</text></text>
                </view>
                <view class="itemRateBox">
                  <view class="addRate">+47.81%</view>
                  <view class="rateText" style="display: flex;align-items: center">
                    收入同比
<!--                    <view class="notice" @click="handleShowNotice('budgetSum')">?-->
<!--                      <view class="noticeBox" :style="{ right: '0px', top: '80%' }" v-if="budgetSum"-->
<!--                        @click.stop="handleShowNotice('budgetSum')">-->
<!--                        <text>本年累计营收的同比值</text>-->
<!--                      </view>-->
<!--                    </view>-->
                  </view>
                </view>
              </view>
            </view>
          </view>
        </view>
      </view>

      <view class="incomeAll">
        <view class="itemBox">
          <view style="width:100%;display: flex;align-items: center">
            <view class="itemBoxTitle" style="color: #EC6C00">{{ `${thisYear}年收入合计` }}</view>
            <view class="notice" @click="handleShowNotice('nowYearSum')">?
              <view class="noticeBox" :style="{ left: '10%', top: '20px' }" v-if="nowYearSum"
                    @click.stop="handleShowNotice('nowYearSum')">
<!--                <view>包含营业外收入</view>-->
<!--                <view>完成率=本年累计 / 年度预算<br/>{{ `(${$util.fmoney(pageDetail.Income.ThisYearTotal,2)} / ${$util.fmoney(pageDetail.Income.ThisYearBudget,2)})` }}</view>-->
<!--                <view>成本比=本年累计成本/本年累计收入<br/>{{ `(${$util.fmoney(pageDetail.Income.ThisYearCost,2)} / ${$util.fmoney(pageDetail.Income.ThisYearTotal,2)})` }}</view>   -->
<!--                <view>完成率=本年累计收入 / 年度预算<br/>{{ `(619,033,365.94 / 800,500,000.00)` }}</view>-->
<!--                <view>成本比=本年累计成本/本年累计收入<br/>{{ `243,936,015.66 / 619,033,365.94)` }}</view>   -->
                <view>完成率=本年累计收入 / 年度预算<br/>{{ `(${currentResult.inComeThisYearReal||'-'} / ${currentResult.thisYearInComeBudget?$util.fmoney(Number(currentResult.thisYearInComeBudget)*10000,2):'-'})` }}</view>
                <view>成本比=本年累计成本/本年累计收入<br/>{{ `(${currentResult.costReal||'-'} /${currentResult.inComeThisYearReal||'-'})` }}</view>
                <view>年度预算：年度预算包含营业外</view>
                <view>年度预算同比： 本年累计收入的同比值</view>
              </view>
            </view>
          </view>
          <image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/allInCome.png" />
          <view class="itemDetailBox">
              <view class="leftCharts" >
                <OtherCharts :success="currentResult.thisYearInComeRate" :colorList="['#FC7909', '#FEE4CE']" :name="'inComeSuccess'"/>
                <!--              <text class="numberValue" style="color: #FE7500">{{`${pageDetail.Income.CompleteRate||''}%`}}</text>-->
                <text class="numberValue" style="color: #FE7500">{{`${currentResult.thisYearInComeRate || '-'}%`}}</text>
              </view>
              <view class="rightBox">
                <view class="rightBoxTop">
                  <view class="itemTop">
                    <!--                  <text class="itemTopValue">{{ $util.fmoney(pageDetail.Income.ThisYearTotal/10000,2) }}</text>-->
                    <text class="itemTopValue">{{ currentResult.inComeThisYear?$util.fmoney(currentResult.inComeThisYear,2):'-' }}</text>
                    <view class="itemTopTitle" style="display: flex;align-items: center">
                      本年累计
                      <text class="itemTopUnit">/万元</text>
                    </view>
                  </view>
                  <view class="itemRateBox">
                    <!--                  <view class="addRate">{{`${pageDetail.Income.CostRate||''}%`}}</view>-->
                    <view class="addRate">{{`${currentResult.thisYearCostRatio || '-'}%`}}</view>
                    <view class="rateText" style="display: flex;align-items: center">成本比</view>
                  </view>
                </view>
                <view class="rightBoxTop" style="margin-top: 32rpx">
                  <view class="itemTop">
                    <!--                  <text class="itemTopValue">{{$util.fmoney(pageDetail.Income.ThisYearBudget/10000,2)}}</text>-->
                    <text class="itemTopValue">{{ currentResult.thisYearInComeBudget?$util.fmoney(currentResult.thisYearInComeBudget,2):'-' }}</text>
                    <view class="itemTopTitle" style="display: flex;align-items: center">
                      年度预算
                      <text class="itemTopUnit">/万元</text>
                    </view>
                  </view>
                  <view class="itemRateBox">
                    <!--                  <view class="addRate">{{`${pageDetail.Income.IncomeChangeRate>0?'+':pageDetail.Income.IncomeChangeRate<0?'-':''}${pageDetail.Income.IncomeChangeRate||''}%`}}</view>-->
                    <view class="addRate">{{`${currentResult.thisYearInComeYOY||'-'}%`}}</view>
                    <view class="rateText" style="display: flex;align-items: center">同比</view>
                  </view>
                </view>
              </view>
          </view>
          <view class="inComeRateBox" @click="handleShowInComeNotice">
            <view v-if="showInComeNotice" class="noticeRate" >
              <view class="noticeView">自营收入:<span>{{currentResult.inComeList[0].thisYear?$util.fmoney(currentResult.inComeList[0].thisYear,2):'-'}}</span>万元，<span>{{`${((currentResult.inComeList[0].thisYear / (Number(currentResult.inComeList[0].thisYear) + Number(currentResult.inComeList[1].thisYear)))*100).toFixed(2)}%`}}</span></view>
              <view class="noticeView">其他收入:<span>{{currentResult.inComeList[1].thisYear?$util.fmoney(currentResult.inComeList[1].thisYear,2):'-'}}</span>万元，<span>{{`${((currentResult.inComeList[1].thisYear / (Number(currentResult.inComeList[0].thisYear) + Number(currentResult.inComeList[1].thisYear)))*100).toFixed(2)}%`}}</span></view>
            </view>
            <view class="inComeRate">
              <view class="owner" :style="{background:'#FC7909',left: 0,width:`${(currentResult.inComeList[0].thisYear / (Number(currentResult.inComeList[0].thisYear) + Number(currentResult.inComeList[1].thisYear)))*100}%`}"></view>
              <view class="otherRate" :style="{background:'#F9DCC2',right: 0,width:`${(currentResult.inComeList[1].thisYear / (Number(currentResult.inComeList[0].thisYear) + Number(currentResult.inComeList[1].thisYear)))*100}%`}"></view>
            </view>
            <view class="rateType">
              <view class="rateItem">
                <view class="rateColor" style="background: #FC7909"></view>
                <span class="rateText">自营收入</span>
              </view>
              <view class="rateItem">
                <view class="rateColor" style="background: #F9DCC2"></view>
                <span class="rateText">其他收入</span>
              </view>
            </view>
          </view>

<!--          <view class="proportion">-->
<!--            <ProportionCharts :dataList="[currentResult.selfThisYear||0,currentResult.otherThisYear||0]" :colorList="['#FC7909', '#F9DCC2']" name="proportionCharts"/>-->
<!--          </view>-->
        </view>
        <view class="itemDetailSubtotal">
          <view class="itemSmallBox" v-for="(item,index) in currentResult.inComeList" :key="index">
<!--            <view class="xian"></view>-->
            <view class="itemSmallTop">
              <view class="leftBox">
                <view class="smallIcon">
                  <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/selfOperat.svg" />
                </view>
                <view style="display: flex;align-items: center">
                  <view class="smallTitle">{{ item.name }}</view>
                  <view class="notice" @click="incomeChildrenShow(item.name,index)">?
                    <view class="noticeBox" :style="{left: '10%',top:'20px'}" v-if="userRevenueSmallSum && index===selectInComeIndex">
                      <view v-if="userRevenueSmallSum" @click.stop="handleShowNotice('userRevenueSmallSum')">
                        <view>便利店、餐饮及客房的累计数</view>
<!--                        <view>完成率 = 本年累计自营收入 / 自营收入的年度预算<br/>{{ `(${$util.fmoney(item.ThisYearTotal,2)} / ${$util.fmoney(item.ThisYearBudget,2)})` }}</view>-->
<!--                        <view>{{ `本月占比 = ${thisMonth}月自营收入 / 本年累计自营收入(${$util.fmoney(item.ThisMonthIncome,2)} / ${$util.fmoney(item.ThisYearTotal,2)}) `}}</view> -->
                        <view>完成率 = 本年累计自营收入 / 自营收入的年度预算<br/>{{ `( ${item.thisYearReal||'-'} / ${item.thisYearBudgetReal||'-'} )` }}</view>
                        <view>{{ `本月占比 = ${thisMonth}月自营收入 / 本年累计自营收入( ${item.thisMonthReal||'-'} / ${item.thisYearReal||'-'} )`}}</view>
<!--                        <view>服务区自营小计：完成率=服务区自营收入 / 自营收入的年度预算<br/>{{ `${$util.fmoney(item.ServerpartIncome,2)} / ${$util.fmoney(item.ThisYearBudget,2)}` }}</view>-->
                        <view>服务区自营小计：城市店、批发团购及通道费的累计数</view>
<!--                        <view>分公司收入小计：完成率=分公司收入 / 自营收入的年度预算<br/>{{ `${$util.fmoney(item.FilialeIncome,2)} / ${$util.fmoney(item.ThisYearBudget,2)}` }}</view>-->
                      </view>
                    </view>
                    <view class="noticeBox" :style="{left: '10%',top:'20px'}" v-if="otherSmallSum && index===selectInComeIndex">
                      <view v-if="otherSmallSum" @click.stop="handleShowNotice('otherSmallSum')">
                        <view v-if="otherSmallSum" @click.stop="handleShowNotice('otherSmallSum')">
                          <view>场地租赁、物业及受托代管、公共服务补贴、营业外收入的累计数</view>
                          <!--                        <view>完成率=7月其他收入 / 其他收入的年度预算{{ `(${$util.fmoney(item.ThisYearTotal,2)}/ ${$util.fmoney(item.ThisYearBudget ,2)})` }}</view>-->
                          <!--                        <view>本月占比=7月其他收入 / 本年累计其他收入{{ `(${$util.fmoney(item.ThisMonthIncome ,2)}/ ${$util.fmoney(item.ThisYearTotal  ,2)})` }}</view>    -->
                          <view>{{ `完成率= ${thisMonth}月其他收入 / 其他收入的年度预算( ${item.thisMonthReal||'-'}/${item.thisYearBudgetReal||'-'} )` }}</view>
                          <view>{{ `本月占比 = ${thisMonth}月其他收入 / 本年累计其他收入( ${item.thisMonthReal||'-'}/${item.thisYearReal||'-'} )` }}</view>
                          <view>服务区租赁小计：商铺、充电桩、汽修、加油站的租赁累计收入</view>
                          <!--                        <view>服务区租赁小计完成率=服务区租赁累计收入 / 本年累计其他收入<br/>{{ `(${$util.fmoney(item.ServerpartIncome  ,2)}/ ${$util.fmoney(item.ThisYearBudget,2)})` }}</view>-->
                        </view>

                      </view>
                    </view>
                  </view>
                </view>
              </view>
              <view class="leftRight" @click="handleGoInComeDetail(index+1)">
                <text class="more">查看更多</text>
                <image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/moreIcon.svg" />
              </view>
            </view>

            <view class="itemSmallDetail">
              <view class="itemSmallLeftBox" >
                <OtherCharts :success="item.rate" :colorList="['#FC7909', '#F9DCC2']" :name="'selfRate'" />
                <text class="leftValue">{{ `${item.rate||'-'}%` }}</text>
              </view>
              <view class="itemSmallRightBox">
                <view class="rightTopItem">
                  <view class="itemDetail">
<!--                    <view class="detailValue" style="font-size: 26rpx">{{$util.fmoney(item.ThisYearTotal/10000,2)}}</view>-->
                    <view class="detailValue" >{{item.thisYear?$util.fmoney(item.thisYear,2):'-'}}</view>
                    <view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>
                  </view>
                  <view class="itemDetail">
                    <view class="detailValue"  style="text-align: right">
<!--                      {{$util.fmoney(item.ThisMonthIncome/10000,2)}}-->
                      {{item.thisMonth?$util.fmoney(item.thisMonth,2):'-'}}
                    </view>
                    <view class="detailTitle">
                      {{ `${thisMonth}月累计` }}
                      <text class="detailTitleUnit">/万元</text>
                    </view>
                  </view>
                </view>
                <view class="rightTopItem" style="margin-top: 32rpx">
                  <view class="itemDetail">
<!--                    <view class="detailValue">{{$util.fmoney(item.ThisYearBudget/10000,2)}}</view>-->
                    <view class="detailValue">{{item.thisYearBudget?$util.fmoney(item.thisYearBudget,2):'-'}}</view>
                    <view class="detailTitle">年度预算<text class="detailTitleUnit">/万元</text></view>
                  </view>
                  <view class="itemRight" style="text-align: right">
<!--                    <view class="rightValue">{{ `${item.ThisMonthIncomeRate||''}%` }}</view>-->
                    <view class="rightValue">{{ `${item.thisYearYOY || '-'}%` }}</view>
                    <view class="rightLabel">本月占比</view>
                  </view>
                </view>
              </view>
            </view>

<!--            <view class="smallSum">-->
<!--              <view class="smallSumItem">-->
<!--                <view class="smallSumLeft">-->
<!--                  <view class="smallSumItemBox"></view>-->
<!--                  <text class="smallTitle">{{ '便利店' }}</text>-->
<!--                </view>-->

<!--                <view class="smallSumRight" style="display: flex;align-items: center">-->
<!--                  <text class="successText" style="margin-left: 4rpx">完成率</text>-->
<!--&lt;!&ndash;                  <text class="successValue">{{ `${subItem.CompleteRate||''}%`}}</text>&ndash;&gt;-->
<!--                  <text class="successValue">{{ `${currentResult.selfStoreRate||'-'}%`}}</text>-->
<!--                </view>-->
<!--              </view>-->

<!--              <view class="smallSumItem" >-->
<!--                <view class="smallSumLeft" style="display: flex;align-items: center">-->
<!--                  <view class="smallSumItemBox"></view>-->
<!--                  <text class="smallTitle">{{'餐饮及客房'}}</text>-->
<!--                </view>-->

<!--                <view class="smallSumRight" style="display: flex;align-items: center">-->
<!--                  <text class="successText" style="margin-left: 4rpx">完成率</text>-->
<!--&lt;!&ndash;                  <text class="successValue">{{ `${item.FilialeCompleteRate ||''}%`}}</text>&ndash;&gt;-->
<!--                  <text class="successValue">{{ `${currentResult.selfRoomRate||'-'}%`}}</text>-->
<!--                </view>-->
<!--              </view>-->
<!--            </view>-->
          </view>


        </view>
      </view>

      <view class="expenditure" >
        <view class="itemBox">
          <view class="itemBoxTitle" style="color: #096EF7">支出合计</view>
          <image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/expenditure.png" />
          <view class="itemDetailBox">
            <view class="leftCharts">
<!--              <OtherCharts :success="pageDetail.Cost.CompleteRate" :colorList="['#1679FF', '#E7F1FF']" />-->
              <OtherCharts :success="currentResult.expenditureRatio" :colorList="['#1679FF', '#E7F1FF']" :name="'CompleteRate'" />
<!--              <text class="numberValue" style="color: #1679FF">{{`${pageDetail.Cost.CompleteRate || ''}%`}}</text>-->
              <text class="numberValue" style="color: #1679FF">{{`${currentResult.expenditureRatio}%`}}</text>
            </view>
            <view class="rightBox">
              <view class="rightBoxTop">
                <view class="itemTop">
<!--                  <text class="itemTopValue">{{$util.fmoney(pageDetail.Cost.ThisYearTotal/10000,2)}}</text>-->
                  <text class="itemTopValue">{{currentResult.expenditureThisYear?$util.fmoney(currentResult.expenditureThisYear,2):'-'}}</text>
                  <text class="itemTopTitle">本年累计<text class="itemTopUnit">/万元</text></text>
                </view>
<!--                <view class="itemRateBox">-->
<!--                  <view class="addRate">{{`${pageDetail.Cost.CostRate||''}%` }}</view>-->
<!--                  <view class="rateText">成本比</view>-->
<!--                </view>    -->
                <view class="itemRateBox">
<!--                  <view class="addRate">{{`${pageDetail.Cost.InOutRate||''}%` }}</view>-->
               <!--   <view class="addRate">{{`${currentResult.expenditureOutRatio}%` }}</view>
                  <view class="rateText">支出比</view> -->
                </view>
              </view>
              <view class="rightBoxTop" style="margin-top: 16px">
                <view class="itemTop">
<!--                  <text class="itemTopValue">{{$util.fmoney(pageDetail.Cost.ThisYearBudget/10000,2) }}</text>-->
                  <text class="itemTopValue">{{currentResult.expenditureThisYearBudget?$util.fmoney(currentResult.expenditureThisYearBudget,2):'-'}}</text>
                  <text class="itemTopTitle">年度预计<text class="itemTopUnit">/万元</text></text>
                </view>
                <view class="itemRateBox">
<!--                  <view class="addRate">{{ `${pageDetail.Cost.PlanRate||''}%`  }}</view>-->
<!--                  <view class="addRate">{{ `%`  }}</view>-->
<!--                  <view class="rateText">计划比</view>-->
                </view>
              </view>
            </view>
          </view>

          <view class="expenditureRateBox" @click="handleShowOutNotice">
            <view v-if="showOutNoitive" class="noticeRate">
              <view class="noticeView" v-for="(item,index) in currentResult.outList" :key="index">
                {{item.name.split('小计')[0]}}:<span>{{item.thisYear?$util.fmoney(item.thisYear):'-'}}</span>万元，<span>{{((item.thisYear / outAll)*100).toFixed(2)}}%</span>
              </view>
<!--              <view class="noticeView">营业成本:<span>{{currentResult.outList[0].thisYear}}</span>万元，<span>{{`${outFirst.toFixed(2)}%`}}</span></view>-->
<!--              <view class="noticeView">销售费用:<span>{{currentResult.outList[1].thisYear}}</span>万元，<span>{{`${outSecond.toFixed(2)}%`}}</span></view>-->
<!--              <view class="noticeView">管理费用:<span>{{currentResult.outList[2].thisYear}}</span>万元，<span>{{`${outThird.toFixed(2)}%`}}</span></view>-->
<!--              <view class="noticeView">财务费用:<span>{{currentResult.outList[3].thisYear}}</span>万元，<span>{{`${outFourth.toFixed(2)}%`}}</span></view>-->
            </view>
            <view class="expenditureRate">
              <view class="item" v-for="(item,index) in currentResult.outList" :key="index" :style="{
                left:index===0?0:index===1?`${outFirst}%`:index===2?`${outFirst+outSecond}%`:index===3?`${outFirst + outSecond + outThird}%`:'',
                width:index===0?outFirst+'%':index===1?outSecond+'%':index===2?outThird+'%':index===3?outFourth+'%':'',
                background:index===0?'#1679FF':index===1?'lightgreen':index===2?'#D6E7FD':index===3?'grey':''
              }"></view>
<!--              <view class="first" :style="{left:0,width: outFirst+'%',background:'#1679FF'}"></view>-->
<!--              <view class="second" :style="{left:outFirst+'%',width: outSecond+'%',background: 'lightgreen'}"></view>-->
<!--              <view class="third" :style="{left:(outFirst + outSecond)+'%',width: outThird+'%',background:'#D6E7FD'}"></view>-->
<!--              <view class="fourth" :style="{left:(outFirst + outSecond + outThird)+'%',width: outFourth+'%',background:'grey'}"></view>-->
            </view>
            <view class="rateType">
              <view class="rateItem" v-for="(item,index) in currentResult.outList" :key="index">
                <view class="rateColor" :style="{background: index===0?'#1679FF':index===1?'lightgreen':index===2?'#D6E7FD':index===3?'grey':''}"></view>
                <span class="rateText">{{item.name.split('小计')[0]}}</span>
              </view>


<!--              <view class="rateItem">-->
<!--                <view class="rateColor" style="background: #1679FF"></view>-->
<!--                <span class="rateText">营业成本</span>-->
<!--              </view>-->
<!--              <view class="rateItem">-->
<!--                <view class="rateColor" style="background: lightgreen"></view>-->
<!--                <span class="rateText">销售费用</span>-->
<!--              </view>-->
<!--              <view class="rateItem">-->
<!--                <view class="rateColor" style="background: #D6E7FD"></view>-->
<!--                <span class="rateText">管理费用</span>-->
<!--              </view>-->
<!--              <view class="rateItem">-->
<!--                <view class="rateColor" style="background: grey"></view>-->
<!--                <span class="rateText">财务费用</span>-->
<!--              </view>-->
            </view>
          </view>
        </view>
        <view class="itemDetailSubtotal">
          <view class="itemSmallBox" v-for="(item,index) in currentResult.outList" :key="index">
            <view class="itemSmallTop">
              <view class="leftBox">
                <view class="smallIcon">
                  <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/operateSum.svg" />
                </view>
                <view class="smallTitle">{{ item.name }}</view>
              </view>
              <view class="leftRight" @click="handleGoExpenditure(index+1)">
                <text class="more">查看更多</text>
                <image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/moreIcon.svg" />
              </view>
            </view>

            <view class="itemSmallDetail">
              <view class="itemSmallLeftBox">
<!--                <OtherCharts :success="item.CompleteRate" :colorList="['#1679FF', '#E7F1FF']" />-->
                <OtherCharts :success="item.rate" :colorList="['#1679FF', '#E7F1FF']" :name="'CompleteRate2'+index" />
                <text class="leftValue">{{`${item.rate}%`}}</text>
              </view>
              <view class="itemSmallRightBox">
                <view class="rightTopItem">
                  <view class="itemDetail">
<!--                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearTotal/10000,2) }}</view>-->
                    <view class="detailValue">{{ item.thisYear?$util.fmoney(item.thisYear,2):'-' }}</view>
                    <view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>
                  </view>
<!--                  <view class="itemRight">-->
<!--                    <view class="rightValue">{{`${item.CostRate ||''}%`}}</view>-->
<!--                    <view class="rightLabel">成本比</view>-->
<!--                  </view>                  -->
                  <view class="itemRight">
                    <view class="rightValue">{{ item.thisMonth?$util.fmoney(item.thisMonth,2):'-' }}</view>
<!--                    <view class="rightValue">{{`${item.PartRate  ||''}%`}}</view>-->
                    <view class="rightLabel">{{ `${thisMonth}月累计` }}<text class="detailTitleUnit">/万元</text></view>
                  </view>
                </view>
                <view class="rightTopItem" style="margin-top: 32rpx">
                  <view class="itemDetail">
<!--                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearBudget/10000,2) }}</view>-->
                    <view class="detailValue">{{ item.thisYearBudget?$util.fmoney(item.thisYearBudget,2):'-' }}</view>
                    <view class="detailTitle">年度预计<text class="detailTitleUnit">/万元</text></view>
                  </view>
                  <view class="itemRight">
                    <view class="rightValue">{{ `${item.thisYearYOY || '-'}%` }}</view>
                    <view class="rightLabel">本月占比</view>
                  </view>
<!--                  <view class="itemRight">-->
<!--                    <view class="rightValue">{{`${item.PlanRate  ||''}%`}}</view>-->
<!--                    <view class="rightLabel">计划比</view>-->
<!--                  </view>-->
                </view>
              </view>
            </view>
          </view>

<!--          <view class="itemSmallBox">-->
<!--            <view class="itemSmallTop">-->
<!--              <view class="leftBox">-->
<!--                <view class="smallIcon">-->
<!--                  <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/operateSum.svg" />-->
<!--                </view>-->
<!--                <view class="smallTitle">{{ `管理费用小计` }}</view>-->
<!--              </view>-->
<!--              <view class="leftRight" @click="handleGoExpenditure">-->
<!--                <text class="more">查看更多</text>-->
<!--                <image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/moreIcon.svg" />-->
<!--              </view>-->
<!--            </view>-->

<!--            <view class="itemSmallDetail">-->
<!--              <view class="itemSmallLeftBox">-->
<!--                <OtherCharts :success="64.57" :colorList="['#1679FF', '#E7F1FF']" :name="'rate2'+selectMonth" />-->
<!--                <text class="leftValue">{{`64.57%`}}</text>-->
<!--              </view>-->
<!--              <view class="itemSmallRightBox">-->
<!--                <view class="rightTopItem">-->
<!--                  <view class="itemDetail">-->
<!--&lt;!&ndash;                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearTotal/10000,2) }}</view>&ndash;&gt;-->
<!--                    <view class="detailValue">{{ '2,783.01' }}</view>-->
<!--                    <view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                  &lt;!&ndash;                  <view class="itemRight">&ndash;&gt;-->
<!--                  &lt;!&ndash;                    <view class="rightValue">{{`${item.CostRate ||''}%`}}</view>&ndash;&gt;-->
<!--                  &lt;!&ndash;                    <view class="rightLabel">成本比</view>&ndash;&gt;-->
<!--                  &lt;!&ndash;                  </view>                  &ndash;&gt;-->
<!--                  <view class="itemRight">-->
<!--&lt;!&ndash;                    <view class="rightValue">{{`${item.PartRate  ||''}%`}}</view>&ndash;&gt;-->
<!--                    <view class="rightValue">{{`220.00`}}</view>-->
<!--                    <view class="rightLabel">{{ `${thisMonth}月累计` }}<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                </view>-->
<!--                <view class="rightTopItem" style="margin-top: 32rpx">-->
<!--                  <view class="itemDetail">-->
<!--&lt;!&ndash;                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearBudget/10000,2) }}</view>&ndash;&gt;-->
<!--                    <view class="detailValue">{{ '4,310.00' }}</view>-->
<!--                    <view class="detailTitle">年度预计<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                  <view class="itemRight">-->
<!--                    <view class="rightValue">{{`7.91%`}}</view>-->
<!--                    <view class="rightLabel">本月占比</view>-->
<!--                  </view>-->
<!--                </view>-->
<!--              </view>-->
<!--            </view>-->
<!--          </view>-->

<!--          <view class="itemSmallBox">-->
<!--            <view class="itemSmallTop">-->
<!--              <view class="leftBox">-->
<!--                <view class="smallIcon">-->
<!--                  <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/operateSum.svg" />-->
<!--                </view>-->
<!--                <view class="smallTitle">{{ `销售费用小计` }}</view>-->
<!--              </view>-->
<!--              <view class="leftRight" @click="handleGoExpenditure">-->
<!--                <text class="more">查看更多</text>-->
<!--                <image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/moreIcon.svg" />-->
<!--              </view>-->
<!--            </view>-->

<!--            <view class="itemSmallDetail">-->
<!--              <view class="itemSmallLeftBox">-->
<!--                <OtherCharts :success="74.54" :colorList="['#1679FF', '#E7F1FF']" :name="'rate3'+selectMonth" />-->
<!--&lt;!&ndash;                <text class="leftValue">{{`${item.CompleteRate||''}%`}}</text>&ndash;&gt;-->
<!--                <text class="leftValue">{{`74.54%`}}</text>-->
<!--              </view>-->
<!--              <view class="itemSmallRightBox">-->
<!--                <view class="rightTopItem">-->
<!--                  <view class="itemDetail">-->
<!--&lt;!&ndash;                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearTotal/10000,2) }}</view>&ndash;&gt;-->
<!--                    <view class="detailValue">{{ '33,998.37' }}</view>-->
<!--                    <view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                  &lt;!&ndash;                  <view class="itemRight">&ndash;&gt;-->
<!--                  &lt;!&ndash;                    <view class="rightValue">{{`${item.CostRate ||''}%`}}</view>&ndash;&gt;-->
<!--                  &lt;!&ndash;                    <view class="rightLabel">成本比</view>&ndash;&gt;-->
<!--                  &lt;!&ndash;                  </view>                  &ndash;&gt;-->
<!--                  <view class="itemRight">-->
<!--&lt;!&ndash;                    <view class="rightValue">{{`${item.PartRate  ||''}%`}}</view>&ndash;&gt;-->
<!--                    <view class="rightValue">{{`3,548.00`}}</view>-->
<!--                    <view class="rightLabel">{{ `${thisMonth}月累计` }}<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                </view>-->
<!--                <view class="rightTopItem" style="margin-top: 32rpx">-->
<!--                  <view class="itemDetail">-->
<!--&lt;!&ndash;                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearBudget/10000,2) }}</view>&ndash;&gt;-->
<!--                    <view class="detailValue">{{ '45,611.00' }}</view>-->
<!--                    <view class="detailTitle">年度预计<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                  <view class="itemRight">-->
<!--                    <view class="rightValue">{{`10.44%`}}</view>-->
<!--                    <view class="rightLabel">本月占比</view>-->
<!--                  </view>-->
<!--                </view>-->
<!--              </view>-->
<!--            </view>-->

<!--          </view>-->

<!--          <view class="itemSmallBox">-->
<!--            <view class="itemSmallTop">-->
<!--              <view class="leftBox">-->
<!--                <view class="smallIcon">-->
<!--                  <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/operateSum.svg" />-->
<!--                </view>-->
<!--                <view class="smallTitle">{{ `其他费用小计` }}</view>-->
<!--              </view>-->
<!--              <view class="leftRight" @click="handleGoExpenditure">-->
<!--                <text class="more">查看更多</text>-->
<!--                <image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/moreIcon.svg" />-->
<!--              </view>-->
<!--            </view>-->

<!--            <view class="itemSmallDetail">-->
<!--              <view class="itemSmallLeftBox">-->
<!--                <OtherCharts :success="59.46" :colorList="['#1679FF', '#E7F1FF']" :name="'rate4'+selectMonth" />-->
<!--                <text class="leftValue">{{`59.46%`}}</text>-->
<!--              </view>-->
<!--              <view class="itemSmallRightBox">-->
<!--                <view class="rightTopItem">-->
<!--                  <view class="itemDetail">-->
<!--&lt;!&ndash;                    <view class="detailValue">{{$util.fmoney(pageDetail.Cost.ThisYearTotal/10000,2) }}</view>&ndash;&gt;-->
<!--                    <view class="detailValue">{{ '437.00' }}</view>-->
<!--                    <view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                  &lt;!&ndash;                  <view class="itemRight">&ndash;&gt;-->
<!--                  &lt;!&ndash;                    <view class="rightValue">{{`${item.CostRate ||''}%`}}</view>&ndash;&gt;-->
<!--                  &lt;!&ndash;                    <view class="rightLabel">成本比</view>&ndash;&gt;-->
<!--                  &lt;!&ndash;                  </view>                  &ndash;&gt;-->
<!--                  <view class="itemRight">-->
<!--&lt;!&ndash;                    <view class="rightValue">{{`${item.PartRate  ||''}%`}}</view>&ndash;&gt;-->
<!--                    <view class="rightValue">{{`-36.00`}}</view>-->
<!--                    <view class="rightLabel">{{ `${thisMonth}月累计` }}<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                </view>-->
<!--                <view class="rightTopItem" style="margin-top: 32rpx">-->
<!--                  <view class="itemDetail">-->
<!--                    <view class="detailValue">{{ '735.00' }}</view>-->
<!--                    <view class="detailTitle">年度预计<text class="detailTitleUnit">/万元</text></view>-->
<!--                  </view>-->
<!--                  <view class="itemRight">-->
<!--                    <view class="rightValue">{{`-8.24%`}}</view>-->
<!--                    <view class="rightLabel">本月占比</view>-->
<!--                  </view>-->
<!--                </view>-->
<!--              </view>-->
<!--            </view>-->
<!--          </view>-->
        </view>
      </view>

    </view>
  </view>
</template>
<script>
import YearCharts from "./component/yearCharts.vue";
import OtherCharts from './component/otherCharts.vue'
import ProportionCharts from './component/proportionCharts.vue'
import request from '@/util/index.js'
export default {
  components:{YearCharts,OtherCharts,ProportionCharts},
  data(){
    return {
      windowHeight: null,
      statusBarHeight: null,
      menu:{},
      number:0,
      firstBox1st:0, // 第一个框的第一个图表
      firstBox2st:0, // 第二个框的第二个图表
      secondBoxProgress: 141.45,// 年度累计利润 的完成率
      thirdBoxRate: 0,// 年度营收累计的图表百分比
      firthBox1stRate:0 ,// 收入合计的第一个图表百分比
      firthBox2stRate:0,// 收入合计的第二个图表百分比
      firthBox3stRate:0,// 收入合计的第三个图表百分比
      showCost:false,// 成本比
      showPay:false,// 支出比
      showMonthRevenue:false,// 点击本月收入显示
      showMonthExpenditure:false,// 本月支出
      successRate:false,// 累计利润的完成率
      thisYearSum:false,// 本年累计利润总额
      budget:false,// 年度预算
      showNetProfit:false,// 净利润
      showYearNetProfit:false,//净利润完成度
      revenueAll:false,//营业累计收入
      revenueSuccess:false,//完成率
      revenueCostRate:false,// 成本比
      budgetSum:false,// 本年累计同比值
      incomeSuccess:false,//收入完成率
      nowYearSum:false,// 本年累计
      nowYearRevenueCost:false,// 本年累计收入的成本比
      nowYearBudget:false,//年度预算
      nowYearSumRate:false,// 年度预算的同比
      userRevenueSmallSum:false,// 自营收入小计
      compareYesSuccessRate:false,// 自营计划的第一个图表
      thisMonthSum:false,//本月累计
      thisMonthRevenueRate:false,//本月占比
      thisMonthSmallSumSuccess1st:false,// 本月小计的完成率
      thisMonthSmallSumSuccess2st:false,// 本月小计的完成率
      thisMonthSmallSumSuccess2stTitle:false,//第二个本月小计的完成率的标题
      otherSmallSum:false,// 其它收入小计
      otherLeftChar:false,// 其它收入的左侧
      otherMonthSum:false,// 其它收入的本月累计
      otherThisMonthRate:false,//其它收入的本月占比
      otherThisMonthSuccess:false,//其它收入的完成率
      serviceSmallSum:false,// 服务区租赁小计
      pageWidth:0,// 手机的宽度
      single:'', // 时间选择器选择的时间
      startDate:'',// 开始时间
      endData:'', // 结束时间
      thisYear:'',// 当前年份
      thisMonth:'',// 当前月份
      pageDetail:'',// 接口返回的数据
      childrenShow:false,// 收入合计的显示框
      CostInRate:44.36,
      InOutRate:56.29,
      monthList:[7,8,9,10,11],// 月份列表
      selectMonth: 0,// 当前选中的月份
      monthResult:[
        //   7月
        {
          month:7,// 月份
          costRatio:39.39,// 成本比
          expendRatio:167.27,// 支出比
          thisMonthInCome:'7,099.41',// 本月收入
          thisMonthExpend:'4,244.22',// 本月支出
          costYear:'+50.59',// 成本同比
          expendYear:'+9.12',// 支出同比
          profitRate:141.45,// 累计利润完成率
          profitThisYear:'389.00',// 本年累计
          profitThisYearReal:'389.00',// 本年累计详情
          profitBudgetThisYear:'275.00',// 年度预算
          profitBudgetThisYearReal:'275.00',// 年度预算详情
          profitYOY:'+105.59',// 累计利润同比
          thisYearNetProfit:'292.00',// 净利润
          thisYearNetProfitReal:'292.00',// 净利润详情
          thisYearNetProfitBudget:'156.00',// 净利润预算
          thisYearNetProfitBudgetReal:'156.00',// 净利润预算详情
          thisYearNetProfitSuccess:'187.18',// 净利润完成度
          inComeSuccess:65.18,// 收入完成率
          inComeThisYear:'47,376.60',// 本年收入累计
          inComeThisYearReal:'473,766,021.71',// 本年收入累计详情
          thisYearCostRatio:38.11,// 本年成本比
          thisYearInComeBudget:'72,687.00',// 年度收入预算
          thisYearInComeBudgetReal:'726,870,000.00',// 年度收入预算详情
          costReal:'180,563,832.50',// 累计成本
          thisYearInComeYOY:'+48.54',// 年度收入同比
          selfStoreRate:'',// 便利店完成率
          selfRoomRate:'',// 餐饮客房完成率
          leaseRate:'35.99',// 租赁完成率
          propertyRate:'',//物业及受托代管
          showExpenditure:false,// 是否显示支出
          inComeList:[
            {
              name:'自营收入小计',
              rate:71.70,// 自营收入小计完成率
              thisYear:'33,978.75',// 自营收入小计本年累计
              thisYearReal:'339,787,552.17',// 自营收入小计本年累计详情
              thisYearRealNumber:339787552.17,// 自营收入小计本年累计详情
              thisMonth:'5,070.82',// 自营收入小计本月
              thisMonthReal:'50,708,267.25',// 自营收入小计本月详情
              thisYearBudget:'47,392',// 自营收入小计年度预算
              thisYearBudgetReal:'473,920,000.00',// 自营收入小计年度预算详情
              thisMonthRate:'14.92',// 自营收入小计本月占比
            },
            {
              name:'其他收入',
              rate:52.97,// 其他收入小计完成率
              thisYear:'13,397.84',// 其他收入小计本年累计
              thisYearReal:'133,978,469.54',// 其他收入小计本年累计详情
              thisYearRealNumber:133978469.54,// 其他收入小计本年累计详情
              thisMonth:'2,028.58',// 其他收入小计本月
              thisMonthReal:'20,285,867.69',// 其他收入小计本月详情
              otherThisMonthReal:20285867.69,// 其他收入小计本月详情
              thisYearBudget:'25,295.00',//其他收入小计年度预算
              thisYearBudgetReal:'252,950,000.00',//其他收入小计年度预算详情
              otherThisYearBudgetReal:252950000,//其他收入小计年度预算详情
              thisMonthRate:'15.14',//其他收入预算本月占比
            }
          ],// 收入合计
        },
        {
          month:8,// 月份
          showExpenditure:false,// 是否显示支出
        },
        {
          month:9,// 月份
          costRatio:44.36,// 成本比
          expendRatio:56.29,// 支出比
          thisMonthInCome:'6,760.00',// 本月收入
          thisMonthExpend:'3805.24',// 本月支出
          costYear:'32.86',// 成本同比
          expendYear:'65.62',// 支出同比
          profitRate:88.43,// 累计利润完成率
          profitThisYear:'486.00',// 本年累计
          profitThisYearReal:'486.00',// 本年累计详情
          profitBudgetThisYear:'550.00',// 年度预算
          profitBudgetThisYearReal:'550.00',// 年度预算详情
          profitYOY:'+194',// 累计利润同比
          thisYearNetProfit:'486.00',// 净利润
          thisYearNetProfitReal:'486.00',// 净利润详情
          thisYearNetProfitBudget:'550.00',// 净利润预算
          thisYearNetProfitBudgetReal:'550.00',// 净利润预算详情
          thisYearNetProfitSuccess:'88.43',// 净利润完成度
          inComeSuccess:77.33,// 收入完成率
          inComeThisYear:'61,903.00',// 本年收入累计
          inComeThisYearReal:'619,033,365.94',// 本年收入累计详情
          thisYearCostRatio:39.41,// 本年成本比
          thisYearInComeBudget:'80,050.00',// 年度收入预算
          thisYearInComeBudgetReal:'800,500,000.00',// 年度收入预算详情
          costReal:'243,936,015.66',// 累计成本详情
          thisYearInComeYOY:'70.92',// 年度收入同比
          selfStoreRate:'83.5',// 便利店完成率
          selfRoomRate:'84.17',// 餐饮客房完成率
          leaseRate:'63.83',// 租赁完成率
          propertyRate:'67.83',//物业及受托代管
          showExpenditure:true,// 是否显示支出
          expenditureRatio:77.09,//支出完成率
          expenditureOutRatio:77.09,//支出比
          expenditureThisYear:'61,611.98',// 本年累计支出
          expenditureThisYearBudget:'79,924.00',// 本年预计支出
          inComeList: [
            {
              name:'自营收入小计',
              rate:83.61,// 自营收入小计完成率
              thisYear:'44,992.73',// 自营收入小计本年累计
              thisYearReal:'449,927,347.31',// 自营收入小计本年累计详情
              thisYearRealNumber:449927347.31,// 自营收入小计本年累计详情
              thisMonth:'5,084.31',// 自营收入小计本月
              thisMonthReal:'50,843,071.60',// 自营收入小计本月详情
              thisYearBudget:'53,814.00',// 自营收入小计年度预算
              thisYearBudgetReal:'538,140,000.00',// 自营收入小计年度预算详情
              thisMonthRate:'11.3',// 自营收入小计本月占比
            },
            {
              name:'其他收入',
              rate:64.46,// 其他收入小计完成率
              thisYear:'16,910.60',// 其他收入小计本年累计
              thisYearReal:'16,758,130.53',// 其他收入小计本年累计详情
              thisYearRealNumber:16758130.53,// 其他收入小计本年累计详情
              thisMonth:'1,675.81',// 其他收入小计本月
              thisMonthReal:'169,106,018.63',// 其他收入小计本月详情
              thisYearBudget:'26,236.00',//其他收入小计年度预算
              thisYearBudgetReal:'262,360,000.00',//其他收入小计年度预算详情
              thisMonthRate:'9.91',//其他收入预算本月占比
            }
          ],// 收入合计
          outList:[
            {
              name:'营业成本小计',// 名称
              expenditureCostRate:84.13,// 营业成本小计完成率
              expenditureCostThisYear:'24,393.60',// 营业成本小计本年累计
              expenditureCostThisYearNumber:24393.60,// 营业成本小计本年累计
              expenditureCostThisMonth:'2,999.00',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'28,994.00',// 营业成本小计年度预计
              expenditureCostThisRate:'12.29%',// 营业成本小计本月占比
            },
            {
              name:'销售费用小计',// 名称
              expenditureCostRate:74.54,// 营业成本小计完成率
              expenditureCostThisYear:'33,998.37',// 营业成本小计本年累计
              expenditureCostThisYearNumber:33998.37,// 营业成本小计本年累计
              expenditureCostThisMonth:'3,548.00',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'45,611.00',// 营业成本小计年度预计
              expenditureCostThisRate:'10.44%',// 营业成本小计本月占比
            },
            {
              name:'管理费用小计',// 名称
              expenditureCostRate:64.57,// 营业成本小计完成率
              expenditureCostThisYear:'2,783.01',// 营业成本小计本年累计
              expenditureCostThisYearNumber:2783.01,// 营业成本小计本年累计
              expenditureCostThisMonth:'220.00',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'4,310.00',// 营业成本小计年度预计
              expenditureCostThisRate:'7.91%',// 营业成本小计本月占比
            },
            {
              name:'财务费用小计',// 名称
              expenditureCostRate:59.46,// 营业成本小计完成率
              expenditureCostThisYear:'437.00',// 营业成本小计本年累计
              expenditureCostThisYearNumber:437.00,// 营业成本小计本年累计
              expenditureCostThisMonth:'-36.00',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'735.00',// 营业成本小计年度预计
              expenditureCostThisRate:'-8.24%',// 营业成本小计本月占比
            }
          ],// 支出合计
        },
        {
          month:10,// 月份
          costRatio:43.08,// 成本比
          expendRatio:82.00,// 支出比
          thisMonthInCome:'7,535.00',// 本月收入
          thisMonthExpend:'4,188.30',// 本月支出
          costYear:'46.82',// 成本同比
          expendYear:'71.38',// 支出同比
          profitRate:99.47,// 累计利润完成率
          profitThisYear:'547.00',// 本年累计
          profitThisYearReal:'547.00',// 本年累计详情
          profitBudgetThisYear:'550.00',// 年度预算
          profitBudgetThisYearReal:'550.00',// 年度预算详情
          profitYOY:'+105.14',// 累计利润同比
          thisYearNetProfit:'407.00',// 净利润
          thisYearNetProfitReal:'407.00',// 净利润详情
          thisYearNetProfitBudget:'356.00',// 净利润预算
          thisYearNetProfitBudgetReal:'356.00',// 净利润预算详情
          thisYearNetProfitSuccess:'114.35',// 净利润完成度
          inComeSuccess:86.74,// 收入完成率
          inComeThisYear:'69,438.38',// 本年收入累计
          inComeThisYearReal:'694,383,825.61',// 本年收入累计详情
          thisYearCostRatio:39.81,// 本年成本比
          thisYearInComeBudget:'80,050',// 年度收入预算
          thisYearInComeBudgetReal:'800,500,000.00',// 年度收入预算详情
          costReal:'289,940,000.00',// 累计成本详情
          thisYearInComeYOY:'44.08',// 年度收入同比
          leaseRate:'70.85',// 租赁完成率
          propertyRate:'75.36',//物业及受托代管
          showExpenditure:true,// 是否显示支出
          expenditureRatio:86.72,//支出完成率
          expenditureOutRatio:86.72,//支出比
          expenditureThisYear:'69,089.29',// 本年累计支出
          expenditureThisYearBudget:'79,670.00',// 本年预计支出
          selfStoreRate:'93.24',// 便利店完成率
          selfRoomRate:'97.81',// 餐饮客房完成率
          inComeList:[
            {
              name:'自营收入小计',
              rate:93.96,// 自营收入小计完成率
              thisYear:'50,563.57',// 自营收入小计本年累计
              thisYearReal:'505,635,722.50',// 自营收入小计本年累计详情
              thisYearRealNumber:505635722.50,// 自营收入小计本年累计详情
              thisMonth:'5,570.84',// 自营收入小计本月
              thisMonthReal:'55,708,375.34',// 自营收入小计本月详情
              thisYearBudget:'53,814',// 自营收入小计年度预算
              thisYearBudgetReal:'538,140,000.00',// 自营收入小计年度预算详情
              thisMonthRate:'11.02',// 自营收入小计本月占比
            },
            {
              name: '其他收入',
              rate:'71.94',// 其他收入小计完成率
              thisYear:'18,874.81',// 其他收入小计本年累计
              thisYearReal:'188,748,102.96',// 其他收入小计本年累计详情
              thisYearRealNumber:188748102.96,// 其他收入小计本年累计详情
              thisMonth:'196.21',// 其他收入小计本月
              thisMonthReal:'19,642,084.33',// 其他收入小计本月详情
              thisYearBudget:'26,236.00',//其他收入小计年度预算
              thisYearBudgetReal:'262,360,000.00',//其他收入小计年度预算详情
              thisMonthRate:'10.41',//其他收入预算本月占比
            }
          ],// 收入合计
          outList:[
            {
              name:'营业成本小计',// 名称
              expenditureCostRate:95.33,// 营业成本小计完成率
              expenditureCostThisYear:'27,639.61',// 营业成本小计本年累计
              expenditureCostThisYearNumber:27639.61,// 营业成本小计本年累计
              expenditureCostThisMonth:'3,246.00',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'28,994.00',// 营业成本小计年度预计
              expenditureCostThisRate:'11.74%',// 营业成本小计本月占比
            },
            {
              name:'销售费用小计',// 名称
              expenditureCostRate:82.73,// 营业成本小计完成率
              expenditureCostThisYear:'37,736.25',// 营业成本小计本年累计
              expenditureCostThisYearNumber:37736.25,// 营业成本小计本年累计
              expenditureCostThisMonth:'3,737.88',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'45,611.00',// 营业成本小计年度预计
              expenditureCostThisRate:'9.91%',// 营业成本小计本月占比
            },
            {
              name:'管理费用小计',// 名称
              expenditureCostRate:75.58,// 营业成本小计完成率
              expenditureCostThisYear:'3,257.43',// 营业成本小计本年累计
              expenditureCostThisYearNumber:3257.43,// 营业成本小计本年累计
              expenditureCostThisMonth:'474.41',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'4,310.00',// 营业成本小计年度预计
              expenditureCostThisRate:'14.56%',// 营业成本小计本月占比
            },
            {
              name:'财务费用小计',// 名称
              expenditureCostRate:60.40,// 营业成本小计完成率
              expenditureCostThisYear:'456.00',// 营业成本小计本年累计
              expenditureCostThisYearNumber:456.00,// 营业成本小计本年累计
              expenditureCostThisMonth:'18.00',// 营业成本小计本月累计
              expenditureCostThisYearBudget:'735.00',// 营业成本小计年度预计
              expenditureCostThisRate:'3.95%',// 营业成本小计本月占比
            }
          ],// 支出合计
        }
      ],// 78910月份的数据
      currentResult:{},// 选择的数据
      outAll:0,// 选择的月 本年支出累计的和
      outFirst:0,// 选择的月 第一个
      outSecond:0,// 选择的月 第二个
      outThird:0,// 选择的月 第三个
      outFourth:0,// 选择的月 第四个
      showInComeNotice:false,// 收入的悬浮框
      showOutNoitive:false,
      selectInComeIndex:0
    }
  },
  onLoad(){
    //  获取手机参数对页面进行适配
    let systemInfo = uni.getSystemInfoSync()
    this.pageWidth = systemInfo.windowWidth
    this.statusBarHeight = Number(systemInfo.statusBarHeight)
    this.menu = uni.getMenuButtonBoundingClientRect()
    let _this = this
    // 延迟时间 相当于接口 把数据给图表组件
    setTimeout(()=>{
      _this.number = 40
      _this.firstBox1st = 39.39
      _this.firstBox2st = 167.27
      _this.thirdBoxRate = 65.12
      _this.firthBox1stRate = 65.18
      _this.firthBox2stRate = 71.70
      _this.firthBox3stRate = 52.97
    },1000)

    // 设置查询条件的开始时间和结束时间
    const date = new Date()
    let y = date.getFullYear()
    let m = date.getMonth()+1
    this.thisYear = y
    this.startDate = `${y}-07`
    this.endData = `${y}-11`
    this.single =  `${y}-07`
    this.thisMonth = '11'
    // 请求的方法
    // this.selectMonth = 0
    setTimeout(()=>{
      // this.handleChangeSwiper({target:{current:3}})
      this.single = `${y}-11`
      this.thisMonth = '11'
      this.thisYear = this.single.split('-')[0]
      this.thisMonth = this.single.split('-')[1]
      if (this.thisMonth.indexOf('7')!==-1){
        this.selectMonth = 0
      }else if(this.thisMonth.indexOf('8')!==-1){
        this.selectMonth = 1
      }else if(this.thisMonth.indexOf('9')!==-1){
        this.selectMonth = 2
      }else if(this.thisMonth.indexOf('10')!==-1){
        this.selectMonth = 3
      }else if(this.thisMonth.indexOf('11')!==-1){
        this.selectMonth = 4
      }
    },500)
    // this.currentResult = this.monthResult[this.selectMonth]
  },
  methods:{
    // 点击出现备注
    handleShowNotice(type){
      switch (type){
        case 'showCost':
          this.showCost = !this.showCost
          break
        case 'showPay':
          this.showPay = !this.showPay
          break
        case 'showMonthRevenue':
          this.showMonthRevenue = !this.showMonthRevenue
          break
        case 'showMonthExpenditure':
          this.showMonthExpenditure = !this.showMonthExpenditure
          break
        case 'successRate':
          this.successRate = !this.successRate
          break
        case 'thisYearSum':
          this.thisYearSum = !this.thisYearSum
          break
        case 'budget':
          this.budget = !this.budget
          break
        case 'showNetProfit':
          this.showNetProfit = !this.showNetProfit
          break
        case 'showYearNetProfit':
          this.showYearNetProfit = !this.showYearNetProfit
          break
        case 'revenueAll':
          this.revenueAll = !this.revenueAll
          break
        case 'revenueSuccess':
          this.revenueSuccess = !this.revenueSuccess
          break
        case 'revenueCostRate':
          this.revenueCostRate = !this.revenueCostRate
          break
        case 'budgetSum':
          this.budgetSum = !this.budgetSum
          break
        case 'incomeSuccess':
          this.incomeSuccess = !this.incomeSuccess
          break
        case 'nowYearSum':
          this.nowYearSum = !this.nowYearSum
          break
        case 'nowYearRevenueCost':
          this.nowYearRevenueCost = !this.nowYearRevenueCost
          break
        case 'nowYearBudget':
          this.nowYearBudget = !this.nowYearBudget
          break
        case 'nowYearSumRate':
          this.nowYearSumRate = !this.nowYearSumRate
          break
        case 'userRevenueSmallSum':
          this.userRevenueSmallSum = !this.userRevenueSmallSum
          break
        case 'compareYesSuccessRate':
          this.compareYesSuccessRate = !this.compareYesSuccessRate
          break
        case 'thisMonthSum':
          this.thisMonthSum = !this.thisMonthSum
          break
        case 'thisMonthRevenueRate':
          this.thisMonthRevenueRate = !this.thisMonthRevenueRate
          break
        case 'thisMonthSmallSumSuccess1st':
          this.thisMonthSmallSumSuccess1st = !this.thisMonthSmallSumSuccess1st
          break
        case 'thisMonthSmallSumSuccess2st':
          this.thisMonthSmallSumSuccess2st = !this.thisMonthSmallSumSuccess2st
          break
        case 'thisMonthSmallSumSuccess2stTitle':
          this.thisMonthSmallSumSuccess2stTitle = !this.thisMonthSmallSumSuccess2stTitle
          break
        case 'otherSmallSum':
          this.otherSmallSum = !this.otherSmallSum
          break
        case 'false':
          this.showCost = false
          this.showPay = false
          this.showMonthRevenue = false
          this.showMonthExpenditure = false
          this.successRate = false
          this.thisYearSum = false
          this.budget = false
          this.showNetProfit = false
          this.showYearNetProfit = false
          this.revenueAll = false
          this.revenueSuccess = false
          this.revenueCostRate = false
          this.budgetSum = false
          this.incomeSuccess = false
          this.nowYearSum = false
          this.nowYearRevenueCost = false
          this.nowYearBudget = false
          this.nowYearSumRate = false
          this.userRevenueSmallSum = false
          this.compareYesSuccessRate = false
          this.thisMonthSum = false
          this.thisMonthRevenueRate = false
          this.thisMonthSmallSumSuccess1st = false
          this.thisMonthSmallSumSuccess2st = false
          this.thisMonthSmallSumSuccess2stTitle = false
          this.otherSmallSum = false
      }
    },
    handleShowNotice2(type){
      switch(type){
        case 'otherLeftChar':
          this.otherLeftChar = !this.otherLeftChar
              break
        case 'otherMonthSum':
          this.otherMonthSum = !this.otherMonthSum
          break
        case 'otherThisMonthRate':
          this.otherThisMonthRate = !this.otherThisMonthRate
          break
        case 'otherThisMonthSuccess':
          this.otherThisMonthSuccess = !this.otherThisMonthSuccess
          break
        case 'serviceSmallSum':
          this.serviceSmallSum = !this.serviceSmallSum
          break
        case 'false':
          this.otherLeftChar = false
          this.otherMonthSum = false
          this.otherThisMonthRate = false
          this.otherThisMonthSuccess = false
          this.serviceSmallSum = false
      }
      this.showInComeNotice = false
      this.showOutNoitive = false
    },
    // 返回按钮的方法
    handleBack(){
      uni.switchTab({
        url: '/pages/index/index'
      })
    },
    // 进入收入详情
    handleGoInComeDetail(type){
      uni.navigateTo({
        url: `/pages/revenue/incomeDetail?month=${this.thisMonth}&type=${type}`
      });
    },
    // 进入支出详情
    handleGoExpenditure(type){
      uni.navigateTo({
        url: `/pages/revenue/expenditureDetail?month=${this.thisMonth}&type=${type}`
      });
    },

    // 修改时间的事件
    bindDateChange(e){
      this.single = e.detail.value
      this.thisYear = e.detail.value.split('-')[0]
      this.thisMonth = e.detail.value.split('-')[1]
      if (this.thisMonth.indexOf('7')!==-1){
        this.selectMonth = 0
      }else if(this.thisMonth.indexOf('8')!==-1){
        this.selectMonth = 1
      }else if(this.thisMonth.indexOf('9')!==-1){
        this.selectMonth = 2
      }else if(this.thisMonth.indexOf('10')!==-1){
        this.selectMonth = 3
      }else if(this.thisMonth.indexOf('11')!==-1){
        this.selectMonth = 4
      }
      // let sum = 0
      // this.currentResult.outList.forEach(item=>{
      //   sum+=item.expenditureCostThisYearNumber
      // })
      // this.outAll = sum
      // this.outFirst = (this.currentResult.outList[0].expenditureCostThisYearNumber/sum)*100
      // this.outSecond = (this.currentResult.outList[1].expenditureCostThisYearNumber/sum)*100
      // this.outThird = (this.currentResult.outList[2].expenditureCostThisYearNumber/sum)*100
      // this.outFourth = (this.currentResult.outList[3].expenditureCostThisYearNumber/sum)*100
    },
    // 收入合计点击子项出现的悬浮框
    incomeChildrenShow(item,index){
      this.selectInComeIndex = index
      if (item==='自营收入小计'){
        this.handleShowNotice('userRevenueSmallSum')
      }else{
        this.handleShowNotice('otherSmallSum')
      }
    },
    // 滑动swiper的方法
    handleChangeSwiper(e){
      this.selectMonth = e.target.current
      this.thisMonth = this.monthList[this.selectMonth]
      this.single =  `${this.thisYear}-${this.thisMonth<10?'0'+this.thisMonth:this.thisMonth}`
      // this.currentResult = this.monthResult[this.selectMonth]
      this.handleGetPageData()
    },
    // 拿到数据的方法
    async handleGetPageData(){
      uni.showLoading({
        title:'正在加载'
      })
      const date = new Date(this.single)
      const y = date.getFullYear()
      let m = date.getMonth() + 1
      const req = {
        Month:`${y}${m}`
      }
      // const data = await request.$webGet('EShangApiMain/Budget/GetbudgetProjectReport',req)
      const data = await request.$webGet('EShangApiMain/Budget/GetbudgetProjectReportDynamic',req)
      this.currentResult = data.Result_Data
      let sum = 0
      console.log('this.currentResult',this.currentResult)
      if (this.currentResult.outList && this.currentResult.outList.length>0){
        this.currentResult.outList.forEach(item=>{
          sum+=Number(item.thisYear)
        })
        this.outAll = sum
        this.currentResult.outList.forEach((item,index)=>{
          if(index===0){
            this.outFirst = (Number(item.thisYear)/sum)*100
          }else if(index===1){
            this.outSecond = (Number(item.thisYear)/sum)*100
          }else if(index===2){
            this.outThird = (Number(item.thisYear)/sum)*100
          }else if (index===3){
            this.outFourth = (Number(item.thisYear)/sum)*100
          }
        })

        // this.outSecond = (Number(this.currentResult.outList[1].thisYear)/sum)*100
        // this.outThird = (Number(this.currentResult.outList[2].thisYear)/sum)*100
        // this.outFourth = (Number(this.currentResult.outList[3].thisYear)/sum)*100
      }
      uni.hideLoading()
    },
    // 显示收入合计的提示
    handleShowInComeNotice(){
      this.showInComeNotice = !this.showInComeNotice
    },
    handleShowOutNotice(){
      this.showOutNoitive = !this.showOutNoitive
    }
  }
}
</script>
<style scoped lang="scss">
@import '/static/public/fontRevenue/stylesheet.css';
.main{
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  .meng{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;left: 0;
    z-index: 20;
  }
  .header{
    width: 100%;
    box-sizing: border-box;
    background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/revenyeBg.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 0 0;
    .headerBg{
      width: 100%;
      position: relative;
      top: 0;left: 0;
      height: 564rpx;
    }
    .headerTop{
      width: 100%;
      position: fixed;
      display: flex;
      top: 0;
      align-items: center;
      background-image:url("https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/revenyeBg.png");
      background-repeat: no-repeat;
      background-size: 100% auto;
      background-position:0 0;
      background-color: #fff;
      z-index: 10;
      .headerBox{
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;

        .headerBg{
          width: 100%;
          position: absolute;
          top: 0;left: 0;
          height: 564rpx;
        }
        .imageBox{
          width: 100%;
          position: absolute;
          bottom: 0;
          display: flex;
          align-items: center;
        }
        .backIcon{
          width: 48rpx;
          height: 48rpx;
          margin-left: 32rpx;
        }
      }

    }
    .pageTitle{
      //position: absolute;
      //left: 32rpx;
      font-size: 56rpx;
      font-family: Alimama ShuHeiTi;
      font-weight: bold;
      color: #FFFFFF;
      line-height: 68rpx;
      margin-top: 24rpx;
      margin-left: 32rpx;
    }
    .pageNotice{
      display: inline-block;
      width: calc(100% - 64rpx);
      font-size: 22rpx;
      color: #fff;
      margin-left: 32rpx;
    }
    .timeText{
      font-size: 36rpx;
      font-family: Alimama ShuHeiTi;
      font-weight: bold;
      color: #FFFFFF;
      line-height: 68rpx;
      margin-top: 24rpx;
    }
    .timeIcon{
      margin-left: 6px;
      width: 28rpx;
      height: 28rpx;
    }

    .headerDetail{
      //position: absolute;
      margin-top: 12rpx;
      width: calc(100% - 64rpx);
      margin-left: 32rpx;
      //left: 32rpx;
      background: #FFFFFF;
      border-radius: 16rpx;
      box-sizing: border-box;
      padding: 4rpx;
      .detailBox{
        width: 100%;
        box-sizing: border-box;
        padding: 22rpx 24rpx;
        background: linear-gradient(180deg, #E9F5FA 0%,  #FBFDFE 100%);
        border-radius: 16rpx;
        position: relative;
        .monthSumBg{
          position: absolute;
          width: 320rpx;
          height: 320rpx;
          right: 0;top: 0;
          z-index: 1;
        }
        .detailPage{
          display: flex;
          align-items: center;
          .detailPageTitle{
            font-size: 36rpx;
            font-family: Alimama ShuHeiTi;
            font-weight: bold;
            color: #018ABD;
            line-height: 44rpx;
          }
          .notice{
            margin-left: 8rpx;
            width: 12px;
            height: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #A69E9F;
            border-radius: 50%;
            color: #A69E9F;
            font-size: 12px;
            font-weight: 500;
            .noticeBox{
              max-width: 80%;
              position: absolute;
              top: 15px;
              display: inline-block;
              padding: 5px 10px;
              background: #fff;
              border-radius: 10rpx;
              box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
              z-index:9;
            }
          }
        }
        .moneyBox{
          width: 100%;
          //height: 300rpx;
          background: #fff;
          margin-top: 22rpx;
          border-radius: 12rpx;
          box-sizing: border-box;
          padding: 32rpx;
          display: flex;
          justify-content: space-between;
          position: relative;
          z-index: 2;
          .moneyItem{
            //width: 50%;
            height: 100%;
            display: inline-block;
            .itemTop{
              width: 100%;
              height: 68rpx;
              display: flex;
              box-sizing: border-box;
              .itemChart{
                margin-top: 8rpx;
                width: 68rpx;
                height: 68rpx;
              }
              .itemMessage{
                display: flex;
                flex-direction: column;
                margin-left: 16rpx;
                .itemRate{
                  font-size: 40rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #018ABD;
                  line-height: 48rpx;
                }
                .itemLabel{
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  display: flex;
                  align-items: center;
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      max-width: 60%;
                      position: absolute;
                      top: 10px;
                      display: inline-block;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
              }
            }
            .successBox{
              //margin-top: 32rpx;
              display: flex;
              flex-direction: column;
              .successBoxItem{
                display: flex;
                flex-direction: column;
                .successNumber{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 36rpx;
                  margin-bottom: 4rpx;
                }
                .successTime{
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  display: flex;
                  .successUnit{
                    font-size: 24rpx;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #A69E9F;
                    line-height: 36rpx;
                    margin-left: 4rpx;
                  }
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      position: absolute;
                      right: 0;top: 70px;
                      display: inline-block;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  .content{
    width: 100%;
    box-sizing: border-box;
    padding: 24rpx 36rpx 32rpx;
    background: #F5F5F5;
    .profitYear{
      width: 100%;
      height: 468rpx;
      background: #fff;
      box-sizing: border-box;
      padding: 4rpx;
      border-radius: 16rpx;
      .itemBox{
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #EDEEFF 0%,  #F8F9FF 100%);;
        border-radius: 16rpx;
        box-sizing: border-box;
        padding: 22rpx 24rpx;
        position: relative;
        .itemBoxTitle{
          font-size: 36rpx;
          font-family: Alimama ShuHeiTi;
          font-weight: bold;
          color: #474EF4;
          line-height: 44rpx;
        }
        .notice{
          margin-left: 8rpx;
          width: 12px;
          height: 12px;
          display: flex;
          align-items: center;
          justify-content: center;
          border: 2px solid #A69E9F;
          border-radius: 50%;
          color: #A69E9F;
          font-size: 12px;
          font-weight: 500;
          .noticeBox{
            max-width: 80%;
            position: absolute;
            left: 0;top: 0;
            display: inline-block;
            padding: 5px 10px;
            background: #fff;
            border-radius: 10rpx;
            box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
            z-index:9;
          }
        }
        .monthSumBg{
          position: absolute;
          width: 320rpx;
          height: 320rpx;
          right: 0;top: 0;
          z-index: 1;
        }
        .itemDetailBox{
          position: relative;
          z-index: 2;
          width: 100%;
          height: 356rpx;
          background: #FFFFFF;
          border-radius: 12rpx;
          margin-top: 22rpx;
          box-sizing: border-box;
          padding: 32rpx;
          .detailBoxTop{
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .successLabel{
              display: flex;
              align-items: center;
              .successLabelText{
                font-size: 28rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #786B6C;
                line-height: 40rpx;
              }
              .notice{
                margin-left: 8rpx;
                width: 12px;
                height: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid #A69E9F;
                border-radius: 50%;
                color: #A69E9F;
                font-size: 12px;
                font-weight: 500;
                .noticeBox{
                  max-width: 60%;
                  position: absolute;
                  left: 0;top: 0;
                  display: inline-block;
                  padding: 5px 10px;
                  background: #fff;
                  border-radius: 10rpx;
                  box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                  z-index:9;
                }
              }
            }
            .successValue{
              font-size: 40rpx;
              font-family: DINAlternate-Bold, DINAlternate;
              font-weight: bold;
              color: #575EF9;
              line-height: 48rpx;
            }
          }
          .progress{
            width: 100%;
            height: 24rpx;
            background: rgba(221, 223, 254, 0.2);
            border-radius: 12rpx;
            position: relative;
            margin-top: 12rpx;
            overflow: hidden;
            .have{
              position: absolute;
              top: 0;left: 0;
              height: 100%;
              background: #575EF9;
              border-radius: 12rpx;
            }
          }
          .yearDetail{
            width: 100%;
            display: flex;
            justify-content: space-between;
            margin-top: 32rpx;
            .yearItem{
              display: inline-block;
              width: calc((100% - 80px)/2);
              .itemValue{
                font-size: 32rpx;
                font-family: DINAlternate-Bold, DINAlternate;
                font-weight: bold;
                color: #160002;
                line-height: 36rpx;
                display: flex;
                align-items: center;
                .notice{
                  margin-left: 8rpx;
                  width: 12px;
                  height: 12px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  border: 2px solid #A69E9F;
                  border-radius: 50%;
                  color: #A69E9F;
                  font-size: 12px;
                  font-weight: 500;
                  .noticeBox{
                    max-width: 100%;
                    position: absolute;
                    display: inline-block;
                    padding: 5px 10px;
                    background: #fff;
                    border-radius: 10rpx;
                    box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                    z-index:9;
                  }
                }
              }
              .itemLabel{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #786B6C;
                line-height: 36rpx;
                margin-top: 4rpx;
                .notice{
                  margin-left: 8rpx;
                  width: 12px;
                  height: 12px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  border: 2px solid #A69E9F;
                  border-radius: 50%;
                  color: #A69E9F;
                  font-size: 12px;
                  font-weight: 500;
                  .noticeBox{
                    max-width: 80%;
                    position: absolute;
                    right: 0;top: 0;
                    display: inline-block;
                    padding: 5px 10px;
                    background: #fff;
                    border-radius: 10rpx;
                    box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                    z-index:9;
                  }
                }
                .itemUnit{
                  margin-left: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #A69E9F;
                  line-height: 36rpx;
                }
              }
            }
          }

        }
      }
    }
    .accrueYear{
      width: 100%;
      height: 368rpx;
      background: #fff;
      box-sizing: border-box;
      padding: 4rpx;
      border-radius: 16rpx;
      margin-top: 24rpx;
      .itemBox{
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #F6ECFD 0%,  #FDFCFF 100%);
        border-radius: 16rpx;
        box-sizing: border-box;
        padding: 22rpx 24rpx;
        position: relative;
        .itemBoxTitle{
          font-size: 36rpx;
          font-family: Alimama ShuHeiTi;
          font-weight: bold;
          color: #9635E0;
          line-height: 44rpx;
        }
        .notice{
          margin-left: 8rpx;
          width: 12px;
          height: 12px;
          display: flex;
          align-items: center;
          justify-content: center;
          border: 2px solid #A69E9F;
          border-radius: 50%;
          color: #A69E9F;
          font-size: 12px;
          font-weight: 500;
          .noticeBox{
            max-width: 100%;
            position: absolute;
            display: inline-block;
            padding: 5px 10px;
            background: #fff;
            border-radius: 10rpx;
            box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
            z-index:9;
          }
        }
        .monthSumBg{
          position: absolute;
          width: 320rpx;
          height: 320rpx;
          right: 0;top: 0;
          z-index: 1;
        }
        .itemDetailBox{
          position: relative;
          z-index:2;
          width: 100%;
          height: 256rpx;
          background: #FFFFFF;
          border-radius: 12rpx;
          margin-top: 22rpx;
          box-sizing: border-box;
          display: flex;
          .notices{
            margin-left: 8rpx;
            width: 12px;
            height: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #A69E9F;
            font-size: 12px;
            font-weight: 500;
            .noticeBox{
              max-width: 80%;
              position: absolute;
              display: inline-block;
              padding: 5px 10px;
              background: #fff;
              border-radius: 10rpx;
              box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
              z-index:9;
            }
          }
          .leftCharts{
            width: 224rpx;
            height: 100%;
            box-sizing: border-box;
            padding: 32rpx 48rpx 0;
            .numberValue{
              font-size: 40rpx;
              font-family: DINAlternate-Bold, DINAlternate;
              font-weight: bold;
              color: #9E3CE9;
              line-height: 48rpx;
              margin-top: 8rpx;
            }

          }
          .rightBox{
            width: calc(100% - 224rpx);
            .rightBoxTop{
              width: 100%;
              box-sizing: border-box;
              padding: 32rpx 16rpx;
              display: flex;
              justify-content: space-between;
              align-items: center;
              .itemTop{
                width: calc(100% - 70px);
                display: flex;
                flex-direction: column;
                .itemTopValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 36rpx;
                }
                .itemTopTitle{
                  margin-top: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  .itemTopUnit{
                    font-size: 24rpx;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #A69E9F;
                    line-height: 36rpx;
                    margin-left: 4rpx;
                  }
                }
              }
              .itemRateBox{
                display: inline-block;
                width: 70px;
                .addRate{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #E83944;
                  line-height: 36rpx;
                }
                .rateText{
                  margin-top: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      max-width: 80%;
                      position: absolute;
                      right: 0;top: 0;
                      display: inline-block;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    .incomeAll{
      width: 100%;
      box-sizing: border-box;
      padding: 4rpx;
      border-radius: 16rpx;
      margin-top: 24rpx;
      background: #FBFBFB;
      .itemBox{
        width: 100%;
        height: 400rpx;
        background: linear-gradient(180deg, #F9F0E2 0%,  #FAF9F7 100%);
        border-radius: 16rpx;
        box-sizing: border-box;
        padding: 22rpx 24rpx;
        position: relative;
        .itemBoxTitle{
          font-size: 36rpx;
          font-family: Alimama ShuHeiTi;
          font-weight: bold;
          color: #9635E0;
          line-height: 44rpx;
        }
        .notice{
          margin-left: 8rpx;
          width: 12px;
          height: 12px;
          display: flex;
          align-items: center;
          justify-content: center;
          border: 2px solid #A69E9F;
          border-radius: 50%;
          color: #A69E9F;
          font-size: 12px;
          font-weight: 500;
          .noticeBox{
            max-width: 100%;
            position: absolute;
            display: inline-block;
            padding: 5px 10px;
            background: #fff;
            border-radius: 10rpx;
            box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
            z-index:9;
          }
        }

        .monthSumBg{
          position: absolute;
          width: 320rpx;
          height: 320rpx;
          right: 0;top: 0;
          z-index: 1;
        }
        .itemDetailBox{
          position: relative;
          z-index: 2;
          width: 100%;
          height: 256rpx;
          background: #FFFFFF;
          border-radius: 12rpx;
          margin-top: 22rpx;
          box-sizing: border-box;
          display: flex;
          padding: 32rpx;
          .leftCharts{
            width: 128rpx;
            height: 100%;
            box-sizing: border-box;
            margin-right: 48rpx;
            .numberValue{
              font-size: 40rpx;
              font-family: DINAlternate-Bold, DINAlternate;
              font-weight: bold;
              color: #9E3CE9;
              line-height: 48rpx;
              display: inline-block;
              margin-top: 12rpx;
            }
            .notices{
              margin-left: 8rpx;
              width: 12px;
              height: 12px;
              display: flex;
              align-items: center;
              justify-content: center;
              color: #A69E9F;
              font-size: 12px;
              font-weight: 500;
              .noticeBox{
                max-width: 80%;
                position: absolute;
                display: inline-block;
                padding: 5px 10px;
                background: #fff;
                border-radius: 10rpx;
                box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                z-index:9;
              }
            }
          }
          .rightBox{
            width: calc(100% - 186rpx);
            .rightBoxTop{
              width: 100%;
              box-sizing: border-box;
              display: flex;
              justify-content: space-between;
              align-items: center;
              .itemTop{
                display: flex;
                flex-direction: column;
                .itemTopValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 36rpx;
                }
                .itemTopTitle{
                  margin-top: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  .itemTopUnit{
                    font-size: 24rpx;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #A69E9F;
                    line-height: 36rpx;
                    margin-left: 4rpx;
                  }
                }
              }
              .itemRateBox{
                display: inline-block;
                width: 120rpx;
                .addRate{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #E83944;
                  line-height: 36rpx;
                }
                .rateText{
                  margin-top: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  white-space: nowrap;
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      max-width: 80%;
                      position: absolute;
                      right: 0;top: 0;
                      display: inline-block;
                      white-space: pre-wrap;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
              }
            }
          }
        }
        .inComeRateBox{
          width: 100%;
          box-sizing: border-box;
          padding: 0 32rpx 16rpx;
          background: #fff;
          position: relative;
          .noticeRate{
            display: inline-block;
            position: absolute;
            top: 10px;left: 50%;
            width: 80%;
            transform: translateX(-50%);
            box-sizing: border-box;
            padding: 12px;
            background: #fff;
            border-radius: 6px;
            z-index:99;
            color: #A69E9F;
            font-size: 12px;
            font-weight: 500;
            box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
          }
          .inComeRate{
            width: 100%;
            height: 12px;
            border-radius: 6px;
            overflow: hidden;
            background: #F9DCC2;
            position: relative;
            .owner,.otherRate{
              position: absolute;
              top: 0;
              height: 100%;
            }
          }
          .rateType{
            display: flex;
            align-items: center;
            justify-content: space-between;
            .rateItem{
              display: flex;
              align-items: center;
              .rateColor{
                width: 24rpx;
                height: 12rpx;
                border-radius: 6rpx;
                margin-right: 6px;
              }
              .rateText{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #786B6C;
              }
            }
          }
        }
      }
      .itemDetailSubtotal{
        width: 100%;
        background: #FBFBFB;
        .itemSmallBox{
          margin-top: 24rpx;
          padding-bottom: 24rpx;
          position: relative;
          .xian{
            width: 4rpx;
            height:  432rpx;
            background: #F4F2F1;
            border-radius: 1rpx;
            position: absolute;
            left: 60rpx;top: 92rpx;
          }
          .itemSmallTop{
            width: 100%;
            box-sizing: border-box;
            padding: 0 28rpx;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .leftBox{
              display: flex;
              align-items: center;
              .smallIcon{
                width: 72rpx;
                height: 72rpx;
                margin-right: 16rpx;
                .img{
                  width: 100%;
                  height: 100%;
                }
              }
              .smallTitle{
                font-size: 32rpx;
                font-family: PingFangSC-Semibold, PingFang SC;
                font-weight: 600;
                color: #160002;
                line-height: 44rpx;
              }
              .notice{
                margin-left: 8rpx;
                width: 12px;
                height: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid #A69E9F;
                border-radius: 50%;
                color: #A69E9F;
                font-size: 12px;
                font-weight: 500;
                .noticeBox{
                  max-width: 80%;
                  position: absolute;
                  display: inline-block;
                  padding: 5px 10px;
                  background: #fff;
                  border-radius: 10rpx;
                  box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                  z-index:9;
                }
              }
            }
            .leftRight{
              display: flex;
              align-items: center;
              .more{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #A69E9F;
                line-height: 36rpx;
                margin-right: 10rpx;
              }
              .moreIcon{
                width: 24rpx;
                height: 24rpx;
              }
            }
          }
        }

        .itemSmallDetail{
          width: calc(100% - 48rpx);
          height: 248rpx;
          margin-top: 30rpx;
          background: #F9F5F1;
          border-radius: 8rpx;
          margin-left: 24rpx;
          box-sizing: border-box;
          display: flex;
          justify-content: space-between;
          .itemSmallLeftBox{
            width: 224rpx;
            height: 100%;
            box-sizing: border-box;
            padding: 32rpx 48rpx 0;
            .leftValue{
              display: inline-block;
              margin-top: 8rpx;
              font-size: 40rpx;
              font-family: DINAlternate-Bold, DINAlternate;
              font-weight: bold;
              color: #FE7500;
              line-height: 48rpx;
            }
            .notices{
              margin-left: 8rpx;
              width: 12px;
              height: 12px;
              display: flex;
              align-items: center;
              justify-content: center;
              color: #A69E9F;
              font-size: 12px;
              font-weight: 500;
              .noticeBox{
                max-width: 100%;
                position: absolute;
                display: inline-block;
                padding: 5px 10px;
                background: #fff;
                border-radius: 10rpx;
                box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                z-index:9;
              }
            }
          }
          .itemSmallRightBox{
            width: calc(100% - 224rpx);
            box-sizing: border-box;
            padding: 32rpx;
            .rightTopItem{
              width: 100%;
              display: flex;
              justify-content: space-between;
              .itemDetail{
                display: inline-block;
                width: 50%;
                .detailValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 36rpx;
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      max-width: 60%;
                      position: absolute;
                      right: 0;top: 0;
                      display: inline-block;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
                .detailTitle{
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  margin-top: 4rpx;
                  white-space: nowrap;
                  .detailTitleUnit{
                    color: #A69E9F;
                  }
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      max-width: 60%;
                      position: absolute;
                      right: 0;top: 0;
                      display: inline-block;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
              }
              .itemRight{
                display: inline-block;
                width: 50%;
                .rightValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #E83944;
                  line-height: 36rpx;
                }
                .rightLabel{
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  margin-top: 4rpx;
                  .notice{
                    margin-left: 8rpx;
                    width: 12px;
                    height: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 2px solid #A69E9F;
                    border-radius: 50%;
                    color: #A69E9F;
                    font-size: 12px;
                    font-weight: 500;
                    .noticeBox{
                      max-width: 70%;
                      position: absolute;
                      right: 0;top: 0;
                      display: inline-block;
                      padding: 5px 10px;
                      background: #fff;
                      border-radius: 10rpx;
                      box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                      z-index:9;
                    }
                  }
                }
              }
            }
          }
        }

        .smallSum{
          width: calc(100% - 48rpx);
          margin-left: 24rpx;
          .smallSumItem{
            margin-top: 24rpx;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .smallSumLeft{
              display: flex;
              align-items: center;
              .smallSumItemBox{
                width: 12rpx;
                height: 12rpx;
                background: #EF7A16;
                border-radius: 50%;
                margin-right: 16rpx;
              }
              .smallTitle{
                font-size: 28rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #160002;
                line-height: 40rpx;
              }
              .notice{
                margin-left: 8rpx;
                width: 12px;
                height: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid #A69E9F;
                border-radius: 50%;
                color: #A69E9F;
                font-size: 12px;
                font-weight: 500;
                .noticeBox{
                  max-width: 80%;
                  position: absolute;
                  right: 0;top: 0;
                  display: inline-block;
                  padding: 5px 10px;
                  background: #fff;
                  border-radius: 10rpx;
                  box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                  z-index:9;
                }
              }
            }
            .smallSumRight{
              display: inline-block;
              width: 250rpx;
              .notice{
                margin-left: 8rpx;
                width: 12px;
                height: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid #A69E9F;
                border-radius: 50%;
                color: #A69E9F;
                font-size: 12px;
                font-weight: 500;
                .noticeBox{
                  max-width: 80%;
                  position: absolute;
                  right: 0;top: 0;
                  display: inline-block;
                  padding: 5px 10px;
                  background: #fff;
                  border-radius: 10rpx;
                  box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(166, 158, 159, 0.3);
                  z-index:9;
                }
              }
              .successText{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #A69E9F;
                line-height: 40rpx;
              }
              .successValue{
                font-size: 28rpx;
                font-family: DINAlternate-Bold, DINAlternate;
                font-weight: bold;
                color: #E83944;
                line-height: 40rpx;
                margin-left: 8rpx;
              }
            }
          }
        }
      }
    }

    .expenditure{
      width: 100%;
      box-sizing: border-box;
      padding: 4rpx;
      border-radius: 16rpx;
      margin-top: 24rpx;
      background: #FBFBFB;
      .itemBox{
        width: 100%;
        height: 400rpx;
        background: linear-gradient(180deg, #F1F8FF 0%,  #F6FAFF 100%);
        border-radius: 16rpx;
        box-sizing: border-box;
        padding: 22rpx 24rpx;
        position: relative;
        .monthSumBg{
          position: absolute;
          width: 320rpx;
          height: 320rpx;
          right: 0;top: 0;
          z-index: 1;
        }
        .itemBoxTitle{
          font-size: 36rpx;
          font-family: Alimama ShuHeiTi;
          font-weight: bold;
          color: #9635E0;
          line-height: 44rpx;
        }
        .itemDetailBox{
          position: relative;
          z-index: 2;
          width: 100%;
          height: 256rpx;
          background: #FFFFFF;
          border-radius: 12rpx;
          margin-top: 22rpx;
          box-sizing: border-box;
          display: flex;
          .leftCharts{
            width: 224rpx;
            height: 100%;
            box-sizing: border-box;
            padding: 32rpx 48rpx 0;
            .numberValue{
              font-size: 40rpx;
              font-family: DINAlternate-Bold, DINAlternate;
              font-weight: bold;
              color: #9E3CE9;
              line-height: 48rpx;
              margin-top: 8rpx;
            }
          }
          .rightBox{
            width: calc(100% - 224rpx);
            box-sizing: border-box;
            padding: 32rpx;
            .rightBoxTop{
              width: 100%;
              box-sizing: border-box;
              display: flex;
              justify-content: space-between;
              align-items: center;
              .itemTop{
                display: flex;
                flex-direction: column;
                .itemTopValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 36rpx;
                }
                .itemTopTitle{
                  margin-top: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  .itemTopUnit{
                    font-size: 24rpx;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #A69E9F;
                    line-height: 36rpx;
                    margin-left: 4rpx;
                  }
                }
              }
              .itemRateBox{
                display: inline-block;
                .addRate{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #E83944;
                  line-height: 36rpx;
                }
                .rateText{
                  margin-top: 4rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                }
              }
            }
          }
        }
        .expenditureRateBox{
          width: 100%;
          box-sizing: border-box;
          padding: 0 32rpx 16rpx;
          background: #fff;
          position: relative;
          .noticeRate{
            display: inline-block;
            position: absolute;
            top: 10px;left: 50%;
            width: 80%;
            transform: translateX(-50%);
            box-sizing: border-box;
            padding: 12px;
            background: #fff;
            border-radius: 6px;
            z-index:99;
            color: #A69E9F;
            font-size: 12px;
            font-weight: 500;
            box-shadow: 0 4rpx 12rpx 0 rgba(166, 158, 159, 0.3);
          }
          .expenditureRate{
            width: 100%;
            height: 12px;
            border-radius: 6px;
            overflow: hidden;
            background: #F9DCC2;
            position: relative;
            .first,.second,.third,.fourth,.item{
              position: absolute;
              top: 0;
              height: 100%;
            }
          }
          .rateType{
            display: flex;
            align-items: center;
            justify-content: space-between;
            .rateItem{
              display: flex;
              align-items: center;
              .rateColor{
                width: 24rpx;
                height: 12rpx;
                border-radius: 6rpx;
                margin-right: 6px;
              }
              .rateText{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #786B6C;
              }
            }
          }
        }
      }
      .itemDetailSubtotal{
        width: 100%;
        background: #FBFBFB;
        .itemSmallBox{
          margin-top: 48rpx;

          .itemSmallTop{
            width: 100%;
            box-sizing: border-box;
            padding: 0 28rpx;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .leftBox{
              display: flex;
              align-items: center;
              .smallIcon{
                width: 72rpx;
                height: 72rpx;
                margin-right: 16rpx;
                .img{
                  width: 100%;
                  height: 100%;
                }
              }
              .smallTitle{
                font-size: 32rpx;
                font-family: PingFangSC-Semibold, PingFang SC;
                font-weight: 600;
                color: #160002;
                line-height: 44rpx;
              }
            }
            .leftRight{
              display: flex;
              align-items: center;
              .more{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #A69E9F;
                line-height: 36rpx;
                margin-right: 10rpx;
              }
              .moreIcon{
                width: 24rpx;
                height: 24rpx;
              }
            }
          }
        }

        .itemSmallDetail{
          width: calc(100% - 48rpx);
          height: 248rpx;
          margin-top: 30rpx;
          background: #F8FAFD;
          border-radius: 8rpx;
          margin-left: 24rpx;
          box-sizing: border-box;
          display: flex;
          justify-content: space-between;
          .itemSmallLeftBox{
            width: 224rpx;
            height: 100%;
            box-sizing: border-box;
            padding: 32rpx 48rpx 0;
            .leftValue{
              margin-top: 4rpx;
              font-size: 40rpx;
              font-family: DINAlternate-Bold, DINAlternate;
              font-weight: bold;
              color: #1679FF;
              line-height: 48rpx;
            }
          }
          .itemSmallRightBox{
            width: calc(100% - 224rpx);
            box-sizing: border-box;
            padding: 32rpx;
            .rightTopItem{
              width: 100%;
              display: flex;
              justify-content: space-between;
              .itemDetail{
                .detailValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 36rpx;
                }
                .detailTitle{
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  margin-top: 4rpx;
                }
              }
              .itemRight{
                .rightValue{
                  font-size: 32rpx;
                  font-family: DINAlternate-Bold, DINAlternate;
                  font-weight: bold;
                  color: #E83944;
                  line-height: 36rpx;
                  text-align: right;
                }
                .rightLabel{
                  font-size: 24rpx;
                  font-family: PingFangSC-Regular, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                  line-height: 36rpx;
                  margin-top: 4rpx;
                }
              }
            }
          }
        }

        .smallSum{
          width: calc(100% - 116rpx - 28rpx);
          margin-left: 116rpx;
          .smallSumItem{
            margin-top: 24rpx;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .smallSumLeft{
              display: flex;
              align-items: center;
              .smallSumItemBox{
                width: 12rpx;
                height: 12rpx;
                background: #1679FF;
                border-radius: 50%;
                margin-right: 16rpx;
              }
              .smallTitle{
                font-size: 28rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #160002;
                line-height: 40rpx;
              }
            }
            .smallSumRight{
              .successText{
                font-size: 24rpx;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #A69E9F;
                line-height: 40rpx;
              }
              .successValue{
                font-size: 28rpx;
                font-family: DINAlternate-Bold, DINAlternate;
                font-weight: bold;
                color: #E83944;
                line-height: 40rpx;
                margin-left: 8rpx;
              }
            }
          }
        }
      }
    }
  }
}
</style>
