|
@@ -409,6 +409,7 @@ func (c *StockController) StockIn_Add() {
|
|
|
c.ServeJSON()
|
|
|
return
|
|
|
}
|
|
|
+ NatsServer.AddUserLogs(c.User.T_uuid, "仓库管理", "入库", T_product)
|
|
|
|
|
|
var_ := Stock.StockIn{
|
|
|
T_number: T_number,
|
|
@@ -448,7 +449,7 @@ func (c *StockController) StockIn_Add() {
|
|
|
T_relation_sn := strings.Split(v, "-")[2]
|
|
|
if T_relation_sn == "" && product.T_relation_sn == 1 {
|
|
|
o.Rollback()
|
|
|
- c.Data["json"] = lib.JSONS{Code: 202, Msg: fmt.Sprintf("%s关联SN,请先添加SN!")}
|
|
|
+ c.Data["json"] = lib.JSONS{Code: 202, Msg: fmt.Sprintf("%s关联SN,请先添加SN!", T_relation_sn)}
|
|
|
c.ServeJSON()
|
|
|
return
|
|
|
}
|
|
@@ -470,7 +471,7 @@ func (c *StockController) StockIn_Add() {
|
|
|
_, err = DeviceDao.AddOrUpdate_Device(device, 2)
|
|
|
if err != nil {
|
|
|
o.Rollback()
|
|
|
- c.Data["json"] = lib.JSONS{Code: 202, Msg: "入库失败"}
|
|
|
+ c.Data["json"] = lib.JSONS{Code: 202, Msg: sn + "入库失败"}
|
|
|
c.ServeJSON()
|
|
|
return
|
|
|
}
|