|
|
|
@ -149,7 +149,7 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="文档清单" :visible.sync="fileListModelFlag" width="600px" v-drag style="margin-top: 7px" > |
|
|
|
<el-dialog title="文档清单" :visible.sync="fileListModelFlag" width="600px" v-drag @closed="refreshDocumentList" style="margin-top: 7px" > |
|
|
|
<el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="8"> |
|
|
|
@ -274,7 +274,7 @@ import { |
|
|
|
getDocumentListDefinition, |
|
|
|
searchDocumentTypeListOther, |
|
|
|
saveSelectionDocumentTypeManual, |
|
|
|
deleteObjectDocumentType |
|
|
|
deleteObjectDocumentType, refreshDocumentUploadFlag |
|
|
|
} from '../../../api/srm/srmDocument' |
|
|
|
import {proofingDocumentNEW} from '../../../api/eam/eamProofing' |
|
|
|
|
|
|
|
@ -640,9 +640,24 @@ export default { |
|
|
|
documentType:row.documentType, |
|
|
|
responsibleDepartmentName:row.responsibleDepartmentName, |
|
|
|
} |
|
|
|
this.searchFiles(); |
|
|
|
//上传和删除功能是通用方法不修改uploadFlag 开关model的时候刷新 |
|
|
|
this.refreshDocumentList(); |
|
|
|
this.fileListModelFlag=true |
|
|
|
}, |
|
|
|
refreshDocumentList(){ |
|
|
|
let inData={ |
|
|
|
id:this.fileData.id, |
|
|
|
site:this.searchData.site, |
|
|
|
supplierNo:this.searchData.supplierNo, |
|
|
|
} |
|
|
|
refreshDocumentUploadFlag(inData).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.searchTable(); |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
searchFiles(){ |
|
|
|
let params={ |
|
|
|
orderRef1:this.searchData.site, |
|
|
|
|