|
@@ -64,7 +64,7 @@
|
|
|
|
|
|
<!--审批流-->
|
|
<!--审批流-->
|
|
<el-timeline style="margin-left: 50px">
|
|
<el-timeline style="margin-left: 50px">
|
|
- <el-timeline-item class="z-0" v-for="active in activeData" :key="active.id" hollow :timestamp="active.local_timestamp">
|
|
|
|
|
|
+ <el-timeline-item v-for="active in activeData" :key="active.id" class="z-0" hollow :timestamp="active.local_timestamp">
|
|
<template #dot>
|
|
<template #dot>
|
|
<FlowTypeDot :status="active.id ? 0 : 1" :type="active.type" :name="active.createBy" />
|
|
<FlowTypeDot :status="active.id ? 0 : 1" :type="active.type" :name="active.createBy" />
|
|
</template>
|
|
</template>
|
|
@@ -134,11 +134,11 @@
|
|
-->
|
|
-->
|
|
<div v-if="currentTaskRow.instanceState === 0" class="flow-actions">
|
|
<div v-if="currentTaskRow.instanceState === 0" class="flow-actions">
|
|
<el-button
|
|
<el-button
|
|
- v-if="currentTaskType === 'myApplication' && allowRevocation && (currentTaskType !== 'myReceived' || currentTaskType !== 'approved')"
|
|
|
|
- :icon="Bell"
|
|
|
|
- @click="openUrgeModal"
|
|
|
|
- >催办</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ v-if="currentTaskType === 'myApplication' && allowRevocation && (currentTaskType !== 'myReceived' || currentTaskType !== 'approved')"
|
|
|
|
+ :icon="Bell"
|
|
|
|
+ @click="openUrgeModal"
|
|
|
|
+ >催办</el-button
|
|
|
|
+ >
|
|
<el-button :icon="ChatLineSquare" @click="openComment('reviewVisible', 'review')">评论</el-button>
|
|
<el-button :icon="ChatLineSquare" @click="openComment('reviewVisible', 'review')">评论</el-button>
|
|
<template v-if="currentTaskType !== 'myReceived' || currentTaskType !== 'approved'">
|
|
<template v-if="currentTaskType !== 'myReceived' || currentTaskType !== 'approved'">
|
|
<el-button v-if="currentTaskType === 'pendingApproval'" :icon="Check" type="primary" @click="handleFormValid">同意</el-button>
|
|
<el-button v-if="currentTaskType === 'pendingApproval'" :icon="Check" type="primary" @click="handleFormValid">同意</el-button>
|
|
@@ -206,6 +206,7 @@
|
|
v-if="consentOrRefuseVisible"
|
|
v-if="consentOrRefuseVisible"
|
|
v-model="consentOrRefuseVisible"
|
|
v-model="consentOrRefuseVisible"
|
|
:task-id="taskId"
|
|
:task-id="taskId"
|
|
|
|
+ :instance-id="currentTaskRow.instanceId"
|
|
:current-type="currentType"
|
|
:current-type="currentType"
|
|
:form-data="currentFormData"
|
|
:form-data="currentFormData"
|
|
:reject-strategy="currentDataDetail?.rejectStrategy"
|
|
:reject-strategy="currentDataDetail?.rejectStrategy"
|
|
@@ -230,7 +231,7 @@
|
|
<ViewProcessDialog v-if="processInfo.visible" v-model="processInfo.visible" :process-info="processInfo" />
|
|
<ViewProcessDialog v-if="processInfo.visible" v-model="processInfo.visible" :process-info="processInfo" />
|
|
|
|
|
|
<!-- 打印审批流 -->
|
|
<!-- 打印审批流 -->
|
|
- <printer-dialog v-if="printerVisible" v-model="printerVisible" :currentTaskRow="currentTaskRow" :opts="printOpts"></printer-dialog>
|
|
|
|
|
|
+ <printer-dialog v-if="printerVisible" v-model="printerVisible" :current-task-row="currentTaskRow" :opts="printOpts"></printer-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -392,8 +393,8 @@ const openComment = async (visibleType, item) => {
|
|
if (item === 'agree') {
|
|
if (item === 'agree') {
|
|
const { processType } = currentTaskRow.value
|
|
const { processType } = currentTaskRow.value
|
|
const flag = processType === 'business' && currentObj.value.formTemplate.type === 1 // 系统表单
|
|
const flag = processType === 'business' && currentObj.value.formTemplate.type === 1 // 系统表单
|
|
|
|
+ const formData = flag ? dyVueComponentRef.value.getComponentData() : EReditorRef.value.getData()
|
|
if (flag) {
|
|
if (flag) {
|
|
- const formData = dyVueComponentRef.value.getComponentData()
|
|
|
|
const saveData = {
|
|
const saveData = {
|
|
// 这里要调整真实的URL
|
|
// 这里要调整真实的URL
|
|
// formStructure: currentObj.value.formTemplate.pcUrl,
|
|
// formStructure: currentObj.value.formTemplate.pcUrl,
|
|
@@ -403,11 +404,15 @@ const openComment = async (visibleType, item) => {
|
|
currentFormData.value = { processForm: JSON.stringify(saveData) }
|
|
currentFormData.value = { processForm: JSON.stringify(saveData) }
|
|
} else {
|
|
} else {
|
|
// rejectStrategy === 3,回退到 回退节点
|
|
// rejectStrategy === 3,回退到 回退节点
|
|
- const formData = EReditorRef.value.getData()
|
|
|
|
let processForm = JSON.parse(cur_processForm_str)
|
|
let processForm = JSON.parse(cur_processForm_str)
|
|
processForm = { ...processForm, formData }
|
|
processForm = { ...processForm, formData }
|
|
currentFormData.value = { processForm: JSON.stringify(processForm) }
|
|
currentFormData.value = { processForm: JSON.stringify(processForm) }
|
|
}
|
|
}
|
|
|
|
+ const t = {
|
|
|
|
+ instanceId: currentTaskRow.value.instanceId,
|
|
|
|
+ args: formData
|
|
|
|
+ }
|
|
|
|
+ console.log(t, 't-')
|
|
}
|
|
}
|
|
currentType.value = item
|
|
currentType.value = item
|
|
consentOrRefuseVisible.value = !consentOrRefuseVisible.value
|
|
consentOrRefuseVisible.value = !consentOrRefuseVisible.value
|
|
@@ -538,8 +543,8 @@ const getTaskDetail = () => {
|
|
list: newFieldsList
|
|
list: newFieldsList
|
|
}
|
|
}
|
|
cur_formData = formData
|
|
cur_formData = formData
|
|
- console.log(cur_formStructure, '=/////====newFormStructure');
|
|
|
|
- console.log(formData, '=/////====newFormStructure formData');
|
|
|
|
|
|
+ console.log(cur_formStructure, '=/////====newFormStructure')
|
|
|
|
+ console.log(formData, '=/////====newFormStructure formData')
|
|
|
|
|
|
EReditorRef.value.setData(cur_formStructure, formData)
|
|
EReditorRef.value.setData(cur_formStructure, formData)
|
|
validateForm.value.rule = newFields
|
|
validateForm.value.rule = newFields
|
|
@@ -605,21 +610,19 @@ const claimTaskEv = async () => {
|
|
|
|
|
|
const openUrgeModal = () => {
|
|
const openUrgeModal = () => {
|
|
const item = currentTaskRow.value
|
|
const item = currentTaskRow.value
|
|
- ElMessageBox.confirm(
|
|
|
|
- `是否对流程${item.processName} 发起催办?`,
|
|
|
|
- '提示',
|
|
|
|
- {
|
|
|
|
- confirmButtonText: '确认',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning',
|
|
|
|
- buttonSize: 'default'
|
|
|
|
- }
|
|
|
|
- ).then(async () => {
|
|
|
|
- await progressUrgeApi(currentTaskRow.value.instanceId)
|
|
|
|
- }).catch(() => {
|
|
|
|
- // Handle the cancel action if needed
|
|
|
|
- console.log('取消')
|
|
|
|
- })
|
|
|
|
|
|
+ ElMessageBox.confirm(`是否对流程${item.processName} 发起催办?`, '提示', {
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ buttonSize: 'default'
|
|
|
|
+ })
|
|
|
|
+ .then(async () => {
|
|
|
|
+ await progressUrgeApi(currentTaskRow.value.instanceId)
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ // Handle the cancel action if needed
|
|
|
|
+ console.log('取消')
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -788,7 +791,7 @@ watch(
|
|
}
|
|
}
|
|
// 打印时 样式
|
|
// 打印时 样式
|
|
.form-wrap--print {
|
|
.form-wrap--print {
|
|
-//.form-wrap {
|
|
|
|
|
|
+ //.form-wrap {
|
|
// 非编辑情况下样式 调整
|
|
// 非编辑情况下样式 调整
|
|
:deep(.Everright-formEditor-InlineLayout) {
|
|
:deep(.Everright-formEditor-InlineLayout) {
|
|
.el-form-item {
|
|
.el-form-item {
|