shish пре 7 месеци
родитељ
комит
c3324976c4
1 измењених фајлова са 9 додато и 11 уклоњено
  1. 9 11
      ghsApp/src/admin/billing/affirm.vue

+ 9 - 11
ghsApp/src/admin/billing/affirm.vue

@@ -54,19 +54,17 @@
               <view class="operate-view" v-else @click="gobackEvent" style="font-size:32upx;font-weight:bold;"><text class="iconfont icongouwuche" style="margin-right:5upx;"></text>返回修改</view>
               <view class="describe-view">
                 <text>合计 ¥{{ allPrice }}</text>
-                <block v-if="showFinance==1">
-                  <text>,成本 ¥{{ allCount.avCost }}</text>
-                  <text>,利润 ¥{{ parseFloat((Number(allPrice)-Number(allCount.avCost)).toFixed(2)) }}</text>
-                </block>
+                <text>,{{ selectList.length }}种</text>
+                <text v-if="Number(totalItemNum.big)>0">,{{totalItemNum.big?parseFloat(totalItemNum.big):0}}扎</text>
+                <text v-if="Number(totalItemNum.small)>0">,{{totalItemNum.small?parseFloat(totalItemNum.small):0}}支</text>
+                <text>,{{ allCount.weight }}公斤</text>
               </view>
             </view>
-            <view class="summary-bar">
-              <view class="operate-view" v-if="hasFinance==1" @click="getMyFinance">查看财务</view>
+            <view class="summary-bar" v-if="hasFinance==1">
+              <view class="operate-view"></view>
               <view class="describe-view">
-                <text>{{ selectList.length }}种,</text>
-                <text v-if="Number(totalItemNum.big)>0">{{totalItemNum.big?parseFloat(totalItemNum.big):0}}扎</text>
-                <text v-if="Number(totalItemNum.small)>0">{{totalItemNum.small?parseFloat(totalItemNum.small):0}}支</text>
-                <text>,{{ allCount.weight }}公斤</text>
+                  <text v-if="showFinance==1" @click="getMyFinance">成本 ¥{{ allCount.avCost }},利润 ¥{{ parseFloat((Number(allPrice)-Number(allCount.avCost)).toFixed(2)) }}</text>
+                  <text v-else @click="getMyFinance" style="color:#3385ff;font-weight:bold;">查看财务</text>
               </view>
             </view>
           </view>
@@ -514,7 +512,7 @@ export default {
   methods: {
     ...mapActions(["initMerchantInfo"]),
     getMyFinance(){
-      this.showFinance = 1
+      this.showFinance = this.showFinance == 1 ? 0 : 1
     },
     bindHistoryDateChange(){
 			this.pickerType = 'history'