Files
xgy-oa/klp-ui/src/views/wms/receive/components/ImportGuide.vue
砂糖 3cf67df855 feat(wms): 添加收货计划导入功能及页面组件
新增ImportGuide组件实现Excel导入功能,包含数据校验和进度展示
添加stockpile成本页面基础结构
调整delivery报表日期范围和显示列
在收货详情页增加导入和导出按钮功能
2025-12-01 11:56:31 +08:00

29 lines
767 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<!-- 导入向导 -->
<!-- 1. 引导选择excel, 利用xlsx库读取excel文件内容
2. 校验excel格式通过后展示数据
3. 点击确认导入开始调用api逐条导入展示导入进度
4. 导入完成后显示完成 -->
</template>
<script>
import XLSX from 'xlsx';
import { addMaterialCoil } from '@/api/wms/coil'
import { addPendingAction } from '@/api/wms/pendingAction'
export default {
data() {
return {
file: null,
data: [],
}
},
methods: {
async importOneRecord(row) {
// 1. 插入一条dataType为10 的 钢卷数据
// 2. 插入actionStatus为0 的 待处理操作
// 3. 本行数据插入完成,进度+1
}
}
}
</script>