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:
@@ -558,7 +558,7 @@ html, body, #app, .el-container, .el-aside, .el-main {
|
|||||||
// 操作页面底部按钮
|
// 操作页面底部按钮
|
||||||
.oper-page-btn {
|
.oper-page-btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 15px;
|
top: 135px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,20 +171,21 @@ const back = () => {
|
|||||||
}
|
}
|
||||||
// 驳回
|
// 驳回
|
||||||
const handleReject = async () => {
|
const handleReject = async () => {
|
||||||
|
if (!_value.value) {
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请填写审核意见',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
showBackNode.value = true
|
showBackNode.value = true
|
||||||
backNode.value = {}
|
backNode.value = {}
|
||||||
}
|
}
|
||||||
//回退节点
|
//回退节点
|
||||||
const rollbackHandler = async () => {
|
const rollbackHandler = async () => {
|
||||||
// const values = form.value.getValues()
|
// const values = form.value.getValues()
|
||||||
if (!_value.value) {
|
|
||||||
ElNotification({
|
|
||||||
title: '提示',
|
|
||||||
message: '请填写审核意见',
|
|
||||||
type: 'warning'
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const params = {
|
const params = {
|
||||||
taskId: props.taskId,
|
taskId: props.taskId,
|
||||||
// ...values
|
// ...values
|
||||||
|
|||||||
@@ -2,9 +2,12 @@
|
|||||||
<div style="padding: 0 30px" id="printBox">
|
<div style="padding: 0 30px" id="printBox">
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<baseTitle title="项目基本信息"></baseTitle>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e" label-position="left" label-width="left" style="margin-left: 15px"></fvForm>
|
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e" label-position="left" label-width="left"
|
||||||
|
style="margin-left: 15px"></fvForm>
|
||||||
<div class="steps-box">
|
<div class="steps-box">
|
||||||
<el-steps v-if="stepsShow" :active="localActive" finish-status="success">
|
<el-steps v-if="stepsShow" :active="localActive" finish-status="success">
|
||||||
<el-step
|
<el-step
|
||||||
@@ -43,6 +46,7 @@ import {getBaseInfoApi} from './api';
|
|||||||
import {useCacheStore} from '@/stores/cache.js'
|
import {useCacheStore} from '@/stores/cache.js'
|
||||||
|
|
||||||
import {toThousands} from '@/utils/changePrice.js'
|
import {toThousands} from '@/utils/changePrice.js'
|
||||||
|
|
||||||
const print = ref({
|
const print = ref({
|
||||||
id: 'printBox',//这里的id就是上面我们的打印区域id,实现指哪打哪
|
id: 'printBox',//这里的id就是上面我们的打印区域id,实现指哪打哪
|
||||||
popTitle: '配置页眉标题', // 打印配置页上方的标题
|
popTitle: '配置页眉标题', // 打印配置页上方的标题
|
||||||
@@ -92,11 +96,16 @@ const props = defineProps({
|
|||||||
reportType: {
|
reportType: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
|
},
|
||||||
|
//是否显示审批驳回按钮
|
||||||
|
taskId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const cacheStore = useCacheStore()
|
const cacheStore = useCacheStore()
|
||||||
const emits = defineEmits(['stepChange', 'setDetail','openPrint'])
|
const emits = defineEmits(['stepChange', 'setDetail', 'openPrint'])
|
||||||
const localData = reactive({})
|
const localData = reactive({})
|
||||||
const localActive = ref(0) // 当前激活步骤
|
const localActive = ref(0) // 当前激活步骤
|
||||||
const stepsShow = ref(false)
|
const stepsShow = ref(false)
|
||||||
@@ -290,7 +299,7 @@ const schema = computed(() => {
|
|||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
baseFormData.value?.economicEstimate ?
|
baseFormData.value?.economicEstimate ?
|
||||||
<span>{ toThousands(baseFormData.value?.economicEstimate )}</span>
|
<span>{toThousands(baseFormData.value?.economicEstimate)}</span>
|
||||||
: <span>{'--'}</span>
|
: <span>{'--'}</span>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -352,7 +361,7 @@ const schema = computed(() => {
|
|||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
baseFormData.value?.specialFundAmount ?
|
baseFormData.value?.specialFundAmount ?
|
||||||
<span>{ toThousands(baseFormData.value?.specialFundAmount )}</span>
|
<span>{toThousands(baseFormData.value?.specialFundAmount)}</span>
|
||||||
: <span>{'--'}</span>
|
: <span>{'--'}</span>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -369,8 +378,8 @@ const schema = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const localStepSuccess = ref([])
|
const localStepSuccess = ref([])
|
||||||
const handlePrint=(print)=>{
|
const handlePrint = (print) => {
|
||||||
emits('openPrint',print)
|
emits('openPrint', print)
|
||||||
}
|
}
|
||||||
// 格式化详情步骤条
|
// 格式化详情步骤条
|
||||||
const formatProcedure = (data) => {
|
const formatProcedure = (data) => {
|
||||||
@@ -561,7 +570,7 @@ const getBaseInfo = async () => {
|
|||||||
try {
|
try {
|
||||||
const {code, data} = await getBaseInfoApi(route.query.projectId)
|
const {code, data} = await getBaseInfoApi(route.query.projectId)
|
||||||
// console.log('data.procedure', data.procedure, route.query.step)
|
// console.log('data.procedure', data.procedure, route.query.step)
|
||||||
if (route.query.step === '30'||route.query.step === '40') {
|
if (route.query.step === '30' || route.query.step === '40') {
|
||||||
if (data.procedure.indexOf('30') == -1) {
|
if (data.procedure.indexOf('30') == -1) {
|
||||||
data.procedure.push('30')
|
data.procedure.push('30')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<steps :active="route.query.id==='-1'?currentStep-1:currentStep" @setDetail="setDetail" @stepChange="stepChange"
|
<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">
|
<template #content v-if="detailShow">
|
||||||
<collection-detail :formData="detailData.formData"
|
<collection-detail :formData="detailData.formData"
|
||||||
:data="detailData"
|
:data="detailData"
|
||||||
|
|||||||
Reference in New Issue
Block a user