相关方人员审批 - 重复推送相关功能

pet-人员中台对接-xuyifeng-7.24
water_xu 2024-07-10 14:22:13 +08:00
parent 2ccd92f1c3
commit 38adefd0fb
1 changed files with 93 additions and 1 deletions

View File

@ -60,11 +60,12 @@
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/>
<el-table-column prop="STUDY_STATUS_NAME" label="培训状态" align="center"/>
<el-table-column prop="CHECK_STATUS_NAME" label="审核状态" align="center"/>
<el-table-column label="操作" align="center" width="350">
<el-table-column label="操作" align="center" width="450">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShowStep(row)"></el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShowFlow(row)"></el-button>
<el-button v-if="row.CHECK_STATUS == '2'" type="success" size="mini" @click="sendMessage(row)"></el-button>
<el-button v-if="row.power_flag === '1'" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])"></el-button>
<el-button v-if="row.power_flag === '1' && row.FLOWS_STEP === 2" type="primary" icon="el-icon-s-claim" size="mini" @click="entrust([row])"></el-button>
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)"></el-button>
@ -127,6 +128,31 @@ export default {
page: 1,
limit: 10
},
form: {
STATUS: null,
APPOINT_CORP_ID: '',
APPOINT_CORP_NAME: '',
APPOINT_DEPARTMENT_ID: null,
APPOINT_DEPARTMENT_NAME: '',
APPOINT_USER_ID: null,
APPOINT_USER_NAME: '',
APPOINT_ANNEX: null,
OPINION: '',
STEP: false,
LIMIT_END_TIME: '',
user: '',
XGF_USER_ID:'',
FLOWS_STEP:'1',
FLOWS_TYPE:'2',
repeatPush: '1',
tm: new Date().getTime(),
list: [],
isShow: true,
info: {},
TYPE: null,
BACK_NAME: '',
BACK_STEP: ''
},
total: 0,
varList: [],
KEYWORDS: '',
@ -168,6 +194,72 @@ export default {
}
this.getList()
},
//
sendMessage(item){
this.form.STATUS = 1
this.form.STEP = false
this.form.TYPE = 2
this.form.BACK_STEP = -1
this.form.XGF_USER_ID = item.XGF_USER_ID
this.form.repeatPush = '1'
this.form.FLOWS_STEP = '1'
this.form.FLOWS_TYPE = '2'
if (this.form.TYPE !== '2') {
this.loading = true
requestFN('/xgf/user/approveMax', this.form)
.then((data) => {
if (data.code === '0') {
this.$message.success('推送成功')
this.visible = false
this.$emit('refresh', '')
this.handleClose()
} else {
this.$message.error(data.errorMessage)
}
this.loading = false
})
.catch((e) => {
console.log(e)
})
} else {
const formData = new FormData()
this.form.chengNuoFlag = '1'
Object.keys(this.form).map(key => {
formData.append(key, this.form[key])
})
if (this.form.APPOINT_ANNEX) {
for (let i = 0; i < this.form.APPOINT_ANNEX.length; i++) {
formData.append('weiTuoShu', this.form.APPOINT_ANNEX[i].raw)
}
}
this.loading = true
upload('/xgf/user/approveMax', formData)
.then((data) => {
this.$message.success('推送成功')
this.visible = false
this.$emit('refresh', '')
this.handleClose()
this.loading = false
})
.catch((e) => {
console.log(e)
})
}
},
handleClose() {
this.form = {
STATUS: '',
APPOINT_DEPARTMENT_ID: null,
APPOINT_DEPARTMENT_NAME: '',
APPOINT_USER_ID: '',
APPOINT_USER_NAME: '',
OPINION: '',
user: '',
list: [],
tm: new Date().getTime()
}
},
goKeyReset() {
this.KEYWORDS = ''
this.STATUS = ''