Commit 7e54013f by 前端

Merge branch 'SAAS+V5.4.1' into 'SAAS+V5.5.0'

上线合并

See merge request !455
2 parents 7d961c2e 6f9c3778
......@@ -22,6 +22,7 @@ Page({
IMG_URL,
imgShow: false,
isDisable: false,
hasDailyValue: false,
isUpload: false,
// userInfo: {},
// 模版表单提交数据
......@@ -207,6 +208,9 @@ Page({
sDate: timeBean.reportStartDate,
eDate: timeBean.reportEndDate
}
this.setData({
hasDailyValue: false
})
wx.$util.showLoading()
api.getDateRecord(params).then(res => {
console.log(res, 'res-----')
......@@ -221,10 +225,10 @@ Page({
if (timeBean.weekDayList[timeBean.selectDay].date == new Date().format('yyyy-MM-dd')) {
//改----------------
this.setData({
isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false
isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false,
hasDailyValue: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false
})
} else if (tmlpEditList.includes(tmlpCode)) {
console.log('???')
// 往期编辑
this.setData({
isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false
......@@ -666,7 +670,7 @@ Page({
let that = this
wx.showModal({
title: "确认提示",
content: "日报提交后将无法二次修改并将触发群消息推送,是否确认提交?",
content: "日报提交后将触发群消息推送,是否确认提交?",
// showCancel: false,
cancelText: '取消', // '取消
cancelColor: "#292D33",
......@@ -714,6 +718,21 @@ Page({
}
},
changeVal(attr, val) {
this.setData({
[attr]: val
})
},
handleEdit() {
this.changeVal('isDisable', false)
},
handleCancel() {
this.changeVal('isDisable', true)
this.onLoad()
},
handleConfirm() {
let { isConfirm } = this.data
if (isConfirm) {
......
......@@ -242,6 +242,28 @@ page {
box-sizing: border-box;
}
.btns.two-btns .btns-con {
justify-content: space-between;
flex-flow: row;
flex-wrap: nowrap;
}
.btns.two-btns .btns-con view {
width: 45%;
border: var(--fontSize2) solid #0075F9;
border-radius: var(--fontSize12);
height: var(--fontSize80);
box-sizing: border-box;
color: #fff;
background-color: #347BFF;
}
.btns-con .cancel {
background-color: #F2F3F5 !important;
border: var(--fontSize2) solid #F2F3F5 !important;
color: #292D33 !important;
}
.confirm {
border: var(--fontSize2) solid #0075F9;
border-radius: var(--fontSize12);
......
......@@ -17,7 +17,7 @@
<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 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}}">
......@@ -59,6 +59,15 @@
<view class="confirm text-center" bindtap="handleConfirm">提交</view>
</view>
</view>
<view class="btns two-btns {{ isFullSucreen ? 'isFullSucreen-btn':'' }}" wx:if="{{tmlpCode == 'uuid-temp-001' && 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">
......@@ -72,7 +81,7 @@
</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>
<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" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!