cc_list.wxml
4.13 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
<view style="height:{{scrollHeight}}px;overflow-y:scroll;">
<nav backgroundColor="#199095" color="#ffffff">沽清管理</nav>
<block wx:if="{{!clearlist}}">
<view style="height:{{scrollHeight-100}}px;" class="flex-cmc">
<image class="nothing-clear" type="success" size="130" color="green" src="../image/num-clear.png"/>
<view style="padding-bottom:80rpx;"></view>
<view class="smooth" style="width:400rpx;font-size:36rpx;color:#353535;margin:0 auto;height:80rpx;line-height:40rpx;" bindtap="addClear">暂无沽清商品,快速点击<text style="color:#199095;">添加沽清</text>添加沽清菜品</view>
</view>
</block>
<block wx:else>
<view class="desk-reminder" style="margin-bottom:20rpx;">设置菜品沽清后,每日0点自动恢复</view>
<view class="type_table" style="display:flex;justify-content:center;">
<view class="type_tr">
<view class="type_th font36r black-font" style="justify-content:flex-start;">菜名名称</view>
<view class="type_th font36r black-font">剩余数量</view>
<view class="type_th font36r black-font" style="justify-content:flex-end;">操作</view>
</view>
</view>
<scroll-view scroll-y="true" style="margin-bottom:260rpx;">
<block wx:for="{{clearlist}}" wx:key="{{item.id}}">
<view class="type_table" style="display:flex;justify-content:center;">
<view class="type_tr">
<view class="type_td black-font font32r" data-id="{{item.id}}" style="text-align:left;overflow:hidden;text-overflow:ellipsis;white-space: nowrap;" bindtap="editcook">{{item.name}}</view>
<view class="type_td black-font font32r" data-id="{{item.id}}" data-name="{{item.name}}" data-clear_num="{{item.clear_num}}" bindtap="nospecs" style="text-align:center;">{{item.clear_num}}</view>
<view class="type_td" data-id="{{item.id}}" data-name="{{item.name}}" data-specs="{{item.specs}}" bindtap="deleteOnlyClear" style="text-align:right;color:#008489;font-size:32rpx;">取消沽清</view>
</view>
</view>
</block>
</scroll-view>
</block>
<view class="flex-vc add-single font30r smooth white-font" bindtap="addClear">
<text class="add-single-inline flex-cc">添加</text>
<text class="add-single-inline flex-cc">沽清</text>
</view>
</view>
<!-- 估清弹出框 -->
<view class="modal-mask" hidden="{{numNo_ishidden}}"></view>
<!-- 无规格 -->
<view class="modal-dialog" hidden="{{numNo_ishidden}}">
<view class="modal-dialog-title flex-cc font36r black">{{title}}</view>
<input type="number" bindinput="onlyModalInput" cursor-spacing="100" name="" maxlength="4" placeholder="点这里,填写沽清数量" value="{{clear_num}}" class="modal-dialog-input font30r black" placeholder-style="color:#999;font-size:32rpx;text-align:center;"/>
<view class="modal-dialog-button flex-lr">
<view class="modal-button modal-cancel flex-cc font36r black" bindtap="onlyCancelModel">取消</view>
<view class="modal-button modal-confirm flex-cc font36r" bindtap="onlyConfirmModel">确定</view>
</view>
</view>
<!-- 取消无规格估清弹出框提示 -->
<view class="modal-mask" hidden="{{dtn_ishidden}}"></view>
<view class="modal-dialog modal-dialog-reminder" hidden="{{dtn_ishidden}}">
<view class="modal-dialog-title flex-cc font36r black">{{title}}</view>
<view class="modal-reminder-title font32r">取消后,菜品数量将没有限制</view>
<view class="modal-dialog-button flex-lr">
<view class="modal-button modal-cancel flex-cc font36r black" bindtap="deleteCancelModel" data-id="{{item.id}}">取消</view>
<view class="modal-button modal-confirm flex-cc font36r" bindtap="deleteConfirmModel" data-id="{{item.id}}">确定</view>
</view>
</view>
<loading wx:if="{{loading}}"></loading>
<alert id="alert"></alert>
<netWork bind:netchange="netchange" id="network"></netWork>