From d9aab92fa25860c6682debe50e10770dc7db42a0 Mon Sep 17 00:00:00 2001
From: cuikaidong <ckd2942379034@163.com>
Date: 星期四, 14 八月 2025 12:44:33 +0800
Subject: [PATCH] 组合刀模块增加
---
src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue | 102 ++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 92 insertions(+), 10 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..9de5595 100644
--- a/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue
+++ b/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue
@@ -67,17 +67,21 @@
<span slot="action" slot-scope="text, record">
- <a @click="handleEdit(record)">涓婁紶/淇敼淇℃伅</a>
+ <a v-if="record.flowStatus === '0'" @click="handleEdit(record)">涓婁紶/淇敼淇℃伅</a>
+
+ <a-divider v-if="record.flowStatus === '0'" type="vertical" />
+
+ <a @click="handleOpenPrintGuideCardModal(record)">鐢熸垚鏁版帶鍔犲伐绋嬪簭纭琛�</a>
<a-divider type="vertical" />
- <a @click="handleOpenPrintModal(record)">鐢熸垚鏁版帶鍔犲伐绋嬪簭纭琛�</a>
+ <a @click="handleOpenPrintKnifeListModal(record)">鐢熸垚鍒�鍏锋竻鍗�</a>
<a-divider type="vertical" />
- <a @click="handleDetail(record)">鍙戣捣娴佺▼</a>
+ <a v-if="record.flowStatus === '1'" @click="handleStartFlow(record)">鍙戣捣娴佺▼</a>
- <a-divider type="vertical" />
+ <a-divider v-if="record.flowStatus === '1'" type="vertical" />
<a @click="handleDetail(record)">璇︽儏</a>
@@ -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
@@ -138,7 +146,8 @@
{
title:'娴佹按鍙�',
align:"center",
- dataIndex: 'serialNumber'
+ dataIndex: 'serialNumber',
+ width:150,
},
{
title:'澶瑰叿',
@@ -165,7 +174,7 @@
dataIndex: 'action',
align:"center",
fixed:"right",
- width:147,
+ width:500,
scopedSlots: { customRender: 'action' }
}
],
@@ -175,6 +184,7 @@
deleteBatch: "/dnc/guideCardBatch/deleteBatch",
exportXlsUrl: "/dnc/guideCardBatch/exportXls",
importExcelUrl: "dnc/guideCardBatch/importExcel",
+ startGuideCardBatch: "/dnc/guideCardBatch/startGuideCardBatch"
},
dictOptions:{},
@@ -192,9 +202,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 +231,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 +276,62 @@
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)
+ this.$refs.knifeListPrintModal.handleCutter(record.docId)
+ },
+
+ handleStartFlow(record){
+ const that = this
+ that.$confirm({
+ this: '鎻愮ず',
+ content: `纭鍙戣捣纭娴佺▼鍚楋紵`,
+ okText: '纭',
+ cancelText: '鍙栨秷',
+ onOk: () => {
+ getAction(this.url.startGuideCardBatch,{id:record.id}).then(res => {
+ if (res.success) {
+ that.$notification.success({
+ message: '娑堟伅',
+ description: res.message
+ })
+ } else {
+ that.$notification.error({
+ message: '娑堟伅',
+ description: res.message
+ })
+ }
+ })
+ .catch(err => {
+ that.$notification.error({
+ message: '娑堟伅',
+ description: err.message
+ })
+ })
+ .finally(() => {
+ that.$destroyAll()
+ this.loadData(1)
+ })
+ },
+ onCancel: () => {
+ that.$destroyAll()
+ }
+ })
}
}
}
--
Gitblit v1.9.3