From 76f83ad33466ea704eec9a121d2e0a22c1828a84 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期三, 16 七月 2025 17:07:30 +0800 Subject: [PATCH] 提取刀具刷新页面 --- src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue index c3c709f..0ce254b 100644 --- a/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue +++ b/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue @@ -17,7 +17,7 @@ </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 './NcDocumentAssignModal' @@ -96,7 +96,8 @@ currentRightClickedDocumentInfo: {}, currentClickedDocumentInfo: {}, url: { - list: '/nc/doc/find/page' + list: '/nc/doc/find/page', + submitProccess:'/dncFlow/dispatchFile/submitProccess' } } }, @@ -213,6 +214,48 @@ this.$refs.documentAssignModalRef.visible = true }, + handleAppoint(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 + } + postAction(this.url.submitProccess,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() + } + }) + }, + handleDocumentExtract(record) { const that = this const { docId, attributionId, attributionType } = record @@ -227,8 +270,9 @@ if (res.success) { that.$notification.success({ message: '娑堟伅', - description: `鎻愬彇鎴愬姛` + description: `鎻愬彇鎴愬姛`, }) + that.$bus.$emit('reloadCutterList') } else { that.$notification.error({ message: '娑堟伅', -- Gitblit v1.9.3