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

@@ -50,11 +50,11 @@
v-loading="loading"
>
<el-table-column prop="productName" label="产品名称" min-width="120" fixed="left" />
<el-table-column prop="waybillCount" label="运单数量" min-width="100" align="center">
<!-- <el-table-column prop="waybillCount" label="运单数量" min-width="100" align="center">
<template #default="{ row }">
<span>{{ row.waybillCount || 0 }}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column prop="coilCount" label="卷数" min-width="100" align="center">
<template #default="{ row }">
<span>{{ row.coilCount || 0 }}</span>
@@ -65,11 +65,11 @@
<span>{{ formatWeight(row.totalWeight) }}</span>
</template>
</el-table-column>
<el-table-column prop="dailyWaybillCount" label="日均运单数" min-width="120" align="right">
<!-- <el-table-column prop="dailyWaybillCount" label="日均运单数" min-width="120" align="right">
<template #default="{ row }">
<span>{{ formatDailyValue(row.dailyWaybillCount) }}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column prop="dailyCoilCount" label="日均卷数" min-width="120" align="right">
<template #default="{ row }">
<span>{{ formatDailyValue(row.dailyCoilCount) }}</span>
@@ -112,11 +112,12 @@ export default {
initDateRange() {
const now = new Date()
const firstDay = new Date(now.getFullYear(), now.getMonth(), 1)
const lastDay = new Date(now.getFullYear(), now.getMonth() + 1, 0)
// const lastDay = new Date(now.getFullYear(), now.getMonth() + 1, 0)
const today = new Date()
this.dateRange = [
this.formatDate(firstDay),
this.formatDate(lastDay)
this.formatDate(today)
]
},