相关方离职入职重构
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 uploadFile = (params) => upload("/app/sys/file/uploadFile", params);
|
||||
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>
|
||||
import {setResignationApplication,resign} from "../../api";
|
||||
import {resignV1} from "../../api/api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -52,10 +53,10 @@ export default {
|
|||
return
|
||||
}
|
||||
this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID = this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
await resign({
|
||||
LEAVE_REASON: this.form.LEAVE_REASON,
|
||||
OPERATOR_ID: this.userInfo.USER_ID,
|
||||
USER_ID: this.userInfo.USER_ID
|
||||
await resignV1({
|
||||
leaveReason: this.form.LEAVE_REASON,
|
||||
operatorId: this.userInfo.USER_ID,
|
||||
userId: this.userInfo.USER_ID
|
||||
})
|
||||
uni.$u.toast('离职成功')
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<script>
|
||||
import updateVersion from '../../utils/updateVersion'
|
||||
import { setEntry, getIsUploadFace } from '../../api'
|
||||
import {setEntryV1} from "../../api/api";
|
||||
|
||||
export default {
|
||||
mixins: [updateVersion],
|
||||
|
@ -107,10 +108,11 @@ export default {
|
|||
let obj = JSON.parse(res.result)
|
||||
let type = obj[0].CODE_TYPE
|
||||
if (type === '0') {
|
||||
let info = await setEntry({
|
||||
USER_ID: this.userInfo.USER_ID,
|
||||
CORPINFO_ID: obj[0].CORPINFO_ID,
|
||||
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME
|
||||
let info = await setEntryV1({
|
||||
userId: this.userInfo.USER_ID,
|
||||
corpinfoId: obj[0].CORPINFO_ID,
|
||||
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME,
|
||||
postMethod: 'application/json'
|
||||
})
|
||||
if (info.code === 200) {
|
||||
uni.$u.toast('入职成功')
|
||||
|
|
Loading…
Reference in New Issue