constants.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. ContractRegisterOpTypePrePay = 7 // 到款预登记
  25. ContractRegisterOpTypePreInvoice = 8 // 开票预登记
  26. // 合同登记开票类型
  27. ContractInvoiceTypeMake = 1 // 开票登记
  28. ContractInvoiceTypePay = 2 // 到款登记
  29. ContractInvoiceTypePreMake = 3 // 开票预登记
  30. ContractInvoiceTypePrePay = 4 // 到款预登记
  31. // 到款登记付款方式
  32. ContractPaymentPayTypeYear = 1 // 年付
  33. ContractPaymentPayTypeHalfYear = 2 // 半年付
  34. ContractPaymentPayTypeQuarter = 3 // 季付
  35. ContractPaymentPayTypeOther = 4 // 次付
  36. ContractPaymentPayTypeAbnormal = 5 // 异常
  37. // 2.5 新合同类型
  38. ContractTypeSelf = 0 // 自付
  39. ContractTypebehalf = 1 // 代付
  40. // 2.5 子合同类型
  41. NewContractTypeNew = 1 // 新签
  42. NewContractTypeRenew = 2 // 续约
  43. NewContractTypePlus = 4 // 补充协议
  44. // 基础货币代码(人民币)
  45. BaseCurrencyCode = "CNY"
  46. )
  47. var ContractStatusKeyNameMap = map[int]string{
  48. ContractStatusApproved: "已审批",
  49. ContractStatusSendOut: "单章寄出",
  50. ContractStatusCheckedBack: "已签回",
  51. ContractStatusEnd: "已终止",
  52. ContractStatusEmailBackUp: "邮件备案",
  53. }
  54. var ContractStatusNameKeyMap = map[string]int{
  55. "已审批": ContractStatusApproved,
  56. "单章寄出": ContractStatusSendOut,
  57. "已签回": ContractStatusCheckedBack,
  58. "已终止": ContractStatusEnd,
  59. "邮件备案": ContractStatusEmailBackUp,
  60. }
  61. var ContractInvoiceKeyNameMap = map[int]string{
  62. ContractRegisterOpTypeInvoice: "开票",
  63. ContractRegisterOpTypePayment: "到款",
  64. }
  65. var ContractPaymentPayTypeNameMap = map[int]string{
  66. ContractPaymentPayTypeYear: "年付",
  67. ContractPaymentPayTypeHalfYear: "半年付",
  68. ContractPaymentPayTypeQuarter: "季付",
  69. ContractPaymentPayTypeOther: "次付",
  70. ContractPaymentPayTypeAbnormal: "异常",
  71. }