+ @getOtherFile="getOtherFile" :showFileList="true" :formData="formData"
+ :preview="name === 'Phase/edit'"/>
@@ -16,7 +22,9 @@
diff --git a/vite.config.js b/vite.config.js
index e3c4d22..3f5511a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,8 +1,8 @@
-import {fileURLToPath, URL} from 'node:url'
-import {defineConfig} from 'vite'
+import { fileURLToPath, URL } from 'node:url'
+import { defineConfig } from 'vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
-import {ElementPlusResolver} from 'unplugin-vue-components/resolvers'
+import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
import vue from '@vitejs/plugin-vue'
@@ -17,7 +17,7 @@ export default defineConfig({
vueJsx(),
AutoImport({
//自动导入vue相关函数
- imports: ['vue', 'vue-router'],
+ imports: ['vue','vue-router'],
resolvers: [
ElementPlusResolver(),
//自动导入图标组件
@@ -69,8 +69,8 @@ export default defineConfig({
open: true,
proxy: {
// '/api/workflow': {
- // target: 'http://frp.feashow.cn:31800/',
- // // target: 'http://clay.frp.feashow.cn/',
+ // // target: 'http://frp.feashow.cn:31800/',
+ // target: 'http://clay.frp.feashow.cn/',
// // target: 'http://192.168.31.175:8000',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '')
@@ -80,19 +80,19 @@ export default defineConfig({
// target: 'http://clay.frp.feashow.cn/',
// // target: 'http://192.168.31.175:8000',
// changeOrigin: true,
- // rewrite: (path) => path.replace(/^\/summary/, '')
+ // rewrite: (path) => path.replace(/^\/api/, '')
// },
'/api': {
- target: 'http://mosr.feashow.cn',
- // target: 'http://clay.frp.feashow.cn/',
+ // target: 'http://mosr.feashow.cn/',
+ target: 'http://10.7.127.57:8000',
changeOrigin: true,
- // rewrite: (path) => path.replace(/^\/api/, '')
+ rewrite: (path) => path.replace(/^\/api/, '')
},
- // '/summary/notice-ws': {
- // target: 'ws://mosr.feashow.cn/summary/notice-ws',
- // ws: true,
- // changeOrigin: true,
- // }
+ '/api/notice-ws': {
+ target: 'ws://mosr.feashow.cn/api/notice-ws',
+ ws: true,
+ changeOrigin: true,
+ }
}
}
})
From adbd98f03513a45f30c27411849a2a01fc0cef6e Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 9 Jun 2024 19:30:45 +0800
Subject: [PATCH 18/26] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E7=AB=8B=E9=A1=B9=E5=88=87=E6=8D=A2bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/project-management/implementation/detail.vue | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/project-management/implementation/detail.vue b/src/views/project-management/implementation/detail.vue
index b3accf0..83552f9 100644
--- a/src/views/project-management/implementation/detail.vue
+++ b/src/views/project-management/implementation/detail.vue
@@ -1,4 +1,5 @@
+ {{showApply}}{{showActive}}
@@ -22,7 +23,7 @@
-
+
{
}
}
const changeModel = (active) => {
- if (route.query.state === '0' && active === '20') {
+ if (route.query.state === '0' && route.query.step === '20') {
showApply.value = true
- } else if (route.query.state === '3' && active === '20') {
+ } else if (route.query.state === '3' && route.query.step === '20') {
showApply.value = true
getAllInfo(active)
} else {
From b0eabd9c397c2b92b43cd95f4bb39e62b52dab14 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 9 Jun 2024 19:33:03 +0800
Subject: [PATCH 19/26] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E7=AB=8B=E9=A1=B9=E5=88=87=E6=8D=A2bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/project-management/implementation/detail.vue | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/views/project-management/implementation/detail.vue b/src/views/project-management/implementation/detail.vue
index 83552f9..3e58448 100644
--- a/src/views/project-management/implementation/detail.vue
+++ b/src/views/project-management/implementation/detail.vue
@@ -1,5 +1,4 @@
- {{showApply}}{{showActive}}
@@ -93,9 +92,9 @@ const getAllInfo = async (state) => {
}
}
const changeModel = (active) => {
- if (route.query.state === '0' && route.query.step === '20') {
+ if (route.query.state === '0' && active === '20') {
showApply.value = true
- } else if (route.query.state === '3' && route.query.step === '20') {
+ } else if (route.query.state === '3' && active === '20') {
showApply.value = true
getAllInfo(active)
} else {
From a88ae09628388caff706ced4b8ec913eb866c82b Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 9 Jun 2024 20:03:26 +0800
Subject: [PATCH 20/26] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E5=AE=9E=E6=96=BD=E9=98=B6=E6=AE=B5=E5=8F=98=E6=9B=B4?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../implementation/phase.vue | 25 +++++++++----------
.../implementation/phaseDetail.vue | 3 +++
2 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue
index 8e05176..346b5f0 100644
--- a/src/views/project-management/implementation/phase.vue
+++ b/src/views/project-management/implementation/phase.vue
@@ -143,19 +143,18 @@ const handleSubmit = async () => {
} else {
attachment.value.clearValidate()
}
- console.log('params-提交', params,userList.value)
- // let res = await submitPhaseChange(params)
- // ElNotification({
- // title: '提示',
- // message: res.msg,
- // type: res.code === 1000 ? 'success' : 'error'
- // })
- // if (res.code === 1000) {
- // tagsViewStore.delVisitedViews(router.currentRoute.value.path)
- // await router.push({
- // name: 'Implementation'
- // })
- // }
+ let res = await submitPhaseChange(params)
+ ElNotification({
+ title: '提示',
+ message: res.msg,
+ type: res.code === 1000 ? 'success' : 'error'
+ })
+ if (res.code === 1000) {
+ tagsViewStore.delVisitedViews(router.currentRoute.value.path)
+ await router.push({
+ name: 'Implementation'
+ })
+ }
}
const handleResubmit = (instance) => {
let singleFile = {}
diff --git a/src/views/project-management/implementation/phaseDetail.vue b/src/views/project-management/implementation/phaseDetail.vue
index 6aab684..c535dc5 100644
--- a/src/views/project-management/implementation/phaseDetail.vue
+++ b/src/views/project-management/implementation/phaseDetail.vue
@@ -1,5 +1,6 @@
+ 抄送人:{{copyName}}
@@ -16,6 +17,7 @@ const summaryProcessViewer = ref(true)
const processStore = useProcessStore()
const loading = ref(false)
const auditOpinion = ref('')
+const copyName = ref('')
const fileListShow = ref('READ')
const getInfo = async () => {
fileListShow.value = 'READ'
@@ -25,6 +27,7 @@ const getInfo = async () => {
const {code, data, msg} = await getPhaseDetail(projectId)
if (code === 1000) {
summaryData.value = data;
+ copyName.value= data.formData.userInfoList.map(item=>item.name).join('')
loading.value = false
processStore.setDesign(data)
processStore.runningList.value = data.runningList;
From 83ba497d73e09bf1be2981a0165e7f5249d77538 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 9 Jun 2024 22:02:37 +0800
Subject: [PATCH 21/26] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E5=AE=9E=E6=96=BD=E4=B8=8A=E4=BC=A0=E8=B4=B9=E7=94=A8?=
=?UTF-8?q?,=E6=9F=A5=E7=9C=8B=E5=88=86=E6=91=8A=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E7=BB=86=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/steps/index.vue | 19 +++----
.../implementation/attachment.vue | 50 ++++++++++++++++-
.../implementation/share.vue | 46 ++++++++++++++++
.../implementation/uploadFee.vue | 54 +++++++++++++++++--
4 files changed, 152 insertions(+), 17 deletions(-)
diff --git a/src/components/steps/index.vue b/src/components/steps/index.vue
index f02c4a6..51723b1 100644
--- a/src/components/steps/index.vue
+++ b/src/components/steps/index.vue
@@ -92,13 +92,19 @@ const baseForm = ref()
const schema = computed(() => {
return [
+ {
+ label: '征集名称',
+ prop: 'requirementName',
+ colProps: {
+ span: 12
+ }
+ },
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
- // component:
},
{
label: '征集类型',
@@ -106,7 +112,6 @@ const schema = computed(() => {
colProps: {
span: 12
}
- // component:
},
{
label: '截止时间',
@@ -114,16 +119,8 @@ const schema = computed(() => {
colProps: {
span: 12
}
- // component:
- },
- {
- label: '需求名称',
- prop: 'requirementName',
- colProps: {
- span: 12
- }
- // component:
},
+
]
})
diff --git a/src/views/project-management/implementation/attachment.vue b/src/views/project-management/implementation/attachment.vue
index 3d9f8d2..447fbf2 100644
--- a/src/views/project-management/implementation/attachment.vue
+++ b/src/views/project-management/implementation/attachment.vue
@@ -1,4 +1,6 @@
+
+ baseForm = e">
@@ -29,7 +31,9 @@
import {downloadFile} from "@/api/project-demand";
import {searchFileList} from "@/api/project-manage/attachment.js";
import {getTags} from "@/api/project-manage";
-import {ElNotification} from "element-plus";
+import {ElLoading, ElNotification} from "element-plus";
+import {computed, ref} from "vue";
+import {getBaseInfoApi} from "@/components/steps/api";
const route = useRoute()
const router = useRouter()
@@ -37,6 +41,40 @@ const uploadState = ref(true)
const attachment = reactive({
tag: ''
})
+const schema = computed(() => {
+ return [
+ {
+ label: '征集名称',
+ prop: 'requirementName',
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ label: '所属公司',
+ prop: 'affiliatedCompany',
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ label: '项目名称',
+ prop: 'projectName',
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ label: '征集类型',
+ prop: 'collectType',
+ colProps: {
+ span: 12
+ }
+ },
+
+ ]
+})
+const baseForm = ref()
const tagsOption = ref([])
const tableConfig = reactive({
columns: [
@@ -80,6 +118,16 @@ const tableConfig = reactive({
})
const showTable = ref(true)
const otherFileList = ref([])
+const getBaseInfo = async () => {
+ try {
+ const {code, data} = await getBaseInfoApi(route.query.id)
+ baseForm.value.setValues(data)
+ } catch {
+ }
+}
+
+getBaseInfo()
+
const getTagsOption = () => {
if (!route.query.id) return
getTags(route.query.id).then(res => {
diff --git a/src/views/project-management/implementation/share.vue b/src/views/project-management/implementation/share.vue
index 8cb8763..58f5b50 100644
--- a/src/views/project-management/implementation/share.vue
+++ b/src/views/project-management/implementation/share.vue
@@ -1,4 +1,6 @@
+
+ baseForm = e">
@@ -9,8 +11,44 @@
\ No newline at end of file
+
diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue
index 346b5f0..c48946e 100644
--- a/src/views/project-management/implementation/phase.vue
+++ b/src/views/project-management/implementation/phase.vue
@@ -1,9 +1,10 @@
-
- 抄送人员:
-
-
+
+
+
+
+
{
}
const getAttachment = (val) => {
console.log('上传文件getAttachment', val)
- file.value = compositeParam(val)
+ formData.value.singleFile = compositeParam(val)
}
const getOtherFile = (val) => {
console.log('上传文件getOtherFile', val)
@@ -85,11 +86,11 @@ const chooseUser = () => {
userPicker.value.showUserPicker()
}
const chooseUserInfo = () => {
- if (userList.value.length > 0){
+ if (userList.value.length > 0) {
return userList.value.map(item => {
return item.name
- }).join(',')
- }else {
+ }).join(',')
+ } else {
return "请选择抄送人员"
}
}
@@ -107,32 +108,27 @@ const selected = (select) => {
}
const handleSubmit = async () => {
let files = []
- let singleFile = {}
- let fileArray
- if (file.value.fileId !== undefined) {
- singleFile = {
- fileId: file.value.fileId
- }
- }
- fileArray = otherFileList.value
- fileArray.forEach(item => {
+ otherFileList.value?.forEach(item => {
files.push(getFileParam(item))
})
let userIds = []
- if (userList.value.length > 0){
- userIds = userList.value.map(item => {
+ if (userList.value.length > 0) {
+ userIds = userList.value?.map(item => {
return item.id
})
}
+ if (formData.value.singleFile !== undefined) {
+ formData.value.singleFile = getFileParam(formData.value.singleFile)
+ }
let params = {
deploymentId: deploymentId.value,
requirementId: route.query.id,
fileList: files,
- singleFile: singleFile,
+ singleFile: formData.value.singleFile,
projectId: route.query.projectId,
userIds: userIds
}
- if (JSON.stringify(singleFile) === "{}") {
+ if (!attachment.value.isSingleFile) {
attachment.value.validate()
ElNotification({
title: '提示',
@@ -157,41 +153,19 @@ const handleSubmit = async () => {
}
}
const handleResubmit = (instance) => {
- let singleFile = {}
let otherFiles = []
- let fileArray
- if (attachment.value.singleFile !== null && name.value === 'Phase/edit') {
- singleFile = {
- fileId: attachment.value.singleFile.fileId
- }
- fileArray = attachment.value.allFileList
- } else {
- if (file.value.fileId !== undefined) {
- singleFile = {
- fileId: file.value.fileId
- }
- }
- fileArray = otherFileList.value
+ if (name.value === 'Phase/edit') {
+ attachment.value.allFileList?.forEach(item => {
+ otherFiles.push(getFileParam(item))
+ })
}
- fileArray.forEach(item => {
- otherFiles.push(getFileParam(item))
- })
let userIds = []
- if (userList.value.length > 0){
- userIds = userList.value.map(item => {
+ if (userList.value.length > 0) {
+ userIds = userList.value?.map(item => {
return item.id
})
}
- //todo requirementId
- let params = {
- deploymentId: deploymentId.value,
- requirementId: route.query.id,
- fileList: otherFiles,
- singleFile: singleFile,
- projectId: route.query.projectId,
- userIds: userIds
- }
- if (JSON.stringify(singleFile) === "{}") {
+ if (attachment.value.singleFile == null) {
attachment.value.validate()
ElNotification({
title: '提示',
@@ -202,6 +176,14 @@ const handleResubmit = (instance) => {
} else {
attachment.value.clearValidate()
}
+ let params = {
+ deploymentId: deploymentId.value,
+ requirementId: route.query.id,
+ fileList: otherFiles,
+ singleFile: attachment.value.singleFile,
+ projectId: route.query.projectId,
+ userIds: userIds
+ }
console.log('重新提交params', params)
resubmitPhaseForm(params).then(res => {
ElNotification({
From 07c089ed290f264e48af3c980e28e5028d8d5944 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Mon, 10 Jun 2024 15:25:28 +0800
Subject: [PATCH 26/26] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE=E3=80=81=E9=A1=B9=E7=9B=AE=E9=AA=8C=E6=94=B6?=
=?UTF-8?q?=E3=80=81=E7=BB=93=E9=A1=B9=E6=93=8D=E4=BD=9C=E6=94=BE=E5=9C=A8?=
=?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DetailComponent/ProjectApply.vue | 202 ++++++++++--------
src/components/steps/index.vue | 20 +-
.../implementation/attachment.vue | 11 +-
.../implementation/detail.vue | 58 +++--
.../implementation/share.vue | 11 +-
.../implementation/uploadFee.vue | 11 +-
6 files changed, 178 insertions(+), 135 deletions(-)
diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue
index bc45b06..378b6be 100644
--- a/src/components/DetailComponent/ProjectApply.vue
+++ b/src/components/DetailComponent/ProjectApply.vue
@@ -1,6 +1,6 @@
- 提交
- 重新提交
+ 提交
+ 重新提交
返回
@@ -36,7 +36,20 @@
import OperationRender from '@/views/workflow/common/OperationRender.vue'
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
import {ElNotification} from "element-plus";
-import {getApplyProcess, projectApply, resubmitApply, getApplyDetail} from "@/api/project-manage";
+import {
+ getApplyProcess,
+ projectApply,
+ resubmitApply,
+ getApplyDetail,
+ getProjectCheckProcess,
+ projectCheck,
+ resubmitCheck,
+ getCheckDetail,
+ projectConclusion,
+ resubmitConclusion,
+ getConclusionDetail,
+ getProjectConclusionProcess
+} from "@/api/project-manage";
import {useProcessStore} from '@/stores/processStore.js';
import {useTagsView} from '@/stores/tagsview.js'
@@ -69,16 +82,14 @@ const showTable = ref(true)
const loading = ref(false)
const processDiagramViewer = ref(false)
const name = ref(router.currentRoute.value.name)
-const applyForm = ref()
+const formRef = ref()
const deploymentId = ref()
+const projectId = ref(route.query.projectId)
+const step = ref(route.query.step)
const handleBack = () => {
history.back()
}
const compositeParam = (item) => {
- // let tag = ''
- // if (name.value === 'Initiation/apply' || route.query.state==3) {
- // tag = props.title
- // }
return {
fileId: item.id,
size: item.size,
@@ -108,10 +119,10 @@ const getFileParam = (item) => {
tag: item.tag
}
}
-const handleSubmit = (instance) => {
- if (!instance) return
- instance.validate(async (valid) => {
- if (!valid) return
+const handleSubmit =async () => {
+ // if (!formRef.value) return
+ // formRef.value.validate(async (valid) => {
+ // if (!valid) return
let files = []
if (route.query.state === '3') {
attachment.value.allFileList.forEach(item => {
@@ -141,14 +152,28 @@ const handleSubmit = (instance) => {
requirementId: route.query.id,
fileList: files,
singleFile: formData.value.singleFile,
- projectId: route.query.projectId,
+ projectId: projectId.value,
}
console.log('params', params)
let res
- if (route.query.state === '3') {
- res = await resubmitApply(params)
- } else {
- res = await projectApply(params)
+ if (step.value === '20') {
+ if (route.query.state === '3') {
+ res = await resubmitApply(params)
+ } else {
+ res = await projectApply(params)
+ }
+ } else if (step.value === '40') {
+ if (route.query.state === '3') {
+ res = await resubmitCheck(params)
+ } else {
+ res = await projectCheck(params)
+ }
+ } else if (step.value === '50') {
+ if (route.query.state === '3') {
+ res = await resubmitConclusion(params)
+ } else {
+ res = await projectConclusion(params)
+ }
}
ElNotification({
title: '提示',
@@ -157,94 +182,81 @@ const handleSubmit = (instance) => {
})
if (res.code === 1000) {
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
- await router.push({
- name: 'Initiation'
- })
+ if (step.value === '20') {
+ await router.push({
+ name: 'Initiation'
+ })
+ }else if (step.value === '40') {
+ await router.push({
+ name: 'Implementation'
+ })
+ }else if (step.value === '50') {
+ await router.push({
+ name: 'Filing'
+ })
+ }
}
- })
+ // })
}
-// const handleResubmit = async () => {
-// let files = []
-// if (route.query.state == 3) {
-// attachment.value.allFileList.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 params = {
-// deploymentId: deploymentId.value,
-// requirementId: route.query.id,
-// fileList: files,
-// singleFile: attachment.value.singleFile,
-// projectId: route.query.projectId,
-// }
-// console.log('params', params, attachment.value.singleFile)
-// let res = await resubmitApply(params)
-// ElNotification({
-// title: '提示',
-// message: res.msg,
-// type: res.code === 1000 ? 'success' : 'error'
-// })
-// if (res.code === 1000) {
-// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
-// await router.push({
-// name: 'Initiation'
-// })
-// }
-// }
-const init = () => {
- if (!route.query.projectId) return;
+const init = async () => {
+ let id = projectId.value
+ if (!id) return;
processDiagramViewer.value = false
- getApplyProcess(route.query.projectId).then(res => {
- if (res.code === 1000) {
- let data = res.data
- deploymentId.value = data.deploymentId
- processStore.setDesign(data)
- processStore.runningList.value = data.runningList;
- processStore.endList.value = data.endList;
- processStore.noTakeList.value = data.noTakeList;
- processStore.refuseList.value = data.refuseList;
- processStore.passList.value = data.passList;
- nextTick(() => {
- processDiagramViewer.value = true
- })
- } else {
- ElNotification({
- title: '提示',
- message: res.msg,
- type: 'error'
- })
- }
- })
-}
-const getDetailInfo = async () => {
- if (!route.query.projectId) return;
- getApplyDetail(route.query.projectId).then(res => {
+ let res
+ if (step.value === '20') {
+ res = await getApplyProcess(id)
+ } else if (step.value === '40') {
+ res = await getProjectCheckProcess(id)
+ }else if (step.value === '50') {
+ res = await getProjectConclusionProcess(id)
+ }
+ if (res.code === 1000) {
+ let data = res.data
+ deploymentId.value = data.deploymentId
+ processStore.setDesign(data)
+ processStore.runningList.value = data.runningList;
+ processStore.endList.value = data.endList;
+ processStore.noTakeList.value = data.noTakeList;
+ processStore.refuseList.value = data.refuseList;
+ processStore.passList.value = data.passList;
+ nextTick(() => {
+ processDiagramViewer.value = true
+ })
+ } else {
ElNotification({
title: '提示',
message: res.msg,
- type: res.code === 1000 ? 'success' : 'error'
+ type: 'error'
})
- if (res.code === 1000) {
- formData.value = res.data.formData
- loading.value = false
- }
- })
+ }
+}
+const getDetailInfo = async () => {
+ let id = projectId.value
+ if (!id) return;
+ let res
+ loading.value = true
+ if (step.value === '20') {
+ res = await getApplyDetail(id)
+ } else if (step.value === '40') {
+ res = await getCheckDetail(id)
+ }else if (step.value === '50') {
+ res = await getConclusionDetail(id)
+ }
+
+ if (res.code === 1000) {
+ formData.value = res.data.formData
+ loading.value = false
+ }else {
+ ElNotification({
+ title: '提示',
+ message: res.msg,
+ type: 'error'
+ })
+ }
}
onMounted(async () => {
await init()
if (route.query.state == 3) {
- loading.value = true
await getDetailInfo()
}
})
diff --git a/src/components/steps/index.vue b/src/components/steps/index.vue
index 51723b1..6352a5f 100644
--- a/src/components/steps/index.vue
+++ b/src/components/steps/index.vue
@@ -100,15 +100,15 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
- prop: 'affiliatedCompany',
+ label: '征集类型',
+ prop: 'collectType',
colProps: {
span: 12
}
},
{
- label: '征集类型',
- prop: 'collectType',
+ label: '所属公司',
+ prop: 'affiliatedCompany',
colProps: {
span: 12
}
@@ -119,7 +119,7 @@ const schema = computed(() => {
colProps: {
span: 12
}
- },
+ }
]
})
@@ -275,6 +275,16 @@ const getBaseInfo = async () => {
const loading = ElLoading.service({fullscreen: true})
try {
const {code, data} = await getBaseInfoApi(route.query.projectId)
+ console.log('data.procedure',data.procedure,route.query.step)
+ if(route.query.step==='40'){
+ if(data.procedure.indexOf('40')==-1){
+ data.procedure.push('40')
+ }
+ }else if(route.query.step==='50'){
+ if(data.procedure.indexOf('50')==-1){
+ data.procedure.push('50')
+ }
+ }
localStepSuccess.value = formatProcedure(data.procedure)
baseForm.value.setValues(data)
emits('setDetail', formatActive(localActive.value))
diff --git a/src/views/project-management/implementation/attachment.vue b/src/views/project-management/implementation/attachment.vue
index 447fbf2..83e8530 100644
--- a/src/views/project-management/implementation/attachment.vue
+++ b/src/views/project-management/implementation/attachment.vue
@@ -51,8 +51,8 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
- prop: 'affiliatedCompany',
+ label: '征集类型',
+ prop: 'collectType',
colProps: {
span: 12
}
@@ -65,13 +65,12 @@ const schema = computed(() => {
}
},
{
- label: '征集类型',
- prop: 'collectType',
+ label: '所属公司',
+ prop: 'affiliatedCompany',
colProps: {
span: 12
}
- },
-
+ }
]
})
const baseForm = ref()
diff --git a/src/views/project-management/implementation/detail.vue b/src/views/project-management/implementation/detail.vue
index 3e58448..a1f232e 100644
--- a/src/views/project-management/implementation/detail.vue
+++ b/src/views/project-management/implementation/detail.vue
@@ -7,22 +7,23 @@
:data="commonForm"
:processViewer="commonProvessViewer"
v-show="showActive == '00'"
- :loading="loading"
v-model:value="auditOpinion"
/>
-
-
+
+
{
const loading = ElLoading.service({fullscreen: true})
try {
commonProvessViewer.value = false
- loading.value = true
const {data, code, msg} = await getMapProjectStateInfo(route.query.projectId, state)
- if (code === 1000) {
- loading.value = false
- } else {
+ if (code !== 1000) {
ElNotification({
title: '提示',
message: msg,
@@ -92,13 +92,37 @@ const getAllInfo = async (state) => {
}
}
const changeModel = (active) => {
- if (route.query.state === '0' && active === '20') {
- showApply.value = true
- } else if (route.query.state === '3' && active === '20') {
- showApply.value = true
- getAllInfo(active)
+ if (route.query.step === '20' && active === '20') {
+ if (route.query.state === '0') {
+ showApply.value = true
+ } else if (route.query.state === '3') {
+ showApply.value = true
+ getAllInfo(active)
+ } else {
+ showApply.value = false
+ getAllInfo(active)
+ }
+ } else if (route.query.step === '40' && active === '40') {
+ if (route.query.state === '0') {
+ showCheck.value = true
+ } else if (route.query.state === '3') {
+ showCheck.value = true
+ getAllInfo(active)
+ } else {
+ showCheck.value = false
+ getAllInfo(active)
+ }
+ } else if (route.query.step === '50' && active === '50') {
+ if (route.query.state === '0') {
+ showFiling.value = true
+ } else if (route.query.state === '3') {
+ showFiling.value = true
+ getAllInfo(active)
+ } else {
+ showFiling.value = false
+ getAllInfo(active)
+ }
} else {
- showApply.value = false
getAllInfo(active)
}
}
diff --git a/src/views/project-management/implementation/share.vue b/src/views/project-management/implementation/share.vue
index 200418f..edb71a6 100644
--- a/src/views/project-management/implementation/share.vue
+++ b/src/views/project-management/implementation/share.vue
@@ -26,8 +26,8 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
- prop: 'affiliatedCompany',
+ label: '征集类型',
+ prop: 'collectType',
colProps: {
span: 12
}
@@ -40,13 +40,12 @@ const schema = computed(() => {
}
},
{
- label: '征集类型',
- prop: 'collectType',
+ label: '所属公司',
+ prop: 'affiliatedCompany',
colProps: {
span: 12
}
- },
-
+ }
]
})
const baseForm = ref()
diff --git a/src/views/project-management/implementation/uploadFee.vue b/src/views/project-management/implementation/uploadFee.vue
index 2930b3d..2faed30 100644
--- a/src/views/project-management/implementation/uploadFee.vue
+++ b/src/views/project-management/implementation/uploadFee.vue
@@ -103,8 +103,8 @@ const schema = computed(() => {
}
},
{
- label: '所属公司',
- prop: 'affiliatedCompany',
+ label: '征集类型',
+ prop: 'collectType',
colProps: {
span: 12
}
@@ -117,13 +117,12 @@ const schema = computed(() => {
}
},
{
- label: '征集类型',
- prop: 'collectType',
+ label: '所属公司',
+ prop: 'affiliatedCompany',
colProps: {
span: 12
}
- },
-
+ }
]
})
const baseForm = ref()