From 0a04525d58093de7581950ae9a07129f55f2813f Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 06 六月 2025 15:54:44 +0800 Subject: [PATCH] 修改文件名称展示、批次 --- src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue | 53 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 47 insertions(+), 6 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue b/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue index bb6f69f..79d4442 100644 --- a/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue +++ b/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue @@ -71,7 +71,11 @@ <a-divider type="vertical" /> - <a @click="handleOpenPrintModal(record)">鐢熸垚鏁版帶鍔犲伐绋嬪簭纭琛�</a> + <a @click="handleOpenPrintGuideCardModal(record)">鐢熸垚鏁版帶鍔犲伐绋嬪簭纭琛�</a> + + <a-divider type="vertical" /> + + <a @click="handleOpenPrintKnifeListModal(record)">鐢熸垚鍒�鍏锋竻鍗�</a> <a-divider type="vertical" /> @@ -91,6 +95,8 @@ <GuideCardBatchModalDrawer ref="modalEditForm" @ok="modalFormOk"></GuideCardBatchModalDrawer> <guide-card-print-modal ref="guideCardPrintModal"/> + + <knife-list-print-modal ref="knifeListPrintModal"/> </a-card> </template> @@ -103,6 +109,7 @@ import GuideCardBatchModalDrawer from './GuideCardBatchModal.Style#Drawer.vue' import { getAction } from '@api/manage' import GuideCardPrintModal from './GuideCardPrintModal' + import KnifeListPrintModal from './KnifeListPrintModal' export default { name: 'GuideCardBatchList', @@ -116,6 +123,7 @@ } }, components: { + KnifeListPrintModal, GuideCardPrintModal, GuideCardBatchModal, GuideCardBatchModalDrawer @@ -165,7 +173,7 @@ dataIndex: 'action', align:"center", fixed:"right", - width:147, + width:500, scopedSlots: { customRender: 'action' } } ], @@ -192,9 +200,15 @@ methods: { initDictConfig(){ }, - getGuideCardBatchList(){ - console.log('currentDocumentInfo', this.guideCardBatchInfo) - let params + searchQuery() { + this.queryParam.docId = this.guideCardBatchInfo.docId; + this.loadData(1); + }, + /** + * 鑾峰彇鍔犲伐纭琛ㄥ垪琛� + */ + getGuideCardBatchList() { + let params= {}; params.docId=this.guideCardBatchInfo.docId; params.serialNumber=this.queryParam.serialNumber; params.fixtureInformation=this.guideCardBatchInfo.fixtureInformation; @@ -215,6 +229,19 @@ }).finally(() => { this.loading = false }) + }, + searchReset() { + // 淇濈暀蹇呰瀛楁鐨勬祬鎷疯礉鏂瑰紡 + this.queryParam = { + docId: this.guideCardBatchInfo.docId + }; + this.loadData(1); + }, + loadData(pageNum) { + if (this.ipagination) { + this.ipagination.current = pageNum; + } + this.getGuideCardBatchList(); }, getSuperFieldList(){ let fieldList=[]; @@ -247,9 +274,23 @@ this.$refs.modalEditForm.disableSubmit = false; }, - handleOpenPrintModal(record){ + /** + * 鎺у埗鏁版嵁鍔犲伐绋嬪簭纭琛ㄥ脊绐楀脊鍑� + * @param record 鎵规鍒楄〃琛岃褰� + */ + handleOpenPrintGuideCardModal(record){ this.$refs.guideCardPrintModal.visible = true this.$refs.guideCardPrintModal.detail = Object.assign({},record) + }, + + + /** + * 鎺у埗鏁版嵁鍔犲伐绋嬪簭纭琛ㄥ脊绐楀脊鍑� + * @param record 鎵规鍒楄〃琛岃褰� + */ + handleOpenPrintKnifeListModal(record){ + this.$refs.knifeListPrintModal.visible = true + this.$refs.knifeListPrintModal.detail = Object.assign({},record) } } } -- Gitblit v1.9.3