From d59c9d8cca3797af2803513b0db2af06c5b07936 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 28 Aug 2024 14:18:55 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E4=B8=BA=E4=B8=80=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?=
=?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=8F=8A=E6=B5=8B=E8=AF=95=E6=A0=A1=E9=AA=8C?=
=?UTF-8?q?,=E5=90=8C=E6=AD=A5=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DetailComponent/ProjectApply.vue | 29 +-
.../DetailComponent/ProjectAttachment.vue | 17 +-
.../DetailComponent/SummaryDetail.vue | 26 +-
src/components/steps/index.vue | 13 +-
src/views/project-demand/summary/add.vue | 116 +++----
.../implementation/phase.vue | 46 +--
.../mobledetail/ApprovalDetailMoblie.vue | 299 ++++++------------
.../mobledetail/OpinionMoblie.vue | 3 +-
.../mobledetail/StepsMoblie.vue | 142 ++++++---
.../mobledetail/SummaryDetailMoblie.vue | 34 +-
.../project-management/mobledetail/index.vue | 34 +-
.../phaseDetailMoblie/index.vue | 9 +-
12 files changed, 380 insertions(+), 388 deletions(-)
diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue
index ed46a65..66d94fa 100644
--- a/src/components/DetailComponent/ProjectApply.vue
+++ b/src/components/DetailComponent/ProjectApply.vue
@@ -491,17 +491,17 @@ const handleSubmit = async () => {
files.push(getFileParam(item))
})
}
- // if (!attachment.value.isHaveOneFile) {
- // attachment.value.validate()
- // ElNotification({
- // title: '提示',
- // message: '请上传附件',
- // type: 'error'
- // })
- // return;
- // } else {
- // attachment.value.clearValidate()
- // }
+ if (!attachment.value.isHaveOneFile) {
+ 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))
@@ -616,6 +616,7 @@ const init = async () => {
}
watchEffect(() => {
+ console.info("🚀 ~method:;props.formData.projectChargePerson -----", props.formData.projectChargePerson)
if (props.formData.projectChargePerson == null) {
projectChargePersonUserList.value = []
} else {
@@ -628,9 +629,9 @@ watchEffect(() => {
}
projectPersonUserList.value = props.formData.projectPersonList ? props.formData.projectPersonList : []
let flag = Object.keys(props.formData).length && (localFormData.value = props.formData)
- if (props.formData.projectChargePerson != null) {
- localFormData.value.projectChargePerson = props.formData.projectChargePerson.id
- }
+ // if (props.formData.projectChargePerson != null) {
+ // localFormData.value.projectChargePerson = props.formData.projectChargePerson.id
+ // }
if (localStorage.getItem('preProcess')) {
let param = JSON.parse(localStorage.getItem('preProcess'))
diff --git a/src/components/DetailComponent/ProjectAttachment.vue b/src/components/DetailComponent/ProjectAttachment.vue
index 5ae511e..91bb019 100644
--- a/src/components/DetailComponent/ProjectAttachment.vue
+++ b/src/components/DetailComponent/ProjectAttachment.vue
@@ -1,5 +1,5 @@
-
+
@@ -16,9 +16,10 @@
搜索
+ 上传附件
-
+
上传附件
(
clickToPreview(row)}>{row.originalFileName}
)
},
diff --git a/src/components/DetailComponent/SummaryDetail.vue b/src/components/DetailComponent/SummaryDetail.vue
index d351524..cae1bba 100644
--- a/src/components/DetailComponent/SummaryDetail.vue
+++ b/src/components/DetailComponent/SummaryDetail.vue
@@ -56,19 +56,19 @@
- >
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- 打印
+ 打印
baseForm = e" label-position="left" label-width="left" style="margin-left: 15px">
@@ -559,16 +559,7 @@ const getBaseInfo = async () => {
if (data.procedure.indexOf('40') == -1) {
data.procedure.push('40')
}
- }
- // else if (route.query.step === '10'||route.query.step === '20') {
- // if (data.procedure.indexOf('40') != -1||data.procedure.indexOf('50') != -1) {
- // data.procedure.push('30')
- // }
- // }
- else if (route.query.step === '50') {
- // if (data.procedure.indexOf('30') == -1) {
- // data.procedure.push('30')
- // }
+ } else if (route.query.step === '50') {
if (data.procedure.indexOf('50') == -1) {
data.procedure.push('50')
}
diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue
index ff333eb..3131abd 100644
--- a/src/views/project-demand/summary/add.vue
+++ b/src/views/project-demand/summary/add.vue
@@ -3,7 +3,8 @@
-
+
{{ formData.specialFund }}
-
+
- {{ item.name }}{{index != optionalChargeLeadershipList?.length - 1 ? ',' : ''}}
+ {{ item.name }}{{ index != optionalChargeLeadershipList?.length - 1 ? ',' : '' }}
-
-
+
-
+
-
+
{
})
return;
}
- let otherFiles = []
- otherFileList.value.forEach(item => {
- otherFiles.push(getFileParam(item))
- })
- formData.value.optionalChargeLeadership = optionalChargeLeadershipList.value
- if (formData.value.singleFile !== undefined) {
- formData.value.singleFile = getFileParam(formData.value.singleFile)
- }
- // if (!attachment.value.isHaveOneFile) {
- // attachment.value.validate()
- // ElNotification({
- // title: '提示',
- // message: '请上传附件',
- // type: 'error'
- // })
- // return;
- // } else {
- // attachment.value.clearValidate()
- // }
- let params = {
- ...formData.value,
- deploymentId: deploymentId.value,
- fileList: otherFiles,
- requirementId: route.query.id ? route.query.id : '-1'
- }
- console.log('params', params)
- let res = await requirementReported(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: 'Summary'
+ let otherFiles = []
+ otherFileList.value.forEach(item => {
+ otherFiles.push(getFileParam(item))
})
- }
+ formData.value.optionalChargeLeadership = optionalChargeLeadershipList.value
+ if (formData.value.singleFile !== undefined) {
+ formData.value.singleFile = getFileParam(formData.value.singleFile)
+ }
+ if (!attachment.value.isHaveOneFile) {
+ attachment.value.validate()
+ ElNotification({
+ title: '提示',
+ message: '请上传附件',
+ type: 'error'
+ })
+ return;
+ } else {
+ attachment.value.clearValidate()
+ }
+ let params = {
+ ...formData.value,
+ deploymentId: deploymentId.value,
+ fileList: otherFiles,
+ requirementId: route.query.id ? route.query.id : '-1'
+ }
+ console.log('params', params)
+ let res = await requirementReported(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: 'Summary'
+ })
+ }
})
})
const handleResubmit = debounce((instance) => {
@@ -534,17 +540,17 @@ const handleResubmit = debounce((instance) => {
if (formData.value.isSpecialFund && formData.value.specialFund === null) {
formData.value.specialFund = getFundName(formData.value.specialFundId)
}
- // if (!attachment.value.isHaveOneFile) {
- // attachment.value.validate()
- // ElNotification({
- // title: '提示',
- // message: '请上传附件',
- // type: 'error'
- // })
- // return;
- // } else {
- // attachment.value.clearValidate()
- // }
+ if (!attachment.value.isHaveOneFile) {
+ attachment.value.validate()
+ ElNotification({
+ title: '提示',
+ message: '请上传附件',
+ type: 'error'
+ })
+ return;
+ } else {
+ attachment.value.clearValidate()
+ }
let params = {
...formData.value,
deploymentId: deploymentId.value,
diff --git a/src/views/project-management/implementation/phase.vue b/src/views/project-management/implementation/phase.vue
index 255fd8f..e938fff 100644
--- a/src/views/project-management/implementation/phase.vue
+++ b/src/views/project-management/implementation/phase.vue
@@ -424,17 +424,17 @@ const handleSubmit = async () => {
userIds: userIds,
changeState:formData.value.changeState
}
- // if (!attachment.value.isHaveOneFile) {
- // attachment.value.validate()
- // ElNotification({
- // title: '提示',
- // message: '请上传附件',
- // type: 'error'
- // })
- // return;
- // } else {
- // attachment.value.clearValidate()
- // }
+ if (!attachment.value.isHaveOneFile) {
+ attachment.value.validate()
+ ElNotification({
+ title: '提示',
+ message: '请上传附件',
+ type: 'error'
+ })
+ return;
+ } else {
+ attachment.value.clearValidate()
+ }
console.log('params', params)
let res = await submitPhaseChange(params)
ElNotification({
@@ -449,7 +449,7 @@ const handleSubmit = async () => {
})
}
}
-const handleResubmit = (instance) => {
+const handleResubmit = () => {
let otherFiles = []
if (name.value === 'Phase/edit') {
attachment.value.allFileList?.forEach(item => {
@@ -462,17 +462,17 @@ const handleResubmit = (instance) => {
return item.id
})
}
- // if (!attachment.value.isHaveOneFile) {
- // attachment.value.validate()
- // ElNotification({
- // title: '提示',
- // message: '请上传附件',
- // type: 'error'
- // })
- // return;
- // } else {
- // attachment.value.clearValidate()
- // }
+ if (!attachment.value.isHaveOneFile) {
+ attachment.value.validate()
+ ElNotification({
+ title: '提示',
+ message: '请上传附件',
+ type: 'error'
+ })
+ return;
+ } else {
+ attachment.value.clearValidate()
+ }
let params = {
deploymentId: deploymentId.value,
requirementId: route.query.id,
diff --git a/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue b/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue
index fc2dcd8..87643b2 100644
--- a/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue
+++ b/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue
@@ -1,33 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
- 搜索
-
-
-
-
-
-
-
-
-
form = e" style="margin-left: 15px">
(parseInt(row.size / 1024) + 'KB')
- },
- {
- prop: 'oper',
- label: '操作',
- align: 'center',
- showOverflowTooltip: false,
- currentRender: ({row, index}) => {
- return (
-
- handleDownload(row)}>下载
-
- )
- }
- }
- ]
-})
const changeDiagram = ref(false)
-const showAttachmentTable = ref(true)
const props = defineProps({
formData: {
type: Object,
@@ -177,7 +101,6 @@ const props = defineProps({
}
})
const form = ref()
-const otherAttachmentList = ref([])
const editSingleTableConfig = reactive({
columns: [
{
@@ -334,24 +257,40 @@ const schema = computed(() => {
}
}
arr.push(preProcess)
- arr.push({
- label: '项目立项附件',
- prop: 'singleFile',
+ // arr.push({
+ // label: '项目立项附件',
+ // prop: 'singleFile',
+ // colProps: {
+ // span: 24
+ // },
+ // labelWidth: 'left',
+ // component: () => {
+ // let singleFileArray = [props.formData.singleFile]
+ // return props.formData.singleFile ?
+ //
+ // : --
+ // }
+ // })
+ } else if (props.type == 'execute') {
+ arr = [{
+ label: '部门分管领导',
+ prop: 'optionalChargeLeadership',
colProps: {
span: 24
},
labelWidth: 'left',
- component: () => {
- let singleFileArray = [props.formData.singleFile]
- return props.formData.singleFile ?
-
- : --
- }
- })
- } else if (props.type == 'execute') {
- arr = []
+ component: () => (
+
+ {
+ props.formData.optionalChargeLeadership?.length > 0 ? props.formData.optionalChargeLeadership.map(item => {
+ return {item.name}
+ }) : {'--'}
+ }
+
+ )
+ }]
if (props.preProcessShow == 'EDIT') {
preProcess = {
label: '前置流程',
@@ -370,77 +309,60 @@ const schema = computed(() => {
}
}
arr.push(preProcess)
- arr.push(
- {
- label: '部门分管领导',
- prop: 'optionalChargeLeadership',
- colProps: {
- span: 24
- },
- labelWidth: 'left',
- component: () => (
-
- {
- props.formData.optionalChargeLeadership?.length > 0 ? props.formData.optionalChargeLeadership.map(item => {
- return {item.name}
- }) : {'--'}
- }
-
- )
- },
- {
- label: '项目验收附件',
- prop: 'singleFile',
- colProps: {
- span: 24
- },
- labelWidth: 'left',
- component: () => {
- let singleFileArray = [props.formData.singleFile]
- return props.formData.singleFile ?
-
- : --
- }
- })
+ // arr.push(
+ // {
+ // label: '项目验收附件',
+ // prop: 'singleFile',
+ // colProps: {
+ // span: 24
+ // },
+ // labelWidth: 'left',
+ // component: () => {
+ // let singleFileArray = [props.formData.singleFile]
+ // return props.formData.singleFile ?
+ //
+ // : --
+ // }
+ // })
} else if (props.type == 'archivist') {
arr = [
- {
- label: '项目归档附件',
- prop: 'singleFile',
- colProps: {
- span: 24
- },
- labelWidth: 'left',
- component: () => {
- let singleFileArray = [props.formData.singleFile]
- return props.formData.singleFile ?
-
- : --
- }
- },
+ // {
+ // label: '项目归档附件',
+ // prop: 'singleFile',
+ // colProps: {
+ // span: 24
+ // },
+ // labelWidth: 'left',
+ // component: () => {
+ // let singleFileArray = [props.formData.singleFile]
+ // return props.formData.singleFile ?
+ //
+ // : --
+ // }
+ // },
]
} else if (props.type == 'phase') {
arr = [
- {
- label: '阶段变更附件',
- prop: 'singleFile',
- colProps: {
- span: 24
- },
- labelWidth: 'left',
- component: () => {
- let singleFileArray = [props.formData.singleFile]
- return props.formData.singleFile ?
-
- : --
- }
- },
+ // {
+ // label: '阶段变更附件',
+ // prop: 'singleFile',
+ // colProps: {
+ // span: 24
+ // },
+ // labelWidth: 'left',
+ // component: () => {
+ // let singleFileArray = [props.formData.singleFile]
+ // return props.formData.singleFile ?
+ //
+ // : --
+ // }
+ // },
]
}
return arr
@@ -467,49 +389,6 @@ const clickToPreview=(row)=>{
filePreviewShow.value = true
})
}
-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 handleSearchImplementationFileList = () => {
- 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
- nextTick(() => {
- showAttachmentTable.value = true
- })
- }else{
- ElNotification({
- title: '提示',
- message: res.msg,
- type: 'error'
- })
- }
- })
-}
const getTagName = (type) => {
switch (type) {
case 'approval':
@@ -537,15 +416,25 @@ const handleDownload = (row) => {
watchEffect(() => {
Object.keys(props.formData).length && (form.value?.setValues(props.formData))
})
-if (props.formData.mode == 'view' && props.type == 'execute') {
- handleSearchImplementationFileList()
- getTagsOption()
-}
watch(() => props.loading, (newVal) => {
props.loading = newVal
}, {deep: true})
-
diff --git a/src/views/project-management/mobledetail/OpinionMoblie.vue b/src/views/project-management/mobledetail/OpinionMoblie.vue
index 35ae8fd..3afbc83 100644
--- a/src/views/project-management/mobledetail/OpinionMoblie.vue
+++ b/src/views/project-management/mobledetail/OpinionMoblie.vue
@@ -197,8 +197,7 @@ const rollbackHandler = async () => {
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
- tagsViewStore.delVisitedViews(router.currentRoute.value.path)
- back()
+ location.reload()
}
}
const handleAgree = async () => {
diff --git a/src/views/project-management/mobledetail/StepsMoblie.vue b/src/views/project-management/mobledetail/StepsMoblie.vue
index 4b60b2b..8d7974c 100644
--- a/src/views/project-management/mobledetail/StepsMoblie.vue
+++ b/src/views/project-management/mobledetail/StepsMoblie.vue
@@ -1,31 +1,35 @@
-
- baseForm = e" label-position="left" label-width="left" style="margin-left: 15px">
-
-
-
+
+
+ 打印
+
+ baseForm = e" label-position="left" label-width="left" style="margin-left: 15px">
+
+
+
+
+
+
+
+
+
+
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/views/project-management/mobledetail/SummaryDetailMoblie.vue b/src/views/project-management/mobledetail/SummaryDetailMoblie.vue
index a4c9df9..3fca277 100644
--- a/src/views/project-management/mobledetail/SummaryDetailMoblie.vue
+++ b/src/views/project-management/mobledetail/SummaryDetailMoblie.vue
@@ -22,7 +22,7 @@
-
+
{{ localFormData.newPatent }}
@@ -51,27 +51,27 @@
-
+
{{ localFormData.contentDescription }}
- >
+ >
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -46,7 +52,8 @@
-
@@ -70,13 +77,16 @@ const applyTitle = ref('apply')
const loading = ref(false)
const processStore = useProcessStore()
const fileListShow = ref('READ')
+const preProcessShow = ref('READ')
+const detailShow = ref(false)
const mode = ref('')
const currentStep = ref()
const auditOpinion = ref('')
route.query.step == '10' && (currentStep.value = 1)
route.query.step == '20' && (currentStep.value = 2)
-route.query.step == '40' && (currentStep.value = 3)
-route.query.step == '50' && (currentStep.value = 4)
+route.query.step == '30' && (currentStep.value = 3)
+route.query.step == '40' && (currentStep.value = 4)
+route.query.step == '50' && (currentStep.value = 5)
const showActive = ref()
const detailData = ref({})
const commonProvessViewer = ref(true)
@@ -87,7 +97,9 @@ const getAllInfo = async (state) => {
state: "0"
}
try {
+ detailShow.value = false
fileListShow.value = 'READ'
+ preProcessShow.value = 'READ'
commonProvessViewer.value = false
const {data, code, msg} = await getMapProjectStateInfo(route.query.projectId, state)
if (code === 1000) {
@@ -102,9 +114,13 @@ const getAllInfo = async (state) => {
processStore.passList.value = data.passList;
nextTick(() => {
commonProvessViewer.value = true
+ detailShow.value = true
if (data.formPermMap && data.formPermMap["fileList"]) {
fileListShow.value = data.formPermMap["fileList"].perm
}
+ if (data.formPermMap && data.formPermMap["preProcess"]) {
+ preProcessShow.value = data.formPermMap["preProcess"].perm
+ }
})
changeModel(state, mode.value)
loading.close()
@@ -139,11 +155,21 @@ const changeModel = (active, mode) => {
}
const setDetail = (active) => {
showActive.value = active
+ if (active == '30') {
+ changeModel(30, 'view')
+ detailShow.value = true
+ return;
+ }
getAllInfo(active)
}
const stepChange = (data) => {
showActive.value = data.active
+ if (data.active == '30') {
+ changeModel(30, 'view')
+ detailShow.value = true
+ return;
+ }
getAllInfo(data.active)
}
diff --git a/src/views/project-management/phaseDetailMoblie/index.vue b/src/views/project-management/phaseDetailMoblie/index.vue
index 99df969..8ea2eda 100644
--- a/src/views/project-management/phaseDetailMoblie/index.vue
+++ b/src/views/project-management/phaseDetailMoblie/index.vue
@@ -3,7 +3,12 @@
baseForm = e" label-position="left" label-width="left">
-
抄送人{{copyName?copyName:'--'}}
+ 抄送人{{copyName?copyName:'--'}}
+
+ 变更状态
+
+
+
{
if (code === 1000) {
summaryData.value = data;
copyName.value= data.formData.userInfoList?.map(item=>item.name).join(',')
+ changeState.value= data.formData.changeState
loading.value = false
processStore.setDesign(data)
processStore.runningList.value = data.runningList;