dailySupervisionReport.wxml
6.01 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
<!--packageIndex/pages/dailySupervisionReport/dailySupervisionReport.wxml-->
<glsx-privacy appletName="嘀加门店管理助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
showBack
bindback="back"
navStyle="background-color: transparent;box-shadow:none;">
<view class="page-title">
督导日报
</view>
</navigation-bar>
<scroll-view scroll-y class="container" style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{orderObj.taskStatus != 2 ? (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') : '0'}};">
<view class="report-page">
<view class="item-box">
<view class="lebel">当日状态<text class='required'>*</text></view>
<view class="value_box">
<view class="radio-box" bindtap="changeStatus" data-value='0'>
<image wx:if="{{orderObj.onDutyFlag == 0}}" class="radio-icon" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/radio-checked.png" mode=""/>
<view wx:else class="circle"></view>
<view class="text">在岗</view>
</view>
<view class="radio-box" bindtap="changeStatus" data-value='1'>
<image wx:if="{{orderObj.onDutyFlag == 1}}" class="radio-icon" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/radio-checked.png" mode=""/>
<view wx:else class="circle"></view>
<view class="text">调休</view>
</view>
</view>
</view>
<block wx:if="{{orderObj.onDutyFlag == 0}}">
<!-- <view class="item-box">
<view class="label">选择门店<text class='required'>*</text></view>
<view class="value" bindtap="chooseMerchant">
<block wx:if="{{!orderObj.taskMerchantList.length}}">
<text class="placeholder">点击选择</text>
</block>
<text wx:else>已选{{orderObj.taskMerchantList.length}}个</text>
<image src="{{IMG_URL}}arrow.png" mode=""/>
</view>
</view> -->
<view class="multiple-select">
<view class="multiple-select__header">
<view class="multiple-select__label">选择门店<text class='required'>*</text></view>
<view bindtap="chooseMerchant">
<text class="placeholder" wx:if="{{orderObj.taskStatus != 2}}">点击选择(可多选)</text>
<image class="multiple-select__arrow" src="{{IMG_URL}}arrow.png" mode="aspectFit" />
</view>
</view>
<view class="multiple-select__body" wx:if="{{orderObj.taskMerchantList.length}}">
<view class="multiple-tags">
<block wx:for="{{orderObj.taskMerchantList}}" wx:key="merchantId" wx:for-index="index">
<view class="multiple-tag">
<text class="multiple-tag__text" style="max-width: {{orderObj.taskStatus == 2 ? '100%' : 'calc(100% - 36rpx)'}};">{{item.merchantName}}</text>
<text class="multiple-tag__close" wx:if="{{orderObj.taskStatus != 2}}" catchtap="removeMerchant" data-index="{{index}}">×</text>
</view>
</block>
</view>
</view>
</view>
<view class="item-box remark_box">
<view class="label">今日工作事项<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="contextInput" data-type="taskContext" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 500</view>
</view>
</view>
<view class="item-box remark_box">
<view class="label">明日工作事项<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.nextWorkItems }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="contextInput" data-type="nextWorkItems" />
<view class="currentWordNumber">{{nextWorkItemsLength || 0}} / 500</view>
</view>
</view>
<view class="item-box remark_box">
<view class="label">需协助事项<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.needAssistItems }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="contextInput" data-type="needAssistItems" />
<view class="currentWordNumber">{{needAssistItemsLength || 0}} / 500</view>
</view>
</view>
<!-- <view class="image-box">
<view class="label">门店拍照<text class='required'>*</text></view>
<view class="upload_box">
<block wx:if="{{orderObj.taskImageList.length > 0}}">
<view class="payVoucher_image" wx:for="{{orderObj.taskImageList}}" wx:key="index">
<image bindtap="previewImage" data-index="{{index}}" data-url="{{orderObj.taskImageList}}" src="{{item.imageUrl}}"/>
<image class="del_icon" wx:if="{{orderObj.taskStatus != 2}}" src="{{IMG_URL}}zy_paf_del_icon.png" mode="" bindtap="delPhoto" data-index="{{index}}"/>
</view>
</block>
<block wx:if="{{orderObj.taskImageList.length < 9 && orderObj.taskStatus != 2}}">
<view class="upload-item" bindtap="handleImageUpload">
<image src="{{IMG_URL}}{{item.uploadIcon || 'zy-upload_icon.png'}}" class="icon-uploadAdd {{item.uploadIcon ? 'custom-icon-uploadAdd' : ''}}"></image>
<view class="upload-text">
{{orderObj.taskImageList.length + '/' + 9}}
</view>
</view>
</block>
</view>
</view> -->
</block>
</view>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn" bindtap="submit">提交</view>
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" values="{{ selectValues }}" value="{{ selectValue }}" multiple bindconfirm="handlePopupConfirm" labelKey="merchantName" valueKey="merchantId" height="80%" title="门店选择" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>