diff --git a/src/views/supermarketerp/supermarketSpu/components/upload-excel-update.vue b/src/views/supermarketerp/supermarketSpu/components/upload-excel-update.vue new file mode 100644 index 0000000..7da9044 --- /dev/null +++ b/src/views/supermarketerp/supermarketSpu/components/upload-excel-update.vue @@ -0,0 +1,166 @@ + + + + + + + {{ $t("excel.operationNotice") }} + {{ $t("excel.clickUpload") }} + + + + {{ $t("excel.fileFormat") }} + {{ $t("excel.downloadTemplate") }} + + + + + + + {{ $t("common.confirmButtonText") }} + + {{ $t("common.cancelButtonText") }} + + + + + + + + + + {{ error }} + + + + + + + diff --git a/src/views/supermarketerp/supermarketSpu/index.vue b/src/views/supermarketerp/supermarketSpu/index.vue index 6f3f47e..6610670 100644 --- a/src/views/supermarketerp/supermarketSpu/index.vue +++ b/src/views/supermarketerp/supermarketSpu/index.vue @@ -66,8 +66,20 @@ type="primary" @click="excelUploadRef.show()" > - {{ $t("common.importBtn") }} + 导入 + + + 覆盖导入 + + + + @@ -180,6 +199,7 @@ import { getSupplierSimpleAll } from "/@/api/supermarketerp/smErpSupplier" // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) const excelUploadRef = ref() +const excelUploadUpdateRef = ref() const { supermarket_nature, status } = useDict("supermarket_nature", "status") const formDialogRef = ref() // 对话框ref引用 const queryRef = ref() // 搜索表单ref引用 @@ -208,7 +228,7 @@ const resetQuery = () => { // 导出excel const exportExcel = () => { - downBlobFile("/supermarket/supermarketSpu/export", Object.assign(state.queryForm, { ids: selectObjs }), "库存商品.xlsx") + downBlobFile("/supermarket/supermarketSpu/exportNew", Object.assign(state.queryForm, { ids: selectObjs }), "库存商品.xlsx") } // 导入成功刷新数据