fix : 修复项目实施-归档列表页附件项目实施/验收展示及上传附件功能,修复需求上报资金名称传参
This commit is contained in:
@@ -489,6 +489,9 @@ const handleSubmit = debounce(async (instance) => {
|
||||
if (formData.value.singleFile !== undefined) {
|
||||
formData.value.singleFile = getFileParam(formData.value.singleFile)
|
||||
}
|
||||
if (formData.value.isSpecialFund && !formData.value.specialFund) {
|
||||
formData.value.specialFund = getFundName(formData.value.specialFundId)
|
||||
}
|
||||
if (!attachment.value.isHaveOneFile) {
|
||||
attachment.value.validate()
|
||||
ElNotification({
|
||||
@@ -539,7 +542,7 @@ const handleResubmit = debounce((instance) => {
|
||||
})
|
||||
}
|
||||
formData.value.optionalChargeLeadership = optionalChargeLeadershipList.value
|
||||
if (formData.value.isSpecialFund && formData.value.specialFund === null) {
|
||||
if (formData.value.isSpecialFund && !formData.value.specialFund) {
|
||||
formData.value.specialFund = getFundName(formData.value.specialFundId)
|
||||
}
|
||||
if (!attachment.value.isHaveOneFile) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e" label-position="left" label-width="left" style="margin-left: 15px"></fvForm>
|
||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||||
<el-tab-pane v-for="item in paneList" :label="item.label" :name="item.name">
|
||||
<search-files-by-tag @search="search" @upload="upload" :type="item.name==='40'?'40':''"
|
||||
<search-files-by-tag @search="search" @upload="upload" :type="item.name==='30'?'30':''"
|
||||
:fileList="fileList" :uploadState="uploadState" v-model:loading="loading"/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -247,6 +247,10 @@ const paneList = ref([
|
||||
},
|
||||
{
|
||||
label: '项目实施',
|
||||
name: '30'
|
||||
},
|
||||
{
|
||||
label: '项目验收',
|
||||
name: '40'
|
||||
},
|
||||
{
|
||||
@@ -318,13 +322,13 @@ const changeFileList = (res) => {
|
||||
}
|
||||
|
||||
const upload = () => {
|
||||
if (activeName.value === '40') {
|
||||
if (activeName.value === '30') {
|
||||
router.push({
|
||||
name: 'Implementation/upload',
|
||||
query: {
|
||||
projectId: route.query.id,
|
||||
requirementId: requirementId.value,
|
||||
type: '40'
|
||||
type: '30'
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -371,7 +371,7 @@ const getName = () => {
|
||||
case '20':
|
||||
return '项目立项'
|
||||
case '40':
|
||||
return '项目实施'
|
||||
return '项目验收'
|
||||
case '50':
|
||||
return '项目归档'
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ const singleList = ref([])
|
||||
const name = ref(router.currentRoute.value.name)
|
||||
const loading = ref(false)
|
||||
const formData = ref({
|
||||
changeState:'1'
|
||||
changeState:'0'
|
||||
})
|
||||
const file = ref({})
|
||||
const deploymentId = ref()
|
||||
|
||||
@@ -449,7 +449,7 @@ const handleSubmit = async (instance) => {
|
||||
let params = {
|
||||
fileList: fileList.value,
|
||||
projectId: route.query.projectId,
|
||||
targetState: "40"
|
||||
targetState: "30"
|
||||
}
|
||||
let res = await uploadFileList(params)
|
||||
ElNotification({
|
||||
@@ -459,12 +459,13 @@ const handleSubmit = async (instance) => {
|
||||
})
|
||||
if (res.code === 1000) {
|
||||
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
||||
if (route.query.type === '40') {
|
||||
if (route.query.type === '30') {
|
||||
console.log('归档实施')
|
||||
await router.push({
|
||||
name: 'Filing/attachment',
|
||||
query: {
|
||||
id: route.query.projectId,
|
||||
name:route.query.type,
|
||||
requirementId: route.query.requirementId
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user