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 @@