Merge pull request 'master' (#859) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/859
This commit is contained in:
2024-10-23 15:15:36 +00:00
4 changed files with 28 additions and 18 deletions

View File

@@ -558,7 +558,7 @@ html, body, #app, .el-container, .el-aside, .el-main {
// 操作页面底部按钮
.oper-page-btn {
position: fixed;
bottom: 15px;
top: 135px;
right: 15px;
z-index: 5;
}

View File

@@ -171,12 +171,6 @@ const back = () => {
}
// 驳回
const handleReject = async () => {
showBackNode.value = true
backNode.value = {}
}
//回退节点
const rollbackHandler = async () => {
// const values = form.value.getValues()
if (!_value.value) {
ElNotification({
title: '提示',
@@ -185,6 +179,13 @@ const rollbackHandler = async () => {
})
return
}
showBackNode.value = true
backNode.value = {}
}
//回退节点
const rollbackHandler = async () => {
// const values = form.value.getValues()
const params = {
taskId: props.taskId,
// ...values

View File

@@ -2,9 +2,12 @@
<div style="padding: 0 30px" id="printBox">
<div style="display: flex;justify-content: space-between">
<baseTitle title="项目基本信息"></baseTitle>
<el-button v-print="print" color="#ded0b2" icon="Printer" style="margin-top: 15px" @click="handlePrint(print)"> 打印</el-button>
<div class="oper-page-btn" :style="{marginRight:taskId? '145px':'0'}">
<el-button v-print="print" color="#ded0b2" icon="Printer" @click="handlePrint(print)"> 打印</el-button>
</div>
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e" label-position="left" label-width="left" style="margin-left: 15px"></fvForm>
</div>
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e" label-position="left" label-width="left"
style="margin-left: 15px"></fvForm>
<div class="steps-box">
<el-steps v-if="stepsShow" :active="localActive" finish-status="success">
<el-step
@@ -43,6 +46,7 @@ import {getBaseInfoApi} from './api';
import {useCacheStore} from '@/stores/cache.js'
import {toThousands} from '@/utils/changePrice.js'
const print = ref({
id: 'printBox',//这里的id就是上面我们的打印区域id实现指哪打哪
popTitle: '配置页眉标题', // 打印配置页上方的标题
@@ -92,6 +96,11 @@ const props = defineProps({
reportType: {
type: String,
default: ''
},
//是否显示审批驳回按钮
taskId: {
type: String,
default: ''
}
})
const route = useRoute()

View File

@@ -1,6 +1,6 @@
<template>
<steps :active="route.query.id==='-1'?currentStep-1:currentStep" @setDetail="setDetail" @stepChange="stepChange"
:reportType="route.query.id==='-1'?'direct':''">
:reportType="route.query.id==='-1'?'direct':''" :taskId="detailData.taskId">
<template #content v-if="detailShow">
<collection-detail :formData="detailData.formData"
:data="detailData"