o_list.wxml 11.7 KB
<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>