24 lines
627 B
PHP
24 lines
627 B
PHP
<?php
|
|
namespace app\common\model\zjzx_finance;
|
|
|
|
use app\common\model\BaseModel;
|
|
use app\common\model\dict\DictData;
|
|
use think\model\concern\SoftDelete;
|
|
|
|
|
|
/**
|
|
* 造价咨询--开票台账模型
|
|
* Class ZjzxInvoice
|
|
* @package app\common\model\zjzx_finance
|
|
*/
|
|
class ZjzxInvoice extends BaseModel
|
|
{
|
|
use SoftDelete;
|
|
protected $name = 'zjzx_invoice';
|
|
protected $deleteTime = 'delete_time';
|
|
|
|
public function getInvoiceTypeTextAttr($value,$data){
|
|
$dict = DictData::where('type_value','zjzx_invoice_type')->column('name','value');
|
|
return !empty($data['invoice_type']) ? $dict[$data['invoice_type']] : '';
|
|
}
|
|
} |