feat(wms): 添加收货计划导入功能及页面组件
新增ImportGuide组件实现Excel导入功能,包含数据校验和进度展示 添加stockpile成本页面基础结构 调整delivery报表日期范围和显示列 在收货详情页增加导入和导出按钮功能
This commit is contained in:
29
klp-ui/src/views/wms/receive/components/ImportGuide.vue
Normal file
29
klp-ui/src/views/wms/receive/components/ImportGuide.vue
Normal 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>
|
||||
Reference in New Issue
Block a user