|
@ -41,11 +41,11 @@ |
|
|
</Dialog> |
|
|
</Dialog> |
|
|
</template> |
|
|
</template> |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
import * as UserApi from '@/api/system/user' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import { getAccessToken, getTenantId } from '@/utils/auth' |
|
|
import { getAccessToken, getTenantId } from '@/utils/auth' |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'SystemUserImportForm' }) |
|
|
defineOptions({ name: 'WmsItembasicImportForm' }) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
|
|
|
|
@ -53,7 +53,7 @@ const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|
const formLoading = ref(false) // 表单的加载中 |
|
|
const formLoading = ref(false) // 表单的加载中 |
|
|
const uploadRef = ref() |
|
|
const uploadRef = ref() |
|
|
const importUrl = |
|
|
const importUrl = |
|
|
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/system/user/import' |
|
|
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/wms/itembasic/import' |
|
|
const uploadHeaders = ref() // 上传 Header 头 |
|
|
const uploadHeaders = ref() // 上传 Header 头 |
|
|
const fileList = ref([]) // 文件列表 |
|
|
const fileList = ref([]) // 文件列表 |
|
|
const updateSupport = ref(0) // 是否更新已经存在的物品基本信息数据 |
|
|
const updateSupport = ref(0) // 是否更新已经存在的物品基本信息数据 |
|
@ -127,7 +127,5 @@ const handleExceed = (): void => { |
|
|
|
|
|
|
|
|
/** 下载模板操作 */ |
|
|
/** 下载模板操作 */ |
|
|
const importTemplate = async () => { |
|
|
const importTemplate = async () => { |
|
|
const res = await UserApi.importUserTemplate() |
|
|
const res = await ItembasicApi.importUserTemplate() |
|
|
download.excel(res, '物品基本信息导入模版.xls') |
|
|
download.excel(res, '物品基本信息导入模版.xls') |
|
|
} |
|
|
|
|
|
</script> |
|
|
|
|
|