online_update.wxml 7.99 KB
<!--pages/book/b_addnew.wxml-->
<wxs src="../../../utils/util.wxs" module="util" />
<nav>录入订座信息</nav>
<view class="page" style="margin-bottom: {{pageMarginBottom}}rpx;" id="j_page">
    <view class="base-info" wx:if="{{runTime}}">
        <view class="section">
            <add-date time="{{runTime}}" type="{{type}}"></add-date>
        </view>
        <view class="section">
            <add-time-dur></add-time-dur>
        </view>
        <view class="section" style="height: 90rpx;">
            <view class="tab flex-lr">
                <view class="tab flex-ll">
                    <formids class="item-pnum {{form.pnum==item?'checked':''}}" wx:for="{{[6,7,8,9,10]}}" wx:key="pnumkey"
                             bindtap="selectedValue" data-key="pnum" data-value="{{item}}">
                        <view class="pnum">{{item}}</view>
                    </formids>
                </view>
                <view class="tab" style="margin-left: 20rpx;">
                    <view class="item {{form.pnum<6 || form.pnum>10?'checked':''}} flex-lr"
                          data-key="pnum" data-value="{{form.pnum}}">
                        <view style="width: 80%" class="pnum">
                            <input
                                    bindinput="selectedValue" bindconfirm="selectedValue"
                                    bindblur="pnumInputFocusEvent"
                                    data-key="pnum" value="{{(form.pnum<6 || form.pnum>10) || pnumInputFocus?form.pnum:''}}"
                                    placeholder-class="placeholder-class-pnum"
                                    maxlength="3" type="number"
                                    placeholder="{{form.pnum<6 || form.pnum>10?form.pnum:''}} 更多"/>

                        </view>
                        <image
                                src="http://qn.colorcun.com/custom/lite-yd/image/pnum{{form.pnum<6 || form.pnum>10?'.selected':''}}.png"
                                style="min-width: 36rpx;width: 36rpx;height: 36rpx; margin-right: 22rpx;"></image>
                    </view>
                </view>
            </view>
        </view>
    </view>

    <view class="page-full tables">
        <view class="page" style="margin-top: 0">
            <view class="title flex-lr">
                <view>可订桌位<text wx:if="{{tables.length>0}}"> ({{tablesLength}})</text></view>
                <view class="flex-rr advice-more" bindtap="selectdesk">
                    <view style="padding-right:20rpx;" class="gray-deep-font font26r">更多</view>
                    <image src="http://qn.colorcun.com/custom/lite-yd/image/click.png" class="icon12-22"></image>
                </view>
            </view>
            <view class="advice-desk-detail flex-rr" wx:if="{{tables.length>0}}">
                <block wx:for="{{tablesed||tables}}" wx:key="tableskey">
                    <board width="160" height="180" board="{{item}}"
                           style="margin: 20rpx 0 0 20rpx"
                           event="boardChoose" className="noBottom"
                           data-value="{{index}}"
                           bindtap="selectedValue"
                           data-key="tid"></board>
                </block>
            </view>
            <view class="advice-desk-detail flex-cc" wx:else="">
                没有符合条件的桌位!
            </view>
        </view>
    </view>
    <view class="book-info">
        <view class="book-info-single flex-lr" style="align-items:flex-start;position:relative;z-index:10;">
            <input placeholder="客户电话" placeholder-class="gray-font font34r" class="black-font font34r" type="number" maxlength="11"
                   bindinput="selectedValue"
                   bindconfirm="selectedValue"
                   data-key="phone"
                   value="{{form.phone}}" style="color:{{reminder ? '#E14553' : '#353535'}};width:400rpx;" cursor-spacing="260"/>
            <view style="color:#199095;min-width: 150rpx; text-align: right">
                <add-time-dur-items
                        bindevent="addTimeDurItemsEvent"
                        style="font-size: 34rpx;height: 100rpx;line-height: 100rpx;">
                    <view wx:if="{{form.is_set_ddate==1 || hasManual}}">{{util.unixtoTime(time,'HH:II')}}</view>
                    <view wx:else="" style="height: 100rpx;line-height: 100rpx;color:rgba(53,53,53,1);">未设置到店时间</view>
                </add-time-dur-items>
            </view>
            <block wx:if="{{searchlist}}">
                <searchList searchlist="{{searchlist}}" bind:selectphone="selectphone"></searchList>
            </block>
        </view>
        <view class="book-info-single flex-lr" style="align-items:flex-start;">
            <input placeholder="客户姓名(必填)" placeholder-class="gray-font font34r" class="black-font font34r"
                   maxlength="12" style="width:450rpx;" value="{{form.rname}}"
                   bindinput="selectedValue"
                   bindconfirm="selectedValue"
                   bindfocus="inputFocus"
                   bindblur="inputFocus"
                   data-key="rname"/>
            <view class="book-info-grand flex-rr font28r gray-deep-font">
                <block wx:for="{{grand}}" wx:key="grand.key">
                    <view class="book-grand flex-cc book-grand-border {{form.sex==item.sex ? 'book-grand-active white-font' : ''}}"
                          bindtap="selectedValue"
                          data-value="{{item.sex}}"
                          data-key="sex">{{item.grand_title}}</view>
                </block>
            </view>
        </view>

        <view class="book-info-single flex-lr">
            <input placeholder="客户要求(25字以内,选填)" placeholder-class="gray-font font34r" class="black-font font34r" maxlength="25" value="{{form.cusdem}}"
                   bindinput="selectedValue"
                   bindconfirm="selectedValue"
                   bindfocus="inputFocus"
                   bindblur="inputFocus"
                   data-key="cusdem"/>
            <view class="CustomRemarkMore flex-rr">
                <view bindtap="CustomRemarkMore">快速备注</view>
            </view>
        </view>
        <view wx:if="{{CustomRemark.length>0}}" class="book-info-single last" style="padding-top: 14rpx; height: 60rpx;">
            <view class="flex-lr CustomRemark">
                <view class="CustomRemarks">
                    <view class="CustomRemarksView">
                        <view class="CustomRemarkItem {{item.active?'active':''}}" wx:for="{{CustomRemark}}"
                              bindtap="oftenUse"
                              data-id="{{item.id}}"
                              data-value="{{item.often_use}}">{{item.often_use}}</view>
                    </view>
                </view>
            </view>
        </view>
    </view>
    <view class="page-full submit">
        <view class="confirm-button white-font flex-vc font34r {{buttonhide==false ? 'confirm-button-active' : ''}}" bindtap="{{buttonhide==false ? 'formsubmit' : ''}}">完成预订</view>
    </view>
</view>
<tabBar></tabBar>
<view class="calendar-mask" bindtap="CustomRemarkMore"
      style="height:100%;" wx:if="{{CustomRemarkMoreMask}}">
    <view class="timePicker" catchtap="catchtap">
        <view class="flex-rr">
            <image class="close" src="http://qn.colorcun.com/custom/lite-yd/image/add-act.png" bindtap="CustomRemarkMore"></image>
        </view>
        <view class="flex-cc" style="margin-bottom: 56rpx; font-size: 30rpx;">
            <view bindtap="calendarClose">更多标签</view>
        </view>
        <view class="flex-ll" style="flex-wrap:wrap;width: 110%; margin-left: -5%; max-height: 700rpx;overflow-y: auto;">
            <view class="CustomRemarkItem {{item.active?'active':''}}" wx:for="{{CustomRemark}}"
                  wx:if="{{item.often_use}}" bindtap="oftenUse"
                  data-id="{{item.id}}"
                  data-value="{{item.often_use}}">{{item.often_use}}</view>
        </view>
    </view>
</view>