OrderOperation.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. public static $type = [
  41. self::zero => '系统设置变更 ',
  42. self::one => '线上派单',
  43. self::two => '门店派单',
  44. self::three => '合同确认',
  45. self::four => '合同弃审',
  46. self::five => '合同公司完结',
  47. self::six => '合同客户完结',
  48. self::seven => '金额记账记录增加',
  49. self::eight => '发货单确认',
  50. self::nine => '退换货审核',
  51. self::ten => '退换货弃审',
  52. self::eve => '施工单审核',
  53. self::twl => '施工单弃审',
  54. self::thi => '采购确认',
  55. self::fourteen => '采购入库',
  56. self::fif => '采购入库弃审',
  57. self::sixty => '合同修改负责人',
  58. self::seventeen => '合同修改协同人',
  59. self::eighteen => '合同分配',
  60. self::nineteen => '合同移交',
  61. self::twenty => '采购确认弃审',
  62. self::twenty_one => '收付款单审核',
  63. self::twenty_two => '收付款单弃审',
  64. self::twenty_three => '客户分配',
  65. self::twenty_four => '客户移交',
  66. self::twenty_five => '合同批量确认',
  67. self::twenty_six => '施工单分配/调配',
  68. self::twenty_seven => '活动包确认',
  69. self::twenty_eight => '活动包弃审',
  70. ];
  71. }