feat: 新增收货计划功能并优化入库界面
fix(ui): 修正发货单和收货单界面显示问题 docs: 添加KLPTable组件使用文档 refactor: 重构入库记录显示为表格形式 style: 清理无用代码并统一命名规范
This commit is contained in:
@@ -175,6 +175,7 @@ export default {
|
||||
pageSize: 10,
|
||||
planName: undefined,
|
||||
planDate: undefined,
|
||||
planType: 0,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
@@ -214,6 +215,7 @@ export default {
|
||||
planId: undefined,
|
||||
planName: undefined,
|
||||
planDate: undefined,
|
||||
planType: 0,
|
||||
remark: undefined,
|
||||
delFlag: undefined,
|
||||
createTime: undefined,
|
||||
@@ -247,6 +249,8 @@ export default {
|
||||
this.form.planDate = new Date().toLocaleString().replace('T', ' ').replace().replace(/\//g, '-')
|
||||
// 发货计划名称格式为年-月-日命名
|
||||
this.form.planName = new Date().toLocaleDateString().replace(/\//g, '-') + '发货计划'
|
||||
// 计划类型为发货计划
|
||||
this.form.planType = 0
|
||||
this.open = true;
|
||||
this.title = "添加发货计划";
|
||||
},
|
||||
|
||||
@@ -82,13 +82,12 @@
|
||||
|
||||
<DeliveryWaybillDetail ref="detailTable" :waybillId="waybillId" />
|
||||
</el-card>
|
||||
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
|
||||
|
||||
<!-- 添加或修改发货单主对话框 -->
|
||||
<!-- 添加或修改发货单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="发货单名称" prop="waybillName">
|
||||
@@ -168,7 +167,7 @@ export default {
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 发货单主表格数据
|
||||
// 发货单表格数据
|
||||
deliveryWaybillList: [],
|
||||
waybillId: null,
|
||||
// 打印相关数据
|
||||
@@ -213,7 +212,8 @@ export default {
|
||||
planQueryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 100, // 增大分页大小以确保树形结构显示足够数据
|
||||
planName: undefined
|
||||
planName: undefined,
|
||||
planType: 0,
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -222,7 +222,7 @@ export default {
|
||||
this.getPlanList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询发货单主列表 */
|
||||
/** 查询发货单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
// 确保查询参数包含planId
|
||||
@@ -334,7 +334,7 @@ export default {
|
||||
}
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "添加发货单主";
|
||||
this.title = "添加发货单";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
@@ -345,7 +345,7 @@ export default {
|
||||
this.loading = false;
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改发货单主";
|
||||
this.title = "修改发货单";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
@@ -376,7 +376,7 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const waybillIds = row.waybillId || this.ids;
|
||||
this.$modal.confirm('是否确认删除发货单主编号为"' + waybillIds + '"的数据项?').then(() => {
|
||||
this.$modal.confirm('是否确认删除发货单编号为"' + waybillIds + '"的数据项?').then(() => {
|
||||
this.loading = true;
|
||||
return delDeliveryWaybill(waybillIds);
|
||||
}).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user