|
|
@@ -5,6 +5,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplierdataentry"
|
|
|
"dashoo.cn/backend/api/business/workflow"
|
|
|
. "dashoo.cn/backend/api/controllers"
|
|
|
+ "dashoo.cn/business3/userRole"
|
|
|
"dashoo.cn/utils"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
@@ -194,13 +195,6 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
//datamap["BusinessScope"] = model1.BusinessScope
|
|
|
//datamap["Telphone"] = model1.Telphone
|
|
|
|
|
|
- //审批意见
|
|
|
- for i := 0; i < len(historicTasks); i++ {
|
|
|
- if historicTasks[i].TaskName == "业务处室专业审批" {
|
|
|
- datamap["OfficeRemarks"] = historicTasks[i].Remarks
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
//model2
|
|
|
datamap["WorkerTotal"] = model2.WorkerTotal
|
|
|
datamap["ContractNum"] = model2.ContractNum
|
|
|
@@ -260,6 +254,46 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
datamap["Aremark" + strconv.Itoa(i + 1)] = item.Remark
|
|
|
}
|
|
|
|
|
|
+ //审批意见
|
|
|
+ datamap["FName"] = "" // 初审
|
|
|
+ datamap["FOpinion"] = ""
|
|
|
+ datamap["YDate"] = " 年 月 日" // 初审
|
|
|
+ datamap["SName"] = ""
|
|
|
+ datamap["SDate"] = " 年 月 日" // 复审
|
|
|
+ datamap["OName"] = ""
|
|
|
+ datamap["ODate"] = " 年 月 日" // 专业处室
|
|
|
+ datamap["SOpinion"] = ""
|
|
|
+ datamap["OfficeRemarks"] = ""
|
|
|
+ datamap["ZDate"] = " 年 月 日" // 集中评审
|
|
|
+ datamap["ZOPinion"] = ""
|
|
|
+ for i := 0; i < len(historicTasks); i++ {
|
|
|
+ fmt.Println(historicTasks[i].EndTime)
|
|
|
+ if historicTasks[i].TaskName == "业务处室专业审批" {
|
|
|
+ var user userRole.Base_User
|
|
|
+ svc.GetEntityById(historicTasks[i].Assignee, &user)
|
|
|
+ datamap["OfficeRemarks"] = historicTasks[i].Remarks
|
|
|
+ datamap["OName"] = user.Realname
|
|
|
+ datamap["ODate"] = time.Unix(historicTasks[i].EndTime / 1e3, 0).Format("2006年01月02日")
|
|
|
+ } else if historicTasks[i].TaskName == "二级单位初审" {
|
|
|
+ var user userRole.Base_User
|
|
|
+ svc.GetEntityById(historicTasks[i].Assignee, &user)
|
|
|
+ datamap["FOpinion"] = historicTasks[i].Remarks
|
|
|
+ datamap["FName"] = user.Realname
|
|
|
+ datamap["YDate"] = time.Unix(historicTasks[i].EndTime / 1e3,0).Format("2006年01月02日")
|
|
|
+ } else if historicTasks[i].TaskName == "二级单位复审" {
|
|
|
+ var user userRole.Base_User
|
|
|
+ svc.GetEntityById(historicTasks[i].Assignee, &user)
|
|
|
+ datamap["SOpinion"] = historicTasks[i].Remarks
|
|
|
+ datamap["SName"] = user.Realname
|
|
|
+ datamap["SDate"] = time.Unix(historicTasks[i].EndTime / 1e3,0).Format("2006年01月02日")
|
|
|
+ } else if historicTasks[i].TaskName == "集中评审" {
|
|
|
+ var user userRole.Base_User
|
|
|
+ svc.GetEntityById(historicTasks[i].Assignee, &user)
|
|
|
+ datamap["ZOPinion"] = historicTasks[i].Remarks
|
|
|
+ datamap["ZDate"] = time.Unix(historicTasks[i].EndTime / 1e3,0).Format("2006年01月02日")
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//var interfaceSlice3 = make([]interface{}, len(tabledata3))
|
|
|
//for i, d := range tabledata3 {
|
|
|
// interfaceSlice3[i] = d
|