From dddda050b7c2993b9ee3ea1fdbcecd846ad92978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=83=9C=E6=A5=A0?= <2792649152@qq.com> Date: Wed, 15 Nov 2023 18:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/defaultButtons.ts | 14 +- .../labelManage/package/index.vue | 48 ++++-- .../labelManage/package/package.data.ts | 142 ++++++++++++++++-- .../supplierdeliverRequestMain/index.vue | 24 ++- 4 files changed, 196 insertions(+), 32 deletions(-) diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 1492b05c6..44591e728 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -617,7 +617,7 @@ export function mainListJobExeBtn(option:any) { // 主列表-打印 export function mainListPointBtn(option:any) { return __defaultBtnOption(option,{ - label: '单据打印', + label: '标签打印', name: 'point', hide: false, type: 'primary', @@ -638,6 +638,18 @@ export function mainListGenerateApplicationBtn(option:any) { hasPermi: '' }) } +// 主列表-打印 +export function mainListDocumentPrintBtn(option:any) { + return __defaultBtnOption(option,{ + label: '单据打印', + name: 'documentPrint', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return { diff --git a/src/views/wms/basicDataManage/labelManage/package/index.vue b/src/views/wms/basicDataManage/labelManage/package/index.vue index 09b77f840..06de855d2 100644 --- a/src/views/wms/basicDataManage/labelManage/package/index.vue +++ b/src/views/wms/basicDataManage/labelManage/package/index.vue @@ -45,8 +45,8 @@ :rules="PackageRules" :formAllSchemas="Package.allSchemas" :searchTableParams="searchTableParams" - :apiUpdate="PackageApi.updateBom" - :apiCreate="PackageApi.createBom" + :apiUpdate="PackageApi.updatePackage" + :apiCreate="PackageApi.createPackage" @searchTableSuccess="searchTableSuccess" :isBusiness="false" /> @@ -60,6 +60,7 @@