businessCell.wxml
6.39 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
<!-- tabOperating/pages/index/component/business/business.wxml -->
<!-- bindscrolltolower="scrollonReachBottom" -->
<wxs src="../../../index.wxs" module="filter" />
<!-- <scroll-view
hidden="{{hidden}}"
scroll-y
enable-back-to-top
refresher-enabled="{{false}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
style="height:100%;"
scroll-top="{{scrollTop}}"
class="businessPage list"
refresher-triggered="{{triggered}}"> -->
<view class="businessPage list">
<view class=" title">
<!-- 还有确定是单园区店 ||userInfo.userType==1 -->
<!-- 逻辑是只要是员工类型都不可以显示 -->
<!-- 园区店切换到某个具体园区才可以 canRemark处理只有一个园区店的情况 -->
<view class="addFields" wx:if="{{ (userInfo.userType != 2||userInfo.isSuper) &&(userInfo.subLoginUser.merchantId != userInfo.merchantId || canRemark )}}" data-type="add" bindtap="remarkShow">
<image class="addIcon" src="../../../../images/addIcon.png" mode="aspectFill" binderror="" bindload="" />
新增字段
</view>
<view class="tips" bindtap="tipsShowPop">
字段解释
<image class="tipsIcon" src="../../../../images/tipsIcon.png" mode="aspectFill" binderror="" bindload="" />
</view>
</view>
<view class="cellContainer">
<block wx:for="{{listItem}}" wx:key="index" wx:key="index" wx:for-item='item' wx:for-index='index'>
<view class="cell">
<view class="todayData">
<view>{{item.label}}</view>
<!-- -->
<view class="num" wx:if="{{item['prop']!='currentDayFilmUpgradeRate'}}">
{{ filter.nullFormat(businessObj[item['prop']])}}
</view>
<view class="num" wx:else>{{ filter.rateFormat(businessObj[item['prop']])}}</view>
</view>
<view class="monthData">
<view class="total" wx:if="{{item['prop'] == 'currentDayFilmUpgradeRate'}}">
{{item['different']}}={{businessObj[item['update']]}}/{{businessObj[item['total']]}}
</view>
<view class="total" wx:elif="{{item['prop'] == 'notComeToFilmTotal'}}">
{{item['different']}}
</view>
<view class="total" wx:elif="{{item['prop'] == 'currentDayFilmCustomerUnitMoney'}}">
{{item['different']}}{{businessObj[item['month']]}}
</view>
<view class="total" wx:else>
本周累计{{businessObj[item['week']]}} 本月累计{{businessObj[item['month']]}}
</view>
<view class="num" wx:if="{{item['diffWeek']}}">
比上周
<image wx:if="{{businessObj[item['diffWeek']]&&businessObj[item['diffWeek']]<0}}" src="../../../../images/arrowgreenIcon.png" />
<image wx:if="{{businessObj[item['diffWeek']]&&businessObj[item['diffWeek']]>0}}" src="../../../../images/arrowredIcon.png" />
<!-- 11% -->
{{filter.rateFormatAbs(businessObj[item['diffWeek']])}}
</view>
</view>
</view>
</block>
<view class="otherCell">
<view class="label">其他产品总营业额</view>
<view class="num">{{businessObj['currentDayOtherOrderMoneyTotal']}}</view>
</view>
<view class=" touch-item {{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{{index}}" wx:for="{{list}}" wx:for-item='item' wx:key="index">
<view class="content">
<view style="{{item.txtStyle}}" class='item otherAdd' data-index='{{index}}' data-id="{{item['fieldId']}}" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchE">
<!-- <view class='title'>{{item.title}}</view>
<text>{{item.create_time}}</text> -->
<view class="otherData">
<view class="label">{{item['fieldName']}}</view>
<view class="check" data-id="{{item['fieldId']}}" data-value="{{item['fieldValue']}}" data-type="update" bindtap="remarkShow">
<image class="checkIcon" src="../../../../images/checkIcon.png" mode="aspectFill" binderror="" bindload="" />
核准
</view>
</view>
<view class="num">
<!-- wx:if="{{item['fieldValue']}}" -->
<view data-id="{{item['fieldId']}}" data-type="update" data-value="{{item['fieldValue']}}" bindtap="remarkShow" class="placeholder num {{item['fieldValue']?'':'placeholderText'}}">
{{item['fieldValue']?item['fieldValue']:'输入数字'}}
</view>
<!-- <view class="placeholder" >输入数字</view> -->
<!-- <input
wx:else
placeholder="输入数字"
class="input"
value="{{item['value']}}"
placeholder-class="placeholder-class"
maxlength="10"
type="text"
bindblur="inputBlur"
bindinput="input"
bindfocus="inputFocus"
data-index="{{index}}"
always-embed></input> -->
<!-- <textarea
wx:else
placeholder="输入数字"
class="input"
value="{{item['value']}}"
placeholder-class="placeholder-class"
maxlength="10"
type="text"
data-id="{{item['fieldId']}}"
data-type="create"
bindtap="remarkShow"
data-index="{{index}}"
always-embed></textarea> -->
<!-- bindblur="remarkShow"
bindinput="remarkShow"
bindfocus="remarkShow"
bindconfirm="remarkShow" -->
<!-- adjust-position="{{inputUp}}" adjust-position="" -->
</view>
</view>
</view>
<view wx:if="{{!item['confirmIndex']}}" class="del" data-id="{{item['fieldId']}}" catchtap="delBtn" data-index="{{index}}">
删除
</view>
<view wx:else class="del confirm" data-id="{{item['fieldId']}}" catchtap="confirmDelBtn" data-index="{{index}}">
确认删除
</view>
<!-- confirm wx:if="{{!item['confirmIndex']}}" -->
<!-- <view
wx:else
class="del"
data-id="{{item['fieldId']}}"
catchtap="confirmDelBtn"
data-index="{{index}}">
确认删除
</view> -->
</view>
</view>
<view class="bottomTips">到底了~</view>
</view>
<!-- </scroll-view> -->
<!-- placeholder="新数值会覆盖旧数值" -->