b_detail.wxml
14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<wxs src="../../../utils/util.wxs" module="util" />
<nav hasHome>订座详情</nav>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="BOOK-DETAIL" type="black" hitStr="通知客户"></a2l>
<!--订单信息-->
<view class="order-info" wx:if="{{bookInfo}}" >
<navigator url="/pages/reserve/detail?id={{bookInfo.seller.id}}" wx:if="{{isAdmin}}">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">餐厅名称</view>
<view class="flex-rr black-font font34r">
{{bookInfo.seller.sellername}}
<view class="more" style="margin-left: 20rpx;"></view>
</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">餐厅地点</view>
<view class="black-font font30r">
{{bookInfo.seller.real_address||bookInfo.seller.map_address}}
</view>
</view>
</navigator>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">用餐时段</view>
<view class="black-font font34r">
{{util.unixtoTime(bookInfo.ddate,'YYYY年MM月DD日 ')}}
{{util.reserveTimeSpace(bookInfo.ddate_solt)}}
</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">用餐时间</view>
<view class="black-font font34r" wx:if="{{bookInfo.type==1}}">
{{bookInfo.is_set_ddate==1?util.unixtoTime(bookInfo.ddate,'HH:II'):''}}
</view>
<view class="black-font font34r" wx:else="">
{{util.unixtoTime(bookInfo.ddate,'HH:II')}}
</view>
</view>
<view class="flex-lr order-detail" wx:if="{{bookInfo.type==1}}">
<view class="gray-deep-font font30r">包间需求</view>
<view class="black-font font34r">{{bookInfo.room_demand.length}}个</view>
</view>
<view class="flex-lr order-detail" wx:else="">
<view class="gray-deep-font font30r">用餐人数</view>
<view class="black-font font34r">{{bookInfo.pnum_str||bookInfo.pnum}}人</view>
</view>
<view style="position: relative;">
<view class="reserve-status-tip {{bookInfo.type==1?'online':''}}" wx:if="{{bookInfo.status==0 || bookInfo.status==6}}">
<view class="text">{{bookInfo.status==0?'待处理':'已拒绝'}}</view>
</view>
<view class="reserve-status-tip {{bookInfo.type==1?'online':''}}" wx:elif="{{bookInfo.status}}">
<image class="reserve-status-checkout" wx:if="{{bookInfo.order_info.status==3}}" src="http://nosqn.colorcun.com/custom/lite-yd/image/reserve-status-checkout.png"></image>
<image wx:else="" src="http://nosqn.colorcun.com/custom/lite-yd/image/reserve-status-{{bookInfo.status==5?1:bookInfo.status}}.png"></image>
</view>
</view>
<view class="flex-lr order-desk" wx:if="{{bookInfo.type==1}}">
<view class="flex-re" style="width:100%;flex-wrap:wrap;">
<block wx:for="{{bookInfo.room_demand}}" wx:key="tables.key">
<board width="160" height="180" board="{{item}}"
roomDemand
className="noBottom"
style="margin-left:20rpx; margin-bottom: 20rpx;"></board>
</block>
</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">预订座位</view>
<view class="black-font font34r">{{tables.length}}个</view>
</view>
<view class="flex-lr order-desk">
<view class="flex-re" style="width:100%;flex-wrap:wrap;">
<block wx:for="{{tables}}" wx:key="tables.key">
<board width="160" height="180" board="{{item}}" className="noBottom"
style="margin-left:20rpx; margin-bottom: 20rpx;"></board>
</block>
</view>
</view>
<view class="flex-lr order-detail">
<text class="gray-deep-font font30r" space="true" decode="true">客户姓名</text>
<view class="black-font font34r" wx:if="{{bookInfo.rname}}">{{bookInfo.rname}} {{bookInfo.sex==1?'先生':(bookInfo.sex==2?'女士':'')}}</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">客户电话</view>
<view class="black-font font34r" bindtap="getcall">{{bookInfo.phoneStr||''}}</view>
</view>
<block wx:if="{{bookInfo.cusdem!='' && bookInfo.cusdem!='null'}}">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">备注信息</view>
<view class="black-font font34r">{{bookInfo.cusdem}}</view>
</view>
</block>
</view>
<view class="order-info">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">客户经理</view>
<view class="flex-lr black-font font34r">
<picker bindchange="chooseManager" catchtap="flushSellerInfo"
wx:if="{{hasEditorFlag}}"
value="{{mansIndex}}" range="{{mans_role}}">
<view class="picker" style="border-bottom:2rpx solid #999;">
{{mans[mansIndex]?mans[mansIndex]:bookInfo.cusman?bookInfo.cusman:'请选择'}}
</view>
</picker>
<view class="picker" wx:else="">
{{mans[mansIndex]?mans[mansIndex]:bookInfo.cusman?bookInfo.cusman:'无'}}
</view>
</view>
</view>
<view class="flex-lr order-detail" wx:if="{{bookInfo.note_name}}">
<view class="gray-deep-font font30r">记录人</view>
<view class="black-font font34r">{{bookInfo.note_name}}</view>
</view>
</view>
<view class="order-info" wx:if="{{bookInfo.status==4 && bookInfo.cancel}}">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">取消原因</view>
<view class="flex-lr black-font font34r">
{{bookInfo.cancel.desc}}
</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">取消时间</view>
<view class="black-font font34r">{{bookInfo.cancel.cdateStr}}</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">操作人</view>
<view class="black-font font34r">{{bookInfo.abolition==2?'顾客在线取消':bookInfo.cancel.uname}}</view>
</view>
</view>
<view class="order-info" wx:if="{{bookInfo.status==6}}">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">拒绝原因</view>
<view class="flex-lr black-font font34r">
{{bookInfo.cancel.desc}}
</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">拒绝时间</view>
<view class="black-font font34r">{{bookInfo.cancel.cdateStr}}</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">操作人</view>
<view class="black-font font34r">{{bookInfo.cancel.desc=='订单长时间未处理,已过时段'?'自动拒单':bookInfo.cancel.uname}}</view>
</view>
</view>
<navigator url="{{bookInfo.invoice.type==0?'../checkout/invoice?rid='+bookInfo.id:''}}" wx:if="{{bookInfo.invoice}}">
<view class="order-info">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">发票抬头</view>
<view class="flex-lr black-font font32r">
<view class="" style="text-align: right">
<view class="Medium">{{bookInfo.invoice.title}}</view>
<view class="gray-deep-font font28r"
wx:if="{{bookInfo.invoice.type==0}}"
style="margin-top: 10rpx;">税号:{{bookInfo.invoice.taxnumber}}</view>
</view>
<view class="more" style="margin-left: 20rpx" wx:if="{{bookInfo.invoice.type==0}}"></view>
</view>
</view>
</view>
</navigator>
<navigator url="../checkout/index?rid={{bookInfo.id}}" wx:if="{{bookInfo.order_info.status==3}}">
<view class="order-info">
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">实收金额:<text class="black-font font32r Medium">¥ {{bookInfo.order_info.price}}</text></view>
<view class="flex-lr gray-deep-font font28r">
查看明细
<view class="more" style="margin-left: 20rpx"></view>
</view>
</view>
</view>
</navigator>
<view style="height: 250rpx;"></view>
<block wx:if="{{loaded}}">
<!--通知预订人-->
<view class="notice-opt" wx:if="{{bookInfo.hasRunning}}">
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="noticeCall">通知客户</formids>
</view>
<view class="item" wx:if="{{bookInfo.order && bookInfo.order.cookbooklist.length>0}}">
<formids bindclick="showOrder">查看菜品</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr" wx:if="{{hasEditorFlag || (bookInfo.type==1 && hasReceipt)}}">
<view class="item" wx:if="{{isAdmin}}">
<PreferentialDocking sid="{{bookInfo.sid}}">
<view style="line-height: 50rpx;">优惠对接人</view>
</PreferentialDocking>
</view>
<view class="item">
<formids bindclick="cancelReserve">取消预订</formids>
</view>
<view class="item">
<formids bindclick="gotoModify">变更预订</formids>
</view>
<view class="item" wx:if="{{!isAdmin}}">
<formids bindclick="startDinner" data-status="2">确认到店</formids>
</view>
</view>
</view>
<view class="notice-opt" wx:if="{{bookInfo.status==2}}">
<view class="notice-button-border font34r flex-lr bg-blue" wx:if="{{isAdmin}}">
<view class="item">
<formids bindclick="noticeCall">通知客户</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr">
<view class="item" wx:if="{{isAdmin}}">
<PreferentialDocking sid="{{bookInfo.sid}}">
<view style="line-height: 50rpx;">优惠对接人</view>
</PreferentialDocking>
</view>
<view class="item" wx:else="">
<formids bindclick="noticeCall">通知客户</formids>
</view>
<view class="item" wx:if="{{hasEditorFlag || (bookInfo.type==1 && hasReceipt)}}">
<formids bindclick="cancelReserve">取消预订</formids>
</view>
<view class="item" wx:if="{{hasEditorFlag || (bookInfo.type==1 && hasReceipt)}}">
<formids bindclick="gotoModify">变更预订</formids>
</view>
</view>
<formids class="notice-button white-font font34r flex-cc"
wx:if="{{!isAdmin}}"
bindclick="startDinner" data-status="3">
客户就餐完毕
</formids>
</view>
<!--操作在线预订-->
<view class="notice-opt" wx:if="{{bookInfo.status==0}}">
<block wx:if="{{isAdmin}}">
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="easyCall" data-key="jdmans">联系接单人</formids>
</view>
<view class="item">
<formids bindclick="easyCall" data-key="seller">联系商家</formids>
</view>
<view class="item">
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr">
<view class="item">
<PreferentialDocking sid="{{bookInfo.sid}}">
<view style="line-height: 50rpx;">优惠对接人</view>
</PreferentialDocking>
</view>
<view class="item">
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view class="item">
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
</block>
<block wx:elif="{{hasCallPhone}}">
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr">
<view class="item">
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view class="item">
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
</block>
<block wx:else="">
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view class="item">
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
</block>
</view>
<view class="notice-opt" wx:if="{{bookInfo.status==6 && isAdmin}}">
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="easyCall" data-key="jdmans">联系接单人</formids>
</view>
<view class="item">
<formids bindclick="easyCall" data-key="seller">联系商家</formids>
</view>
<view class="item">
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
</view>
<noticeCall id="notice" bookInfo="{{bookInfo}}"></noticeCall>
<action-sheet hidden="{{actionSheetHidden}}" bindchange="actionSheetChange" class="flex-ll">
<block wx:for-items="{{actionSheetItems}}" wx:key="actionSheetItems.key">
<action-sheet-item>{{item}}</action-sheet-item>
</block>
<action-sheet-item>
<input placeholder="请输入" style="width:100%"/>
</action-sheet-item>
<action-sheet-cancel >取消</action-sheet-cancel>
</action-sheet>
<cancel id="cancel" bindreserveCancel="reserveCancel" bookInfo="{{bookInfo}}"></cancel>
<showModal id="showModal" bindshowModal="showModalEvent"></showModal>
<refuse id="refuse" bindevent="refuseEvent" detail="{{bookInfo}}"></refuse>
</block>
<loading wx:else="">处理中</loading>