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