Commit 50c70f4d by chenwq

feat(报表): 新增员工日报/周报/月报模板选择功能

实现员工日报、周报、月报的模板选择弹窗组件,支持从服务端获取模板列表并选择。主要包含:
1. 新增report-template-popup组件及相关样式
2. 添加获取模板的API接口
3. 在首页和工作日报页面集成模板选择逻辑
4. 完善日报/周报/月报的类型区分和参数传递
1 parent 7614850e
...@@ -458,5 +458,9 @@ module.exports = { ...@@ -458,5 +458,9 @@ module.exports = {
// 上传视频文件返回封面 // 上传视频文件返回封面
uploadFileWithCover(data) { uploadFileWithCover(data) {
return api.post('dj.api.smartcarlife.common.uploadVideo.returnWithCover', data, ['file']) return api.post('dj.api.smartcarlife.common.uploadVideo.returnWithCover', data, ['file'])
},
// 获取员工日报/周报/月报模版
getStaffTemplate(data) {
return api.post('dj.api.carboutique.find.staff.good.news.template', data)
} }
} }
Component({
properties: {
show: {
type: Boolean,
value: false
},
templateList: {
type: Array,
value: []
}
},
methods: {
onModalBtn(e) {
// modal button click: 0 is Cancel
this.triggerEvent('cancel');
},
onSelect(e) {
const item = e.currentTarget.dataset.item;
this.triggerEvent('select', item);
}
}
})
{
"component": true,
"usingComponents": {
"modal": "/components/modal/modal",
"gl-image": "/components/GlImage/index"
}
}
<modal show="{{show}}" custom="{{true}}" tapTitle="选择模板" title="" btns="{{['取消']}}" binddidClickBtn="onModalBtn">
<view class="template-list">
<block wx:for="{{templateList}}" wx:key="index">
<view class="template-item" bindtap="onSelect" data-item="{{item}}">
<view class="item-name">{{item.name}}</view>
<view class="arrow-right">
<image src="/images/arrow-right.png" class="arrow-img" />
</view>
</view>
</block>
</view>
</modal>
.template-list {
max-height: 600rpx;
overflow-y: auto;
padding: 0 30rpx;
}
.template-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
margin-bottom: 24rpx;
background-color: #F7F8FA;
border-radius: 16rpx;
}
.item-name {
flex: 1;
font-size: 28rpx;
color: #333;
font-weight: 500;
}
.arrow-right {
width: 32rpx;
height: 32rpx;
display: flex;
align-items: center;
justify-content: center;
}
.arrow-img {
width: 13.2rpx;
height: 24rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -171,9 +171,8 @@ Component({ ...@@ -171,9 +171,8 @@ Component({
menuText: '工作日报', menuText: '工作日报',
icon: 'supervisorDailyNew', icon: 'supervisorDailyNew',
path: 'tabWorkOrder.supervisorDaily', path: 'tabWorkOrder.supervisorDaily',
// params: { reportTypeAttr: 'daily',
// templateCode: 'qinggai-temp-001' reportTypeVal: '1',
// },
recordId: 15, recordId: 15,
noCheckdailyReport: true noCheckdailyReport: true
}, },
...@@ -181,9 +180,8 @@ Component({ ...@@ -181,9 +180,8 @@ Component({
menuText: '工作周报', menuText: '工作周报',
icon: 'weeklyReport', icon: 'weeklyReport',
path: 'tabWorkOrder.supervisorDaily', path: 'tabWorkOrder.supervisorDaily',
// params: { reportTypeAttr: 'weekly',
// templateCode: 'qinggai-temp-001' reportTypeVal: '2',
// },
recordId: 18, recordId: 18,
noCheckdailyReport: true noCheckdailyReport: true
}, },
...@@ -191,9 +189,8 @@ Component({ ...@@ -191,9 +189,8 @@ Component({
menuText: '工作月报', menuText: '工作月报',
icon: 'monthlyReport', icon: 'monthlyReport',
path: 'tabWorkOrder.supervisorDaily', path: 'tabWorkOrder.supervisorDaily',
// params: { reportTypeAttr: 'monthly',
// templateCode: 'qinggai-temp-001' reportTypeVal: '3',
// },
recordId: 19, recordId: 19,
noCheckdailyReport: true noCheckdailyReport: true
} }
......
...@@ -6,7 +6,8 @@ import { ...@@ -6,7 +6,8 @@ import {
getWaitAuditCountAPI, getWaitAuditCountAPI,
waitstaffstateAPI, waitstaffstateAPI,
getMerchantBrand, getMerchantBrand,
getListSelectAccount getListSelectAccount,
getStaffTemplate
} from '~/api/api' } from '~/api/api'
import { import {
getYQInfo, getYQInfo,
...@@ -68,7 +69,52 @@ Page({ ...@@ -68,7 +69,52 @@ Page({
ispopUp: true, ispopUp: true,
isPad: false, isPad: false,
isWait: false, //今日待办 isWait: false, //今日待办
sceneObj: {} sceneObj: {},
showReportPopup: false,
reportTemplateList: [
// { name: "工作日报", params: {} },
// { name: "轻改区域日报", params: { templateCode: "uuid-temp-001" } },
],
currentReportItem: null,
},
onReportPopupCancel() {
this.setData({
showReportPopup: false,
});
},
onReportPopupSelect(e) {
const selectedTemplate = e.detail;
this.setData({
showReportPopup: false,
});
console.log(selectedTemplate, 'selectedTemplate---')
const item = this.data.currentReportItem;
if (!item) return;
// Merge params
const params = {
// ...(item.params || {}),
reportTypeAttr: item.reportTypeAttr,
...(selectedTemplate || {}),
};
// 埋点
if (item.recordId) {
wx.$util.pointRecord(item.recordId)
}
let { mentorFlag } = this.data;
// 飞行督导/导师点击延保区域日报入口埋点
if (
item.url == "tabWorkOrder.supervisorDaily" &&
(mentorFlag)
) {
wx.$track.setTrackData(0, "supervisor_daily_page", {}, "", 1);
}
wx.$router.go(item.url, {
params: params,
});
}, },
// 查询员工待办事项列表 // 查询员工待办事项列表
getStaffRemindList() { getStaffRemindList() {
...@@ -146,7 +192,7 @@ Page({ ...@@ -146,7 +192,7 @@ Page({
'确定', '确定',
false, false,
1, 1,
() => {} () => { }
) )
} }
wx.$storage.set('dateStaffPop', { wx.$storage.set('dateStaffPop', {
...@@ -400,7 +446,7 @@ Page({ ...@@ -400,7 +446,7 @@ Page({
merchantRange merchantRange
}) })
}) })
.catch(err => {}) .catch(err => { })
}, },
changePicker(e, value) { changePicker(e, value) {
let { merchantId } = e let { merchantId } = e
...@@ -454,9 +500,35 @@ Page({ ...@@ -454,9 +500,35 @@ Page({
} }
this.throttledJump(e) // 调用节流后的函数 this.throttledJump(e) // 调用节流后的函数
}, },
openWorkReportTemp(targetItem) {
const tipTxtObj = {
'daily': '暂无可填日报模版,请找总部运营配置',
'weekly': '暂无可填周报模版,请找总部运营配置',
'monthly': '暂无可填月报模版,请找总部运营配置'
}
getStaffTemplate({ reportType: targetItem.reportTypeVal }).then(res => {
let { code, data } = res
console.log(data)
if (!data.length) {
wx.$util.showToast(tipTxtObj[targetItem.reportTypeAttr])
return
}
if (code == 0) {
this.setData({
showReportPopup: true,
reportTemplateList: data,
currentReportItem: targetItem || null
});
}
})
},
async jump(e) { async jump(e) {
console.log('jump') console.log('jump')
let { item, type } = e.currentTarget.dataset let { item, type } = e.currentTarget.dataset;
if (item.url == "tabWorkOrder.supervisorDaily") {
this.openWorkReportTemp(item)
return;
}
// 场景集市添加埋点 // 场景集市添加埋点
if (item.name == '场景集市') { if (item.name == '场景集市') {
wx.$track.setTrackData(0, 'scenario_marketplace', {}, '', 1) wx.$track.setTrackData(0, 'scenario_marketplace', {}, '', 1)
...@@ -668,7 +740,7 @@ Page({ ...@@ -668,7 +740,7 @@ Page({
}) })
} }
}, },
error: () => {} error: () => { }
}, },
'#modal2' '#modal2'
) )
...@@ -765,7 +837,7 @@ Page({ ...@@ -765,7 +837,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
// 10s轮询一次待补录 // 10s轮询一次待补录
getWaitOrder() { getWaitOrder() {
...@@ -782,7 +854,7 @@ Page({ ...@@ -782,7 +854,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
setTab(tableBtn, index) { setTab(tableBtn, index) {
console.log(index) console.log(index)
...@@ -972,7 +1044,7 @@ Page({ ...@@ -972,7 +1044,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
getUserStat(userInfo) { getUserStat(userInfo) {
api api
...@@ -1002,7 +1074,7 @@ Page({ ...@@ -1002,7 +1074,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
totalListSet() { totalListSet() {
let { userInfo } = this.data let { userInfo } = this.data
...@@ -1316,7 +1388,7 @@ Page({ ...@@ -1316,7 +1388,7 @@ Page({
.setTaskDialog({ .setTaskDialog({
id: data[0]?.id id: data[0]?.id
}) })
.then(() => {}) .then(() => { })
} }
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
...@@ -1462,6 +1534,8 @@ Page({ ...@@ -1462,6 +1534,8 @@ Page({
menu.push({ menu.push({
name: '工作日报', name: '工作日报',
icon: 'supervisorDailyNew', icon: 'supervisorDailyNew',
reportTypeAttr: 'daily',
reportTypeVal: '1',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
// params: { // params: {
// templateCode: 'qinggai-temp-001' // templateCode: 'qinggai-temp-001'
...@@ -1481,6 +1555,8 @@ Page({ ...@@ -1481,6 +1555,8 @@ Page({
name: '工作周报', name: '工作周报',
icon: 'weeklyReport', icon: 'weeklyReport',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
reportTypeAttr: 'weekly',
reportTypeVal: '2',
// params: { // params: {
// templateCode: 'qinggai-temp-001' // templateCode: 'qinggai-temp-001'
// }, // },
...@@ -1499,6 +1575,8 @@ Page({ ...@@ -1499,6 +1575,8 @@ Page({
name: '工作月报', name: '工作月报',
icon: 'monthlyReport', icon: 'monthlyReport',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
reportTypeAttr: 'monthly',
reportTypeVal: '3',
// params: { // params: {
// templateCode: 'qinggai-temp-001' // templateCode: 'qinggai-temp-001'
// }, // },
...@@ -1699,7 +1777,7 @@ Page({ ...@@ -1699,7 +1777,7 @@ Page({
api.checkMerchantDirect({ api.checkMerchantDirect({
merchantId: userInfo.shopMerchantId, merchantId: userInfo.shopMerchantId,
scene: 1 scene: 1
}).then( async res => { }).then(async res => {
if (res.data) { if (res.data) {
if (menu.every(item => item.name != '接待缺失报备')) { if (menu.every(item => item.name != '接待缺失报备')) {
menu.push({ menu.push({
...@@ -1927,14 +2005,14 @@ Page({ ...@@ -1927,14 +2005,14 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {} onShareAppMessage: function () { }
}) })
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"task-dialog": "/components/TaskDialog/TaskDialog", "task-dialog": "/components/TaskDialog/TaskDialog",
"side-select-by-page-popup": "/components/SideSelectByPagePopup/SideSelectByPagePopup", "side-select-by-page-popup": "/components/SideSelectByPagePopup/SideSelectByPagePopup",
"order-prompt-popup": "/components/orderPromptPop/orderPromptPop", "order-prompt-popup": "/components/orderPromptPop/orderPromptPop",
"study-permission-modal": "/components/studyPermissionModal/studyPermissionModal" "study-permission-modal": "/components/studyPermissionModal/studyPermissionModal",
"report-template-popup": "/components/report-template-popup/report-template-popup"
} }
} }
...@@ -478,3 +478,9 @@ ...@@ -478,3 +478,9 @@
sceneObj="{{ sceneObj }}" sceneObj="{{ sceneObj }}"
></order-prompt-popup> ></order-prompt-popup>
<study-permission-modal id="customModal" /> <study-permission-modal id="customModal" />
<report-template-popup
show="{{showReportPopup}}"
templateList="{{reportTemplateList}}"
bind:cancel="onReportPopupCancel"
bind:select="onReportPopupSelect"
/>
\ No newline at end of file \ No newline at end of file
...@@ -84,9 +84,8 @@ export default { ...@@ -84,9 +84,8 @@ export default {
name: '工作日报', name: '工作日报',
icon: 'supervisorDailyNew', icon: 'supervisorDailyNew',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
// params: { reportTypeAttr: 'daily',
// templateCode: 'qinggai-temp-001' reportTypeVal: '1',
// },
recordId: 15, recordId: 15,
noCheckdailyReport: true noCheckdailyReport: true
}, },
...@@ -94,6 +93,8 @@ export default { ...@@ -94,6 +93,8 @@ export default {
name: '工作周报', name: '工作周报',
icon: 'weeklyReport', icon: 'weeklyReport',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
reportTypeAttr: 'weekly',
reportTypeVal: '2',
// params: { // params: {
// templateCode: 'qinggai-temp-001' // templateCode: 'qinggai-temp-001'
// }, // },
...@@ -104,6 +105,8 @@ export default { ...@@ -104,6 +105,8 @@ export default {
name: '工作月报', name: '工作月报',
icon: 'monthlyReport', icon: 'monthlyReport',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
reportTypeAttr: 'monthly',
reportTypeVal: '3',
// params: { // params: {
// templateCode: 'qinggai-temp-001' // templateCode: 'qinggai-temp-001'
// }, // },
......
...@@ -260,6 +260,22 @@ module.exports = { ...@@ -260,6 +260,22 @@ module.exports = {
) )
}, },
/** 根据月份查询查询员工周报提交 */
getWeeklyRecordDetail(data) {
return api.post(
'dj.api.carboutique.assign.month.find.staff.weekly.report.submit',
data
)
},
/** 根据年份查询查询员工月报提交 */
getMonthlyRecordDetail(data) {
return api.post(
'dj.api.carboutique.assign.year.find.staff.monthly.report.submit',
data
)
},
/** 用户提交日报 */ /** 用户提交日报 */
saveTempReport(data) { saveTempReport(data) {
return api.post('dj.api.mindworkplate.app.daily.report.save', data) return api.post('dj.api.mindworkplate.app.daily.report.save', data)
......
...@@ -297,6 +297,44 @@ export const tempRuleFnObj = { ...@@ -297,6 +297,44 @@ export const tempRuleFnObj = {
} }
} }
}, },
currentMonthOperationStrategyResult019: {
/** 直营门店 */
directStores019: {
ruleFn: (rule, value) => {
return /^$|^\d{1}$|^[1-9]\d{0,1}$/.test(value) ? null : { message: '直营门店请输入两位数字' }
}
},
/** 目标 */
target019: {
ruleFn: (rule, value) => {
const maxValue = 100000000
if (value < 0 || value > maxValue) {
return { message: `目标请输入0-${maxValue}` }
}
return /^$|^[0]$|^\d{1}(\.\d{1,2})$|^([1-9]\d*)(\.\d{1,2})?$/.test(value) ? null : { message: '目标请输入仅有两位小数的数字' }
}
},
/** 实际达成 */
actualAchievement019: {
ruleFn: (rule, value) => {
const maxValue = 100000000
if (value < 0 || value > maxValue) {
return { message: `实际达成请输入0-${maxValue}` }
}
return /^$|^[0]$|^\d{1}(\.\d{1,2})$|^([1-9]\d*)(\.\d{1,2})?$/.test(value) ? null : { message: '实际达成请输入仅有两位小数的数字' }
}
},
/** 完成率 */
completionRate019: {
ruleFn: (rule, value) => {
const maxValue = 999
if (value < 0 || value > maxValue) {
return { message: `完成率请输入0-${maxValue}` }
}
return /^$|^[0]$|^\d{1}(\.\d{1,2})$|^([1-9]\d*)(\.\d{1,2})?$/.test(value) ? null : { message: '完成率请输入仅有两位小数的数字' }
}
}
},
/** 工作总结 */ /** 工作总结 */
workReport: {} workReport: {}
/** 工作总结 */ /** 工作总结 */
......
...@@ -27,7 +27,7 @@ Page({ ...@@ -27,7 +27,7 @@ Page({
isTodayEdit: false, isTodayEdit: false,
// userInfo: {}, // userInfo: {},
// 轻改区域日报模版code // 轻改区域日报模版code
qgReportCode: null, // qgReportCode: null,
title: '', title: '',
// 模版表单提交数据 // 模版表单提交数据
tmlpFormData: {}, tmlpFormData: {},
...@@ -43,6 +43,12 @@ Page({ ...@@ -43,6 +43,12 @@ Page({
// 往日可编辑的模版 // 往日可编辑的模版
tmlpEditList: [], tmlpEditList: [],
tmlpCode: '', tmlpCode: '',
routeParams: {},
titleTxtObj: {
'daily': '工作日报',
'weekly': '工作周报',
'monthly': '工作月报'
},
/** 模版表单数据对象验证规则对象 /** 模版表单数据对象验证规则对象
* { 模版key: [ 模版下面的表单项数据对象 ] } * { 模版key: [ 模版下面的表单项数据对象 ] }
*/ */
...@@ -77,22 +83,64 @@ Page({ ...@@ -77,22 +83,64 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
console.log(options, '-----') console.log(options, '-----')
const { titleTxtObj } = this.data
if(options.refresh) { if(options.refresh) {
this.setData({ const { routeParams } = this.data
qgReportCode: options?.templateCode || null, console.log(routeParams, '----')
title: options?.templateCode ? '轻改区域日报' : '工作日报' // this.setData({
}) // tmlpCode: routeParams?.templateCode || null,
// title: options?.templateCode ? '轻改区域日报' : '工作日报'
// })
this.initData(options) this.initData(options)
} }
wx.$router.getData((route) => { wx.$router.getData((route) => {
console.log(route)
const routeParams = route?.params || {}
this.setData({ this.setData({
qgReportCode: route?.params?.templateCode || null, routeParams: routeParams,
title: route?.params?.templateCode ? '轻改区域日报' : '工作日报' tmlpCode: routeParams.code || null,
reportType: routeParams.reportType || 1,
title: titleTxtObj[routeParams.reportTypeAttr || 'daily']
}) })
this.initData(options) this.initData(options)
}) })
}, },
// 切换月
tapCalendar() {
// console.log(this.data.whiteArrow)
// this.setData({
// whiteArrow: !this.data.whiteArrow
// })
},
monthSelect(e) {
let { date } = e.detail
let { date: selectDate } = date
this.setData({
// ['dateObj.label']: label + '份',
['dateObj.dataMonth']: selectDate
})
// let { merchantRange } = this.data
// this.getOutputValue({
// merchantRange
// })
},
initMonthTime() {
let data = new Date()
// 选择 本月
const year = data.getFullYear()
const month = data.getMonth()
const dataMonth = new Date(year, month + 1, 0).format('yyyy-MM')
this.setData({
dateObj: {
dataMonth,
pointUnit: 1, // 1日,2月,默认日
type: 'month',
label: month + 1 + '月份'
}
})
},
async initData(options) { async initData(options) {
const { routeParams } = this.data
// 获取配置服务数据 // 获取配置服务数据
let baseConfigData = await setConfigInfo(app.globalData) let baseConfigData = await setConfigInfo(app.globalData)
this.setData({ this.setData({
...@@ -104,6 +152,9 @@ Page({ ...@@ -104,6 +152,9 @@ Page({
timeBean: util.getWeekDayList(this.data.selectWeek), timeBean: util.getWeekDayList(this.data.selectWeek),
isChangeTab: true isChangeTab: true
}); });
if(routeParams.reportTypeAttr == 'monthly') {
this.initMonthTime()
}
this.resetTempData() this.resetTempData()
this.getRecordDetail() this.getRecordDetail()
this.setData({ this.setData({
...@@ -195,13 +246,11 @@ Page({ ...@@ -195,13 +246,11 @@ Page({
}, },
/** 查询用户指定日期的日报详情 */ /** 查询用户指定日期的日报详情 */
getRecordDetail() { getRecordDetail() {
let { timeBean, qgReportCode } = this.data let { timeBean, tmlpCode, routeParams, dateObj } = this.data
let params = { let params = {
templateCode: tmlpCode,
date: timeBean.weekDayList[timeBean.selectDay].date date: timeBean.weekDayList[timeBean.selectDay].date
} }
if(qgReportCode) {
params.templateCode = qgReportCode
}
wx.$util.showLoading() wx.$util.showLoading()
api.getRecordDetail(params).then(res => { api.getRecordDetail(params).then(res => {
if (res.data == null) { if (res.data == null) {
...@@ -212,7 +261,7 @@ Page({ ...@@ -212,7 +261,7 @@ Page({
return true; return true;
} }
this.setData({ this.setData({
tmlpCode: res.data.templateCode, // tmlpCode: res.data.templateCode,
tmlpInitData: res.data.types, tmlpInitData: res.data.types,
}); });
this.getDynamicForm(); this.getDynamicForm();
...@@ -224,16 +273,14 @@ Page({ ...@@ -224,16 +273,14 @@ Page({
/** 查询用户指定日期范围内填写日报的日期 */ /** 查询用户指定日期范围内填写日报的日期 */
getDateRecord() { getDateRecord() {
let { timeBean, isDisable, tmlpEditList, tmlpCode, qgReportCode } = this.data let { timeBean, isDisable, tmlpEditList, tmlpCode } = this.data
console.log(tmlpEditList, 'tmlpEditList') console.log(tmlpEditList, 'tmlpEditList')
console.log(tmlpCode, 'tmlpCode') console.log(tmlpCode, 'tmlpCode')
// console.log(timeBean.weekDayList, 'timeBean.weekDayList--') // console.log(timeBean.weekDayList, 'timeBean.weekDayList--')
let params = { let params = {
sDate: timeBean.reportStartDate, sDate: timeBean.reportStartDate,
eDate: timeBean.reportEndDate eDate: timeBean.reportEndDate,
} templateCode: tmlpCode
if(qgReportCode) {
params.templateCode = qgReportCode
} }
this.setData({ this.setData({
hasDailyValue: false, hasDailyValue: false,
...@@ -762,13 +809,13 @@ Page({ ...@@ -762,13 +809,13 @@ Page({
}, },
handleCancel() { handleCancel() {
const { qgReportCode } = this.data // const { tmlpCode } = this.data
this.changeVal('isDisable', true) this.changeVal('isDisable', true)
this.onLoad({ refresh: true, templateCode: qgReportCode }) this.onLoad({ refresh: true })
}, },
handleConfirm() { handleConfirm() {
let { isConfirm, qgReportCode } = this.data let { isConfirm, tmlpCode } = this.data
if (isConfirm) { if (isConfirm) {
return true return true
} }
...@@ -800,10 +847,8 @@ Page({ ...@@ -800,10 +847,8 @@ Page({
} }
} }
let params = { let params = {
formJson: this.dealParams() formJson: this.dealParams(),
} templateCode: tmlpCode
if(qgReportCode) {
params.templateCode = qgReportCode
} }
console.log(JSON.parse(params.formJson), 'params-----') console.log(JSON.parse(params.formJson), 'params-----')
// 删----要给新字段加校验++++ // 删----要给新字段加校验++++
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</view> </view>
</navigation-bar> </navigation-bar>
<view style="margin-top:{{ navBarHeight }}px"> <view style="margin-top:{{ navBarHeight }}px">
<weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar> <weekCalendar wx:if="{{ routeParams.reportTypeAttr == 'daily' }}" timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar>
</view> </view>
<view class="main {{ isFullSucreen ? 'isFullSucreen':'' }}"> <view class="main {{ isFullSucreen ? 'isFullSucreen':'' }}">
<view wx:if="{{tmlpInitData.length}}" style="margin-bottom: 100px;"> <view wx:if="{{tmlpInitData.length}}" style="margin-bottom: 100px;">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!