|
@@ -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 ?)`
|
|
@@ -963,12 +963,10 @@ func (rg *RegisterController) Detail(c *gin.Context) {
|
|
|
result.PaymentList = make([]*fms.ContractInvoiceItem, 0)
|
|
|
for i := range invoiceList {
|
|
|
if invoiceList[i].InvoiceType == fms.ContractInvoiceTypeMake || invoiceList[i].InvoiceType == fms.ContractInvoiceTypePreMake{
|
|
|
- invoiceList[i].InvoiceType = 1
|
|
|
result.InvoiceList = append(result.InvoiceList, invoiceList[i])
|
|
|
continue
|
|
|
}
|
|
|
if invoiceList[i].InvoiceType == fms.ContractInvoiceTypePay || invoiceList[i].InvoiceType == fms.ContractInvoiceTypePrePay{
|
|
|
- invoiceList[i].InvoiceType = 2
|
|
|
result.PaymentList = append(result.PaymentList, invoiceList[i])
|
|
|
}
|
|
|
}
|