Explorar el Código

Merge branch '绿色' into 测试

xiaohaizhao hace 10 meses
padre
commit
03307b6648
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. 3 1
      packageA/account/detail.js
  2. 3 0
      packageA/account/detail.wxml

+ 3 - 1
packageA/account/detail.js

@@ -21,7 +21,8 @@ Page({
   onLoad(options) {
     let item = JSON.parse(options.item);
     this.setData({
-      detail: item
+      detail: item,
+      userrole:wx.getStorageSync('userrole')
     })
     this.getList(true);
   },
@@ -47,6 +48,7 @@ Page({
         v.showPayapplyamount = CNY(v.payapplyamount) //已发放金额
         v.showUnpayapplyamount = CNY(v.unpayapplyamount) //未发放金额
         v.showOrderamount = CNY(v.orderamount)
+        v.showsubhrcashbilldetailamount = CNY(v.subhrcashbilldetailamount)
         return v
       })
       this.setData({

+ 3 - 0
packageA/account/detail.wxml

@@ -79,6 +79,9 @@
 			<view wx:else class="col">
 				未发放金额:{{item.showUnpayapplyamount}}
 			</view>
+			<view wx:if="{{userrole =='业务员'}}" class="col">
+				调整后差额:{{item.showsubhrcashbilldetailamount}}
+			</view>
 		</view>
 	</view>
 	<Yl_Empty wx:if="{{list.length === 0}}" />