|
|
@@ -0,0 +1,442 @@ |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
<view v-if="ready"> |
|
|
|
<view v-if="itemtype == 1"> |
|
|
|
<view class="item-title">基础岗位分</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.AdminPosition', $event)" |
|
|
|
:value="getValue('JobPerformance.AdminPosition')" |
|
|
|
:disabled="!edit" |
|
|
|
title="行政管理岗位" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.LeagueSecretary', $event)" |
|
|
|
:value="getValue('JobPerformance.LeagueSecretary')" |
|
|
|
:disabled="!edit" |
|
|
|
title="团总支书记" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.CenterPeople', $event)" |
|
|
|
:value="getValue('JobPerformance.CenterPeople')" |
|
|
|
:disabled="!edit" |
|
|
|
title="中心负责人" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TeachingPosition', $event)" |
|
|
|
:value="getValue('JobPerformance.TeachingPosition')" |
|
|
|
:disabled="!edit" |
|
|
|
title="教辅、工勤岗位" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.Director', $event)" |
|
|
|
:value="getValue('JobPerformance.Director')" |
|
|
|
:disabled="!edit" |
|
|
|
title="班主任" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TeacherWorkRoom', $event)" |
|
|
|
:value="getValue('JobPerformance.TeacherWorkRoom')" |
|
|
|
:disabled="!edit" |
|
|
|
title="名师工作室" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.MajorPeople', $event)" |
|
|
|
:value="getValue('JobPerformance.MajorPeople')" |
|
|
|
:disabled="!edit" |
|
|
|
title="专业负责人、教研/备课组长" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.WorkLeader', $event)" |
|
|
|
:value="getValue('JobPerformance.WorkLeader')" |
|
|
|
:disabled="!edit" |
|
|
|
title="办公组长" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TrainAdmin', $event)" |
|
|
|
:value="getValue('JobPerformance.TrainAdmin')" |
|
|
|
:disabled="!edit" |
|
|
|
title="实训室类管理员" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.CommitteeMember', $event)" |
|
|
|
:value="getValue('JobPerformance.CommitteeMember')" |
|
|
|
:disabled="!edit" |
|
|
|
title="纪委/支部/工会委员、兼职督学" |
|
|
|
/> |
|
|
|
<view class="item-title">教学岗位分</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.LessonNum', $event)" |
|
|
|
:value="getValue('JobPerformance.LessonNum')" |
|
|
|
:disabled="!edit" |
|
|
|
title="正课节数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.LessonHour', $event)" |
|
|
|
:value="getValue('JobPerformance.LessonHour')" |
|
|
|
:disabled="!edit" |
|
|
|
title="正课课时分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.MorningStudyNum', $event)" |
|
|
|
:value="getValue('JobPerformance.MorningStudyNum')" |
|
|
|
:disabled="!edit" |
|
|
|
title="早自习节数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.MorningStudyHour', $event)" |
|
|
|
:value="getValue('JobPerformance.MorningStudyHour')" |
|
|
|
:disabled="!edit" |
|
|
|
title="早自习课时分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.NightStudyNum', $event)" |
|
|
|
:value="getValue('JobPerformance.NightStudyNum')" |
|
|
|
:disabled="!edit" |
|
|
|
title="晚自习节数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.NightStudyHour', $event)" |
|
|
|
:value="getValue('JobPerformance.NightStudyHour')" |
|
|
|
:disabled="!edit" |
|
|
|
title="晚自习课时分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TwoExerciseNum', $event)" |
|
|
|
:value="getValue('JobPerformance.TwoExerciseNum')" |
|
|
|
:disabled="!edit" |
|
|
|
title="两操节数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TwoExerciseHour', $event)" |
|
|
|
:value="getValue('JobPerformance.TwoExerciseHour')" |
|
|
|
:disabled="!edit" |
|
|
|
title="两操课时分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TempWorkDay', $event)" |
|
|
|
:value="getValue('JobPerformance.TempWorkDay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="临时代班天数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.TempWorkScore', $event)" |
|
|
|
:value="getValue('JobPerformance.TempWorkScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="临时代班岗位分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.OffWorkDay', $event)" |
|
|
|
:value="getValue('JobPerformance.OffWorkDay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="缺班天数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.OffWorkMinusScore', $event)" |
|
|
|
:value="getValue('JobPerformance.OffWorkMinusScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="临时缺班扣减岗位分" |
|
|
|
/> |
|
|
|
<view class="item-title">值日岗位分</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.OnDutyDay', $event)" |
|
|
|
:value="getValue('JobPerformance.OnDutyDay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="值日天数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.OnDutyScore', $event)" |
|
|
|
:value="getValue('JobPerformance.OnDutyScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="值日岗位分" |
|
|
|
/> |
|
|
|
<view class="item-title">出勤考核</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.ShouldWorkDay', $event)" |
|
|
|
:value="getValue('JobPerformance.ShouldWorkDay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="应出勤天数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.WorkBasicScore', $event)" |
|
|
|
:value="getValue('JobPerformance.WorkBasicScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="出勤基础分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.WorkOffCount', $event)" |
|
|
|
:value="getValue('JobPerformance.WorkOffCount')" |
|
|
|
:disabled="!edit" |
|
|
|
title="出勤缺卡次数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.WorkMinusScore', $event)" |
|
|
|
:value="getValue('JobPerformance.WorkMinusScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="出勤考核扣减分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.BigActivityMinusScore', $event)" |
|
|
|
:value="getValue('JobPerformance.BigActivityMinusScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="大型活动考核扣减分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.AbsenteeismDay', $event)" |
|
|
|
:value="getValue('JobPerformance.AbsenteeismDay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="旷工天数" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.AbsenteeismMinusScore', $event)" |
|
|
|
:value="getValue('JobPerformance.AbsenteeismMinusScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="旷工扣减分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.WorkRemark', $event)" |
|
|
|
:value="getValue('JobPerformance.WorkRemark')" |
|
|
|
:disabled="!edit" |
|
|
|
title="出勤(病事公产活动等)考核情况说明" |
|
|
|
/> |
|
|
|
<view class="item-title">常规工作考核</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.RoutineBasicScore', $event)" |
|
|
|
:value="getValue('JobPerformance.RoutineBasicScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="常规工作考核基础分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.RoutineMinusScore', $event)" |
|
|
|
:value="getValue('JobPerformance.RoutineMinusScore')" |
|
|
|
:disabled="!edit" |
|
|
|
title="常规工作考核扣减分" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.RoutineRemark', $event)" |
|
|
|
:value="getValue('JobPerformance.RoutineRemark')" |
|
|
|
:disabled="!edit" |
|
|
|
title="常规工作考核情况详细说明" |
|
|
|
/> |
|
|
|
<view class="item-title">假期工作绩效</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('JobPerformance.HolidayJobPerformance', $event)" |
|
|
|
:value="getValue('JobPerformance.HolidayJobPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="假期工作绩效" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
/* |
|
|
|
* 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn) |
|
|
|
* Copyright (c) 2013-2020 上海力软信息技术有限公司 |
|
|
|
* 创建人:超级管理员 |
|
|
|
* 日 期:2020-10-16 15:39 |
|
|
|
* 描 述:工作绩效 |
|
|
|
*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用 |
|
|
|
* 请在移动端 /pages.json 中的 pages 字段中添加一条记录: |
|
|
|
* { "path": "pages/EducationalAdministration/JournalSend/single", "style": { "navigationBarTitleText": "表单详情页" } } |
|
|
|
* |
|
|
|
* (navigationBarTitleText 字段为本页面的标题文本,可以修改) |
|
|
|
* (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件) |
|
|
|
*/ |
|
|
|
|
|
|
|
import get from 'lodash/get' |
|
|
|
import set from 'lodash/set' |
|
|
|
import moment from 'moment' |
|
|
|
import customPageMixins from '@/common/custompage.js' |
|
|
|
|
|
|
|
export default { |
|
|
|
mixins: [customPageMixins], |
|
|
|
|
|
|
|
data() { |
|
|
|
return { |
|
|
|
// 页面相关参数 |
|
|
|
id: null, |
|
|
|
mode: null, |
|
|
|
edit: null, |
|
|
|
ready: false, |
|
|
|
|
|
|
|
// 表单数据 |
|
|
|
current: {}, |
|
|
|
origin: {}, |
|
|
|
|
|
|
|
// 表单项数据结构 |
|
|
|
scheme: { |
|
|
|
JobPerformance: { |
|
|
|
// Id |
|
|
|
// 处室Department |
|
|
|
Department: { type: 'text', title: '处室'}, |
|
|
|
// 姓名EmpName |
|
|
|
EmpName: { type: 'text', title: '姓名' }, |
|
|
|
// 岗位名称Post |
|
|
|
Post: { type: 'text', title: '岗位名称' }, |
|
|
|
// 行政管理岗位AdminPosition |
|
|
|
AdminPosition: { type: 'text', title: '行政管理岗位'}, |
|
|
|
// 团总支书记LeagueSecretary |
|
|
|
LeagueSecretary: { type: 'text', title: '团总支书记'}, |
|
|
|
// 中心负责人CenterPeople |
|
|
|
CenterPeople: { type: 'text', title: '中心负责人'}, |
|
|
|
// 教辅、工勤岗位TeachingPosition |
|
|
|
TeachingPosition: { type: 'text', title: '教辅、工勤岗位'}, |
|
|
|
// 班主任Director |
|
|
|
Director: { type: 'text', title: '班主任'}, |
|
|
|
// 名师工作室TeacherWorkRoom |
|
|
|
TeacherWorkRoom: { type: 'text', title: '名师工作室'}, |
|
|
|
// 专业负责人、教研/备课组长MajorPeople |
|
|
|
MajorPeople: { type: 'text', title: '专业负责人、教研/备课组长'}, |
|
|
|
// 办公组长WorkLeader |
|
|
|
WorkLeader: { type: 'text', title: '办公组长'}, |
|
|
|
// 实训室类管理员TrainAdmin |
|
|
|
TrainAdmin: { type: 'text', title: '实训室类管理员'}, |
|
|
|
// 纪委/支部/工会委员、兼职督学CommitteeMember |
|
|
|
CommitteeMember: { type: 'text', title: '纪委/支部/工会委员、兼职督学'}, |
|
|
|
// 正课节数LessonNum |
|
|
|
LessonNum: { type: 'text', title: '正课节数'}, |
|
|
|
// 正课课时分RoutineMinusScore |
|
|
|
LessonHour: { type: 'text', title: '正课课时分'}, |
|
|
|
// 早自习节数MorningStudyNum |
|
|
|
MorningStudyNum: { type: 'text', title: '早自习节数'}, |
|
|
|
// 早自习课时分MorningStudyHour |
|
|
|
MorningStudyHour: { type: 'text', title: '早自习课时分'}, |
|
|
|
// 晚自习节数NightStudyNum |
|
|
|
NightStudyNum: { type: 'text', title: '晚自习节数'}, |
|
|
|
// 晚自习课时分NightStudyHour |
|
|
|
NightStudyHour: { type: 'text', title: '晚自习课时分'}, |
|
|
|
// 两操节数TwoExerciseNum |
|
|
|
TwoExerciseNum: { type: 'text', title: '两操节数'}, |
|
|
|
// 两操课时分TwoExerciseHour |
|
|
|
TwoExerciseHour: { type: 'text', title: '两操课时分'}, |
|
|
|
// 临时代班天数TempWorkDay |
|
|
|
TempWorkDay: { type: 'text', title: '临时代班天数'}, |
|
|
|
// 临时代班岗位分TempWorkScore |
|
|
|
TempWorkScore: { type: 'text', title: '临时代班岗位分'}, |
|
|
|
// 缺班天数OffWorkDay |
|
|
|
OffWorkDay: { type: 'text', title: '缺班天数'}, |
|
|
|
// 临时缺班扣减岗位分OffWorkMinusScore |
|
|
|
OffWorkMinusScore: { type: 'text', title: '临时缺班扣减岗位分'}, |
|
|
|
OnDutyDay:{ type: 'text', title: '值日天数'}, |
|
|
|
OnDutyScore: { type: 'text', title: '值日岗位分'}, |
|
|
|
// 应出勤天数ShouldWorkDay |
|
|
|
ShouldWorkDay: { type: 'text', title: '应出勤天数'}, |
|
|
|
// 出勤基础分WorkBasicScore |
|
|
|
WorkBasicScore: { type: 'text', title: '出勤基础分'}, |
|
|
|
// 出勤缺卡次数WorkOffCount |
|
|
|
WorkOffCount: { type: 'text', title: '出勤缺卡次数'}, |
|
|
|
// 出勤考核扣减分WorkMinusScore |
|
|
|
WorkMinusScore: { type: 'text', title: '出勤考核扣减分'}, |
|
|
|
// 大型活动考核扣减分BigActivityMinusScore |
|
|
|
BigActivityMinusScore: { type: 'text', title: '大型活动考核扣减分'}, |
|
|
|
// 旷工天数AbsenteeismDay |
|
|
|
AbsenteeismDay: { type: 'text', title: '旷工天数'}, |
|
|
|
// 旷工扣减分AbsenteeismMinusScore |
|
|
|
AbsenteeismMinusScore: { type: 'text', title: '旷工扣减分'}, |
|
|
|
// 出勤(病事公产活动等)考核情况说明WorkRemark |
|
|
|
WorkRemark: { type: 'text', title: '出勤(病事公产活动等)考核情况说明'}, |
|
|
|
// 常规工作考核基础分RoutineBasicScore |
|
|
|
RoutineBasicScore: { type: 'text', title: '常规工作考核基础分'}, |
|
|
|
// 常规工作考核扣减分RoutineMinusScore |
|
|
|
RoutineMinusScore: { type: 'text', title: '常规工作考核扣减分'}, |
|
|
|
// 常规工作考核情况详细说明RoutineRemark |
|
|
|
RoutineRemark: { type: 'text', title: '常规工作考核情况详细说明'}, |
|
|
|
// 月绩效考核分合计PerformanceTotalScore |
|
|
|
PerformanceTotalScore: { type: 'text', title: '月绩效考核分合计'}, |
|
|
|
// 假期工作绩效HolidayJobPerformance |
|
|
|
HolidayJobPerformance: { type: 'text', title: '假期工作绩效'}, |
|
|
|
// CreateUser |
|
|
|
CreateUser: { type: 'text', title: '创建用户'}, |
|
|
|
// CreateTime |
|
|
|
CreateTime: { type: 'text', title: '创建时间'}, |
|
|
|
// UpdateUser |
|
|
|
// UpdateTime |
|
|
|
// 发放月份IssueMonth |
|
|
|
IssueMonth: { type: 'text', title: '发放月份'}, |
|
|
|
// 发放年份IssueYear |
|
|
|
IssueYear: { type: 'text', title: '发放年份'}, |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 数据源 |
|
|
|
dataSource: { |
|
|
|
|
|
|
|
}, |
|
|
|
itemtitle:'', |
|
|
|
itemfrom:'', |
|
|
|
itemtype:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async onLoad(option) { |
|
|
|
const item = JSON.parse(decodeURIComponent(option.item)); |
|
|
|
this.itemtype = option.type |
|
|
|
this.itemfrom = item[0] |
|
|
|
|
|
|
|
await this.init() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// 页面初始化 |
|
|
|
async init(type, id) { |
|
|
|
this.LOADING('加载数据中...') |
|
|
|
|
|
|
|
// 拉取表单数据,同时拉取所有来自数据源的选单数据 |
|
|
|
await Promise.all([ |
|
|
|
() => {} |
|
|
|
]) |
|
|
|
|
|
|
|
await this.fetchForm() |
|
|
|
|
|
|
|
this.ready = true |
|
|
|
this.HIDE_LOADING() |
|
|
|
}, |
|
|
|
|
|
|
|
// 加载表单数据 |
|
|
|
async fetchForm() { |
|
|
|
|
|
|
|
let originitem = { |
|
|
|
JobPerformance : this.itemfrom |
|
|
|
} |
|
|
|
this.origin = await this.formatFormData(originitem) |
|
|
|
this.current = this.COPY(this.origin) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取表单值 |
|
|
|
getValue(path) { |
|
|
|
return get(this.current, path) |
|
|
|
}, |
|
|
|
|
|
|
|
// 设置表单值 |
|
|
|
setValue(path, val) { |
|
|
|
set(this.current, path, val) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style> |
|
|
|
.item-title{ |
|
|
|
color: #000; |
|
|
|
font-size: 16px; |
|
|
|
line-height: 36px; |
|
|
|
padding-left: 15px; |
|
|
|
} |
|
|
|
.top-15{ |
|
|
|
margin-top: 8px; |
|
|
|
} |
|
|
|
</style> |