Compare commits
171 Commits
Author | SHA1 | Date | |
---|---|---|---|
6575a6ca5f | |||
2b908a0c5f | |||
![]() |
e46db2d7fd | ||
![]() |
7bb9aea11d | ||
![]() |
9937c217a2 | ||
![]() |
9d89a91a7e | ||
![]() |
b04b7e3cc6 | ||
![]() |
035d551e6c | ||
![]() |
6d4e22ac38 | ||
![]() |
5e2611b708 | ||
![]() |
b9f55f007a | ||
![]() |
ea2ad715b6 | ||
![]() |
7430df889b | ||
![]() |
f2f9930b1d | ||
![]() |
718ba7c753 | ||
![]() |
9c3a0776db | ||
![]() |
e8af3d517e | ||
![]() |
cbefd79821 | ||
![]() |
449c6bed6e | ||
![]() |
1b89cef9a9 | ||
![]() |
0f6ebdb702 | ||
![]() |
1083752499 | ||
![]() |
2e7dc28f53 | ||
![]() |
e3f68fb903 | ||
![]() |
7e8f5d440e | ||
![]() |
221de465ef | ||
![]() |
60c3233999 | ||
![]() |
95528e30fe | ||
![]() |
36879dc814 | ||
![]() |
9a6684ca68 | ||
![]() |
3b6d685d39 | ||
![]() |
6f5d76cb5b | ||
![]() |
fac7df684e | ||
![]() |
a6cc3e1574 | ||
![]() |
553026c7cb | ||
![]() |
9294e94b27 | ||
![]() |
d68f042298 | ||
![]() |
0830b5d352 | ||
![]() |
3e3d91ef9f | ||
![]() |
c8249989dc | ||
![]() |
b16bb6cf33 | ||
![]() |
f57706c70e | ||
![]() |
156fc86462 | ||
![]() |
2deb11111c | ||
![]() |
c8b07a587c | ||
![]() |
6b1ced0607 | ||
![]() |
92eba38dbc | ||
![]() |
53d348f1dd | ||
![]() |
fa35b0f229 | ||
![]() |
918ceee955 | ||
![]() |
d6633b6b36 | ||
![]() |
9b7276962b | ||
![]() |
d8a8eb903a | ||
![]() |
2c662bd80b | ||
![]() |
ed5032ad9e | ||
![]() |
ddd3f648c5 | ||
![]() |
7ae71b9b6e | ||
![]() |
516c1e9f39 | ||
![]() |
1aecc6692f | ||
![]() |
abcf31cb51 | ||
![]() |
4a94919d54 | ||
![]() |
2fd360b7e3 | ||
![]() |
a05482cfda | ||
![]() |
fa330ad525 | ||
![]() |
d1c85499ba | ||
![]() |
2a19b1ade3 | ||
![]() |
03b4955c5a | ||
![]() |
a217839599 | ||
![]() |
d502c146f0 | ||
![]() |
8a377c9e7c | ||
![]() |
e1d9cfbfcf | ||
![]() |
4e70eb134c | ||
![]() |
b0983b5e44 | ||
![]() |
5c89b5877e | ||
![]() |
4e7f893f1d | ||
![]() |
4d9b87eeab | ||
![]() |
b25848903b | ||
![]() |
ba9b372500 | ||
![]() |
d7652ed93d | ||
![]() |
59239952d1 | ||
![]() |
aad3b2b25f | ||
![]() |
e83f361589 | ||
![]() |
c4990ab1c1 | ||
![]() |
9b3771af8a | ||
![]() |
53d2317c51 | ||
![]() |
751dbcdf60 | ||
![]() |
95ec668875 | ||
![]() |
6d2340b405 | ||
61a360315c | |||
![]() |
4a7126bf57 | ||
![]() |
557ddadcac | ||
![]() |
91b6171966 | ||
![]() |
1e86fae201 | ||
e7716013c8 | |||
e7bcee391e | |||
![]() |
df31327afc | ||
![]() |
4a60a2b390 | ||
![]() |
7c0baf8ca5 | ||
![]() |
5154e38137 | ||
![]() |
60bc509523 | ||
![]() |
b8b76ce6d7 | ||
![]() |
71fca81585 | ||
![]() |
e42ffe94c6 | ||
![]() |
e88dc9a5f8 | ||
![]() |
e8bc887f75 | ||
![]() |
54b4b6882d | ||
![]() |
b1cba49907 | ||
![]() |
61934129ad | ||
![]() |
4eba3d5d55 | ||
![]() |
de027c4ee7 | ||
![]() |
960b1e405a | ||
![]() |
7abc2c8f99 | ||
![]() |
1f78c86f1f | ||
![]() |
04e57230e5 | ||
![]() |
927b627a82 | ||
![]() |
c864b997c9 | ||
![]() |
0c54efee19 | ||
![]() |
984f94e48d | ||
![]() |
cda15e3ec7 | ||
![]() |
2d6c313e11 | ||
![]() |
48e75aae46 | ||
![]() |
9611b29dc2 | ||
![]() |
5ce0329659 | ||
![]() |
5fa8c06bee | ||
![]() |
47eea6e88f | ||
![]() |
b69b852264 | ||
![]() |
121238959d | ||
![]() |
4270fc4066 | ||
![]() |
66b4a7064b | ||
![]() |
65e801ce32 | ||
![]() |
ab51708606 | ||
![]() |
3ef0794361 | ||
![]() |
c0a17ba17c | ||
![]() |
08d0699137 | ||
![]() |
fe29d2137a | ||
![]() |
abccccb9da | ||
![]() |
907c48c206 | ||
![]() |
855d5d8312 | ||
![]() |
c733310ca5 | ||
![]() |
35abf26d3d | ||
![]() |
7a533b05a8 | ||
![]() |
bb7582be81 | ||
![]() |
b67fc3956e | ||
![]() |
c4e27aaceb | ||
![]() |
b0da07a99b | ||
![]() |
1f940dd8fa | ||
![]() |
83b7352031 | ||
![]() |
23bd2137a7 | ||
![]() |
8fcd8586fb | ||
![]() |
156d5b79e5 | ||
![]() |
d1493ac92c | ||
![]() |
4049eae84a | ||
![]() |
a56c8537d9 | ||
![]() |
48f886539c | ||
![]() |
2e97359fde | ||
![]() |
3ad1cd2bb0 | ||
![]() |
756fd45d3a | ||
![]() |
ff63458ff4 | ||
![]() |
5e8ce86683 | ||
![]() |
33dc29bd2e | ||
![]() |
c2602efd8f | ||
![]() |
2d65f10046 | ||
![]() |
7722f84bf8 | ||
![]() |
c10139c098 | ||
![]() |
f067685e93 | ||
![]() |
65696f759d | ||
![]() |
9156682cb4 | ||
![]() |
13f76e622f | ||
![]() |
54853749b4 | ||
![]() |
37b79f5e2a | ||
![]() |
8baaeb0607 |
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\ApprovalIssuanceAchievementDocumentsLists;
|
||||
use app\adminapi\logic\ApprovalIssuanceAchievementDocumentsLogic;
|
||||
use app\adminapi\validate\ApprovalIssuanceAchievementDocumentsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ApprovalIssuanceAchievementDocuments控制器
|
||||
* Class ApprovalIssuanceAchievementDocumentsController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class ApprovalIssuanceAchievementDocumentsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:57
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
120
app/adminapi/controller/CostConsultationReportController.php
Normal file
120
app/adminapi/controller/CostConsultationReportController.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
use app\common\model\cost_project\CostApprovedProject;
|
||||
use app\common\model\DataReception;
|
||||
use app\common\model\dept\Dept;
|
||||
use app\common\model\task\TaskAllocation;
|
||||
use app\common\model\TaskHandlingThreeLevelReview;
|
||||
use think\facade\Db;
|
||||
|
||||
class CostConsultationReportController extends BaseAdminController
|
||||
{
|
||||
// 造价报表控制器
|
||||
|
||||
// 造价合同台账
|
||||
public function cost_approved_project_list()
|
||||
{
|
||||
$page_no = $this->request->param('page_no', 1);
|
||||
$page_size = $this->request->param('page_size', 15);
|
||||
$params = $this->request->param();
|
||||
$contract_name = $params['contract_name'] ?? '';
|
||||
$contract_num = $params['contract_num'] ?? '';
|
||||
$part_a = $params['part_a'] ?? '';
|
||||
$query = Db::name('cost_approved_project')->where(function ($query) use ($contract_name, $contract_num, $part_a) {
|
||||
if ($contract_name) {
|
||||
$query->where('contract_name', 'like', '%'.$contract_name.'%');
|
||||
}
|
||||
if ($contract_num) {
|
||||
$query->where('contract_num', '=', $contract_num);
|
||||
}
|
||||
if ($part_a) {
|
||||
$query->where('part_a', 'like', '%'.$part_a.'%');
|
||||
}
|
||||
});
|
||||
$count = $query->count();
|
||||
$lists = $query->page($page_no, $page_size)->select()->each(function($item){
|
||||
$item['start_date'] = date('Y-m-d', $item['start_date']);
|
||||
$item['end_date'] = date('Y-m-d', $item['end_date']);
|
||||
$item['due_time'] = date('Y-m-d', $item['due_time']);
|
||||
$item['create_date'] = date('Y-m-d', $item['create_date']);
|
||||
return $item;
|
||||
});
|
||||
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
|
||||
}
|
||||
|
||||
// 造价项目信息汇总
|
||||
public function cost_project_report()
|
||||
{
|
||||
$page_no = $this->request->param('page_no', 1);
|
||||
$page_size = $this->request->param('page_size', 15);
|
||||
$params = $this->request->param();
|
||||
$project_name = $params['project_name'] ?? '';
|
||||
$project_num = $params['project_num'] ?? '';
|
||||
$contract_name = $params['contract_name'] ?? '';
|
||||
$aunit = $params['aunit'] ?? '';
|
||||
|
||||
$query = Db::name('cost_project')->alias('p')->leftJoin('cost_approved_project c', 'p.contract_id=c.id')->where(function ($query) use ($project_name, $project_num, $contract_name, $aunit) {
|
||||
if ($contract_name) {
|
||||
$query->where('c.contract_name', 'like', '%'.$contract_name.'%');
|
||||
}
|
||||
if ($project_num) {
|
||||
$query->where('p.project_num', '=', $project_num);
|
||||
}
|
||||
if ($project_name) {
|
||||
$query->where('p.project_name', 'like', '%'.$project_name.'%');
|
||||
}
|
||||
if ($aunit) {
|
||||
$query->where('p.aunit', 'like', '%'.$aunit.'%');
|
||||
}
|
||||
});
|
||||
$count = $query->count();
|
||||
$lists = $query->append(['dept'])->withAttr('dept', function ($value, $data){
|
||||
return Dept::where('id', $data['depar'])->findOrEmpty()->toArray();
|
||||
})->page($page_no, $page_size)->select()->each(function($item){
|
||||
$item['start_date'] = date('Y-m-d', $item['start_date']);
|
||||
$item['end_date'] = date('Y-m-d', $item['end_date']);
|
||||
return $item;
|
||||
});
|
||||
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
|
||||
}
|
||||
|
||||
// 项目全过程跟踪表
|
||||
public function project_trace()
|
||||
{
|
||||
$page_no = $this->request->param('page_no', 1);
|
||||
$page_size = $this->request->param('page_size', 15);
|
||||
$params = $this->request->param();
|
||||
$project_name = $params['project_name'] ?? '';
|
||||
$project_num = $params['project_num'] ?? '';
|
||||
$contract_name = $params['contract_name'] ?? '';
|
||||
|
||||
$query = Db::name('cost_project')->alias('p')->leftJoin('cost_approved_project c', 'p.contract_id=c.id')->where(function ($query) use ($project_name, $project_num, $contract_name) {
|
||||
if ($contract_name) {
|
||||
$query->where('c.contract_name', 'like', '%'.$contract_name.'%');
|
||||
}
|
||||
if ($project_num) {
|
||||
$query->where('p.project_num', '=', $project_num);
|
||||
}
|
||||
if ($project_name) {
|
||||
$query->where('p.project_name', 'like', '%'.$project_name.'%');
|
||||
}
|
||||
})->append(['task_allocation_status', 'task_handling_three_level_review_status', 'data_reception_status'])
|
||||
->withAttr('task_allocation_status', function ($data, $value){
|
||||
$count = TaskAllocation::where('cost_project_id', $value['id'])->count();
|
||||
return $count > 0 ? 1: 0;
|
||||
})->withAttr('task_handling_three_level_review_status', function ($data, $value){
|
||||
$count = TaskHandlingThreeLevelReview::where('project_id', $value['id'])->count();
|
||||
return $count > 0 ? 1: 0;
|
||||
})->withAttr('data_reception_status', function ($data, $value){
|
||||
$count = DataReception::where('project_id', $value['id'])->count();
|
||||
return $count > 0 ? 1: 0;
|
||||
});
|
||||
$count = $query->count();
|
||||
$lists = $query->append(['dept'])->withAttr('dept', function ($value, $data){
|
||||
return Dept::where('id', $data['depar'])->findOrEmpty()->toArray();
|
||||
})->page($page_no, $page_size)->select();
|
||||
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
|
||||
}
|
||||
}
|
108
app/adminapi/controller/DataReceptionController.php
Normal file
108
app/adminapi/controller/DataReceptionController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\DataReceptionLists;
|
||||
use app\adminapi\logic\DataReceptionLogic;
|
||||
use app\adminapi\validate\DataReceptionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* DataReception控制器
|
||||
* Class DataReceptionController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class DataReceptionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:21
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/ProjectCommissionController.php
Normal file
108
app/adminapi/controller/ProjectCommissionController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\ProjectCommissionLists;
|
||||
use app\adminapi\logic\ProjectCommissionLogic;
|
||||
use app\adminapi\validate\ProjectCommissionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectCommission控制器
|
||||
* Class ProjectCommissionController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class ProjectCommissionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:37
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/ProjectCommissionDetailController.php
Normal file
108
app/adminapi/controller/ProjectCommissionDetailController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\ProjectCommissionDetailLists;
|
||||
use app\adminapi\logic\ProjectCommissionDetailLogic;
|
||||
use app\adminapi\validate\ProjectCommissionDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectCommissionDetail控制器
|
||||
* Class ProjectCommissionDetailController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class ProjectCommissionDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:48
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/TaskDetailController.php
Normal file
108
app/adminapi/controller/TaskDetailController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\TaskDetailLists;
|
||||
use app\adminapi\logic\TaskDetailLogic;
|
||||
use app\adminapi\validate\TaskDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* TaskDetail控制器
|
||||
* Class TaskDetailController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class TaskDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 11:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\TaskHandlingThreeLevelReviewLists;
|
||||
use app\adminapi\logic\TaskHandlingThreeLevelReviewLogic;
|
||||
use app\adminapi\validate\TaskHandlingThreeLevelReviewValidate;
|
||||
|
||||
|
||||
/**
|
||||
* TaskHandlingThreeLevelReview控制器
|
||||
* Class TaskHandlingThreeLevelReviewController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class TaskHandlingThreeLevelReviewController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:18
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidBiddingDecisionLists;
|
||||
use app\adminapi\logic\bid\BidBiddingDecisionLogic;
|
||||
use app\adminapi\validate\bid\BidBiddingDecisionValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -72,6 +74,25 @@ class BidBiddingDecisionController extends BaseAdminController
|
||||
$result = BidBiddingDecisionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取审批流程列表
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',1)->where('name','tbjc')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidBiddingDecisionValidate())->post()->goCheck('approve');
|
||||
$result = BidBiddingDecisionLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidBiddingDecisionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidBuyBiddingDocumentLists;
|
||||
use app\adminapi\logic\bid\BidBuyBiddingDocumentLogic;
|
||||
use app\adminapi\validate\bid\BidBuyBiddingDocumentValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -72,6 +74,25 @@ class BidBuyBiddingDocumentController extends BaseAdminController
|
||||
$result = BidBuyBiddingDocumentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取审批流程列表
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',1)->where('name','gmbs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('approve');
|
||||
$result = BidBuyBiddingDocumentLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidBuyBiddingDocumentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidDocumentExaminationLists;
|
||||
use app\adminapi\logic\bid\BidDocumentExaminationLogic;
|
||||
use app\adminapi\validate\bid\BidDocumentExaminationValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -72,5 +74,23 @@ class BidDocumentExaminationController extends BaseAdminController
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取审批流程列表
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',1)->where('name','bssc')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->post()->goCheck('approve');
|
||||
$result = BidDocumentExaminationLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidDocumentExaminationLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidSecurityApplyLists;
|
||||
use app\adminapi\logic\bid\BidSecurityApplyLogic;
|
||||
use app\adminapi\validate\bid\BidSecurityApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class BidSecurityApplyController extends BaseAdminController
|
||||
$result = BidSecurityApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','tbbzj')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidSecurityApplyValidate())->post()->goCheck('approve');
|
||||
$result = BidSecurityApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidSecurityRefundLists;
|
||||
use app\adminapi\logic\bid\BidSecurityRefundLogic;
|
||||
use app\adminapi\validate\bid\BidSecurityRefundValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class BidSecurityRefundController extends BaseAdminController
|
||||
$result = BidSecurityRefundLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','ttbbzj')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidSecurityRefundValidate())->post()->goCheck('approve');
|
||||
$result = BidSecurityRefundLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityRefundLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ContractLists;
|
||||
use app\adminapi\logic\contract\ContractLogic;
|
||||
use app\adminapi\validate\contract\ContractValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ContractController extends BaseAdminController
|
||||
$result = ContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','xmht')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ContractValidate())->post()->goCheck('approve');
|
||||
$result = ContractLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ContractNegotiationLists;
|
||||
use app\adminapi\logic\contract\ContractNegotiationLogic;
|
||||
use app\adminapi\validate\contract\ContractNegotiationValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ContractNegotiationController extends BaseAdminController
|
||||
$result = ContractNegotiationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','htqs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->post()->goCheck('approve');
|
||||
$result = ContractNegotiationLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ProcurementContractLists;
|
||||
use app\adminapi\logic\contract\ProcurementContractLogic;
|
||||
use app\adminapi\validate\contract\ProcurementContractValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -87,6 +89,24 @@ class ProcurementContractController extends BaseAdminController
|
||||
$result = ProcurementContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','cght')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->post()->goCheck('approve');
|
||||
$result = ProcurementContractLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\SubcontractingContractLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -89,6 +91,24 @@ class SubcontractingContractController extends BaseAdminController
|
||||
$result = SubcontractingContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','fbht')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->post()->goCheck('approve');
|
||||
$result = SubcontractingContractLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\SubcontractingContractNegotiationLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractNegotiationLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractNegotiationValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class SubcontractingContractNegotiationController extends BaseAdminController
|
||||
$result = SubcontractingContractNegotiationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','fbhtqs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new SubcontractingContractNegotiationValidate())->post()->goCheck('approve');
|
||||
$result = SubcontractingContractNegotiationLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\cost_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost_project\CostApprovedProjectLists;
|
||||
use app\adminapi\logic\cost_project\CostApprovedProjectLogic;
|
||||
use app\adminapi\logic\cost_project\CostProjectLogic;
|
||||
use app\adminapi\validate\cost_project\CostApprovedProjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 待立项造价项目控制器
|
||||
* Class CostApprovedProjectController
|
||||
* @package app\adminapi\controller\cost_project
|
||||
*/
|
||||
class CostApprovedProjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取待立项造价项目列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostApprovedProjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加待立项造价项目
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->post()->goCheck('add');
|
||||
$result = CostApprovedProjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostApprovedProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑待立项造价项目
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->post()->goCheck('edit');
|
||||
$result = CostApprovedProjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostApprovedProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除待立项造价项目
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->post()->goCheck('delete');
|
||||
CostApprovedProjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取待立项造价项目详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->goCheck('detail');
|
||||
$result = CostApprovedProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function createProject()
|
||||
{
|
||||
$params = $this->request->param();
|
||||
$data = CostApprovedProjectLogic::detail($params);
|
||||
$re = CostProjectLogic::createProject($data);
|
||||
}
|
||||
}
|
114
app/adminapi/controller/cost_project/CostProjectController.php
Normal file
114
app/adminapi/controller/cost_project/CostProjectController.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\cost_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost_project\CostProjectLists;
|
||||
use app\adminapi\logic\cost_project\CostProjectLogic;
|
||||
use app\adminapi\validate\cost_project\CostProjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 造价项目台账控制器
|
||||
* Class CostProjectController
|
||||
* @package app\adminapi\controller\cost_project
|
||||
*/
|
||||
class CostProjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取造价项目台账列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostProjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加造价项目台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostProjectValidate())->post()->goCheck('add');
|
||||
$result = CostProjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑造价项目台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostProjectValidate())->post()->goCheck('edit');
|
||||
$result = CostProjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除造价项目台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostProjectValidate())->post()->goCheck('delete');
|
||||
CostProjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取造价项目台账详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostProjectValidate())->goCheck('detail');
|
||||
$result = CostProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function datas()
|
||||
{
|
||||
$name = $this->request->param('name', '');
|
||||
$datas = CostProjectLogic::datas($name);
|
||||
return $this->data($datas);
|
||||
}
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceInvoiceApplyLists;
|
||||
use app\adminapi\logic\finance\FinanceInvoiceApplyLogic;
|
||||
use app\adminapi\validate\finance\FinanceInvoiceApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinanceInvoiceApplyController extends BaseAdminController
|
||||
$result = FinanceInvoiceApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','kpsq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceInvoiceApplyValidate())->post()->goCheck('approve');
|
||||
$result = FinanceInvoiceApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceInvoiceApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinancePaymentApplyLists;
|
||||
use app\adminapi\logic\finance\FinancePaymentApplyLogic;
|
||||
use app\adminapi\validate\finance\FinancePaymentApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinancePaymentApplyController extends BaseAdminController
|
||||
$result = FinancePaymentApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','fksq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinancePaymentApplyValidate())->post()->goCheck('approve');
|
||||
$result = FinancePaymentApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinancePaymentPlanLists;
|
||||
use app\adminapi\logic\finance\FinancePaymentPlanLogic;
|
||||
use app\adminapi\validate\finance\FinancePaymentPlanValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinancePaymentPlanController extends BaseAdminController
|
||||
$result = FinancePaymentPlanLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','fkjh')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinancePaymentPlanValidate())->post()->goCheck('approve');
|
||||
$result = FinancePaymentPlanLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceReceiptRecordLists;
|
||||
use app\adminapi\logic\finance\FinanceReceiptRecordLogic;
|
||||
use app\adminapi\validate\finance\FinanceReceiptRecordValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinanceReceiptRecordController extends BaseAdminController
|
||||
$result = FinanceReceiptRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','spjl')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceReceiptRecordValidate())->post()->goCheck('approve');
|
||||
$result = FinanceReceiptRecordLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReceiptRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceRefundApplyLists;
|
||||
use app\adminapi\logic\finance\FinanceRefundApplyLogic;
|
||||
use app\adminapi\validate\finance\FinanceRefundApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,23 @@ class FinanceRefundApplyController extends BaseAdminController
|
||||
$result = FinanceRefundApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','tksq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceRefundApplyValidate())->post()->goCheck('approve');
|
||||
$result = FinanceRefundApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundApplyLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceRefundRecordLists;
|
||||
use app\adminapi\logic\finance\FinanceRefundRecordLogic;
|
||||
use app\adminapi\validate\finance\FinanceRefundRecordValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinanceRefundRecordController extends BaseAdminController
|
||||
$result = FinanceRefundRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','tkjl')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceRefundRecordValidate())->post()->goCheck('approve');
|
||||
$result = FinanceRefundRecordLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceReturnedMoneyLists;
|
||||
use app\adminapi\logic\finance\FinanceReturnedMoneyLogic;
|
||||
use app\adminapi\validate\finance\FinanceReturnedMoneyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinanceReturnedMoneyController extends BaseAdminController
|
||||
$result = FinanceReturnedMoneyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','hkjh')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceReturnedMoneyValidate())->post()->goCheck('approve');
|
||||
$result = FinanceReturnedMoneyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedMoneyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceReturnedRecordLists;
|
||||
use app\adminapi\logic\finance\FinanceReturnedRecordLogic;
|
||||
use app\adminapi\validate\finance\FinanceReturnedRecordValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class FinanceReturnedRecordController extends BaseAdminController
|
||||
$result = FinanceReturnedRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','hkjl')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceReturnedRecordValidate())->post()->goCheck('approve');
|
||||
$result = FinanceReturnedRecordLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -76,6 +76,22 @@ class MaterialClassifyController extends BaseAdminController
|
||||
}
|
||||
return $this->fail(MaterialClassifyLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 删除工料分类
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new MaterialClassifyValidate())->post()->goCheck('delete');
|
||||
$result = MaterialClassifyLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialClassifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\material\MaterialPurchaseRequestLists;
|
||||
use app\adminapi\logic\material\MaterialPurchaseRequestLogic;
|
||||
use app\adminapi\validate\material\MaterialPurchaseRequestValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +54,7 @@ class MaterialPurchaseRequestController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('add');
|
||||
$result = MaterialPurchaseRequestLogic::add($params);
|
||||
$result = MaterialPurchaseRequestLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -73,6 +75,24 @@ class MaterialPurchaseRequestController extends BaseAdminController
|
||||
$result = MaterialPurchaseRequestLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',5)->where('name','cgsq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('approve');
|
||||
$result = MaterialPurchaseRequestLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialPurchaseRequestLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,21 +1,6 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\oa;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\oa\FlowApproveLists;
|
||||
use app\adminapi\logic\oa\FlowApproveLogic;
|
||||
@ -29,8 +14,7 @@ use app\adminapi\validate\oa\FlowApproveValidate;
|
||||
*/
|
||||
class FlowApproveController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取日常审批列表
|
||||
* @return \think\response\Json
|
||||
@ -43,7 +27,6 @@ class FlowApproveController extends BaseAdminController
|
||||
return $this->dataLists(new FlowApproveLists($params['type']));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取日常审批详情
|
||||
* @return \think\response\Json
|
||||
@ -77,5 +60,4 @@ class FlowApproveController extends BaseAdminController
|
||||
return $this->fail(FlowApproveLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectCostAdjustmentLists;
|
||||
use app\adminapi\logic\project\ProjectCostAdjustmentLogic;
|
||||
use app\adminapi\validate\project\ProjectCostAdjustmentValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ProjectCostAdjustmentController extends BaseAdminController
|
||||
$result = ProjectCostAdjustmentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','cbtz')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectCostAdjustmentValidate())->post()->goCheck('approve');
|
||||
$result = ProjectCostAdjustmentLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostAdjustmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectCostBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectCostBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectCostBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ProjectCostBudgetController extends BaseAdminController
|
||||
$result = ProjectCostBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','fyys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectCostBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectCostBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectEquipmentBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectEquipmentBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectEquipmentBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,23 @@ class ProjectEquipmentBudgetController extends BaseAdminController
|
||||
$result = ProjectEquipmentBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','jjys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectEquipmentBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEquipmentBudgetLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectExpenseReimbursementLists;
|
||||
use app\adminapi\logic\project\ProjectExpenseReimbursementLogic;
|
||||
use app\adminapi\validate\project\ProjectExpenseReimbursementValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +54,7 @@ class ProjectExpenseReimbursementController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->post()->goCheck('add');
|
||||
$result = ProjectExpenseReimbursementLogic::add($params);
|
||||
$result = ProjectExpenseReimbursementLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -103,6 +105,24 @@ class ProjectExpenseReimbursementController extends BaseAdminController
|
||||
$result = ProjectExpenseReimbursementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','fybx')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->post()->goCheck('approve');
|
||||
$result = ProjectExpenseReimbursementLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectLaborBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectLaborBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectLaborBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,22 @@ class ProjectLaborBudgetController extends BaseAdminController
|
||||
$result = ProjectLaborBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','rgys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectLaborBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectLaborBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborBudgetLogic::getError());
|
||||
}
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectLoanApplyLists;
|
||||
use app\adminapi\logic\project\ProjectLoanApplyLogic;
|
||||
use app\adminapi\validate\project\ProjectLoanApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +54,7 @@ class ProjectLoanApplyController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->post()->goCheck('add');
|
||||
$result = ProjectLoanApplyLogic::add($params);
|
||||
$result = ProjectLoanApplyLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -103,6 +105,24 @@ class ProjectLoanApplyController extends BaseAdminController
|
||||
$result = ProjectLoanApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','jksq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->post()->goCheck('approve');
|
||||
$result = ProjectLoanApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLoanApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectMaterialBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectMaterialBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectMaterialBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ProjectMaterialBudgetController extends BaseAdminController
|
||||
$result = ProjectMaterialBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','clys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectMaterialBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectMaterialBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectMaterialBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectSettlementLists;
|
||||
use app\adminapi\logic\project\ProjectSettlementLogic;
|
||||
use app\adminapi\validate\project\ProjectSettlementValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -72,6 +74,24 @@ class ProjectSettlementController extends BaseAdminController
|
||||
$result = ProjectSettlementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','jfjs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectSettlementValidate())->post()->goCheck('approve');
|
||||
$result = ProjectSettlementLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectSettlementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectSubcontractSettlementLists;
|
||||
use app\adminapi\logic\project\ProjectSubcontractSettlementLogic;
|
||||
use app\adminapi\validate\project\ProjectSubcontractSettlementValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -70,6 +72,24 @@ class ProjectSubcontractSettlementController extends BaseAdminController
|
||||
$result = ProjectSubcontractSettlementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','fbjs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectSubcontractSettlementValidate())->post()->goCheck('approve');
|
||||
$result = ProjectSubcontractSettlementLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectSubcontractSettlementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectSubpackageBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectSubpackageBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectSubpackageBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ProjectSubpackageBudgetController extends BaseAdminController
|
||||
$result = ProjectSubpackageBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','fbys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectSubpackageBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectSubpackageBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectSubpackageBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectTotalBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectTotalBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectTotalBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +105,24 @@ class ProjectTotalBudgetController extends BaseAdminController
|
||||
$result = ProjectTotalBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','xmzys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectTotalBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectTotalBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectTotalBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectTravelReimbursementLists;
|
||||
use app\adminapi\logic\project\ProjectTravelReimbursementLogic;
|
||||
use app\adminapi\validate\project\ProjectTravelReimbursementValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +54,7 @@ class ProjectTravelReimbursementController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectTravelReimbursementValidate())->post()->goCheck('add');
|
||||
$result = ProjectTravelReimbursementLogic::add($params);
|
||||
$result = ProjectTravelReimbursementLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -103,6 +105,24 @@ class ProjectTravelReimbursementController extends BaseAdminController
|
||||
$result = ProjectTravelReimbursementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','clbx')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectTravelReimbursementValidate())->post()->goCheck('approve');
|
||||
$result = ProjectTravelReimbursementLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectTravelReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,8 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectTripApplyLists;
|
||||
use app\adminapi\logic\project\ProjectTripApplyLogic;
|
||||
use app\adminapi\validate\project\ProjectTripApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +54,7 @@ class ProjectTripApplyController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectTripApplyValidate())->post()->goCheck('add');
|
||||
$result = ProjectTripApplyLogic::add($params);
|
||||
$result = ProjectTripApplyLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -103,6 +105,24 @@ class ProjectTripApplyController extends BaseAdminController
|
||||
$result = ProjectTripApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','ccsq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectTripApplyValidate())->post()->goCheck('approve');
|
||||
$result = ProjectTripApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectTripApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ApplyWithSealLists;
|
||||
use app\adminapi\logic\project_process_management\ApplyWithSealLogic;
|
||||
use app\adminapi\validate\project_process_management\ApplyWithSealValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ApplyWithSeal控制器
|
||||
* Class ApplyWithSealController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ApplyWithSealController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:05
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\JianliProjectProgressReportLists;
|
||||
use app\adminapi\logic\project_process_management\JianliProjectProgressReportLogic;
|
||||
use app\adminapi\validate\project_process_management\JianliProjectProgressReportValidate;
|
||||
|
||||
|
||||
/**
|
||||
* JianliProjectProgressReport控制器
|
||||
* Class JianliProjectProgressReportController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class JianliProjectProgressReportController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 11:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ProjectChangeVisaContentLists;
|
||||
use app\adminapi\logic\project_process_management\ProjectChangeVisaContentLogic;
|
||||
use app\adminapi\validate\project_process_management\ProjectChangeVisaContentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectChangeVisaContent控制器
|
||||
* Class ProjectChangeVisaContentController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ProjectChangeVisaContentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 10:27
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ProjectChangeVisaLists;
|
||||
use app\adminapi\logic\project_process_management\ProjectChangeVisaLogic;
|
||||
use app\adminapi\validate\project_process_management\ProjectChangeVisaValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectChangeVisa控制器
|
||||
* Class ProjectChangeVisaController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ProjectChangeVisaController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ProjectProgressPaymentLists;
|
||||
use app\adminapi\logic\project_process_management\ProjectProgressPaymentLogic;
|
||||
use app\adminapi\validate\project_process_management\ProjectProgressPaymentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectProgressPayment控制器
|
||||
* Class ProjectProgressPaymentController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ProjectProgressPaymentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ProjectProgressPaymentDetailLists;
|
||||
use app\adminapi\logic\project_process_management\ProjectProgressPaymentDetailLogic;
|
||||
use app\adminapi\validate\project_process_management\ProjectProgressPaymentDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectProgressPaymentDetail控制器
|
||||
* Class ProjectProgressPaymentDetailController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ProjectProgressPaymentDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 14:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ProjectRectificationLists;
|
||||
use app\adminapi\logic\project_process_management\ProjectRectificationLogic;
|
||||
use app\adminapi\validate\project_process_management\ProjectRectificationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectRectification控制器
|
||||
* Class ProjectRectificationController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ProjectRectificationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 11:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project_process_management;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project_process_management\ProjectSurveySignatureLists;
|
||||
use app\adminapi\logic\project_process_management\ProjectSurveySignatureLogic;
|
||||
use app\adminapi\validate\project_process_management\ProjectSurveySignatureValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectSurveySignature控制器
|
||||
* Class ProjectSurveySignatureController
|
||||
* @package app\adminapi\controller\project_process_management
|
||||
*/
|
||||
class ProjectSurveySignatureController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 11:06
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_const_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_const_prepare\SupervisionCommencementReportLists;
|
||||
use app\adminapi\logic\supervision_const_prepare\SupervisionCommencementReportLogic;
|
||||
use app\adminapi\validate\supervision_const_prepare\SupervisionCommencementReportValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--开工报告/开工令控制器
|
||||
* Class SupervisionCommencementReportController
|
||||
* @package app\adminapi\controller\supervision_const_prepare
|
||||
*/
|
||||
class SupervisionCommencementReportController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--开工报告/开工令列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionCommencementReportLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--开工报告/开工令
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:17
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionCommencementReportValidate())->post()->goCheck('add');
|
||||
$result = SupervisionCommencementReportLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCommencementReportLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--开工报告/开工令
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:17
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionCommencementReportValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionCommencementReportLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCommencementReportLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--开工报告/开工令
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:17
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionCommencementReportValidate())->post()->goCheck('delete');
|
||||
SupervisionCommencementReportLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--开工报告/开工令详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:17
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionCommencementReportValidate())->goCheck('detail');
|
||||
$result = SupervisionCommencementReportLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_const_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_const_prepare\SupervisionDesignDisclosureLists;
|
||||
use app\adminapi\logic\supervision_const_prepare\SupervisionDesignDisclosureLogic;
|
||||
use app\adminapi\validate\supervision_const_prepare\SupervisionDesignDisclosureValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 设计交底与图纸会审控制器
|
||||
* Class SupervisionDesignDisclosureController
|
||||
* @package app\adminapi\controller\supervision_const_prepare
|
||||
*/
|
||||
class SupervisionDesignDisclosureController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取设计交底与图纸会审列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:36
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionDesignDisclosureLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加设计交底与图纸会审
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:36
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionDesignDisclosureValidate())->post()->goCheck('add');
|
||||
$result = SupervisionDesignDisclosureLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDesignDisclosureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑设计交底与图纸会审
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:36
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionDesignDisclosureValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionDesignDisclosureLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDesignDisclosureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除设计交底与图纸会审
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:36
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionDesignDisclosureValidate())->post()->goCheck('delete');
|
||||
SupervisionDesignDisclosureLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取设计交底与图纸会审详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:36
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionDesignDisclosureValidate())->goCheck('detail');
|
||||
$result = SupervisionDesignDisclosureLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_const_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_const_prepare\SupervisionFirstMeetingLists;
|
||||
use app\adminapi\logic\supervision_const_prepare\SupervisionFirstMeetingLogic;
|
||||
use app\adminapi\validate\supervision_const_prepare\SupervisionFirstMeetingValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--第一次工地会议控制器
|
||||
* Class SupervisionFirstMeetingController
|
||||
* @package app\adminapi\controller\supervision_const_prepare
|
||||
*/
|
||||
class SupervisionFirstMeetingController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--第一次工地会议列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:12
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionFirstMeetingLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--第一次工地会议
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:12
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionFirstMeetingValidate())->post()->goCheck('add');
|
||||
$result = SupervisionFirstMeetingLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionFirstMeetingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--第一次工地会议
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:12
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionFirstMeetingValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionFirstMeetingLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionFirstMeetingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--第一次工地会议
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:12
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionFirstMeetingValidate())->post()->goCheck('delete');
|
||||
SupervisionFirstMeetingLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--第一次工地会议详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:12
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionFirstMeetingValidate())->goCheck('detail');
|
||||
$result = SupervisionFirstMeetingLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_const_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_const_prepare\SupervisionRulesLists;
|
||||
use app\adminapi\logic\supervision_const_prepare\SupervisionRulesLogic;
|
||||
use app\adminapi\validate\supervision_const_prepare\SupervisionRulesValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理细则(文档)控制器
|
||||
* Class SupervisionRulesController
|
||||
* @package app\adminapi\controller\supervision_const_prepare
|
||||
*/
|
||||
class SupervisionRulesController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理细则(文档)列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionRulesLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理细则(文档)
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionRulesValidate())->post()->goCheck('add');
|
||||
$result = SupervisionRulesLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionRulesLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理细则(文档)
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionRulesValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionRulesLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionRulesLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理细则(文档)
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionRulesValidate())->post()->goCheck('delete');
|
||||
SupervisionRulesLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理细则(文档)详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionRulesValidate())->goCheck('detail');
|
||||
$result = SupervisionRulesLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_const_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_const_prepare\SupervisionRulesDisclosureLists;
|
||||
use app\adminapi\logic\supervision_const_prepare\SupervisionRulesDisclosureLogic;
|
||||
use app\adminapi\validate\supervision_const_prepare\SupervisionRulesDisclosureValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理规划/细则交底控制器
|
||||
* Class SupervisionRulesDisclosureController
|
||||
* @package app\adminapi\controller\supervision_const_prepare
|
||||
*/
|
||||
class SupervisionRulesDisclosureController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理规划/细则交底列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionRulesDisclosureLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理规划/细则交底
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionRulesDisclosureValidate())->post()->goCheck('add');
|
||||
$result = SupervisionRulesDisclosureLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionRulesDisclosureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理规划/细则交底
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionRulesDisclosureValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionRulesDisclosureLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionRulesDisclosureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理规划/细则交底
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionRulesDisclosureValidate())->post()->goCheck('delete');
|
||||
SupervisionRulesDisclosureLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理规划/细则交底详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 09:49
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionRulesDisclosureValidate())->goCheck('detail');
|
||||
$result = SupervisionRulesDisclosureLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionDangerousEngineeringCaseLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionDangerousEngineeringCaseLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionDangerousEngineeringCaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--危大方案提交列表控制器
|
||||
* Class SupervisionDangerousEngineeringCaseController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionDangerousEngineeringCaseController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--危大方案提交列表列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionDangerousEngineeringCaseLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--危大方案提交列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringCaseValidate())->post()->goCheck('add');
|
||||
$result = SupervisionDangerousEngineeringCaseLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDangerousEngineeringCaseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--危大方案提交列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringCaseValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionDangerousEngineeringCaseLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDangerousEngineeringCaseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--危大方案提交列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringCaseValidate())->post()->goCheck('delete');
|
||||
SupervisionDangerousEngineeringCaseLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--危大方案提交列表详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringCaseValidate())->goCheck('detail');
|
||||
$result = SupervisionDangerousEngineeringCaseLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionDangerousEngineeringMonitoringLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionDangerousEngineeringMonitoringLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionDangerousEngineeringMonitoringValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--危大工程监控控制器
|
||||
* Class SupervisionDangerousEngineeringMonitoringController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionDangerousEngineeringMonitoringController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--危大工程监控列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 11:05
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionDangerousEngineeringMonitoringLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--危大工程监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 11:05
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringMonitoringValidate())->post()->goCheck('add');
|
||||
$result = SupervisionDangerousEngineeringMonitoringLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDangerousEngineeringMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--危大工程监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 11:05
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringMonitoringValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionDangerousEngineeringMonitoringLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDangerousEngineeringMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--危大工程监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 11:05
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringMonitoringValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionDangerousEngineeringMonitoringLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDangerousEngineeringMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--危大工程监控详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 11:05
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionDangerousEngineeringMonitoringValidate())->goCheck('detail');
|
||||
$result = SupervisionDangerousEngineeringMonitoringLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionExcessRiskSecurityMonitoringLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionExcessRiskSecurityMonitoringLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionExcessRiskSecurityMonitoringValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--超规模危险性较大工程安全监控控制器
|
||||
* Class SupervisionExcessRiskSecurityMonitoringController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionExcessRiskSecurityMonitoringController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--超规模危险性较大工程安全监控列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 10:11
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionExcessRiskSecurityMonitoringLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--超规模危险性较大工程安全监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 10:11
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionExcessRiskSecurityMonitoringValidate())->post()->goCheck('add');
|
||||
$result = SupervisionExcessRiskSecurityMonitoringLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionExcessRiskSecurityMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--超规模危险性较大工程安全监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 10:11
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionExcessRiskSecurityMonitoringValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionExcessRiskSecurityMonitoringLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionExcessRiskSecurityMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--超规模危险性较大工程安全监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 10:11
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionExcessRiskSecurityMonitoringValidate())->post()->goCheck('delete');
|
||||
SupervisionExcessRiskSecurityMonitoringLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--超规模危险性较大工程安全监控详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 10:11
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionExcessRiskSecurityMonitoringValidate())->goCheck('detail');
|
||||
$result = SupervisionExcessRiskSecurityMonitoringLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionHighRiskSecurityMonitoringLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionHighRiskSecurityMonitoringLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionHighRiskSecurityMonitoringValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--危险性较大的工程安全监控控制器
|
||||
* Class SupervisionHighRiskSecurityMonitoringController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionHighRiskSecurityMonitoringController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--危险性较大的工程安全监控列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 09:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionHighRiskSecurityMonitoringLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--危险性较大的工程安全监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 09:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionHighRiskSecurityMonitoringValidate())->post()->goCheck('add');
|
||||
$result = SupervisionHighRiskSecurityMonitoringLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionHighRiskSecurityMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--危险性较大的工程安全监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 09:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionHighRiskSecurityMonitoringValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionHighRiskSecurityMonitoringLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionHighRiskSecurityMonitoringLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--危险性较大的工程安全监控
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 09:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionHighRiskSecurityMonitoringValidate())->post()->goCheck('delete');
|
||||
SupervisionHighRiskSecurityMonitoringLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--危险性较大的工程安全监控详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 09:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionHighRiskSecurityMonitoringValidate())->goCheck('detail');
|
||||
$result = SupervisionHighRiskSecurityMonitoringLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionLargeMechanicalEquipmentLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionLargeMechanicalEquipmentLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionLargeMechanicalEquipmentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 大型机械设备及仪器台账控制器
|
||||
* Class SupervisionLargeMechanicalEquipmentController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionLargeMechanicalEquipmentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取大型机械设备及仪器台账列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionLargeMechanicalEquipmentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加大型机械设备及仪器台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentValidate())->post()->goCheck('add');
|
||||
$result = SupervisionLargeMechanicalEquipmentLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeMechanicalEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑大型机械设备及仪器台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionLargeMechanicalEquipmentLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeMechanicalEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除大型机械设备及仪器台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionLargeMechanicalEquipmentLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeMechanicalEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取大型机械设备及仪器台账详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentValidate())->goCheck('detail');
|
||||
$result = SupervisionLargeMechanicalEquipmentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionLargeMechanicalEquipmentMaintenanceRecordLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionLargeMechanicalEquipmentMaintenanceRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--大型机械设备及仪器修保养记录控制器
|
||||
* Class SupervisionLargeMechanicalEquipmentMaintenanceRecordController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionLargeMechanicalEquipmentMaintenanceRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--大型机械设备及仪器修保养记录列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionLargeMechanicalEquipmentMaintenanceRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--大型机械设备及仪器修保养记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentMaintenanceRecordValidate())->post()->goCheck('add');
|
||||
$result = SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--大型机械设备及仪器修保养记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentMaintenanceRecordValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--大型机械设备及仪器修保养记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentMaintenanceRecordValidate())->post()->goCheck('delete');
|
||||
SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--大型机械设备及仪器修保养记录详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/02 09:51
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionLargeMechanicalEquipmentMaintenanceRecordValidate())->goCheck('detail');
|
||||
$result = SupervisionLargeMechanicalEquipmentMaintenanceRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_dangerous;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_dangerous\SupervisionSafetyWarningSignLists;
|
||||
use app\adminapi\logic\supervision_dangerous\SupervisionSafetyWarningSignLogic;
|
||||
use app\adminapi\validate\supervision_dangerous\SupervisionSafetyWarningSignValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--现场安全警示标志控制器
|
||||
* Class SupervisionSafetyWarningSignController
|
||||
* @package app\adminapi\controller\supervision_dangerous
|
||||
*/
|
||||
class SupervisionSafetyWarningSignController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--现场安全警示标志列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 15:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionSafetyWarningSignLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--现场安全警示标志
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 15:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionSafetyWarningSignValidate())->post()->goCheck('add');
|
||||
$result = SupervisionSafetyWarningSignLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSafetyWarningSignLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--现场安全警示标志
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 15:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionSafetyWarningSignValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionSafetyWarningSignLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSafetyWarningSignLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--现场安全警示标志
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 15:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionSafetyWarningSignValidate())->post()->goCheck('delete');
|
||||
SupervisionSafetyWarningSignLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--现场安全警示标志详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 15:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionSafetyWarningSignValidate())->goCheck('detail');
|
||||
$result = SupervisionSafetyWarningSignLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_prepare\SupervisionConstructionPlanningLists;
|
||||
use app\adminapi\logic\supervision_prepare\SupervisionConstructionPlanningLogic;
|
||||
use app\adminapi\validate\supervision_prepare\SupervisionConstructionPlanningValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--开工策划控制器
|
||||
* Class SupervisionConstructionPlanningController
|
||||
* @package app\adminapi\controller\supervision_prepare
|
||||
*/
|
||||
class SupervisionConstructionPlanningController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--开工策划列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:43
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionConstructionPlanningLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--开工策划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:43
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionConstructionPlanningValidate())->post()->goCheck('add');
|
||||
$result = SupervisionConstructionPlanningLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionConstructionPlanningLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--开工策划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:43
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionConstructionPlanningValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionConstructionPlanningLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionConstructionPlanningLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--开工策划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:43
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionConstructionPlanningValidate())->post()->goCheck('delete');
|
||||
SupervisionConstructionPlanningLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--开工策划详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:43
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionConstructionPlanningValidate())->goCheck('detail');
|
||||
$result = SupervisionConstructionPlanningLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_prepare\SupervisionContractDisclosureLists;
|
||||
use app\adminapi\logic\supervision_prepare\SupervisionContractDisclosureLogic;
|
||||
use app\adminapi\validate\supervision_prepare\SupervisionContractDisclosureValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理合同交底控制器
|
||||
* Class SupervisionContractDisclosureController
|
||||
* @package app\adminapi\controller\supervision_prepare
|
||||
*/
|
||||
class SupervisionContractDisclosureController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理合同交底列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:19
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionContractDisclosureLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理合同交底
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:19
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionContractDisclosureValidate())->post()->goCheck('add');
|
||||
$result = SupervisionContractDisclosureLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionContractDisclosureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理合同交底
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:19
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionContractDisclosureValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionContractDisclosureLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionContractDisclosureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理合同交底
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:19
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionContractDisclosureValidate())->post()->goCheck('delete');
|
||||
SupervisionContractDisclosureLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理合同交底详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 17:19
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionContractDisclosureValidate())->goCheck('detail');
|
||||
$result = SupervisionContractDisclosureLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_prepare;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_prepare\SupervisionPlanningLists;
|
||||
use app\adminapi\logic\supervision_prepare\SupervisionPlanningLogic;
|
||||
use app\adminapi\validate\supervision_prepare\SupervisionPlanningValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理规划控制器
|
||||
* Class SupervisionPlanningController
|
||||
* @package app\adminapi\controller\supervision_prepare
|
||||
*/
|
||||
class SupervisionPlanningController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理规划列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 16:45
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionPlanningLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理规划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 16:45
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionPlanningValidate())->post()->goCheck('add');
|
||||
$result = SupervisionPlanningLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionPlanningLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理规划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 16:45
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionPlanningValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionPlanningLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionPlanningLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理规划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 16:45
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionPlanningValidate())->post()->goCheck('delete');
|
||||
SupervisionPlanningLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理规划详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 16:45
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionPlanningValidate())->goCheck('detail');
|
||||
$result = SupervisionPlanningLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_project\SupervisionMonitoringEquipmentLists;
|
||||
use app\adminapi\logic\supervision_project\SupervisionMonitoringEquipmentLogic;
|
||||
use app\adminapi\validate\supervision_project\SupervisionMonitoringEquipmentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监控设备信息控制器
|
||||
* Class SupervisionMonitoringEquipmentController
|
||||
* @package app\adminapi\controller\supervision_project
|
||||
*/
|
||||
class SupervisionMonitoringEquipmentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监控设备信息列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMonitoringEquipmentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监控设备信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMonitoringEquipmentLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMonitoringEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监控设备信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMonitoringEquipmentLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMonitoringEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监控设备信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentValidate())->post()->goCheck('delete');
|
||||
SupervisionMonitoringEquipmentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监控设备信息详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentValidate())->goCheck('detail');
|
||||
$result = SupervisionMonitoringEquipmentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_project\SupervisionMonitoringEquipmentDetailLists;
|
||||
use app\adminapi\logic\supervision_project\SupervisionMonitoringEquipmentDetailLogic;
|
||||
use app\adminapi\validate\supervision_project\SupervisionMonitoringEquipmentDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监控设备明细控制器
|
||||
* Class SupervisionMonitoringEquipmentDetailController
|
||||
* @package app\adminapi\controller\supervision_project
|
||||
*/
|
||||
class SupervisionMonitoringEquipmentDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监控设备明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMonitoringEquipmentDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监控设备明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentDetailValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMonitoringEquipmentDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMonitoringEquipmentDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监控设备明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentDetailValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMonitoringEquipmentDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMonitoringEquipmentDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监控设备明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentDetailValidate())->post()->goCheck('delete');
|
||||
SupervisionMonitoringEquipmentDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监控设备明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 15:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMonitoringEquipmentDetailValidate())->goCheck('detail');
|
||||
$result = SupervisionMonitoringEquipmentDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_project\SupervisionParticipatingUnitsContactsLists;
|
||||
use app\adminapi\logic\supervision_project\SupervisionParticipatingUnitsContactsLogic;
|
||||
use app\adminapi\validate\supervision_project\SupervisionParticipatingUnitsContactsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--参建单位联系人控制器
|
||||
* Class SupervisionParticipatingUnitsContactsController
|
||||
* @package app\adminapi\controller\supervision_project
|
||||
*/
|
||||
class SupervisionParticipatingUnitsContactsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--参建单位联系人列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionParticipatingUnitsContactsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--参建单位联系人
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsContactsValidate())->post()->goCheck('add');
|
||||
$result = SupervisionParticipatingUnitsContactsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionParticipatingUnitsContactsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--参建单位联系人
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsContactsValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionParticipatingUnitsContactsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionParticipatingUnitsContactsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--参建单位联系人
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsContactsValidate())->post()->goCheck('delete');
|
||||
SupervisionParticipatingUnitsContactsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--参建单位联系人详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsContactsValidate())->goCheck('detail');
|
||||
$result = SupervisionParticipatingUnitsContactsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_project\SupervisionParticipatingUnitsLists;
|
||||
use app\adminapi\logic\supervision_project\SupervisionParticipatingUnitsLogic;
|
||||
use app\adminapi\validate\supervision_project\SupervisionParticipatingUnitsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--参建单位控制器
|
||||
* Class SupervisionParticipatingUnitsController
|
||||
* @package app\adminapi\controller\supervision_project
|
||||
*/
|
||||
class SupervisionParticipatingUnitsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--参建单位列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionParticipatingUnitsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--参建单位
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsValidate())->post()->goCheck('add');
|
||||
$result = SupervisionParticipatingUnitsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionParticipatingUnitsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--参建单位
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionParticipatingUnitsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionParticipatingUnitsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--参建单位
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsValidate())->post()->goCheck('delete');
|
||||
SupervisionParticipatingUnitsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--参建单位详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 13:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsValidate())->goCheck('detail');
|
||||
$result = SupervisionParticipatingUnitsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_project\SupervisionProjectLists;
|
||||
use app\adminapi\logic\supervision_project\SupervisionProjectLogic;
|
||||
use app\adminapi\validate\supervision_project\SupervisionProjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理项目信息控制器
|
||||
* Class SupervisionProjectController
|
||||
* @package app\adminapi\controller\supervision_project
|
||||
*/
|
||||
class SupervisionProjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理项目信息列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:52
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionProjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理项目信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:52
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionProjectValidate())->post()->goCheck('add');
|
||||
$result = SupervisionProjectLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理项目信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:52
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionProjectValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionProjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理项目信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:52
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionProjectValidate())->post()->goCheck('delete');
|
||||
SupervisionProjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理项目信息详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:52
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionProjectValidate())->goCheck('detail');
|
||||
$result = SupervisionProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_qualification_review;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_qualification_review\SupervisionConstructionManagementPersonnelLists;
|
||||
use app\adminapi\logic\supervision_qualification_review\SupervisionConstructionManagementPersonnelLogic;
|
||||
use app\adminapi\validate\supervision_qualification_review\SupervisionConstructionManagementPersonnelValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--施工管理人员控制器
|
||||
* Class SupervisionConstructionManagementPersonnelController
|
||||
* @package app\adminapi\controller\supervision_qualification_review
|
||||
*/
|
||||
class SupervisionConstructionManagementPersonnelController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--施工管理人员列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:33
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionConstructionManagementPersonnelLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--施工管理人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:33
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionConstructionManagementPersonnelValidate())->post()->goCheck('add');
|
||||
$result = SupervisionConstructionManagementPersonnelLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionConstructionManagementPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--施工管理人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:33
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionConstructionManagementPersonnelValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionConstructionManagementPersonnelLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionConstructionManagementPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--施工管理人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:33
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionConstructionManagementPersonnelValidate())->post()->goCheck('delete');
|
||||
SupervisionConstructionManagementPersonnelLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--施工管理人员详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 10:33
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionConstructionManagementPersonnelValidate())->goCheck('detail');
|
||||
$result = SupervisionConstructionManagementPersonnelLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_qualification_review;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_qualification_review\SupervisionLargeEquipmentLists;
|
||||
use app\adminapi\logic\supervision_qualification_review\SupervisionLargeEquipmentLogic;
|
||||
use app\adminapi\validate\supervision_qualification_review\SupervisionLargeEquipmentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--大型设备及仪器具控制器
|
||||
* Class SupervisionLargeEquipmentController
|
||||
* @package app\adminapi\controller\supervision_qualification_review
|
||||
*/
|
||||
class SupervisionLargeEquipmentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--大型设备及仪器具列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 13:51
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionLargeEquipmentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--大型设备及仪器具
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 13:51
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionLargeEquipmentValidate())->post()->goCheck('add');
|
||||
$result = SupervisionLargeEquipmentLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--大型设备及仪器具
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 13:51
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionLargeEquipmentValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionLargeEquipmentLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionLargeEquipmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--大型设备及仪器具
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 13:51
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionLargeEquipmentValidate())->post()->goCheck('delete');
|
||||
SupervisionLargeEquipmentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--大型设备及仪器具详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 13:51
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionLargeEquipmentValidate())->goCheck('detail');
|
||||
$result = SupervisionLargeEquipmentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_qualification_review;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_qualification_review\SupervisionParticipatingUnitsQualificationsLists;
|
||||
use app\adminapi\logic\supervision_qualification_review\SupervisionParticipatingUnitsQualificationsLogic;
|
||||
use app\adminapi\validate\supervision_qualification_review\SupervisionParticipatingUnitsQualificationsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--参建单位资质控制器
|
||||
* Class SupervisionParticipatingUnitsQualificationsController
|
||||
* @package app\adminapi\controller\supervision_qualification_review
|
||||
*/
|
||||
class SupervisionParticipatingUnitsQualificationsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--参建单位资质列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 14:03
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionParticipatingUnitsQualificationsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--参建单位资质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 14:03
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsQualificationsValidate())->post()->goCheck('add');
|
||||
$result = SupervisionParticipatingUnitsQualificationsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionParticipatingUnitsQualificationsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--参建单位资质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 14:03
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsQualificationsValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionParticipatingUnitsQualificationsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionParticipatingUnitsQualificationsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--参建单位资质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 14:03
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsQualificationsValidate())->post()->goCheck('delete');
|
||||
SupervisionParticipatingUnitsQualificationsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--参建单位资质详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 14:03
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionParticipatingUnitsQualificationsValidate())->goCheck('detail');
|
||||
$result = SupervisionParticipatingUnitsQualificationsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_qualification_review;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_qualification_review\SupervisionSafetyManagementPersonnelLists;
|
||||
use app\adminapi\logic\supervision_qualification_review\SupervisionSafetyManagementPersonnelLogic;
|
||||
use app\adminapi\validate\supervision_qualification_review\SupervisionSafetyManagementPersonnelValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--安全管理人员控制器
|
||||
* Class SupervisionSafetyManagementPersonnelController
|
||||
* @package app\adminapi\controller\supervision_qualification_review
|
||||
*/
|
||||
class SupervisionSafetyManagementPersonnelController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--安全管理人员列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:30
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionSafetyManagementPersonnelLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--安全管理人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:30
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionSafetyManagementPersonnelValidate())->post()->goCheck('add');
|
||||
$result = SupervisionSafetyManagementPersonnelLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSafetyManagementPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--安全管理人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:30
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionSafetyManagementPersonnelValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionSafetyManagementPersonnelLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSafetyManagementPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--安全管理人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:30
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionSafetyManagementPersonnelValidate())->post()->goCheck('delete');
|
||||
SupervisionSafetyManagementPersonnelLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--安全管理人员详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:30
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionSafetyManagementPersonnelValidate())->goCheck('detail');
|
||||
$result = SupervisionSafetyManagementPersonnelLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_qualification_review;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_qualification_review\SupervisionSpecialOperationPersonnelLists;
|
||||
use app\adminapi\logic\supervision_qualification_review\SupervisionSpecialOperationPersonnelLogic;
|
||||
use app\adminapi\validate\supervision_qualification_review\SupervisionSpecialOperationPersonnelValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--特种作业人员资质控制器
|
||||
* Class SupervisionSpecialOperationPersonnelController
|
||||
* @package app\adminapi\controller\supervision_qualification_review
|
||||
*/
|
||||
class SupervisionSpecialOperationPersonnelController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--特种作业人员资质列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:45
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionSpecialOperationPersonnelLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--特种作业人员资质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:45
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionSpecialOperationPersonnelValidate())->post()->goCheck('add');
|
||||
$result = SupervisionSpecialOperationPersonnelLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSpecialOperationPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--特种作业人员资质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:45
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionSpecialOperationPersonnelValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionSpecialOperationPersonnelLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSpecialOperationPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--特种作业人员资质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:45
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionSpecialOperationPersonnelValidate())->post()->goCheck('delete');
|
||||
SupervisionSpecialOperationPersonnelLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--特种作业人员资质详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 11:45
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionSpecialOperationPersonnelValidate())->goCheck('detail');
|
||||
$result = SupervisionSpecialOperationPersonnelLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionAcceptLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionAcceptLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionAcceptValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--验收登记控制器
|
||||
* Class SupervisionAcceptController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionAcceptController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--验收登记列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionAcceptLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--验收登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionAcceptValidate())->post()->goCheck('add');
|
||||
$result = SupervisionAcceptLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionAcceptLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--验收登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionAcceptValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionAcceptLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionAcceptLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--验收登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function accept()
|
||||
{
|
||||
$params = (new SupervisionAcceptValidate())->post()->goCheck('accept');
|
||||
$result = SupervisionAcceptLogic::accept($params);
|
||||
if (true === $result) {
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionAcceptLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--验收登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionAcceptValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionAcceptLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionAcceptLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--验收登记详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionAcceptValidate())->goCheck('detail');
|
||||
$result = SupervisionAcceptLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionAcceptResultLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionAcceptResultLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionAcceptResultValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--验收结果控制器
|
||||
* Class SupervisionAcceptResultController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionAcceptResultController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--验收结果列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionAcceptResultLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--验收结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionAcceptResultValidate())->post()->goCheck('add');
|
||||
$result = SupervisionAcceptResultLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionAcceptResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--验收结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionAcceptResultValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionAcceptResultLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionAcceptResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--验收结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionAcceptResultValidate())->post()->goCheck('delete');
|
||||
SupervisionAcceptResultLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--验收结果详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 15:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionAcceptResultValidate())->goCheck('detail');
|
||||
$result = SupervisionAcceptResultLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionCheckItemLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionCheckItemLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionCheckItemValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--新增检查项控制器
|
||||
* Class SupervisionCheckItemController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionCheckItemController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--新增检查项列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionCheckItemLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--新增检查项
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionCheckItemValidate())->post()->goCheck('add');
|
||||
$result = SupervisionCheckItemLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCheckItemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--新增检查项
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionCheckItemValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionCheckItemLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCheckItemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--新增检查项
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionCheckItemValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionCheckItemLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCheckItemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--新增检查项详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionCheckItemValidate())->goCheck('detail');
|
||||
$result = SupervisionCheckItemLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionCheckItemDetailLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionCheckItemDetailLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionCheckItemDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--新增检查项明细控制器
|
||||
* Class SupervisionCheckItemDetailController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionCheckItemDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--新增检查项明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionCheckItemDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--新增检查项明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionCheckItemDetailValidate())->post()->goCheck('add');
|
||||
$result = SupervisionCheckItemDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCheckItemDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--新增检查项明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionCheckItemDetailValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionCheckItemDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionCheckItemDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--新增检查项明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionCheckItemDetailValidate())->post()->goCheck('delete');
|
||||
SupervisionCheckItemDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--新增检查项明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 15:34
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionCheckItemDetailValidate())->goCheck('detail');
|
||||
$result = SupervisionCheckItemDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionDeviceEntryLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionDeviceEntryLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionDeviceEntryValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--设备进场控制器
|
||||
* Class SupervisionDeviceEntryController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionDeviceEntryController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--设备进场列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionDeviceEntryLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--设备进场
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryValidate())->post()->goCheck('add');
|
||||
$result = SupervisionDeviceEntryLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDeviceEntryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--设备进场
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionDeviceEntryLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDeviceEntryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--设备进场
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionDeviceEntryLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDeviceEntryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--设备进场详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryValidate())->goCheck('detail');
|
||||
$result = SupervisionDeviceEntryLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionDeviceEntryDetailLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionDeviceEntryDetailLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionDeviceEntryDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--设备进场明细控制器
|
||||
* Class SupervisionDeviceEntryDetailController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionDeviceEntryDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--设备进场明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionDeviceEntryDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--设备进场明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryDetailValidate())->post()->goCheck('add');
|
||||
$result = SupervisionDeviceEntryDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDeviceEntryDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--设备进场明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryDetailValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionDeviceEntryDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDeviceEntryDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--设备进场明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryDetailValidate())->post()->goCheck('delete');
|
||||
SupervisionDeviceEntryDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--设备进场明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 16:12
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionDeviceEntryDetailValidate())->goCheck('detail');
|
||||
$result = SupervisionDeviceEntryDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionDiaryLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionDiaryLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionDiaryValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理日记控制器
|
||||
* Class SupervisionDiaryController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionDiaryController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理日记列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 13:53
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionDiaryLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理日记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 13:53
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionDiaryValidate())->post()->goCheck('add');
|
||||
$result = SupervisionDiaryLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDiaryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理日记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 13:53
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionDiaryValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionDiaryLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionDiaryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理日记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 13:53
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionDiaryValidate())->post()->goCheck('delete');
|
||||
SupervisionDiaryLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理日记详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 13:53
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionDiaryValidate())->goCheck('detail');
|
||||
$result = SupervisionDiaryLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionEntityParallelTestingLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionEntityParallelTestingLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionEntityParallelTestingValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--实体平行检验控制器
|
||||
* Class SupervisionEntityParallelTestingController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionEntityParallelTestingController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--实体平行检验列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 16:32
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionEntityParallelTestingLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--实体平行检验
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 16:32
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionEntityParallelTestingValidate())->post()->goCheck('add');
|
||||
$result = SupervisionEntityParallelTestingLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionEntityParallelTestingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--实体平行检验
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 16:32
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionEntityParallelTestingValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionEntityParallelTestingLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionEntityParallelTestingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--实体平行检验
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 16:32
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionEntityParallelTestingValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionEntityParallelTestingLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionEntityParallelTestingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--实体平行检验详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 16:32
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionEntityParallelTestingValidate())->goCheck('detail');
|
||||
$result = SupervisionEntityParallelTestingLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionInspectionLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionInspectionLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionInspectionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--巡视登记控制器
|
||||
* Class SupervisionInspectionController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionInspectionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--巡视登记列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 17:18
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionInspectionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--巡视登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 17:18
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionInspectionValidate())->post()->goCheck('add');
|
||||
$result = SupervisionInspectionLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionInspectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--巡视登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 17:18
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionInspectionValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionInspectionLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionInspectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--巡视登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 17:18
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionInspectionValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionInspectionLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionInspectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--巡视登记详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/26 17:18
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionInspectionValidate())->goCheck('detail');
|
||||
$result = SupervisionInspectionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionInspectionResultLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionInspectionResultLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionInspectionResultValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--巡视结果控制器
|
||||
* Class SupervisionInspectionResultController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionInspectionResultController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--巡视结果列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 09:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionInspectionResultLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--巡视结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 09:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionInspectionResultValidate())->post()->goCheck('add');
|
||||
$result = SupervisionInspectionResultLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionInspectionResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--巡视结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 09:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionInspectionResultValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionInspectionResultLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionInspectionResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--巡视结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 09:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionInspectionResultValidate())->post()->goCheck('delete');
|
||||
SupervisionInspectionResultLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--巡视结果详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 09:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionInspectionResultValidate())->goCheck('detail');
|
||||
$result = SupervisionInspectionResultLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionMaterialEntryLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionMaterialEntryLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionMaterialEntryValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 材料进场控制器
|
||||
* Class SupervisionMaterialEntryController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionMaterialEntryController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料进场列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMaterialEntryLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加材料进场
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMaterialEntryLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEntryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑材料进场
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMaterialEntryLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEntryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除材料进场
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionMaterialEntryLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEntryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料进场详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryValidate())->goCheck('detail');
|
||||
$result = SupervisionMaterialEntryLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionMaterialEntryDetailLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionMaterialEntryDetailLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionMaterialEntryDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--材料进场明细控制器
|
||||
* Class SupervisionMaterialEntryDetailController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionMaterialEntryDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料进场明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMaterialEntryDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--材料进场明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryDetailValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMaterialEntryDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEntryDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--材料进场明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryDetailValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMaterialEntryDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEntryDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--材料进场明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryDetailValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionMaterialEntryDetailLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEntryDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料进场明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 13:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMaterialEntryDetailValidate())->goCheck('detail');
|
||||
$result = SupervisionMaterialEntryDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionMaterialEquipmentInfoLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionMaterialEquipmentInfoLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionMaterialEquipmentInfoValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--材料设备信息控制器
|
||||
* Class SupervisionMaterialEquipmentInfoController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionMaterialEquipmentInfoController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料设备信息列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 16:28
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMaterialEquipmentInfoLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--材料设备信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 16:28
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMaterialEquipmentInfoValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMaterialEquipmentInfoLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEquipmentInfoLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--材料设备信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 16:28
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMaterialEquipmentInfoValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMaterialEquipmentInfoLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialEquipmentInfoLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--材料设备信息
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 16:28
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMaterialEquipmentInfoValidate())->post()->goCheck('delete');
|
||||
SupervisionMaterialEquipmentInfoLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料设备信息详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 16:28
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMaterialEquipmentInfoValidate())->goCheck('detail');
|
||||
$result = SupervisionMaterialEquipmentInfoLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionMaterialParallelTestingLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionMaterialParallelTestingLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionMaterialParallelTestingValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--材料平行检验控制器
|
||||
* Class SupervisionMaterialParallelTestingController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionMaterialParallelTestingController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料平行检验列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMaterialParallelTestingLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--材料平行检验
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMaterialParallelTestingLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--材料平行检验
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMaterialParallelTestingLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--材料平行检验
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionMaterialParallelTestingLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料平行检验详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingValidate())->goCheck('detail');
|
||||
$result = SupervisionMaterialParallelTestingLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionMaterialParallelTestingDetailLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionMaterialParallelTestingDetailLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionMaterialParallelTestingDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--材料平行检验明细控制器
|
||||
* Class SupervisionMaterialParallelTestingDetailController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionMaterialParallelTestingDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料平行检验明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMaterialParallelTestingDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--材料平行检验明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingDetailValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMaterialParallelTestingDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--材料平行检验明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingDetailValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMaterialParallelTestingDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingDetailLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 检验工程监理--见证取样明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function check()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingDetailValidate())->post()->goCheck('check');
|
||||
$result = SupervisionMaterialParallelTestingDetailLogic::check($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('检验成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--材料平行检验明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingDetailValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionMaterialParallelTestingDetailLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMaterialParallelTestingDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--材料平行检验明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 15:00
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMaterialParallelTestingDetailValidate())->goCheck('detail');
|
||||
$result = SupervisionMaterialParallelTestingDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionMeetingMinutesLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionMeetingMinutesLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionMeetingMinutesValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--会议纪要控制器
|
||||
* Class SupervisionMeetingMinutesController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionMeetingMinutesController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--会议纪要列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 14:31
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionMeetingMinutesLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--会议纪要
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 14:31
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionMeetingMinutesValidate())->post()->goCheck('add');
|
||||
$result = SupervisionMeetingMinutesLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMeetingMinutesLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--会议纪要
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 14:31
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionMeetingMinutesValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionMeetingMinutesLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionMeetingMinutesLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--会议纪要
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 14:31
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionMeetingMinutesValidate())->post()->goCheck('delete');
|
||||
SupervisionMeetingMinutesLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--会议纪要详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 14:31
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionMeetingMinutesValidate())->goCheck('detail');
|
||||
$result = SupervisionMeetingMinutesLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionNoticeLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionNoticeLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionNoticeValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理通知单控制器
|
||||
* Class SupervisionNoticeController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionNoticeController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理通知单列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionNoticeLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理通知单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionNoticeValidate())->post()->goCheck('add');
|
||||
$result = SupervisionNoticeLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionNoticeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理通知单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionNoticeValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionNoticeLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionNoticeLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 回复工程监理--监理通知单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function reply()
|
||||
{
|
||||
$params = (new SupervisionNoticeValidate())->post()->goCheck('reply');
|
||||
$result = SupervisionNoticeLogic::reply($params);
|
||||
if (true === $result) {
|
||||
return $this->success('回复成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionNoticeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理通知单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionNoticeValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionNoticeLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionNoticeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理通知单详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionNoticeValidate())->goCheck('detail');
|
||||
$result = SupervisionNoticeLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionNoticeProblemLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionNoticeProblemLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionNoticeProblemValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--监理通知问题控制器
|
||||
* Class SupervisionNoticeProblemController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionNoticeProblemController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理通知问题列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionNoticeProblemLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--监理通知问题
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionNoticeProblemValidate())->post()->goCheck('add');
|
||||
$result = SupervisionNoticeProblemLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionNoticeProblemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--监理通知问题
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionNoticeProblemValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionNoticeProblemLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionNoticeProblemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--监理通知问题
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionNoticeProblemValidate())->post()->goCheck('delete');
|
||||
SupervisionNoticeProblemLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--监理通知问题详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/01 09:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionNoticeProblemValidate())->goCheck('detail');
|
||||
$result = SupervisionNoticeProblemLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionProblemLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionProblemLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionProblemValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 问题跟踪台账控制器
|
||||
* Class SupervisionProblemController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionProblemController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取问题跟踪台账列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 09:19
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionProblemLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加问题跟踪台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 09:19
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionProblemValidate())->post()->goCheck('add');
|
||||
$result = SupervisionProblemLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionProblemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑问题跟踪台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 09:19
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionProblemValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionProblemLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionProblemLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 检查验收问题跟踪台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 09:19
|
||||
*/
|
||||
public function check()
|
||||
{
|
||||
$params = (new SupervisionProblemValidate())->post()->goCheck('check');
|
||||
$result = SupervisionProblemLogic::check($params);
|
||||
if (true === $result) {
|
||||
return $this->success('检查验收成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionProblemLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除问题跟踪台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 09:19
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionProblemValidate())->post()->goCheck('delete');
|
||||
SupervisionProblemLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取问题跟踪台账详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/28 09:19
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionProblemValidate())->goCheck('detail');
|
||||
$result = SupervisionProblemLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionSideStationLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionSideStationLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionSideStationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--旁站登记控制器
|
||||
* Class SupervisionSideStationController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionSideStationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--旁站登记列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionSideStationLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--旁站登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionSideStationValidate())->post()->goCheck('add');
|
||||
$result = SupervisionSideStationLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSideStationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--旁站登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionSideStationValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionSideStationLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSideStationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--旁站登记
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionSideStationValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionSideStationLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSideStationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--旁站登记详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionSideStationValidate())->goCheck('detail');
|
||||
$result = SupervisionSideStationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionSideStationResultLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionSideStationResultLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionSideStationResultValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--旁站结果控制器
|
||||
* Class SupervisionSideStationResultController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionSideStationResultController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--旁站结果列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionSideStationResultLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--旁站结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionSideStationResultValidate())->post()->goCheck('add');
|
||||
$result = SupervisionSideStationResultLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSideStationResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--旁站结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionSideStationResultValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionSideStationResultLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionSideStationResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--旁站结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionSideStationResultValidate())->post()->goCheck('delete');
|
||||
SupervisionSideStationResultLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--旁站结果详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/27 13:58
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionSideStationResultValidate())->goCheck('detail');
|
||||
$result = SupervisionSideStationResultLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionTestBlocksSpecimensLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionTestBlocksSpecimensLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionTestBlocksSpecimensValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--试块试件见证控制器
|
||||
* Class SupervisionTestBlocksSpecimensController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionTestBlocksSpecimensController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--试块试件见证列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 14:02
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionTestBlocksSpecimensLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--试块试件见证
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 14:02
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionTestBlocksSpecimensValidate())->post()->goCheck('add');
|
||||
$result = SupervisionTestBlocksSpecimensLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionTestBlocksSpecimensLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--试块试件见证
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 14:02
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionTestBlocksSpecimensValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionTestBlocksSpecimensLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionTestBlocksSpecimensLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--试块试件见证
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 14:02
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionTestBlocksSpecimensValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionTestBlocksSpecimensLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionTestBlocksSpecimensLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--试块试件见证详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 14:02
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionTestBlocksSpecimensValidate())->goCheck('detail');
|
||||
$result = SupervisionTestBlocksSpecimensLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionWitnessSamplingLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionWitnessSamplingLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionWitnessSamplingValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--见证取样控制器
|
||||
* Class SupervisionWitnessSamplingController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionWitnessSamplingController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--见证取样列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionWitnessSamplingLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--见证取样
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingValidate())->post()->goCheck('add');
|
||||
$result = SupervisionWitnessSamplingLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--见证取样
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionWitnessSamplingLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--见证取样
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionWitnessSamplingLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--见证取样详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingValidate())->goCheck('detail');
|
||||
$result = SupervisionWitnessSamplingLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\supervision_work;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supervision_work\SupervisionWitnessSamplingDetailLists;
|
||||
use app\adminapi\logic\supervision_work\SupervisionWitnessSamplingDetailLogic;
|
||||
use app\adminapi\validate\supervision_work\SupervisionWitnessSamplingDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 工程监理--见证取样明细控制器
|
||||
* Class SupervisionWitnessSamplingDetailController
|
||||
* @package app\adminapi\controller\supervision_work
|
||||
*/
|
||||
class SupervisionWitnessSamplingDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--见证取样明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupervisionWitnessSamplingDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工程监理--见证取样明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('add');
|
||||
$result = SupervisionWitnessSamplingDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工程监理--见证取样明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('edit');
|
||||
$result = SupervisionWitnessSamplingDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingDetailLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 检验工程监理--见证取样明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function check()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('check');
|
||||
$result = SupervisionWitnessSamplingDetailLogic::check($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('检验成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工程监理--见证取样明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('delete');
|
||||
$result = SupervisionWitnessSamplingDetailLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupervisionWitnessSamplingDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工程监理--见证取样明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/29 09:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupervisionWitnessSamplingDetailValidate())->goCheck('detail');
|
||||
$result = SupervisionWitnessSamplingDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user