| 
															
																@@ -205,7 +205,6 @@ func (c *ContractApi) GetIncome() { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 // @Param   bidsectionId     path    string     true        "标段ID" 
															 | 
															
															 | 
															
																 // @Param   bidsectionId     path    string     true        "标段ID" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 // @Param   code     path    string     true        "合同编号" 
															 | 
															
															 | 
															
																 // @Param   code     path    string     true        "合同编号" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 // @Param   name     path    string     true        "合同名称" 
															 | 
															
															 | 
															
																 // @Param   name     path    string     true        "合同名称" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-// @Param   sectionName     path    string     true        "项目节名称" 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 // @Param   contractsType     path    int     true        "合同类型(1)" 
															 | 
															
															 | 
															
																 // @Param   contractsType     path    int     true        "合同类型(1)" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 // @Param   price     path    string     true        "合同金额" 
															 | 
															
															 | 
															
																 // @Param   price     path    string     true        "合同金额" 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 // @Success 200 {object} viewmodels.TreeSectionContract "{code:0成功,-1参数类错误,msg:错误信息}" 
															 | 
															
															 | 
															
																 // @Success 200 {object} viewmodels.TreeSectionContract "{code:0成功,-1参数类错误,msg:错误信息}" 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -239,7 +238,7 @@ func (c *ContractApi) PostIncomeCreate() { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	sectionData := &viewmodels.TreeSectionContract{} 
															 | 
															
															 | 
															
																 	sectionData := &viewmodels.TreeSectionContract{} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	sectionData.Id = contractData.TreeId 
															 | 
															
															 | 
															
																 	sectionData.Id = contractData.TreeId 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-	sectionData.Name = contractData.Name 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	sectionData.Name = " " 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	sectionResult, err := c.ServiceContract.SectionAdd(sectionData, bidsectionId, projectIdInt, 0) 
															 | 
															
															 | 
															
																 	sectionResult, err := c.ServiceContract.SectionAdd(sectionData, bidsectionId, projectIdInt, 0) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	if err != nil { 
															 | 
															
															 | 
															
																 	if err != nil { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)}) 
															 | 
															
															 | 
															
																 		c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)}) 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -379,6 +378,7 @@ func (c *ContractApi) Delete() { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		return 
															 | 
															
															 | 
															
																 		return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	} 
															 | 
															
															 | 
															
																 	} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	// 删除合同 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	err = c.ServiceContract.Delete(projectIdInt, bidsectionId, treeId, id) 
															 | 
															
															 | 
															
																 	err = c.ServiceContract.Delete(projectIdInt, bidsectionId, treeId, id) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	if err != nil { 
															 | 
															
															 | 
															
																 	if err != nil { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)}) 
															 | 
															
															 | 
															
																 		c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)}) 
															 |