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/ProductStructureMainBottom.vue | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue index 1c1145a..a109dca 100644 --- a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue +++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue @@ -31,12 +31,6 @@ :currentLevelDetails="currentLevelInfo" :size="containerSize"/> </a-tab-pane> - <!--绯荤粺鍙傛暟閰嶇疆涓嫢鍙傛暟涓�1鏃舵墠灞曠ず瀵瑰簲灞傜骇鐨勫垁鍏峰垪琛�--> - <a-tab-pane :key="2" tab="鍒�鍏峰垪琛�" - v-if="+currentLevelInfo.type===5&&isProcessHasCutterList||+currentLevelInfo.type===6&&isProcessStepHasCutterList"> - <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/> - </a-tab-pane> - <template v-if="currentLevelInfo.hasOwnProperty('docId')"> <a-tab-pane :key="1" tab="鏂囨。灞炴��"> <DocumentInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/> @@ -53,10 +47,24 @@ :size="containerSize"/> </a-tab-pane> - <a-tab-pane :key="4" tab="浣跨敤璁惧" v-if="+currentLevelInfo.attributionType===5"> + <a-tab-pane :key="4" tab="浣跨敤璁惧" v-if="currentLevelInfo.classificationId_dictText==='nc'"> <UseDocumentEquipmentTableList ref="useDocumentEquipmentTableRef" :currentDocumentInfo="currentLevelInfo" :size="containerSize"/> </a-tab-pane> + + <a-tab-pane :key="5" tab="鍒�鍏峰垪琛�" v-if="currentLevelInfo.classificationId_dictText==='nc'"> + <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/> + </a-tab-pane> + + <a-tab-pane :key="6" tab="瀹$璇︽儏"> + <DocumentInfoFlow ref="flowTableListRef" :currentLevelDetails="currentLevelInfo" :size="containerSize"/> + </a-tab-pane> + + <a-tab-pane :key="7" tab="鎵规鍒楄〃" v-if="currentLevelInfo.classificationId_dictText==='nc'"> + <GuideCardBatchList ref="guideCardBatchInfoRef" :guideCardBatchInfo="currentLevelInfo" :size="containerSize"/> + </a-tab-pane> + + </template> </a-tabs> @@ -72,6 +80,7 @@ import ProcessStepInfo from './ProcessStep/ProcessStepInfo' import CutterTableList from './Cutter/CutterTableList' import DocumentInfo from '../../../common/DocumentInfo' +import DocumentInfoFlow from '../../../common/DocumentInfoFlow.vue' import DocumentVersionTableList from '../../../common/DocumentVersionTableList' import UseDocumentEquipmentTableList from './Document/UseNcDocumentEquipmentTableList' import FilePreview from '../../../common/FilePreview' @@ -81,10 +90,12 @@ import ProcessSpecVersionInfo from '@views/dnc/base/modules/ProductStructure/ProcessSpecVersion/ProcessSpecVersionInfo.vue' import { getAction } from '@/api/manage' +import GuideCardBatchList from '@views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue' export default { name: 'ProductStructureMainBottom', components: { + GuideCardBatchList, ProcessSpecVersionInfo, UseDeviceCustomTypeEquipmentTableList, CutterTableList, @@ -94,6 +105,7 @@ UseDocumentEquipmentTableList, DocumentVersionTableList, DocumentInfo, + DocumentInfoFlow, ProcessInfo, PartInfo, ProductInfo, @@ -117,7 +129,14 @@ this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData) this.getCutterListDisplayPermission('dnc_cutter_process', 'isProcessHasCutterList') this.getCutterListDisplayPermission('dnc_cutter_step', 'isProcessStepHasCutterList') + this.$bus.$on('reloadCutterList', this.reloadCutterList) }, + + // 鍦╞eforeDestroy閽╁瓙涓Щ闄� + beforeDestroy() { + this.$bus.$off('reloadCutterList', this.reloadCutterList) + }, + methods: { /** * 鑾峰彇鍒�鍏峰垪琛ㄥ湪宸ュ簭鍜屽伐姝ュ眰绾х殑灞曠ず鏉冮檺 @@ -130,6 +149,12 @@ this[dataProperty] = res.result.settingValue === '1' } }) + }, + + reloadCutterList() { + if (this.$refs.cutterTableListRef) { + this.$refs.cutterTableListRef.searchQuery(1) + } }, /** @@ -170,6 +195,14 @@ case 4: this.$nextTick(() => this.$refs.useDocumentEquipmentTableRef.loadData()) break + case 5: + this.$nextTick(() => this.$refs.cutterTableListRef.setQueryParamAndLoadData(1)) + break + case 6: + this.$nextTick(() => this.$refs.flowTableListRef.getAllApproveData()) + break + case 7: + this.$nextTick(() => this.$refs.guideCardBatchInfoRef.getGuideCardBatchList()) default: } // 闃绘鎺ュ彛鍦ㄥ悓涓�鏂囨。涓�娆$偣鍑诲唴澶氭瑙﹀彂 -- Gitblit v1.9.3