转办按钮添加
This commit is contained in:
@@ -213,14 +213,17 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
|
show-transfer
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:transferLoading="turnLoading"
|
||||||
|
@transfer="handleTurnTo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
>
|
>
|
||||||
</ProcessFooter>
|
</ProcessFooter>
|
||||||
<Role-tree
|
<Role-tree
|
||||||
is-title="选择人员信息"
|
:is-title="drawerTitle"
|
||||||
check-box
|
check-box
|
||||||
:is-visible.sync="modalshowflag"
|
:is-visible.sync="modalshowflag"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
@@ -234,7 +237,7 @@ 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 { roleTreeData } from "@/api/unqualProcess.js"
|
import { roleTreeData } from "@/api/unqualProcess.js"
|
||||||
import {completeTask, inboundLiaisonDetail, saveinboundTask, saveTaskForPub} from "@/api/process.js"
|
import {completeTask, inboundLiaisonDetail, saveinboundTask, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "wfhxzgStep2",
|
name: "wfhxzgStep2",
|
||||||
@@ -248,6 +251,7 @@ export default {
|
|||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
nonSearch: {
|
nonSearch: {
|
||||||
standSerialNumber: '',
|
standSerialNumber: '',
|
||||||
standId: '', // 标准号/名称
|
standId: '', // 标准号/名称
|
||||||
@@ -257,6 +261,7 @@ export default {
|
|||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
dataList: [],
|
dataList: [],
|
||||||
endDataList: [],
|
endDataList: [],
|
||||||
lastDataList: [],
|
lastDataList: [],
|
||||||
@@ -370,6 +375,11 @@ export default {
|
|||||||
this.active = name
|
this.active = name
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
@@ -444,21 +454,39 @@ export default {
|
|||||||
this.modalshowflag = true
|
this.modalshowflag = true
|
||||||
},
|
},
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
this.roleRow = data[0]
|
if (this.drawerTitle === '转办处理人') {
|
||||||
// 选取负责人时的操作
|
this.turnLoading = true
|
||||||
if (this.multipleSelection.length === 0) {
|
changeAssigneeNew({
|
||||||
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
|
taskId: this.taskIds, // 任务id
|
||||||
this.rowDutyPeople.dutyPeopleInfoId = this.roleRow.id
|
assignee: data[0].id, // 被委托人
|
||||||
}else {
|
userId: this.userId, // 委托人
|
||||||
this.multipleSelection.forEach(item => {
|
pId: this.pId // 流程实例
|
||||||
item.dutyPeopleInfo = this.roleRow.name
|
}).then(res =>{
|
||||||
item.dutyPeopleInfoId = this.roleRow.id
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.$refs.multipleTable.clearSelection()
|
} else {
|
||||||
|
this.roleRow = data[0]
|
||||||
|
// 选取负责人时的操作
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
|
||||||
|
this.rowDutyPeople.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
}else {
|
||||||
|
this.multipleSelection.forEach(item => {
|
||||||
|
item.dutyPeopleInfo = this.roleRow.name
|
||||||
|
item.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
})
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.lastDataList = this.dataList
|
||||||
|
// 选取流程信息完成
|
||||||
|
// this.roleForm.dutyUserInfoName = this.roleRow.name
|
||||||
}
|
}
|
||||||
this.lastDataList = this.dataList
|
|
||||||
// 选取流程信息完成
|
|
||||||
// this.roleForm.dutyUserInfoName = this.roleRow.name
|
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
//查询按钮
|
//查询按钮
|
||||||
|
|||||||
@@ -220,8 +220,11 @@
|
|||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
show-back
|
show-back
|
||||||
|
show-transfer
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:transferLoading="turnLoading"
|
||||||
|
@transfer="handleTurnTo"
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -229,7 +232,7 @@
|
|||||||
</ProcessFooter>
|
</ProcessFooter>
|
||||||
<Role-tree
|
<Role-tree
|
||||||
check-box
|
check-box
|
||||||
is-title="选择人员信息"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="modalshowflag"
|
:is-visible.sync="modalshowflag"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
@checkedRole="drawerCheck"
|
@checkedRole="drawerCheck"
|
||||||
@@ -241,7 +244,7 @@
|
|||||||
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 {completeTask, inboundLiaisonDetail, saveTaskForPub} from "@/api/process.js";
|
import {changeAssigneeNew, completeTask, inboundLiaisonDetail, saveTaskForPub} from "@/api/process.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "wfhxzgStep3",
|
name: "wfhxzgStep3",
|
||||||
@@ -261,8 +264,10 @@ export default {
|
|||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
dataList: [],
|
dataList: [],
|
||||||
newDataList: {},
|
newDataList: {},
|
||||||
// 批量选择负责人table数组
|
// 批量选择负责人table数组
|
||||||
@@ -339,6 +344,7 @@ export default {
|
|||||||
this.newDataList = val
|
this.newDataList = val
|
||||||
this.nodeList = []
|
this.nodeList = []
|
||||||
this.modalshowflag = true
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '选择人员信息'
|
||||||
},
|
},
|
||||||
// 批量选择负责人按钮
|
// 批量选择负责人按钮
|
||||||
dutyPeopleList(id) {
|
dutyPeopleList(id) {
|
||||||
@@ -357,6 +363,11 @@ export default {
|
|||||||
handleTabs(name) {
|
handleTabs(name) {
|
||||||
this.active = name
|
this.active = name
|
||||||
},
|
},
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
// 退回按钮
|
// 退回按钮
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
@@ -478,18 +489,36 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
this.roleForm = data[0]
|
if (this.drawerTitle === '转办处理人') {
|
||||||
// 选择责任人时input框内值
|
this.turnLoading = true
|
||||||
if (this.selectTableMore.length ===0) {
|
changeAssigneeNew({
|
||||||
this.newDataList.dutyPeople = this.roleForm.name
|
taskId: this.taskIds, // 任务id
|
||||||
this.newDataList.dutyPeopleId = this.roleForm.id
|
assignee: data[0].id, // 被委托人
|
||||||
}else {
|
userId: this.userId, // 委托人
|
||||||
this.selectTableMore.forEach(item => {
|
pId: this.pId // 流程实例
|
||||||
item.dutyPeople = this.roleForm.name
|
}).then(res =>{
|
||||||
item.dutyPeopleId = this.roleForm.id
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.roleForm = data[0]
|
||||||
|
// 选择责任人时input框内值
|
||||||
|
if (this.selectTableMore.length ===0) {
|
||||||
|
this.newDataList.dutyPeople = this.roleForm.name
|
||||||
|
this.newDataList.dutyPeopleId = this.roleForm.id
|
||||||
|
}else {
|
||||||
|
this.selectTableMore.forEach(item => {
|
||||||
|
item.dutyPeople = this.roleForm.name
|
||||||
|
item.dutyPeopleId = this.roleForm.id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.lastDataList = this.dataList
|
||||||
}
|
}
|
||||||
this.lastDataList = this.dataList
|
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -217,12 +217,22 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
|
show-transfer
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:transferLoading="turnLoading"
|
||||||
|
@transfer="handleTurnTo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
>
|
>
|
||||||
</ProcessFooter>
|
</ProcessFooter>
|
||||||
|
<Role-tree
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
check-box
|
||||||
|
:is-visible.sync="modalshowflag"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
@checkedRole="drawerCheck"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -230,14 +240,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 {uploadFile} from '@/api/unqualProcess.js';
|
import {inboundLiaisonDetail, completeTask, saveTaskForPub, changeAssigneeNew} from "@/api/process"
|
||||||
import {inboundLiaisonDetail, completeTask, saveTaskForPub} from "@/api/process"
|
|
||||||
import listOfCountries from "@/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "wfhxzgStep4",
|
name: "wfhxzgStep4",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
drawerTitle: '',
|
||||||
|
nodeList: [],
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
detailData: [],
|
detailData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
@@ -251,9 +262,11 @@ export default {
|
|||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
dataList: [],
|
dataList: [],
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
// 当前页数
|
// 当前页数
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -409,6 +422,30 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
|
drawerCheck (data) {
|
||||||
|
this.turnLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.taskIds, // 任务id
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
userId: this.userId, // 委托人
|
||||||
|
pId: this.pId // 流程实例
|
||||||
|
}).then(res =>{
|
||||||
|
this.isSubmit = true
|
||||||
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.modalshowflag = false
|
||||||
|
},
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
let zqa = new Map();
|
let zqa = new Map();
|
||||||
|
|||||||
@@ -199,9 +199,12 @@
|
|||||||
show-submit
|
show-submit
|
||||||
show-back
|
show-back
|
||||||
approval
|
approval
|
||||||
|
show-transfer
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:isSubmitBack="backLoading"
|
:isSubmitBack="backLoading"
|
||||||
|
:transferLoading="turnLoading"
|
||||||
|
@transfer="handleTurnTo"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
>
|
>
|
||||||
@@ -215,6 +218,13 @@
|
|||||||
>
|
>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="modalshowflag"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
@checkedRole="drawerCheck"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -223,12 +233,15 @@ 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 {interfaceUrl} from "@/sysConfig";
|
import {interfaceUrl} from "@/sysConfig";
|
||||||
import {inboundLiaisonDetail} from "@/api/process";
|
import {inboundLiaisonDetail, changeAssigneeNew} from "@/api/process";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "wfhxzgStep5",
|
name: "wfhxzgStep5",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
drawerTitle: '',
|
||||||
|
nodeList: [],
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
fileMadel: false,
|
fileMadel: false,
|
||||||
detailData: [],
|
detailData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -245,11 +258,13 @@ export default {
|
|||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
backLoading: false,
|
backLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
dataList: [],
|
dataList: [],
|
||||||
json: {},
|
json: {},
|
||||||
taskInfo: this.$route.query.taskInfo,
|
taskInfo: this.$route.query.taskInfo,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
// 当前页数
|
// 当前页数
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -360,6 +375,29 @@ export default {
|
|||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
drawerCheck (data) {
|
||||||
|
this.turnLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.taskIds, // 任务id
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
userId: this.userId, // 委托人
|
||||||
|
pId: this.pId // 流程实例
|
||||||
|
}).then(res =>{
|
||||||
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.modalshowflag = false
|
||||||
|
},
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
this.backLoading = true
|
this.backLoading = true
|
||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
|
|||||||
@@ -743,6 +743,7 @@ export default {
|
|||||||
taskIds: row.taskIds,
|
taskIds: row.taskIds,
|
||||||
prcId: row.prcId,
|
prcId: row.prcId,
|
||||||
prcNum: row.prcNum,
|
prcNum: row.prcNum,
|
||||||
|
taskAssignee: row.taskAssignee,
|
||||||
prcName: row.prcName,
|
prcName: row.prcName,
|
||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
@@ -754,6 +755,7 @@ export default {
|
|||||||
taskIds: row.taskIds,
|
taskIds: row.taskIds,
|
||||||
prcId: row.prcId,
|
prcId: row.prcId,
|
||||||
prcNum: row.prcNum,
|
prcNum: row.prcNum,
|
||||||
|
taskAssignee: row.taskAssignee,
|
||||||
prcName: row.prcName,
|
prcName: row.prcName,
|
||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
@@ -765,6 +767,7 @@ export default {
|
|||||||
taskIds: row.taskIds,
|
taskIds: row.taskIds,
|
||||||
prcId: row.prcId,
|
prcId: row.prcId,
|
||||||
prcNum: row.prcNum,
|
prcNum: row.prcNum,
|
||||||
|
taskAssignee: row.taskAssignee,
|
||||||
prcName: row.prcName,
|
prcName: row.prcName,
|
||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
@@ -776,6 +779,7 @@ export default {
|
|||||||
taskIds: row.taskIds,
|
taskIds: row.taskIds,
|
||||||
prcId: row.prcId,
|
prcId: row.prcId,
|
||||||
prcNum: row.prcNum,
|
prcNum: row.prcNum,
|
||||||
|
taskAssignee: row.taskAssignee,
|
||||||
prcName: row.prcName,
|
prcName: row.prcName,
|
||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user