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({ ...@@ -22,6 +22,7 @@ Page({
IMG_URL, IMG_URL,
imgShow: false, imgShow: false,
isDisable: false, isDisable: false,
hasDailyValue: false,
isUpload: false, isUpload: false,
// userInfo: {}, // userInfo: {},
// 模版表单提交数据 // 模版表单提交数据
...@@ -207,6 +208,9 @@ Page({ ...@@ -207,6 +208,9 @@ Page({
sDate: timeBean.reportStartDate, sDate: timeBean.reportStartDate,
eDate: timeBean.reportEndDate eDate: timeBean.reportEndDate
} }
this.setData({
hasDailyValue: false
})
wx.$util.showLoading() wx.$util.showLoading()
api.getDateRecord(params).then(res => { api.getDateRecord(params).then(res => {
console.log(res, 'res-----') console.log(res, 'res-----')
...@@ -221,10 +225,10 @@ Page({ ...@@ -221,10 +225,10 @@ Page({
if (timeBean.weekDayList[timeBean.selectDay].date == new Date().format('yyyy-MM-dd')) { if (timeBean.weekDayList[timeBean.selectDay].date == new Date().format('yyyy-MM-dd')) {
//改---------------- //改----------------
this.setData({ 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)) { } else if (tmlpEditList.includes(tmlpCode)) {
console.log('???')
// 往期编辑 // 往期编辑
this.setData({ this.setData({
isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false isDisable: timeBean.weekDayList[timeBean.selectDay].hasDailyValue || false
...@@ -666,7 +670,7 @@ Page({ ...@@ -666,7 +670,7 @@ Page({
let that = this let that = this
wx.showModal({ wx.showModal({
title: "确认提示", title: "确认提示",
content: "日报提交后将无法二次修改并将触发群消息推送,是否确认提交?", content: "日报提交后将触发群消息推送,是否确认提交?",
// showCancel: false, // showCancel: false,
cancelText: '取消', // '取消 cancelText: '取消', // '取消
cancelColor: "#292D33", cancelColor: "#292D33",
...@@ -714,6 +718,21 @@ Page({ ...@@ -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() { handleConfirm() {
let { isConfirm } = this.data let { isConfirm } = this.data
if (isConfirm) { if (isConfirm) {
......
...@@ -242,6 +242,28 @@ page { ...@@ -242,6 +242,28 @@ page {
box-sizing: border-box; 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 { .confirm {
border: var(--fontSize2) solid #0075F9; border: var(--fontSize2) solid #0075F9;
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
......
...@@ -59,6 +59,15 @@ ...@@ -59,6 +59,15 @@
<view class="confirm text-center" bindtap="handleConfirm">提交</view> <view class="confirm text-center" bindtap="handleConfirm">提交</view>
</view> </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>
<!-- 未配置模版 --> <!-- 未配置模版 -->
<view wx:else class="empty-box"> <view wx:else class="empty-box">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!