dataLists(new FinancialRefundLists()); } /** * @notes 添加财务管理--到账台账 * @return \think\response\Json * @author likeadmin * @date 2024/03/25 14:46 */ public function add() { $params = (new FinancialRefundValidate())->post()->goCheck('add'); $result = FinancialRefundLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(FinancialRefundLogic::getError()); } /** * @notes 编辑财务管理--到账台账 * @return \think\response\Json * @author likeadmin * @date 2024/03/25 14:46 */ public function edit() { $params = (new FinancialRefundValidate())->post()->goCheck('edit'); $result = FinancialRefundLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(FinancialRefundLogic::getError()); } public function download() { $params = (new FinancialRefundValidate())->post()->goCheck('detail'); $result = FinancialRefundLogic::download($params); if (false === $result) { return $this->fail(FinancialRefundLogic::getError()); } return $this->success('下载成功', ['url' => '/' . $result], 1, 1); } /** * @notes 删除财务管理--到账台账 * @return \think\response\Json * @author likeadmin * @date 2024/03/25 14:46 */ public function delete() { $params = (new FinancialRefundValidate())->post()->goCheck('delete'); FinancialRefundLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取财务管理--到账台账详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/25 14:46 */ public function detail() { $params = (new FinancialRefundValidate())->goCheck('detail'); $result = FinancialRefundLogic::detail($params); return $this->data($result); } }