|
@@ -2,6 +2,8 @@ package oilsupplier
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
"dashoo.cn/backend/api/business/invoiceinfo"
|
|
"dashoo.cn/backend/api/business/invoiceinfo"
|
|
|
|
|
+ "dashoo.cn/backend/api/business/oilcontract/contract"
|
|
|
|
|
+ "dashoo.cn/backend/api/business/oilcontract/contractReview"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/annualaudit"
|
|
"dashoo.cn/backend/api/business/oilsupplier/annualaudit"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/infochange"
|
|
"dashoo.cn/backend/api/business/oilsupplier/infochange"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/oilcatalog"
|
|
"dashoo.cn/backend/api/business/oilsupplier/oilcatalog"
|
|
@@ -36,7 +38,7 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
supplierTypeCode := this.GetString("SupplierTypeCode")
|
|
supplierTypeCode := this.GetString("SupplierTypeCode")
|
|
|
supplierName := this.GetString("SupplierName")
|
|
supplierName := this.GetString("SupplierName")
|
|
|
wfNames := ""
|
|
wfNames := ""
|
|
|
- wfNames = workflow.OIL_ENUSER_SUPPLIER_APPLY + "," + workflow.OIL_ENUSER_APPEND_APPLY + "," + workflow.OIL_INFO_CHANGE + "," + workflow.OIL_AUDIT_APPLY + "," + workflow.OIL_SUPPLIER_VERIFY
|
|
|
|
|
|
|
+ wfNames = workflow.OIL_ENUSER_SUPPLIER_APPLY + "," + workflow.OIL_ENUSER_APPEND_APPLY + "," + workflow.OIL_INFO_CHANGE + "," + workflow.OIL_AUDIT_APPLY + "," + workflow.OIL_SUPPLIER_VERIFY+ "," + workflow.OIL_DAILY_CONTRACT_EVALUATION
|
|
|
|
|
|
|
|
var todoliststemp []todolist.TodoList
|
|
var todoliststemp []todolist.TodoList
|
|
|
|
|
|
|
@@ -199,6 +201,26 @@ func (this *TodoListController) GetMyTaskEntityList() {
|
|
|
todo.CreateTime = item.CreateTime
|
|
todo.CreateTime = item.CreateTime
|
|
|
todoliststemp = append(todoliststemp, todo)
|
|
todoliststemp = append(todoliststemp, todo)
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if wfName == workflow.OIL_DAILY_CONTRACT_EVALUATION {
|
|
|
|
|
+ // 合同日常评审
|
|
|
|
|
+ var todo todolist.TodoList
|
|
|
|
|
+ conRev := contractReview.GetOilContractReviewService(utils.DBE)
|
|
|
|
|
+ var contractReviewEntity contractReview.OilContractReview
|
|
|
|
|
+ has = conRev.GetEntityById(id, &contractReviewEntity)
|
|
|
|
|
+ contractSvc := contract.GetOilContractService(utils.DBE)
|
|
|
|
|
+ var contractEntity contract.OilContract
|
|
|
|
|
+ contractSvc.GetEntityById(contractReviewEntity.ContractId, &contractEntity)
|
|
|
|
|
+ if has {
|
|
|
|
|
+ todo.Id = contractReviewEntity.Id
|
|
|
|
|
+ todo.Type = todolist.DAILY
|
|
|
|
|
+ todo.TaskName = item.TaskName
|
|
|
|
|
+ todo.UserName = this.User.Realname
|
|
|
|
|
+ todo.CreateTime = item.CreateTime
|
|
|
|
|
+ todo.SupplierTypeCode = contractEntity.ContractClass
|
|
|
|
|
+ todo.SupplierName = contractEntity.SupplierName
|
|
|
|
|
+ todo.Status = contractReviewEntity.Status
|
|
|
|
|
+ todoliststemp = append(todoliststemp, todo)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|