|
|
@@ -16,6 +16,7 @@ namespace app\common\model\master_worker;
|
|
|
|
|
|
|
|
|
use app\common\model\BaseModel;
|
|
|
+use app\common\model\dict\DictData;
|
|
|
use app\common\model\works\ReturnWork;
|
|
|
use app\common\model\works\ServiceWork;
|
|
|
use think\facade\Log;
|
|
|
@@ -31,6 +32,14 @@ class SalaryItemPermanently extends BaseModel
|
|
|
|
|
|
protected $name = 'salary_item_permanently';
|
|
|
|
|
|
+
|
|
|
+ public function getTermTextAttr($value,$data):string
|
|
|
+ {
|
|
|
+ $dictData = DictData::whereIn('type_value', 'salary_item')->column('name','value');
|
|
|
+ return $dictData[$data['term']] ?? '';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 接单服务费
|
|
|
public function salary_item_1($permanently_settlement_id,$master_worker_id,$params,$extra = [])
|
|
|
{
|