Explorar o código

销售订单 业务员

zhaoxiaohai %!s(int64=3) %!d(string=hai) anos
pai
achega
ba6888f87a

+ 1 - 1
packageA/orderForm/detail.wxml

@@ -10,7 +10,7 @@
 		<text wx:if="{{detail.tradefield}}" style="background-color: #4BD863;">{{detail.tradefield}}</text>
 		<!-- <text wx:if="{{detail.status=='新建' && detail.type=='项目订单'}}" style="background-color: #4BD863;" bindtap="setBraned">设置品牌/领域</text> -->
 	</view>
-	<view class="exp" wx:if="{{detail.userrole!='经销商'}}">经销商:{{detail.enterprisename || ' --'}}</view>
+	<view class="exp" wx:if="{{userrole!='经销商'}}">经销商:{{detail.enterprisename || ' --'}}</view>
 	<view class="exp" wx:if="{{detail.type=='项目订单'}}">关联项目:{{detail.projectname || '暂无'}}</view>
 	<view class="exp">订单类型:{{detail.type}}</view>
 	<view class="exp">订单状态:{{detail.status}}</view>

+ 1 - 1
packageA/orderForm/index.wxml

@@ -14,7 +14,7 @@
     共计{{content.total}}单,合计¥{{amount}}
 </view>
 <Yl_ListBox id='ListBox' bind:getlist='getList'>
-    <List list="{{list}}" />
+    <List list="{{list}}" userrole="{{userrole}}" />
 </Yl_ListBox>
 <!-- 新建浮动按钮 -->
 <Float />

+ 4 - 7
packageA/orderForm/modules/list/index.js

@@ -1,9 +1,6 @@
 Component({
-  properties: {
-    list: Array,
-    userrole: {
-      type: String,
-      value: wx.getStorageSync('userrole')
-    }
-  },
+    properties: {
+        list: Array,
+        userrole: String
+    },
 })

+ 1 - 1
packageA/orderForm/modules/list/index.wxml

@@ -13,7 +13,7 @@
         <view class="num">
             {{item.type}}:{{item.sonum}}
         </view>
-        <view class="exp" wx:if="{{userrole=='业务员'}}">
+        <view class="exp" wx:if="{{userrole!='经销商'}}">
             经销商:{{item.enterprisename || ' --'}}
         </view>
         <view class="exp">