feat(wms): 优化收货功能并重构导入组件

重构收货功能界面,将"确认收货"改为"签收",并调整按钮样式。新增收货弹窗功能,支持选择实际库区和填写备注。

重构导入组件,优化校验逻辑和错误处理,增加防呆机制和loading状态。将枚举和常量提取为模块级变量,提升代码可维护性。添加仓库映射关系,增强数据校验能力。

调整表格按钮的内边距,提升UI一致性
This commit is contained in:
砂糖
2025-12-02 13:56:21 +08:00
parent 40383a73b9
commit 51caea9e41
4 changed files with 538 additions and 292 deletions

View File

@@ -179,12 +179,11 @@
<el-tag v-else type="primary">未收货</el-tag>
</template>
</el-table-column>
<el-table-column label="操作">
<!-- <el-table-column label="操作">
<template slot-scope="scope">
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="primary"
size="mini" @click="openReceiptModal(scope.row)">确认收货</el-button>
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="primary" @click="openReceiptModal(scope.row)">签收</el-button>
</template>
</el-table-column>
</el-table-column> -->
</el-table>
<Pagination v-show="total > 0" :total="total" :page.sync="pagination.pageNum"
@@ -213,7 +212,7 @@
</el-form>
<template slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirmReceipt" v-loading="buttonLoading">确认收货</el-button>
<el-button type="primary" @click="confirmReceipt" v-loading="buttonLoading">签收</el-button>
<el-button @click="receiptModalVisible = false">取消</el-button>
</template>
</el-dialog>