o_list.wxml
11.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
<nav backgroundColor="#199095" color="#FFFFFF">
<view class="font32r white-font">订单管理</view>
</nav>
<view class="bg-green status-list flex-cc">
<block wx:for="{{statuslist}}">
<view class="{{statusidx==index ? 'bg-white green-font' : 'white-font'}} font30r status-single flex-cc" bindtap="selectstatus" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
<view style="height: 130rpx;"></view>
<scroll-view class="order-list" scroll-y style="height:{{contentHeight}}px;" bindscrolltolower="getnext">
<view class="order-header flex-lr">
<view class="black-font font30r flex-ll" style="width: 30%;">订单编号</view>
<!-- <view class="black-font font30r flex-cc" style="width: 22%;">订单金额</view> -->
<view class="black-font font30r flex-cc" style="width: 45%;">配送时间</view>
<view class="black-font font30r flex-rr" style="width: 30%;">操作</view>
</view>
<view class="order-content">
<block wx:for="{{orderlist}}">
<view class="order-single flex-lr" data-index="{{index}}" bindtap="lookdetail" data-id="{{item.id}}">
<view class="black-font font30r flex-ll" style="width: 30%;">{{item.row_num}}</view>
<!-- <view class="black-font font30r flex-cc" style="width: 22%;">{{item.price}}</view> -->
<view class="black-font font28r flex-vc" style="width: 40%;">
<view>{{item.sdate}}</view>
<view>至</view>
<view>{{item.edate}}</view>
</view>
<view class="green-font font30r flex-rr" style="width: 30%;">
<block wx:if="{{item.status==1}}">
<view catchtap="setorder" data-index="{{index}}" data-status="2" data-id="{{item.id}}" style="height:100%;">开始配送</view>
</block>
<block wx:if="{{item.status==2}}">
<view catchtap="setorder" data-index="{{index}}" data-status="3" data-id="{{item.id}}" style="height:100%;">配送完成</view>
</block>
<block wx:if="{{item.status==3}}">
<view>查看详情</view>
</block>
<block wx:if="{{item.status==4}}">
<view>查看详情</view>
</block>
</view>
</view>
</block>
</view>
</scroll-view>
<!-- <view class="order-all">
<view class="order_type">
<block wx:for="{{typelistData}}" wx:key="{{item.id}}">
<block wx:if="{{item.id==3}}">
<view class="type_name font30r {{item.style}}" data-id="{{item.id}}" style="position:relative;">
<view>{{item.class_name}}</view>
<picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}" data-id="{{item.id}}">
<view class="picker">{{item.class_name}}</view>
</picker>
</view>
</block>
<block wx:else>
<view class="type_name font30r {{item.style}}" data-id="{{item.id}}" bindtap="typelink">{{item.class_name}}</view>
</block>
</block>
</view>
<block wx:if="{{order==3}}">
<view class="order-search" style="margin-left:224rpx;">
<view class="order-search-angle" style="left:224rpx;"></view>
<form bindsubmit="formSubmit" class="order-form">
<button formType="submit" class="order-submit" hover-class="none">查询</button>
<input type="text" placeholder="请输入状态" placeholder-style="color:#999;font-size:30rpx;" class="order-input" placeholder-class="smooth"/>
</form>
</view>
</block>
<block wx:else>
<block wx:if="{{order==2}}">
<view class="order-search" style="margin-left:224rpx;">
<view class="order-search-angle"></view>
<form bindsubmit="formSubmit" class="order-form">
<button formType="submit" class="order-submit">查询</button>
<input type="number" placeholder="请输入单号" placeholder-style="color:#999;font-size:30rpx;" class="order-input" placeholder-class="smooth" name="keyword" confirm-type="search"/>
</form>
</view>
</block>
<block wx:if="{{order==1}}">
<view class="order-search">
<view class="order-search-angle"></view>
<form bindsubmit="formSubmit" class="order-form">
<button formType="submit" class="order-submit">查询</button>
<input type="text" placeholder="请输入桌号" placeholder-style="color:#999;font-size:30rpx;" class="order-input" placeholder-class="smooth" name="keyword" confirm-type="search"/>
</form>
</view>
</block>
</block>
<view class="order-date flex-re">
<view class="order-date-single font30r {{time==1 ? 'order-date-active' : ''}}" data-time="1" bindtap="timeSearch">今天</view>
<view class="order-date-single font30r {{time==2 ? 'order-date-active' : ''}}" data-time="2" bindtap="timeSearch">昨天</view>
<view class="order-date-single font30r {{time==3 ? 'order-date-active' : ''}}" data-time="3" bindtap="timeSearch">近三天</view>
</view>
</view>
<block wx:if="{{reminderInfo!=''}}">
<view class="flex-vc" style="margin-top:{{mtop}}px;height:{{nothingHeight}}px;">
<image src="../image/nothing.svg" class="order-nothing" style="width:150rpx;height:150rpx;background:transparent;margin-top:-80rpx;"></image>
<view class="flex-cc font32r smooth" style="color:#999;margin-top:-5rpx;">{{reminderInfo}}</view>
</view>
</block>
<block wx:else>
<scroll-view scroll-y="true" class="order-list" style="height:{{order==3? nothingHeight+34 : nothingHeight}}px;margin-top:{{order==3 || (bill==1 || reduce==1)? '224rpx;' : '292rpx'}}" scroll-into-view="{{toview}}">
<view class="type_table">
<view class="type_tr" style="border-top:0;">
<view class="type_th font30r black-font flex-ll" style="width:25%;padding-left:10rpx;box-sizing:border-box;text-align:left;justify-content:flex-start;">
<view>桌号</view>
<image src="../image/direction.png" background-size="cover" class="order-list-image"></image>
</view>
<view class="type_th font30r black-font flex-ll" style="width:25%;padding:0 10rpx;box-sizing:border-box;text-align:left;justify-content:flex-start;padding-left:16rpx;">
<view>单号</view>
<image src="../image/direction.png" background-size="cover" class="order-list-image"></image>
</view>
<view class="type_th font30r black-font flex-ll" style="width:25%;box-sizing:border-box;justify-content:flex-end;">
<view>状态</view>
<image src="../image/direction.png" background-size="cover" class="order-list-image"></image>
</view>
<view class="type_th font30r black-font flex-rr" style="width:25%;padding-right:20rpx;box-sizing:border-box;justify-content:flex-end;">操作</view>
</view>
</view>
<block wx:for="{{orderlistData}}" wx:key="{{item.id}}">
<view class="type_table">
<view id="toview{{item.id}}"></view>
<view class="type_tr">
<navigator class="type_td font30r black-font flex-ll" style="padding-left:20rpx;box-sizing:border-box;line-height:1.2" url="o_detail?id={{item.id}}&status={{item.status}}" hover-class="none">{{item.tablename}}</navigator>
<navigator class="type_td font30r black-font flex-ll" url="o_detail?id={{item.id}}&status={{item.status}}" hover-class="none" style="padding-left:26rpx;box-sizing:border-box;">{{item.row_num}}</navigator>
<navigator class="type_td font30r black-font flex-rr" url="o_detail?id={{item.id}}&status={{item.status}}" hover-class="none">
<block wx:if="{{item.status==1}}"><text space="true" decode="true">进行中</text></block>
<block wx:if="{{item.status==2}}"><text space="true" decode="true">已下单</text></block>
<block wx:if="{{item.status==3}}"><text space="true" decode="true">制作中</text></block>
<block wx:if="{{item.status==4}}"><text space="true" decode="true">未结账</text></block>
<block wx:if="{{item.status==5}}"><text space="true" decode="true">已结账</text></block>
<block wx:if="{{item.status==6}}">取消订单</block>
<block wx:if="{{item.status==7}}">清台订单</block>
</navigator>
<view class="type_td font30r flex-rr" style="color:#199095;padding-right:20rpx;box-sizing:border-box;">
<block wx:if="{{bill && bill==1}}">
<view data-id="{{item.id}}" class="flex-rr" style="width:100%;" bindtap="moreTypeCount">反结账</view>
</block>
<block wx:else>
<block wx:if="{{reduce && reduce==1}}">
<view data-id="{{item.id}}" class="flex-rr" style="width:100%;" bindtap="reduceCook" data-status="{{item.status}}">退菜</view>
</block>
<block wx:else>
<view data-id="{{item.id}}" data-status="{{item.status}}" data-tableid="{{item.tableid}}" data-back="{{item.back}}" class="flex-rr" style="width:100%;" bindtap="moreAction">更多</view>
</block>
</block>
</view>
</view>
</view>
</block>
</scroll-view>
<view class="modal-mask" hidden="{{atn_ishidden}}"></view>
<view class="modal-dialog" hidden="{{atn_ishidden}}">
<view class="modal-dialog-title flex-cc font36r black">反结账</view>
<input type="text" bindinput="ModalInput" cursor-spacing="100" name="" maxlength="15" placeholder="请输入反结账原因" value="{{reasonInput}}" class="modal-dialog-input font30r black" placeholder-style="color:#999;font-size:32rpx;text-align:center;" focus="{{auto_focus}}"/>
<view class="modal-dialog-button flex-lr">
<view class="modal-button modal-cancel flex-cc font36r black" bindtap="CancelModel">取消</view>
<view class="modal-button modal-confirm flex-cc font36r" bindtap="ConfirmModel">确定</view>
</view>
</view>
</block>
<block wx:if="{{order}}">
<view class="modal-mask" data-mask="mtn_ishidden" hidden="{{moreHidden}}" bindtap="closeMore"></view>
<view class="modal-alert flex-vc" hidden="{{moreHidden}}">
<view>
<block wx:if="{{currentBack==true}}">
<view class="modal-menu font36r smooth black-font flex-cc" bindtap="moreTypeCount" data-id="{{currentId}}">反结账</view>
</block>
<block wx:else>
<block wx:if="{{currentStatus<5 && currentStatus>=2}}">
<view class="modal-menu font36r smooth black-font flex-cc" data-id="{{currentId}}" data-status="{{currentStatus}}" bindtap="reduceCook">退菜</view>
</block>
<block wx:if="{{currentStatus<5 && currentStatus>=1}}">
<view class="modal-menu font36r smooth black-font flex-cc" bindtap="changetable">转台</view>
<view class="modal-menu font36r smooth black-font flex-cc">清台</view>
</block>
</block>
<view class="modal-menu font36r smooth black-font flex-cc" data-id="{{currentId}}" data-status="{{currentStatus}}" bindtap="orderDetail">查看</view>
</view>
<view class="modal-close flex-cc" bindtap="closeMore">
<image class="close-image" src="../image/close.png" background-size="cover"></image>
</view>
</view>
</block> -->
<alert id="alert"></alert>
<netWork bind:netchange="netchange" id="network"></netWork>