Browse Source

供应商文档

java8
常熟吴彦祖 5 months ago
parent
commit
be2f0dd022
  1. 1
      src/api/srm/srmDocument.js
  2. 21
      src/views/modules/srmSupplier/com_srmSupplier_DocumentDefinition.vue
  3. 2
      src/views/modules/sys/role.vue

1
src/api/srm/srmDocument.js

@ -20,3 +20,4 @@ export const getDocumentListDefinition= data => createAPI(`/srmDocument/getDocum
export const searchDocumentTypeListOther= data => createAPI(`/srmDocument/searchDocumentTypeListOther`,'post',data)
export const saveSelectionDocumentTypeManual= data => createAPI(`/srmDocument/saveSelectionDocumentTypeManual`,'post',data)
export const deleteObjectDocumentType= data => createAPI(`/srmDocument/deleteObjectDocumentType`,'post',data)
export const refreshDocumentUploadFlag= data => createAPI(`/srmDocument/refreshDocumentUploadFlag`,'post',data)

21
src/views/modules/srmSupplier/com_srmSupplier_DocumentDefinition.vue

@ -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,

2
src/views/modules/sys/role.vue

@ -56,7 +56,7 @@
<!-- <a v-if="!authUpdate && adminUser" type="text" size="small" @click="addOrUpdateHandle(scope.row)">{{buttons.edit||'修改'}}</a>-->
<!-- <a v-if="!authDelete && adminUser" type="text" size="small" @click="deleteHandle(scope.row.roleId)">{{buttons.delete|| '删除'}}</a>-->
<a v-if="adminUser" type="text" size="small" @click="addOrUpdateHandle(scope.row)">{{buttons.edit||'修改'}}</a>
<a v-if="adminUser" type="text" size="small" @click="deleteHandle(scope.row.roleId)">{{buttons.delete|| '删除'}}</a>
<a v-if="adminUser && scope.row.roleName !== '系统管理员'" type="text" size="small" @click="deleteHandle(scope.row.roleId)">{{buttons.delete|| '删除'}}</a>
<!-- <a type="text" size="small" @click="showAuthCustomerReportModal(scope.row)">{{buttons.reportRole || '报表赋权'}}</a>-->
</template>
</el-table-column>

Loading…
Cancel
Save