Merge pull request 'fix : 修复项目详情排版,组织机构管理排版' (#558) from dd into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/558
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
|
<baseTitle :title="getTagName(type)+getTitleInfo(data.taskId)" ></baseTitle>
|
||||||
<fvForm :schema="schema" @getInstance="(e)=>form = e"></fvForm>
|
<fvForm :schema="schema" @getInstance="(e)=>form = e"></fvForm>
|
||||||
<el-form :model="formData" label-width="auto" style="margin-top: -15px">
|
<el-form :model="formData" label-width="auto" style="margin-top: -15px">
|
||||||
<file-component :title="getTagName(type)+'附件'" :tag="getTagName(type)"
|
<file-component :title="getTagName(type)+'附件'" :tag="getTagName(type)"
|
||||||
@@ -266,13 +267,20 @@ const _value = computed({
|
|||||||
emit("update:value", val);
|
emit("update:value", val);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
const getTitleInfo=(taskId)=>{
|
||||||
|
if(taskId){
|
||||||
|
return '审批'
|
||||||
|
}else {
|
||||||
|
|
||||||
|
return '信息'
|
||||||
|
}
|
||||||
|
}
|
||||||
const getTagName = (type) => {
|
const getTagName = (type) => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'approval':
|
case 'approval':
|
||||||
return '项目立项'
|
return '项目立项'
|
||||||
case 'execute':
|
case 'execute':
|
||||||
return '项目实施'
|
return '项目验收'
|
||||||
case 'archivist':
|
case 'archivist':
|
||||||
return '项目归档'
|
return '项目归档'
|
||||||
case 'phase':
|
case 'phase':
|
||||||
|
|||||||
@@ -1,6 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="apply-block">
|
<div class="apply-block">
|
||||||
<el-form :model="localFormData" ref="formRef" label-width="auto" v-if="step!=='50'">
|
<el-row>
|
||||||
|
<el-col :span="24" v-if="title==='check'">
|
||||||
|
<baseTitle :title="'附件信息'"></baseTitle>
|
||||||
|
</el-col>
|
||||||
|
<el-form :model="attachmentParam" inline style="margin-top: 15px">
|
||||||
|
<el-form-item label="标签" prop="tag">
|
||||||
|
<el-select v-model="attachmentParam.tag" placeholder="请选择标签" clearable filterable style="width: 300px">
|
||||||
|
<el-option
|
||||||
|
v-for="item in tagsOption"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button @click="handleSearch" color="#DED0B2">搜索</el-button>
|
||||||
|
<el-button v-if="uploadState" color="#DED0B2" @click="handleUpload">上传附件</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<fvTable style="width: 100%;max-height: 162px" v-if="showAttachmentTable" height="162" :tableConfig="tableConfig"
|
||||||
|
:data="otherAttachmentList" :isSettingCol="false" :pagination="false">
|
||||||
|
<template #empty>
|
||||||
|
<el-empty :image-size="55" description="暂无数据" style="padding: 0"/>
|
||||||
|
</template>
|
||||||
|
</fvTable>
|
||||||
|
</el-row>
|
||||||
|
<baseTitle :title="getTitleName(title)+'信息'"></baseTitle>
|
||||||
|
<el-form :model="localFormData" ref="formRef" label-width="auto" v-if="step!=='50'">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24" v-if="title==='apply'">
|
<el-col :span="24" v-if="title==='apply'">
|
||||||
<el-form-item label="项目负责人" :required="true" prop="projectChargePerson"
|
<el-form-item label="项目负责人" :required="true" prop="projectChargePerson"
|
||||||
@@ -30,6 +58,7 @@
|
|||||||
v-model:value="projectPersonUserList" @ok="projectPersonUserPickerOk"/>
|
v-model:value="projectPersonUserList" @ok="projectPersonUserPickerOk"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="前置流程" :required="preProcessRequired" prop="preProcess" label-width="125">
|
<el-form-item label="前置流程" :required="preProcessRequired" prop="preProcess" label-width="125">
|
||||||
<el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">
|
<el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">
|
||||||
@@ -115,6 +144,7 @@
|
|||||||
import OperationRender from '@/views/workflow/common/OperationRender.vue'
|
import OperationRender from '@/views/workflow/common/OperationRender.vue'
|
||||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
||||||
import {ElNotification} from "element-plus";
|
import {ElNotification} from "element-plus";
|
||||||
|
import {getTags} from "@/api/project-manage";
|
||||||
import {
|
import {
|
||||||
getApplyProcess,
|
getApplyProcess,
|
||||||
getPreProcess,
|
getPreProcess,
|
||||||
@@ -132,6 +162,7 @@ import {useTagsView} from '@/stores/tagsview.js'
|
|||||||
import Paging from "@/components/pagination/index.vue";
|
import Paging from "@/components/pagination/index.vue";
|
||||||
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
|
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
|
||||||
|
|
||||||
|
import {searchImplementationFileList} from "@/api/project-manage/attachment";
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const changeDiagram = ref(false)
|
const changeDiagram = ref(false)
|
||||||
@@ -142,6 +173,53 @@ const projectChargePersonUserPicker = ref()
|
|||||||
const projectPersonUserList = ref([])
|
const projectPersonUserList = ref([])
|
||||||
const projectPersonUserPicker = ref()
|
const projectPersonUserPicker = ref()
|
||||||
const singleList = ref([])
|
const singleList = ref([])
|
||||||
|
const tagsOption = ref([])
|
||||||
|
const uploadState = ref(false)
|
||||||
|
const showAttachmentTable = ref(true)
|
||||||
|
const otherAttachmentList = ref([])
|
||||||
|
const attachmentParam = reactive({
|
||||||
|
tag: ''
|
||||||
|
})
|
||||||
|
const tableConfig = reactive({
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
prop: 'index',
|
||||||
|
type: 'index',
|
||||||
|
label: '序号',
|
||||||
|
align: 'center',
|
||||||
|
width: '80',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'originalFileName',
|
||||||
|
label: '文件名',
|
||||||
|
align: 'center',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'tag',
|
||||||
|
label: '标签',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'size',
|
||||||
|
label: '文件大小',
|
||||||
|
align: 'center',
|
||||||
|
currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'oper',
|
||||||
|
label: '操作',
|
||||||
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<el-button type="primary" link onClick={() => handleDownload(row)}>下载</el-button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
const emit = defineEmits(["getAttachment", "getOtherFile"])
|
const emit = defineEmits(["getAttachment", "getOtherFile"])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: {
|
title: {
|
||||||
@@ -210,6 +288,64 @@ const name = ref(router.currentRoute.value.name)
|
|||||||
const deploymentId = ref()
|
const deploymentId = ref()
|
||||||
const selectRows = ref([])
|
const selectRows = ref([])
|
||||||
const projectId = ref(route.query.projectId)
|
const projectId = ref(route.query.projectId)
|
||||||
|
const getTagsOption = () => {
|
||||||
|
if (!route.query.projectId) return
|
||||||
|
getTags(route.query.projectId).then(res => {
|
||||||
|
if (res.code === 1000) {
|
||||||
|
tagsOption.value = res.data
|
||||||
|
}else{
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: res.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const handleSearch = () => {
|
||||||
|
let params = {
|
||||||
|
targetId: route.query.projectId,
|
||||||
|
targetState: "40"
|
||||||
|
}
|
||||||
|
if (attachmentParam.tag) {
|
||||||
|
tagsOption.value.forEach(item => {
|
||||||
|
if (item.value === attachmentParam.tag) {
|
||||||
|
attachmentParam.tag = item.label
|
||||||
|
}
|
||||||
|
})
|
||||||
|
params.tag = attachmentParam.tag
|
||||||
|
}
|
||||||
|
searchImplementationFileList(params).then(res => {
|
||||||
|
showAttachmentTable.value = false
|
||||||
|
if (res.code === 1000) {
|
||||||
|
otherAttachmentList.value = res.data.fileList
|
||||||
|
uploadState.value = res.data.upload
|
||||||
|
nextTick(() => {
|
||||||
|
showAttachmentTable.value = true
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: res.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
handleSearch()
|
||||||
|
getTagsOption()
|
||||||
|
const handleUpload = () => {
|
||||||
|
router.push({
|
||||||
|
name: 'Implementation/upload',
|
||||||
|
query: {
|
||||||
|
id: route.query.requirementId,
|
||||||
|
state: route.query.state,
|
||||||
|
projectId:route.query.projectId,
|
||||||
|
step: '40'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
const getProjectChargePersonUser = () => {
|
const getProjectChargePersonUser = () => {
|
||||||
console.log('list', projectChargePersonUserList.value)
|
console.log('list', projectChargePersonUserList.value)
|
||||||
if (projectChargePersonUserList.value.length !== 0) {
|
if (projectChargePersonUserList.value.length !== 0) {
|
||||||
@@ -372,109 +508,109 @@ const getFileParam = (item) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleSubmit = async () => {
|
const handleSubmit = async () => {
|
||||||
if (deploymentData.value.deploymentName === '重大项目立项' || deploymentData.value.deploymentName === '重大项目验收') {
|
if (deploymentData.value.deploymentName === '重大项目立项' || deploymentData.value.deploymentName === '重大项目验收') {
|
||||||
if (localFormData.value.preProcess === undefined) {
|
if (localFormData.value.preProcess === undefined) {
|
||||||
ElNotification({
|
|
||||||
title: '提示',
|
|
||||||
message: '请选择前置流程!',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(projectChargePersonUserList.value&&projectChargePersonUserList.value.length===0){
|
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: '请选择项目负责人!',
|
message: '请选择前置流程!',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(projectPersonUserList.value&&projectPersonUserList.value.length===0){
|
}
|
||||||
ElNotification({
|
if (projectChargePersonUserList.value && projectChargePersonUserList.value.length === 0) {
|
||||||
title: '提示',
|
|
||||||
message: '请选择项目成员!',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let files = []
|
|
||||||
if (props.mode === 'resubmit') {
|
|
||||||
attachment.value.allFileList.forEach(item => {
|
|
||||||
files.push(getFileParam(item))
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
otherFileList.value.forEach(item => {
|
|
||||||
files.push(getFileParam(item))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if (attachment.value.singleFile == null) {
|
|
||||||
attachment.value.validate()
|
|
||||||
ElNotification({
|
|
||||||
title: '提示',
|
|
||||||
message: '请上传附件',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
attachment.value.clearValidate()
|
|
||||||
}
|
|
||||||
let projectPersonIds = []
|
|
||||||
for (const item of projectPersonUserList.value) {
|
|
||||||
projectPersonIds.push(parseInt(item.id))
|
|
||||||
}
|
|
||||||
let params = {
|
|
||||||
deploymentId: deploymentId.value,
|
|
||||||
requirementId: route.query.id,
|
|
||||||
fileList: files,
|
|
||||||
singleFile: attachment.value.singleFile,
|
|
||||||
projectId: projectId.value,
|
|
||||||
preProcess: JSON.stringify(localFormData.value.preProcess)
|
|
||||||
}
|
|
||||||
console.log(params)
|
|
||||||
let res
|
|
||||||
if (props.step === '20') {
|
|
||||||
params.projectChargePerson = parseInt(projectChargePersonUserList.value[0].id)
|
|
||||||
params.projectPersonIds = projectPersonIds
|
|
||||||
if (props.mode === 'resubmit') {
|
|
||||||
res = await resubmitApply(params)
|
|
||||||
} else {
|
|
||||||
res = await projectApply(params)
|
|
||||||
}
|
|
||||||
} else if (props.step === '40') {
|
|
||||||
if (props.mode === 'resubmit') {
|
|
||||||
res = await resubmitCheck(params)
|
|
||||||
} else {
|
|
||||||
res = await projectCheck(params)
|
|
||||||
}
|
|
||||||
} else if (props.step === '50') {
|
|
||||||
if (props.mode === 'resubmit') {
|
|
||||||
res = await resubmitConclusion(params)
|
|
||||||
} else {
|
|
||||||
res = await projectConclusion(params)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: res.msg,
|
message: '请选择项目负责人!',
|
||||||
type: res.code === 1000 ? 'success' : 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
if (res.code === 1000) {
|
return;
|
||||||
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
}
|
||||||
if (props.step === '20') {
|
if (projectPersonUserList.value && projectPersonUserList.value.length === 0) {
|
||||||
await router.push({
|
ElNotification({
|
||||||
name: 'Initiation'
|
title: '提示',
|
||||||
})
|
message: '请选择项目成员!',
|
||||||
} else if (props.step === '40') {
|
type: 'error'
|
||||||
await router.push({
|
})
|
||||||
name: 'Implementation'
|
return;
|
||||||
})
|
}
|
||||||
} else if (props.step === '50') {
|
let files = []
|
||||||
await router.push({
|
if (props.mode === 'resubmit') {
|
||||||
name: 'Filing'
|
attachment.value.allFileList.forEach(item => {
|
||||||
})
|
files.push(getFileParam(item))
|
||||||
}
|
})
|
||||||
|
} else {
|
||||||
|
otherFileList.value.forEach(item => {
|
||||||
|
files.push(getFileParam(item))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (attachment.value.singleFile == null) {
|
||||||
|
attachment.value.validate()
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: '请上传附件',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
attachment.value.clearValidate()
|
||||||
|
}
|
||||||
|
let projectPersonIds = []
|
||||||
|
for (const item of projectPersonUserList.value) {
|
||||||
|
projectPersonIds.push(parseInt(item.id))
|
||||||
|
}
|
||||||
|
let params = {
|
||||||
|
deploymentId: deploymentId.value,
|
||||||
|
requirementId: route.query.id,
|
||||||
|
fileList: files,
|
||||||
|
singleFile: attachment.value.singleFile,
|
||||||
|
projectId: projectId.value,
|
||||||
|
preProcess: JSON.stringify(localFormData.value.preProcess)
|
||||||
|
}
|
||||||
|
console.log(params)
|
||||||
|
let res
|
||||||
|
if (props.step === '20') {
|
||||||
|
params.projectChargePerson = parseInt(projectChargePersonUserList.value[0].id)
|
||||||
|
params.projectPersonIds = projectPersonIds
|
||||||
|
if (props.mode === 'resubmit') {
|
||||||
|
res = await resubmitApply(params)
|
||||||
|
} else {
|
||||||
|
res = await projectApply(params)
|
||||||
}
|
}
|
||||||
|
} else if (props.step === '40') {
|
||||||
|
if (props.mode === 'resubmit') {
|
||||||
|
res = await resubmitCheck(params)
|
||||||
|
} else {
|
||||||
|
res = await projectCheck(params)
|
||||||
|
}
|
||||||
|
} else if (props.step === '50') {
|
||||||
|
if (props.mode === 'resubmit') {
|
||||||
|
res = await resubmitConclusion(params)
|
||||||
|
} else {
|
||||||
|
res = await projectConclusion(params)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: res.msg,
|
||||||
|
type: res.code === 1000 ? 'success' : 'error'
|
||||||
|
})
|
||||||
|
if (res.code === 1000) {
|
||||||
|
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
||||||
|
if (props.step === '20') {
|
||||||
|
await router.push({
|
||||||
|
name: 'Initiation'
|
||||||
|
})
|
||||||
|
} else if (props.step === '40') {
|
||||||
|
await router.push({
|
||||||
|
name: 'Implementation'
|
||||||
|
})
|
||||||
|
} else if (props.step === '50') {
|
||||||
|
await router.push({
|
||||||
|
name: 'Filing'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
let id = projectId.value
|
let id = projectId.value
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="detail-block" v-loading="loading">
|
<div class="detail-block" v-loading="loading">
|
||||||
|
<baseTitle title="需求上报信息"></baseTitle>
|
||||||
<el-form :model="localFormData" ref="summaryForm" :rules="rules">
|
<el-form :model="localFormData" ref="summaryForm" :rules="rules">
|
||||||
<el-row gutter="50">
|
<el-row gutter="50">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@@ -32,11 +33,11 @@
|
|||||||
<span>{{ filterDict(cacheStore.getDict('invest_type'), localFormData.investmentType) }}</span>
|
<span>{{ filterDict(cacheStore.getDict('invest_type'), localFormData.investmentType) }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<!-- <el-col :span="8">-->
|
||||||
<el-form-item label="项目影响" prop="projectImpact">
|
<!-- <el-form-item label="项目影响" prop="projectImpact">-->
|
||||||
<span>{{ filterDict(cacheStore.getDict('project_impact'), localFormData.projectImpact) }}</span>
|
<!-- <span>{{ filterDict(cacheStore.getDict('project_impact'), localFormData.projectImpact) }}</span>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="所属业务板块" prop="businessSegment">
|
<el-form-item label="所属业务板块" prop="businessSegment">
|
||||||
<span>{{ filterDict(cacheStore.getDict('business_segment'), localFormData.businessSegment) }}</span>
|
<span>{{ filterDict(cacheStore.getDict('business_segment'), localFormData.businessSegment) }}</span>
|
||||||
@@ -61,8 +62,8 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8" v-if="localFormData.isSpecialFund">
|
||||||
<el-form-item label="专项资金名称" prop="specialFund" v-if="localFormData.isSpecialFund">
|
<el-form-item label="专项资金名称" prop="specialFund">
|
||||||
<span>{{
|
<span>{{
|
||||||
localFormData.specialFundId === 0 ? localFormData.specialFund : changeName(fundOption, localFormData.specialFundId)
|
localFormData.specialFundId === 0 ? localFormData.specialFund : changeName(fundOption, localFormData.specialFundId)
|
||||||
}}</span>
|
}}</span>
|
||||||
@@ -358,10 +359,10 @@ watchEffect(() => {
|
|||||||
getFundOptions()
|
getFundOptions()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="scss">
|
||||||
.detail-block {
|
.detail-block {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 0!important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<baseTitle title="公司详情"></baseTitle>
|
||||||
|
<fv-Form :schema="companySchema" @getInstance="(e)=>companyForm = e"></fv-Form>
|
||||||
<baseTitle title="部门详情"></baseTitle>
|
<baseTitle title="部门详情"></baseTitle>
|
||||||
<fv-Form :schema="schema" @getInstance="(e)=>form = e"></fv-Form>
|
<fv-Form :schema="schema" @getInstance="(e)=>form = e"></fv-Form>
|
||||||
<UserPicker ref="usrPickershipIds" @ok="editshipIds"></UserPicker>
|
<UserPicker ref="usrPickershipIds" @ok="editshipIds"></UserPicker>
|
||||||
@@ -17,6 +19,7 @@ const props=defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
const form = ref()
|
const form = ref()
|
||||||
|
const companyForm = ref()
|
||||||
const usrPickershipIds = ref()
|
const usrPickershipIds = ref()
|
||||||
const usrPickerHeadIds = ref()
|
const usrPickerHeadIds = ref()
|
||||||
const usrPickerDeputyIds = ref()
|
const usrPickerDeputyIds = ref()
|
||||||
@@ -26,6 +29,20 @@ const departmentalDeputyNames = ref()
|
|||||||
const departmentChargeLeadershipIds = ref()
|
const departmentChargeLeadershipIds = ref()
|
||||||
const departmentHeadIds = ref()
|
const departmentHeadIds = ref()
|
||||||
const departmentalDeputyIds = ref()
|
const departmentalDeputyIds = ref()
|
||||||
|
const companySchema = reactive([
|
||||||
|
{
|
||||||
|
label: '公司名称:',
|
||||||
|
prop: 'companyName',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '公司编码:',
|
||||||
|
prop: 'companyCode'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '创建时间:',
|
||||||
|
prop: 'createTime'
|
||||||
|
}
|
||||||
|
])
|
||||||
const schema = reactive([
|
const schema = reactive([
|
||||||
{
|
{
|
||||||
label: '部门名字:',
|
label: '部门名字:',
|
||||||
@@ -67,6 +84,7 @@ const _value = computed({
|
|||||||
|
|
||||||
const getInfo = async () => {
|
const getInfo = async () => {
|
||||||
const { data } = await getInfoById(_value.value)
|
const { data } = await getInfoById(_value.value)
|
||||||
|
companyForm.value.setValues(data.company)
|
||||||
const params = {
|
const params = {
|
||||||
createTime: data.createTime,
|
createTime: data.createTime,
|
||||||
departmentMark: data.departmentMark,
|
departmentMark: data.departmentMark,
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 步骤内容 -->
|
<!-- 步骤内容 -->
|
||||||
<div>
|
<div>
|
||||||
<baseTitle title="各流程信息"></baseTitle>
|
|
||||||
<slot name="content" :localActive="localActive"></slot>
|
<slot name="content" :localActive="localActive"></slot>
|
||||||
<!-- <template v-for="(item, index) in stepList" :key="item.key">
|
<!-- <template v-for="(item, index) in stepList" :key="item.key">
|
||||||
<component v-if="localActive == index" v-bind="item.props || {}" :is="item.component" />
|
<component v-if="localActive == index" v-bind="item.props || {}" :is="item.component" />
|
||||||
@@ -84,7 +83,7 @@ const localSteps = ref([
|
|||||||
key: 'approve',
|
key: 'approve',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '项目实施',
|
title: '项目验收',
|
||||||
key: 'execute',
|
key: 'execute',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -141,9 +141,9 @@ const stepChange = (data) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.detail-block {
|
//.detail-block{
|
||||||
padding-top: 15px;
|
// padding-top: 15px;
|
||||||
}
|
//}
|
||||||
|
|
||||||
:deep(.el-tabs__nav-scroll) {
|
:deep(.el-tabs__nav-scroll) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<baseTitle title="基础信息"></baseTitle>
|
<baseTitle title="基础信息"></baseTitle>
|
||||||
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
||||||
<baseTitle title="项目实施-上传附件"></baseTitle>
|
<baseTitle title="项目实施-上传附件"></baseTitle>
|
||||||
<el-form :model="formData" ref="tagForm" label-width="auto" :rules="rules">
|
<el-form :model="formData" ref="tagForm" label-width="auto" >
|
||||||
<el-form-item label="标签名称" prop="tagName">
|
<el-form-item label="标签名称" prop="tagName">
|
||||||
<el-input v-model="formData.tagName" placeholder="请输入标签名称" style="width: 300px" v-if="showInput"/>
|
<el-input v-model="formData.tagName" placeholder="请输入标签名称" style="width: 300px" v-if="showInput" clearable/>
|
||||||
<el-select v-model="formData.tagName" placeholder="请选择标签名称" clearable filterable style="width: 300px" v-else>
|
<el-select v-model="formData.tagName" placeholder="请选择标签名称" clearable filterable style="width: 300px" v-else>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in tagsOption"
|
v-for="item in tagsOption"
|
||||||
@@ -16,16 +16,15 @@
|
|||||||
<el-button type="primary" link @click="changeInput">{{ showInput ? '选择' : '输入' }}</el-button>
|
<el-button type="primary" link @click="changeInput">{{ showInput ? '选择' : '输入' }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<baseTitle title="其他文件"></baseTitle>
|
<div style="display: flex; align-items: center">
|
||||||
<el-card style="width: 100%;margin: 15px 0">
|
<baseTitle title="其他文件" style="margin-right: 10px"></baseTitle>
|
||||||
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/>
|
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/></div>
|
||||||
<fvTable style="width: 100%;max-height: 162px;" v-if="showTable" height="162" :tableConfig="tableConfig"
|
<fvTable style="width: 100%;max-height: 162px;" v-if="showTable" height="162" :tableConfig="tableConfig"
|
||||||
:data="fileList" :isSettingCol="false" :pagination="false">
|
:data="fileList" :isSettingCol="false" :pagination="false">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<el-empty :image-size="55" description="暂无数据" style="padding: 0"/>
|
<el-empty :image-size="55" description="暂无数据" style="padding: 0"/>
|
||||||
</template>
|
</template>
|
||||||
</fvTable>
|
</fvTable>
|
||||||
</el-card>
|
|
||||||
<div class="oper-page-btn">
|
<div class="oper-page-btn">
|
||||||
<el-button color="#DED0B2" @click="handleSubmit(tagForm)">提交</el-button>
|
<el-button color="#DED0B2" @click="handleSubmit(tagForm)">提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -131,6 +130,15 @@ const name = ref(router.currentRoute.value.name)
|
|||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
tagName: [{required: true, message: '请输入标签名称', trigger: ['blur', 'change']}],
|
tagName: [{required: true, message: '请输入标签名称', trigger: ['blur', 'change']}],
|
||||||
})
|
})
|
||||||
|
onActivated(()=>{
|
||||||
|
console.log('onActivated')
|
||||||
|
formData.value.tagName = '';
|
||||||
|
showTable.value=false
|
||||||
|
nextTick(()=>{
|
||||||
|
showTable.value=true
|
||||||
|
})
|
||||||
|
fileList.value=[]
|
||||||
|
})
|
||||||
const handleDelete = (row) => {
|
const handleDelete = (row) => {
|
||||||
deleteFile(row.fileId).then(res => {
|
deleteFile(row.fileId).then(res => {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
@@ -155,7 +163,7 @@ const handleDownload = (row) => {
|
|||||||
}
|
}
|
||||||
const getBaseInfo = async () => {
|
const getBaseInfo = async () => {
|
||||||
try {
|
try {
|
||||||
const {code, data} = await getBaseInfoApi(route.query.id)
|
const {code, data} = await getBaseInfoApi(route.query.projectId)
|
||||||
baseForm.value.setValues(data)
|
baseForm.value.setValues(data)
|
||||||
} catch {
|
} catch {
|
||||||
}
|
}
|
||||||
@@ -167,8 +175,8 @@ const changeInput = () => {
|
|||||||
formData.value.tagName = '';
|
formData.value.tagName = '';
|
||||||
}
|
}
|
||||||
const getTagsOption = () => {
|
const getTagsOption = () => {
|
||||||
if (!route.query.id) return
|
if (!route.query.projectId) return
|
||||||
getTags(route.query.id).then(res => {
|
getTags(route.query.projectId).then(res => {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
@@ -219,7 +227,7 @@ const handleSubmit = async (instance) => {
|
|||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
fileList: fileList.value,
|
fileList: fileList.value,
|
||||||
projectId: route.query.id,
|
projectId: route.query.projectId,
|
||||||
targetState: "40"
|
targetState: "40"
|
||||||
}
|
}
|
||||||
let res = await uploadFileList(params)
|
let res = await uploadFileList(params)
|
||||||
@@ -234,14 +242,17 @@ const handleSubmit = async (instance) => {
|
|||||||
await router.push({
|
await router.push({
|
||||||
name: 'Filing/attachment',
|
name: 'Filing/attachment',
|
||||||
query: {
|
query: {
|
||||||
id: route.query.id
|
id: route.query.projectId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
await router.push({
|
await router.push({
|
||||||
name: 'Implementation/attachment',
|
name: 'Implementation/detail',
|
||||||
query: {
|
query: {
|
||||||
id: route.query.id
|
id: route.query.id,
|
||||||
|
state: route.query.state,
|
||||||
|
projectId: route.query.projectId,
|
||||||
|
step: '40'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user