dataLists(new ProjectEquipmentBudgetLists()); } /** * @notes 添加机具预算 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function add() { $params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('add'); $result = ProjectEquipmentBudgetLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectEquipmentBudgetLogic::getError()); } /** * @notes 编辑机具预算 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function edit() { $params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('edit'); $result = ProjectEquipmentBudgetLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectEquipmentBudgetLogic::getError()); } /** * @notes 删除机具预算 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function delete() { $params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('delete'); ProjectEquipmentBudgetLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取机具预算详情 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function detail() { $params = (new ProjectEquipmentBudgetValidate())->goCheck('detail'); $result = ProjectEquipmentBudgetLogic::detail($params); return $this->data($result); } }