shish 1 tahun lalu
induk
melakukan
f6af12aa66
2 mengubah file dengan 20 tambahan dan 0 penghapusan
  1. 11 0
      ghsApp/src/admin/stat/kdIncome.vue
  2. 9 0
      ghsApp/src/admin/stat/profit.vue

+ 11 - 0
ghsApp/src/admin/stat/kdIncome.vue

@@ -30,6 +30,15 @@
 							</t-td>
 						</t-tr>
 
+						<t-tr v-if="Number(payCodeIncome)>0">
+							<t-td align="center">
+								<view style="font-weight:bold;color:red;font-size:30upx;">
+									以上收入还要减掉收款码收入的 ¥{{ payCodeIncome }}
+								</view>
+							</t-td>
+						</t-tr>
+						
+
 						<view v-if="!$util.isEmpty(staffAmountList)">
 							<t-tr>
 								<t-td></t-td>
@@ -129,6 +138,7 @@ export default {
 			},
 			profile:[],
 			totalIncome:0,
+			payCodeIncome:0,
 			showDetailPop:false,
 			detailItem:[],
 			staffAmountList:[]
@@ -181,6 +191,7 @@ export default {
 				uni.hideLoading()
 				that.profile = res.data.list||[]
 				that.totalIncome = res.data.totalIncome
+				that.payCodeIncome = res.data.payCodeIncome ? parseFloat(res.data.payCodeIncome) : 0
 				that.staffAmountList = res.data.staffAmountList
 			})
 		}

+ 9 - 0
ghsApp/src/admin/stat/profit.vue

@@ -32,6 +32,15 @@
 								<view style="font-weight:bold;color:black;font-size:32upx;">利润 ¥{{profit.balance||0}}</view>
 							</t-td>
 						</t-tr>
+						<block v-if="Number(profit.payCodeIncome)>0">
+							<t-tr>
+								<t-td align="center">
+									<view style="font-weight:bold;color:red;font-size:30upx;">
+										以上利润还要减掉收款码收入的 ¥{{ profit.payCodeIncome }}
+									</view>
+								</t-td>
+							</t-tr>
+						</block>
 						<block v-if="profit.wastagePrice && Number(profit.wastagePrice)>0">
 							<t-tr>
 								<t-td align="center">