基本流通

This commit is contained in:
gexinzhineng/gxzn27 2023-02-01 14:16:32 +08:00
parent 63055cc559
commit 9e35ca512c
5 changed files with 13 additions and 7 deletions

View File

@ -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)
} }

View File

@ -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

View File

@ -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('审批通过成功')

View File

@ -30,7 +30,7 @@ const handleAudit = (row) => {
router.push({ router.push({
name: 'BpmProcessInstanceDetail', name: 'BpmProcessInstanceDetail',
query: { query: {
id: row.processInstanceId id: row.processInstance.id
} }
}) })
} }

View File

@ -30,7 +30,7 @@ const handleAudit = (row) => {
router.push({ router.push({
name: 'BpmProcessInstanceDetail', name: 'BpmProcessInstanceDetail',
query: { query: {
id: row.processInstanceId id: row.processInstance.id
} }
}) })
} }