相关方离职入职重构
parent
b05fb1f146
commit
91abdf2d9a
|
@ -6,3 +6,5 @@ export const getDicLevel = (params) => post("/app/sys/dictionaries/getLevels", p
|
||||||
export const getEmpLog = (params) => post("/app/sys/user/getEmpLog", params) // 获取就职记录
|
export const getEmpLog = (params) => post("/app/sys/user/getEmpLog", params) // 获取就职记录
|
||||||
export const uploadFile = (params) => upload("/app/sys/file/uploadFile", params);
|
export const uploadFile = (params) => upload("/app/sys/file/uploadFile", params);
|
||||||
export const setRefreshToken = (params) => post("/sys/refreshToken", params ); // 刷新token
|
export const setRefreshToken = (params) => post("/sys/refreshToken", params ); // 刷新token
|
||||||
|
export const setEntryV1 = (params) => post("/app/sys/user/entry", params ); // 入职
|
||||||
|
export const resignV1 = (params) => post("/app/sys/user/resign", params ); // 离职
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {setResignationApplication,resign} from "../../api";
|
import {setResignationApplication,resign} from "../../api";
|
||||||
|
import {resignV1} from "../../api/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -52,10 +53,10 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID = this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID = this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||||
await resign({
|
await resignV1({
|
||||||
LEAVE_REASON: this.form.LEAVE_REASON,
|
leaveReason: this.form.LEAVE_REASON,
|
||||||
OPERATOR_ID: this.userInfo.USER_ID,
|
operatorId: this.userInfo.USER_ID,
|
||||||
USER_ID: this.userInfo.USER_ID
|
userId: this.userInfo.USER_ID
|
||||||
})
|
})
|
||||||
uni.$u.toast('离职成功')
|
uni.$u.toast('离职成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
<script>
|
<script>
|
||||||
import updateVersion from '../../utils/updateVersion'
|
import updateVersion from '../../utils/updateVersion'
|
||||||
import { setEntry, getIsUploadFace } from '../../api'
|
import { setEntry, getIsUploadFace } from '../../api'
|
||||||
|
import {setEntryV1} from "../../api/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [updateVersion],
|
mixins: [updateVersion],
|
||||||
|
@ -107,10 +108,11 @@ export default {
|
||||||
let obj = JSON.parse(res.result)
|
let obj = JSON.parse(res.result)
|
||||||
let type = obj[0].CODE_TYPE
|
let type = obj[0].CODE_TYPE
|
||||||
if (type === '0') {
|
if (type === '0') {
|
||||||
let info = await setEntry({
|
let info = await setEntryV1({
|
||||||
USER_ID: this.userInfo.USER_ID,
|
userId: this.userInfo.USER_ID,
|
||||||
CORPINFO_ID: obj[0].CORPINFO_ID,
|
corpinfoId: obj[0].CORPINFO_ID,
|
||||||
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME
|
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME,
|
||||||
|
postMethod: 'application/json'
|
||||||
})
|
})
|
||||||
if (info.code === 200) {
|
if (info.code === 200) {
|
||||||
uni.$u.toast('入职成功')
|
uni.$u.toast('入职成功')
|
||||||
|
|
Loading…
Reference in New Issue