@@ -178,7 +178,7 @@ func (s *contractService) SectionAdd(sectionData *viewmodels.TreeSectionContract
// }
// 1-2 项目节是否有合同
if sectionFather.ContractId != 0 {
- return nil, errors.New("该项目节已存在合同")
+ return nil, errors.New("合同项禁止添加子项")
}
// 2 获得最大序号
@@ -248,7 +248,7 @@ func (c *ContractApi) PostIncomeCreate() {
c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)})
return
- fmt.Println("dddd")
+
// 在添加合同
err = c.ServiceContract.Add(contractData, projectIdInt, bidsectionId, sectionResult.Id)
if err != nil {