Commit d50b9bc2 by chenwq

工作日报

1 parent 97b0fa43
......@@ -208,6 +208,7 @@
"usingComponents": {
"gl-textarea": "/components/GlTextarea/GlTextarea",
"gl-cell": "/components/GlCell/GlCell",
"gl-cust-form": "/components/GLCustForm/GLCustForm",
"calendar": "/components/Calendar/Calendar",
"navigation-bar": "/components/navigationBar/navigationBar",
"popup": "/components/Popup/Popup",
......@@ -222,6 +223,8 @@
"tips-bottom": "components/tipsBottom/index",
"gl-image": "components/GlImage/index",
"van-field": "@vant/weapp/field/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-radio": "@vant/weapp/radio/index",
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index",
"van-uploader": "@vant/weapp/uploader/index",
......
// components/GLCustForm/GLCustForm.js
Component({
externalClasses: ['custom-class'],
options: {
multipleSlots: true, // 在组件定义时的选项中启用多 slot 支持
styleIsolation: 'shared', // 自定义覆盖vant样式
},
/**
* 组件的属性列表
*/
properties: {
formData: {
type: Object,
value: () => { },
observer: function (n) {
this.setData({
formData: n
})
}
},
formDataList: {
type: Array,
observer: function(n) {
if(n) {
this.changeStyle()
}
}
},
labelWidth: {
type: String,
value: 'var(--fontSize140)'
},
// 页面存放表单对象的对象名,用于直接变更page的值
dataAttrName: {
type: String,
value: null
},
disable: {
type: Boolean,
value: false
},
glCellClass: {
type: String,
value: false
},
// 背景色
background: {
type: String,
value: '#FFFFFF'
}
},
/**
* 组件的初始数据
*/
data: {
targetIdx: -1,
areaList: []
},
lifetimes: {
attached() {
let thisPage = wx.$router.getPageInstance()
console.log(this.data.formDataList, 'formDataList---')
this.changeStyle()
wx.$eventbus.on('set_car_info', n => {
let {
targetIdx,
dataAttrName
} = this.data
let formData = thisPage?.data[dataAttrName] || null
if (formData) {
if (targetIdx != -1) {
let targetItem = this.data.formDataList[targetIdx] || {}
if (targetItem.handleChange) {
targetItem.handleChange(thisPage, dataAttrName, n)
}
if (!targetItem.noDefault) {
thisPage.setData({
[dataAttrName + '.' + targetItem.labelName]: n.vehicleBrandName + '/' + n.vehicleSeriesName + '/' + n.vehicleShapeName + '/' + n.vehicleSubBrandName
})
}
}
formData = Object.assign(formData, n)
thisPage.setData({
[dataAttrName]: formData
// carInfo: n,
})
}
})
}
},
/**
* 组件的方法列表
*/
methods: {
/**
* 默认样式为label和value在同一行
* 改为label和value为两行
*/
changeStyle() {
let { formDataList } = this.data
formDataList.forEach((item, idx) => {
if(item.isLabelNoLine) {
formDataList[idx].noBorder = true
formDataList[idx].noPadding = true
formDataList[idx].cellStyle = 'display: block !important; height: auto !important; padding: 0 40rpx !important;'
formDataList[idx].labelStyle = 'width: 100% !important; padding: 24rpx 0 16rpx 0;'
formDataList[idx].cellValueStyle = `box-sizing: border-box; width: 100% !important; border: ${item.type == 'input' ? '2rpx': '0'} solid #ececec; padding: ${item.type == 'input' ? '16rpx 24rpx !important': '0'};`
formDataList[idx].customStyle = `padding: 0 0; display: flex; align-items: center; justify-content: space-between;`
formDataList[idx].inputCustomStyle = `width: ${item.suffix ? 'calc(100% - 4rpx)' : '100%'} !important; flex-shrink: 0; padding: 0 0;`
}
})
this.setData({
formDataList
})
},
getHeight(selector) {
return new Promise(resolve => {
wx.$util.getViewInfo(selector, res => {
return resolve(res)
}, this)
})
},
parentSetData(attr, value) {
let {
dataAttrName
} = this.data
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
[dataAttrName + '.' + attr]: value
})
},
handleRadio(e) {
let value = e.detail
let {
attr
} = e.target.dataset
let {
dataAttrName
} = this.data
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
[dataAttrName + '.' + attr]: value
})
this.triggerEvent('radioEvent', {
attr
})
},
handleInput(e) {
let value = e.detail
let {
attr,
item
} = e.target.dataset
let {
dataAttrName
} = this.data
// if (attr == 'price') {
// value = value >= 2000000 ? '2000000' : value
// // wx.$eventbus.emit('delete_goodsSelect')
// }
// console.log(item,'handleInput');
let thisPage = wx.$router.getPageInstance()
if (item.inputLimit && item.inputLimit.maxVal) {
value = value >= item.inputLimit.maxVal ? item.inputLimit.maxVal : value
}
if (item.inputLimit && item.inputLimit.minVal) {
value = value <= item.inputLimit.minVal ? item.inputLimit.minVal : value
}
if (item.inputLimit && item.inputLimit.type == 'digit') {
let [number, decimal] = value.toString().split('.')
if (decimal != undefined) {
decimal = decimal.substring(0, item.inputLimit.decimalDigit || 2)
number += `.${decimal}`
value = number
}
}
const diffValue = value.toString()
const trimValue = value.toString().trim()
if (diffValue != trimValue) {
value = trimValue
}
thisPage.setData({
[dataAttrName + '.' + attr]: value
})
this.triggerEvent('inputEvent', {
attr
})
},
handlePickerChange(e) {
let idx = e.detail.value || 0
let {
target
} = e.currentTarget.dataset
let {
dataAttrName
} = this.data
let thisPage = wx.$router.getPageInstance()
console.log(target, 'target---')
thisPage.setData({
[dataAttrName + '.' + target.name]: target.optionList[idx][target.optionId],
[dataAttrName + '.' + target.labelName]: target.optionList[idx][target.optionLabel]
})
this.triggerEvent('pickerChange', {
obj: target.optionList[idx]
})
},
handleTimeChange(e) {
let {
value
} = e.detail
let {
target
} = e.currentTarget.dataset
let {
dataAttrName
} = this.data
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
[dataAttrName + '.' + target.name]: value
})
// console.log(this.data.formData)
},
// 品牌车型
handleJumpBrand(e) {
wx.$router.go('packageEquity.carBrands')
},
handleCellClick(e) {
let {
target,
idx
} = e.currentTarget.dataset
switch (target.type) {
case 'brand':
this.setData({
targetIdx: idx
})
this.handleJumpBrand()
break
default:
break
}
},
showAreaFun() {
let {
showArea,
areaList
} = this.data
if (!areaList.length) areaList = wx.$areaList // 省市区数据
this.setData({
showArea: !showArea,
areaList
})
},
bindRegionChange(e) {
this.triggerEvent('RegionChange', e)
this.showAreaFun()
}
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {
"van-area": "@vant/weapp/area/index",
"van-popup": "@vant/weapp/popup/index"
}
}
\ No newline at end of file
/* components/GLCustForm/GLCustForm.wxss */
.input-box {
display: flex;
align-items: center;
justify-content: space-between;
align-items: center;
--cell-line-height: calc(28vmin / 7.5) !important;
}
.radio-box {
display: flex;
align-items: center;
justify-content: space-between;
align-items: center;
}
.radio-item {
display: inline-block;
width: 40%;
}
.textarea {
text-align: right;
font-size: var(--fontSize28) !important;
flex-grow: 1;
}
.input-suffix {
/* height: var(--fontSize88);
line-height: var(--fontSize88); */
/* height: var(--fontSize132);
line-height: var(--fontSize132); */
margin-left: var(--fontSize4);
}
.placeholder-class {
color: #C3C3C3;
}
.picker {
display: flex;
flex-direction: row-reverse;
height: var(--fontSize80);
line-height: var(--fontSize80);
text-align: right;
}
.placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #B6B6B8;
}
.gl-form .arrow {
// width: var(--fontSize28);
// height: var(--fontSize26);
// margin-top: var(--fontSize26);
// flex-shrink: 0;
width: var(--fontSize28);
height: var(--fontSize26);
margin-top: var(--fontSize26);
flex-shrink: 0;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.brand {
text-align: right;
padding: var(--fontSize40) 0;
}
.gl-form .van-field__control--disabled {
color: #666666;
-webkit-text-fill-color: #666666;
}
.input-box .textarea input {
height: var(--fontSize72);
}
.gl-form .van-cell--borderless {
padding: var(--fontSize10) 0 !important;
}
.between .van-cell--borderless {
padding: var(--fontSize30) 0 !important;
}
/* @media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
} */
\ No newline at end of file
<!--components/GLCustForm/GLCustForm.wxml-->
<wxs src="./GLForm.wxs" module="filterUtils" />
<view wx:for="{{formDataList}}" wx:key="index" class="custom-class gl-form">
<gl-cell
wx:if="{{filterUtils.isShowFn(formData, item) && item.type != 'otherSlot' && !item.isHide}}"
border="{{!item.noBorder}}"
class="{{item.name}}"
haveArrow="{{item.haveArrow || false}}"
valueAlign="right"
label="{{item.label}}"
labelWidth="{{item.labelWidth || labelWidth}}"
placeholder="{{item.placeholder || ''}}"
bindclick="handleCellClick"
data-target="{{item}}"
data-idx="{{index}}"
background="{{background}}"
required="{{item.required}}"
requiredAfter="{{item.requiredAfter}}"
cellHeight="{{!item.noCellHeight}}"
cellStyle="{{item.cellStyle||''}}"
labelStyle="{{item.labelStyle}}"
cellValueStyle="{{item.cellValueStyle}}"
cellBoxStyle="{{item.cellBoxStyle||''}}"
show-word-limit
noPadding="{{item.noPadding}}">
<!-- slot -->
<slot wx:if="{{item.type == 'slot'}}" name="{{item.name}}" />
<!-- radio -->
<view wx:if="{{item.type == 'radio'}}">
<van-radio-group value="{{formData[item.name]}}" disabled="{{item.disabled||disable}}" class="radio-box" data-attr="{{item.name}}" bindchange="handleRadio">
<van-radio wx:for="{{item.optionList}}" class="radio-item" wx:for-item="k"
wx:for-index="kIdx" wx:key="kIdx" name="{{k[item.optionLabel]}}">{{k[item.optionLabel]}}</van-radio>
</van-radio-group>
</view>
<!-- input / textarea -->
<view wx:if="{{item.type == 'input'}}" class="input-box" style="{{item.customStyle}}">
<!-- rows="1" -->
<van-field
class="textarea"
custom-style="padding: var(--fontSize30) 0; font-size: var(--fontSize28); background: {{background}}{{item.inputCustomStyle}};"
border="{{false}}"
value="{{formData[item.name]}}"
input-align="{{item.inputAlign || 'right'}}"
autosize
hold-keyboard
type="{{item.fieldType || 'text'}}"
rows="{{item.rows || '1'}}"
placeholder="{{item.placeholder || '请输入'}}"
maxlength="{{item.maxlength || 140}}"
disabled="{{item.disabled||disable}}"
readonly="{{item.readonly}}"
data-attr="{{item.name}}"
data-item="{{item}}"
bindinput="handleInput" />
<text wx:if="{{item.suffix}}" class="input-suffix">{{item.suffix}}</text>
</view>
<!-- picker -->
<picker
wx:if="{{item.type == 'select'}}"
bindchange="handlePickerChange"
data-target="{{item}}"
value="{{index}}"
disabled="{{item.disabled||disable}}"
range="{{item.optionList}}"
range-key="{{item.optionLabel}}">
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{formData[item.labelName]}}">
{{formData[item.labelName]}}
</view>
<text class="placeholder" wx:else>请选择</text>
</view>
</picker>
<!-- 省市区 -->
<block wx:if="{{item.type == 'region'}}">
<view class="picker" bindtap="showAreaFun">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{formData[item.labelName]}}">
{{formData[item.labelName]}}
</view>
<text class="placeholder" wx:else>请选择</text>
</view>
<van-popup
show="{{ showArea }}"
position="bottom"
bind:close="showAreaFun"
>
<van-area area-list="{{ areaList }}" columns-num="{{ item.columnsNum }}" title="{{item.label}}" bind:confirm="bindRegionChange" bind:cancel="showAreaFun" />
</van-popup>
</block>
<!-- 时间选择器 -->
<picker
wx:if="{{item.type == 'pickerTime'}}"
mode="date"
value="{{formData[name] || formData[item.name]}}"
start="{{item.start || ''}}"
end="{{item.end || ''}}"
bindchange="handleTimeChange"
data-target="{{item}}">
<view class="picker">
<view class="text-hide" wx:if="{{formData[item.name]}}">{{formData[item.name]}}</view>
<text class="placeholder" wx:else>请选择</text>
</view>
</picker>
<!-- 品牌车型 -->
<view wx:if="{{item.type == 'brand'}}" class="brand">
<view wx:if="{{formData.vehicleBrandId}}">
{{formData.vehicleBrandName || ''}}/{{formData.vehicleSubBrandName || ''}}/{{formData.vehicleSeriesName || ''}}/{{formData.vehicleShapeName || ''}}
</view>
<view wx:else class="placeholder-class">{{item.placeholder || '请选择'}}</view>
</view>
</gl-cell>
<slot wx:if="{{item.type == 'otherSlot'}}" name="{{item.name}}" />
</view>
var isShowFn = function (formData, targetItem) {
var flag = false
if (targetItem.isShowObj && formData) {
for (var i = 0; i <= targetItem.isShowObj.list.length; i++) {
var item = targetItem.isShowObj.list[i]
if (item == formData[targetItem.isShowObj.attr]) {
flag = true
break
}
}
} else {
flag = true
}
return flag
}
module.exports = {
isShowFn: isShowFn
}
\ No newline at end of file
/**
* 动态校验字段
* @param {*} obj 需校验的对象
* @param {*} formRule 校验规则
* formRule = {
* id: [
* { required: true, message: 'xx不能为空' },
* {
* validator: (rule, value) => {
* return value != 'cwq' ? { message: '错误信息' } : null
* }
* }
* ],
* }
*/
const checkRequired = function (obj, formRule) {
let target = Object.keys(formRule)
for (let i = 0; i < target.length; i++) {
let attr = target[i]
let item = formRule[attr]
let requirObj = item.find(k => k.required == true)
let validFn = item.find(k => k.validator)
if (requirObj && !obj[attr]) {
return {
...requirObj,
attr
}
}
if (validFn) {
let validObj = validFn.validator({}, obj[attr], obj)
if (validObj) {
return {
...validObj,
attr
}
}
}
}
return false
}
export default {
checkRequired
}
\ No newline at end of file
......@@ -21,6 +21,8 @@ Component({
labelStyle: String,
cellStyle: String,
cellBoxStyle: String,
cellValueStyle: String,
noPadding: Boolean,
background: {
type: String,
value: '#FFFFFF',
......
......@@ -62,6 +62,10 @@
padding-right: var(--fontSize40) !important;
}
.cell-value .noPadding {
padding: 0 !important;
}
.value {
width: 100%;
height: 100%;
......
......@@ -16,8 +16,8 @@
src="{{iconSrc}}" />
<text class="titleBtn" wx:if="{{titleBtn}}">{{titleBtn}}</text>
</view>
<view class='cell-value ' style="width:calc(100% - {{labelWidth}});">
<view class='value {{valueAlign}} {{haveArrow}}'>
<view class='cell-value ' style="width:calc(100% - {{labelWidth}});{{cellValueStyle}}">
<view class='value {{valueAlign}} {{haveArrow}} {{noPadding ? "noPadding" : ""}}'>
<view class='slot'>
<slot/>
</view>
......
......@@ -541,10 +541,10 @@ Component({
index > -1 && menuList.splice(index, 1);
}
// userInfo?loginRole == 3 || userInfo.loginRole == 5 && 督导
if (menuList.every((item) => item.menuText != '督导日报')) {
// userInfo?loginRole == 3 || userInfo.loginRole == 5
if (menuList.every((item) => item.menuText != '工作日报')) {
menuList.push({
menuText: "督导日报",
menuText: "工作日报",
path: "tabWorkOrder.supervisorDaily",
icon: "supervisorDaily",
})
......
......@@ -1244,21 +1244,19 @@ Page({
icon: 'boutique-syzs'
})
}
if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5)
&& menu.every(item => item.name != '积分审批')
) {
if (userInfo?.loginRole == 3 && menu.every((item) => item.name != '积分审批')) {
menu.push({
name: '积分审批',
url: 'pages.pointsReview',
icon: 'points_review'
})
}
// userInfo?loginRole == 3 || userInfo.loginRole == 5 &&
if (menu.every(item => item.name != '督导日报')) {
// userInfo?loginRole == 3 || userInfo.loginRole == 5
if (menu.every((item) => item.name != '工作日报')) {
menu.push({
name: '督导日报',
url: 'tabWorkOrder.supervisorDaily',
icon: 'supervisorDaily'
name: "工作日报",
url: "tabWorkOrder.supervisorDaily",
icon: "supervisorDaily",
})
}
if (checklist.includes(userInfo?.accountName)) {
......
......@@ -244,4 +244,29 @@ module.exports = {
modifyWarrantyPrice(data) {
return api.post("dj.api.smartcarlife.customer.warrantyCard.modifyWarrantyPrice", data);
},
/** 查询用户日报模版 */
getMyTemplate(data) {
return api.post("dj.api.mindworkplate.app.daily.report.myTemplate", data);
},
/** 查询用户指定日期范围内填写日报的日期 */
getDateRecord(data) {
return api.post("dj.api.mindworkplate.app.daily.report.mySubmittedDateRecord", data);
},
/** 查询用户指定日期的日报详情 */
getRecordDetail(data) {
return api.post("dj.api.mindworkplate.app.daily.report.myRecordDetail", data);
},
/** 用户提交日报 */
saveTempReport(data) {
return api.post("dj.api.mindworkplate.app.daily.report.save", data);
},
/** 获取与会驻店人员 */
getStaffList(data) {
return api.get("dj.api.mindworkplate.app.daily.report.staffBaseInfo.pageList", data);
},
};
......@@ -16,6 +16,10 @@ Component({
},
index: {
type: Number
},
optionLabel: {
type: 'String',
default: 'confName'
}
},
......@@ -26,6 +30,12 @@ Component({
},
lifetimes: {
attached() {
console.log(this.data.optionList)
},
},
/**
* 组件的方法列表
*/
......
<!--tabWorkOrder/pages/staffDaily/components/selectItemPopup/selectItemPopup.wxml-->
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindcancel="cancel" bindconfirm="confirm" height="var(--fontSize500)" title="{{title}}">
<view class="check-block">
<scroll-view style="height: 200rpx;" scroll-y>
<view class="check-block" >
<view
class="check-box {{ subItem.active ? 'active' : '' }}"
wx:for="{{ optionList }}"
......@@ -11,8 +12,9 @@
data-pidx="{{ index }}"
data-idx="{{ idx }}"
>
{{subItem.confName}}
{{subItem[optionLabel]}}
<image wx:if="{{ subItem.active }}" class="mult" src="../../../../images/check-active.png"></image>
</view>
</view>
</view>
</scroll-view>
</popup>
\ No newline at end of file
export const tempRuleFnObj = {
/** 业绩报告 */
performanceReport: {
/** 管理门店数 */
managedStoreCount: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '管理门店数请输入两位数字' }
}
},
/** 延保 - 门店平均客单价 */
warrantyStoreAverageCartValue: {
ruleFn: (rule, value) => {
return /^\d+(\.\d{0,2})?$/.test(value) ? null : { message: '延保门店平均客单价请输入仅有两位小数的数字' }
}
},
/** 延保 - 门店平均渗透率 */
warrantyStorePenetrationAverage: {
ruleFn: (rule, value) => {
return /^\d+(\.\d{0,1})?$/.test(value) ? null : { message: '延保门店平均渗透率请输入仅有一位小数的数字' }
}
},
/** 权益 - 门店平均客单价 */
equityStoreAverageCartValue: {
ruleFn: (rule, value) => {
return /^\d+(\.\d{0,2})?$/.test(value) ? null : { message: '权益门店平均客单价请输入仅有两位小数的数字' }
}
},
/** 权益 - 门店平均渗透率 */
equityStorePenetrationAverage: {
ruleFn: (rule, value) => {
return /^\d+(\.\d{0,1})?$/.test(value) ? null : { message: '权益门店平均渗透率请输入仅有一位小数的数字' }
}
},
/** 精品 - 门店平均客单价 */
boutiqueStoreAverageCartValue: {
ruleFn: (rule, value) => {
return /^\d+(\.\d{0,2})?$/.test(value) ? null : { message: '精品门店平均客单价请输入仅有两位小数的数字' }
}
},
/** 精品 - 门店平均渗透率 */
boutiqueStorePenetrationAverage: {
ruleFn: (rule, value) => {
return /^\d+(\.\d{0,1})?$/.test(value) ? null : { message: '精品门店平均渗透率请输入仅有一位小数的数字' }
}
},
},
/** 带教培训 */
organizeTraining: {},
/** 招聘面试 */
jobInterview: {
/** 今日面试 */
todayInterview: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '今日面试请输入两位数字' }
}
},
/** 面试通过 */
interviewPassed: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '面试通过请输入两位数字' }
}
},
/** 本月入职 */
thisMonthOnboarding: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '本月入职请输入两位数字' }
}
},
/** 本月待招 */
thisMonthPendingRecruits: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '本月待招请输入两位数字' }
}
},
},
/** 谈客接待 */
guestReception: {
/** 今日接待 */
todayReception: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '今日接待请输入两位数字' }
}
},
/** 今日成交 */
todayTransactions: {
ruleFn: (rule, value) => {
return /^\d{1,2}$/.test(value) ? null : { message: '今日成交请输入两位数字' }
}
},
},
/** 工作总结 */
// workSummary: {
// /** 今日总结 */
// todaySummary: {
// ruleFn: (rule, value) => {
// return null
// }
// },
// /** 明日计划 */
// tomorrowPlan: {
// ruleFn: (rule, value) => {
// return null
// }
// },
// }
}
\ No newline at end of file
{
"usingComponents": {}
"navigationStyle": "custom",
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"weekCalendar": "../staffDaily/components/weekCalendar/weekCalendar",
"select-item-popup": "../staffDaily/components/selectItemPopup/selectItemPopup"
}
}
\ No newline at end of file
/* tabWorkOrder/pages/supervisorDaily/supervisorDaily.wxss */
page {
background-color: #f7f8fa;
}
.layout {
// height: 100%;
height: 100vh;
// display: flex;
// flex-direction: column;
}
// 去除滚动条样式
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
// max-width: calc(100% - var(--fontSize24));
}
.navigation-title .arrow {
width: var(--fontSize20);
height: var(--fontSize16);
margin-left: var(--fontSize4);
transform: translateY(25%);
transition: all 0.5s;
}
.arrow {
width: var(--fontSize10);
height: var(--fontSize6);
margin-left: var(--fontSize12);
transform: translateY(25%);
transition: all 0.5s;
}
.move {
transform: rotate(-180deg) translateY(0);
}
.opacity {
opacity: 1;
}
.main {
padding: 0 var(--fontSize20) var(--fontSize136);
// .mainheader {
// margin: var(--fontSize20) var(--fontSize10) 0;
// display: flex;
// justify-content: space-between;
// align-items: center;
// .navigation-title-text {
// margin-right: var(--fontSize10);
// font-family: PingFangSC-Regular;
// font-weight: 400;
// font-size: var(--fontSize28);
// color: #347BFF;
// }
// @media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
// .navigation-title-text {
// font-size: var(--fontSize23);
// }
// }
// }
// .title {
// font-family: PingFangSC-SNaNrpxibold;
// font-weight: 500;
// font-size: var(--fontSize28);
// color: #292D33;
// }
.tab-box {
width: 100%;
height: 88rpx;
line-height: 88rpx;
display: flex;
white-space: nowrap;
.tab-item {
color: #5a5e66;
font-size: 28rpx;
// margin-right: 64rpx;
padding: 0 35rpx;
}
.tab-item.active {
color: #347bff;
border-bottom: 2rpx solid #347BFF;
}
}
.cust-form-box {
box-sizing: border-box;
margin: 16rpx 20rpx;
padding-bottom: 32rpx;
background: #FFFFFF;
box-shadow: 0 4rpx 20rpx 0 #0000001a;
border-radius: 16rpx;
}
.meeting-box {
.van-cell {
line-height: auto !important;
}
.meeting-textarea {
border: 2rpx solid #ececec;
margin-top: 16rpx;
}
}
.example-tips {
color: #999ea8;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.example-btn {
color: #347bff;
font-size: 24rpx;
margin-left: 8rpx;
}
.trainingPhotos .plus {
margin-top: 24rpx;
}
.trainingPhotos .plus .van-icon-photograph:before {
content: '';
width: var(--fontSize32);
height: var(--fontSize32);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/icon-plus.png');
background-size: 100% 100%;
}
.picker {
display: flex;
flex-direction: row-reverse;
height: var(--fontSize80);
line-height: var(--fontSize80);
text-align: right;
.placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #B6B6B8;
}
.pickerArrow {
width: var(--fontSize28);
height: var(--fontSize26);
margin-top: var(--fontSize26);
flex-shrink: 0;
}
}
.btn {
box-sizing: border-box;
height: var(--fontSize88);
line-height: var(--fontSize88);
text-align: center;
font-size: var(--fontSize32);
color: #FFFFFF;
background: #347BFF;
border-radius: var(--fontSize12);
margin: var(--fontSize126) var(--fontSize64) var(--fontSize20);
}
.empty-box {
margin-top: 276rpx;
text-align: center;
color: #5a5e66;
font-size: 28rpx;
font-weight: bold;
// font-family: "PingFang SC", -apple-system;
font-family: PingFangSC-SNaNrpxibold;
.icon-empty {
width: 172rpx !important;
height: 172rpx !important;
margin-bottom: 32rpx;
}
.sub-txt {
margin-top: 16rpx;
color: #999ea8;
font-size: 24rpx;
font-weight: 400;
}
}
}
.wrapper {
position: absolute;
top: 50%;
width: 100%;
height: auto;
transform: translateY(-50%);
}
.isFullSucreen {
padding-bottom: 102px !important;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
\ No newline at end of file
/* tabWorkOrder/pages/supervisorDaily/supervisorDaily.wxss */
\ No newline at end of file
<!--tabWorkOrder/pages/supervisorDaily/supervisorDaily.wxml-->
<text>tabWorkOrder/pages/supervisorDaily/supervisorDaily.wxml</text>
<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">日报填写</view>
</view>
</navigation-bar>
<view style="margin-top:{{ navBarHeight }}px">
<weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar>
</view>
<view class="main {{ isFullSucreen ? 'isFullSucreen':'' }}">
<view wx:if="{{tmlpInitData.length}}">
<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}}" id="{{tabActive}}" formData="{{ tmlpFormData }}" disable="{{disable}}" dataAttrName="{{ dataAttrName }}" formDataList="{{ tmlpObj[tabActive] }}" bind:radioEvent="radioEvent">
<!-- 与会人员 -->
<view slot='attendingStaff'>
<view class="picker" bindtap="handleProblemPicker" data-name="attendingStaff" data-pname="organizeTraining">
<image class="pickerArrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{selectedStr}}">{{ selectedStr }}</view>
<text class="placeholder" wx:else>请选择</text>
</view>
</view>
<!-- 腾讯会议录屏链接 -->
<view 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}}" autosize hold-keyboard type="textarea" rows="4" show-word-limit placeholder="录制:驻店人员预定的会议 录指纹键:http://meeting.tencent.com/crm/2rejORzKc560" maxlength="100" disabled="{{disable}}" data-attr="tencentMeetingRecordingLink" bindinput="handleInput" />
</view>
</view>
<!-- 培训照片 -->
<view 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 }}" upload-text="上传照片" max-count="1" deletable="{{!disable}}" preview-size="var(--fontSize192)" bind:before-read="beforeUpload" bind:after-read="upLoad" bind:delete="handleDeleteImg" data-attr="trainingPhotos"></van-uploader>
</view>
<!-- 工作总结 -->
<view 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="清晰扼要的总结今日的工作内容,例如:参加区域M9车型延保分享,清远驻店辅助,加强提升渗透率,电销安心包MAX" maxlength="200" disabled="{{disable}}" data-attr="todaySummary" bindinput="handleInput" />
</view>
</view>
<!-- 明日计划 -->
<view 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="简单扼要的总结明天的工作计划,例如:驻清远问界店辅助渗透率提升,加强提升渗透率,电销安心包MAX" maxlength="200" disabled="{{disable}}" data-attr="tomorrowPlan" bindinput="handleInput" />
</view>
</view>
</gl-cust-form>
</view>
<button wx:if="{{!disable}}" class="btn" bindtap="handleConfirm">提交</button>
</view>
<!-- 未配置模版 -->
<view wx:else class="empty-box">
<view>
<gl-image class="icon-empty" src="/miniProgram/daily-empty.png"></gl-image>
<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="changePromble" bindcancel="closeSlectItemPopup" bindclick="click" />
<van-overlay show="{{ imgShow }}" bind:click="onClickHide" z-index="99999999">
<view class="wrapper">
<image src="{{IMG_URL}}/{{imgName}}.png" mode="widthFix" />
</view>
</van-overlay>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!