未符合项整改流程 第二步驳回 第三步隐藏驳回
This commit is contained in:
@@ -970,6 +970,18 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else if (row.taskInfo === '重新起草') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'wfhxzgStep1',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
taskAssignee: row.taskAssignee,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
}else {
|
}else {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'wfhxzgStep5',
|
name: 'wfhxzgStep5',
|
||||||
|
|||||||
@@ -324,7 +324,15 @@
|
|||||||
import ProcessHeader from '../../components/ProcessHeader'
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {startProcess, completeTask, saveTaskFirst, queryTaskFirst, taskDel, processBack} from '@/api/process.js'
|
import {
|
||||||
|
startProcess,
|
||||||
|
completeTask,
|
||||||
|
saveTaskFirst,
|
||||||
|
queryTaskFirst,
|
||||||
|
taskDel,
|
||||||
|
processBack,
|
||||||
|
inboundLiaisonDetail
|
||||||
|
} from "@/api/process.js";
|
||||||
import {standUnqualified, dicTypeData} from '@/api/unqualProcess.js'
|
import {standUnqualified, dicTypeData} from '@/api/unqualProcess.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -332,6 +340,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
submitFlag: '', //是否是修改节点
|
||||||
commentText: '', // 意见
|
commentText: '', // 意见
|
||||||
title: '', // 新增编辑抽屉标题
|
title: '', // 新增编辑抽屉标题
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
@@ -367,6 +376,7 @@ export default {
|
|||||||
dockUserName: [{required: true, message: "请选择标准法规工程师", trigger: ['blur', 'change']}]
|
dockUserName: [{required: true, message: "请选择标准法规工程师", trigger: ['blur', 'change']}]
|
||||||
},
|
},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
|
hisListForm:{},
|
||||||
drawerTitle: '', //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
@@ -388,8 +398,39 @@ export default {
|
|||||||
if (this.bpnId !== undefined) {
|
if (this.bpnId !== undefined) {
|
||||||
this.getData()
|
this.getData()
|
||||||
}
|
}
|
||||||
|
if(this.$route.query.taskIds){
|
||||||
|
//被驳回时调用
|
||||||
|
this.getHistoryData()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getHistoryData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList (item) {
|
||||||
|
item.commentText = ''
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.hisListForm = JSON.parse(JSON.stringify(item))
|
||||||
|
this.submitFlag = '修改节点'
|
||||||
|
this.dataList = item.dockUserList[0].standardInfoList
|
||||||
|
this.roleForm.dockUserName = this.dataList[0].engineer
|
||||||
|
this.roleForm.dockUser = this.dataList[0].engineerId
|
||||||
|
})
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
queryTaskFirst({
|
queryTaskFirst({
|
||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
@@ -557,6 +598,7 @@ export default {
|
|||||||
prcCreateUser: this.$store.getters.userInfo.userId,
|
prcCreateUser: this.$store.getters.userInfo.userId,
|
||||||
prcCreateUserName: this.$store.getters.userInfo.userName,
|
prcCreateUserName: this.$store.getters.userInfo.userName,
|
||||||
engineer: this.roleForm.dockUser,
|
engineer: this.roleForm.dockUser,
|
||||||
|
engineerName: this.roleForm.dockUserName,
|
||||||
standardInfoList: this.dataList,
|
standardInfoList: this.dataList,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}
|
}
|
||||||
@@ -566,43 +608,86 @@ export default {
|
|||||||
if (this.roleForm.dockUserName === '') {
|
if (this.roleForm.dockUserName === '') {
|
||||||
this.$message.warning('请完善人员信息')
|
this.$message.warning('请完善人员信息')
|
||||||
} else {
|
} else {
|
||||||
this.$refs['roleForm'].validate((valid) => {
|
if(!this.submitFlag){
|
||||||
if (valid) {
|
this.$refs['roleForm'].validate((valid) => {
|
||||||
this.isSubmit = true
|
if (valid) {
|
||||||
let paramsInfo = new FormData()
|
this.isSubmit = true
|
||||||
// paramsInfo.append('id', this.bpnId || '')
|
let paramsInfo = new FormData()
|
||||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
// paramsInfo.append('id', this.bpnId || '')
|
||||||
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
|
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
paramsInfo.append('type', '8')
|
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
|
||||||
paramsInfo.append('json', JSON.stringify({
|
paramsInfo.append('type', '8')
|
||||||
roleForm: this.roleForm,
|
paramsInfo.append('json', JSON.stringify({
|
||||||
dataList: this.dataList,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText
|
dataList: this.dataList,
|
||||||
}))
|
commentText: this.commentText
|
||||||
processBack(paramsInfo).then(res => {
|
}))
|
||||||
this.taskID = res.data
|
processBack(paramsInfo).then(res => {
|
||||||
const params = new FormData();
|
this.taskID = res.data
|
||||||
params.set('json', JSON.stringify(json))
|
const params = new FormData();
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('taskIds', this.taskID)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
completeTask(params).then(res => {
|
params.set('taskIds', this.taskID)
|
||||||
if (res.success === true) {
|
completeTask(params).then(res => {
|
||||||
this.$message.success('提交成功')
|
if (res.success === true) {
|
||||||
if (this.bpnId !== '') {
|
this.$message.success('提交成功')
|
||||||
|
if (this.bpnId !== '') {
|
||||||
|
let taskId = {
|
||||||
|
id: this.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res => {
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.$refs["roleForm"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
let specialJson = {
|
||||||
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
|
createUserName: this.$store.getters.userInfo.userName,
|
||||||
|
type: "8",
|
||||||
|
json: {
|
||||||
|
standardInfoList: this.dataList,
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
commentText: this.commentText
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.$http.post("lawss/activiti/completeTaskNew", {
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
specialJson: JSON.stringify(specialJson)
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
if (this.bpnId !== "") {
|
||||||
let taskId = {
|
let taskId = {
|
||||||
id: this.bpnId
|
id: this.bpnId
|
||||||
}
|
};
|
||||||
taskDel(taskId).then(res => {
|
taskDel(taskId).then(res => {
|
||||||
return res
|
return res;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false;
|
||||||
})
|
});
|
||||||
})
|
} else {
|
||||||
}
|
this.isSubmit = false;
|
||||||
})
|
return this.$message.warning("请完善人员信息");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -150,9 +150,11 @@
|
|||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
show-transfer
|
show-transfer
|
||||||
|
show-back
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
:transferLoading="turnLoading"
|
:transferLoading="turnLoading"
|
||||||
|
@back="beforeBack"
|
||||||
@transfer="handleTurnTo"
|
@transfer="handleTurnTo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -277,6 +279,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (item.passInfo !== undefined) {
|
if (item.passInfo !== undefined) {
|
||||||
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
|
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
|
||||||
@@ -336,6 +339,50 @@ export default {
|
|||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//驳回按钮
|
||||||
|
beforeBack(){
|
||||||
|
if(!this.commentInfo){
|
||||||
|
this.$message.warning('请填写审批意见')
|
||||||
|
}else{
|
||||||
|
let zqa = new Map();
|
||||||
|
for (let lastDataListElement of this.dataList) {
|
||||||
|
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
||||||
|
if( a == null){
|
||||||
|
a = {
|
||||||
|
id: lastDataListElement.dutyPeopleInfoId,
|
||||||
|
name: lastDataListElement.dutyPeopleInfo,
|
||||||
|
standardInfoList: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a.standardInfoList.push(lastDataListElement);
|
||||||
|
zqa.set(a.id, a);
|
||||||
|
}
|
||||||
|
let list = [];
|
||||||
|
for(let item of zqa) {
|
||||||
|
list.push(item[1])
|
||||||
|
}
|
||||||
|
let json = {
|
||||||
|
dockUserList: list,
|
||||||
|
passInfo: this.passInfo,
|
||||||
|
passFlag: '1',
|
||||||
|
commentText: this.commentInfo
|
||||||
|
}
|
||||||
|
const params = new FormData();
|
||||||
|
params.set('json', JSON.stringify(json))
|
||||||
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
|
params.set('taskIds', this.taskIds)
|
||||||
|
completeTask(params).then(res => {
|
||||||
|
if(res.success === true) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}).catch(e => {
|
||||||
|
this.isSubmit = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
@@ -359,6 +406,7 @@ export default {
|
|||||||
let json = {
|
let json = {
|
||||||
dockUserList: list,
|
dockUserList: list,
|
||||||
passInfo: this.passInfo,
|
passInfo: this.passInfo,
|
||||||
|
passFlag: '0',
|
||||||
commentText: this.commentInfo
|
commentText: this.commentInfo
|
||||||
}
|
}
|
||||||
let flag=false
|
let flag=false
|
||||||
|
|||||||
@@ -152,7 +152,6 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
show-back
|
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
|||||||
@@ -1212,6 +1212,18 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else if (row.taskInfo === '重新起草') {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'wfhxzgStep1',
|
||||||
|
query: {
|
||||||
|
taskIds: row.taskIds,
|
||||||
|
prcId: row.prcId,
|
||||||
|
prcNum: row.prcNum,
|
||||||
|
taskAssignee: row.taskAssignee,
|
||||||
|
prcName: row.prcName,
|
||||||
|
prcType: row.prcType
|
||||||
|
}
|
||||||
|
})
|
||||||
}else {
|
}else {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'wfhxzgStep5',
|
name: 'wfhxzgStep5',
|
||||||
|
|||||||
Reference in New Issue
Block a user