Merge pull request 'master' (#1017) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/1017
This commit is contained in:
2025-05-28 15:03:54 +00:00
4 changed files with 29 additions and 29 deletions

View File

@@ -22,7 +22,7 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="label" prop="" required> <el-form-item :label="label" prop="" :required="label!='项目归档附件'">
<file-upload @getFile="getOtherFile"/> <file-upload @getFile="getOtherFile"/>
<el-button color="#DED0B2" v-if="templateDownloadBtnShow" @click="handleImportTemplateDownload" <el-button color="#DED0B2" v-if="templateDownloadBtnShow" @click="handleImportTemplateDownload"
style="margin-left: 10px">模板下载 style="margin-left: 10px">模板下载

View File

@@ -302,7 +302,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualNewPatent ? props.formData.actualNewPatent : <span>{'--'}</span> props.formData.actualNewPatent ? props.formData.actualNewPatent :props.formData.actualNewPatent==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -317,7 +317,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualSoftwareCopyright ? props.formData.actualSoftwareCopyright : <span>{'--'}</span> props.formData.actualSoftwareCopyright ? props.formData.actualSoftwareCopyright : props.formData.actualSoftwareCopyright==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -332,7 +332,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualTechnicalNorms ? props.formData.actualTechnicalNorms : <span>{'--'}</span> props.formData.actualTechnicalNorms ? props.formData.actualTechnicalNorms : props.formData.actualTechnicalNorms==0?0:<span>{'--'}</span>
} }
</div> </div>
) )
@@ -347,7 +347,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualNewProduct ? props.formData.actualNewProduct : <span>{'--'}</span> props.formData.actualNewProduct ? props.formData.actualNewProduct : props.formData.actualNewProduct==0?0:<span>{'--'}</span>
} }
</div> </div>
) )
@@ -362,7 +362,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualNewProcess ? props.formData.actualNewProcess : <span>{'--'}</span> props.formData.actualNewProcess ? props.formData.actualNewProcess : props.formData.actualNewProcess==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -377,7 +377,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualNewDevice ? props.formData.actualNewDevice : <span>{'--'}</span> props.formData.actualNewDevice ? props.formData.actualNewDevice :props.formData.actualNewDevice==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -392,7 +392,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualNewMaterials ? props.formData.actualNewMaterials : <span>{'--'}</span> props.formData.actualNewMaterials ? props.formData.actualNewMaterials : props.formData.actualNewMaterials==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -407,7 +407,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualComputerSoftware ? props.formData.actualComputerSoftware : <span>{'--'}</span> props.formData.actualComputerSoftware ? props.formData.actualComputerSoftware : props.formData.actualComputerSoftware==0?0:<span>{'--'}</span>
} }
</div> </div>
) )
@@ -422,7 +422,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualThesis ? props.formData.actualThesis : <span>{'--'}</span> props.formData.actualThesis ? props.formData.actualThesis : props.formData.actualThesis==0?0:<span>{'--'}</span>
} }
</div> </div>
) )
@@ -437,7 +437,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualResearchReport ? props.formData.actualResearchReport : <span>{'--'}</span> props.formData.actualResearchReport ? props.formData.actualResearchReport : props.formData.actualResearchReport==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -452,7 +452,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div> <div>
{ {
props.formData.actualTrademark ? props.formData.actualTrademark : <span>{'--'}</span> props.formData.actualTrademark ? props.formData.actualTrademark :props.formData.actualTrademark==0?0: <span>{'--'}</span>
} }
</div> </div>
) )
@@ -467,7 +467,7 @@ const schema = computed(() => {
component: () => ( component: () => (
<div style="white-space: pre-wrap;"> <div style="white-space: pre-wrap;">
{ {
props.formData.actualOther ? props.formData.actualOther : <span>{'--'}</span> props.formData.actualOther ? props.formData.actualOther : props.formData.actualOther==0?0: <span>{'--'}</span>
} }
</div> </div>
) )

View File

@@ -140,7 +140,7 @@
@cancelOrClear="optionalChargeLeaderPickerCancel"/> @cancelOrClear="optionalChargeLeaderPickerCancel"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="preProcessShow === 'EDIT'||title==='apply'"> <el-col :span="24" v-if="preProcessShow === 'EDIT'||title==='apply'||title==='check'">
<el-form-item label="前置流程" :required="preProcessRequired" prop="preProcess" :label-width="title==='apply'?130:125"> <el-form-item label="前置流程" :required="preProcessRequired" prop="preProcess" :label-width="title==='apply'?130:125">
<select-pre-process :formData="localFormData" :basicData="basicData"/> <select-pre-process :formData="localFormData" :basicData="basicData"/>
<!-- <el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">--> <!-- <el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">-->
@@ -669,26 +669,26 @@ const handleSubmit = async (instance) => {
if (props.step == 50) { if (props.step == 50) {
let files = [] let files = []
if (props.mode === 'resubmit') { if (props.mode === 'resubmit') {
attachment.value.allFileList.forEach(item => { attachment.value.allFileList?.forEach(item => {
files.push(getFileParam(item)) files.push(getFileParam(item))
}) })
} else { } else {
otherFileList.value.forEach(item => { otherFileList.value?.forEach(item => {
files.push(getFileParam(item)) files.push(getFileParam(item))
}) })
} }
// console.info("🚀 ~method:handleSubmit -----", files,attachment.value.isHaveOneFile) // console.info("🚀 ~method:handleSubmit -----", files,attachment.value.isHaveOneFile)
if (!attachment.value.isHaveOneFile) { // if (!attachment.value.isHaveOneFile) {
attachment.value.validate() // attachment.value.validate()
ElNotification({ // ElNotification({
title: '提示', // title: '提示',
message: '请上传附件', // message: '请上传附件',
type: 'error' // type: 'error'
}) // })
return; // return;
} else { // } else {
attachment.value.clearValidate() // attachment.value.clearValidate()
} // }
let projectPersonIds = [] let projectPersonIds = []
for (const item of projectPersonUserList.value) { for (const item of projectPersonUserList.value) {
projectPersonIds.push(parseInt(item.id)) projectPersonIds.push(parseInt(item.id))
@@ -696,7 +696,7 @@ const handleSubmit = async (instance) => {
let params = { let params = {
deploymentId: deploymentId.value, deploymentId: deploymentId.value,
requirementId: route.query.id, requirementId: route.query.id,
fileList: files, fileList: files||[],
// singleFile: attachment.value.singleFile, // singleFile: attachment.value.singleFile,
projectId: route.query.projectId, projectId: route.query.projectId,
...localFormData.value, ...localFormData.value,

View File

@@ -458,7 +458,6 @@ const getOldFileList = (tag,flag) => {
fileList.value.push(item) fileList.value.push(item)
}) })
}else{ }else{
console.log("🚀 ~ file:'res.data.fileList ",res.data.fileList )
res.data.fileList?.forEach(item=>{ res.data.fileList?.forEach(item=>{
item.oldType=true item.oldType=true
if(getTagName(activeName.value)==item.tag){ if(getTagName(activeName.value)==item.tag){
@@ -517,6 +516,7 @@ const tabRemove = async (val) => {
} }
const handleTabClick = (item) => { const handleTabClick = (item) => {
activeName.value = item.props.name
const defaultArray=tagsOption.value.filter(item1=>item1.tagId==item.props.name) const defaultArray=tagsOption.value.filter(item1=>item1.tagId==item.props.name)
if(defaultArray&&defaultArray.length>0){ if(defaultArray&&defaultArray.length>0){
isDefault.value=defaultArray[0].isDefault==1 isDefault.value=defaultArray[0].isDefault==1