diff --git a/app/adminapi/controller/financial/FinancialBudgetDocController.php b/app/adminapi/controller/financial/FinancialBudgetDocController.php index 7c7b01848..c6caea9e7 100644 --- a/app/adminapi/controller/financial/FinancialBudgetDocController.php +++ b/app/adminapi/controller/financial/FinancialBudgetDocController.php @@ -107,5 +107,8 @@ return $this->data($result); } - + public function datas() + { + return $this->data(FinancialBudgetDocLogic::datas()); + } } \ No newline at end of file diff --git a/app/adminapi/controller/financial/FinancialDepartmentIncomeSettlementController.php b/app/adminapi/controller/financial/FinancialDepartmentIncomeSettlementController.php new file mode 100644 index 000000000..2532bfb80 --- /dev/null +++ b/app/adminapi/controller/financial/FinancialDepartmentIncomeSettlementController.php @@ -0,0 +1,111 @@ +dataLists(new FinancialDepartmentIncomeSettlementLists()); + } + + + /** + * @notes 添加财务管理--部门收入结算 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function add() + { + $params = (new FinancialDepartmentIncomeSettlementValidate())->post()->goCheck('add'); + $result = FinancialDepartmentIncomeSettlementLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(FinancialDepartmentIncomeSettlementLogic::getError()); + } + + + /** + * @notes 编辑财务管理--部门收入结算 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function edit() + { + $params = (new FinancialDepartmentIncomeSettlementValidate())->post()->goCheck('edit'); + $result = FinancialDepartmentIncomeSettlementLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(FinancialDepartmentIncomeSettlementLogic::getError()); + } + + + /** + * @notes 删除财务管理--部门收入结算 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function delete() + { + $params = (new FinancialDepartmentIncomeSettlementValidate())->post()->goCheck('delete'); + $result = FinancialDepartmentIncomeSettlementLogic::delete($params); + if (true === $result) { + return $this->success('删除成功', [], 1, 1); + } + return $this->fail(FinancialDepartmentIncomeSettlementLogic::getError()); + } + + + /** + * @notes 获取财务管理--部门收入结算详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function detail() + { + $params = (new FinancialDepartmentIncomeSettlementValidate())->goCheck('detail'); + $result = FinancialDepartmentIncomeSettlementLogic::detail($params); + return $this->data($result); + } + + + } \ No newline at end of file diff --git a/app/adminapi/controller/financial/FinancialDepartmentIncomeSettlementDetailController.php b/app/adminapi/controller/financial/FinancialDepartmentIncomeSettlementDetailController.php new file mode 100644 index 000000000..e59fb42f2 --- /dev/null +++ b/app/adminapi/controller/financial/FinancialDepartmentIncomeSettlementDetailController.php @@ -0,0 +1,108 @@ +dataLists(new FinancialDepartmentIncomeSettlementDetailLists()); + } + + + /** + * @notes 添加财务管理--部门收入结算--结算明细 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function add() + { + $params = (new FinancialDepartmentIncomeSettlementDetailValidate())->post()->goCheck('add'); + $result = FinancialDepartmentIncomeSettlementDetailLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(FinancialDepartmentIncomeSettlementDetailLogic::getError()); + } + + + /** + * @notes 编辑财务管理--部门收入结算--结算明细 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function edit() + { + $params = (new FinancialDepartmentIncomeSettlementDetailValidate())->post()->goCheck('edit'); + $result = FinancialDepartmentIncomeSettlementDetailLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(FinancialDepartmentIncomeSettlementDetailLogic::getError()); + } + + + /** + * @notes 删除财务管理--部门收入结算--结算明细 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function delete() + { + $params = (new FinancialDepartmentIncomeSettlementDetailValidate())->post()->goCheck('delete'); + FinancialDepartmentIncomeSettlementDetailLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取财务管理--部门收入结算--结算明细详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function detail() + { + $params = (new FinancialDepartmentIncomeSettlementDetailValidate())->goCheck('detail'); + $result = FinancialDepartmentIncomeSettlementDetailLogic::detail($params); + return $this->data($result); + } + + + } \ No newline at end of file diff --git a/app/adminapi/lists/financial/FinancialDepartmentIncomeSettlementDetailLists.php b/app/adminapi/lists/financial/FinancialDepartmentIncomeSettlementDetailLists.php new file mode 100644 index 000000000..435dc48fe --- /dev/null +++ b/app/adminapi/lists/financial/FinancialDepartmentIncomeSettlementDetailLists.php @@ -0,0 +1,84 @@ + ['department_income_settlement_id', 'dept_id', 'type'], + '%like%' => ['settlement_code'], + + ]; + } + + + /** + * @notes 获取财务管理--部门收入结算--结算明细列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function lists(): array + { + return FinancialDepartmentIncomeSettlementDetail::where($this->searchWhere) + ->field(['id', 'department_income_settlement_id', 'dept_id', 'type', 'amount', 'settlement_amount', 'settlement_code']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select()->each(function ($data) { + $dept = Dept::field('name')->where('id', $data['dept_id'])->findOrEmpty(); + $data['dept_name'] = $dept['name']; + $data['type_text'] = $data->type_text; + }) + ->toArray(); + } + + + /** + * @notes 获取财务管理--部门收入结算--结算明细数量 + * @return int + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function count(): int + { + return FinancialDepartmentIncomeSettlementDetail::where($this->searchWhere)->count(); + } + + } \ No newline at end of file diff --git a/app/adminapi/lists/financial/FinancialDepartmentIncomeSettlementLists.php b/app/adminapi/lists/financial/FinancialDepartmentIncomeSettlementLists.php new file mode 100644 index 000000000..7be8af6e6 --- /dev/null +++ b/app/adminapi/lists/financial/FinancialDepartmentIncomeSettlementLists.php @@ -0,0 +1,111 @@ + ['budget_doc_id'], + ]; + } + + + /** + * @notes 获取财务管理--部门收入结算列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function lists(): array + { + $params = $this->request->get(); + $where = []; + if (!empty($params['contract_id'])) { + $budget_doc_ids = FinancialBudgetDoc::where('contract_id', $params['contract_id'])->column('id'); + $where[] = ['budget_doc_id', 'in', $budget_doc_ids]; + } + if (!empty($params['create_time'])) { + $date = explode(',', $params['create_time']); + $where[] = ['create_time', 'between', [strtotime($date[0] . ' 00:00:00'), strtotime($date[1] . ' 23:59:59')]]; + } + return FinancialDepartmentIncomeSettlement::where($this->searchWhere)->where($where) + ->field(['id', 'budget_doc_id', 'create_time']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select()->each(function ($data) { + $budget_doc = FinancialBudgetDoc::field('contract_id,code,name,issue_date')->where('id', $data['budget_doc_id'])->findOrEmpty(); + $contract = CostApprovedProject::field('contract_name,money')->where('id', $budget_doc['contract_id'])->findOrEmpty(); + $data['budget_doc_code'] = $budget_doc['code']; + $data['budget_doc_name'] = $budget_doc['name']; + $data['contract_name'] = $contract['contract_name']; + $data['contract_money'] = $contract['money']; + $data['issue_date'] = $budget_doc['issue_date']; + $data['amount'] = FinancialDepartmentIncomeSettlementDetail::where('department_income_settlement_id', $data['id'])->sum('amount'); + $data['settlement_amount'] = FinancialDepartmentIncomeSettlementDetail::where('department_income_settlement_id', $data['id'])->sum('settlement_amount'); + unset($data['budget_doc_id']); + }) + ->toArray(); + } + + + /** + * @notes 获取财务管理--部门收入结算数量 + * @return int + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function count(): int + { + $params = $this->request->get(); + $where = []; + if (!empty($params['contract_id'])) { + $budget_doc_ids = FinancialBudgetDoc::where('contract_id', $params['contract_id'])->column('id'); + $where[] = ['budget_doc_id', 'in', $budget_doc_ids]; + } + if (!empty($params['create_time'])) { + $date = explode(',', $params['create_time']); + $where[] = ['create_time', 'between', [strtotime($date[0] . ' 00:00:00'), strtotime($date[1] . ' 23:59:59')]]; + } + return FinancialDepartmentIncomeSettlement::where($this->searchWhere)->where($where)->count(); + } + + } \ No newline at end of file diff --git a/app/adminapi/logic/financial/FinancialBudgetDocLogic.php b/app/adminapi/logic/financial/FinancialBudgetDocLogic.php index d5c260bda..72aa6ea10 100644 --- a/app/adminapi/logic/financial/FinancialBudgetDocLogic.php +++ b/app/adminapi/logic/financial/FinancialBudgetDocLogic.php @@ -163,4 +163,11 @@ $data['contract_type_text'] = $contract->contract_type_text; return $data->toArray(); } + + public static function datas() + { + return FinancialBudgetDoc::field(['id', 'name'])->order(['id' => 'desc'])->select()->each(function ($data) { + $data['projectinfo'] = 'ID:' . $data['id'] . ' / 名称:' . $data['name']; + })->toArray(); + } } \ No newline at end of file diff --git a/app/adminapi/logic/financial/FinancialDepartmentIncomeSettlementDetailLogic.php b/app/adminapi/logic/financial/FinancialDepartmentIncomeSettlementDetailLogic.php new file mode 100644 index 000000000..af7a69af1 --- /dev/null +++ b/app/adminapi/logic/financial/FinancialDepartmentIncomeSettlementDetailLogic.php @@ -0,0 +1,122 @@ + $params['department_income_settlement_id'], + 'dept_id' => $params['dept_id'], + 'type' => $params['type'], + 'amount' => $params['amount'], + 'settlement_amount' => $params['settlement_amount'], + 'settlement_code' => $params['settlement_code'], + 'remark' => $params['remark'], + ]); + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 编辑财务管理--部门收入结算--结算明细 + * @param array $params + * @return bool + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + FinancialDepartmentIncomeSettlementDetail::where('id', $params['id'])->update([ + 'department_income_settlement_id' => $params['department_income_settlement_id'], + 'dept_id' => $params['dept_id'], + 'type' => $params['type'], + 'amount' => $params['amount'], + 'settlement_amount' => $params['settlement_amount'], + 'settlement_code' => $params['settlement_code'], + 'remark' => $params['remark'], + 'update_time' => time(), + ]); + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 删除财务管理--部门收入结算--结算明细 + * @param array $params + * @return bool + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public static function delete(array $params): bool + { + return FinancialDepartmentIncomeSettlementDetail::destroy($params['id']); + } + + + /** + * @notes 获取财务管理--部门收入结算--结算明细详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public static function detail($params): array + { + $data = FinancialDepartmentIncomeSettlementDetail::withoutField('create_time,update_time,delete_time')->findOrEmpty($params['id']); + $dept = Dept::field('name')->where('id', $data['dept_id'])->findOrEmpty(); + $data['dept_name'] = $dept['name']; + $data['type_text'] = $data->type_text; + return $data->toArray(); + } + } \ No newline at end of file diff --git a/app/adminapi/logic/financial/FinancialDepartmentIncomeSettlementLogic.php b/app/adminapi/logic/financial/FinancialDepartmentIncomeSettlementLogic.php new file mode 100644 index 000000000..0db08e4a5 --- /dev/null +++ b/app/adminapi/logic/financial/FinancialDepartmentIncomeSettlementLogic.php @@ -0,0 +1,170 @@ + $params['budget_doc_id'], + 'desc' => $params['desc'], + 'create_user' => $params['create_user'], + 'create_time' => !empty($params['create_time']) ? strtotime($params['create_time']) : time(), + ]); + if (!empty($params['detail'])) { + foreach ($params['detail'] as $v) { + FinancialDepartmentIncomeSettlementDetail::create([ + 'department_income_settlement_id' => $res->id, + 'dept_id' => $v['dept_id'], + 'type' => $v['type'], + 'amount' => $v['amount'], + 'settlement_amount' => $v['settlement_amount'], + 'settlement_code' => $v['settlement_code'], + 'remark' => $v['remark'], + ]); + } + } + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 编辑财务管理--部门收入结算 + * @param array $params + * @return bool + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + FinancialDepartmentIncomeSettlement::where('id', $params['id'])->update([ + 'budget_doc_id' => $params['budget_doc_id'], + 'desc' => $params['desc'], + 'create_user' => $params['create_user'], + 'create_time' => !empty($params['create_time']) ? strtotime($params['create_time']) : time(), + 'update_time' => time() + ]); + if (!empty($params['detail'])) { + foreach ($params['detail'] as $v) { + if (!empty($v['id'])) { + FinancialDepartmentIncomeSettlementDetail::where('id', $v['id'])->update([ + 'department_income_settlement_id' => $params['id'], + 'dept_id' => $v['dept_id'], + 'type' => $v['type'], + 'amount' => $v['amount'], + 'settlement_amount' => $v['settlement_amount'], + 'settlement_code' => $v['settlement_code'], + 'remark' => $v['remark'], + 'update_time' => time(), + ]); + } else { + FinancialDepartmentIncomeSettlementDetail::create([ + 'department_income_settlement_id' => $params['id'], + 'dept_id' => $v['dept_id'], + 'type' => $v['type'], + 'amount' => $v['amount'], + 'settlement_amount' => $v['settlement_amount'], + 'settlement_code' => $v['settlement_code'], + 'remark' => $v['remark'], + ]); + } + } + } + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 删除财务管理--部门收入结算 + * @param array $params + * @return bool + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public static function delete(array $params): bool + { + $detail = FinancialDepartmentIncomeSettlementDetail::where('department_income_settlement_id', 'in', $params['id'])->findOrEmpty(); + if (!$detail->isEmpty()) { + self::setError('此数据关联了结算明细信息,需删除结算明细信息'); + return false; + } + return FinancialDepartmentIncomeSettlement::destroy($params['id']); + } + + + /** + * @notes 获取财务管理--部门收入结算详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public static function detail($params): array + { + $data = FinancialDepartmentIncomeSettlement::withoutField('update_time,delete_time')->findOrEmpty($params['id']); + $budget_doc = FinancialBudgetDoc::field('contract_id,code,name,issue_date')->where('id', $data['budget_doc_id'])->findOrEmpty(); + $contract = CostApprovedProject::field('contract_name,part_a,create_date,money,contract_type')->where('id', $budget_doc['contract_id'])->findOrEmpty(); + $data['code'] = $budget_doc['code']; + $data['name'] = $budget_doc['name']; + $data['issue_date'] = $budget_doc['issue_date']; + $data['contract_name'] = $contract['contract_name']; + $data['part_a'] = $contract['part_a']; + $data['create_date'] = $contract['create_date']; + $data['money'] = $contract['money']; + $data['contract_type'] = $contract['contract_type']; + $data['contract_type_text'] = $contract->contract_type_text; + return $data->toArray(); + } + } \ No newline at end of file diff --git a/app/adminapi/validate/financial/FinancialDepartmentIncomeSettlementDetailValidate.php b/app/adminapi/validate/financial/FinancialDepartmentIncomeSettlementDetailValidate.php new file mode 100644 index 000000000..99a2476cf --- /dev/null +++ b/app/adminapi/validate/financial/FinancialDepartmentIncomeSettlementDetailValidate.php @@ -0,0 +1,132 @@ + 'require|checkData', + 'department_income_settlement_id' => 'require|checkDepartmentIncomeSettlement', + 'dept_id' => 'require|checkDept', + 'type' => 'require|checkType', + 'amount' => 'require|float|gt:0', + 'settlement_amount' => 'require|float|gt:0', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + 'department_income_settlement_id' => '部门收入结算id', + 'dept_id' => '部门', + 'type' => '预算分成方式', + 'amount' => '预算分成金额', + 'settlement_amount' => '结算金额', + ]; + + + /** + * @notes 添加场景 + * @return FinancialDepartmentIncomeSettlementDetailValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneAdd() + { + return $this->only(['department_income_settlement_id', 'dept_id', 'type', 'amount', 'settlement_amount']); + } + + + /** + * @notes 编辑场景 + * @return FinancialDepartmentIncomeSettlementDetailValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneEdit() + { + return $this->only(['id', 'department_income_settlement_id', 'dept_id', 'type', 'amount', 'settlement_amount']); + } + + + /** + * @notes 删除场景 + * @return FinancialDepartmentIncomeSettlementDetailValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneDelete() + { + return $this->only(['id'])->remove('id', 'checkData'); + } + + + /** + * @notes 详情场景 + * @return FinancialDepartmentIncomeSettlementDetailValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + + public function checkData($value): bool|string + { + $data = FinancialDepartmentIncomeSettlementDetail::where('id', $value)->findOrEmpty(); + return $data->isEmpty() ? '数据不存在' : true; + } + + public function checkDepartmentIncomeSettlement($value): bool|string + { + $data = FinancialDepartmentIncomeSettlement::where('id', $value)->findOrEmpty(); + return $data->isEmpty() ? '部门收入结算信息不存在' : true; + } + + public function checkDept($value): bool|string + { + $data = Dept::where('id', $value)->findOrEmpty(); + return $data->isEmpty() ? '部门信息不存在' : true; + } + + public function checkType($value): bool|string + { + $dict = DictData::where('type_value', 'budget_share_method')->column('value'); + return !in_array($value, $dict) ? '预算分成方式数据值无效' : true; + } + + } \ No newline at end of file diff --git a/app/adminapi/validate/financial/FinancialDepartmentIncomeSettlementValidate.php b/app/adminapi/validate/financial/FinancialDepartmentIncomeSettlementValidate.php new file mode 100644 index 000000000..fb4b174f5 --- /dev/null +++ b/app/adminapi/validate/financial/FinancialDepartmentIncomeSettlementValidate.php @@ -0,0 +1,155 @@ + 'require|checkData', + 'budget_doc_id' => 'require|checkBudgetDoc', + 'create_user' => 'require', + 'create_time' => 'require|dateFormat:Y-m-d H:i:s', + 'detail' => 'checkDetail' + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + 'budget_doc_id' => '预算书id', + 'create_user' => '结算人', + 'create_time' => '结算日期', + ]; + + + /** + * @notes 添加场景 + * @return FinancialDepartmentIncomeSettlementValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneAdd() + { + return $this->only(['budget_doc_id', 'desc', 'create_user', 'create_time']); + } + + + /** + * @notes 编辑场景 + * @return FinancialDepartmentIncomeSettlementValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneEdit() + { + return $this->only(['id', 'budget_doc_id', 'desc', 'create_user', 'create_time']); + } + + + /** + * @notes 删除场景 + * @return FinancialDepartmentIncomeSettlementValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneDelete() + { + return $this->only(['id'])->remove('id', 'checkData'); + } + + + /** + * @notes 详情场景 + * @return FinancialDepartmentIncomeSettlementValidate + * @author likeadmin + * @date 2024/03/27 09:46 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + + public function checkData($value): bool|string + { + $data = FinancialDepartmentIncomeSettlement::where('id', $value)->findOrEmpty(); + return $data->isEmpty() ? '数据不存在' : true; + } + + public function checkBudgetDoc($value): bool|string + { + $data = FinancialBudgetDoc::where('id', $value)->findOrEmpty(); + return $data->isEmpty() ? '项目预算书信息不存在' : true; + } + + public function checkDetail($value): bool|string + { + if (empty($value) || $value == '') return true; + if (!is_array($value)) return '结算明细数据格式错误'; + foreach ($value as $k => $v) { + if (isset($v['id']) && !empty($v['id'])) { + $data = FinancialDepartmentIncomeSettlementDetail::where('id', $v['id'])->findOrEmpty(); + if ($data->isEmpty()) { + return '第' . ($k + 1) . '行结算明细信息不存在'; + } + } + if (empty($v['dept_id'])) { + return '第' . ($k + 1) . '行部门为空'; + } else { + $dept = Dept::where('id', $v['dept_id'])->findOrEmpty(); + if ($dept->isEmpty()) return '第' . ($k + 1) . '行部门信息不存在'; + } + if (empty($v['type'])) { + return '第' . ($k + 1) . '行预算分成方式为空'; + } else { + $dict = DictData::where('type_value', 'budget_share_method')->column('value'); + if (!in_array($v['type'], $dict)) return '第' . ($k + 1) . '行预算分成方式数据值无效'; + } + if (empty($v['amount'])) { + return '第' . ($k + 1) . '行预算分成金额为空'; + } else { + if (!is_numeric($v['amount']) || $v['amount'] < 0) return '第' . ($k + 1) . '行预算分成金额必须是大于零的数字'; + } + if (empty($v['settlement_amount'])) { + return '第' . ($k + 1) . '行结算金额为空'; + } else { + if (!is_numeric($v['settlement_amount']) || $v['settlement_amount'] < 0) return '第' . ($k + 1) . '行结算金额必须是大于零的数字'; + } + } + return true; + } + + } \ No newline at end of file diff --git a/app/common/model/financial/FinancialDepartmentIncomeSettlement.php b/app/common/model/financial/FinancialDepartmentIncomeSettlement.php new file mode 100644 index 000000000..f0f62b112 --- /dev/null +++ b/app/common/model/financial/FinancialDepartmentIncomeSettlement.php @@ -0,0 +1,34 @@ +column('name', 'value'); + return !empty($data['type']) ? $dict[$data['type']] : ''; + } + } \ No newline at end of file