OrderOperation.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class OrderOperation extends Model
  5. {
  6. protected $table = "order_operation"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. //审批操作对应的数值
  11. const zero = 0;
  12. const one = 1;
  13. const two = 2;
  14. const three = 3;
  15. const four = 4;
  16. const five = 5;
  17. const six = 6;
  18. const seven = 7;
  19. const eight = 8;
  20. const nine = 9;
  21. const ten = 10;
  22. const eve = 11;
  23. const twl = 12;
  24. const thi = 13;
  25. const fourteen = 14;
  26. const fif = 15;
  27. const sixty = 16;
  28. const seventeen = 17;
  29. const eighteen = 18;
  30. const nineteen = 19;
  31. const twenty = 20;
  32. const twenty_one = 21;
  33. const twenty_two = 22;
  34. const twenty_three = 23;
  35. const twenty_four = 24;
  36. const twenty_five = 25;
  37. const twenty_six = 26;
  38. const twenty_seven = 27;
  39. const twenty_eight = 28;
  40. const twenty_nine = 29;
  41. const thirty = 30;
  42. const thirty_one = 31;
  43. const thirty_two = 32;
  44. const thirty_three = 33;
  45. public static $type = [
  46. self::zero => '系统设置变更 ',
  47. self::one => '线上派单',
  48. self::two => '门店派单',
  49. self::three => '合同确认',
  50. self::four => '合同弃审',
  51. self::five => '合同公司完结',
  52. self::six => '合同客户完结',
  53. self::seven => '金额记账记录增加',
  54. self::eight => '发货单确认',
  55. self::nine => '退换货审核',
  56. self::ten => '退换货弃审',
  57. self::eve => '施工单审核',
  58. self::twl => '施工单弃审',
  59. self::thi => '采购确认',
  60. self::fourteen => '采购入库',
  61. self::fif => '采购入库弃审',
  62. self::sixty => '合同修改负责人',
  63. self::seventeen => '合同修改协同人',
  64. self::eighteen => '合同分配',
  65. self::nineteen => '合同移交',
  66. self::twenty => '采购确认弃审',
  67. self::twenty_one => '收付款单审核',
  68. self::twenty_two => '收付款单弃审',
  69. self::twenty_three => '客户分配',
  70. self::twenty_four => '客户移交',
  71. self::twenty_five => '合同批量确认',
  72. self::twenty_six => '施工单分配/调配',
  73. self::twenty_seven => '活动包确认',
  74. self::twenty_eight => '活动包弃审',
  75. self::twenty_nine => '虚拟采购单确认',
  76. self::thirty => '虚拟采购单弃审',
  77. self::thirty_one => '合同批量门店派单',
  78. self::thirty_two => '申请出库',
  79. self::thirty_three => '销售单仓库出库',
  80. ];
  81. }