@@ -202,7 +202,7 @@ func UpdateProduceBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
// 如果更改类型
if len(bill.Type) > 0 {
- billType, err := searchBillTypeById(apictx, repo.CollectionBillPurchase, bill.Id)
+ billType, err := searchBillTypeById(apictx, repo.CollectionBillProduce, bill.Id)
if err != nil {
return nil, err
}
@@ -202,7 +202,7 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
+ billType, err := searchBillTypeById(apictx, repo.CollectionBillProduct, bill.Id)
@@ -227,6 +227,7 @@ func DownLoadCompBills(c *gin.Context, apictx *ApiSession) (interface{}, error)
billExcel.SetRow(row)
billExcel.Draws()
+ fmt.Println(billExcel.GetRow())
row = billExcel.GetRow() + 3