From 41b0134c353d4e9289e49b201d5690d7a8fdd369 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 31 十月 2026 13:48:22 +0800
Subject: [PATCH] feat(wls): 销售出库页面支持 Excel 导入
---
src/views/wls/productsales/index.vue | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/views/wls/productsales/index.vue b/src/views/wls/productsales/index.vue
index 1b0dc47..3eb54b5 100644
--- a/src/views/wls/productsales/index.vue
+++ b/src/views/wls/productsales/index.vue
@@ -19,9 +19,15 @@
import { useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
+import ImportForm from './modules/import-form.vue';
const [FormModal, formModalApi] = useVbenModal({
connectedComponent: Form,
+ destroyOnClose: true,
+});
+
+const [ImportModal, importModalApi] = useVbenModal({
+ connectedComponent: ImportForm,
destroyOnClose: true,
});
@@ -33,6 +39,11 @@
/** 鍒涘缓閿�鍞嚭搴撳崟 */
function handleCreate() {
formModalApi.setData({ formType: 'create' }).open();
+}
+
+/** 瀵煎叆閿�鍞嚭搴撳崟 */
+function handleImport() {
+ importModalApi.open();
}
/** 鏌ョ湅閿�鍞嚭搴撳崟 */
@@ -121,6 +132,7 @@
<template>
<Page auto-content-height><FormModal @success="handleRefresh" />
+ <ImportModal @success="handleRefresh" />
<Grid table-title="閿�鍞嚭搴撳崟鍒楄〃">
<template #toolbar-tools>
@@ -134,6 +146,13 @@
onClick: handleCreate,
},
{
+ label: '瀵煎叆',
+ type: 'primary',
+ icon: ACTION_ICON.UPLOAD,
+ auth: ['mes:wm-product-sales:import'],
+ onClick: handleImport,
+ },
+ {
label: $t('ui.actionTitle.export'),
type: 'primary',
icon: ACTION_ICON.DOWNLOAD,
--
Gitblit v1.9.3