PurchaseOrder.php 846 B

123456789101112131415161718192021222324252627282930
  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 prefix = 'CG';
  12. public static $name = [
  13. self::STATE_ZERO => '未确认',
  14. self::STATE_ONE => '已确认',
  15. ];
  16. const Order_type_one = 1;//普通采购
  17. const Order_type_two = 2;//代发采购
  18. const Order_type_three = 3;//采购施工(安装费)
  19. public static $order_type = [
  20. self::Order_type_one => '普通采购',
  21. self::Order_type_two => '代发采购',
  22. self::Order_type_three => '采购施工(安装费)'
  23. ];
  24. const range_function = 'purchaseRange';
  25. }