feat(wms): 添加收货计划导入功能及页面组件

新增ImportGuide组件实现Excel导入功能,包含数据校验和进度展示
添加stockpile成本页面基础结构
调整delivery报表日期范围和显示列
在收货详情页增加导入和导出按钮功能
This commit is contained in:
砂糖
2025-12-01 11:56:31 +08:00
parent 49e5024f89
commit 3cf67df855
5 changed files with 58 additions and 22 deletions

View File

@@ -0,0 +1,29 @@
<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>