|
@@ -419,78 +419,79 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
agetdeptresponsibility(row) {
|
|
|
- this.activeVisible = true
|
|
|
this.activeRowObj = row
|
|
|
this.leaderArr = []
|
|
|
let that = this
|
|
|
- let params = {
|
|
|
- id: row.deptId
|
|
|
- }
|
|
|
- apiGetobtainApprovalLeader(params).then(datas =>{
|
|
|
- if (datas && datas.data) {
|
|
|
- that.leaderArr = datas.data
|
|
|
- if (datas.data.length>0) {
|
|
|
- that.activeLeaderName = datas.data[0].no
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- activeresponsibility() {
|
|
|
- let that = this
|
|
|
- let row = this.activeRowObj
|
|
|
apiGetparticipantsNumber(row.id).then(res =>{
|
|
|
if (res.success) {
|
|
|
that.$message({
|
|
|
message: row.annual+'年度'+row.declarationMonth+'月份本次申报人数为'+res.data+'人',
|
|
|
type: 'success'
|
|
|
});
|
|
|
- let pars = {
|
|
|
- id: row.id,
|
|
|
- employeeNo: that.activeLeaderName
|
|
|
- }
|
|
|
- apiGetaddApprovalLeader(pars).then(val =>{
|
|
|
- if (val && val.data) {
|
|
|
- that.activeVisible = false
|
|
|
- let par = {
|
|
|
- defKey: "jxjgkhsb",
|
|
|
- businessKey: row.id,
|
|
|
- action: "start",
|
|
|
- opinion: "绩效结果考核申报",
|
|
|
- iamCode: window.localStorage.getItem('code')
|
|
|
+ setTimeout(() =>{
|
|
|
+ this.activeVisible = true
|
|
|
+ let params = {
|
|
|
+ id: row.deptId
|
|
|
+ }
|
|
|
+ apiGetobtainApprovalLeader(params).then(datas =>{
|
|
|
+ if (datas && datas.data) {
|
|
|
+ that.leaderArr = datas.data
|
|
|
+ if (datas.data.length>0) {
|
|
|
+ that.activeLeaderName = datas.data[0].no
|
|
|
+ }
|
|
|
}
|
|
|
- apiGetdoAction(par).then(datas =>{
|
|
|
- if (datas && datas.data) {
|
|
|
- if (!datas.data.isOk) {
|
|
|
+ })
|
|
|
+ },1000)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ activeresponsibility() {
|
|
|
+ let that = this
|
|
|
+ let row = this.activeRowObj
|
|
|
+ let pars = {
|
|
|
+ id: row.id,
|
|
|
+ employeeNo: that.activeLeaderName
|
|
|
+ }
|
|
|
+ apiGetaddApprovalLeader(pars).then(val =>{
|
|
|
+ if (val && val.data) {
|
|
|
+ that.activeVisible = false
|
|
|
+ let par = {
|
|
|
+ defKey: "jxjgkhsb",
|
|
|
+ businessKey: row.id,
|
|
|
+ action: "start",
|
|
|
+ opinion: "绩效结果考核申报",
|
|
|
+ iamCode: window.localStorage.getItem('code')
|
|
|
+ }
|
|
|
+ apiGetdoAction(par).then(datas =>{
|
|
|
+ if (datas && datas.data) {
|
|
|
+ if (!datas.data.isOk) {
|
|
|
+ that.$message({
|
|
|
+ message: datas.data.msg,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ let params = {
|
|
|
+ id: row.id,
|
|
|
+ stage: '流程已开始'
|
|
|
+ }
|
|
|
+ apideptAdState(params).then(values =>{
|
|
|
+ if (values.success) {
|
|
|
+ that.getassessmentApplicationList()
|
|
|
+ } else {
|
|
|
that.$message({
|
|
|
- message: datas.data.msg,
|
|
|
+ message: values.message,
|
|
|
type: 'error'
|
|
|
});
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- id: row.id,
|
|
|
- stage: '流程已开始'
|
|
|
- }
|
|
|
- apideptAdState(params).then(values =>{
|
|
|
- if (values.success) {
|
|
|
- that.getassessmentApplicationList()
|
|
|
- } else {
|
|
|
- that.$message({
|
|
|
- message: values.message,
|
|
|
- type: 'error'
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- that.$message({
|
|
|
- message: '领导添加失败',
|
|
|
- type: 'error'
|
|
|
- });
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+ } else {
|
|
|
+ that.$message({
|
|
|
+ message: '领导添加失败',
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
},
|