|
@@ -421,6 +421,23 @@ func (rg *RegisterController) Add(c *gin.Context) {
|
|
|
resp.FailMsg("删除预到款记录失败", "Err:"+e.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ for i := 0; i < len(serviceAmountList); i++ {
|
|
|
+ // 合同服务
|
|
|
+ t := serviceAmountList[i]
|
|
|
+ tmp := &fms.ContractServiceAmount{
|
|
|
+ ContractRegisterId: ob.ContractRegisterId,
|
|
|
+ ProductId: t.ProductId,
|
|
|
+ ServiceAmount: t.ServiceAmount,
|
|
|
+ CurrencyUnit: t.CurrencyUnit,
|
|
|
+ }
|
|
|
+
|
|
|
+ if e := tmp.Create(); e != nil {
|
|
|
+ resp.FailData("日期格式有误", "Err:"+e.Error(), c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// 校验金额-是否修改状态
|
|
|
go fmsService.CheckContractRegisterAmount(ob.ContractRegisterId)
|
|
|
|