|
|
@@ -1,43 +1,44 @@ |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
<view v-if="ready"> |
|
|
|
<view class="item-title">基本信息</view> |
|
|
|
<l-input |
|
|
|
<!-- <view class="item-title">{{itemtitle}}</view> --> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.EmpName', $event)" |
|
|
|
:value="getValue('WageSchedule.EmpName')" |
|
|
|
:disabled="!edit" |
|
|
|
title="姓名" |
|
|
|
/> |
|
|
|
/> --> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.IdCardNo', $event)" |
|
|
|
:value="getValue('WageSchedule.IdCardNo')" |
|
|
|
:disabled="!edit" |
|
|
|
title="身份证号" |
|
|
|
/> --> |
|
|
|
<l-input |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.PeopleType', $event)" |
|
|
|
:value="getValue('WageSchedule.PeopleType')" |
|
|
|
:disabled="!edit" |
|
|
|
title="人员类别" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
/> --> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.PostType', $event)" |
|
|
|
:value="getValue('WageSchedule.PostType')" |
|
|
|
:disabled="!edit" |
|
|
|
title="岗位等级" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
/> --> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.PayGrade', $event)" |
|
|
|
:value="getValue('WageSchedule.PayGrade')" |
|
|
|
:disabled="!edit" |
|
|
|
title="薪级" |
|
|
|
/> |
|
|
|
/> --> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.TotalGrossPay', $event)" |
|
|
|
:value="getValue('WageSchedule.TotalGrossPay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="应发合计" |
|
|
|
/> --> |
|
|
|
<view v-if="itemtype == 1"> |
|
|
|
<view class="item-title">基本工资</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.PostWage', $event)" |
|
|
@@ -57,19 +58,39 @@ |
|
|
|
:disabled="!edit" |
|
|
|
title="百分之十" |
|
|
|
/> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.BasePay', $event)" |
|
|
|
:value="getValue('WageSchedule.BasePay')" |
|
|
|
<view class="item-title">绩效工资</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.BasicsPerformance', $event)" |
|
|
|
:value="getValue('WageSchedule.BasicsPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="小计" |
|
|
|
/> --> |
|
|
|
title="基础性绩效" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.AwardPerformance', $event)" |
|
|
|
:value="getValue('WageSchedule.AwardPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="奖励绩效" |
|
|
|
/> |
|
|
|
<view class="item-title">单列绩效</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.SeparateBasicsPerformance', $event)" |
|
|
|
:value="getValue('WageSchedule.SeparateBasicsPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="基础绩效" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.SeparateAwardPerformance', $event)" |
|
|
|
:value="getValue('WageSchedule.SeparateAwardPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="奖励绩效" |
|
|
|
/> |
|
|
|
<view class="item-title">津贴补贴</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.RoughEdgeAllowance', $event)" |
|
|
|
:value="getValue('WageSchedule.RoughEdgeAllowance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="艰边津贴" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.NationAllowance', $event)" |
|
|
|
:value="getValue('WageSchedule.NationAllowance')" |
|
|
@@ -80,31 +101,14 @@ |
|
|
|
@input="setValue('WageSchedule.TeachAllowance', $event)" |
|
|
|
:value="getValue('WageSchedule.TeachAllowance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="教师津贴" |
|
|
|
/> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.SubsidiesAllowances', $event)" |
|
|
|
:value="getValue('WageSchedule.SubsidiesAllowances')" |
|
|
|
:disabled="!edit" |
|
|
|
title="小计" |
|
|
|
/> --> |
|
|
|
|
|
|
|
<l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.BasicsPerformance', $event)" |
|
|
|
:value="getValue('WageSchedule.BasicsPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="基础性绩效" |
|
|
|
title="教龄津贴" |
|
|
|
/> |
|
|
|
|
|
|
|
<l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.GirlStaffSanitation', $event)" |
|
|
|
:value="getValue('WageSchedule.GirlStaffSanitation')" |
|
|
|
@input="setValue('WageSchedule.SuperfineTeacherResearch', $event)" |
|
|
|
:value="getValue('WageSchedule.SuperfineTeacherResearch')" |
|
|
|
:disabled="!edit" |
|
|
|
title="女职工卫生费" |
|
|
|
title="特级教师津贴" |
|
|
|
/> |
|
|
|
|
|
|
|
<view class="item-title">改革性补贴</view> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.Transportation', $event)" |
|
|
@@ -124,35 +128,93 @@ |
|
|
|
:disabled="!edit" |
|
|
|
title="工改保留补贴" |
|
|
|
/> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.ReformSubsidySum', $event)" |
|
|
|
:value="getValue('WageSchedule.ReformSubsidySum')" |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.GirlStaffSanitation', $event)" |
|
|
|
:value="getValue('WageSchedule.GirlStaffSanitation')" |
|
|
|
:disabled="!edit" |
|
|
|
title="小计" |
|
|
|
/> --> |
|
|
|
title="女职工卫生费" |
|
|
|
/> |
|
|
|
|
|
|
|
<l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.TownshipSubsidy', $event)" |
|
|
|
:value="getValue('WageSchedule.TownshipSubsidy')" |
|
|
|
:disabled="!edit" |
|
|
|
title="乡镇补贴" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.HousingAllowance', $event)" |
|
|
|
:value="getValue('WageSchedule.HousingAllowance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="住房补贴" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.HousingFundAllowance', $event)" |
|
|
|
:value="getValue('WageSchedule.HousingFundAllowance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="住房公积金" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.OtherOne', $event)" |
|
|
|
:value="getValue('WageSchedule.OtherOne')" |
|
|
|
:disabled="!edit" |
|
|
|
title="其他" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.BasePay', $event)" |
|
|
|
:value="getValue('WageSchedule.BasePay')" |
|
|
|
:disabled="!edit" |
|
|
|
title="小计" |
|
|
|
/> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.SubsidiesAllowances', $event)" |
|
|
|
:value="getValue('WageSchedule.SubsidiesAllowances')" |
|
|
|
:disabled="!edit" |
|
|
|
title="小计" |
|
|
|
/> --> |
|
|
|
|
|
|
|
<!-- <l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.BasicsPerformance', $event)" |
|
|
|
:value="getValue('WageSchedule.BasicsPerformance')" |
|
|
|
:disabled="!edit" |
|
|
|
title="基础性绩效" |
|
|
|
/> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.ReformSubsidySum', $event)" |
|
|
|
:value="getValue('WageSchedule.ReformSubsidySum')" |
|
|
|
:disabled="!edit" |
|
|
|
title="小计" |
|
|
|
/> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.TeacherAndTown', $event)" |
|
|
|
:value="getValue('WageSchedule.TeacherAndTown')" |
|
|
|
:disabled="!edit" |
|
|
|
title="特级教师津贴和乡镇补贴" |
|
|
|
/> |
|
|
|
<view class="item-title">扣款</view> |
|
|
|
/> --> |
|
|
|
|
|
|
|
<view v-if="itemtype == 2"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="item-title">代扣代缴</view> |
|
|
|
<!-- <l-input |
|
|
|
@input="setValue('WageSchedule.DeductionsSubtotal', $event)" |
|
|
|
:value="getValue('WageSchedule.DeductionsSubtotal')" |
|
|
@@ -165,18 +227,6 @@ |
|
|
|
:disabled="!edit" |
|
|
|
title="公积金" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.LaborUnionWage', $event)" |
|
|
|
:value="getValue('WageSchedule.LaborUnionWage')" |
|
|
|
:disabled="!edit" |
|
|
|
title="工会工费" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.PersonalIncomeTax', $event)" |
|
|
|
:value="getValue('WageSchedule.PersonalIncomeTax')" |
|
|
|
:disabled="!edit" |
|
|
|
title="个人所得税" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.EndowmentInsurance', $event)" |
|
|
|
:value="getValue('WageSchedule.EndowmentInsurance')" |
|
|
@@ -201,13 +251,25 @@ |
|
|
|
:disabled="!edit" |
|
|
|
title="失业保险" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.LaborUnionWage', $event)" |
|
|
|
:value="getValue('WageSchedule.LaborUnionWage')" |
|
|
|
:disabled="!edit" |
|
|
|
title="工会工费" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.PersonalIncomeTax', $event)" |
|
|
|
:value="getValue('WageSchedule.PersonalIncomeTax')" |
|
|
|
:disabled="!edit" |
|
|
|
title="个人所得税" |
|
|
|
/> |
|
|
|
<l-input |
|
|
|
@input="setValue('WageSchedule.Other', $event)" |
|
|
|
:value="getValue('WageSchedule.Other')" |
|
|
|
:disabled="!edit" |
|
|
|
title="其他" |
|
|
|
/> |
|
|
|
|
|
|
|
</view> |
|
|
|
<!-- <l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.FiscalDirect', $event)" |
|
|
@@ -222,7 +284,7 @@ |
|
|
|
:disabled="!edit" |
|
|
|
title="银行代扣" |
|
|
|
/> --> |
|
|
|
<l-input |
|
|
|
<!-- <l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.NetCombined', $event)" |
|
|
|
:value="getValue('WageSchedule.NetCombined')" |
|
|
@@ -235,7 +297,7 @@ |
|
|
|
:value="getValue('WageSchedule.WageCardNo')" |
|
|
|
:disabled="!edit" |
|
|
|
title="工资卡号" |
|
|
|
/> |
|
|
|
/> --> |
|
|
|
<!-- <l-input |
|
|
|
class="top-15" |
|
|
|
@input="setValue('WageSchedule.CreateUser', $event)" |
|
|
@@ -358,6 +420,7 @@ export default { |
|
|
|
NationAllowance: { type: 'text', title: '民族津贴'}, |
|
|
|
// 教师津贴TeachAllowance |
|
|
|
TeachAllowance: { type: 'text', title: '教师津贴'}, |
|
|
|
SuperfineTeacherResearch:{ type: 'text', title: '特级教师津贴'}, |
|
|
|
// 津贴补贴小计SubsidiesAllowances |
|
|
|
SubsidiesAllowances: { type: 'text', title: '津贴补贴小计'}, |
|
|
|
// 基础性绩效BasicsPerformance |
|
|
@@ -366,8 +429,10 @@ export default { |
|
|
|
GirlStaffSanitation: { type: 'text', title: 'http://cyzjzx.gnway.cc:29904'}, |
|
|
|
// 交通补贴Transportation |
|
|
|
Transportation: { type: 'text', title: '交通补贴'}, |
|
|
|
// 物业补贴RealeState |
|
|
|
BasicsPerformance: { type: 'text', title: '基础性绩效'}, |
|
|
|
// 奖励绩效RealeState |
|
|
|
AwardPerformance: { type: 'text', title: '奖励绩效'}, |
|
|
|
SeparateAwardPerformance: { type: 'text', title: '奖励绩效'}, |
|
|
|
SeparateBasicsPerformance:{ type: 'text', title: '基础绩效'}, |
|
|
|
// 工改保留补贴WorkKeep |
|
|
|
WorkKeep: { type: 'text', title: '工改保留补贴'}, |
|
|
|
// 改革性补贴小计ReformSubsidySum |
|
|
@@ -414,6 +479,8 @@ export default { |
|
|
|
IssueMonth: { type: 'text', title: '发放月份'}, |
|
|
|
// 发放年份IssueYear |
|
|
|
IssueYear: { type: 'text', title: '发放年份'}, |
|
|
|
TownshipSubsidy:{ type: 'text', title: '乡镇补贴'}, |
|
|
|
OtherOne:{ type: 'text', title: '其他'}, |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
@@ -424,12 +491,24 @@ export default { |
|
|
|
JTypeId: [], |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
itemtitle:'', |
|
|
|
itemfrom:'', |
|
|
|
itemtype:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async onLoad({ type, id }) { |
|
|
|
await this.init(type, id) |
|
|
|
async onLoad(option) { |
|
|
|
const item = JSON.parse(decodeURIComponent(option.item)); |
|
|
|
this.itemtype = option.type |
|
|
|
this.itemfrom = item[0] |
|
|
|
if(this.itemtype == 1){ |
|
|
|
this.itemtitle = '基本工资' |
|
|
|
}else{ |
|
|
|
this.itemtitle = '代扣代缴' |
|
|
|
} |
|
|
|
await this.init() |
|
|
|
// await this.init('edit', '787141ce-a504-4782-90e7-7b9e9e5e161e') |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@@ -437,16 +516,15 @@ export default { |
|
|
|
async init(type, id) { |
|
|
|
this.LOADING('加载数据中...') |
|
|
|
|
|
|
|
this.id = id |
|
|
|
this.mode = type |
|
|
|
// this.id = id |
|
|
|
// this.mode = type |
|
|
|
// this.edit = ['create', 'edit'].includes(this.mode) |
|
|
|
|
|
|
|
// 拉取表单数据,同时拉取所有来自数据源的选单数据 |
|
|
|
await Promise.all([ |
|
|
|
|
|
|
|
|
|
|
|
() => {} |
|
|
|
]) |
|
|
|
|
|
|
|
await this.fetchForm() |
|
|
|
|
|
|
|
this.ready = true |
|
|
@@ -455,13 +533,20 @@ export default { |
|
|
|
|
|
|
|
// 加载表单数据 |
|
|
|
async fetchForm() { |
|
|
|
if (this.mode === 'create') { |
|
|
|
this.origin = await this.getDefaultForm() |
|
|
|
} else { |
|
|
|
const result = await this.HTTP_GET('learun/adms/WageSchedule/form', this.id) |
|
|
|
this.origin = await this.formatFormData(result) |
|
|
|
} |
|
|
|
this.current = this.COPY(this.origin) |
|
|
|
|
|
|
|
let originitem = { |
|
|
|
WageSchedule : this.itemfrom |
|
|
|
} |
|
|
|
this.origin = await this.formatFormData(originitem) |
|
|
|
this.current = this.COPY(this.origin) |
|
|
|
|
|
|
|
// if (this.mode === 'create') { |
|
|
|
// this.origin = await this.getDefaultForm() |
|
|
|
// } else { |
|
|
|
// const result = await this.HTTP_GET('learun/adms/WageSchedule/form', this.id) |
|
|
|
// this.origin = await this.formatFormData(result) |
|
|
|
// } |
|
|
|
// this.current = this.COPY(this.origin) |
|
|
|
}, |
|
|
|
|
|
|
|
// 点击 「编辑」、「重置」、「保存」、「删除」 按钮 |
|
|
|