1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 物料分类
- * Class Unit
- * @package App\Models
- */
- class ApplyOrder extends Model
- {
- protected $table = "apply_order"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const type_one = 1;
- const type_two = 2;
- const type_three = 3;
- const type_four = 4;
- public static $type_name = [
- self::type_one => '领料申请单',
- self::type_two => '完工入库申请单',
- self::type_three => '包装入库申请单',
- self::type_four => '包装领料申请单',
- ];
- const state_zero = 0;
- const state_one = 1;
- public static $state_name = [
- self::state_zero => '未审核',
- self::state_one => '已审核',
- ];
- }
|