animeic 2 жил өмнө
parent
commit
d66692d78f
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      boxcost/api/plan.go

+ 3 - 3
boxcost/api/plan.go

@@ -297,15 +297,15 @@ func GetProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 					if len(stage.BillId) > 0 {
 						collectName := ""
 						// 材料
-						if stage.Type == 1 {
+						if stage.BillType == 1 {
 							collectName = repo.CollectionBillPurchase
 						}
 						// 工艺
-						if stage.Type == 2 {
+						if stage.BillType == 2 {
 							collectName = repo.CollectionBillProduce
 						}
 						// 成品
-						if stage.Type == 3 {
+						if stage.BillType == 3 {
 							collectName = repo.CollectionBillProduct
 						}