|
@@ -12,7 +12,7 @@ import { useAsync } from "/@/hooks/core/useAsync";
|
|
|
import ExeclUpload from "./components/execl-files-upload/index.vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import { httpRequsetExport } from "/@/utils/export";
|
|
|
-import { template, template_electronics } from "./config/xls-template";
|
|
|
+import { template } from "./config/xls-template";
|
|
|
import { writeFile, utils } from "xlsx";
|
|
|
import { usePermission } from "/@/hooks/core/usePermission";
|
|
|
|
|
@@ -80,9 +80,7 @@ async function onDownloadOpenInv() {
|
|
|
function onDownloadTemplate(electronics = false) {
|
|
|
//创建数据表
|
|
|
const workBook = utils.book_new();
|
|
|
- const workSheet = utils.json_to_sheet([
|
|
|
- !electronics ? template : template_electronics
|
|
|
- ]);
|
|
|
+ const workSheet = utils.json_to_sheet([template]);
|
|
|
utils.book_append_sheet(workBook, workSheet, "sheet");
|
|
|
|
|
|
//导出模板
|
|
@@ -115,12 +113,12 @@ function onDownloadTemplate(electronics = false) {
|
|
|
@click="() => onDownloadTemplate()"
|
|
|
>下载发票信息导入模板</ElButton
|
|
|
>
|
|
|
- <ElButton
|
|
|
+ <!-- <ElButton
|
|
|
v-if="hasPermissionWithCode('027')"
|
|
|
:icon="useRenderIcon('arrow-down-line')"
|
|
|
@click="() => onDownloadTemplate(true)"
|
|
|
>下载发票信息导入模板(全电票)</ElButton
|
|
|
- >
|
|
|
+ > -->
|
|
|
<ElButton
|
|
|
v-if="!isSuperUser && hasPermissionWithCode('028')"
|
|
|
@click="() => execlUploadRef.onDisplay()"
|