feat(wms): 添加订单号显示并改进日期格式化功能
1. 在发货单组件中增加订单号显示,替换原有电话字段 2. 实现统一的日期格式化工具函数,修复参数冲突问题 3. 发货操作后自动添加待操作记录 4. 优化钢卷操作中的日期处理逻辑
This commit is contained in:
@@ -50,10 +50,16 @@ export const actionStrategies = {
|
||||
handler: async (coil, action) => {
|
||||
// 更新操作记录状态 actionStatus: 2
|
||||
// 并行执行更新操作记录和更新钢卷状态
|
||||
// 将日期格式化为yyyy-MM-dd HH:mm:ss
|
||||
const completeTime = new Date()
|
||||
function parseDate(date) {
|
||||
return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + ' ' + date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds()
|
||||
}
|
||||
await Promise.all([
|
||||
updatePendingAction({
|
||||
...action,
|
||||
actionStatus: 2,
|
||||
completeTime: parseDate(completeTime),
|
||||
}),
|
||||
updateMaterialCoilSimple({
|
||||
...coil,
|
||||
|
||||
Reference in New Issue
Block a user