constants.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package fms
  2. const (
  3. // 合同类型
  4. ContractTypeNew = 1 // 新签
  5. ContractTypeRenew = 2 // 续约
  6. ContractTypeAgentPay = 3 // 代付
  7. ContractTypePlus = 4 // 补充协议
  8. // 合同状态
  9. ContractStatusApproved = 1 // 已审批
  10. ContractStatusSendOut = 2 // 单章寄出
  11. ContractStatusCheckedBack = 3 // 已签回
  12. ContractStatusEnd = 4 // 已终止
  13. ContractStatusEmailBackUp = 5 // 邮件备案
  14. // 合同登记状态
  15. ContractRegisterStatusIng = 1 // 进行中
  16. ContractRegisterStatusComplete = 2 // 已完成
  17. // 合同登记操作类型
  18. ContractRegisterOpTypeSave = 1 // 合规登记
  19. ContractRegisterOpTypeInvoice = 2 // 开票登记
  20. ContractRegisterOpTypePayment = 3 // 到款登记
  21. ContractRegisterOpTypeStatus = 4 // 修改合同状态
  22. ContractRegisterOpTypeDel = 5 // 删除合同登记
  23. ContractRegisterOpTypeEdit = 6 // 合规编辑
  24. ContractPrePayOpTypeEdit = 7 // 到款预登记
  25. // 合同登记开票类型
  26. ContractInvoiceTypeMake = 1 // 开票登记
  27. ContractInvoiceTypePay = 2 // 到款登记
  28. ContractInvoiceTypePrePay = 3 // 到款预登记
  29. // 到款登记付款方式
  30. ContractPaymentPayTypeYear = 1 // 年付
  31. ContractPaymentPayTypeHalfYear = 2 // 半年付
  32. ContractPaymentPayTypeQuarter = 3 // 季付
  33. ContractPaymentPayTypeOther = 4 // 次付
  34. ContractPaymentPayTypeAbnormal = 5 // 异常
  35. // 基础货币代码(人民币)
  36. BaseCurrencyCode = "CNY"
  37. )
  38. var ContractStatusKeyNameMap = map[int]string{
  39. ContractStatusApproved: "已审批",
  40. ContractStatusSendOut: "单章寄出",
  41. ContractStatusCheckedBack: "已签回",
  42. ContractStatusEnd: "已终止",
  43. ContractStatusEmailBackUp: "邮件备案",
  44. }
  45. var ContractStatusNameKeyMap = map[string]int{
  46. "已审批": ContractStatusApproved,
  47. "单章寄出": ContractStatusSendOut,
  48. "已签回": ContractStatusCheckedBack,
  49. "已终止": ContractStatusEnd,
  50. "邮件备案": ContractStatusEmailBackUp,
  51. }
  52. var ContractInvoiceKeyNameMap = map[int]string{
  53. ContractRegisterOpTypeInvoice: "开票",
  54. ContractRegisterOpTypePayment: "到款",
  55. }
  56. var ContractPaymentPayTypeNameMap = map[int]string{
  57. ContractPaymentPayTypeYear: "年付",
  58. ContractPaymentPayTypeHalfYear: "半年付",
  59. ContractPaymentPayTypeQuarter: "季付",
  60. ContractPaymentPayTypeOther: "次付",
  61. ContractPaymentPayTypeAbnormal: "异常",
  62. }