Commit 50d7cde87a82c9d54f74f46db6b3e09fbb750b45

Authored by vking
1 parent 6f1d75f8

is_on_call

@@ -10,7 +10,8 @@ Page({ @@ -10,7 +10,8 @@ Page({
10 data: { 10 data: {
11 actionSheetHidden: true, 11 actionSheetHidden: true,
12 actionSheetItems: ['客户取消', '客户行程改变'], 12 actionSheetItems: ['客户取消', '客户行程改变'],
13 - hasEditorFlag: false, 13 + hasEditorFlag: false,//是否开启编辑
  14 + hasReceipt:false,//接单人身份
14 }, 15 },
15 sc: {}, 16 sc: {},
16 tpls: TP.tpls(), 17 tpls: TP.tpls(),
@@ -43,6 +44,7 @@ Page({ @@ -43,6 +44,7 @@ Page({
43 PubSub.on('reflush',(desk)=>{ 44 PubSub.on('reflush',(desk)=>{
44 this.getDetail(opt.id); 45 this.getDetail(opt.id);
45 }) 46 })
  47 + this.GetSellerUserDetail(this.sc.seller.id)
46 }, 48 },
47 onUnload(){ 49 onUnload(){
48 PubSub.off('arrangeDesk') 50 PubSub.off('arrangeDesk')
@@ -377,5 +379,16 @@ Page({ @@ -377,5 +379,16 @@ Page({
377 cause.uname = (sc.seller_user.nick_name || sc.seller_user.nickname) 379 cause.uname = (sc.seller_user.nick_name || sc.seller_user.nickname)
378 } 380 }
379 return JSON.stringify(cause) 381 return JSON.stringify(cause)
380 - } 382 + },
  383 + GetSellerUserDetail(sid){
  384 + App.Reserve.GetSellerUserDetail({
  385 + sid:sid,
  386 + }).then(res=>{
  387 + if(res.data){
  388 + this.setData({
  389 + hasReceipt:res.data.is_on_call==1
  390 + })
  391 + }
  392 + })
  393 + },
381 }) 394 })
@@ -120,7 +120,7 @@ @@ -120,7 +120,7 @@
120 <formids bindclick="showOrder">查看菜品</formids> 120 <formids bindclick="showOrder">查看菜品</formids>
121 </view> 121 </view>
122 </view> 122 </view>
123 - <view class="notice-button-border font34r flex-lr" wx:if="{{hasEditorFlag || bookInfo.type==1}}"> 123 + <view class="notice-button-border font34r flex-lr" wx:if="{{hasEditorFlag || (bookInfo.type==1 && hasReceipt)}}">
124 <view> 124 <view>
125 <formids bindclick="gotoModify">变更预订</formids> 125 <formids bindclick="gotoModify">变更预订</formids>
126 </view> 126 </view>
@@ -420,5 +420,8 @@ export default { @@ -420,5 +420,8 @@ export default {
420 'App.Wechat.Subscribe':{ 420 'App.Wechat.Subscribe':{
421 openid:'openid', 421 openid:'openid',
422 }, 422 },
423 - 423 + //获取商家用户(店员)详情
  424 + 'App.Reserve.GetSellerUserDetail':{
  425 + openid:'openid',
  426 + },
424 } 427 }