ziwen 2 years ago
parent
commit
de680c0a1b
1 changed files with 10 additions and 1 deletions
  1. 10 1
      controller/contract/register.go

+ 10 - 1
controller/contract/register.go

@@ -397,10 +397,19 @@ func (rg *RegisterController) Add(c *gin.Context) {
 				OriginAmount:       ppItem.OriginAmount,
 				CurrencyUnit:       ppItem.CurrencyUnit,
 				InvoiceDate:        ppItem.InvoiceDate,
+				SellerId:           ppItem.SellerId,
+				SellerName:         ppItem.SellerName,
+				SellerGroupId:      ppItem.SellerGroupId,
+				SellerGroupName:    ppItem.SellerGroupName,
+				SellerTeamId:      ppItem.SellerTeamId,
+				SellerTeamName:     ppItem.SellerTeamName,
 				AdminId:            int(adminInfo.AdminId),
 				AdminName:          adminInfo.RealName,
 				Remark:             ppItem.Remark,
+				ServiceProductId:   ppItem.ServiceProductId,
 				IsPrePay:           1,
+				StartDate:          ppItem.StartDate,
+				EndDate:            ppItem.EndDate,
 			}
 			if ppItem.InvoiceType == 3 {
 				v.InvoiceType = 1
@@ -2427,7 +2436,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
 									return
 								}
 								cs := &fms.ContractService{
-									ProductId:         crm.CompanyProductFicc,
+									ProductId:         crm.CompanyProductRai,
 									ServiceTemplateId: tempItem.ServiceTemplateId,
 									Title:             tempItem.Title,
 									Value:             tempItem.Value,