| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import { getAction, postAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from '../../../../common/DocumentModal' |
| | | import NcDocumentAssignModal from '@views/dnc/base/modules/ProductStructure/Document/NcDocumentAssignModal.vue' |
| | |
| | | currentRightClickedDocumentInfo: {}, |
| | | currentClickedDocumentInfo: {}, |
| | | url: { |
| | | list: '/nc/doc/find/page' |
| | | list: '/nc/doc/find/page', |
| | | startDispatchFile:'/dncFlow/dispatchFile/startDispatchFile', |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.$refs.documentAssignModalRef.title = modalTitle |
| | | this.$refs.documentAssignModalRef.visible = true |
| | | }, |
| | | |
| | | handleDocumentDispatch(record) { |
| | | const that = this |
| | | console.log("sssss",record) |
| | | that.$confirm({ |
| | | title: '提示', |
| | | content: `确认发起审签流程吗?`, |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk: () => { |
| | | let dispatchFile = { |
| | | 'docId':record.docId, |
| | | 'attributionId':record.attributionId, |
| | | 'attributionType':record.attributionType, |
| | | 'fileId':record.publishFileId, |
| | | 'docClassCode':record.classificationId_dictText, |
| | | } |
| | | postAction(this.url.startDispatchFile,dispatchFile) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.$message.success('流程发起成功') |
| | | } else { |
| | | that.$notification.error({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .catch(err => { |
| | | that.$notification.error({ |
| | | message: '消息', |
| | | description: err.message |
| | | }) |
| | | }) |
| | | .finally(() => { |
| | | that.$destroyAll() |
| | | }) |
| | | }, |
| | | onCancel: () => { |
| | | that.$destroyAll() |
| | | } |
| | | }) |
| | | }, |
| | | handleDelete() { |
| | | // 此处函数为屏蔽mixins中的同名函数,通用函数写在父级中 |
| | | }, |
| | |
| | | OTHER: [ |
| | | { label: '编辑文档信息', code: 'document_edit', subMenu: [], icon: 'edit', isCommonMethod: false }, |
| | | { label: '指派到设备', code: 'document_assign', subMenu: [], icon: 'cluster', isCommonMethod: false }, |
| | | { label: '发起审签流程', code: 'document_dispatch', subMenu: [], icon: 'cluster', isCommonMethod: false }, |
| | | { label: '导入文档', code: 'document_other_import', subMenu: [], icon: 'import', isCommonMethod: true }, |
| | | { label: '下载', code: 'document_download', subMenu: [], icon: 'download', isCommonMethod: true }, |
| | | { label: '删除', code: 'document_delete', subMenu: [], icon: 'delete', isCommonMethod: true }, |