feat(wms盘库): 完成多项功能升级与体验优化
1. 新增仓库选择组件多选支持,适配批量库区操作 2. 售后单新增自动生成编号与当前日期填充 3. 盘点计划新增流程审批操作按钮,支持驳回与审批通过 4. 优化库区绑定页面,支持编辑删除已绑定库区 5. 替换人员选择为可搜索下拉框,支持多选参与人 6. 新增驳回审批弹窗,提供快捷驳回理由 7. 优化表单提交逻辑,适配多库区数据格式
This commit is contained in:
@@ -294,6 +294,20 @@ export default {
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.formCoilList = [];
|
||||
// 根据当前日期自动生成售后编号,格式: SH + yyyyMMddHHmmss
|
||||
const now = new Date();
|
||||
const pad = (n, len) => String(n).padStart(len, '0');
|
||||
const dateStr = [
|
||||
now.getFullYear(),
|
||||
pad(now.getMonth() + 1, 2),
|
||||
pad(now.getDate(), 2),
|
||||
pad(now.getHours(), 2),
|
||||
pad(now.getMinutes(), 2),
|
||||
pad(now.getSeconds(), 2)
|
||||
].join('');
|
||||
this.form.complaintNo = 'SH' + dateStr;
|
||||
// 自动填写当前日期
|
||||
this.form.complaintDate = this.parseTime(now, '{y}-{m}-{d}');
|
||||
this.open = true;
|
||||
this.title = "新增售后单";
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user