|
@@ -17,7 +17,12 @@
|
|
|
<div class="flow-header-box">
|
|
|
<div class="flow-no">编号:{{ currentTaskRow.instanceId }}</div>
|
|
|
<div class="action-area">
|
|
|
- <div class="action-item"></div>
|
|
|
+ <div class="action-item" @click="openTest">
|
|
|
+ {{ printerVisible }}
|
|
|
+ <el-tooltip effect="dark" content="打印" placement="bottom">
|
|
|
+ <el-icon :style="{ color: 'var(--el-color-primary)' }" :size="16"><Printer /> </el-icon>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 2、内容体 -->
|
|
@@ -214,8 +219,12 @@
|
|
|
|
|
|
<!-- 回退弹窗 -->
|
|
|
<rollback-dialog v-if="rollbackVisible" v-model="rollbackVisible" :task-id="taskId" @success-cb="closeDetailEv"></rollback-dialog>
|
|
|
+
|
|
|
<!-- 查看子流程表单 -->
|
|
|
<ViewProcessDialog v-if="processInfo.visible" v-model="processInfo.visible" :process-info="processInfo" />
|
|
|
+
|
|
|
+ <!-- 打印审批流 -->
|
|
|
+ <printer-dialog v-if="printerVisible" ref="PrinterDialog" v-model="printerVisible"></printer-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -227,7 +236,7 @@ import FlowStatusStamp from '@/components/Flow/FlowStatusStamp.vue'
|
|
|
import FlowStatusTag from '@/components/Flow/FlowStatusTag.vue'
|
|
|
import FlowNodeAvatar from '@/components/Flow/FlowNodeAvatar.vue'
|
|
|
import FlowTypeDot from '@/components/Flow/FlowTypeDot.vue'
|
|
|
-import { ChatLineSquare, Check, Close, Switch, DArrowLeft, Plus, Minus, More } from '@element-plus/icons-vue'
|
|
|
+import { ChatLineSquare, Check, Close, Switch, DArrowLeft, Plus, Minus, More, Printer } from '@element-plus/icons-vue'
|
|
|
import { processTaskApprovalInfo, processClaimTaskApi } from '@/api/flow/processTask'
|
|
|
import { formatTimestamp } from '@/utils/datetime'
|
|
|
import ReviewDialog from './reviewDialog'
|
|
@@ -237,6 +246,7 @@ import DeliverToReviewDialog from './deliverToReviewDialog'
|
|
|
import LoseSignDialog from './loseSignDialog'
|
|
|
import RollbackDialog from './rollbackDialog'
|
|
|
import ViewProcessDialog from './ViewProcessDialog.vue'
|
|
|
+import PrinterDialog from './printer.vue'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { erFormPreview } from '@ER/formEditor'
|
|
@@ -287,8 +297,10 @@ const consentOrRefuseVisible = ref(false)
|
|
|
const deliverToReviewVisible = ref(false)
|
|
|
const loseSignVisible = ref(false)
|
|
|
const rollbackVisible = ref(false)
|
|
|
+const printerVisible = ref(false)
|
|
|
const allowReject = ref(false)
|
|
|
const allowRevocation = ref(false)
|
|
|
+
|
|
|
// 各种操作弹窗显示隐藏 end
|
|
|
const activeData = ref([])
|
|
|
const currentType = ref(null)
|
|
@@ -565,6 +577,10 @@ const claimTaskEv = async () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const openTest = () => {
|
|
|
+ printerVisible.value = !printerVisible.value
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 监听同级子组件的instanceId的值变化 这里可能也有实例Id
|
|
|
* 1、监听instanceId的值变化,如果值有变化,则重新获取审批详情
|
|
@@ -599,7 +615,7 @@ watch(
|
|
|
// 通过、不通过样式
|
|
|
.flow-status-stamp {
|
|
|
position: absolute;
|
|
|
- right: 10px;
|
|
|
+ right: 60px;
|
|
|
top: 10px;
|
|
|
z-index: 99;
|
|
|
}
|
|
@@ -620,8 +636,8 @@ watch(
|
|
|
gap: 4px;
|
|
|
.action-item {
|
|
|
cursor: pointer;
|
|
|
- padding: 4px;
|
|
|
- border-radius: 6px;
|
|
|
+ //padding: 4px;
|
|
|
+ //border-radius: 6px;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|