supervisorDaily.wxml
7.89 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
<!--tabWorkOrder/pages/supervisorDaily/supervisorDaily.wxml-->
<view class="layout {{ flag ? 'opacity' : '' }}" v-loading="true">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="true">
<view class="navigation-title">
<view class="navigation-title-text text-hide">{{title}}</view>
</view>
</navigation-bar>
<view style="margin-top:{{ navBarHeight }}px">
<weekCalendar wx:if="{{ !routeParams.reportTypeAttr || routeParams.reportTypeAttr == 'daily' }}" timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar>
<monthCalendar wx:if="{{ routeParams.reportTypeAttr == 'monthly' }}" year="{{ currentYear }}" selectedMonth="{{ selectedMonth }}" monthList="{{ monthList }}" bind:lastYear="onLastYear" bind:nextYear="onNextYear" bind:monthClick="onMonthClick"></monthCalendar>
<weeklyCalendar wx:if="{{ routeParams.reportTypeAttr == 'weekly' }}" year="{{ currentYear }}" month="{{ selectedMonth }}" selectedWeek="{{ selectedWeek }}" weekList="{{ weekList }}" bind:lastMonth="onLastMonth" bind:nextMonth="onNextMonth" bind:weekClick="onWeekClick"></weeklyCalendar>
</view>
<view class="main {{ isFullSucreen ? 'isFullSucreen':'' }}">
<view wx:if="{{tmlpInitData.length}}" style="margin-bottom: 100px;">
<scroll-view class="tab-box" scroll-x enable-flex scroll-with-animation>
<view class="tab-item {{ tabActive == item.key ? 'active' : ''}}" wx:for="{{tabList}}" wx:key="index" bindtap="tabChange" data-key="{{item.key}}">{{item.name}}</view>
</scroll-view>
<!-- 动态表单 -->
<view class="cust-form-box">
<gl-cust-form wx:if="{{tmlpObj && tabChange}}" id="{{tabActive}}" formData="{{ tmlpFormData }}" disable="{{isDisable}}" dataAttrName="{{ dataAttrName }}" formDataList="{{ tmlpObj[tabActive] }}" bind:radioEvent="radioEvent">
<!-- 与会人员 -->
<view wx:if="{{tabActive == ('organizeTraining' + trainTmlpSuffix)}}" slot='attendingStaff' class="attendingStaff">
<view class="picker" bindtap="handleStaffPicker" data-name="attendingStaff" data-pname="organizeTraining">
<image class="pickerArrow" src="/components/images/arrow-x.png" />
<view class="flex" wx:if="{{selectedStr}}">
<view class="text-hide">{{ selectedStr }}</view>
<view class="selectTxt">{{selectTxt}}</view>
</view>
<text class="placeholder" wx:else>点击选择</text>
</view>
</view>
<!-- 腾讯会议录屏链接 -->
<view wx:if="{{tabActive == ('organizeTraining' + trainTmlpSuffix)}}" slot='tencentMeetingRecordingLink' class="meeting-box">
<view class="example-tips">会议录制文件权限需设置为「所有人可查看」<text class="example-btn" bindclick="handleLookPictrue" bind:tap="onClickShow" data-name="example-meeting">示例</text></view>
<view class="meeting-textarea">
<van-field value="{{tmlpFormData['tencentMeetingRecordingLink' + trainTmlpSuffix]}}" hold-keyboard type="textarea" rows="4" autosize="{ minHeight: 50 }" show-word-limit placeholder="录制:驻店人员预定的会议 录指纹键:http://meeting.tencent.com/crm/2rejORzKc560" maxlength="100" disabled="{{isDisable}}" data-attr="tencentMeetingRecordingLink" bindinput="handleInput" />
</view>
</view>
<!-- 培训照片 -->
<view wx:if="{{tabActive == ('organizeTraining' + trainTmlpSuffix)}}" slot='trainingPhotos' class="trainingPhotos">
<view class="example-tips">线下培训上传「与会人员照片」<text class="example-btn" bind:tap="onClickShow" data-name="example-xianxia">示例</text></view>
<view class="example-tips">线上培训上传「会议上线截图」<text class="example-btn" bind:tap="onClickShow" data-name="example-xianshang">示例</text></view>
<van-uploader class="plus" file-list="{{ imgObj['trainingPhotos'+trainTmlpSuffix] }}" upload-text="上传照片" max-count="1" deletable="{{!isDisable}}" preview-size="var(--fontSize192)" disabled="{{isDisable}}" bind:after-read="upLoad" bind:delete="handleDeleteImg" data-attr="trainingPhotos"></van-uploader>
</view>
<!-- 工作总结 -->
<view wx:if="{{tabActive == 'workSummary'}}" slot='todaySummary' class="meeting-box">
<view class="meeting-textarea">
<van-field value="{{tmlpFormData.todaySummary}}" autosize hold-keyboard type="textarea" rows="4" show-word-limit placeholder="{{tmlpItemObj.workSummary.todaySummary.placeholder}}" maxlength="{{tmlpItemObj.workSummary.todaySummary.maxlength}}" disabled="{{isDisable}}" data-attr="todaySummary" bindinput="handleInput" />
</view>
</view>
<!-- 明日计划 -->
<view wx:if="{{tabActive == 'workSummary'}}" slot='tomorrowPlan' class="meeting-box">
<view class="meeting-textarea">
<van-field value="{{tmlpFormData.tomorrowPlan}}" autosize hold-keyboard type="textarea" rows="4" show-word-limit placeholder="{{tmlpItemObj.workSummary.tomorrowPlan.placeholder}}" maxlength="{{tmlpItemObj.workSummary.tomorrowPlan.maxlength}}" disabled="{{isDisable}}" data-attr="tomorrowPlan" bindinput="handleInput" />
</view>
</view>
</gl-cust-form>
</view>
<view class="btns {{ isFullSucreen ? 'isFullSucreen-btn':'' }}" wx:if="{{!isDisable}}">
<view class="btns-con">
<view class="confirm text-center" bindtap="handleConfirm">提交</view>
</view>
</view>
<view class="btns two-btns {{ isFullSucreen ? 'isFullSucreen-btn':'' }}" wx:if="{{isTodayEdit && hasDailyValue}}">
<view class="btns-con" wx:if="{{isDisable}}">
<view class="confirm text-center" style="width: 100%;" bindtap="handleEdit">修改</view>
</view>
<view wx:else class="btns-con">
<view class="cancel text-center" bindtap="handleCancel">取消</view>
<view class="edit text-center" bindtap="handleConfirm">提交</view>
</view>
</view>
</view>
<!-- 未配置模版 -->
<view wx:else class="empty-box">
<view>
<!-- <gl-image class="icon-empty" src="/miniProgram/daily-empty.png"></gl-image> -->
<image class="icon-empty" src="{{IMG_URL}}empty-data.png" mode=""/>
<view>总部尚未配置日报信息</view>
<view class="sub-txt">请查阅其他日期或联系总部</view>
</view>
</view>
</view>
</view>
<!-- 与会人员多选 -->
<!-- <select-item-popup show="{{showSelectItemPopup}}" title="{{selectItemTitle}}" optionList="{{mutiOption[selectItemName].optionList}}" index="1" optionLabel="staffName" bindconfirm="changeStaff" bindcancel="closeSlectItemPopup" bindclick="click" /> -->
<select-popup show="{{showSelectItemPopup}}" id="staffPopup" title="{{selectItemTitle}}" optionList="{{mutiOption[selectItemName].optionList}}" index="1" optionLabel="staffName" bindconfirm="changeStaff" bindcancel="closeSlectItemPopup" bindclick="click" bindsearch="staffSearch"></select-popup>
<van-overlay show="{{ imgShow }}" bind:click="onClickHide" z-index="99999999">
<view class="wrapper">
<image src="{{IMG_URL}}/{{imgName}}.png" mode="widthFix" />
</view>
</van-overlay>