lihaiMiddleOffice/app/common/model/OutboundProduct.php

27 lines
501 B
PHP

<?php
namespace app\common\model;
use app\common\model\BaseModel;
use think\model\concern\SoftDelete;
/**
* PsiOutboundProduct模型
* Class OutboundProduct
* @package app\common\model
*/
class OutboundProduct extends BaseModel
{
use SoftDelete;
protected $name = 'psi_outbound_product';
protected $deleteTime = 'delete_time';
public function getTypeName()
{
return $this->type == 1 ? '退供应商' : ($this->type == 2 ? '报损' : '正常出库');
}
}