mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
基本流通
This commit is contained in:
parent
63055cc559
commit
9e35ca512c
@ -426,7 +426,7 @@ const handleCreate = async () => {
|
|||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
resetForm()
|
resetForm()
|
||||||
await setDialogTile('create')
|
await setDialogTile('edit')
|
||||||
// 设置数据
|
// 设置数据
|
||||||
saveForm.value = await ModelApi.getModelApi(rowId)
|
saveForm.value = await ModelApi.getModelApi(rowId)
|
||||||
}
|
}
|
||||||
|
@ -45,8 +45,8 @@ const submitForm = async () => {
|
|||||||
await LeaveApi.createLeaveApi(data)
|
await LeaveApi.createLeaveApi(data)
|
||||||
message.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
// 关闭窗口
|
// 关闭窗口
|
||||||
await router.push({
|
router.push({
|
||||||
path: '/oa/leave/create'
|
path: '/bpm/oa/leave'
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
actionLoading.value = false
|
actionLoading.value = false
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<el-col v-if="processInstance?.processDefinition?.formType === 10" :span="16" :offset="6">
|
<el-col v-if="processInstance?.processDefinition?.formType === 10" :span="16" :offset="6">
|
||||||
<form-create
|
<form-create
|
||||||
:rule="detailForm.rule"
|
:rule="detailForm.rule"
|
||||||
v-model:api="fApi"
|
:api="fApi"
|
||||||
:option="detailForm.option"
|
:option="detailForm.option"
|
||||||
v-model="detailForm.value"
|
v-model="detailForm.value"
|
||||||
/>
|
/>
|
||||||
@ -108,7 +108,7 @@
|
|||||||
<el-card :body-style="{ padding: '10px' }">
|
<el-card :body-style="{ padding: '10px' }">
|
||||||
<label v-if="item.assigneeUser" style="font-weight: normal; margin-right: 30px">
|
<label v-if="item.assigneeUser" style="font-weight: normal; margin-right: 30px">
|
||||||
审批人:{{ item.assigneeUser.nickname }}
|
审批人:{{ item.assigneeUser.nickname }}
|
||||||
<el-tag type="info" size="mini">{{ item.assigneeUser.deptName }}</el-tag>
|
<el-tag type="info" size="small">{{ item.assigneeUser.deptName }}</el-tag>
|
||||||
</label>
|
</label>
|
||||||
<label style="font-weight: normal" v-if="item.createTime">创建时间:</label>
|
<label style="font-weight: normal" v-if="item.createTime">创建时间:</label>
|
||||||
<label style="color: #8a909c; font-weight: normal">
|
<label style="color: #8a909c; font-weight: normal">
|
||||||
@ -220,6 +220,9 @@ const auditRule = reactive({
|
|||||||
|
|
||||||
// 处理审批通过和不通过的操作
|
// 处理审批通过和不通过的操作
|
||||||
const handleAudit = async (task, pass) => {
|
const handleAudit = async (task, pass) => {
|
||||||
|
console.log(task, 'task')
|
||||||
|
console.log(pass, 'pass')
|
||||||
|
console.log(runningTasks.value, 'runningTasks.value')
|
||||||
// 1.1 获得对应表单
|
// 1.1 获得对应表单
|
||||||
const index = runningTasks.value.indexOf(task)
|
const index = runningTasks.value.indexOf(task)
|
||||||
const auditFormRef = proxy.$refs['form' + index][0]
|
const auditFormRef = proxy.$refs['form' + index][0]
|
||||||
@ -236,6 +239,9 @@ const handleAudit = async (task, pass) => {
|
|||||||
id: task.id,
|
id: task.id,
|
||||||
reason: auditForms.value[index].reason
|
reason: auditForms.value[index].reason
|
||||||
}
|
}
|
||||||
|
console.log(data, '是否通过')
|
||||||
|
console.log(pass, 'pass是否通过')
|
||||||
|
console.log(task, 'task')
|
||||||
if (pass) {
|
if (pass) {
|
||||||
await TaskApi.approveTask(data)
|
await TaskApi.approveTask(data)
|
||||||
message.success('审批通过成功')
|
message.success('审批通过成功')
|
||||||
|
@ -30,7 +30,7 @@ const handleAudit = (row) => {
|
|||||||
router.push({
|
router.push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
query: {
|
query: {
|
||||||
id: row.processInstanceId
|
id: row.processInstance.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ const handleAudit = (row) => {
|
|||||||
router.push({
|
router.push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
query: {
|
query: {
|
||||||
id: row.processInstanceId
|
id: row.processInstance.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user