|
@@ -54,7 +54,7 @@ func (rg *RegisterController) List(c *gin.Context) {
|
|
|
|
|
|
cond := `1 = 1`
|
|
|
pars := make([]interface{}, 0)
|
|
|
- // 合同编号/客户姓名/销售/实际使用方
|
|
|
+ // 合同编号/客户姓名/销售/代付方
|
|
|
if req.Keyword != "" {
|
|
|
kw := "%" + req.Keyword + "%"
|
|
|
cond += ` AND (company_name LIKE ? OR contract_code LIKE ? OR seller_name LIKE ? OR rai_seller_name LIKE ? OR actual_company_name LIKE ?)`
|
|
@@ -962,11 +962,11 @@ func (rg *RegisterController) Detail(c *gin.Context) {
|
|
|
result.InvoiceList = make([]*fms.ContractInvoiceItem, 0)
|
|
|
result.PaymentList = make([]*fms.ContractInvoiceItem, 0)
|
|
|
for i := range invoiceList {
|
|
|
- if invoiceList[i].InvoiceType == fms.ContractInvoiceTypeMake {
|
|
|
+ if invoiceList[i].InvoiceType == fms.ContractInvoiceTypeMake || invoiceList[i].InvoiceType == fms.ContractInvoiceTypePreMake{
|
|
|
result.InvoiceList = append(result.InvoiceList, invoiceList[i])
|
|
|
continue
|
|
|
}
|
|
|
- if invoiceList[i].InvoiceType == fms.ContractInvoiceTypePay {
|
|
|
+ if invoiceList[i].InvoiceType == fms.ContractInvoiceTypePay || invoiceList[i].InvoiceType == fms.ContractInvoiceTypePrePay{
|
|
|
result.PaymentList = append(result.PaymentList, invoiceList[i])
|
|
|
}
|
|
|
}
|
|
@@ -2302,15 +2302,15 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
|
|
|
//权益行业套餐名称
|
|
|
raiIndustryMap := map[int]string{
|
|
|
- 40: "医药",
|
|
|
- 41: "医药",
|
|
|
- 42: "消费",
|
|
|
- 43: "消费",
|
|
|
- 44: "科技",
|
|
|
- 45: "科技",
|
|
|
- 46: "智造",
|
|
|
+ 42: "医药",
|
|
|
+ 43: "医药",
|
|
|
+ 44: "消费",
|
|
|
+ 45: "消费",
|
|
|
+ 46: "科技",
|
|
|
+ 47: "科技",
|
|
|
48: "智造",
|
|
|
- 49: "策略",
|
|
|
+ 49: "智造",
|
|
|
+ 50: "策略",
|
|
|
}
|
|
|
|
|
|
// 获取货币列表及汇率(汇率为导入日的汇率)
|
|
@@ -2631,6 +2631,8 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
rootName := "行业套餐"
|
|
|
// 新增三条套餐信息
|
|
|
parentName, _ := raiIndustryMap[k]
|
|
|
+ fmt.Println("raiIndustryMap:", raiIndustryMap)
|
|
|
+ fmt.Println("titleMap:", titleMap)
|
|
|
childName := titleMap[k]
|
|
|
fullName := childName + "_" + parentName + "_" + rootName
|
|
|
if fullName != "" {
|