|
@@ -190,6 +190,10 @@ func (rg *RegisterController) List(c *gin.Context) {
|
|
|
v.ServicesName = serviceMap[list[i].ContractRegisterId]
|
|
|
v.InvoiceList = invoiceMap[list[i].ContractRegisterId]
|
|
|
v.PaymentList = paymentMap[list[i].ContractRegisterId]
|
|
|
+
|
|
|
+ if list[i].WxUserId > 0 {
|
|
|
+ v.CompanyName = v.WxUserName + "(" + v.CompanyName + ")"
|
|
|
+ }
|
|
|
respList = append(respList, v)
|
|
|
}
|
|
|
|
|
@@ -347,12 +351,14 @@ func (rg *RegisterController) Add(c *gin.Context) {
|
|
|
ob.HasPayment = req.HasPayment
|
|
|
ob.HasInvoice = req.HasInvoice
|
|
|
ob.ActualPayCompanies = req.ActualPayCompanies
|
|
|
+ ob.WxUserId = req.WxUserId
|
|
|
+ ob.WxUserName = req.WxUserName
|
|
|
ob.Set()
|
|
|
updateCols := []string{
|
|
|
"ContractCode", "RelateContractCode", "RelateContractMainCode", "CrmContractId", "ContractSource",
|
|
|
"ProductIds", "CompanyName", "SellerId", "SellerName", "StartDate", "EndDate",
|
|
|
"RaiSellerId", "RaiSellerName", "ModifyTime", "ContractType", "ContractAmount", "CurrencyUnit", "RMBRate",
|
|
|
- "SignDate", "AgreedPayTime", "ContractStatus", "RegisterStatus", "Remark", "HasPayment", "HasInvoice", "ActualPayCompanies",
|
|
|
+ "SignDate", "AgreedPayTime", "ContractStatus", "RegisterStatus", "Remark", "HasPayment", "HasInvoice", "ActualPayCompanies", "WxUserId", "WxUserName",
|
|
|
}
|
|
|
// 不需要开票到款的代付直接完成登记, 且不允许进行开票/到款登记
|
|
|
if req.HasInvoice == 0 || req.ContractStatus == fms.ContractStatusEnd {
|
|
@@ -2497,6 +2503,9 @@ func (rg *RegisterController) InvoiceList(c *gin.Context) {
|
|
|
for i := range list {
|
|
|
list[i].UnitName = unitMap[list[i].CurrencyUnit]
|
|
|
contractRegisterIds = append(contractRegisterIds, list[i].ContractRegisterId)
|
|
|
+ if list[i].WxUserId > 0 {
|
|
|
+ list[i].CompanyName = list[i].WxUserName + "(" + list[i].CompanyName + ")"
|
|
|
+ }
|
|
|
}
|
|
|
if len(contractRegisterIds) > 0 {
|
|
|
contractRegisters, err := fms.GetContractInfoByRegisterIds(contractRegisterIds)
|