|
@@ -263,11 +263,8 @@ func DownProduceBill(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
|
|
|
}
|
|
|
billExcel.Content = &bill
|
|
|
- info := model.Setting{}
|
|
|
- repo.RepoSeachDoc(apictx.CreateRepoCtx(), &repo.DocSearchOptions{
|
|
|
- CollectName: "infos",
|
|
|
- }, &info)
|
|
|
- billExcel.Title = fmt.Sprintf("%s加工单", info.CompanyName)
|
|
|
+ companyName := getCompanyName(apictx)
|
|
|
+ billExcel.Title = fmt.Sprintf("%s加工单", companyName)
|
|
|
//设置对应的数据
|
|
|
billExcel.Draws()
|
|
|
|