diff --git a/app/adminapi/controller/ApprovalIssuanceAchievementDocumentsController.php b/app/adminapi/controller/ApprovalIssuanceAchievementDocumentsController.php new file mode 100644 index 000000000..dd274ee52 --- /dev/null +++ b/app/adminapi/controller/ApprovalIssuanceAchievementDocumentsController.php @@ -0,0 +1,108 @@ +dataLists(new ApprovalIssuanceAchievementDocumentsLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function add() + { + $params = (new ApprovalIssuanceAchievementDocumentsValidate())->post()->goCheck('add'); + $result = ApprovalIssuanceAchievementDocumentsLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ApprovalIssuanceAchievementDocumentsLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function edit() + { + $params = (new ApprovalIssuanceAchievementDocumentsValidate())->post()->goCheck('edit'); + $result = ApprovalIssuanceAchievementDocumentsLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ApprovalIssuanceAchievementDocumentsLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function delete() + { + $params = (new ApprovalIssuanceAchievementDocumentsValidate())->post()->goCheck('delete'); + ApprovalIssuanceAchievementDocumentsLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function detail() + { + $params = (new ApprovalIssuanceAchievementDocumentsValidate())->goCheck('detail'); + $result = ApprovalIssuanceAchievementDocumentsLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/DataReceptionController.php b/app/adminapi/controller/DataReceptionController.php new file mode 100644 index 000000000..5de2c8a59 --- /dev/null +++ b/app/adminapi/controller/DataReceptionController.php @@ -0,0 +1,108 @@ +dataLists(new DataReceptionLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function add() + { + $params = (new DataReceptionValidate())->post()->goCheck('add'); + $result = DataReceptionLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(DataReceptionLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function edit() + { + $params = (new DataReceptionValidate())->post()->goCheck('edit'); + $result = DataReceptionLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(DataReceptionLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function delete() + { + $params = (new DataReceptionValidate())->post()->goCheck('delete'); + DataReceptionLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function detail() + { + $params = (new DataReceptionValidate())->goCheck('detail'); + $result = DataReceptionLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/ProjectCommissionController.php b/app/adminapi/controller/ProjectCommissionController.php new file mode 100644 index 000000000..50a9b0fd4 --- /dev/null +++ b/app/adminapi/controller/ProjectCommissionController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectCommissionLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function add() + { + $params = (new ProjectCommissionValidate())->post()->goCheck('add'); + $result = ProjectCommissionLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectCommissionLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function edit() + { + $params = (new ProjectCommissionValidate())->post()->goCheck('edit'); + $result = ProjectCommissionLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectCommissionLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function delete() + { + $params = (new ProjectCommissionValidate())->post()->goCheck('delete'); + ProjectCommissionLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function detail() + { + $params = (new ProjectCommissionValidate())->goCheck('detail'); + $result = ProjectCommissionLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/ProjectCommissionDetailController.php b/app/adminapi/controller/ProjectCommissionDetailController.php new file mode 100644 index 000000000..18340bcce --- /dev/null +++ b/app/adminapi/controller/ProjectCommissionDetailController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectCommissionDetailLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function add() + { + $params = (new ProjectCommissionDetailValidate())->post()->goCheck('add'); + $result = ProjectCommissionDetailLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectCommissionDetailLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function edit() + { + $params = (new ProjectCommissionDetailValidate())->post()->goCheck('edit'); + $result = ProjectCommissionDetailLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectCommissionDetailLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function delete() + { + $params = (new ProjectCommissionDetailValidate())->post()->goCheck('delete'); + ProjectCommissionDetailLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function detail() + { + $params = (new ProjectCommissionDetailValidate())->goCheck('detail'); + $result = ProjectCommissionDetailLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/TaskDetailController.php b/app/adminapi/controller/TaskDetailController.php new file mode 100644 index 000000000..be823644e --- /dev/null +++ b/app/adminapi/controller/TaskDetailController.php @@ -0,0 +1,108 @@ +dataLists(new TaskDetailLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function add() + { + $params = (new TaskDetailValidate())->post()->goCheck('add'); + $result = TaskDetailLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(TaskDetailLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function edit() + { + $params = (new TaskDetailValidate())->post()->goCheck('edit'); + $result = TaskDetailLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(TaskDetailLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function delete() + { + $params = (new TaskDetailValidate())->post()->goCheck('delete'); + TaskDetailLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function detail() + { + $params = (new TaskDetailValidate())->goCheck('detail'); + $result = TaskDetailLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/TaskHandlingThreeLevelReviewController.php b/app/adminapi/controller/TaskHandlingThreeLevelReviewController.php new file mode 100644 index 000000000..eea734f83 --- /dev/null +++ b/app/adminapi/controller/TaskHandlingThreeLevelReviewController.php @@ -0,0 +1,108 @@ +dataLists(new TaskHandlingThreeLevelReviewLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function add() + { + $params = (new TaskHandlingThreeLevelReviewValidate())->post()->goCheck('add'); + $result = TaskHandlingThreeLevelReviewLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(TaskHandlingThreeLevelReviewLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function edit() + { + $params = (new TaskHandlingThreeLevelReviewValidate())->post()->goCheck('edit'); + $result = TaskHandlingThreeLevelReviewLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(TaskHandlingThreeLevelReviewLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function delete() + { + $params = (new TaskHandlingThreeLevelReviewValidate())->post()->goCheck('delete'); + TaskHandlingThreeLevelReviewLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function detail() + { + $params = (new TaskHandlingThreeLevelReviewValidate())->goCheck('detail'); + $result = TaskHandlingThreeLevelReviewLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ApplyWithSealController.php b/app/adminapi/controller/project_process_management/ApplyWithSealController.php new file mode 100644 index 000000000..2852e3f7c --- /dev/null +++ b/app/adminapi/controller/project_process_management/ApplyWithSealController.php @@ -0,0 +1,108 @@ +dataLists(new ApplyWithSealLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function add() + { + $params = (new ApplyWithSealValidate())->post()->goCheck('add'); + $result = ApplyWithSealLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ApplyWithSealLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function edit() + { + $params = (new ApplyWithSealValidate())->post()->goCheck('edit'); + $result = ApplyWithSealLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ApplyWithSealLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function delete() + { + $params = (new ApplyWithSealValidate())->post()->goCheck('delete'); + ApplyWithSealLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function detail() + { + $params = (new ApplyWithSealValidate())->goCheck('detail'); + $result = ApplyWithSealLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/JianliProjectProgressReportController.php b/app/adminapi/controller/project_process_management/JianliProjectProgressReportController.php new file mode 100644 index 000000000..7d3eafc79 --- /dev/null +++ b/app/adminapi/controller/project_process_management/JianliProjectProgressReportController.php @@ -0,0 +1,108 @@ +dataLists(new JianliProjectProgressReportLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function add() + { + $params = (new JianliProjectProgressReportValidate())->post()->goCheck('add'); + $result = JianliProjectProgressReportLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(JianliProjectProgressReportLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function edit() + { + $params = (new JianliProjectProgressReportValidate())->post()->goCheck('edit'); + $result = JianliProjectProgressReportLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(JianliProjectProgressReportLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function delete() + { + $params = (new JianliProjectProgressReportValidate())->post()->goCheck('delete'); + JianliProjectProgressReportLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function detail() + { + $params = (new JianliProjectProgressReportValidate())->goCheck('detail'); + $result = JianliProjectProgressReportLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ProjectChangeVisaContentController.php b/app/adminapi/controller/project_process_management/ProjectChangeVisaContentController.php new file mode 100644 index 000000000..2d63dec5c --- /dev/null +++ b/app/adminapi/controller/project_process_management/ProjectChangeVisaContentController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectChangeVisaContentLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function add() + { + $params = (new ProjectChangeVisaContentValidate())->post()->goCheck('add'); + $result = ProjectChangeVisaContentLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectChangeVisaContentLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function edit() + { + $params = (new ProjectChangeVisaContentValidate())->post()->goCheck('edit'); + $result = ProjectChangeVisaContentLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectChangeVisaContentLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function delete() + { + $params = (new ProjectChangeVisaContentValidate())->post()->goCheck('delete'); + ProjectChangeVisaContentLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function detail() + { + $params = (new ProjectChangeVisaContentValidate())->goCheck('detail'); + $result = ProjectChangeVisaContentLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ProjectChangeVisaController.php b/app/adminapi/controller/project_process_management/ProjectChangeVisaController.php new file mode 100644 index 000000000..b4e69871c --- /dev/null +++ b/app/adminapi/controller/project_process_management/ProjectChangeVisaController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectChangeVisaLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function add() + { + $params = (new ProjectChangeVisaValidate())->post()->goCheck('add'); + $result = ProjectChangeVisaLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectChangeVisaLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function edit() + { + $params = (new ProjectChangeVisaValidate())->post()->goCheck('edit'); + $result = ProjectChangeVisaLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectChangeVisaLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function delete() + { + $params = (new ProjectChangeVisaValidate())->post()->goCheck('delete'); + ProjectChangeVisaLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function detail() + { + $params = (new ProjectChangeVisaValidate())->goCheck('detail'); + $result = ProjectChangeVisaLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ProjectProgressPaymentController.php b/app/adminapi/controller/project_process_management/ProjectProgressPaymentController.php new file mode 100644 index 000000000..0bff0a118 --- /dev/null +++ b/app/adminapi/controller/project_process_management/ProjectProgressPaymentController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectProgressPaymentLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function add() + { + $params = (new ProjectProgressPaymentValidate())->post()->goCheck('add'); + $result = ProjectProgressPaymentLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectProgressPaymentLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function edit() + { + $params = (new ProjectProgressPaymentValidate())->post()->goCheck('edit'); + $result = ProjectProgressPaymentLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectProgressPaymentLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function delete() + { + $params = (new ProjectProgressPaymentValidate())->post()->goCheck('delete'); + ProjectProgressPaymentLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function detail() + { + $params = (new ProjectProgressPaymentValidate())->goCheck('detail'); + $result = ProjectProgressPaymentLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ProjectProgressPaymentDetailController.php b/app/adminapi/controller/project_process_management/ProjectProgressPaymentDetailController.php new file mode 100644 index 000000000..7189e1dda --- /dev/null +++ b/app/adminapi/controller/project_process_management/ProjectProgressPaymentDetailController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectProgressPaymentDetailLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function add() + { + $params = (new ProjectProgressPaymentDetailValidate())->post()->goCheck('add'); + $result = ProjectProgressPaymentDetailLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectProgressPaymentDetailLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function edit() + { + $params = (new ProjectProgressPaymentDetailValidate())->post()->goCheck('edit'); + $result = ProjectProgressPaymentDetailLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectProgressPaymentDetailLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function delete() + { + $params = (new ProjectProgressPaymentDetailValidate())->post()->goCheck('delete'); + ProjectProgressPaymentDetailLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function detail() + { + $params = (new ProjectProgressPaymentDetailValidate())->goCheck('detail'); + $result = ProjectProgressPaymentDetailLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ProjectRectificationController.php b/app/adminapi/controller/project_process_management/ProjectRectificationController.php new file mode 100644 index 000000000..874f8194f --- /dev/null +++ b/app/adminapi/controller/project_process_management/ProjectRectificationController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectRectificationLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function add() + { + $params = (new ProjectRectificationValidate())->post()->goCheck('add'); + $result = ProjectRectificationLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectRectificationLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function edit() + { + $params = (new ProjectRectificationValidate())->post()->goCheck('edit'); + $result = ProjectRectificationLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectRectificationLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function delete() + { + $params = (new ProjectRectificationValidate())->post()->goCheck('delete'); + ProjectRectificationLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function detail() + { + $params = (new ProjectRectificationValidate())->goCheck('detail'); + $result = ProjectRectificationLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/project_process_management/ProjectSurveySignatureController.php b/app/adminapi/controller/project_process_management/ProjectSurveySignatureController.php new file mode 100644 index 000000000..c9d44f23d --- /dev/null +++ b/app/adminapi/controller/project_process_management/ProjectSurveySignatureController.php @@ -0,0 +1,108 @@ +dataLists(new ProjectSurveySignatureLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function add() + { + $params = (new ProjectSurveySignatureValidate())->post()->goCheck('add'); + $result = ProjectSurveySignatureLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(ProjectSurveySignatureLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function edit() + { + $params = (new ProjectSurveySignatureValidate())->post()->goCheck('edit'); + $result = ProjectSurveySignatureLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(ProjectSurveySignatureLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function delete() + { + $params = (new ProjectSurveySignatureValidate())->post()->goCheck('delete'); + ProjectSurveySignatureLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function detail() + { + $params = (new ProjectSurveySignatureValidate())->goCheck('detail'); + $result = ProjectSurveySignatureLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/task/TaskAllocationController.php b/app/adminapi/controller/task/TaskAllocationController.php new file mode 100644 index 000000000..2acff1c29 --- /dev/null +++ b/app/adminapi/controller/task/TaskAllocationController.php @@ -0,0 +1,108 @@ +dataLists(new TaskAllocationLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function add() + { + $params = (new TaskAllocationValidate())->post()->goCheck('add'); + $result = TaskAllocationLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(TaskAllocationLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function edit() + { + $params = (new TaskAllocationValidate())->post()->goCheck('edit'); + $result = TaskAllocationLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(TaskAllocationLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function delete() + { + $params = (new TaskAllocationValidate())->post()->goCheck('delete'); + TaskAllocationLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function detail() + { + $params = (new TaskAllocationValidate())->goCheck('detail'); + $result = TaskAllocationLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/task/TaskTypeController.php b/app/adminapi/controller/task/TaskTypeController.php new file mode 100644 index 000000000..3c605f942 --- /dev/null +++ b/app/adminapi/controller/task/TaskTypeController.php @@ -0,0 +1,108 @@ +dataLists(new TaskTypeLists()); + } + + + /** + * @notes 添加 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function add() + { + $params = (new TaskTypeValidate())->post()->goCheck('add'); + $result = TaskTypeLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(TaskTypeLogic::getError()); + } + + + /** + * @notes 编辑 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function edit() + { + $params = (new TaskTypeValidate())->post()->goCheck('edit'); + $result = TaskTypeLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(TaskTypeLogic::getError()); + } + + + /** + * @notes 删除 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function delete() + { + $params = (new TaskTypeValidate())->post()->goCheck('delete'); + TaskTypeLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function detail() + { + $params = (new TaskTypeValidate())->goCheck('detail'); + $result = TaskTypeLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php b/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php new file mode 100644 index 000000000..cf7f50d32 --- /dev/null +++ b/app/adminapi/lists/ApprovalIssuanceAchievementDocumentsLists.php @@ -0,0 +1,77 @@ + ['project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function lists(): array + { + return ApprovalIssuanceAchievementDocuments::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'task', 'processes', 'number', 'apptime', 'person', 'tips', 'fd_1', 'fd_2', 'fd_3']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function count(): int + { + return ApprovalIssuanceAchievementDocuments::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/DataReceptionLists.php b/app/adminapi/lists/DataReceptionLists.php new file mode 100644 index 000000000..360893bcb --- /dev/null +++ b/app/adminapi/lists/DataReceptionLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function lists(): array + { + return DataReception::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'apptime', 'person', 'number', 'position', 'tips']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function count(): int + { + return DataReception::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/ProjectCommissionDetailLists.php b/app/adminapi/lists/ProjectCommissionDetailLists.php new file mode 100644 index 000000000..eff1f1c23 --- /dev/null +++ b/app/adminapi/lists/ProjectCommissionDetailLists.php @@ -0,0 +1,77 @@ + ['engineer', 'task_name'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function lists(): array + { + return ProjectCommissionDetail::where($this->searchWhere) + ->field(['id', 'engineer', 'engineer_id', 'task_name', 'task_type', 'professional_type', 'zj_amount', 'sk_amount', 'tc_rate', 'tc_amount', 'pay_amount']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function count(): int + { + return ProjectCommissionDetail::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/ProjectCommissionLists.php b/app/adminapi/lists/ProjectCommissionLists.php new file mode 100644 index 000000000..8c6236c62 --- /dev/null +++ b/app/adminapi/lists/ProjectCommissionLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function lists(): array + { + return ProjectCommission::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'head', 'affcontract', 'industry', 'hk', 'rate', 'ticheng', 'paid_amount', 'bczfze', 'djr', 'apptime', 'remark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function count(): int + { + return ProjectCommission::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/TaskDetailLists.php b/app/adminapi/lists/TaskDetailLists.php new file mode 100644 index 000000000..b262ed7d3 --- /dev/null +++ b/app/adminapi/lists/TaskDetailLists.php @@ -0,0 +1,77 @@ +searchWhere) + ->field(['id', 'task_allocation_dataid', 'task_name', 'task_name_id', 'process', 'task_type_id', 'professional_type', 'engineer', 'engineer_id', 'level', 'first_reviewer', 'first_reviewer_id', 'secondary_reviewer', 'secondary_reviewer_id', 'third_level_reviewer', 'third_level_reviewer_id', 'bid_winning_amount', 'cost', 'approved_amount', 'construction_unit', 'construction_unit_id', 'contact', 'contact_phone', 'days', 'start_date', 'end_date', 'remark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function count(): int + { + return TaskDetail::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php b/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php new file mode 100644 index 000000000..be4b16170 --- /dev/null +++ b/app/adminapi/lists/TaskHandlingThreeLevelReviewLists.php @@ -0,0 +1,77 @@ +searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'task', 'processes', 'rtype', 'zType', 'engineer', 'head', 'examine', 'one', 'two', 'three', 'apptime', 'level', 'area', 'type', 'use', 'construction', 'ask', 'according', 'clbc', 'ssje', 'gcshd', 'hzhj', 'rg', 'xmhd', 'bmhd', 'shbhd', 'kaigong', 'jungong', 'bz']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function count(): int + { + return TaskHandlingThreeLevelReview::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ApplyWithSealLists.php b/app/adminapi/lists/project_process_management/ApplyWithSealLists.php new file mode 100644 index 000000000..9283bd8b3 --- /dev/null +++ b/app/adminapi/lists/project_process_management/ApplyWithSealLists.php @@ -0,0 +1,77 @@ + ['num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function lists(): array + { + return ApplyWithSeal::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'types', 'filetype', 'ridingseam', 'name', 'frequency', 'limit', 'depar', 'stampman', 'project', 'principal', 'content', 'loan', 'borrow', 'returndate', 'applicant', 'date', 'sjborrow', 'sjborrower', 'sjreturn', 'returnee', 'annex']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function count(): int + { + return ApplyWithSeal::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php b/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php new file mode 100644 index 000000000..18ee5d176 --- /dev/null +++ b/app/adminapi/lists/project_process_management/JianliProjectProgressReportLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num', 'datas'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function lists(): array + { + return JianliProjectProgressReport::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'bm_master', 'wt_unit', 'xm_master', 'start_date', 'end_date', 'duration', 'working_hours', 'done_progress', 'bjd_progress', 'djr', 'apptime', 'jdms']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function count(): int + { + return JianliProjectProgressReport::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectChangeVisaContentLists.php b/app/adminapi/lists/project_process_management/ProjectChangeVisaContentLists.php new file mode 100644 index 000000000..72fd233c4 --- /dev/null +++ b/app/adminapi/lists/project_process_management/ProjectChangeVisaContentLists.php @@ -0,0 +1,77 @@ + ['project_change_visa_dataid', 'directory', 'unit_name', 'time', 'major', 'category', 'review_content', 'review_comments', 'reviewer', 'reviewer_id', 'declared_value', 'calculated_value', 'remark'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function lists(): array + { + return ProjectChangeVisaContent::where($this->searchWhere) + ->field(['id', 'project_change_visa_dataid', 'directory', 'unit_name', 'time', 'major', 'category', 'review_content', 'review_comments', 'reviewer', 'reviewer_id', 'declared_value', 'calculated_value', 'remark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function count(): int + { + return ProjectChangeVisaContent::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php b/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php new file mode 100644 index 000000000..8761b8e90 --- /dev/null +++ b/app/adminapi/lists/project_process_management/ProjectChangeVisaLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function lists(): array + { + return ProjectChangeVisa::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'djr', 'djrq']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function count(): int + { + return ProjectChangeVisa::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectProgressPaymentDetailLists.php b/app/adminapi/lists/project_process_management/ProjectProgressPaymentDetailLists.php new file mode 100644 index 000000000..4ce4622be --- /dev/null +++ b/app/adminapi/lists/project_process_management/ProjectProgressPaymentDetailLists.php @@ -0,0 +1,77 @@ +searchWhere) + ->field(['id', 'project_progress_payment_id', 'directory', 'unit_project_name', 'time', 'image_progress', 'declared_cost_tj', 'declared_cost_az', 'declared_cost_other', 'jdsbzj_xiaoji', 'audit_cost_tj', 'audit_cost_az', 'audit_cost_other', 'jdshzj_xiaoji', 'deduction_amount', 'completed_rate', 'contract_total_amount', 'ljwc_funds', 'current_payable_funds', 'payment_rate', 'dcntract_payment_rate', 'remark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function count(): int + { + return ProjectProgressPaymentDetail::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php b/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php new file mode 100644 index 000000000..bab2ff720 --- /dev/null +++ b/app/adminapi/lists/project_process_management/ProjectProgressPaymentLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function lists(): array + { + return ProjectProgressPayment::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'djr', 'djrq', 'sbhj', 'shhj', 'ljhj', 'annex']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function count(): int + { + return ProjectProgressPayment::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectRectificationLists.php b/app/adminapi/lists/project_process_management/ProjectRectificationLists.php new file mode 100644 index 000000000..42a581946 --- /dev/null +++ b/app/adminapi/lists/project_process_management/ProjectRectificationLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function lists(): array + { + return ProjectRectification::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'wt_unit', 'xm_master', 'zx_type', 'zg_master', 'dj_person', 'apptime', 'problem', 'deal_desc']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function count(): int + { + return ProjectRectification::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php b/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php new file mode 100644 index 000000000..a5aeaa104 --- /dev/null +++ b/app/adminapi/lists/project_process_management/ProjectSurveySignatureLists.php @@ -0,0 +1,77 @@ + ['num', 'project', 'project_num'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function lists(): array + { + return ProjectSurveySignature::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'wt_unit', 'jsdw', 'bmfz', 'xmfz', 'riqi', 'people', 'djr', 'apptime', 'content', 'result', 'remark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function count(): int + { + return ProjectSurveySignature::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/task/TaskAllocationLists.php b/app/adminapi/lists/task/TaskAllocationLists.php new file mode 100644 index 000000000..e17f92389 --- /dev/null +++ b/app/adminapi/lists/task/TaskAllocationLists.php @@ -0,0 +1,77 @@ + ['project'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function lists(): array + { + return TaskAllocation::where($this->searchWhere) + ->field(['id', 'dataid', 'num', 'project', 'project_num', 'head', 'apptime', 'annex']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function count(): int + { + return TaskAllocation::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/task/TaskTypeLists.php b/app/adminapi/lists/task/TaskTypeLists.php new file mode 100644 index 000000000..88bc275e9 --- /dev/null +++ b/app/adminapi/lists/task/TaskTypeLists.php @@ -0,0 +1,77 @@ + ['num', 'name'], + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function lists(): array + { + return TaskType::where($this->searchWhere) + ->field(['id', 'dataid', 'project', 'num', 'name', 'superior_sort', 'level', 'remarks']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function count(): int + { + return TaskType::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/logic/ApprovalIssuanceAchievementDocumentsLogic.php b/app/adminapi/logic/ApprovalIssuanceAchievementDocumentsLogic.php new file mode 100644 index 000000000..0206a90f1 --- /dev/null +++ b/app/adminapi/logic/ApprovalIssuanceAchievementDocumentsLogic.php @@ -0,0 +1,130 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'task' => $params['task'], + 'processes' => $params['processes'], + 'number' => $params['number'], + 'apptime' => $params['apptime'], + 'person' => $params['person'], + 'tips' => $params['tips'], + 'fd_1' => $params['fd_1'], + 'fd_2' => $params['fd_2'], + 'fd_3' => $params['fd_3'], + ]); + + 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/02/22 17:57 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ApprovalIssuanceAchievementDocuments::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'task' => $params['task'], + 'processes' => $params['processes'], + 'number' => $params['number'], + 'apptime' => $params['apptime'], + 'person' => $params['person'], + 'tips' => $params['tips'], + 'fd_1' => $params['fd_1'], + 'fd_2' => $params['fd_2'], + 'fd_3' => $params['fd_3'], + ]); + + 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/02/22 17:57 + */ + public static function delete(array $params): bool + { + return ApprovalIssuanceAchievementDocuments::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public static function detail($params): array + { + return ApprovalIssuanceAchievementDocuments::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/DataReceptionLogic.php b/app/adminapi/logic/DataReceptionLogic.php new file mode 100644 index 000000000..c0bbb658b --- /dev/null +++ b/app/adminapi/logic/DataReceptionLogic.php @@ -0,0 +1,136 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'apptime' => $params['apptime'], + 'person' => $params['person'], + 'number' => $params['number'], + 'position' => $params['position'], + 'tips' => $params['tips'], + 'bidding_file' => $params['bidding_file'], + 'zbkzj_file' => $params['zbkzj_file'], + 'gczjht_file' => $params['gczjht_file'], + 'xmbgqzzl_file' => $params['xmbgqzzl_file'], + 'ssgsysjs_file' => $params['ssgsysjs_file'], + 'wlhj_file' => $params['wlhj_file'], + 'other_file' => $params['other_file'], + ]); + + 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/02/23 09:21 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + DataReception::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'apptime' => $params['apptime'], + 'person' => $params['person'], + 'number' => $params['number'], + 'position' => $params['position'], + 'tips' => $params['tips'], + 'bidding_file' => $params['bidding_file'], + 'zbkzj_file' => $params['zbkzj_file'], + 'gczjht_file' => $params['gczjht_file'], + 'xmbgqzzl_file' => $params['xmbgqzzl_file'], + 'ssgsysjs_file' => $params['ssgsysjs_file'], + 'wlhj_file' => $params['wlhj_file'], + 'other_file' => $params['other_file'], + ]); + + 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/02/23 09:21 + */ + public static function delete(array $params): bool + { + return DataReception::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public static function detail($params): array + { + return DataReception::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/ProjectCommissionDetailLogic.php b/app/adminapi/logic/ProjectCommissionDetailLogic.php new file mode 100644 index 000000000..c893ff73e --- /dev/null +++ b/app/adminapi/logic/ProjectCommissionDetailLogic.php @@ -0,0 +1,130 @@ + $params['project_commission_dataid'], + 'engineer' => $params['engineer'], + 'engineer_id' => $params['engineer_id'], + 'task_name' => $params['task_name'], + 'task_type' => $params['task_type'], + 'professional_type' => $params['professional_type'], + 'zj_amount' => $params['zj_amount'], + 'sk_amount' => $params['sk_amount'], + 'tc_rate' => $params['tc_rate'], + 'tc_amount' => $params['tc_amount'], + 'pay_amount' => $params['pay_amount'], + 'remark' => $params['remark'], + 'other_fee' => $params['other_fee'], + ]); + + 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/02/23 09:48 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectCommissionDetail::where('id', $params['id'])->update([ + 'project_commission_dataid' => $params['project_commission_dataid'], + 'engineer' => $params['engineer'], + 'engineer_id' => $params['engineer_id'], + 'task_name' => $params['task_name'], + 'task_type' => $params['task_type'], + 'professional_type' => $params['professional_type'], + 'zj_amount' => $params['zj_amount'], + 'sk_amount' => $params['sk_amount'], + 'tc_rate' => $params['tc_rate'], + 'tc_amount' => $params['tc_amount'], + 'pay_amount' => $params['pay_amount'], + 'remark' => $params['remark'], + 'other_fee' => $params['other_fee'], + ]); + + 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/02/23 09:48 + */ + public static function delete(array $params): bool + { + return ProjectCommissionDetail::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public static function detail($params): array + { + return ProjectCommissionDetail::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/ProjectCommissionLogic.php b/app/adminapi/logic/ProjectCommissionLogic.php new file mode 100644 index 000000000..b1d7e1dfa --- /dev/null +++ b/app/adminapi/logic/ProjectCommissionLogic.php @@ -0,0 +1,134 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'head' => $params['head'], + 'affcontract' => $params['affcontract'], + 'industry' => $params['industry'], + 'hk' => $params['hk'], + 'rate' => $params['rate'], + 'ticheng' => $params['ticheng'], + 'paid_amount' => $params['paid_amount'], + 'bczfze' => $params['bczfze'], + 'djr' => $params['djr'], + 'apptime' => $params['apptime'], + '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/02/23 09:37 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectCommission::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'head' => $params['head'], + 'affcontract' => $params['affcontract'], + 'industry' => $params['industry'], + 'hk' => $params['hk'], + 'rate' => $params['rate'], + 'ticheng' => $params['ticheng'], + 'paid_amount' => $params['paid_amount'], + 'bczfze' => $params['bczfze'], + 'djr' => $params['djr'], + 'apptime' => $params['apptime'], + '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/02/23 09:37 + */ + public static function delete(array $params): bool + { + return ProjectCommission::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public static function detail($params): array + { + return ProjectCommission::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/TaskDetailLogic.php b/app/adminapi/logic/TaskDetailLogic.php new file mode 100644 index 000000000..df25beeb6 --- /dev/null +++ b/app/adminapi/logic/TaskDetailLogic.php @@ -0,0 +1,156 @@ + $params['task_allocation_dataid'], + 'task_name' => $params['task_name'], + 'task_name_id' => $params['task_name_id'], + 'process' => $params['process'], + 'task_type_id' => $params['task_type_id'], + 'professional_type' => $params['professional_type'], + 'engineer' => $params['engineer'], + 'engineer_id' => $params['engineer_id'], + 'level' => $params['level'], + 'first_reviewer' => $params['first_reviewer'], + 'first_reviewer_id' => $params['first_reviewer_id'], + 'secondary_reviewer' => $params['secondary_reviewer'], + 'secondary_reviewer_id' => $params['secondary_reviewer_id'], + 'third_level_reviewer' => $params['third_level_reviewer'], + 'third_level_reviewer_id' => $params['third_level_reviewer_id'], + 'bid_winning_amount' => $params['bid_winning_amount'], + 'cost' => $params['cost'], + 'approved_amount' => $params['approved_amount'], + 'construction_unit' => $params['construction_unit'], + 'construction_unit_id' => $params['construction_unit_id'], + 'contact' => $params['contact'], + 'contact_phone' => $params['contact_phone'], + 'days' => $params['days'], + 'start_date' => $params['start_date'], + 'end_date' => $params['end_date'], + '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/02/22 11:58 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + TaskDetail::where('id', $params['id'])->update([ + 'task_allocation_dataid' => $params['task_allocation_dataid'], + 'task_name' => $params['task_name'], + 'task_name_id' => $params['task_name_id'], + 'process' => $params['process'], + 'task_type_id' => $params['task_type_id'], + 'professional_type' => $params['professional_type'], + 'engineer' => $params['engineer'], + 'engineer_id' => $params['engineer_id'], + 'level' => $params['level'], + 'first_reviewer' => $params['first_reviewer'], + 'first_reviewer_id' => $params['first_reviewer_id'], + 'secondary_reviewer' => $params['secondary_reviewer'], + 'secondary_reviewer_id' => $params['secondary_reviewer_id'], + 'third_level_reviewer' => $params['third_level_reviewer'], + 'third_level_reviewer_id' => $params['third_level_reviewer_id'], + 'bid_winning_amount' => $params['bid_winning_amount'], + 'cost' => $params['cost'], + 'approved_amount' => $params['approved_amount'], + 'construction_unit' => $params['construction_unit'], + 'construction_unit_id' => $params['construction_unit_id'], + 'contact' => $params['contact'], + 'contact_phone' => $params['contact_phone'], + 'days' => $params['days'], + 'start_date' => $params['start_date'], + 'end_date' => $params['end_date'], + '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/02/22 11:58 + */ + public static function delete(array $params): bool + { + return TaskDetail::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public static function detail($params): array + { + return TaskDetail::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/TaskHandlingThreeLevelReviewLogic.php b/app/adminapi/logic/TaskHandlingThreeLevelReviewLogic.php new file mode 100644 index 000000000..bb7b78073 --- /dev/null +++ b/app/adminapi/logic/TaskHandlingThreeLevelReviewLogic.php @@ -0,0 +1,178 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'task' => $params['task'], + 'processes' => $params['processes'], + 'rtype' => $params['rtype'], + 'zType' => $params['zType'], + 'engineer' => $params['engineer'], + 'head' => $params['head'], + 'examine' => $params['examine'], + 'one' => $params['one'], + 'two' => $params['two'], + 'three' => $params['three'], + 'apptime' => $params['apptime'], + 'level' => $params['level'], + 'area' => $params['area'], + 'type' => $params['type'], + 'use' => $params['use'], + 'construction' => $params['construction'], + 'ask' => $params['ask'], + 'according' => $params['according'], + 'clbc' => $params['clbc'], + 'ssje' => $params['ssje'], + 'gcshd' => $params['gcshd'], + 'hzhj' => $params['hzhj'], + 'rg' => $params['rg'], + 'xmhd' => $params['xmhd'], + 'bmhd' => $params['bmhd'], + 'shbhd' => $params['shbhd'], + 'kaigong' => $params['kaigong'], + 'jungong' => $params['jungong'], + 'bz' => $params['bz'], + 'result_file' => $params['result_file'], + 'master_annex' => $params['master_annex'], + 'bm_annex' => $params['bm_annex'], + 'shb_annex' => $params['shb_annex'], + ]); + + 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/02/22 17:18 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + TaskHandlingThreeLevelReview::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'task' => $params['task'], + 'processes' => $params['processes'], + 'rtype' => $params['rtype'], + 'zType' => $params['zType'], + 'engineer' => $params['engineer'], + 'head' => $params['head'], + 'examine' => $params['examine'], + 'one' => $params['one'], + 'two' => $params['two'], + 'three' => $params['three'], + 'apptime' => $params['apptime'], + 'level' => $params['level'], + 'area' => $params['area'], + 'type' => $params['type'], + 'use' => $params['use'], + 'construction' => $params['construction'], + 'ask' => $params['ask'], + 'according' => $params['according'], + 'clbc' => $params['clbc'], + 'ssje' => $params['ssje'], + 'gcshd' => $params['gcshd'], + 'hzhj' => $params['hzhj'], + 'rg' => $params['rg'], + 'xmhd' => $params['xmhd'], + 'bmhd' => $params['bmhd'], + 'shbhd' => $params['shbhd'], + 'kaigong' => $params['kaigong'], + 'jungong' => $params['jungong'], + 'bz' => $params['bz'], + 'result_file' => $params['result_file'], + 'master_annex' => $params['master_annex'], + 'bm_annex' => $params['bm_annex'], + 'shb_annex' => $params['shb_annex'], + ]); + + 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/02/22 17:18 + */ + public static function delete(array $params): bool + { + return TaskHandlingThreeLevelReview::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public static function detail($params): array + { + return TaskHandlingThreeLevelReview::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ApplyWithSealLogic.php b/app/adminapi/logic/project_process_management/ApplyWithSealLogic.php new file mode 100644 index 000000000..ea0b4c85c --- /dev/null +++ b/app/adminapi/logic/project_process_management/ApplyWithSealLogic.php @@ -0,0 +1,150 @@ + $params['dataid'], + 'num' => $params['num'], + 'types' => $params['types'], + 'filetype' => $params['filetype'], + 'ridingseam' => $params['ridingseam'], + 'name' => $params['name'], + 'frequency' => $params['frequency'], + 'limit' => $params['limit'], + 'depar' => $params['depar'], + 'stampman' => $params['stampman'], + 'project' => $params['project'], + 'principal' => $params['principal'], + 'content' => $params['content'], + 'loan' => $params['loan'], + 'borrow' => $params['borrow'], + 'returndate' => $params['returndate'], + 'applicant' => $params['applicant'], + 'date' => $params['date'], + 'sjborrow' => $params['sjborrow'], + 'sjborrower' => $params['sjborrower'], + 'sjreturn' => $params['sjreturn'], + 'returnee' => $params['returnee'], + 'annex' => $params['annex'], + ]); + + 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/02/23 15:05 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ApplyWithSeal::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'types' => $params['types'], + 'filetype' => $params['filetype'], + 'ridingseam' => $params['ridingseam'], + 'name' => $params['name'], + 'frequency' => $params['frequency'], + 'limit' => $params['limit'], + 'depar' => $params['depar'], + 'stampman' => $params['stampman'], + 'project' => $params['project'], + 'principal' => $params['principal'], + 'content' => $params['content'], + 'loan' => $params['loan'], + 'borrow' => $params['borrow'], + 'returndate' => $params['returndate'], + 'applicant' => $params['applicant'], + 'date' => $params['date'], + 'sjborrow' => $params['sjborrow'], + 'sjborrower' => $params['sjborrower'], + 'sjreturn' => $params['sjreturn'], + 'returnee' => $params['returnee'], + 'annex' => $params['annex'], + ]); + + 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/02/23 15:05 + */ + public static function delete(array $params): bool + { + return ApplyWithSeal::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public static function detail($params): array + { + return ApplyWithSeal::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/JianliProjectProgressReportLogic.php b/app/adminapi/logic/project_process_management/JianliProjectProgressReportLogic.php new file mode 100644 index 000000000..ade0dad22 --- /dev/null +++ b/app/adminapi/logic/project_process_management/JianliProjectProgressReportLogic.php @@ -0,0 +1,140 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'bm_master' => $params['bm_master'], + 'wt_unit' => $params['wt_unit'], + 'xm_master' => $params['xm_master'], + 'start_date' => $params['start_date'], + 'end_date' => $params['end_date'], + 'duration' => $params['duration'], + 'working_hours' => $params['working_hours'], + 'done_progress' => $params['done_progress'], + 'bjd_progress' => $params['bjd_progress'], + 'djr' => $params['djr'], + 'apptime' => $params['apptime'], + 'jdms' => $params['jdms'], + 'datas' => $params['datas'], + 'fd_23' => $params['fd_23'], + ]); + + 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/02/23 11:47 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + JianliProjectProgressReport::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'bm_master' => $params['bm_master'], + 'wt_unit' => $params['wt_unit'], + 'xm_master' => $params['xm_master'], + 'start_date' => $params['start_date'], + 'end_date' => $params['end_date'], + 'duration' => $params['duration'], + 'working_hours' => $params['working_hours'], + 'done_progress' => $params['done_progress'], + 'bjd_progress' => $params['bjd_progress'], + 'djr' => $params['djr'], + 'apptime' => $params['apptime'], + 'jdms' => $params['jdms'], + 'datas' => $params['datas'], + 'fd_23' => $params['fd_23'], + ]); + + 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/02/23 11:47 + */ + public static function delete(array $params): bool + { + return JianliProjectProgressReport::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public static function detail($params): array + { + return JianliProjectProgressReport::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ProjectChangeVisaContentLogic.php b/app/adminapi/logic/project_process_management/ProjectChangeVisaContentLogic.php new file mode 100644 index 000000000..908ea0dc8 --- /dev/null +++ b/app/adminapi/logic/project_process_management/ProjectChangeVisaContentLogic.php @@ -0,0 +1,130 @@ + $params['project_change_visa_dataid'], + 'directory' => $params['directory'], + 'unit_name' => $params['unit_name'], + 'time' => $params['time'], + 'major' => $params['major'], + 'category' => $params['category'], + 'review_content' => $params['review_content'], + 'review_comments' => $params['review_comments'], + 'reviewer' => $params['reviewer'], + 'reviewer_id' => $params['reviewer_id'], + 'declared_value' => $params['declared_value'], + 'calculated_value' => $params['calculated_value'], + '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/02/23 10:27 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectChangeVisaContent::where('id', $params['id'])->update([ + 'project_change_visa_dataid' => $params['project_change_visa_dataid'], + 'directory' => $params['directory'], + 'unit_name' => $params['unit_name'], + 'time' => $params['time'], + 'major' => $params['major'], + 'category' => $params['category'], + 'review_content' => $params['review_content'], + 'review_comments' => $params['review_comments'], + 'reviewer' => $params['reviewer'], + 'reviewer_id' => $params['reviewer_id'], + 'declared_value' => $params['declared_value'], + 'calculated_value' => $params['calculated_value'], + '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/02/23 10:27 + */ + public static function delete(array $params): bool + { + return ProjectChangeVisaContent::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public static function detail($params): array + { + return ProjectChangeVisaContent::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ProjectChangeVisaLogic.php b/app/adminapi/logic/project_process_management/ProjectChangeVisaLogic.php new file mode 100644 index 000000000..28ab51f81 --- /dev/null +++ b/app/adminapi/logic/project_process_management/ProjectChangeVisaLogic.php @@ -0,0 +1,116 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'djr' => $params['djr'], + 'djrq' => $params['djrq'], + ]); + + 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/02/23 09:58 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectChangeVisa::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'djr' => $params['djr'], + 'djrq' => $params['djrq'], + ]); + + 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/02/23 09:58 + */ + public static function delete(array $params): bool + { + return ProjectChangeVisa::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public static function detail($params): array + { + return ProjectChangeVisa::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ProjectProgressPaymentDetailLogic.php b/app/adminapi/logic/project_process_management/ProjectProgressPaymentDetailLogic.php new file mode 100644 index 000000000..fab224af9 --- /dev/null +++ b/app/adminapi/logic/project_process_management/ProjectProgressPaymentDetailLogic.php @@ -0,0 +1,146 @@ + $params['project_progress_payment_id'], + 'directory' => $params['directory'], + 'unit_project_name' => $params['unit_project_name'], + 'time' => $params['time'], + 'image_progress' => $params['image_progress'], + 'declared_cost_tj' => $params['declared_cost_tj'], + 'declared_cost_az' => $params['declared_cost_az'], + 'declared_cost_other' => $params['declared_cost_other'], + 'jdsbzj_xiaoji' => $params['jdsbzj_xiaoji'], + 'audit_cost_tj' => $params['audit_cost_tj'], + 'audit_cost_az' => $params['audit_cost_az'], + 'audit_cost_other' => $params['audit_cost_other'], + 'jdshzj_xiaoji' => $params['jdshzj_xiaoji'], + 'deduction_amount' => $params['deduction_amount'], + 'completed_rate' => $params['completed_rate'], + 'contract_total_amount' => $params['contract_total_amount'], + 'ljwc_funds' => $params['ljwc_funds'], + 'current_payable_funds' => $params['current_payable_funds'], + 'payment_rate' => $params['payment_rate'], + 'dcntract_payment_rate' => $params['dcntract_payment_rate'], + '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/02/23 14:17 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectProgressPaymentDetail::where('id', $params['id'])->update([ + 'project_progress_payment_id' => $params['project_progress_payment_id'], + 'directory' => $params['directory'], + 'unit_project_name' => $params['unit_project_name'], + 'time' => $params['time'], + 'image_progress' => $params['image_progress'], + 'declared_cost_tj' => $params['declared_cost_tj'], + 'declared_cost_az' => $params['declared_cost_az'], + 'declared_cost_other' => $params['declared_cost_other'], + 'jdsbzj_xiaoji' => $params['jdsbzj_xiaoji'], + 'audit_cost_tj' => $params['audit_cost_tj'], + 'audit_cost_az' => $params['audit_cost_az'], + 'audit_cost_other' => $params['audit_cost_other'], + 'jdshzj_xiaoji' => $params['jdshzj_xiaoji'], + 'deduction_amount' => $params['deduction_amount'], + 'completed_rate' => $params['completed_rate'], + 'contract_total_amount' => $params['contract_total_amount'], + 'ljwc_funds' => $params['ljwc_funds'], + 'current_payable_funds' => $params['current_payable_funds'], + 'payment_rate' => $params['payment_rate'], + 'dcntract_payment_rate' => $params['dcntract_payment_rate'], + '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/02/23 14:17 + */ + public static function delete(array $params): bool + { + return ProjectProgressPaymentDetail::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public static function detail($params): array + { + return ProjectProgressPaymentDetail::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ProjectProgressPaymentLogic.php b/app/adminapi/logic/project_process_management/ProjectProgressPaymentLogic.php new file mode 100644 index 000000000..d9eb7ae49 --- /dev/null +++ b/app/adminapi/logic/project_process_management/ProjectProgressPaymentLogic.php @@ -0,0 +1,124 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'djr' => $params['djr'], + 'djrq' => $params['djrq'], + 'sbhj' => $params['sbhj'], + 'shhj' => $params['shhj'], + 'ljhj' => $params['ljhj'], + 'annex' => $params['annex'], + ]); + + 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/02/23 13:47 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectProgressPayment::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'djr' => $params['djr'], + 'djrq' => $params['djrq'], + 'sbhj' => $params['sbhj'], + 'shhj' => $params['shhj'], + 'ljhj' => $params['ljhj'], + 'annex' => $params['annex'], + ]); + + 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/02/23 13:47 + */ + public static function delete(array $params): bool + { + return ProjectProgressPayment::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public static function detail($params): array + { + return ProjectProgressPayment::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ProjectRectificationLogic.php b/app/adminapi/logic/project_process_management/ProjectRectificationLogic.php new file mode 100644 index 000000000..a64910de0 --- /dev/null +++ b/app/adminapi/logic/project_process_management/ProjectRectificationLogic.php @@ -0,0 +1,132 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'wt_unit' => $params['wt_unit'], + 'xm_master' => $params['xm_master'], + 'zx_type' => $params['zx_type'], + 'zg_master' => $params['zg_master'], + 'dj_person' => $params['dj_person'], + 'apptime' => $params['apptime'], + 'problem' => $params['problem'], + 'deal_desc' => $params['deal_desc'], + 'remark' => $params['remark'], + 'annex' => $params['annex'], + ]); + + 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/02/23 11:22 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectRectification::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'wt_unit' => $params['wt_unit'], + 'xm_master' => $params['xm_master'], + 'zx_type' => $params['zx_type'], + 'zg_master' => $params['zg_master'], + 'dj_person' => $params['dj_person'], + 'apptime' => $params['apptime'], + 'problem' => $params['problem'], + 'deal_desc' => $params['deal_desc'], + 'remark' => $params['remark'], + 'annex' => $params['annex'], + ]); + + 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/02/23 11:22 + */ + public static function delete(array $params): bool + { + return ProjectRectification::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public static function detail($params): array + { + return ProjectRectification::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/project_process_management/ProjectSurveySignatureLogic.php b/app/adminapi/logic/project_process_management/ProjectSurveySignatureLogic.php new file mode 100644 index 000000000..383de4892 --- /dev/null +++ b/app/adminapi/logic/project_process_management/ProjectSurveySignatureLogic.php @@ -0,0 +1,134 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'wt_unit' => $params['wt_unit'], + 'jsdw' => $params['jsdw'], + 'bmfz' => $params['bmfz'], + 'xmfz' => $params['xmfz'], + 'riqi' => $params['riqi'], + 'people' => $params['people'], + 'djr' => $params['djr'], + 'apptime' => $params['apptime'], + 'content' => $params['content'], + 'result' => $params['result'], + '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/02/23 11:06 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + ProjectSurveySignature::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'wt_unit' => $params['wt_unit'], + 'jsdw' => $params['jsdw'], + 'bmfz' => $params['bmfz'], + 'xmfz' => $params['xmfz'], + 'riqi' => $params['riqi'], + 'people' => $params['people'], + 'djr' => $params['djr'], + 'apptime' => $params['apptime'], + 'content' => $params['content'], + 'result' => $params['result'], + '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/02/23 11:06 + */ + public static function delete(array $params): bool + { + return ProjectSurveySignature::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public static function detail($params): array + { + return ProjectSurveySignature::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/task/TaskAllocationLogic.php b/app/adminapi/logic/task/TaskAllocationLogic.php new file mode 100644 index 000000000..cacdc41d5 --- /dev/null +++ b/app/adminapi/logic/task/TaskAllocationLogic.php @@ -0,0 +1,118 @@ + $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'head' => $params['head'], + 'apptime' => $params['apptime'], + 'annex' => $params['annex'], + ]); + + 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/02/22 10:47 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + TaskAllocation::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'num' => $params['num'], + 'project' => $params['project'], + 'project_num' => $params['project_num'], + 'head' => $params['head'], + 'apptime' => $params['apptime'], + 'annex' => $params['annex'], + ]); + + 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/02/22 10:47 + */ + public static function delete(array $params): bool + { + return TaskAllocation::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public static function detail($params): array + { + return TaskAllocation::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/task/TaskTypeLogic.php b/app/adminapi/logic/task/TaskTypeLogic.php new file mode 100644 index 000000000..e7172745e --- /dev/null +++ b/app/adminapi/logic/task/TaskTypeLogic.php @@ -0,0 +1,118 @@ + $params['dataid'], + 'project' => $params['project'], + 'num' => $params['num'], + 'name' => $params['name'], + 'superior_sort' => $params['superior_sort'], + 'level' => $params['level'], + 'remarks' => $params['remarks'], + ]); + + 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/02/22 10:06 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + TaskType::where('id', $params['id'])->update([ + 'dataid' => $params['dataid'], + 'project' => $params['project'], + 'num' => $params['num'], + 'name' => $params['name'], + 'superior_sort' => $params['superior_sort'], + 'level' => $params['level'], + 'remarks' => $params['remarks'], + ]); + + 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/02/22 10:06 + */ + public static function delete(array $params): bool + { + return TaskType::destroy($params['id']); + } + + + /** + * @notes 获取详情 + * @param $params + * @return array + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public static function detail($params): array + { + return TaskType::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/validate/ApprovalIssuanceAchievementDocumentsValidate.php b/app/adminapi/validate/ApprovalIssuanceAchievementDocumentsValidate.php new file mode 100644 index 000000000..92917a464 --- /dev/null +++ b/app/adminapi/validate/ApprovalIssuanceAchievementDocumentsValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ApprovalIssuanceAchievementDocumentsValidate + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ApprovalIssuanceAchievementDocumentsValidate + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ApprovalIssuanceAchievementDocumentsValidate + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ApprovalIssuanceAchievementDocumentsValidate + * @author likeadmin + * @date 2024/02/22 17:57 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/DataReceptionValidate.php b/app/adminapi/validate/DataReceptionValidate.php new file mode 100644 index 000000000..2e8a8f8a8 --- /dev/null +++ b/app/adminapi/validate/DataReceptionValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return DataReceptionValidate + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return DataReceptionValidate + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return DataReceptionValidate + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return DataReceptionValidate + * @author likeadmin + * @date 2024/02/23 09:21 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/ProjectCommissionDetailValidate.php b/app/adminapi/validate/ProjectCommissionDetailValidate.php new file mode 100644 index 000000000..f2f7df3e8 --- /dev/null +++ b/app/adminapi/validate/ProjectCommissionDetailValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectCommissionDetailValidate + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectCommissionDetailValidate + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectCommissionDetailValidate + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectCommissionDetailValidate + * @author likeadmin + * @date 2024/02/23 09:48 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/ProjectCommissionValidate.php b/app/adminapi/validate/ProjectCommissionValidate.php new file mode 100644 index 000000000..e77392704 --- /dev/null +++ b/app/adminapi/validate/ProjectCommissionValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectCommissionValidate + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectCommissionValidate + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectCommissionValidate + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectCommissionValidate + * @author likeadmin + * @date 2024/02/23 09:37 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/TaskDetailValidate.php b/app/adminapi/validate/TaskDetailValidate.php new file mode 100644 index 000000000..ac15fdb0d --- /dev/null +++ b/app/adminapi/validate/TaskDetailValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return TaskDetailValidate + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return TaskDetailValidate + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return TaskDetailValidate + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return TaskDetailValidate + * @author likeadmin + * @date 2024/02/22 11:58 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/TaskHandlingThreeLevelReviewValidate.php b/app/adminapi/validate/TaskHandlingThreeLevelReviewValidate.php new file mode 100644 index 000000000..8bfcced01 --- /dev/null +++ b/app/adminapi/validate/TaskHandlingThreeLevelReviewValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return TaskHandlingThreeLevelReviewValidate + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return TaskHandlingThreeLevelReviewValidate + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return TaskHandlingThreeLevelReviewValidate + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return TaskHandlingThreeLevelReviewValidate + * @author likeadmin + * @date 2024/02/22 17:18 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ApplyWithSealValidate.php b/app/adminapi/validate/project_process_management/ApplyWithSealValidate.php new file mode 100644 index 000000000..c16cd06c1 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ApplyWithSealValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ApplyWithSealValidate + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ApplyWithSealValidate + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ApplyWithSealValidate + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ApplyWithSealValidate + * @author likeadmin + * @date 2024/02/23 15:05 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/JianliProjectProgressReportValidate.php b/app/adminapi/validate/project_process_management/JianliProjectProgressReportValidate.php new file mode 100644 index 000000000..4df07591e --- /dev/null +++ b/app/adminapi/validate/project_process_management/JianliProjectProgressReportValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return JianliProjectProgressReportValidate + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return JianliProjectProgressReportValidate + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return JianliProjectProgressReportValidate + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return JianliProjectProgressReportValidate + * @author likeadmin + * @date 2024/02/23 11:47 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ProjectChangeVisaContentValidate.php b/app/adminapi/validate/project_process_management/ProjectChangeVisaContentValidate.php new file mode 100644 index 000000000..2c16d5c76 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ProjectChangeVisaContentValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectChangeVisaContentValidate + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectChangeVisaContentValidate + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectChangeVisaContentValidate + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectChangeVisaContentValidate + * @author likeadmin + * @date 2024/02/23 10:27 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ProjectChangeVisaValidate.php b/app/adminapi/validate/project_process_management/ProjectChangeVisaValidate.php new file mode 100644 index 000000000..1e8dab5a4 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ProjectChangeVisaValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectChangeVisaValidate + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectChangeVisaValidate + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectChangeVisaValidate + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectChangeVisaValidate + * @author likeadmin + * @date 2024/02/23 09:58 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ProjectProgressPaymentDetailValidate.php b/app/adminapi/validate/project_process_management/ProjectProgressPaymentDetailValidate.php new file mode 100644 index 000000000..a853b8747 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ProjectProgressPaymentDetailValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectProgressPaymentDetailValidate + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectProgressPaymentDetailValidate + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectProgressPaymentDetailValidate + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectProgressPaymentDetailValidate + * @author likeadmin + * @date 2024/02/23 14:17 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ProjectProgressPaymentValidate.php b/app/adminapi/validate/project_process_management/ProjectProgressPaymentValidate.php new file mode 100644 index 000000000..2c2634cc2 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ProjectProgressPaymentValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectProgressPaymentValidate + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectProgressPaymentValidate + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectProgressPaymentValidate + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectProgressPaymentValidate + * @author likeadmin + * @date 2024/02/23 13:47 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ProjectRectificationValidate.php b/app/adminapi/validate/project_process_management/ProjectRectificationValidate.php new file mode 100644 index 000000000..4bf125b58 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ProjectRectificationValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectRectificationValidate + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectRectificationValidate + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectRectificationValidate + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectRectificationValidate + * @author likeadmin + * @date 2024/02/23 11:22 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/project_process_management/ProjectSurveySignatureValidate.php b/app/adminapi/validate/project_process_management/ProjectSurveySignatureValidate.php new file mode 100644 index 000000000..49176d764 --- /dev/null +++ b/app/adminapi/validate/project_process_management/ProjectSurveySignatureValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return ProjectSurveySignatureValidate + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return ProjectSurveySignatureValidate + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return ProjectSurveySignatureValidate + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return ProjectSurveySignatureValidate + * @author likeadmin + * @date 2024/02/23 11:06 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/task/TaskAllocationValidate.php b/app/adminapi/validate/task/TaskAllocationValidate.php new file mode 100644 index 000000000..936b2506e --- /dev/null +++ b/app/adminapi/validate/task/TaskAllocationValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return TaskAllocationValidate + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return TaskAllocationValidate + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return TaskAllocationValidate + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return TaskAllocationValidate + * @author likeadmin + * @date 2024/02/22 10:47 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/task/TaskTypeValidate.php b/app/adminapi/validate/task/TaskTypeValidate.php new file mode 100644 index 000000000..23112665c --- /dev/null +++ b/app/adminapi/validate/task/TaskTypeValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return TaskTypeValidate + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return TaskTypeValidate + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return TaskTypeValidate + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return TaskTypeValidate + * @author likeadmin + * @date 2024/02/22 10:06 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/common/model/ApprovalIssuanceAchievementDocuments.php b/app/common/model/ApprovalIssuanceAchievementDocuments.php new file mode 100644 index 000000000..aec1bcd24 --- /dev/null +++ b/app/common/model/ApprovalIssuanceAchievementDocuments.php @@ -0,0 +1,34 @@ +