From cf03c2c235633e6d045873ccb5f1f0e7e45a4ea9 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Fri, 27 Dec 2024 14:44:57 +0800 Subject: [PATCH] =?UTF-8?q?YT-1855=EF=BC=8CYT-1856:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AE=A2=E6=88=B7pda=E5=8F=91=E8=B4=A7=E6=B5=8B=E8=AF=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/deliverRecordMain/index.ts | 6 ++++++ .../deliverRecordMain/deliverRecordMain.data.ts | 1 + .../deliverPdaRecordMain/deliverRecordMain/index.vue | 10 ++++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/api/wms/deliverRecordMain/index.ts b/src/api/wms/deliverRecordMain/index.ts index 1feabb40d..548182e4b 100644 --- a/src/api/wms/deliverRecordMain/index.ts +++ b/src/api/wms/deliverRecordMain/index.ts @@ -108,6 +108,12 @@ export const inducedProductCreate = (data) => { } +// 下载用户导入模板 +export const importDeliverPdaTemplate = () => { + return request.download({ url: '/wms/deliver-record-main/get-customer-pda-import-template' }) +} + + diff --git a/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/deliverRecordMain.data.ts index e4ae230cb..03795ba93 100644 --- a/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/deliverRecordMain.data.ts @@ -196,6 +196,7 @@ export const DeliverRecordMain = useCrudSchemas( field: 'action', isDetail: false, isForm: false, + isTable: false, table: { width: 150, fixed: 'right' diff --git a/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/index.vue index e369cc6c5..0fa93acf8 100644 --- a/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverPdaRecordMain/deliverRecordMain/index.vue @@ -58,11 +58,12 @@ ref="importFormRef" :url="importUrl" @success="importSuccess" - :isShowDownloadBtn="false" + :isShowDownloadBtn="true" :formSchema="ExtendColumn.allSchemas.formSchema" :rules="ExtendColumnRules" :extend="importExtend" accept=".xlsx,.xls" + :importTemplateData="importTemplateData" @searchTableSuccess="searchTableSuccess" /> @@ -96,6 +97,10 @@ console.log(99 , routeName.value) const tableColumns = ref([...DeliverRecordMain.allSchemas.tableColumns,...DeliverRecordDetail.allSchemas.tableMainColumns]) const { tableObject, tableMethods } = useTable({ getListApi: DeliverRecordDetailApi.getDeliverRecordDetailPage // 分页接口 +})// 导入附件弹窗所需的参数 +const importTemplateData = reactive({ + templateUrl: '', + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) importUrl.value = '/wms/deliver-record-main/import-customer-pda-shipment' @@ -174,7 +179,7 @@ const butttondata = (row,$index) => { }else{ return [ // defaultButtons.mainListDocumentPrintBtn(null),// 标签打印 - defaultButtons.mainListEditBtn(null), // 编辑 + // defaultButtons.mainListEditBtn(null), // 编辑 ] } } @@ -330,6 +335,7 @@ onMounted(async () => { } else if (routeName.value == 'DeliverPda') { tableObject.params.businessType = 'DeliverPda' } + importTemplateData.templateUrl = await DeliverRecordMainApi.importDeliverPdaTemplate() getList() }) onActivated(() => {