fix(inbound): 修正入库时间处理逻辑并添加保质期时间戳
- 提取入库时间变量避免重复计算 - 为保质期字段添加时间部分,格式化为日期+时间 - 确保时间格式与系统ISO标准保持一致 - 优化参数传递过程中的数据处理流程
This commit is contained in:
@@ -342,9 +342,13 @@ class InboundGoodsStoreDialog(
|
||||
// weight 来自秤,不在表单中,额外注入
|
||||
param["weight"] = realWeight / 1000.0
|
||||
// inboundTime 净菜取当前时间,不在表单中
|
||||
param["inboundTime"] = isoFormat.format(Date())
|
||||
val inboundTime = isoFormat.format(Date())
|
||||
param["inboundTime"] = inboundTime
|
||||
param["materId"] = goods?.materId ?:""
|
||||
|
||||
val expiryDate = param["expiryDate"] as? String
|
||||
param["expiryDate"] = expiryDate + " " + inboundTime.split(" ").getOrNull(1)
|
||||
|
||||
Loading.show(storeActivity ?: return)
|
||||
storeActivity?.storeViewModel?.submitCleanInbound(param) { success, msg ->
|
||||
Loading.dismiss()
|
||||
|
||||
Reference in New Issue
Block a user