Merge branch 'dev'
This commit is contained in:
commit
2ab6fbc69c
@ -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\administrative;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\administrative\AdministrativePaymentsLists;
|
||||
use app\adminapi\logic\administrative\AdministrativePaymentsLogic;
|
||||
use app\adminapi\validate\administrative\AdministrativePaymentsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* AdministrativePayments控制器
|
||||
* Class AdministrativePaymentsController
|
||||
* @package app\adminapi\controller\administrative
|
||||
*/
|
||||
class AdministrativePaymentsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new AdministrativePaymentsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new AdministrativePaymentsValidate())->post()->goCheck('add');
|
||||
$result = AdministrativePaymentsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AdministrativePaymentsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new AdministrativePaymentsValidate())->post()->goCheck('edit');
|
||||
$result = AdministrativePaymentsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AdministrativePaymentsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new AdministrativePaymentsValidate())->post()->goCheck('delete');
|
||||
AdministrativePaymentsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new AdministrativePaymentsValidate())->goCheck('detail');
|
||||
$result = AdministrativePaymentsLogic::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\administrative;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\administrative\AdministrativeTicketCollectionLists;
|
||||
use app\adminapi\logic\administrative\AdministrativeTicketCollectionLogic;
|
||||
use app\adminapi\validate\administrative\AdministrativeTicketCollectionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* AdministrativeTicketCollection控制器
|
||||
* Class AdministrativeTicketCollectionController
|
||||
* @package app\adminapi\controller\administrative
|
||||
*/
|
||||
class AdministrativeTicketCollectionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new AdministrativeTicketCollectionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new AdministrativeTicketCollectionValidate())->post()->goCheck('add');
|
||||
$result = AdministrativeTicketCollectionLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AdministrativeTicketCollectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new AdministrativeTicketCollectionValidate())->post()->goCheck('edit');
|
||||
$result = AdministrativeTicketCollectionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AdministrativeTicketCollectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new AdministrativeTicketCollectionValidate())->post()->goCheck('delete');
|
||||
AdministrativeTicketCollectionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new AdministrativeTicketCollectionValidate())->goCheck('detail');
|
||||
$result = AdministrativeTicketCollectionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -19,6 +19,10 @@ use app\adminapi\lists\auth\AdminLists;
|
||||
use app\adminapi\validate\auth\AdminValidate;
|
||||
use app\adminapi\logic\auth\AdminLogic;
|
||||
use app\adminapi\validate\auth\editSelfValidate;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\dept\Dept;
|
||||
use app\common\model\dept\Jobs;
|
||||
use app\common\model\dept\Orgs;
|
||||
|
||||
/**
|
||||
* 管理员控制器
|
||||
@ -130,5 +134,69 @@ class AdminController extends BaseAdminController
|
||||
$result = AdminLogic::editSelf($params);
|
||||
return $this->success('操作成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
//获取所有人员
|
||||
public function getAdminsByAll(): \think\response\Json
|
||||
{
|
||||
$data = Admin::field('id,name,avatar,org_id,dept_id,job_id')->select()->each(function($item){
|
||||
$job = Jobs::field('name')->where('id',$item['job_id'])->findOrEmpty();
|
||||
$dept = Dept::field('name')->where('id',$item['dept_id'])->findOrEmpty();
|
||||
$org = Orgs::field('name')->where('id',$item['org_id'])->findOrEmpty();
|
||||
$item['job_name'] = $job->isEmpty() ? '' : $job['name'];
|
||||
$item['dept_name'] = $dept->isEmpty() ? '' : $dept['name'];
|
||||
$item['org_name'] = $org->isEmpty() ? '' : $org['name'];
|
||||
unset($item['org_id'],$item['dept_id'],$item['job_id']);
|
||||
return $item;
|
||||
})->toArray();
|
||||
foreach($data as $k=>$v){
|
||||
unset($data[$k]['role_id']);
|
||||
}
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
//获取某个部门下的所有人员
|
||||
public function getAdminsByDept(): \think\response\Json
|
||||
{
|
||||
$dept_id = $this->request->get('dept_id');
|
||||
if(empty($dept_id)){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$data = Admin::field('id,name,avatar,org_id,dept_id,job_id')->where('dept_id',$dept_id)->select()->each(function($item){
|
||||
$job = Jobs::field('name')->where('id',$item['job_id'])->findOrEmpty();
|
||||
$dept = Dept::field('name')->where('id',$item['dept_id'])->findOrEmpty();
|
||||
$org = Orgs::field('name')->where('id',$item['org_id'])->findOrEmpty();
|
||||
$item['job_name'] = $job->isEmpty() ? '' : $job['name'];
|
||||
$item['dept_name'] = $dept->isEmpty() ? '' : $dept['name'];
|
||||
$item['org_name'] = $org->isEmpty() ? '' : $org['name'];
|
||||
unset($item['org_id'],$item['dept_id'],$item['job_id']);
|
||||
return $item;
|
||||
})->toArray();
|
||||
foreach($data as $k=>$v){
|
||||
unset($data[$k]['role_id']);
|
||||
}
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
//获取某个岗位下的所有人员
|
||||
public function getAdminsByJob(): \think\response\Json
|
||||
{
|
||||
$job_id = $this->request->get('job_id');
|
||||
if(empty($job_id)){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$data = Admin::field('id,name,avatar,org_id,dept_id,job_id')->where('job_id',$job_id)->select()->each(function($item){
|
||||
$job = Jobs::field('name')->where('id',$item['job_id'])->findOrEmpty();
|
||||
$dept = Dept::field('name')->where('id',$item['dept_id'])->findOrEmpty();
|
||||
$org = Orgs::field('name')->where('id',$item['org_id'])->findOrEmpty();
|
||||
$item['job_name'] = $job->isEmpty() ? '' : $job['name'];
|
||||
$item['dept_name'] = $dept->isEmpty() ? '' : $dept['name'];
|
||||
$item['org_name'] = $org->isEmpty() ? '' : $org['name'];
|
||||
unset($item['org_id'],$item['dept_id'],$item['job_id']);
|
||||
return $item;
|
||||
})->toArray();
|
||||
foreach($data as $k=>$v){
|
||||
unset($data[$k]['role_id']);
|
||||
}
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
}
|
108
app/adminapi/controller/bank/BankAccountController.php
Normal file
108
app/adminapi/controller/bank/BankAccountController.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\bank;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bank\BankAccountLists;
|
||||
use app\adminapi\logic\bank\BankAccountLogic;
|
||||
use app\adminapi\validate\bank\BankAccountValidate;
|
||||
|
||||
|
||||
/**
|
||||
* BankAccount控制器
|
||||
* Class BankAccountController
|
||||
* @package app\adminapi\controller\bank
|
||||
*/
|
||||
class BankAccountController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BankAccountLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BankAccountValidate())->post()->goCheck('add');
|
||||
$result = BankAccountLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BankAccountLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BankAccountValidate())->post()->goCheck('edit');
|
||||
$result = BankAccountLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BankAccountLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BankAccountValidate())->post()->goCheck('delete');
|
||||
BankAccountLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BankAccountValidate())->goCheck('detail');
|
||||
$result = BankAccountLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bank/RateSettingController.php
Normal file
108
app/adminapi/controller/bank/RateSettingController.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\bank;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bank\RateSettingLists;
|
||||
use app\adminapi\logic\bank\RateSettingLogic;
|
||||
use app\adminapi\validate\bank\RateSettingValidate;
|
||||
|
||||
|
||||
/**
|
||||
* RateSetting控制器
|
||||
* Class RateSettingController
|
||||
* @package app\adminapi\controller\bank
|
||||
*/
|
||||
class RateSettingController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new RateSettingLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new RateSettingValidate())->post()->goCheck('add');
|
||||
$result = RateSettingLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(RateSettingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new RateSettingValidate())->post()->goCheck('edit');
|
||||
$result = RateSettingLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(RateSettingLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new RateSettingValidate())->post()->goCheck('delete');
|
||||
RateSettingLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new RateSettingValidate())->goCheck('detail');
|
||||
$result = RateSettingLogic::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\bank;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bank\RevenueExpenditureStatementLists;
|
||||
use app\adminapi\logic\bank\RevenueExpenditureStatementLogic;
|
||||
use app\adminapi\validate\bank\RevenueExpenditureStatementValidate;
|
||||
|
||||
|
||||
/**
|
||||
* RevenueExpenditureStatement控制器
|
||||
* Class RevenueExpenditureStatementController
|
||||
* @package app\adminapi\controller\bank
|
||||
*/
|
||||
class RevenueExpenditureStatementController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new RevenueExpenditureStatementLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new RevenueExpenditureStatementValidate())->post()->goCheck('add');
|
||||
$result = RevenueExpenditureStatementLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(RevenueExpenditureStatementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new RevenueExpenditureStatementValidate())->post()->goCheck('edit');
|
||||
$result = RevenueExpenditureStatementLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(RevenueExpenditureStatementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new RevenueExpenditureStatementValidate())->post()->goCheck('delete');
|
||||
RevenueExpenditureStatementLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new RevenueExpenditureStatementValidate())->goCheck('detail');
|
||||
$result = RevenueExpenditureStatementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bid/BidSecurityApplyController.php
Normal file
108
app/adminapi/controller/bid/BidSecurityApplyController.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\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidSecurityApplyLists;
|
||||
use app\adminapi\logic\bid\BidSecurityApplyLogic;
|
||||
use app\adminapi\validate\bid\BidSecurityApplyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* BidSecurityApply控制器
|
||||
* Class BidSecurityApplyController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidSecurityApplyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidSecurityApplyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidSecurityApplyValidate())->post()->goCheck('add');
|
||||
$result = BidSecurityApplyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidSecurityApplyValidate())->post()->goCheck('edit');
|
||||
$result = BidSecurityApplyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidSecurityApplyValidate())->post()->goCheck('delete');
|
||||
BidSecurityApplyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidSecurityApplyValidate())->goCheck('detail');
|
||||
$result = BidSecurityApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bid/BidSecurityRefundController.php
Normal file
108
app/adminapi/controller/bid/BidSecurityRefundController.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\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidSecurityRefundLists;
|
||||
use app\adminapi\logic\bid\BidSecurityRefundLogic;
|
||||
use app\adminapi\validate\bid\BidSecurityRefundValidate;
|
||||
|
||||
|
||||
/**
|
||||
* BidSecurityRefund控制器
|
||||
* Class BidSecurityRefundController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidSecurityRefundController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidSecurityRefundLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidSecurityRefundValidate())->post()->goCheck('add');
|
||||
$result = BidSecurityRefundLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityRefundLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidSecurityRefundValidate())->post()->goCheck('edit');
|
||||
$result = BidSecurityRefundLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityRefundLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidSecurityRefundValidate())->post()->goCheck('delete');
|
||||
BidSecurityRefundLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidSecurityRefundValidate())->goCheck('detail');
|
||||
$result = BidSecurityRefundLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bill/AcceptanceBillController.php
Normal file
108
app/adminapi/controller/bill/AcceptanceBillController.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\bill;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bill\AcceptanceBillLists;
|
||||
use app\adminapi\logic\bill\AcceptanceBillLogic;
|
||||
use app\adminapi\validate\bill\AcceptanceBillValidate;
|
||||
|
||||
|
||||
/**
|
||||
* AcceptanceBill控制器
|
||||
* Class AcceptanceBillController
|
||||
* @package app\adminapi\controller\bill
|
||||
*/
|
||||
class AcceptanceBillController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:18
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new AcceptanceBillLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:18
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new AcceptanceBillValidate())->post()->goCheck('add');
|
||||
$result = AcceptanceBillLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AcceptanceBillLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:18
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new AcceptanceBillValidate())->post()->goCheck('edit');
|
||||
$result = AcceptanceBillLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AcceptanceBillLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:18
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new AcceptanceBillValidate())->post()->goCheck('delete');
|
||||
AcceptanceBillLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:18
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new AcceptanceBillValidate())->goCheck('detail');
|
||||
$result = AcceptanceBillLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bill/RedemptionBillController.php
Normal file
108
app/adminapi/controller/bill/RedemptionBillController.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\bill;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bill\RedemptionBillLists;
|
||||
use app\adminapi\logic\bill\RedemptionBillLogic;
|
||||
use app\adminapi\validate\bill\RedemptionBillValidate;
|
||||
|
||||
|
||||
/**
|
||||
* RedemptionBill控制器
|
||||
* Class RedemptionBillController
|
||||
* @package app\adminapi\controller\bill
|
||||
*/
|
||||
class RedemptionBillController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 11:01
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new RedemptionBillLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 11:01
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new RedemptionBillValidate())->post()->goCheck('add');
|
||||
$result = RedemptionBillLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(RedemptionBillLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 11:01
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new RedemptionBillValidate())->post()->goCheck('edit');
|
||||
$result = RedemptionBillLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(RedemptionBillLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 11:01
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new RedemptionBillValidate())->post()->goCheck('delete');
|
||||
RedemptionBillLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 11:01
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new RedemptionBillValidate())->goCheck('detail');
|
||||
$result = RedemptionBillLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bill/TransferBillController.php
Normal file
108
app/adminapi/controller/bill/TransferBillController.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\bill;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bill\TransferBillLists;
|
||||
use app\adminapi\logic\bill\TransferBillLogic;
|
||||
use app\adminapi\validate\bill\TransferBillValidate;
|
||||
|
||||
|
||||
/**
|
||||
* TransferBill控制器
|
||||
* Class TransferBillController
|
||||
* @package app\adminapi\controller\bill
|
||||
*/
|
||||
class TransferBillController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:14
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new TransferBillLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:14
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new TransferBillValidate())->post()->goCheck('add');
|
||||
$result = TransferBillLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(TransferBillLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:14
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new TransferBillValidate())->post()->goCheck('edit');
|
||||
$result = TransferBillLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(TransferBillLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:14
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new TransferBillValidate())->post()->goCheck('delete');
|
||||
TransferBillLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:14
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new TransferBillValidate())->goCheck('detail');
|
||||
$result = TransferBillLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/build/BuildDivisionController.php
Normal file
108
app/adminapi/controller/build/BuildDivisionController.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\build;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\build\BuildDivisionLists;
|
||||
use app\adminapi\logic\build\BuildDivisionLogic;
|
||||
use app\adminapi\validate\build\BuildDivisionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 分部分项划分控制器
|
||||
* Class BuildDivisionController
|
||||
* @package app\adminapi\controller\build
|
||||
*/
|
||||
class BuildDivisionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分部分项划分列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BuildDivisionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加分部分项划分
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:17
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BuildDivisionValidate())->post()->goCheck('add');
|
||||
$result = BuildDivisionLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildDivisionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑分部分项划分
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:17
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BuildDivisionValidate())->post()->goCheck('edit');
|
||||
$result = BuildDivisionLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildDivisionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除分部分项划分
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:17
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BuildDivisionValidate())->post()->goCheck('delete');
|
||||
BuildDivisionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分部分项划分详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:17
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BuildDivisionValidate())->goCheck('detail');
|
||||
$result = BuildDivisionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
186
app/adminapi/controller/build/BuildPlanController.php
Normal file
186
app/adminapi/controller/build/BuildPlanController.php
Normal file
@ -0,0 +1,186 @@
|
||||
<?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\build;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\build\BuildPlanLists;
|
||||
use app\adminapi\logic\build\BuildPlanLogic;
|
||||
use app\adminapi\validate\build\BuildPlanValidate;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\build\BuildPlan;
|
||||
use app\common\model\build\BuildReport;
|
||||
use app\common\model\build\BuildReportDetail;
|
||||
use app\common\model\project\ProjectPersonnel;
|
||||
use think\app\command\Build;
|
||||
|
||||
|
||||
/**
|
||||
* 施工计划控制器
|
||||
* Class BuildPlanController
|
||||
* @package app\adminapi\controller\build
|
||||
*/
|
||||
class BuildPlanController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取施工计划列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 11:04
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BuildPlanLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加施工计划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 11:04
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BuildPlanValidate())->post()->goCheck('add');
|
||||
$result = BuildPlanLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑施工计划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 11:04
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BuildPlanValidate())->post()->goCheck('edit');
|
||||
$result = BuildPlanLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除施工计划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 11:04
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BuildPlanValidate())->post()->goCheck('delete');
|
||||
BuildPlanLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取施工计划详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 11:04
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BuildPlanValidate())->goCheck('detail');
|
||||
$result = BuildPlanLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//某个计划下的施工汇报列表
|
||||
public function reports(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['plan_id','page_no','page_size']);
|
||||
if(empty($params['plan_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$planInfo = BuildPlan::field('price')->where('id',$params['plan_id'])->findOrEmpty();
|
||||
if($planInfo->isEmpty()){
|
||||
return $this->fail('施工计划数据不存在');
|
||||
}
|
||||
$data = BuildReport::field('report_code,add_user,create_time,scene_file,report_workload,report_amount,remark')
|
||||
->where('plan_id',$params['plan_id'])
|
||||
->page($pageNo,$pageSize)
|
||||
->order('id desc')
|
||||
->select()->each(function($item)use($planInfo){
|
||||
$admin = Admin::field('name')->where('id',$item['add_user'])->findOrEmpty();
|
||||
$item['price'] = $planInfo['price'];
|
||||
$item['add_user_name'] = $admin['name'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = BuildReport::field('id')->where('plan_id',$params['plan_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
//某个计划下的人工明细列表
|
||||
public function persons(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['plan_id','page_no','page_size']);
|
||||
if(empty($params['plan_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$planInfo = BuildPlan::field('price,unit')->where('id',$params['plan_id'])->findOrEmpty();
|
||||
if($planInfo->isEmpty()){
|
||||
return $this->fail('施工计划数据不存在');
|
||||
}
|
||||
$report_ids = BuildReport::where('plan_id',$params['plan_id'])->column('id');
|
||||
$data = BuildReportDetail::field('report_id,person_id,work_num')->where('report_id','in',$report_ids)
|
||||
->page($pageNo,$pageSize)->order('id desc')
|
||||
->select()->each(function($item)use($planInfo){
|
||||
$report = BuildReport::field('report_code,create_time')->where('id',$item['report_id'])->findOrEmpty();
|
||||
$person = ProjectPersonnel::field('name,idcard,work_type')->where('id',$item['person_id'])->findOrEmpty();
|
||||
$item['report_code'] = $report['report_code'];
|
||||
$item['report_date'] = $report['create_time'];
|
||||
$item['person_name'] = $person['name'];
|
||||
$item['person_idcard'] = $person['idcard'];
|
||||
$item['person_work_type_text'] = $person->work_type_text;
|
||||
$item['price'] = $planInfo['price'];
|
||||
$item['unit'] = $planInfo['unit'];
|
||||
$item['amount'] = $item['price']*$item['work_num'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = BuildReportDetail::field('id')->where('report_id','in',$report_ids)->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
}
|
133
app/adminapi/controller/build/BuildProcessSettingsController.php
Normal file
133
app/adminapi/controller/build/BuildProcessSettingsController.php
Normal file
@ -0,0 +1,133 @@
|
||||
<?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\build;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\build\BuildProcessSettingsLists;
|
||||
use app\adminapi\logic\build\BuildProcessSettingsLogic;
|
||||
use app\adminapi\validate\build\BuildProcessSettingsValidate;
|
||||
use app\common\model\build\BuildProcessSettings;
|
||||
|
||||
|
||||
/**
|
||||
* 施工工序设置控制器
|
||||
* Class BuildProcessSettingsController
|
||||
* @package app\adminapi\controller\build
|
||||
*/
|
||||
class BuildProcessSettingsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取施工工序设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:51
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BuildProcessSettingsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加施工工序设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:51
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BuildProcessSettingsValidate())->post()->goCheck('add');
|
||||
$result = BuildProcessSettingsLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildProcessSettingsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑施工工序设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:51
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BuildProcessSettingsValidate())->post()->goCheck('edit');
|
||||
$result = BuildProcessSettingsLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildProcessSettingsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除施工工序设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:51
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BuildProcessSettingsValidate())->post()->goCheck('delete');
|
||||
BuildProcessSettingsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取施工工序设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 09:51
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BuildProcessSettingsValidate())->goCheck('detail');
|
||||
$result = BuildProcessSettingsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取某个分部工程下的施工工序
|
||||
public function listToDivision(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['division_id','page_size','page_no']);
|
||||
if(empty($params['division_id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$data = BuildProcessSettings::field('id,process_step_no,process_step,quality_control_points,file')
|
||||
->where('division_id',$params['division_id'])
|
||||
->page($pageNo,$pageSize)
|
||||
->order('id desc')
|
||||
->select()->toArray();
|
||||
$count = BuildProcessSettings::field('id,process_step_no,process_step,quality_control_points,file')->where('division_id',$params['division_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
|
||||
}
|
114
app/adminapi/controller/build/BuildReportController.php
Normal file
114
app/adminapi/controller/build/BuildReportController.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\build;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\build\BuildReportLists;
|
||||
use app\adminapi\logic\build\BuildReportLogic;
|
||||
use app\adminapi\validate\build\BuildReportValidate;
|
||||
use app\common\model\build\BuildPlan;
|
||||
use app\common\model\build\BuildReport;
|
||||
use app\common\model\build\BuildReportDetail;
|
||||
use app\common\model\project\ProjectPersonnel;
|
||||
|
||||
|
||||
/**
|
||||
* 施工汇报控制器
|
||||
* Class BuildReportController
|
||||
* @package app\adminapi\controller\build
|
||||
*/
|
||||
class BuildReportController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取施工汇报列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 16:08
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BuildReportLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加施工汇报
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 16:08
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BuildReportValidate())->post()->goCheck('add');
|
||||
$result = BuildReportLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BuildReportLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 获取施工汇报详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 16:08
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BuildReportValidate())->goCheck('detail');
|
||||
$result = BuildReportLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function personDetails(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['report_id','page_no','page_size']);
|
||||
if(empty($params['report_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$reportInfo = BuildReport::field('plan_id')->where('id',$params['report_id'])->findOrEmpty();
|
||||
if($reportInfo->isEmpty()){
|
||||
return $this->fail('施工汇报数据不存在');
|
||||
}
|
||||
$planInfo = BuildPlan::field('price,unit')->where('id',$reportInfo['plan_id'])->findOrEmpty();
|
||||
$data = BuildReportDetail::field('person_id,work_num')->where('report_id',$params['report_id'])
|
||||
->page($pageNo,$pageSize)->order('id desc')
|
||||
->select()->each(function($item)use($planInfo){
|
||||
$person = ProjectPersonnel::field('name,idcard,work_type')->where('id',$item['person_id'])->findOrEmpty();
|
||||
$item['person_name'] = $person['name'];
|
||||
$item['person_idcard'] = $person['idcard'];
|
||||
$item['person_work_type_text'] = $person->work_type_text;
|
||||
$item['price'] = $planInfo['price'];
|
||||
$item['unit'] = $planInfo['unit'];
|
||||
$item['amount'] = $item['price']*$item['work_num'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = BuildReportDetail::field('id')->where('report_id',$params['report_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
<?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\build;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\build\BuildReportDetailLists;
|
||||
|
||||
|
||||
/**
|
||||
* 人工明细控制器
|
||||
* Class BuildReportDetailController
|
||||
* @package app\adminapi\controller\build
|
||||
*/
|
||||
class BuildReportDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取人工明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 16:10
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BuildReportDetailLists());
|
||||
}
|
||||
|
||||
}
|
@ -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\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\AdministrativeContractLists;
|
||||
use app\adminapi\logic\contract\AdministrativeContractLogic;
|
||||
use app\adminapi\validate\contract\AdministrativeContractValidate;
|
||||
|
||||
|
||||
/**
|
||||
* AdministrativeContract控制器
|
||||
* Class AdministrativeContractController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class AdministrativeContractController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new AdministrativeContractLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new AdministrativeContractValidate())->post()->goCheck('add');
|
||||
$result = AdministrativeContractLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AdministrativeContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new AdministrativeContractValidate())->post()->goCheck('edit');
|
||||
$result = AdministrativeContractLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AdministrativeContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new AdministrativeContractValidate())->post()->goCheck('delete');
|
||||
AdministrativeContractLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new AdministrativeContractValidate())->goCheck('detail');
|
||||
$result = AdministrativeContractLogic::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\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ProcurementContractChangeLists;
|
||||
use app\adminapi\logic\contract\ProcurementContractChangeLogic;
|
||||
use app\adminapi\validate\contract\ProcurementContractChangeValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProcurementContractChange控制器
|
||||
* Class ProcurementContractChangeController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class ProcurementContractChangeController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 15:31
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProcurementContractChangeLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 15:31
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProcurementContractChangeValidate())->post()->goCheck('add');
|
||||
$result = ProcurementContractChangeLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractChangeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 15:31
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProcurementContractChangeValidate())->post()->goCheck('edit');
|
||||
$result = ProcurementContractChangeLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractChangeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 15:31
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProcurementContractChangeValidate())->post()->goCheck('delete');
|
||||
ProcurementContractChangeLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 15:31
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProcurementContractChangeValidate())->goCheck('detail');
|
||||
$result = ProcurementContractChangeLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -16,14 +16,14 @@
|
||||
namespace app\adminapi\controller\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\SubcontractingContractLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractLogic;
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\SubcontractingContractLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 分包合同控制器
|
||||
* SubcontractingContract控制器
|
||||
* Class SubcontractingContractController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
@ -32,10 +32,10 @@ class SubcontractingContractController extends BaseAdminController
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同列表
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
@ -44,10 +44,10 @@ class SubcontractingContractController extends BaseAdminController
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加分包合同
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
@ -61,10 +61,10 @@ class SubcontractingContractController extends BaseAdminController
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑分包合同
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
@ -78,10 +78,10 @@ class SubcontractingContractController extends BaseAdminController
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除分包合同
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
@ -92,10 +92,10 @@ class SubcontractingContractController extends BaseAdminController
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同详情
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
|
@ -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\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\SubcontractingContractNegotiationLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractNegotiationLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractNegotiationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* SubcontractingContractNegotiation控制器
|
||||
* Class SubcontractingContractNegotiationController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class SubcontractingContractNegotiationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:21
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SubcontractingContractNegotiationLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:21
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SubcontractingContractNegotiationValidate())->post()->goCheck('add');
|
||||
$result = SubcontractingContractNegotiationLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:21
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SubcontractingContractNegotiationValidate())->post()->goCheck('edit');
|
||||
$result = SubcontractingContractNegotiationLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:21
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SubcontractingContractNegotiationValidate())->post()->goCheck('delete');
|
||||
SubcontractingContractNegotiationLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:21
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SubcontractingContractNegotiationValidate())->goCheck('detail');
|
||||
$result = SubcontractingContractNegotiationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/cost/CostBudgetAdjustController.php
Normal file
108
app/adminapi/controller/cost/CostBudgetAdjustController.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\cost;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost\CostBudgetAdjustLists;
|
||||
use app\adminapi\logic\cost\CostBudgetAdjustLogic;
|
||||
use app\adminapi\validate\cost\CostBudgetAdjustValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CostBudgetAdjust控制器
|
||||
* Class CostBudgetAdjustController
|
||||
* @package app\adminapi\controller\cost
|
||||
*/
|
||||
class CostBudgetAdjustController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostBudgetAdjustLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:17
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostBudgetAdjustValidate())->post()->goCheck('add');
|
||||
$result = CostBudgetAdjustLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetAdjustLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:17
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostBudgetAdjustValidate())->post()->goCheck('edit');
|
||||
$result = CostBudgetAdjustLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetAdjustLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:17
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostBudgetAdjustValidate())->post()->goCheck('delete');
|
||||
CostBudgetAdjustLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:17
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostBudgetAdjustValidate())->goCheck('detail');
|
||||
$result = CostBudgetAdjustLogic::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\cost;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost\CostBudgetAdjustDetailLists;
|
||||
use app\adminapi\logic\cost\CostBudgetAdjustDetailLogic;
|
||||
use app\adminapi\validate\cost\CostBudgetAdjustDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CostBudgetAdjustDetail控制器
|
||||
* Class CostBudgetAdjustDetailController
|
||||
* @package app\adminapi\controller\cost
|
||||
*/
|
||||
class CostBudgetAdjustDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:06
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostBudgetAdjustDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:06
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostBudgetAdjustDetailValidate())->post()->goCheck('add');
|
||||
$result = CostBudgetAdjustDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetAdjustDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:06
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostBudgetAdjustDetailValidate())->post()->goCheck('edit');
|
||||
$result = CostBudgetAdjustDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetAdjustDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:06
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostBudgetAdjustDetailValidate())->post()->goCheck('delete');
|
||||
CostBudgetAdjustDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:06
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostBudgetAdjustDetailValidate())->goCheck('detail');
|
||||
$result = CostBudgetAdjustDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/cost/CostBudgetController.php
Normal file
108
app/adminapi/controller/cost/CostBudgetController.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\cost;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost\CostBudgetLists;
|
||||
use app\adminapi\logic\cost\CostBudgetLogic;
|
||||
use app\adminapi\validate\cost\CostBudgetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CostBudget控制器
|
||||
* Class CostBudgetController
|
||||
* @package app\adminapi\controller\cost
|
||||
*/
|
||||
class CostBudgetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostBudgetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostBudgetValidate())->post()->goCheck('add');
|
||||
$result = CostBudgetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostBudgetValidate())->post()->goCheck('edit');
|
||||
$result = CostBudgetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostBudgetValidate())->post()->goCheck('delete');
|
||||
CostBudgetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostBudgetValidate())->goCheck('detail');
|
||||
$result = CostBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/cost/CostBudgetDetailController.php
Normal file
108
app/adminapi/controller/cost/CostBudgetDetailController.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\cost;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost\CostBudgetDetailLists;
|
||||
use app\adminapi\logic\cost\CostBudgetDetailLogic;
|
||||
use app\adminapi\validate\cost\CostBudgetDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CostBudgetDetail控制器
|
||||
* Class CostBudgetDetailController
|
||||
* @package app\adminapi\controller\cost
|
||||
*/
|
||||
class CostBudgetDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostBudgetDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostBudgetDetailValidate())->post()->goCheck('add');
|
||||
$result = CostBudgetDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostBudgetDetailValidate())->post()->goCheck('edit');
|
||||
$result = CostBudgetDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostBudgetDetailValidate())->post()->goCheck('delete');
|
||||
CostBudgetDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostBudgetDetailValidate())->goCheck('detail');
|
||||
$result = CostBudgetDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/cost/CostSubjectController.php
Normal file
108
app/adminapi/controller/cost/CostSubjectController.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\cost;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost\CostSubjectLists;
|
||||
use app\adminapi\logic\cost\CostSubjectLogic;
|
||||
use app\adminapi\validate\cost\CostSubjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CostSubject控制器
|
||||
* Class CostSubjectController
|
||||
* @package app\adminapi\controller\cost
|
||||
*/
|
||||
class CostSubjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostSubjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostSubjectValidate())->post()->goCheck('add');
|
||||
$result = CostSubjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostSubjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostSubjectValidate())->post()->goCheck('edit');
|
||||
$result = CostSubjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostSubjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostSubjectValidate())->post()->goCheck('delete');
|
||||
CostSubjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostSubjectValidate())->goCheck('detail');
|
||||
$result = CostSubjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,6 +20,9 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomerDemandLists;
|
||||
use app\adminapi\logic\custom\CustomerDemandLogic;
|
||||
use app\adminapi\validate\custom\CustomerDemandValidate;
|
||||
use app\common\model\custom\Custom;
|
||||
use app\common\model\custom\CustomerDemand;
|
||||
use app\common\model\project\Project;
|
||||
|
||||
|
||||
/**
|
||||
@ -103,6 +106,37 @@ class CustomerDemandController extends BaseAdminController
|
||||
$result = CustomerDemandLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
//根据项目id获取客户需求列表
|
||||
public function getListByProjectId(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['project_id','page_size','page_no']);
|
||||
if(empty($params['project_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageSize = !empty($params['page_size']) ? $params['page_size'] : 15;
|
||||
$pageNo = !empty($params['page_size']) ? $params['page_no'] : 1;
|
||||
$data = CustomerDemand::where('project_id',$params['project_id'])
|
||||
->field(['id', 'project_id', 'theme', 'supplier', 'supplier_contacts', 'importance', 'recording_time', 'demand_content', 'annex'])
|
||||
->order(['id' => 'desc'])->page($pageNo,$pageSize)
|
||||
->select()->each(function($item){
|
||||
$item['importance_text'] = $item->importance_text;
|
||||
$item['recording_time'] = date('Y-m-d H:i:s',$item['recording_time']);
|
||||
$project = Project::field('name,project_code,custom_id')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['custom_name'] = $custom['name'];
|
||||
return $item;
|
||||
})->toArray();
|
||||
$count = CustomerDemand::field('id')->where('project_id',$params['project_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
}
|
@ -103,6 +103,5 @@ class CustomerDemandSolutionController extends BaseAdminController
|
||||
$result = CustomerDemandSolutionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -18,7 +18,9 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\dept\DeptLists;
|
||||
use app\adminapi\logic\dept\DeptLogic;
|
||||
use app\adminapi\validate\dept\DeptValidate;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\dept\Dept;
|
||||
use app\common\model\dept\Orgs;
|
||||
|
||||
/**
|
||||
* 部门管理控制器
|
||||
@ -107,4 +109,18 @@ class DeptController extends BaseAdminController
|
||||
$data = Dept::field('id,name,leader,mobile,status')->where('org_id',$params['org_id'])->select()->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
//获取所有部门
|
||||
public function getAllDept(): \think\response\Json
|
||||
{
|
||||
$data = Dept::field('id,name,org_id')->select()->each(function($item){
|
||||
$org = Orgs::field('name')->where('id',$item['org_id'])->findOrEmpty();
|
||||
$item['org_name'] = $org->isEmpty() ? '' : $org['name'];
|
||||
$item['admin_num'] = Admin::where('dept_id',$item['id'])->count();
|
||||
unset($item['org_id']);
|
||||
return $item;
|
||||
})->toArray();
|
||||
$result = group_by($data, 'org_name');
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
}
|
@ -18,6 +18,7 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\dept\JobsLists;
|
||||
use app\adminapi\logic\dept\JobsLogic;
|
||||
use app\adminapi\validate\dept\JobsValidate;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\dept\Jobs;
|
||||
|
||||
|
||||
@ -109,5 +110,15 @@ class JobsController extends BaseAdminController
|
||||
$data = Jobs::field('id,name,status,sort,create_time')->where('dept_id',$params['dept_id'])->select()->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
//获取所有岗位
|
||||
public function getAllJobs(): \think\response\Json
|
||||
{
|
||||
$data = Jobs::field('id,name')->select()->each(function($item){
|
||||
$item['admin_num'] = Admin::where('job_id',$item['id'])->count();
|
||||
return $item;
|
||||
})->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
}
|
@ -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\expense;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\expense\ExpenseReimbursementLists;
|
||||
use app\adminapi\logic\expense\ExpenseReimbursementLogic;
|
||||
use app\adminapi\validate\expense\ExpenseReimbursementValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ExpenseReimbursement控制器
|
||||
* Class ExpenseReimbursementController
|
||||
* @package app\adminapi\controller\expense
|
||||
*/
|
||||
class ExpenseReimbursementController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:12
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ExpenseReimbursementLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:12
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ExpenseReimbursementValidate())->post()->goCheck('add');
|
||||
$result = ExpenseReimbursementLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ExpenseReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:12
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ExpenseReimbursementValidate())->post()->goCheck('edit');
|
||||
$result = ExpenseReimbursementLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ExpenseReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:12
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ExpenseReimbursementValidate())->post()->goCheck('delete');
|
||||
ExpenseReimbursementLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:12
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ExpenseReimbursementValidate())->goCheck('detail');
|
||||
$result = ExpenseReimbursementLogic::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\expense;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\expense\ExpenseReimbursementDetailLists;
|
||||
use app\adminapi\logic\expense\ExpenseReimbursementDetailLogic;
|
||||
use app\adminapi\validate\expense\ExpenseReimbursementDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ExpenseReimbursementDetail控制器
|
||||
* Class ExpenseReimbursementDetailController
|
||||
* @package app\adminapi\controller\expense
|
||||
*/
|
||||
class ExpenseReimbursementDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:10
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ExpenseReimbursementDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:10
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ExpenseReimbursementDetailValidate())->post()->goCheck('add');
|
||||
$result = ExpenseReimbursementDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ExpenseReimbursementDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:10
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ExpenseReimbursementDetailValidate())->post()->goCheck('edit');
|
||||
$result = ExpenseReimbursementDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ExpenseReimbursementDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:10
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ExpenseReimbursementDetailValidate())->post()->goCheck('delete');
|
||||
ExpenseReimbursementDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:10
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ExpenseReimbursementDetailValidate())->goCheck('detail');
|
||||
$result = ExpenseReimbursementDetailLogic::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\expense;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\expense\ExpenseReimbursementInvoiceDetailLists;
|
||||
use app\adminapi\logic\expense\ExpenseReimbursementInvoiceDetailLogic;
|
||||
use app\adminapi\validate\expense\ExpenseReimbursementInvoiceDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ExpenseReimbursementInvoiceDetail控制器
|
||||
* Class ExpenseReimbursementInvoiceDetailController
|
||||
* @package app\adminapi\controller\expense
|
||||
*/
|
||||
class ExpenseReimbursementInvoiceDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:09
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ExpenseReimbursementInvoiceDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:09
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ExpenseReimbursementInvoiceDetailValidate())->post()->goCheck('add');
|
||||
$result = ExpenseReimbursementInvoiceDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ExpenseReimbursementInvoiceDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:09
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ExpenseReimbursementInvoiceDetailValidate())->post()->goCheck('edit');
|
||||
$result = ExpenseReimbursementInvoiceDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ExpenseReimbursementInvoiceDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:09
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ExpenseReimbursementInvoiceDetailValidate())->post()->goCheck('delete');
|
||||
ExpenseReimbursementInvoiceDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:09
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ExpenseReimbursementInvoiceDetailValidate())->goCheck('detail');
|
||||
$result = ExpenseReimbursementInvoiceDetailLogic::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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceInvoiceApplyLists;
|
||||
use app\adminapi\logic\finance\FinanceInvoiceApplyLogic;
|
||||
use app\adminapi\validate\finance\FinanceInvoiceApplyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinanceInvoiceApply控制器
|
||||
* Class FinanceInvoiceApplyController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinanceInvoiceApplyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:01
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinanceInvoiceApplyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:01
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinanceInvoiceApplyValidate())->post()->goCheck('add');
|
||||
$result = FinanceInvoiceApplyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceInvoiceApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:01
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinanceInvoiceApplyValidate())->post()->goCheck('edit');
|
||||
$result = FinanceInvoiceApplyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceInvoiceApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:01
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinanceInvoiceApplyValidate())->post()->goCheck('delete');
|
||||
FinanceInvoiceApplyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:01
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinanceInvoiceApplyValidate())->goCheck('detail');
|
||||
$result = FinanceInvoiceApplyLogic::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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinancePaymentApplyLists;
|
||||
use app\adminapi\logic\finance\FinancePaymentApplyLogic;
|
||||
use app\adminapi\validate\finance\FinancePaymentApplyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinancePaymentApply控制器
|
||||
* Class FinancePaymentApplyController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinancePaymentApplyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 13:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinancePaymentApplyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 13:47
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinancePaymentApplyValidate())->post()->goCheck('add');
|
||||
$result = FinancePaymentApplyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 13:47
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinancePaymentApplyValidate())->post()->goCheck('edit');
|
||||
$result = FinancePaymentApplyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 13:47
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinancePaymentApplyValidate())->post()->goCheck('delete');
|
||||
FinancePaymentApplyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 13:47
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinancePaymentApplyValidate())->goCheck('detail');
|
||||
$result = FinancePaymentApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/finance/FinancePaymentPlanController.php
Normal file
108
app/adminapi/controller/finance/FinancePaymentPlanController.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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinancePaymentPlanLists;
|
||||
use app\adminapi\logic\finance\FinancePaymentPlanLogic;
|
||||
use app\adminapi\validate\finance\FinancePaymentPlanValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinancePaymentPlan控制器
|
||||
* Class FinancePaymentPlanController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinancePaymentPlanController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:14
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinancePaymentPlanLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:14
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinancePaymentPlanValidate())->post()->goCheck('add');
|
||||
$result = FinancePaymentPlanLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:14
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinancePaymentPlanValidate())->post()->goCheck('edit');
|
||||
$result = FinancePaymentPlanLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:14
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinancePaymentPlanValidate())->post()->goCheck('delete');
|
||||
FinancePaymentPlanLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:14
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinancePaymentPlanValidate())->goCheck('detail');
|
||||
$result = FinancePaymentPlanLogic::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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceReceiptRecordLists;
|
||||
use app\adminapi\logic\finance\FinanceReceiptRecordLogic;
|
||||
use app\adminapi\validate\finance\FinanceReceiptRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinanceReceiptRecord控制器
|
||||
* Class FinanceReceiptRecordController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinanceReceiptRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 10:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinanceReceiptRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 10:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinanceReceiptRecordValidate())->post()->goCheck('add');
|
||||
$result = FinanceReceiptRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReceiptRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 10:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinanceReceiptRecordValidate())->post()->goCheck('edit');
|
||||
$result = FinanceReceiptRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReceiptRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 10:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinanceReceiptRecordValidate())->post()->goCheck('delete');
|
||||
FinanceReceiptRecordLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 10:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinanceReceiptRecordValidate())->goCheck('detail');
|
||||
$result = FinanceReceiptRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/finance/FinanceRefundApplyController.php
Normal file
108
app/adminapi/controller/finance/FinanceRefundApplyController.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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceRefundApplyLists;
|
||||
use app\adminapi\logic\finance\FinanceRefundApplyLogic;
|
||||
use app\adminapi\validate\finance\FinanceRefundApplyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinanceRefundApply控制器
|
||||
* Class FinanceRefundApplyController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinanceRefundApplyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinanceRefundApplyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:58
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinanceRefundApplyValidate())->post()->goCheck('add');
|
||||
$result = FinanceRefundApplyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:58
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinanceRefundApplyValidate())->post()->goCheck('edit');
|
||||
$result = FinanceRefundApplyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:58
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinanceRefundApplyValidate())->post()->goCheck('delete');
|
||||
FinanceRefundApplyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:58
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinanceRefundApplyValidate())->goCheck('detail');
|
||||
$result = FinanceRefundApplyLogic::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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceRefundRecordLists;
|
||||
use app\adminapi\logic\finance\FinanceRefundRecordLogic;
|
||||
use app\adminapi\validate\finance\FinanceRefundRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinanceRefundRecord控制器
|
||||
* Class FinanceRefundRecordController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinanceRefundRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 14:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinanceRefundRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 14:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinanceRefundRecordValidate())->post()->goCheck('add');
|
||||
$result = FinanceRefundRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 14:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinanceRefundRecordValidate())->post()->goCheck('edit');
|
||||
$result = FinanceRefundRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 14:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinanceRefundRecordValidate())->post()->goCheck('delete');
|
||||
FinanceRefundRecordLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 14:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinanceRefundRecordValidate())->goCheck('detail');
|
||||
$result = FinanceRefundRecordLogic::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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceReturnedMoneyLists;
|
||||
use app\adminapi\logic\finance\FinanceReturnedMoneyLogic;
|
||||
use app\adminapi\validate\finance\FinanceReturnedMoneyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinanceReturnedMoney控制器
|
||||
* Class FinanceReturnedMoneyController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinanceReturnedMoneyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:38
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinanceReturnedMoneyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:38
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinanceReturnedMoneyValidate())->post()->goCheck('add');
|
||||
$result = FinanceReturnedMoneyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedMoneyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:38
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinanceReturnedMoneyValidate())->post()->goCheck('edit');
|
||||
$result = FinanceReturnedMoneyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedMoneyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:38
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinanceReturnedMoneyValidate())->post()->goCheck('delete');
|
||||
FinanceReturnedMoneyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:38
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinanceReturnedMoneyValidate())->goCheck('detail');
|
||||
$result = FinanceReturnedMoneyLogic::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\finance;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\FinanceReturnedRecordLists;
|
||||
use app\adminapi\logic\finance\FinanceReturnedRecordLogic;
|
||||
use app\adminapi\validate\finance\FinanceReturnedRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* FinanceReturnedRecord控制器
|
||||
* Class FinanceReturnedRecordController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class FinanceReturnedRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 16:28
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FinanceReturnedRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 16:28
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FinanceReturnedRecordValidate())->post()->goCheck('add');
|
||||
$result = FinanceReturnedRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 16:28
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FinanceReturnedRecordValidate())->post()->goCheck('edit');
|
||||
$result = FinanceReturnedRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 16:28
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FinanceReturnedRecordValidate())->post()->goCheck('delete');
|
||||
FinanceReturnedRecordLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 16:28
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FinanceReturnedRecordValidate())->goCheck('detail');
|
||||
$result = FinanceReturnedRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectAlarmSetController.php
Normal file
108
app/adminapi/controller/project/ProjectAlarmSetController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectAlarmSetLists;
|
||||
use app\adminapi\logic\project\ProjectAlarmSetLogic;
|
||||
use app\adminapi\validate\project\ProjectAlarmSetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目预警设置控制器
|
||||
* Class ProjectAlarmSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectAlarmSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目预警设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:24
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectAlarmSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目预警设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:24
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectAlarmSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectAlarmSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectAlarmSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目预警设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:24
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectAlarmSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectAlarmSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectAlarmSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目预警设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:24
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectAlarmSetValidate())->post()->goCheck('delete');
|
||||
ProjectAlarmSetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目预警设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 16:24
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectAlarmSetValidate())->goCheck('detail');
|
||||
$result = ProjectAlarmSetLogic::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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectAttendanceDetailLists;
|
||||
use app\adminapi\logic\project\ProjectAttendanceDetailLogic;
|
||||
use app\adminapi\validate\project\ProjectAttendanceDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 考勤明细控制器
|
||||
* Class ProjectAttendanceDetailController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectAttendanceDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取考勤明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:54
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectAttendanceDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加考勤明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:54
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectAttendanceDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectAttendanceDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectAttendanceDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑考勤明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:54
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectAttendanceDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectAttendanceDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectAttendanceDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除考勤明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:54
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectAttendanceDetailValidate())->post()->goCheck('delete');
|
||||
ProjectAttendanceDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取考勤明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:54
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectAttendanceDetailValidate())->goCheck('detail');
|
||||
$result = ProjectAttendanceDetailLogic::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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectAttendanceRecordLists;
|
||||
use app\adminapi\logic\project\ProjectAttendanceRecordLogic;
|
||||
use app\adminapi\validate\project\ProjectAttendanceRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 考勤记录控制器
|
||||
* Class ProjectAttendanceRecordController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectAttendanceRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取考勤记录列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 09:44
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectAttendanceRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加考勤记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 09:44
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectAttendanceRecordValidate())->post()->goCheck('add');
|
||||
$result = ProjectAttendanceRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectAttendanceRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑考勤记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 09:44
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectAttendanceRecordValidate())->post()->goCheck('edit');
|
||||
$result = ProjectAttendanceRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectAttendanceRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除考勤记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 09:44
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectAttendanceRecordValidate())->post()->goCheck('delete');
|
||||
$res = ProjectAttendanceRecordLogic::delete($params);
|
||||
return $res ? $this->success('删除成功', [], 1, 1) : $this->fail(ProjectAttendanceRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取考勤记录详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 09:44
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectAttendanceRecordValidate())->goCheck('detail');
|
||||
$result = ProjectAttendanceRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class ProjectController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectValidate())->post()->goCheck('add');
|
||||
$result = ProjectLogic::add($params);
|
||||
$result = ProjectLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
|
108
app/adminapi/controller/project/ProjectCostTempSetController.php
Normal file
108
app/adminapi/controller/project/ProjectCostTempSetController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectCostTempSetLists;
|
||||
use app\adminapi\logic\project\ProjectCostTempSetLogic;
|
||||
use app\adminapi\validate\project\ProjectCostTempSetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目费用模板控制器
|
||||
* Class ProjectCostTempSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectCostTempSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目费用模板列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 11:54
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectCostTempSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目费用模板
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 11:54
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectCostTempSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectCostTempSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostTempSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目费用模板
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 11:54
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectCostTempSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectCostTempSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostTempSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目费用模板
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 11:54
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectCostTempSetValidate())->post()->goCheck('delete');
|
||||
ProjectCostTempSetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目费用模板详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 11:54
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectCostTempSetValidate())->goCheck('detail');
|
||||
$result = ProjectCostTempSetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectDocumentController.php
Normal file
108
app/adminapi/controller/project/ProjectDocumentController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectDocumentLists;
|
||||
use app\adminapi\logic\project\ProjectDocumentLogic;
|
||||
use app\adminapi\validate\project\ProjectDocumentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目文档控制器
|
||||
* Class ProjectDocumentController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectDocumentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目文档列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:42
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectDocumentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目文档
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:42
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectDocumentValidate())->post()->goCheck('add');
|
||||
$result = ProjectDocumentLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectDocumentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目文档
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:42
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectDocumentValidate())->post()->goCheck('edit');
|
||||
$result = ProjectDocumentLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectDocumentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目文档
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:42
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectDocumentValidate())->post()->goCheck('delete');
|
||||
ProjectDocumentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目文档详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 15:42
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectDocumentValidate())->goCheck('detail');
|
||||
$result = ProjectDocumentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectDocumentSetController.php
Normal file
108
app/adminapi/controller/project/ProjectDocumentSetController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectDocumentSetLists;
|
||||
use app\adminapi\logic\project\ProjectDocumentSetLogic;
|
||||
use app\adminapi\validate\project\ProjectDocumentSetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目文档设置控制器
|
||||
* Class ProjectDocumentSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectDocumentSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目文档设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 14:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectDocumentSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目文档设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 14:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectDocumentSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectDocumentSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectDocumentSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目文档设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 14:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectDocumentSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectDocumentSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectDocumentSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目文档设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 14:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectDocumentSetValidate())->post()->goCheck('delete');
|
||||
ProjectDocumentSetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目文档设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 14:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectDocumentSetValidate())->goCheck('detail');
|
||||
$result = ProjectDocumentSetLogic::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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectInsuranceManagementLists;
|
||||
use app\adminapi\logic\project\ProjectInsuranceManagementLogic;
|
||||
use app\adminapi\validate\project\ProjectInsuranceManagementValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 保险管理控制器
|
||||
* Class ProjectInsuranceManagementController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectInsuranceManagementController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取保险管理列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 15:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectInsuranceManagementLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加保险管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 15:58
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectInsuranceManagementValidate())->post()->goCheck('add');
|
||||
$result = ProjectInsuranceManagementLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectInsuranceManagementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑保险管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 15:58
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectInsuranceManagementValidate())->post()->goCheck('edit');
|
||||
$result = ProjectInsuranceManagementLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectInsuranceManagementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除保险管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 15:58
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectInsuranceManagementValidate())->post()->goCheck('delete');
|
||||
ProjectInsuranceManagementLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取保险管理详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 15:58
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectInsuranceManagementValidate())->goCheck('detail');
|
||||
$result = ProjectInsuranceManagementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
115
app/adminapi/controller/project/ProjectJobTypeController.php
Normal file
115
app/adminapi/controller/project/ProjectJobTypeController.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectJobTypeLists;
|
||||
use app\adminapi\logic\project\ProjectJobTypeLogic;
|
||||
use app\adminapi\validate\project\ProjectJobTypeValidate;
|
||||
use app\common\model\project\ProjectJobType;
|
||||
|
||||
|
||||
/**
|
||||
* 工种设置控制器
|
||||
* Class ProjectJobTypeController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectJobTypeController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工种设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 13:50
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectJobTypeLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加工种设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 13:50
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectJobTypeValidate())->post()->goCheck('add');
|
||||
$result = ProjectJobTypeLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectJobTypeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑工种设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 13:50
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectJobTypeValidate())->post()->goCheck('edit');
|
||||
$result = ProjectJobTypeLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectJobTypeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除工种设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 13:50
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectJobTypeValidate())->post()->goCheck('delete');
|
||||
ProjectJobTypeLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取工种设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 13:50
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectJobTypeValidate())->goCheck('detail');
|
||||
$result = ProjectJobTypeLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function all(): \think\response\Json
|
||||
{
|
||||
$data = ProjectJobType::field('id,type_name,type_unit_price,per_daily_living')->select()->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectLaborContractLists;
|
||||
use app\adminapi\logic\project\ProjectLaborContractLogic;
|
||||
use app\adminapi\validate\project\ProjectLaborContractValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 劳动合同控制器
|
||||
* Class ProjectLaborContractController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectLaborContractController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取劳动合同列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 14:35
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectLaborContractLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加劳动合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 14:35
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectLaborContractValidate())->post()->goCheck('add');
|
||||
$result = ProjectLaborContractLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑劳动合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 14:35
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectLaborContractValidate())->post()->goCheck('edit');
|
||||
$result = ProjectLaborContractLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除劳动合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 14:35
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectLaborContractValidate())->post()->goCheck('delete');
|
||||
ProjectLaborContractLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取劳动合同详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/25 14:35
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectLaborContractValidate())->goCheck('detail');
|
||||
$result = ProjectLaborContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectLogsController.php
Normal file
108
app/adminapi/controller/project/ProjectLogsController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectLogsLists;
|
||||
use app\adminapi\logic\project\ProjectLogsLogic;
|
||||
use app\adminapi\validate\project\ProjectLogsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目日志管理控制器
|
||||
* Class ProjectLogsController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectLogsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目日志管理列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 09:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectLogsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目日志管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 09:17
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectLogsValidate())->post()->goCheck('add');
|
||||
$result = ProjectLogsLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLogsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目日志管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 09:17
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectLogsValidate())->post()->goCheck('edit');
|
||||
$result = ProjectLogsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLogsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目日志管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 09:17
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectLogsValidate())->post()->goCheck('delete');
|
||||
ProjectLogsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目日志管理详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 09:17
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectLogsValidate())->goCheck('detail');
|
||||
$result = ProjectLogsLogic::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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectManagerAppointmentLists;
|
||||
use app\adminapi\logic\project\ProjectManagerAppointmentLogic;
|
||||
use app\adminapi\validate\project\ProjectManagerAppointmentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目经理委任控制器
|
||||
* Class ProjectManagerAppointmentController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectManagerAppointmentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目经理委任列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 15:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectManagerAppointmentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目经理委任
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 15:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectManagerAppointmentValidate())->post()->goCheck('add');
|
||||
$result = ProjectManagerAppointmentLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectManagerAppointmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目经理委任
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 15:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectManagerAppointmentValidate())->post()->goCheck('edit');
|
||||
$result = ProjectManagerAppointmentLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectManagerAppointmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目经理委任
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 15:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectManagerAppointmentValidate())->post()->goCheck('delete');
|
||||
ProjectManagerAppointmentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目经理委任详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 15:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectManagerAppointmentValidate())->goCheck('detail');
|
||||
$result = ProjectManagerAppointmentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
146
app/adminapi/controller/project/ProjectMemberController.php
Normal file
146
app/adminapi/controller/project/ProjectMemberController.php
Normal file
@ -0,0 +1,146 @@
|
||||
<?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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectMemberLists;
|
||||
use app\adminapi\logic\project\ProjectMemberLogic;
|
||||
use app\adminapi\validate\project\ProjectMemberValidate;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\project\Project;
|
||||
use app\common\model\project\ProjectMember;
|
||||
use app\common\model\project\ProjectRoleSet;
|
||||
|
||||
|
||||
/**
|
||||
* 项目成员控制器
|
||||
* Class ProjectMemberController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectMemberController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目成员列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 09:59
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectMemberLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目成员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 09:59
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectMemberValidate())->post()->goCheck('add');
|
||||
$result = ProjectMemberLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectMemberLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目成员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 09:59
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectMemberValidate())->post()->goCheck('edit');
|
||||
$result = ProjectMemberLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectMemberLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目成员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 09:59
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectMemberValidate())->post()->goCheck('delete');
|
||||
ProjectMemberLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目成员详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 09:59
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectMemberValidate())->goCheck('detail');
|
||||
$result = ProjectMemberLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取某个项目下的所有成员
|
||||
public function listToProject(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['project_id','page_size','page_no']);
|
||||
if(empty($params['project_id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$data = ProjectMember::where('project_id',$params['project_id'])
|
||||
->field(['id', 'project_id', 'project_role_id', 'admin_id', 'working_unit_price', 'remark'])
|
||||
->page($pageNo, $pageSize)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item){
|
||||
$project = Project::field('name,project_code')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$role = ProjectRoleSet::field('name')->where('id',$item['project_role_id'])->findOrEmpty();
|
||||
$admin = Admin::field('name')->where('id',$item['admin_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['project_role_name'] = $role['name'];
|
||||
$item['admin_name'] = $admin['name'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = ProjectMember::field(['id', 'project_id', 'project_role_id', 'admin_id', 'working_unit_price', 'remark'])->where('project_id',$params['project_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectMilestonesController.php
Normal file
108
app/adminapi/controller/project/ProjectMilestonesController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectMilestonesLists;
|
||||
use app\adminapi\logic\project\ProjectMilestonesLogic;
|
||||
use app\adminapi\validate\project\ProjectMilestonesValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目里程碑控制器
|
||||
* Class ProjectMilestonesController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectMilestonesController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目里程碑列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 14:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectMilestonesLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目里程碑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 14:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectMilestonesValidate())->post()->goCheck('add');
|
||||
$result = ProjectMilestonesLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectMilestonesLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目里程碑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 14:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectMilestonesValidate())->post()->goCheck('edit');
|
||||
$result = ProjectMilestonesLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectMilestonesLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目里程碑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 14:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectMilestonesValidate())->post()->goCheck('delete');
|
||||
ProjectMilestonesLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目里程碑详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 14:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectMilestonesValidate())->goCheck('detail');
|
||||
$result = ProjectMilestonesLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
295
app/adminapi/controller/project/ProjectPersonnelController.php
Normal file
295
app/adminapi/controller/project/ProjectPersonnelController.php
Normal file
@ -0,0 +1,295 @@
|
||||
<?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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectPersonnelLists;
|
||||
use app\adminapi\logic\project\ProjectPersonnelLogic;
|
||||
use app\adminapi\validate\project\ProjectPersonnelValidate;
|
||||
use app\common\model\build\BuildDivision;
|
||||
use app\common\model\build\BuildPlan;
|
||||
use app\common\model\build\BuildProcessSettings;
|
||||
use app\common\model\build\BuildReport;
|
||||
use app\common\model\build\BuildReportDetail;
|
||||
use app\common\model\project\Project;
|
||||
use app\common\model\project\ProjectAttendanceDetail;
|
||||
use app\common\model\project\ProjectAttendanceRecord;
|
||||
use app\common\model\project\ProjectInsuranceManagement;
|
||||
use app\common\model\project\ProjectLaborContract;
|
||||
use app\common\model\project\ProjectPersonnel;
|
||||
|
||||
|
||||
/**
|
||||
* 项目人员控制器
|
||||
* Class ProjectPersonnelController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectPersonnelController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目人员列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 14:38
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectPersonnelLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 14:38
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectPersonnelValidate())->post()->goCheck('add');
|
||||
$result = ProjectPersonnelLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 14:38
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectPersonnelValidate())->post()->goCheck('edit');
|
||||
$result = ProjectPersonnelLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectPersonnelLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目人员
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 14:38
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectPersonnelValidate())->post()->goCheck('delete');
|
||||
ProjectPersonnelLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目人员详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/22 14:38
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectPersonnelValidate())->goCheck('detail');
|
||||
$result = ProjectPersonnelLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//某个项目下的人员列表
|
||||
public function listToProject(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['project_id','page_size','page_no']);
|
||||
if(empty($params['project_id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$data = ProjectPersonnel::field(['id', 'project_id', 'name', 'idcard', 'mobile', 'work_type', 'unit_price', 'daily_living_expenses', 'idcard_front', 'idcard_backend', 'bank_card', 'bank_no', 'deposit_bank', 'remark', 'opening_income'])
|
||||
->where('project_id',$params['project_id'])
|
||||
->page($pageNo, $pageSize)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->each(function($item){
|
||||
$item['work_type_text'] = $item->work_type_text;
|
||||
$project = Project::field('name,project_code')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = ProjectPersonnel::field('id')->where('project_id',$params['project_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
//某个人员下的劳动合同列表
|
||||
public function laborContracts(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['person_id','page_no','page_size']);
|
||||
if(empty($params['person_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$person = ProjectPersonnel::field('id,name,idcard')->where('id',$params['person_id'])->findOrEmpty();
|
||||
if($person->isEmpty()){
|
||||
return $this->fail('项目人员信息不存在');
|
||||
}
|
||||
$data = ProjectLaborContract::field('id,contract_status,contract_type,contract_title,signing_date,start_date,end_date,remark,annex')
|
||||
->where('project_person_id',$params['person_id'])
|
||||
->page($pageNo,$pageSize)->order('id desc')
|
||||
->select()->each(function($item)use($person){
|
||||
$item['person_name'] = $person['name'];
|
||||
$item['person_idcard'] = $person['idcard'];
|
||||
$item['contract_status_text'] = $item->contract_status_text;
|
||||
$item['contract_type_text'] = $item->contract_type_text;
|
||||
$item['contract_title_text'] = $item->contract_title_text;
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = ProjectLaborContract::field('id')->where('project_person_id',$params['person_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
//某个人员下的保险列表
|
||||
public function insurances(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['person_id','page_no','page_size']);
|
||||
if(empty($params['person_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$person = ProjectPersonnel::field('id,name,idcard')->where('id',$params['person_id'])->findOrEmpty();
|
||||
if($person->isEmpty()){
|
||||
return $this->fail('项目人员信息不存在');
|
||||
}
|
||||
$data = ProjectInsuranceManagement::field('id,insurance_date,due_date,type,insurance_no,insurance,insured_amount,insurance_company')
|
||||
->where('project_person_id',$params['person_id'])
|
||||
->page($pageNo,$pageSize)->order('id desc')
|
||||
->select()->each(function($item)use($person){
|
||||
$item['person_name'] = $person['name'];
|
||||
$item['person_idcard'] = $person['idcard'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = ProjectInsuranceManagement::field('id')->where('project_person_id',$params['person_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
//某个人员下的考勤明细列表
|
||||
public function attendances(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['person_id','page_no','page_size']);
|
||||
if(empty($params['person_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$person = ProjectPersonnel::field('id,name,idcard,work_type')->where('id',$params['person_id'])->findOrEmpty();
|
||||
if($person->isEmpty()){
|
||||
return $this->fail('项目人员信息不存在');
|
||||
}
|
||||
$data = ProjectAttendanceDetail::field('id,attendance_code,attendance_date,work_start_time,work_end_time,work_record_num,daily_salary,daily_living,daily_subsidy,daily_other,daily_income,remark')
|
||||
->where('person_id',$params['person_id'])
|
||||
->page($pageNo,$pageSize)->order('id desc')
|
||||
->select()->each(function($item)use($person){
|
||||
$item['person_name'] = $person['name'];
|
||||
$item['person_idcard'] = $person['idcard'];
|
||||
$item['work_type_text'] = $person->work_type_text;
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = ProjectAttendanceDetail::field('id')->where('person_id',$params['person_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
//某个员工下的施工记录列表
|
||||
public function buildworks() {
|
||||
$params = $this->request->get(['person_id','page_no','page_size']);
|
||||
if(empty($params['person_id'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$person = ProjectPersonnel::field('id,name,idcard,work_type')->where('id',$params['person_id'])->findOrEmpty();
|
||||
if($person->isEmpty()){
|
||||
return $this->fail('项目人员信息不存在');
|
||||
}
|
||||
$data = BuildReportDetail::field('id,report_id,work_num,create_time')
|
||||
->where('person_id',$params['person_id'])
|
||||
->page($pageNo,$pageSize)->order('id desc')
|
||||
->select()->each(function($item)use($person){
|
||||
$report = BuildReport::field('report_code,plan_id')->where('id',$item['report_id'])->findOrEmpty();
|
||||
$plan = BuildPlan::field('process_id,zy_code,unit,price')->where('id',$report['plan_id'])->findOrEmpty();
|
||||
$process = BuildProcessSettings::field('division_id,process_step')->where('id',$plan['process_id'])->findOrEmpty();
|
||||
$division = BuildDivision::field('subentry_engineering')->where('id',$process['division_id'])->findOrEmpty();
|
||||
$item['report_code'] = $report['report_code'];
|
||||
$item['zy_code'] = $plan['zy_code'];
|
||||
$item['process_step'] = $process['process_step'];
|
||||
$item['subentry_engineering'] = $division['subentry_engineering'];
|
||||
$item['report_date'] = date('Y-m-d',strtotime($item['create_time']));
|
||||
$item['person_name'] = $person['name'];
|
||||
$item['person_idcard'] = $person['idcard'];
|
||||
$item['work_type_text'] = $person->work_type_text;
|
||||
$item['unit'] = $plan['unit'];
|
||||
$item['price'] = $plan['price'];
|
||||
$item['amount'] = $plan['price'] * $item['work_num'];
|
||||
unset($item['create_time']);
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
$count = BuildReportDetail::field('id')->where('person_id',$params['person_id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectPlanController.php
Normal file
108
app/adminapi/controller/project/ProjectPlanController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectPlanLists;
|
||||
use app\adminapi\logic\project\ProjectPlanLogic;
|
||||
use app\adminapi\validate\project\ProjectPlanValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目计划控制器
|
||||
* Class ProjectPlanController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectPlanController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目计划列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectPlanLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目计划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectPlanValidate())->post()->goCheck('add');
|
||||
$result = ProjectPlanLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目计划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectPlanValidate())->post()->goCheck('edit');
|
||||
$result = ProjectPlanLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目计划
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectPlanValidate())->post()->goCheck('delete');
|
||||
ProjectPlanLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目计划详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 11:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectPlanValidate())->goCheck('detail');
|
||||
$result = ProjectPlanLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class ProjectPreSalesMembersController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectPreSalesMembersValidate())->post()->goCheck('add');
|
||||
$result = ProjectPreSalesMembersLogic::add($params);
|
||||
$result = ProjectPreSalesMembersLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
|
108
app/adminapi/controller/project/ProjectProfitSetController.php
Normal file
108
app/adminapi/controller/project/ProjectProfitSetController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectProfitSetLists;
|
||||
use app\adminapi\logic\project\ProjectProfitSetLogic;
|
||||
use app\adminapi\validate\project\ProjectProfitSetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目利润设置控制器
|
||||
* Class ProjectProfitSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectProfitSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目利润设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 15:39
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectProfitSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目利润设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 15:39
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectProfitSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectProfitSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectProfitSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目利润设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 15:39
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectProfitSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectProfitSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectProfitSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目利润设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 15:39
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectProfitSetValidate())->post()->goCheck('delete');
|
||||
ProjectProfitSetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目利润设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/14 15:39
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectProfitSetValidate())->goCheck('detail');
|
||||
$result = ProjectProfitSetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
115
app/adminapi/controller/project/ProjectRoleSetController.php
Normal file
115
app/adminapi/controller/project/ProjectRoleSetController.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectRoleSetLists;
|
||||
use app\adminapi\logic\project\ProjectRoleSetLogic;
|
||||
use app\adminapi\validate\project\ProjectRoleSetValidate;
|
||||
use app\common\model\project\ProjectRoleSet;
|
||||
|
||||
|
||||
/**
|
||||
* 项目角色设置控制器
|
||||
* Class ProjectRoleSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectRoleSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目角色设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 14:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectRoleSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目角色设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 14:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectRoleSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectRoleSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectRoleSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目角色设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 14:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectRoleSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectRoleSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectRoleSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目角色设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 14:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectRoleSetValidate())->post()->goCheck('delete');
|
||||
ProjectRoleSetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目角色设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 14:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectRoleSetValidate())->goCheck('detail');
|
||||
$result = ProjectRoleSetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function getAllProjectRoles(): \think\response\Json
|
||||
{
|
||||
$data = ProjectRoleSet::field('id,name')->order('sort desc')->select()->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectStakeholderController.php
Normal file
108
app/adminapi/controller/project/ProjectStakeholderController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectStakeholderLists;
|
||||
use app\adminapi\logic\project\ProjectStakeholderLogic;
|
||||
use app\adminapi\validate\project\ProjectStakeholderValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目干系人控制器
|
||||
* Class ProjectStakeholderController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectStakeholderController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目干系人列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectStakeholderLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目干系人
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectStakeholderValidate())->post()->goCheck('add');
|
||||
$result = ProjectStakeholderLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectStakeholderLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目干系人
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectStakeholderValidate())->post()->goCheck('edit');
|
||||
$result = ProjectStakeholderLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectStakeholderLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目干系人
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectStakeholderValidate())->post()->goCheck('delete');
|
||||
ProjectStakeholderLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目干系人详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/15 11:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectStakeholderValidate())->goCheck('detail');
|
||||
$result = ProjectStakeholderLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
115
app/adminapi/controller/project/ProjectTypeSetController.php
Normal file
115
app/adminapi/controller/project/ProjectTypeSetController.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?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;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectTypeSetLists;
|
||||
use app\adminapi\logic\project\ProjectTypeSetLogic;
|
||||
use app\adminapi\validate\project\ProjectTypeSetValidate;
|
||||
use app\common\model\project\ProjectTypeSet;
|
||||
|
||||
|
||||
/**
|
||||
* 项目类型设置控制器
|
||||
* Class ProjectTypeSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectTypeSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目类型设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:15
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectTypeSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目类型设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:15
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectTypeSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectTypeSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectTypeSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目类型设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:15
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectTypeSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectTypeSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectTypeSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目类型设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:15
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectTypeSetValidate())->post()->goCheck('delete');
|
||||
ProjectTypeSetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目类型设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 11:15
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectTypeSetValidate())->goCheck('detail');
|
||||
$result = ProjectTypeSetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function getAllProjectTypes(): \think\response\Json
|
||||
{
|
||||
$data = ProjectTypeSet::field('id,name')->select()->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectWbsSetController.php
Normal file
108
app/adminapi/controller/project/ProjectWbsSetController.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\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectWbsSetLists;
|
||||
use app\adminapi\logic\project\ProjectWbsSetLogic;
|
||||
use app\adminapi\validate\project\ProjectWbsSetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目WBS设置控制器
|
||||
* Class ProjectWbsSetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectWbsSetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目WBS设置列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:09
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectWbsSetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目WBS设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:09
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectWbsSetValidate())->post()->goCheck('add');
|
||||
$result = ProjectWbsSetLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectWbsSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目WBS设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:09
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectWbsSetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectWbsSetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectWbsSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目WBS设置
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:09
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectWbsSetValidate())->post()->goCheck('delete');
|
||||
$result = ProjectWbsSetLogic::delete($params);
|
||||
return $result ? $this->success('删除成功', [], 1, 1) : $this->fail(ProjectWbsSetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目WBS设置详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/13 15:09
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectWbsSetValidate())->goCheck('detail');
|
||||
$result = ProjectWbsSetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityAcceptController.php
Normal file
108
app/adminapi/controller/quality/QualityAcceptController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityAcceptLists;
|
||||
use app\adminapi\logic\quality\QualityAcceptLogic;
|
||||
use app\adminapi\validate\quality\QualityAcceptValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量验收控制器
|
||||
* Class QualityAcceptController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityAcceptController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量验收列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:03
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityAcceptLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量验收
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:03
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityAcceptValidate())->post()->goCheck('add');
|
||||
$result = QualityAcceptLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityAcceptLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量验收
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:03
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityAcceptValidate())->post()->goCheck('edit');
|
||||
$result = QualityAcceptLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityAcceptLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量验收
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:03
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityAcceptValidate())->post()->goCheck('delete');
|
||||
QualityAcceptLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量验收详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:03
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityAcceptValidate())->goCheck('detail');
|
||||
$result = QualityAcceptLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityAccidentController.php
Normal file
108
app/adminapi/controller/quality/QualityAccidentController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityAccidentLists;
|
||||
use app\adminapi\logic\quality\QualityAccidentLogic;
|
||||
use app\adminapi\validate\quality\QualityAccidentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量事故控制器
|
||||
* Class QualityAccidentController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityAccidentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量事故列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:03
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityAccidentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量事故
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:03
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityAccidentValidate())->post()->goCheck('add');
|
||||
$result = QualityAccidentLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityAccidentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量事故
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:03
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityAccidentValidate())->post()->goCheck('edit');
|
||||
$result = QualityAccidentLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityAccidentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量事故
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:03
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityAccidentValidate())->post()->goCheck('delete');
|
||||
QualityAccidentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量事故详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:03
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityAccidentValidate())->goCheck('detail');
|
||||
$result = QualityAccidentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityCheckController.php
Normal file
108
app/adminapi/controller/quality/QualityCheckController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityCheckLists;
|
||||
use app\adminapi\logic\quality\QualityCheckLogic;
|
||||
use app\adminapi\validate\quality\QualityCheckValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量检查控制器
|
||||
* Class QualityCheckController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityCheckController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量检查列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:06
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityCheckLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量检查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:06
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityCheckValidate())->post()->goCheck('add');
|
||||
$result = QualityCheckLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityCheckLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量检查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:06
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityCheckValidate())->post()->goCheck('edit');
|
||||
$result = QualityCheckLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityCheckLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量检查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:06
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityCheckValidate())->post()->goCheck('delete');
|
||||
QualityCheckLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量检查详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:06
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityCheckValidate())->goCheck('detail');
|
||||
$result = QualityCheckLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityCheckNatureController.php
Normal file
108
app/adminapi/controller/quality/QualityCheckNatureController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityCheckNatureLists;
|
||||
use app\adminapi\logic\quality\QualityCheckNatureLogic;
|
||||
use app\adminapi\validate\quality\QualityCheckNatureValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 检查性质控制器
|
||||
* Class QualityCheckNatureController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityCheckNatureController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取检查性质列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:56
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityCheckNatureLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加检查性质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:56
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityCheckNatureValidate())->post()->goCheck('add');
|
||||
$result = QualityCheckNatureLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityCheckNatureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑检查性质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:56
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityCheckNatureValidate())->post()->goCheck('edit');
|
||||
$result = QualityCheckNatureLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityCheckNatureLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除检查性质
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:56
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityCheckNatureValidate())->post()->goCheck('delete');
|
||||
QualityCheckNatureLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取检查性质详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:56
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityCheckNatureValidate())->goCheck('detail');
|
||||
$result = QualityCheckNatureLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityDetectionController.php
Normal file
108
app/adminapi/controller/quality/QualityDetectionController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityDetectionLists;
|
||||
use app\adminapi\logic\quality\QualityDetectionLogic;
|
||||
use app\adminapi\validate\quality\QualityDetectionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量检测控制器
|
||||
* Class QualityDetectionController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityDetectionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量检测列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 16:14
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityDetectionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量检测
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 16:14
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityDetectionValidate())->post()->goCheck('add');
|
||||
$result = QualityDetectionLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityDetectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量检测
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 16:14
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityDetectionValidate())->post()->goCheck('edit');
|
||||
$result = QualityDetectionLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityDetectionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量检测
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 16:14
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityDetectionValidate())->post()->goCheck('delete');
|
||||
QualityDetectionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量检测详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 16:14
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityDetectionValidate())->goCheck('detail');
|
||||
$result = QualityDetectionLogic::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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityDetectionTempLists;
|
||||
use app\adminapi\logic\quality\QualityDetectionTempLogic;
|
||||
use app\adminapi\validate\quality\QualityDetectionTempValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量检测模板控制器
|
||||
* Class QualityDetectionTempController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityDetectionTempController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量检测模板列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:41
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityDetectionTempLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量检测模板
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:41
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityDetectionTempValidate())->post()->goCheck('add');
|
||||
$result = QualityDetectionTempLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityDetectionTempLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量检测模板
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:41
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityDetectionTempValidate())->post()->goCheck('edit');
|
||||
$result = QualityDetectionTempLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityDetectionTempLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量检测模板
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:41
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityDetectionTempValidate())->post()->goCheck('delete');
|
||||
QualityDetectionTempLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量检测模板详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 15:41
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityDetectionTempValidate())->goCheck('detail');
|
||||
$result = QualityDetectionTempLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityEventController.php
Normal file
108
app/adminapi/controller/quality/QualityEventController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityEventLists;
|
||||
use app\adminapi\logic\quality\QualityEventLogic;
|
||||
use app\adminapi\validate\quality\QualityEventValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量事件控制器
|
||||
* Class QualityEventController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityEventController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量事件列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:42
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityEventLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量事件
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:42
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityEventValidate())->post()->goCheck('add');
|
||||
$result = QualityEventLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityEventLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量事件
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:42
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityEventValidate())->post()->goCheck('edit');
|
||||
$result = QualityEventLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityEventLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量事件
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:42
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityEventValidate())->post()->goCheck('delete');
|
||||
QualityEventLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量事件详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:42
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityEventValidate())->goCheck('detail');
|
||||
$result = QualityEventLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityMboController.php
Normal file
108
app/adminapi/controller/quality/QualityMboController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityMboLists;
|
||||
use app\adminapi\logic\quality\QualityMboLogic;
|
||||
use app\adminapi\validate\quality\QualityMboValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 目标管理控制器
|
||||
* Class QualityMboController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityMboController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取目标管理列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityMboLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加目标管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:17
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityMboValidate())->post()->goCheck('add');
|
||||
$result = QualityMboLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityMboLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑目标管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:17
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityMboValidate())->post()->goCheck('edit');
|
||||
$result = QualityMboLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityMboLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除目标管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:17
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityMboValidate())->post()->goCheck('delete');
|
||||
QualityMboLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取目标管理详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 09:17
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityMboValidate())->goCheck('detail');
|
||||
$result = QualityMboLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualityModifyController.php
Normal file
108
app/adminapi/controller/quality/QualityModifyController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityModifyLists;
|
||||
use app\adminapi\logic\quality\QualityModifyLogic;
|
||||
use app\adminapi\validate\quality\QualityModifyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量整改控制器
|
||||
* Class QualityModifyController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityModifyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量整改列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:28
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityModifyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量整改
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:28
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityModifyValidate())->post()->goCheck('add');
|
||||
$result = QualityModifyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityModifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量整改
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:28
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityModifyValidate())->post()->goCheck('edit');
|
||||
$result = QualityModifyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityModifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量整改
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:28
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityModifyValidate())->post()->goCheck('delete');
|
||||
QualityModifyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量整改详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 17:28
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityModifyValidate())->goCheck('detail');
|
||||
$result = QualityModifyLogic::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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualityProfessionalCategoryLists;
|
||||
use app\adminapi\logic\quality\QualityProfessionalCategoryLogic;
|
||||
use app\adminapi\validate\quality\QualityProfessionalCategoryValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 专业类别控制器
|
||||
* Class QualityProfessionalCategoryController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualityProfessionalCategoryController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取专业类别列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 14:50
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualityProfessionalCategoryLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加专业类别
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 14:50
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualityProfessionalCategoryValidate())->post()->goCheck('add');
|
||||
$result = QualityProfessionalCategoryLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityProfessionalCategoryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑专业类别
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 14:50
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualityProfessionalCategoryValidate())->post()->goCheck('edit');
|
||||
$result = QualityProfessionalCategoryLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualityProfessionalCategoryLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除专业类别
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 14:50
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualityProfessionalCategoryValidate())->post()->goCheck('delete');
|
||||
QualityProfessionalCategoryLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取专业类别详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 14:50
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualityProfessionalCategoryValidate())->goCheck('detail');
|
||||
$result = QualityProfessionalCategoryLogic::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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualitySpecificationLists;
|
||||
use app\adminapi\logic\quality\QualitySpecificationLogic;
|
||||
use app\adminapi\validate\quality\QualitySpecificationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量规范控制器
|
||||
* Class QualitySpecificationController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualitySpecificationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量规范列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:30
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualitySpecificationLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量规范
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:30
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualitySpecificationValidate())->post()->goCheck('add');
|
||||
$result = QualitySpecificationLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualitySpecificationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量规范
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:30
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualitySpecificationValidate())->post()->goCheck('edit');
|
||||
$result = QualitySpecificationLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualitySpecificationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量规范
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:30
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualitySpecificationValidate())->post()->goCheck('delete');
|
||||
QualitySpecificationLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量规范详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:30
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualitySpecificationValidate())->goCheck('detail');
|
||||
$result = QualitySpecificationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quality/QualitySuperviseController.php
Normal file
108
app/adminapi/controller/quality/QualitySuperviseController.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\quality;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quality\QualitySuperviseLists;
|
||||
use app\adminapi\logic\quality\QualitySuperviseLogic;
|
||||
use app\adminapi\validate\quality\QualitySuperviseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 质量监督控制器
|
||||
* Class QualitySuperviseController
|
||||
* @package app\adminapi\controller\quality
|
||||
*/
|
||||
class QualitySuperviseController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量监督列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:32
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QualitySuperviseLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加质量监督
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:32
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QualitySuperviseValidate())->post()->goCheck('add');
|
||||
$result = QualitySuperviseLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualitySuperviseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑质量监督
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:32
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QualitySuperviseValidate())->post()->goCheck('edit');
|
||||
$result = QualitySuperviseLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QualitySuperviseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除质量监督
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:32
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QualitySuperviseValidate())->post()->goCheck('delete');
|
||||
QualitySuperviseLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取质量监督详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/21 14:32
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QualitySuperviseValidate())->goCheck('detail');
|
||||
$result = QualitySuperviseLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyAccidentController.php
Normal file
108
app/adminapi/controller/safety/SafetyAccidentController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyAccidentLists;
|
||||
use app\adminapi\logic\safety\SafetyAccidentLogic;
|
||||
use app\adminapi\validate\safety\SafetyAccidentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全事故控制器
|
||||
* Class SafetyAccidentController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyAccidentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全事故列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:28
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyAccidentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全事故
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:28
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyAccidentValidate())->post()->goCheck('add');
|
||||
$result = SafetyAccidentLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyAccidentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全事故
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:28
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyAccidentValidate())->post()->goCheck('edit');
|
||||
$result = SafetyAccidentLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyAccidentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全事故
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:28
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyAccidentValidate())->post()->goCheck('delete');
|
||||
SafetyAccidentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全事故详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:28
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyAccidentValidate())->goCheck('detail');
|
||||
$result = SafetyAccidentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyCheckController.php
Normal file
108
app/adminapi/controller/safety/SafetyCheckController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyCheckLists;
|
||||
use app\adminapi\logic\safety\SafetyCheckLogic;
|
||||
use app\adminapi\validate\safety\SafetyCheckValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全检查控制器
|
||||
* Class SafetyCheckController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyCheckController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全检查列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:10
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyCheckLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全检查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:10
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyCheckValidate())->post()->goCheck('add');
|
||||
$result = SafetyCheckLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyCheckLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全检查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:10
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyCheckValidate())->post()->goCheck('edit');
|
||||
$result = SafetyCheckLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyCheckLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全检查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:10
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyCheckValidate())->post()->goCheck('delete');
|
||||
SafetyCheckLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全检查详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:10
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyCheckValidate())->goCheck('detail');
|
||||
$result = SafetyCheckLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyEmergencyPlanController.php
Normal file
108
app/adminapi/controller/safety/SafetyEmergencyPlanController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyEmergencyPlanLists;
|
||||
use app\adminapi\logic\safety\SafetyEmergencyPlanLogic;
|
||||
use app\adminapi\validate\safety\SafetyEmergencyPlanValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全应急预案控制器
|
||||
* Class SafetyEmergencyPlanController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyEmergencyPlanController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全应急预案列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 09:27
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyEmergencyPlanLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全应急预案
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 09:27
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyEmergencyPlanValidate())->post()->goCheck('add');
|
||||
$result = SafetyEmergencyPlanLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyEmergencyPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全应急预案
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 09:27
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyEmergencyPlanValidate())->post()->goCheck('edit');
|
||||
$result = SafetyEmergencyPlanLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyEmergencyPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全应急预案
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 09:27
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyEmergencyPlanValidate())->post()->goCheck('delete');
|
||||
SafetyEmergencyPlanLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全应急预案详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 09:27
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyEmergencyPlanValidate())->goCheck('detail');
|
||||
$result = SafetyEmergencyPlanLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyEvaluateController.php
Normal file
108
app/adminapi/controller/safety/SafetyEvaluateController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyEvaluateLists;
|
||||
use app\adminapi\logic\safety\SafetyEvaluateLogic;
|
||||
use app\adminapi\validate\safety\SafetyEvaluateValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全评估控制器
|
||||
* Class SafetyEvaluateController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyEvaluateController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全评估列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:27
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyEvaluateLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全评估
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:27
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyEvaluateValidate())->post()->goCheck('add');
|
||||
$result = SafetyEvaluateLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyEvaluateLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全评估
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:27
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyEvaluateValidate())->post()->goCheck('edit');
|
||||
$result = SafetyEvaluateLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyEvaluateLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全评估
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:27
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyEvaluateValidate())->post()->goCheck('delete');
|
||||
SafetyEvaluateLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全评估详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:27
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyEvaluateValidate())->goCheck('detail');
|
||||
$result = SafetyEvaluateLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyEventController.php
Normal file
108
app/adminapi/controller/safety/SafetyEventController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyEventLists;
|
||||
use app\adminapi\logic\safety\SafetyEventLogic;
|
||||
use app\adminapi\validate\safety\SafetyEventValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全事件控制器
|
||||
* Class SafetyEventController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyEventController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全事件列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 13:52
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyEventLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全事件
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 13:52
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyEventValidate())->post()->goCheck('add');
|
||||
$result = SafetyEventLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyEventLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全事件
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 13:52
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyEventValidate())->post()->goCheck('edit');
|
||||
$result = SafetyEventLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyEventLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全事件
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 13:52
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyEventValidate())->post()->goCheck('delete');
|
||||
SafetyEventLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全事件详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 13:52
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyEventValidate())->goCheck('detail');
|
||||
$result = SafetyEventLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyHazardController.php
Normal file
108
app/adminapi/controller/safety/SafetyHazardController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyHazardLists;
|
||||
use app\adminapi\logic\safety\SafetyHazardLogic;
|
||||
use app\adminapi\validate\safety\SafetyHazardValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 危险源管理控制器
|
||||
* Class SafetyHazardController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyHazardController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取危险源管理列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 17:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyHazardLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加危险源管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 17:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyHazardValidate())->post()->goCheck('add');
|
||||
$result = SafetyHazardLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyHazardLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑危险源管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 17:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyHazardValidate())->post()->goCheck('edit');
|
||||
$result = SafetyHazardLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyHazardLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除危险源管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 17:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyHazardValidate())->post()->goCheck('delete');
|
||||
SafetyHazardLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取危险源管理详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 17:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyHazardValidate())->goCheck('detail');
|
||||
$result = SafetyHazardLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyModifyController.php
Normal file
108
app/adminapi/controller/safety/SafetyModifyController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyModifyLists;
|
||||
use app\adminapi\logic\safety\SafetyModifyLogic;
|
||||
use app\adminapi\validate\safety\SafetyModifyValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全整改控制器
|
||||
* Class SafetyModifyController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyModifyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全整改列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyModifyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全整改
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyModifyValidate())->post()->goCheck('add');
|
||||
$result = SafetyModifyLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyModifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全整改
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyModifyValidate())->post()->goCheck('edit');
|
||||
$result = SafetyModifyLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyModifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全整改
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyModifyValidate())->post()->goCheck('delete');
|
||||
SafetyModifyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全整改详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 16:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyModifyValidate())->goCheck('detail');
|
||||
$result = SafetyModifyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyProductMonthController.php
Normal file
108
app/adminapi/controller/safety/SafetyProductMonthController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyProductMonthLists;
|
||||
use app\adminapi\logic\safety\SafetyProductMonthLogic;
|
||||
use app\adminapi\validate\safety\SafetyProductMonthValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全生产月控制器
|
||||
* Class SafetyProductMonthController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyProductMonthController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全生产月列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:46
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyProductMonthLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全生产月
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:46
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyProductMonthValidate())->post()->goCheck('add');
|
||||
$result = SafetyProductMonthLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyProductMonthLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全生产月
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:46
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyProductMonthValidate())->post()->goCheck('edit');
|
||||
$result = SafetyProductMonthLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyProductMonthLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全生产月
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:46
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyProductMonthValidate())->post()->goCheck('delete');
|
||||
SafetyProductMonthLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全生产月详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:46
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyProductMonthValidate())->goCheck('detail');
|
||||
$result = SafetyProductMonthLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyRehearsalController.php
Normal file
108
app/adminapi/controller/safety/SafetyRehearsalController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyRehearsalLists;
|
||||
use app\adminapi\logic\safety\SafetyRehearsalLogic;
|
||||
use app\adminapi\validate\safety\SafetyRehearsalValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全演练控制器
|
||||
* Class SafetyRehearsalController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyRehearsalController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全演练列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:05
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyRehearsalLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全演练
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:05
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyRehearsalValidate())->post()->goCheck('add');
|
||||
$result = SafetyRehearsalLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyRehearsalLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全演练
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:05
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyRehearsalValidate())->post()->goCheck('edit');
|
||||
$result = SafetyRehearsalLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyRehearsalLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全演练
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:05
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyRehearsalValidate())->post()->goCheck('delete');
|
||||
SafetyRehearsalLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全演练详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 10:05
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyRehearsalValidate())->goCheck('detail');
|
||||
$result = SafetyRehearsalLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyStandardController.php
Normal file
108
app/adminapi/controller/safety/SafetyStandardController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyStandardLists;
|
||||
use app\adminapi\logic\safety\SafetyStandardLogic;
|
||||
use app\adminapi\validate\safety\SafetyStandardValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全规范控制器
|
||||
* Class SafetyStandardController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyStandardController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全规范列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 10:21
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyStandardLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全规范
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 10:21
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyStandardValidate())->post()->goCheck('add');
|
||||
$result = SafetyStandardLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyStandardLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全规范
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 10:21
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyStandardValidate())->post()->goCheck('edit');
|
||||
$result = SafetyStandardLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyStandardLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全规范
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 10:21
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyStandardValidate())->post()->goCheck('delete');
|
||||
SafetyStandardLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全规范详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 10:21
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyStandardValidate())->goCheck('detail');
|
||||
$result = SafetyStandardLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetySuperviseController.php
Normal file
108
app/adminapi/controller/safety/SafetySuperviseController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetySuperviseLists;
|
||||
use app\adminapi\logic\safety\SafetySuperviseLogic;
|
||||
use app\adminapi\validate\safety\SafetySuperviseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全监督控制器
|
||||
* Class SafetySuperviseController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetySuperviseController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全监督列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:11
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetySuperviseLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全监督
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:11
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetySuperviseValidate())->post()->goCheck('add');
|
||||
$result = SafetySuperviseLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetySuperviseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全监督
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:11
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetySuperviseValidate())->post()->goCheck('edit');
|
||||
$result = SafetySuperviseLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetySuperviseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全监督
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:11
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetySuperviseValidate())->post()->goCheck('delete');
|
||||
SafetySuperviseLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全监督详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 15:11
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetySuperviseValidate())->goCheck('detail');
|
||||
$result = SafetySuperviseLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/safety/SafetyTargetController.php
Normal file
108
app/adminapi/controller/safety/SafetyTargetController.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\safety;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\safety\SafetyTargetLists;
|
||||
use app\adminapi\logic\safety\SafetyTargetLogic;
|
||||
use app\adminapi\validate\safety\SafetyTargetValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 安全目标控制器
|
||||
* Class SafetyTargetController
|
||||
* @package app\adminapi\controller\safety
|
||||
*/
|
||||
class SafetyTargetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全目标列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:20
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SafetyTargetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加安全目标
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:20
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SafetyTargetValidate())->post()->goCheck('add');
|
||||
$result = SafetyTargetLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyTargetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑安全目标
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:20
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SafetyTargetValidate())->post()->goCheck('edit');
|
||||
$result = SafetyTargetLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SafetyTargetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除安全目标
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:20
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SafetyTargetValidate())->post()->goCheck('delete');
|
||||
SafetyTargetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取安全目标详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 11:20
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SafetyTargetValidate())->goCheck('detail');
|
||||
$result = SafetyTargetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/supplier/SupplierContactsController.php
Normal file
108
app/adminapi/controller/supplier/SupplierContactsController.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\supplier;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supplier\SupplierContactsLists;
|
||||
use app\adminapi\logic\supplier\SupplierContactsLogic;
|
||||
use app\adminapi\validate\supplier\SupplierContactsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* SupplierContacts控制器
|
||||
* Class SupplierContactsController
|
||||
* @package app\adminapi\controller\supplier
|
||||
*/
|
||||
class SupplierContactsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 13:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupplierContactsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 13:47
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupplierContactsValidate())->post()->goCheck('add');
|
||||
$result = SupplierContactsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupplierContactsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 13:47
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupplierContactsValidate())->post()->goCheck('edit');
|
||||
$result = SupplierContactsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupplierContactsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 13:47
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupplierContactsValidate())->post()->goCheck('delete');
|
||||
SupplierContactsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 13:47
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupplierContactsValidate())->goCheck('detail');
|
||||
$result = SupplierContactsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/supplier/SupplierController.php
Normal file
108
app/adminapi/controller/supplier/SupplierController.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\supplier;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\supplier\SupplierLists;
|
||||
use app\adminapi\logic\supplier\SupplierLogic;
|
||||
use app\adminapi\validate\supplier\SupplierValidate;
|
||||
|
||||
|
||||
/**
|
||||
* Supplier控制器
|
||||
* Class SupplierController
|
||||
* @package app\adminapi\controller\supplier
|
||||
*/
|
||||
class SupplierController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:56
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SupplierLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:56
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SupplierValidate())->post()->goCheck('add');
|
||||
$result = SupplierLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupplierLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:56
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SupplierValidate())->post()->goCheck('edit');
|
||||
$result = SupplierLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SupplierLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:56
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SupplierValidate())->post()->goCheck('delete');
|
||||
SupplierLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/26 10:56
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SupplierValidate())->goCheck('detail');
|
||||
$result = SupplierLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
<?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\lists\administrative;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\administrative\AdministrativePayments;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
* AdministrativePayments列表
|
||||
* Class AdministrativePaymentsLists
|
||||
* @package app\adminapi\listsadministrative
|
||||
*/
|
||||
class AdministrativePaymentsLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['ap.org_id', 'ap.dept_id', 'ap.approve_id', 'ap.administrative_contract_id', 'ap.pay_type'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Db::name('AdministrativePayments')->alias('ap')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('ap.delete_time')
|
||||
->leftJoin('orgs o','o.id = ap.org_id')
|
||||
->leftJoin('dept d','d.id = ap.dept_id')
|
||||
->leftJoin('administrative_contract ac','ac.id = ap.administrative_contract_id')
|
||||
->leftJoin('supplier s','s.id = ac.supplier_id')
|
||||
->field('ap.*, d.name as dept_name, o.name as org_name, ac.supplier_id, ac.contract_no, ac.contract_name, s.supplier_code, s.supplier_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['ap.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
$item['approve_no'] = '付款单号';
|
||||
$item['approve_step'] = '流程步骤';
|
||||
$item['approve_settle_status'] = 1;
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:50
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Db::name('AdministrativePayments')->alias('ap')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('ap.delete_time')
|
||||
->leftJoin('orgs o','o.id = ap.org_id')
|
||||
->leftJoin('dept d','d.id = ap.dept_id')
|
||||
->leftJoin('administrative_contract ac','ac.id = ap.administrative_contract_id')->count();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
<?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\lists\administrative;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\administrative\AdministrativeTicketCollection;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
* AdministrativeTicketCollection列表
|
||||
* Class AdministrativeTicketCollectionLists
|
||||
* @package app\adminapi\listsadministrative
|
||||
*/
|
||||
class AdministrativeTicketCollectionLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['atc.org_id', 'atc.dept_id', 'atc.administrative_contract_id', 'atc.invoice_type', 'atc.invoice_sn'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Db::name('AdministrativeTicketCollection')->alias('atc')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('atc.delete_time')
|
||||
->leftJoin('orgs o','o.id = atc.org_id')
|
||||
->leftJoin('dept d','d.id = atc.dept_id')
|
||||
->leftJoin('administrative_contract ac','ac.id = atc.administrative_contract_id')
|
||||
->leftJoin('supplier s','s.id = ac.supplier_id')
|
||||
->field('atc.*, d.name as dept_name, o.name as org_name, ac.supplier_id, ac.contract_no, ac.contract_name, s.supplier_code, s.supplier_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['atc.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
$item['supplier_name'] = '供应商名称';
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/19 14:00
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Db::name('AdministrativeTicketCollection')->alias('atc')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('atc.delete_time')
|
||||
->leftJoin('orgs o','o.id = atc.org_id')
|
||||
->leftJoin('dept d','d.id = atc.dept_id')
|
||||
->leftJoin('administrative_contract ac','ac.id = atc.administrative_contract_id')->count();
|
||||
}
|
||||
|
||||
}
|
@ -76,6 +76,7 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
{
|
||||
return [
|
||||
'%like%' => ['name', 'account'],
|
||||
'=' => ['org_id','dept_id','job_id']
|
||||
];
|
||||
}
|
||||
|
||||
@ -103,24 +104,7 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
{
|
||||
return ['id' => 'desc'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 查询条件
|
||||
* @return array
|
||||
* @author 段誉
|
||||
* @date 2022/11/29 11:33
|
||||
*/
|
||||
public function queryWhere()
|
||||
{
|
||||
$where = [];
|
||||
if (isset($this->params['role_id']) && $this->params['role_id'] != '') {
|
||||
$adminIds = AdminRole::where('role_id', $this->params['role_id'])->column('admin_id');
|
||||
if (!empty($adminIds)) {
|
||||
$where[] = ['id', 'in', $adminIds];
|
||||
}
|
||||
}
|
||||
return $where;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@ -135,26 +119,27 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
public function lists(): array
|
||||
{
|
||||
$field = [
|
||||
'id', 'name', 'account', 'create_time', 'disable', 'root',
|
||||
'id', 'name', 'account', 'create_time', 'disable', 'root', 'org_id', 'dept_id', 'job_id',
|
||||
'login_time', 'login_ip', 'multipoint_login', 'avatar'
|
||||
];
|
||||
|
||||
$adminLists = Admin::field($field)
|
||||
->where($this->searchWhere)
|
||||
->where($this->queryWhere())
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order($this->sortOrder)
|
||||
->append(['role_id', 'org_id', 'dept_id', 'jobs_id', 'disable_desc'])
|
||||
->select()
|
||||
->append(['role_id','disable_desc'])
|
||||
->select()->each(function($item){
|
||||
$job = Jobs::field('name')->where('id',$item['job_id'])->findOrEmpty();
|
||||
$dept = Dept::field('name')->where('id',$item['dept_id'])->findOrEmpty();
|
||||
$org = Orgs::field('name')->where('id',$item['org_id'])->findOrEmpty();
|
||||
$item['job_name'] = $job->isEmpty() ? '' : $job['name'];
|
||||
$item['dept_name'] = $dept->isEmpty() ? '' : $dept['name'];
|
||||
$item['org_name'] = $org->isEmpty() ? '' : $org['name'];
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
// 角色数组('角色id'=>'角色名称')
|
||||
$roleLists = SystemRole::column('name', 'id');
|
||||
// 组织列表
|
||||
$orgLists = Orgs::column('name', 'id');
|
||||
// 部门列表
|
||||
$deptLists = Dept::column('name', 'id');
|
||||
// 岗位列表
|
||||
$jobsLists = Jobs::column('name', 'id');
|
||||
|
||||
//管理员列表增加角色名称
|
||||
foreach ($adminLists as $k => $v) {
|
||||
@ -167,29 +152,7 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
$roleName .= '/';
|
||||
}
|
||||
}
|
||||
|
||||
$orgName = '';
|
||||
foreach ($v['org_id'] as $orgId) {
|
||||
$orgName .= $orgLists[$orgId] ?? '';
|
||||
$orgName .= '/';
|
||||
}
|
||||
|
||||
$deptName = '';
|
||||
foreach ($v['dept_id'] as $deptId) {
|
||||
$deptName .= $deptLists[$deptId] ?? '';
|
||||
$deptName .= '/';
|
||||
}
|
||||
|
||||
$jobsName = '';
|
||||
foreach ($v['jobs_id'] as $jobsId) {
|
||||
$jobsName .= $jobsLists[$jobsId] ?? '';
|
||||
$jobsName .= '/';
|
||||
}
|
||||
|
||||
$adminLists[$k]['role_name'] = trim($roleName, '/');
|
||||
$adminLists[$k]['orgName'] = trim($orgName, '/');
|
||||
$adminLists[$k]['dept_name'] = trim($deptName, '/');
|
||||
$adminLists[$k]['jobs_name'] = trim($jobsName, '/');
|
||||
}
|
||||
|
||||
return $adminLists;
|
||||
@ -204,7 +167,6 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
public function count(): int
|
||||
{
|
||||
return Admin::where($this->searchWhere)
|
||||
->where($this->queryWhere())
|
||||
->count();
|
||||
}
|
||||
|
||||
|
77
app/adminapi/lists/bank/BankAccountLists.php
Normal file
77
app/adminapi/lists/bank/BankAccountLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?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\lists\bank;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bank\BankAccount;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* BankAccount列表
|
||||
* Class BankAccountLists
|
||||
* @package app\adminapi\listsbank
|
||||
*/
|
||||
class BankAccountLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['org_id', 'dept_id', 'account_sn', 'account'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BankAccount::where($this->searchWhere)
|
||||
->field(['id', 'org_id', 'dept_id', 'account_sn', 'deposit_bank', 'account_name', 'account', 'account_opening_date', 'opening_amount', 'remark'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:04
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BankAccount::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/bank/RateSettingLists.php
Normal file
77
app/adminapi/lists/bank/RateSettingLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?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\lists\bank;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bank\RateSetting;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* RateSetting列表
|
||||
* Class RateSettingLists
|
||||
* @package app\adminapi\listsbank
|
||||
*/
|
||||
class RateSettingLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['starting_effective_date'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return RateSetting::where($this->searchWhere)
|
||||
->field(['id', 'starting_effective_date', 'annualized_interest_rate', 'remark'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 16:22
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return RateSetting::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
90
app/adminapi/lists/bank/RevenueExpenditureStatementLists.php
Normal file
90
app/adminapi/lists/bank/RevenueExpenditureStatementLists.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?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\lists\bank;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bank\RevenueExpenditureStatement;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
* RevenueExpenditureStatement列表
|
||||
* Class RevenueExpenditureStatementLists
|
||||
* @package app\adminapi\listsbank
|
||||
*/
|
||||
class RevenueExpenditureStatementLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['org_id', 'dept_id', 'document_type'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Db::name('RevenueExpenditureStatement')->alias('res')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('res.delete_time')
|
||||
->leftJoin('orgs o','o.id = res.org_id')
|
||||
->leftJoin('dept d','d.id = res.dept_id')
|
||||
->leftJoin('bank_account ba','ba.id = res.bank_account_id')
|
||||
->field('res.*, ba.account_sn, ba.deposit_bank, ba.account_name, ba.account, d.name as dept_name, o.name as org_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['res.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/20 15:51
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Db::name('RevenueExpenditureStatement')->alias('res')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('res.delete_time')
|
||||
->leftJoin('orgs o','o.id = res.org_id')
|
||||
->leftJoin('dept d','d.id = res.dept_id')
|
||||
->leftJoin('bank_account ba','ba.id = res.bank_account_id')->count();
|
||||
}
|
||||
|
||||
}
|
@ -18,6 +18,7 @@ namespace app\adminapi\lists\bid;
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidBiddingDecision;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
@ -38,7 +39,7 @@ class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchI
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['project_id'],
|
||||
'=' => ['bbd.project_id', 'bbd.bidding_project_fund_source', 'bbd.bid_type'],
|
||||
];
|
||||
}
|
||||
|
||||
@ -54,11 +55,25 @@ class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchI
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidBiddingDecision::where($this->searchWhere)
|
||||
->field(['id', 'project_id', 'project_estimation', 'bidding_project_fund_source', 'bidding_time', 'buy_bid_document_date', 'bid_type', 'competitor', 'is_margin', 'margin_amount', 'bid_opening_date', 'margin_amount_return_date', 'is_internal_resources', 'project_assurance'])
|
||||
return Db::name('BidBiddingDecision')->alias('bbd')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bbd.delete_time')
|
||||
->leftJoin('project p','p.id = bbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')
|
||||
->field('bbd.*, p.custom_id, p.name as project_name, p.project_code, ct.name as custom_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->order(['bbd.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
$item['approve_no'] = '付款单号';
|
||||
$item['approve_step'] = '流程步骤';
|
||||
$item['approve_settle_status'] = 1;
|
||||
$item['bidding_time'] = empty($item['bidding_time']) ? '' : date('Y-m-d H:i:s', $item['bidding_time']);
|
||||
$item['buy_bid_document_date'] = empty($item['buy_bid_document_date']) ? '' : date('Y-m-d H:i:s', $item['buy_bid_document_date']);
|
||||
$item['bid_opening_date'] = empty($item['bid_opening_date']) ? '' : date('Y-m-d H:i:s', $item['bid_opening_date']);
|
||||
$item['margin_amount_return_date'] = empty($item['bid_opening_date']) ? '' : date('Y-m-d H:i:s', $item['margin_amount_return_date']);
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
@ -71,7 +86,10 @@ class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchI
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidBiddingDecision::where($this->searchWhere)->count();
|
||||
return Db::name('BidBiddingDecision')->alias('bbd')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bbd.delete_time')
|
||||
->leftJoin('project p','p.id = bbd.project_id')->count();
|
||||
}
|
||||
|
||||
}
|
@ -18,6 +18,7 @@ namespace app\adminapi\lists\bid;
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidBuyBiddingDocument;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
@ -54,11 +55,23 @@ class BidBuyBiddingDocumentLists extends BaseAdminDataLists implements ListsSear
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidBuyBiddingDocument::where($this->searchWhere)
|
||||
->field(['id', 'project_id', 'bid_document_no', 'invite_tenders_company_name', 'bid_company_name', 'buyer', 'amount', 'project_fund_source', 'bid_date', 'buy_date', 'invite_tenders_type', 'bid_address', 'is_margin', 'margin_amount', 'bid_project_overview', 'project_desc', 'annex'])
|
||||
return Db::name('BidBuyBiddingDocument')->alias('bbbd')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bbbd.delete_time')
|
||||
->leftJoin('project p','p.id = bbbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')
|
||||
->field('bbbd.*, bbbd.project_id, p.name as project_name, p.project_code, ct.name as customer_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->order(['bbbd.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
$item['approve_no'] = '付款单号';
|
||||
$item['approve_step'] = '流程步骤';
|
||||
$item['approve_settle_status'] = 1;
|
||||
$item['bid_date'] = empty($item['bid_date']) ? '' : date('Y-m-d H:i:s', $item['bid_date']);
|
||||
$item['buy_date'] = empty($item['buy_date']) ? '' : date('Y-m-d H:i:s', $item['buy_date']);
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
@ -71,7 +84,11 @@ class BidBuyBiddingDocumentLists extends BaseAdminDataLists implements ListsSear
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidBuyBiddingDocument::where($this->searchWhere)->count();
|
||||
return Db::name('BidBuyBiddingDocument')->alias('bbbd')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bbbd.delete_time')
|
||||
->leftJoin('project p','p.id = bbbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')->count();
|
||||
}
|
||||
|
||||
}
|
@ -38,7 +38,7 @@ class BidDocumentExaminationLists extends BaseAdminDataLists implements ListsSea
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['buy_bidding_document_id'],
|
||||
'=' => ['buy_bidding_document_id', 'is_need_deposit'],
|
||||
];
|
||||
}
|
||||
|
||||
@ -55,8 +55,7 @@ class BidDocumentExaminationLists extends BaseAdminDataLists implements ListsSea
|
||||
public function lists(): array
|
||||
{
|
||||
return BidDocumentExamination::where($this->searchWhere)
|
||||
->field(['id', 'approve_id', 'buy_bidding_document_id', 'is_need_deposit', 'bid_opening_date', 'deposit_refund_time', 'bidding_project_overview', 'project_introduction', 'annex', 'technical_protocol_deviation', 'protocol_deviation_handling_plan', 'technical_review_annex', 'business_review_total_amount', 'tax_rate', 'pay_type', 'pay_rate', 'business_contract_deviation', 'business_contract_deviation_handling_plan', 'business_contract_deviation_annex'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->field(['*'])->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
|
@ -55,7 +55,7 @@ class BidResultLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
public function lists(): array
|
||||
{
|
||||
return BidResult::where($this->searchWhere)
|
||||
->field(['id', 'bid_document_examination_id', 'project_id', 'is_successful', 'bidder', 'bidder_amount', 'bidder_amount_daxie'])
|
||||
->field(['*'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
|
94
app/adminapi/lists/bid/BidSecurityApplyLists.php
Normal file
94
app/adminapi/lists/bid/BidSecurityApplyLists.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?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\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidSecurityApply;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
* BidSecurityApply列表
|
||||
* Class BidSecurityApplyLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidSecurityApplyLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['bsa.bidding_decision_id', 'bsa.applier', 'bsa.pay_type'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Db::name('BidSecurityApply')->alias('bsa')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bsa.delete_time')
|
||||
->leftJoin('bid_bidding_decision bbd','bbd.id = bsa.bidding_decision_id')
|
||||
->leftJoin('project p','p.id = bbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')
|
||||
->field('bsa.*, bbd.project_id, bbd.bidding_time, bbd.margin_amount, p.name as project_name, p.project_code, ct.name as customer_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['bsa.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
$item['approve_no'] = '付款单号';
|
||||
$item['approve_step'] = '流程步骤';
|
||||
$item['approve_settle_status'] = 1;
|
||||
$item['bidding_time'] = empty($item['bidding_time']) ? '' : date('Y-m-d H:i:s', $item['bidding_time']);
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/16 10:46
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Db::name('BidSecurityApply')->alias('bsa')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bsa.delete_time')
|
||||
->leftJoin('bid_bidding_decision bbd','bbd.id = bsa.bidding_decision_id')
|
||||
->leftJoin('project p','p.id = bbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')->count();
|
||||
}
|
||||
|
||||
}
|
93
app/adminapi/lists/bid/BidSecurityRefundLists.php
Normal file
93
app/adminapi/lists/bid/BidSecurityRefundLists.php
Normal file
@ -0,0 +1,93 @@
|
||||
<?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\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidSecurityRefund;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
* BidSecurityRefund列表
|
||||
* Class BidSecurityRefundLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidSecurityRefundLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['bsr.bidding_decision_id', 'bsr.refund_date', 'bsr.bank_account_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Db::name('BidSecurityRefund')->alias('bsr')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bsr.delete_time')
|
||||
->leftJoin('bid_bidding_decision bbd','bbd.id = bsr.bidding_decision_id')
|
||||
->leftJoin('project p','p.id = bbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')
|
||||
->field('bsr.*, bbd.project_id, p.name as project_name, p.project_code, ct.name as customer_name')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['bsr.id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
//关联数据后续添加
|
||||
$item['approve_no'] = '付款单号';
|
||||
$item['approve_step'] = '流程步骤';
|
||||
$item['approve_settle_status'] = 1;
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/18 10:29
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Db::name('BidSecurityRefund')->alias('bsr')
|
||||
->where($this->searchWhere)
|
||||
->whereNull('bsr.delete_time')
|
||||
->leftJoin('bid_bidding_decision bbd','bbd.id = bsr.bidding_decision_id')
|
||||
->leftJoin('project p','p.id = bbd.project_id')
|
||||
->leftJoin('custom ct','ct.id = p.custom_id')->count();
|
||||
}
|
||||
|
||||
}
|
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