PurchaseOrder.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Model;
  3. class PurchaseOrder extends UseScopeBaseModel
  4. {
  5. protected $table = "purchase_order"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const STATE_ZERO = 0;//未确认
  10. const STATE_ONE = 1;//待确认
  11. const STATE_TWO = 2;//未入库
  12. const STATE_Three = 3;//待入库
  13. const STATE_Four = 4;//已入库
  14. const prefix = 'CG';
  15. public static $name = [
  16. self::STATE_ZERO => '未确认',
  17. self::STATE_ONE => '待确认',
  18. self::STATE_TWO => '未入库',
  19. self::STATE_Three => '待入库',
  20. self::STATE_Four => '已入库',
  21. ];
  22. const Order_type_one = 1;//总社采购
  23. const Order_type_two = 2;//分社外采
  24. const Order_type_three = 3;//分社要货 不要合同
  25. const Order_type_four = 4;//分社订货 要合同
  26. const Order_type_five = 5;
  27. public static $order_type = [
  28. self::Order_type_one => '总社采购',
  29. self::Order_type_two => '分社外采',
  30. self::Order_type_three => '分社要货',
  31. self::Order_type_four => '分社订货',
  32. ];
  33. const range_function = 'purchaseRange';
  34. }