fix: supply.go

main
Leo 6 months ago
parent 4882e51e76
commit 32ae1fdc5f

@ -44,7 +44,7 @@ type exchange struct {
outProject string outProject string
goodsName string goodsName string
unit string unit string
productsNums int productsNums float64
realPrice float64 realPrice float64
remainderRealAmount float64 remainderRealAmount float64
inOut string inOut string
@ -145,16 +145,16 @@ func getDetail(id, inOut, changeNo, inProject, outProject, note string) {
unit := v.Get("unit").String() unit := v.Get("unit").String()
productsNums := v.Get("productsNums").String() productsNums := v.Get("productsNums").String()
realPrice := v.Get("realPrice").String() realPrice := v.Get("realPrice").String()
remainderRealAmount := v.Get("remainderRealAmount").String() productsAmount := v.Get("productsAmount").String()
ex := new(exchange) ex := new(exchange)
ex.changeNo = changeNo ex.changeNo = changeNo
ex.inProject = inProject ex.inProject = inProject
ex.outProject = outProject ex.outProject = outProject
ex.goodsName = goodsName ex.goodsName = goodsName
ex.unit = unit ex.unit = unit
ex.productsNums = cast.ToInt(productsNums) ex.productsNums = cast.ToFloat64(productsNums)
ex.realPrice = cast.ToFloat64(realPrice) ex.realPrice = cast.ToFloat64(realPrice)
ex.remainderRealAmount = cast.ToFloat64(remainderRealAmount) ex.remainderRealAmount = cast.ToFloat64(productsAmount)
ex.note = note ex.note = note
if inOut == "in" { if inOut == "in" {
ex.inOut = "调入" ex.inOut = "调入"

Loading…
Cancel
Save