Compare commits
No commits in common. "master" and "yaooo" have entirely different histories.
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\ApprovalIssuanceAchievementDocumentsLists;
|
||||
use app\adminapi\logic\ApprovalIssuanceAchievementDocumentsLogic;
|
||||
use app\adminapi\validate\ApprovalIssuanceAchievementDocumentsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ApprovalIssuanceAchievementDocuments控制器
|
||||
* Class ApprovalIssuanceAchievementDocumentsController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class ApprovalIssuanceAchievementDocumentsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:57
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ApprovalIssuanceAchievementDocumentsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:57
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ApprovalIssuanceAchievementDocumentsValidate())->post()->goCheck('add');
|
||||
$result = ApprovalIssuanceAchievementDocumentsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ApprovalIssuanceAchievementDocumentsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:57
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ApprovalIssuanceAchievementDocumentsValidate())->post()->goCheck('edit');
|
||||
$result = ApprovalIssuanceAchievementDocumentsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ApprovalIssuanceAchievementDocumentsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:57
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ApprovalIssuanceAchievementDocumentsValidate())->post()->goCheck('delete');
|
||||
ApprovalIssuanceAchievementDocumentsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:57
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ApprovalIssuanceAchievementDocumentsValidate())->goCheck('detail');
|
||||
$result = ApprovalIssuanceAchievementDocumentsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
use app\common\model\cost_project\CostApprovedProject;
|
||||
use app\common\model\DataReception;
|
||||
use app\common\model\dept\Dept;
|
||||
use app\common\model\task\TaskAllocation;
|
||||
use app\common\model\TaskHandlingThreeLevelReview;
|
||||
use think\facade\Db;
|
||||
|
||||
class CostConsultationReportController extends BaseAdminController
|
||||
{
|
||||
// 造价报表控制器
|
||||
|
||||
// 造价合同台账
|
||||
public function cost_approved_project_list()
|
||||
{
|
||||
$page_no = $this->request->param('page_no', 1);
|
||||
$page_size = $this->request->param('page_size', 15);
|
||||
$params = $this->request->param();
|
||||
$contract_name = $params['contract_name'] ?? '';
|
||||
$contract_num = $params['contract_num'] ?? '';
|
||||
$part_a = $params['part_a'] ?? '';
|
||||
$query = Db::name('cost_approved_project')->where(function ($query) use ($contract_name, $contract_num, $part_a) {
|
||||
if ($contract_name) {
|
||||
$query->where('contract_name', 'like', '%'.$contract_name.'%');
|
||||
}
|
||||
if ($contract_num) {
|
||||
$query->where('contract_num', '=', $contract_num);
|
||||
}
|
||||
if ($part_a) {
|
||||
$query->where('part_a', 'like', '%'.$part_a.'%');
|
||||
}
|
||||
});
|
||||
$count = $query->count();
|
||||
$lists = $query->page($page_no, $page_size)->select()->each(function($item){
|
||||
$item['start_date'] = date('Y-m-d', $item['start_date']);
|
||||
$item['end_date'] = date('Y-m-d', $item['end_date']);
|
||||
$item['due_time'] = date('Y-m-d', $item['due_time']);
|
||||
$item['create_date'] = date('Y-m-d', $item['create_date']);
|
||||
return $item;
|
||||
});
|
||||
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
|
||||
}
|
||||
|
||||
// 造价项目信息汇总
|
||||
public function cost_project_report()
|
||||
{
|
||||
$page_no = $this->request->param('page_no', 1);
|
||||
$page_size = $this->request->param('page_size', 15);
|
||||
$params = $this->request->param();
|
||||
$project_name = $params['project_name'] ?? '';
|
||||
$project_num = $params['project_num'] ?? '';
|
||||
$contract_name = $params['contract_name'] ?? '';
|
||||
$aunit = $params['aunit'] ?? '';
|
||||
|
||||
$query = Db::name('cost_project')->alias('p')->leftJoin('cost_approved_project c', 'p.contract_id=c.id')->where(function ($query) use ($project_name, $project_num, $contract_name, $aunit) {
|
||||
if ($contract_name) {
|
||||
$query->where('c.contract_name', 'like', '%'.$contract_name.'%');
|
||||
}
|
||||
if ($project_num) {
|
||||
$query->where('p.project_num', '=', $project_num);
|
||||
}
|
||||
if ($project_name) {
|
||||
$query->where('p.project_name', 'like', '%'.$project_name.'%');
|
||||
}
|
||||
if ($aunit) {
|
||||
$query->where('p.aunit', 'like', '%'.$aunit.'%');
|
||||
}
|
||||
});
|
||||
$count = $query->count();
|
||||
$lists = $query->append(['dept'])->withAttr('dept', function ($value, $data){
|
||||
return Dept::where('id', $data['depar'])->findOrEmpty()->toArray();
|
||||
})->page($page_no, $page_size)->select()->each(function($item){
|
||||
$item['start_date'] = date('Y-m-d', $item['start_date']);
|
||||
$item['end_date'] = date('Y-m-d', $item['end_date']);
|
||||
return $item;
|
||||
});
|
||||
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
|
||||
}
|
||||
|
||||
// 项目全过程跟踪表
|
||||
public function project_trace()
|
||||
{
|
||||
$page_no = $this->request->param('page_no', 1);
|
||||
$page_size = $this->request->param('page_size', 15);
|
||||
$params = $this->request->param();
|
||||
$project_name = $params['project_name'] ?? '';
|
||||
$project_num = $params['project_num'] ?? '';
|
||||
$contract_name = $params['contract_name'] ?? '';
|
||||
|
||||
$query = Db::name('cost_project')->alias('p')->leftJoin('cost_approved_project c', 'p.contract_id=c.id')->where(function ($query) use ($project_name, $project_num, $contract_name) {
|
||||
if ($contract_name) {
|
||||
$query->where('c.contract_name', 'like', '%'.$contract_name.'%');
|
||||
}
|
||||
if ($project_num) {
|
||||
$query->where('p.project_num', '=', $project_num);
|
||||
}
|
||||
if ($project_name) {
|
||||
$query->where('p.project_name', 'like', '%'.$project_name.'%');
|
||||
}
|
||||
})->append(['task_allocation_status', 'task_handling_three_level_review_status', 'data_reception_status'])
|
||||
->withAttr('task_allocation_status', function ($data, $value){
|
||||
$count = TaskAllocation::where('cost_project_id', $value['id'])->count();
|
||||
return $count > 0 ? 1: 0;
|
||||
})->withAttr('task_handling_three_level_review_status', function ($data, $value){
|
||||
$count = TaskHandlingThreeLevelReview::where('project_id', $value['id'])->count();
|
||||
return $count > 0 ? 1: 0;
|
||||
})->withAttr('data_reception_status', function ($data, $value){
|
||||
$count = DataReception::where('project_id', $value['id'])->count();
|
||||
return $count > 0 ? 1: 0;
|
||||
});
|
||||
$count = $query->count();
|
||||
$lists = $query->append(['dept'])->withAttr('dept', function ($value, $data){
|
||||
return Dept::where('id', $data['depar'])->findOrEmpty()->toArray();
|
||||
})->page($page_no, $page_size)->select();
|
||||
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
|
||||
}
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\DataReceptionLists;
|
||||
use app\adminapi\logic\DataReceptionLogic;
|
||||
use app\adminapi\validate\DataReceptionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* DataReception控制器
|
||||
* Class DataReceptionController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class DataReceptionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:21
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new DataReceptionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:21
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new DataReceptionValidate())->post()->goCheck('add');
|
||||
$result = DataReceptionLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(DataReceptionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:21
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new DataReceptionValidate())->post()->goCheck('edit');
|
||||
$result = DataReceptionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(DataReceptionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:21
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new DataReceptionValidate())->post()->goCheck('delete');
|
||||
DataReceptionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:21
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new DataReceptionValidate())->goCheck('detail');
|
||||
$result = DataReceptionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\ProjectCommissionLists;
|
||||
use app\adminapi\logic\ProjectCommissionLogic;
|
||||
use app\adminapi\validate\ProjectCommissionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectCommission控制器
|
||||
* Class ProjectCommissionController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class ProjectCommissionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:37
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectCommissionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:37
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectCommissionValidate())->post()->goCheck('add');
|
||||
$result = ProjectCommissionLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCommissionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:37
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectCommissionValidate())->post()->goCheck('edit');
|
||||
$result = ProjectCommissionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCommissionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:37
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectCommissionValidate())->post()->goCheck('delete');
|
||||
ProjectCommissionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:37
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectCommissionValidate())->goCheck('detail');
|
||||
$result = ProjectCommissionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\ProjectCommissionDetailLists;
|
||||
use app\adminapi\logic\ProjectCommissionDetailLogic;
|
||||
use app\adminapi\validate\ProjectCommissionDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectCommissionDetail控制器
|
||||
* Class ProjectCommissionDetailController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class ProjectCommissionDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:48
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectCommissionDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:48
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectCommissionDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectCommissionDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCommissionDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:48
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectCommissionDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectCommissionDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCommissionDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:48
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectCommissionDetailValidate())->post()->goCheck('delete');
|
||||
ProjectCommissionDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/23 09:48
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectCommissionDetailValidate())->goCheck('detail');
|
||||
$result = ProjectCommissionDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\TaskDetailLists;
|
||||
use app\adminapi\logic\TaskDetailLogic;
|
||||
use app\adminapi\validate\TaskDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* TaskDetail控制器
|
||||
* Class TaskDetailController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class TaskDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 11:58
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new TaskDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 11:58
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new TaskDetailValidate())->post()->goCheck('add');
|
||||
$result = TaskDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(TaskDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 11:58
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new TaskDetailValidate())->post()->goCheck('edit');
|
||||
$result = TaskDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(TaskDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 11:58
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new TaskDetailValidate())->post()->goCheck('delete');
|
||||
TaskDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 11:58
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new TaskDetailValidate())->goCheck('detail');
|
||||
$result = TaskDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\TaskHandlingThreeLevelReviewLists;
|
||||
use app\adminapi\logic\TaskHandlingThreeLevelReviewLogic;
|
||||
use app\adminapi\validate\TaskHandlingThreeLevelReviewValidate;
|
||||
|
||||
|
||||
/**
|
||||
* TaskHandlingThreeLevelReview控制器
|
||||
* Class TaskHandlingThreeLevelReviewController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class TaskHandlingThreeLevelReviewController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:18
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new TaskHandlingThreeLevelReviewLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:18
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new TaskHandlingThreeLevelReviewValidate())->post()->goCheck('add');
|
||||
$result = TaskHandlingThreeLevelReviewLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(TaskHandlingThreeLevelReviewLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:18
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new TaskHandlingThreeLevelReviewValidate())->post()->goCheck('edit');
|
||||
$result = TaskHandlingThreeLevelReviewLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(TaskHandlingThreeLevelReviewLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:18
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new TaskHandlingThreeLevelReviewValidate())->post()->goCheck('delete');
|
||||
TaskHandlingThreeLevelReviewLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/22 17:18
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new TaskHandlingThreeLevelReviewValidate())->goCheck('detail');
|
||||
$result = TaskHandlingThreeLevelReviewLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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,10 +19,6 @@ 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;
|
||||
|
||||
/**
|
||||
* 管理员控制器
|
||||
@ -134,69 +130,5 @@ 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);
|
||||
}
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidBiddingDecisionLists;
|
||||
use app\adminapi\logic\bid\BidBiddingDecisionLogic;
|
||||
use app\adminapi\validate\bid\BidBiddingDecisionValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -60,8 +58,39 @@ class BidBiddingDecisionController extends BaseAdminController
|
||||
}
|
||||
return $this->fail(BidBiddingDecisionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑投标决策
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidBiddingDecisionValidate())->post()->goCheck('edit');
|
||||
$result = BidBiddingDecisionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidBiddingDecisionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除投标决策
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidBiddingDecisionValidate())->post()->goCheck('delete');
|
||||
BidBiddingDecisionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标决策详情
|
||||
* @return \think\response\Json
|
||||
@ -74,25 +103,6 @@ class BidBiddingDecisionController extends BaseAdminController
|
||||
$result = BidBiddingDecisionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取审批流程列表
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',1)->where('name','tbjc')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidBiddingDecisionValidate())->post()->goCheck('approve');
|
||||
$result = BidBiddingDecisionLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidBiddingDecisionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidBuyBiddingDocumentLists;
|
||||
use app\adminapi\logic\bid\BidBuyBiddingDocumentLogic;
|
||||
use app\adminapi\validate\bid\BidBuyBiddingDocumentValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -60,7 +58,38 @@ class BidBuyBiddingDocumentController extends BaseAdminController
|
||||
}
|
||||
return $this->fail(BidBuyBiddingDocumentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑购买标书
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('edit');
|
||||
$result = BidBuyBiddingDocumentLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidBuyBiddingDocumentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除购买标书
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('delete');
|
||||
BidBuyBiddingDocumentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取购买标书详情
|
||||
@ -74,25 +103,6 @@ class BidBuyBiddingDocumentController extends BaseAdminController
|
||||
$result = BidBuyBiddingDocumentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取审批流程列表
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',1)->where('name','gmbs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('approve');
|
||||
$result = BidBuyBiddingDocumentLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidBuyBiddingDocumentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidDocumentExaminationLists;
|
||||
use app\adminapi\logic\bid\BidDocumentExaminationLogic;
|
||||
use app\adminapi\validate\bid\BidDocumentExaminationValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -54,13 +52,45 @@ class BidDocumentExaminationController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->post()->goCheck('add');
|
||||
$result = BidDocumentExaminationLogic::add($params,$this->adminId);
|
||||
$result = BidDocumentExaminationLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidDocumentExaminationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑标书审查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->post()->goCheck('edit');
|
||||
$result = BidDocumentExaminationLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidDocumentExaminationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除标书审查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->post()->goCheck('delete');
|
||||
BidDocumentExaminationLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查详情
|
||||
* @return \think\response\Json
|
||||
@ -74,23 +104,5 @@ class BidDocumentExaminationController extends BaseAdminController
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取审批流程列表
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',1)->where('name','bssc')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->post()->goCheck('approve');
|
||||
$result = BidDocumentExaminationLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidDocumentExaminationLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class BidDocumentExaminationDetailController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidDocumentExaminationDetailValidate())->post()->goCheck('add');
|
||||
$result = BidDocumentExaminationDetailLogic::add($params,$this->adminId);
|
||||
$result = BidDocumentExaminationDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -69,7 +69,7 @@ class BidDocumentExaminationDetailController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidDocumentExaminationDetailValidate())->post()->goCheck('edit');
|
||||
$result = BidDocumentExaminationDetailLogic::edit($params,$this->adminId);
|
||||
$result = BidDocumentExaminationDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ class BidResultController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidResultValidate())->post()->goCheck('add');
|
||||
$result = BidResultLogic::add($params,$this->adminId);
|
||||
$result = BidResultLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -69,7 +69,7 @@ class BidResultController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidResultValidate())->post()->goCheck('edit');
|
||||
$result = BidResultLogic::edit($params,$this->adminId);
|
||||
$result = BidResultLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','tbbzj')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidSecurityApplyValidate())->post()->goCheck('approve');
|
||||
$result = BidSecurityApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','ttbbzj')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new BidSecurityRefundValidate())->post()->goCheck('approve');
|
||||
$result = BidSecurityRefundLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidSecurityRefundLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,186 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
@ -1,133 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
<?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());
|
||||
}
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ContractLists;
|
||||
use app\adminapi\logic\contract\ContractLogic;
|
||||
use app\adminapi\validate\contract\ContractValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -105,24 +103,6 @@ class ContractController extends BaseAdminController
|
||||
$result = ContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','xmht')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ContractValidate())->post()->goCheck('approve');
|
||||
$result = ContractLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ContractNegotiationLists;
|
||||
use app\adminapi\logic\contract\ContractNegotiationLogic;
|
||||
use app\adminapi\validate\contract\ContractNegotiationValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -54,7 +52,7 @@ class ContractNegotiationController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->post()->goCheck('add');
|
||||
$result = ContractNegotiationLogic::add($params,$this->adminId);
|
||||
$result = ContractNegotiationLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -105,24 +103,6 @@ class ContractNegotiationController extends BaseAdminController
|
||||
$result = ContractNegotiationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','htqs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->post()->goCheck('approve');
|
||||
$result = ContractNegotiationLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ProcurementContractLists;
|
||||
use app\adminapi\logic\contract\ProcurementContractLogic;
|
||||
use app\adminapi\validate\contract\ProcurementContractValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
@ -60,22 +58,38 @@ class ProcurementContractController extends BaseAdminController
|
||||
}
|
||||
return $this->fail(ProcurementContractLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 编辑采购合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->post()->goCheck('edit');
|
||||
$result = ProcurementContractLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑采购合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->post()->goCheck('edit');
|
||||
$result = ProcurementContractLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除采购合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->post()->goCheck('delete');
|
||||
ProcurementContractLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购合同详情
|
||||
@ -89,24 +103,6 @@ class ProcurementContractController extends BaseAdminController
|
||||
$result = ProcurementContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','cght')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->post()->goCheck('approve');
|
||||
$result = ProcurementContractLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -43,6 +43,54 @@ class ProcurementContractDetailController extends BaseAdminController
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加采购明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProcurementContractDetailValidate())->post()->goCheck('add');
|
||||
$result = ProcurementContractDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑采购明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProcurementContractDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProcurementContractDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProcurementContractDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除采购明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProcurementContractDetailValidate())->post()->goCheck('delete');
|
||||
ProcurementContractDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购明细详情
|
||||
* @return \think\response\Json
|
||||
|
@ -1,114 +0,0 @@
|
||||
<?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\SubcontractingContractLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* SubcontractingContract控制器
|
||||
* Class SubcontractingContractController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class SubcontractingContractController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SubcontractingContractLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->post()->goCheck('add');
|
||||
$result = SubcontractingContractLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->post()->goCheck('edit');
|
||||
$result = SubcontractingContractLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/12 17:15
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->goCheck('detail');
|
||||
$result = SubcontractingContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','fbht')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->post()->goCheck('approve');
|
||||
$result = SubcontractingContractLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
<?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\SubcontractingContractDetailLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractDetailLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 分包合同-分包明细控制器
|
||||
* Class SubcontractingContractDetailController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class SubcontractingContractDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同-分包明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/28 22:08
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SubcontractingContractDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同-分包明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/28 22:08
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SubcontractingContractDetailValidate())->goCheck('detail');
|
||||
$result = SubcontractingContractDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',2)->where('name','fbhtqs')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new SubcontractingContractNegotiationValidate())->post()->goCheck('approve');
|
||||
$result = SubcontractingContractNegotiationLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SubcontractingContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\cost_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost_project\CostApprovedProjectLists;
|
||||
use app\adminapi\logic\cost_project\CostApprovedProjectLogic;
|
||||
use app\adminapi\logic\cost_project\CostProjectLogic;
|
||||
use app\adminapi\validate\cost_project\CostApprovedProjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 待立项造价项目控制器
|
||||
* Class CostApprovedProjectController
|
||||
* @package app\adminapi\controller\cost_project
|
||||
*/
|
||||
class CostApprovedProjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取待立项造价项目列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostApprovedProjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加待立项造价项目
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->post()->goCheck('add');
|
||||
$result = CostApprovedProjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostApprovedProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑待立项造价项目
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->post()->goCheck('edit');
|
||||
$result = CostApprovedProjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostApprovedProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除待立项造价项目
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->post()->goCheck('delete');
|
||||
CostApprovedProjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取待立项造价项目详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/20 14:16
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostApprovedProjectValidate())->goCheck('detail');
|
||||
$result = CostApprovedProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function createProject()
|
||||
{
|
||||
$params = $this->request->param();
|
||||
$data = CostApprovedProjectLogic::detail($params);
|
||||
$re = CostProjectLogic::createProject($data);
|
||||
}
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\cost_project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\cost_project\CostProjectLists;
|
||||
use app\adminapi\logic\cost_project\CostProjectLogic;
|
||||
use app\adminapi\validate\cost_project\CostProjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 造价项目台账控制器
|
||||
* Class CostProjectController
|
||||
* @package app\adminapi\controller\cost_project
|
||||
*/
|
||||
class CostProjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取造价项目台账列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CostProjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加造价项目台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CostProjectValidate())->post()->goCheck('add');
|
||||
$result = CostProjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑造价项目台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CostProjectValidate())->post()->goCheck('edit');
|
||||
$result = CostProjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CostProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除造价项目台账
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CostProjectValidate())->post()->goCheck('delete');
|
||||
CostProjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取造价项目台账详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/21 09:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CostProjectValidate())->goCheck('detail');
|
||||
$result = CostProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function datas()
|
||||
{
|
||||
$name = $this->request->param('name', '');
|
||||
$datas = CostProjectLogic::datas($name);
|
||||
return $this->data($datas);
|
||||
}
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class CustomController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomValidate())->post()->goCheck('add');
|
||||
$result = CustomLogic::add($params,$this->adminId);
|
||||
$result = CustomLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ use app\adminapi\lists\custom\CustomerDemandLists;
|
||||
use app\adminapi\logic\custom\CustomerDemandLogic;
|
||||
use app\adminapi\validate\custom\CustomerDemandValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 客户需求控制器
|
||||
* Class CustomerDemandController
|
||||
@ -51,7 +52,7 @@ class CustomerDemandController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomerDemandValidate())->post()->goCheck('add');
|
||||
$result = CustomerDemandLogic::add($params,$this->adminId);
|
||||
$result = CustomerDemandLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -68,7 +69,7 @@ class CustomerDemandController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomerDemandValidate())->post()->goCheck('edit');
|
||||
$result = CustomerDemandLogic::edit($params,$this->adminId);
|
||||
$result = CustomerDemandLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
@ -103,4 +104,5 @@ class CustomerDemandController extends BaseAdminController
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class CustomerDemandSolutionController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomerDemandSolutionValidate())->post()->goCheck('add');
|
||||
$result = CustomerDemandSolutionLogic::add($params,$this->adminId);
|
||||
$result = CustomerDemandSolutionLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -69,7 +69,7 @@ class CustomerDemandSolutionController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomerDemandSolutionValidate())->post()->goCheck('edit');
|
||||
$result = CustomerDemandSolutionLogic::edit($params,$this->adminId);
|
||||
$result = CustomerDemandSolutionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
@ -103,5 +103,6 @@ class CustomerDemandSolutionController extends BaseAdminController
|
||||
$result = CustomerDemandSolutionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -13,13 +13,13 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom;
|
||||
namespace app\adminapi\controller\custom_follow;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomFollowLists;
|
||||
use app\adminapi\logic\custom\CustomFollowLogic;
|
||||
use app\adminapi\validate\custom\CustomFollowValidate;
|
||||
use app\adminapi\lists\custom_follow\CustomFollowLists;
|
||||
use app\adminapi\logic\custom_follow\CustomFollowLogic;
|
||||
use app\adminapi\validate\custom_follow\CustomFollowValidate;
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +52,7 @@ class CustomFollowController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomFollowValidate())->post()->goCheck('add');
|
||||
$result = CustomFollowLogic::add($params,$this->adminId);
|
||||
$result = CustomFollowLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -69,7 +69,7 @@ class CustomFollowController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomFollowValidate())->post()->goCheck('edit');
|
||||
$result = CustomFollowLogic::edit($params,$this->adminId);
|
||||
$result = CustomFollowLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
@ -13,13 +13,13 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom;
|
||||
namespace app\adminapi\controller\custom_service;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomServiceLists;
|
||||
use app\adminapi\logic\custom\CustomServiceLogic;
|
||||
use app\adminapi\validate\custom\CustomServiceValidate;
|
||||
use app\adminapi\lists\custom_service\CustomServiceLists;
|
||||
use app\adminapi\logic\custom_service\CustomServiceLogic;
|
||||
use app\adminapi\validate\custom_service\CustomServiceValidate;
|
||||
|
||||
|
||||
/**
|
||||
@ -66,7 +66,7 @@ class CustomServiceController extends BaseAdminController
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function solve(): \think\response\Json
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomServiceValidate())->post()->goCheck('edit');
|
||||
$result = CustomServiceLogic::edit($params);
|
||||
@ -75,7 +75,21 @@ class CustomServiceController extends BaseAdminController
|
||||
}
|
||||
return $this->fail(CustomServiceLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CustomServiceValidate())->post()->goCheck('delete');
|
||||
CustomServiceLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
@ -15,12 +15,8 @@
|
||||
namespace app\adminapi\controller\dept;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 部门管理控制器
|
||||
@ -38,9 +34,28 @@ class DeptController extends BaseAdminController
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new DeptLists());
|
||||
$params = $this->request->get();
|
||||
$result = DeptLogic::lists($params);
|
||||
return $this->success('',$result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 上级部门
|
||||
* @return \think\response\Json
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author 段誉
|
||||
* @date 2022/5/26 18:36
|
||||
*/
|
||||
public function leaderDept()
|
||||
{
|
||||
$result = DeptLogic::leaderDept();
|
||||
return $this->success('',$result);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加部门
|
||||
* @return \think\response\Json
|
||||
@ -81,8 +96,8 @@ class DeptController extends BaseAdminController
|
||||
public function delete()
|
||||
{
|
||||
$params = (new DeptValidate())->post()->goCheck('delete');
|
||||
$result = DeptLogic::delete($params);
|
||||
return $result ? $this->success('删除成功', [], 1, 1) : $this->fail(DeptLogic::getError());
|
||||
DeptLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
@ -98,29 +113,22 @@ class DeptController extends BaseAdminController
|
||||
$result = DeptLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//某个组织下面的部门
|
||||
public function listToOrg(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['org_id']);
|
||||
if(empty($params['org_id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$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);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取部门数据
|
||||
* @return \think\response\Json
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author 段誉
|
||||
* @date 2022/10/13 10:28
|
||||
*/
|
||||
public function all()
|
||||
{
|
||||
$result = DeptLogic::getAllData();
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -18,8 +18,6 @@ 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;
|
||||
|
||||
|
||||
/**
|
||||
@ -99,26 +97,22 @@ class JobsController extends BaseAdminController
|
||||
$result = JobsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//某个部门下面的岗位
|
||||
public function listToDept(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['dept_id']);
|
||||
if(empty($params['dept_id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$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);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取岗位数据
|
||||
* @return \think\response\Json
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author 段誉
|
||||
* @date 2022/10/13 10:31
|
||||
*/
|
||||
public function all()
|
||||
{
|
||||
$result = JobsLogic::getAllData();
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
<?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\dept;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\dept\OrgsLists;
|
||||
use app\adminapi\logic\dept\OrgsLogic;
|
||||
use app\adminapi\validate\dept\OrgsValidate;
|
||||
use app\common\model\dept\Orgs;
|
||||
|
||||
|
||||
/**
|
||||
* Orgs控制器
|
||||
* Class OrgsController
|
||||
* @package app\adminapi\controller
|
||||
*/
|
||||
class OrgsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 10:55
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new OrgsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 10:55
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new OrgsValidate())->post()->goCheck('add');
|
||||
$result = OrgsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(OrgsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 10:55
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new OrgsValidate())->post()->goCheck('edit');
|
||||
$result = OrgsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(OrgsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 10:55
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new OrgsValidate())->post()->goCheck('delete');
|
||||
$result = OrgsLogic::delete($params);
|
||||
return $result ? $this->success('删除成功', [], 1, 1) : $this->fail(OrgsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 10:55
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new OrgsValidate())->goCheck('detail');
|
||||
$result = OrgsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//获取所有组织
|
||||
public function getAll(): \think\response\Json
|
||||
{
|
||||
$data = Orgs::field('id,name,master,status,create_time')->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','kpsq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceInvoiceApplyValidate())->post()->goCheck('approve');
|
||||
$result = FinanceInvoiceApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceInvoiceApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','fksq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinancePaymentApplyValidate())->post()->goCheck('approve');
|
||||
$result = FinancePaymentApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','fkjh')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinancePaymentPlanValidate())->post()->goCheck('approve');
|
||||
$result = FinancePaymentPlanLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinancePaymentPlanLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,109 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller\finance;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\common\model\contract\ProcurementContract;
|
||||
use app\common\model\contract\ProcurementContractDetail;
|
||||
use app\common\model\contract\SubcontractingContract;
|
||||
use app\common\model\contract\SubcontractingContractDetail;
|
||||
use app\common\model\contract\SubcontractingContractNegotiation;
|
||||
use app\common\model\finance\FinancePaymentPlan;
|
||||
use app\common\model\finance\FinanceReceiptRecord;
|
||||
use app\common\model\project\Project;
|
||||
use app\common\model\supplier\Supplier;
|
||||
|
||||
class FinancePaymentReceiptDifferenceController extends BaseAdminController
|
||||
{
|
||||
//采购付款与收票差异
|
||||
public function procure(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['page_no','page_size','contract_no','project_id']);
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$where = [];
|
||||
if(isset($params['project_id']) && $params['project_id']){
|
||||
$where[] = ['project_id','=',$params['project_id']];
|
||||
}
|
||||
if(isset($params['contract_no']) && $params['contract_no']){
|
||||
$where[] = ['contract_no','like','%'.$params['contract_no'].'%'];
|
||||
}
|
||||
$data = ProcurementContract::field('id,supplier_id,project_id,contract_no,signing_date')->where($where)->page($pageNo,$pageSize)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item){
|
||||
$project = Project::field('name,project_code')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$supplier = Supplier::field('supplier_name,supplier_code')->where('id',$item['supplier_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['supplier_name'] = $supplier['supplier_name'];
|
||||
$item['supplier_code'] = $supplier['supplier_code'];
|
||||
//合同金额
|
||||
$item['contract_amount'] = ProcurementContractDetail::where('contract_id',$item['id'])->sum('amount_including_tax');
|
||||
//已付款金额
|
||||
$item['has_payment_amount'] = FinancePaymentPlan::where('contract_id',$item['id'])->where('contract_type',1)->sum('amount');
|
||||
//已收票金额
|
||||
$item['has_receipt_amount'] = FinanceReceiptRecord::where('contract_id',$item['id'])->where('contract_type',1)->sum('invoice_amount');
|
||||
//收票未付款
|
||||
$item['has_receipt_not_payment_amount'] = ($item['has_receipt_amount'] - $item['has_payment_amount']) <= 0 ? 0 : $item['has_receipt_amount'] - $item['has_payment_amount'];
|
||||
//付款未收票
|
||||
$item['has_payment_not_receipt_amount'] = ($item['has_payment_amount'] - $item['has_receipt_amount']) <= 0 ? 0 : $item['has_payment_amount'] - $item['has_receipt_amount'];
|
||||
return $item;
|
||||
})->toArray();
|
||||
$count = ProcurementContract::field('id')->where($where)->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
//分包付款与收票差异
|
||||
public function subcontract(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['page_no','page_size','contract_no','project_id']);
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$where = [];
|
||||
if(isset($params['project_id']) && $params['project_id']){
|
||||
$where[] = ['project_id','=',$params['project_id']];
|
||||
}
|
||||
if(isset($params['contract_no']) && $params['contract_no']){
|
||||
$where[] = ['contract_no','like','%'.$params['contract_no'].'%'];
|
||||
}
|
||||
$data = SubcontractingContract::field('id,supplier_id,project_id,contract_no,signing_date')->where($where)->page($pageNo,$pageSize)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item){
|
||||
$project = Project::field('name,project_code')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$supplier = Supplier::field('supplier_name,supplier_code')->where('id',$item['supplier_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['supplier_name'] = $supplier['supplier_name'];
|
||||
$item['supplier_code'] = $supplier['supplier_code'];
|
||||
//合同金额
|
||||
$item['contract_amount'] = SubcontractingContractDetail::where('contract_id',$item['id'])->sum('amount_including_tax');
|
||||
//洽商金额
|
||||
$negotiate_amount = SubcontractingContractNegotiation::where('subcontracting_contract_id',$item['id'])->sum('negotiation_amount');
|
||||
//实际合同金额
|
||||
$item['contract_amount'] = $item['contract_amount'] + $negotiate_amount;
|
||||
//已付款金额
|
||||
$item['has_payment_amount'] = FinancePaymentPlan::where('contract_id',$item['id'])->where('contract_type',2)->sum('amount');
|
||||
//已收票金额
|
||||
$item['has_receipt_amount'] = FinanceReceiptRecord::where('contract_id',$item['id'])->where('contract_type',2)->sum('invoice_amount');
|
||||
//收票未付款
|
||||
$item['has_receipt_not_payment_amount'] = ($item['has_receipt_amount'] - $item['has_payment_amount']) <= 0 ? 0 : $item['has_receipt_amount'] - $item['has_payment_amount'];
|
||||
//付款未收票
|
||||
$item['has_payment_not_receipt_amount'] = ($item['has_payment_amount'] - $item['has_receipt_amount']) <= 0 ? 0 : $item['has_payment_amount'] - $item['has_receipt_amount'];
|
||||
return $item;
|
||||
})->toArray();
|
||||
$count = SubcontractingContract::field('id')->where($where)->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','spjl')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceReceiptRecordValidate())->post()->goCheck('approve');
|
||||
$result = FinanceReceiptRecordLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReceiptRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,127 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','tksq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceRefundApplyValidate())->post()->goCheck('approve');
|
||||
$result = FinanceRefundApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundApplyLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller\finance;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\common\model\contract\Contract;
|
||||
use app\common\model\contract\ContractNegotiation;
|
||||
use app\common\model\custom\Custom;
|
||||
use app\common\model\finance\FinanceInvoiceApply;
|
||||
use app\common\model\finance\FinanceReturnedRecord;
|
||||
use app\common\model\project\Project;
|
||||
|
||||
class FinanceRefundInvoiceDifferenceController extends BaseAdminController
|
||||
{
|
||||
public function lists(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['page_no','page_size','contract_code','project_id']);
|
||||
$pageNo = empty($params['page_no']) ? 1 : $params['page_no'];
|
||||
$pageSize = empty($params['page_size']) ? 15 : $params['page_size'];
|
||||
$where = [];
|
||||
if(isset($params['project_id']) && $params['project_id']){
|
||||
$where[] = ['project_id','=',$params['project_id']];
|
||||
}
|
||||
if(isset($params['contract_code']) && $params['contract_code']){
|
||||
$where[] = ['contract_code','like','%'.$params['contract_code'].'%'];
|
||||
}
|
||||
$data = Contract::field('id,project_id,contract_code,contract_name,contract_date,amount')->where($where)
|
||||
->page($pageNo,$pageSize)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item){
|
||||
$project = Project::field('custom_id,name,project_code')->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'];
|
||||
//合同洽商金额
|
||||
$negotiate_amount = ContractNegotiation::where('contract_id',$item['id'])->sum('negotiation_amount');
|
||||
//合同实际金额
|
||||
$item['contract_amount'] = $item['amount'] + $negotiate_amount;
|
||||
//已回款金额
|
||||
$item['has_refund_amount'] = FinanceReturnedRecord::where('contract_id',$item['id'])->sum('amount');
|
||||
//已开票金额
|
||||
$item['has_invoice_amount'] = FinanceInvoiceApply::where('contract_id',$item['id'])->sum('invoicing_amount');
|
||||
//开票未回款
|
||||
$item['has_invoice_not_refund_amount'] = ($item['has_invoice_amount'] - $item['has_refund_amount']) <= 0 ? 0 : $item['has_invoice_amount'] - $item['has_refund_amount'];
|
||||
//回款未开票
|
||||
$item['has_refund_not_invoice_amount'] = ($item['has_refund_amount'] - $item['has_invoice_amount']) <= 0 ? 0 : $item['has_refund_amount'] - $item['has_invoice_amount'];
|
||||
unset($item['amount']);
|
||||
return $item;
|
||||
})->toArray();
|
||||
$count = Contract::field('id')->where($where)->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','tkjl')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceRefundRecordValidate())->post()->goCheck('approve');
|
||||
$result = FinanceRefundRecordLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceRefundRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','hkjh')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceReturnedMoneyValidate())->post()->goCheck('approve');
|
||||
$result = FinanceReturnedMoneyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedMoneyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 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,$this->adminId);
|
||||
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);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',3)->where('name','hkjl')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new FinanceReturnedRecordValidate())->post()->goCheck('approve');
|
||||
$result = FinanceReturnedRecordLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FinanceReturnedRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,121 +0,0 @@
|
||||
<?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\material;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\material\MaterialClassifyLists;
|
||||
use app\adminapi\logic\material\MaterialClassifyLogic;
|
||||
use app\adminapi\validate\material\MaterialClassifyValidate;
|
||||
use app\common\model\material\MaterialClassify;
|
||||
|
||||
|
||||
/**
|
||||
* 材料分类控制器
|
||||
* Class MaterialClassifyController
|
||||
* @package app\adminapi\controller\material
|
||||
*/
|
||||
class MaterialClassifyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料分类列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 09:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MaterialClassifyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加材料分类
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 09:47
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new MaterialClassifyValidate())->post()->goCheck('add');
|
||||
$result = MaterialClassifyLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialClassifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑材料分类
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 09:47
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MaterialClassifyValidate())->post()->goCheck('edit');
|
||||
$result = MaterialClassifyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialClassifyLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 删除工料分类
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/03/04 14:00
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new MaterialClassifyValidate())->post()->goCheck('delete');
|
||||
$result = MaterialClassifyLogic::delete($params);
|
||||
if (true === $result) {
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialClassifyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料分类详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 09:47
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MaterialClassifyValidate())->goCheck('detail');
|
||||
$result = MaterialClassifyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function datas(): \think\response\Json
|
||||
{
|
||||
$pid = $this->request->get('pid');
|
||||
if(!isset($pid) || $pid == ''){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
$data = MaterialClassify::field('id,name')->where('pid',$pid)->select()->toArray();
|
||||
return $this->success('请求成功',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\material;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\material\MaterialLists;
|
||||
use app\adminapi\logic\material\MaterialLogic;
|
||||
use app\adminapi\validate\material\MaterialValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 自购材料控制器
|
||||
* Class MaterialController
|
||||
* @package app\adminapi\controller\material
|
||||
*/
|
||||
class MaterialController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取自购材料列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 10:59
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MaterialLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加自购材料
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 10:59
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new MaterialValidate())->post()->goCheck('add');
|
||||
$result = MaterialLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑自购材料
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 10:59
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MaterialValidate())->post()->goCheck('edit');
|
||||
$result = MaterialLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除自购材料
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 10:59
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new MaterialValidate())->post()->goCheck('delete');
|
||||
MaterialLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取自购材料详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 10:59
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MaterialValidate())->goCheck('detail');
|
||||
$result = MaterialLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
<?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\material;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\material\MaterialPurchaseRequestLists;
|
||||
use app\adminapi\logic\material\MaterialPurchaseRequestLogic;
|
||||
use app\adminapi\validate\material\MaterialPurchaseRequestValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 材料采购申请控制器
|
||||
* Class MaterialPurchaseRequestController
|
||||
* @package app\adminapi\controller\material
|
||||
*/
|
||||
class MaterialPurchaseRequestController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料采购申请列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MaterialPurchaseRequestLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加材料采购申请
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('add');
|
||||
$result = MaterialPurchaseRequestLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialPurchaseRequestLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料采购申请详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->goCheck('detail');
|
||||
$result = MaterialPurchaseRequestLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',5)->where('name','cgsq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('approve');
|
||||
$result = MaterialPurchaseRequestLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialPurchaseRequestLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
<?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\material;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\material\MaterialPurchaseRequestDetailLists;
|
||||
use app\adminapi\logic\material\MaterialPurchaseRequestDetailLogic;
|
||||
use app\adminapi\validate\material\MaterialPurchaseRequestDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 材料采购申请明细控制器
|
||||
* Class MaterialPurchaseRequestDetailController
|
||||
* @package app\adminapi\controller\material
|
||||
*/
|
||||
class MaterialPurchaseRequestDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料采购申请明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MaterialPurchaseRequestDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑材料采购申请明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestDetailValidate())->post()->goCheck('edit');
|
||||
$result = MaterialPurchaseRequestDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialPurchaseRequestDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取材料采购申请明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestDetailValidate())->goCheck('detail');
|
||||
$result = MaterialPurchaseRequestDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\material;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\material\MaterialWarehouseLists;
|
||||
use app\adminapi\logic\material\MaterialWarehouseLogic;
|
||||
use app\adminapi\validate\material\MaterialWarehouseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 仓库管理控制器
|
||||
* Class MaterialWarehouseController
|
||||
* @package app\adminapi\controller\material
|
||||
*/
|
||||
class MaterialWarehouseController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取仓库管理列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 14:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MaterialWarehouseLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加仓库管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 14:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new MaterialWarehouseValidate())->post()->goCheck('add');
|
||||
$result = MaterialWarehouseLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialWarehouseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑仓库管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 14:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MaterialWarehouseValidate())->post()->goCheck('edit');
|
||||
$result = MaterialWarehouseLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MaterialWarehouseLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除仓库管理
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 14:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new MaterialWarehouseValidate())->post()->goCheck('delete');
|
||||
MaterialWarehouseLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取仓库管理详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/04 14:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MaterialWarehouseValidate())->goCheck('detail');
|
||||
$result = MaterialWarehouseLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
<?php
|
||||
namespace app\adminapi\controller\oa;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\oa\FlowApproveLists;
|
||||
use app\adminapi\logic\oa\FlowApproveLogic;
|
||||
use app\adminapi\validate\oa\FlowApproveValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 日常审批控制器
|
||||
* Class FlowApproveController
|
||||
* @package app\adminapi\controller\oa
|
||||
*/
|
||||
class FlowApproveController extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* @notes 获取日常审批列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
$params = (new FlowApproveValidate())->get()->goCheck('lists');
|
||||
return $this->dataLists(new FlowApproveLists($params['type']));
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 获取日常审批详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FlowApproveValidate())->goCheck('detail');
|
||||
$result = FlowApproveLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//撤销申请
|
||||
public function revoke() {
|
||||
$params = (new FlowApproveValidate())->post()->goCheck('revoke');
|
||||
$result = FlowApproveLogic::revoke($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('撤销成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowApproveLogic::getError());
|
||||
}
|
||||
|
||||
//审核
|
||||
public function check(){
|
||||
$params = (new FlowApproveValidate())->post()->goCheck('check');
|
||||
$result = FlowApproveLogic::check($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('审核成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowApproveLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\oa;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\oa\FlowLists;
|
||||
use app\adminapi\logic\oa\FlowLogic;
|
||||
use app\adminapi\validate\oa\FlowValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 审批流程控制器
|
||||
* Class FlowController
|
||||
* @package app\adminapi\controller\oa
|
||||
*/
|
||||
class FlowController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批流程列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 14:44
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FlowLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加审批流程
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 14:44
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FlowValidate())->post()->goCheck('add');
|
||||
$result = FlowLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑审批流程
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 14:44
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FlowValidate())->post()->goCheck('edit');
|
||||
$result = FlowLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除审批流程
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 14:44
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FlowValidate())->post()->goCheck('delete');
|
||||
FlowLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批流程详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 14:44
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FlowValidate())->goCheck('detail');
|
||||
$result = FlowLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\oa;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\oa\FlowRecordLists;
|
||||
use app\adminapi\logic\oa\FlowRecordLogic;
|
||||
use app\adminapi\validate\oa\FlowRecordValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 审批记录控制器
|
||||
* Class FlowRecordController
|
||||
* @package app\adminapi\controller\oa
|
||||
*/
|
||||
class FlowRecordController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批记录列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FlowRecordLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加审批记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FlowRecordValidate())->post()->goCheck('add');
|
||||
$result = FlowRecordLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑审批记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FlowRecordValidate())->post()->goCheck('edit');
|
||||
$result = FlowRecordLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowRecordLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除审批记录
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FlowRecordValidate())->post()->goCheck('delete');
|
||||
FlowRecordLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批记录详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FlowRecordValidate())->goCheck('detail');
|
||||
$result = FlowRecordLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\oa;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\oa\FlowStepLists;
|
||||
use app\adminapi\logic\oa\FlowStepLogic;
|
||||
use app\adminapi\validate\oa\FlowStepValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 审批步骤控制器
|
||||
* Class FlowStepController
|
||||
* @package app\adminapi\controller\oa
|
||||
*/
|
||||
class FlowStepController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批步骤列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FlowStepLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加审批步骤
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FlowStepValidate())->post()->goCheck('add');
|
||||
$result = FlowStepLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowStepLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑审批步骤
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FlowStepValidate())->post()->goCheck('edit');
|
||||
$result = FlowStepLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowStepLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除审批步骤
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FlowStepValidate())->post()->goCheck('delete');
|
||||
FlowStepLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批步骤详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/02/01 11:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FlowStepValidate())->goCheck('detail');
|
||||
$result = FlowStepLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\oa;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\oa\FlowTypeLists;
|
||||
use app\adminapi\logic\oa\FlowTypeLogic;
|
||||
use app\adminapi\validate\oa\FlowTypeValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 审批类型控制器
|
||||
* Class FlowTypeController
|
||||
* @package app\adminapi\controller\oa
|
||||
*/
|
||||
class FlowTypeController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批类型列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 10:48
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new FlowTypeLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加审批类型
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 10:48
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new FlowTypeValidate())->post()->goCheck('add');
|
||||
$result = FlowTypeLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowTypeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑审批类型
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 10:48
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new FlowTypeValidate())->post()->goCheck('edit');
|
||||
$result = FlowTypeLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(FlowTypeLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除审批类型
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 10:48
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new FlowTypeValidate())->post()->goCheck('delete');
|
||||
FlowTypeLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取审批类型详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/31 10:48
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new FlowTypeValidate())->goCheck('detail');
|
||||
$result = FlowTypeLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class CompetitorController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new CompetitorValidate())->post()->goCheck('add');
|
||||
$result = CompetitorLogic::add($params,$this->adminId);
|
||||
$result = CompetitorLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -69,7 +69,7 @@ class CompetitorController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CompetitorValidate())->post()->goCheck('edit');
|
||||
$result = CompetitorLogic::edit($params,$this->adminId);
|
||||
$result = CompetitorLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -20,10 +20,6 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectLists;
|
||||
use app\adminapi\logic\project\ProjectLogic;
|
||||
use app\adminapi\validate\project\ProjectValidate;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\contract\Contract;
|
||||
use app\common\model\custom\Custom;
|
||||
use app\common\model\project\Project;
|
||||
|
||||
|
||||
/**
|
||||
@ -56,7 +52,7 @@ class ProjectController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectValidate())->post()->goCheck('add');
|
||||
$result = ProjectLogic::add($params,$this->adminId);
|
||||
$result = ProjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -107,41 +103,6 @@ class ProjectController extends BaseAdminController
|
||||
$result = ProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
//项目合同列表
|
||||
public function contracts(): \think\response\Json
|
||||
{
|
||||
$params = $this->request->get(['project_id','page_no','page_size']);
|
||||
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'];
|
||||
$project = Project::where('id',$params['project_id'])->findOrEmpty();
|
||||
if($project->isEmpty()){
|
||||
return $this->fail('项目数据不存在');
|
||||
}
|
||||
$data = Contract::field('id,customer_id,contract_name,contract_code,contract_type,contract_status,business_director,contract_date,amount,amount_daxie')
|
||||
->where('project_id',$project['id'])
|
||||
->select()->each(function($item)use($project){
|
||||
$item['contract_type_text'] = $item->contract_type_text;
|
||||
$item['contract_status_text'] = $item->contract_status_text;
|
||||
$custom = Custom::field('name')->where('id',$item['customer_id'])->findOrEmpty();
|
||||
$admin = Admin::field('name')->where('id',$item['business_director'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['custom_name'] = $custom['name'];
|
||||
$item['business_director_name'] = $admin['name'];
|
||||
return $item;
|
||||
})->toArray();
|
||||
$count = Contract::field('id')->where('project_id',$project['id'])->count();
|
||||
$result = [
|
||||
'count' => $count,
|
||||
'page_no' => $pageNo,
|
||||
'page_size' => $pageSize,
|
||||
'lists' => $data
|
||||
];
|
||||
return $this->success('请求成功',$result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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\ProjectCostAdjustmentLists;
|
||||
use app\adminapi\logic\project\ProjectCostAdjustmentLogic;
|
||||
use app\adminapi\validate\project\ProjectCostAdjustmentValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 成本调整控制器
|
||||
* Class ProjectCostAdjustmentController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectCostAdjustmentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取成本调整列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 13:43
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectCostAdjustmentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加成本调整
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 13:43
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectCostAdjustmentValidate())->post()->goCheck('add');
|
||||
$result = ProjectCostAdjustmentLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostAdjustmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑成本调整
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 13:43
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectCostAdjustmentValidate())->post()->goCheck('edit');
|
||||
$result = ProjectCostAdjustmentLogic::edit($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostAdjustmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除成本调整
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 13:43
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectCostAdjustmentValidate())->post()->goCheck('delete');
|
||||
ProjectCostAdjustmentLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取成本调整详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 13:43
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectCostAdjustmentValidate())->goCheck('detail');
|
||||
$result = ProjectCostAdjustmentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','cbtz')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectCostAdjustmentValidate())->post()->goCheck('approve');
|
||||
$result = ProjectCostAdjustmentLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostAdjustmentLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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\ProjectCostBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectCostBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectCostBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 费用预算控制器
|
||||
* Class ProjectCostBudgetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectCostBudgetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取费用预算列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectCostBudgetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加费用预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectCostBudgetValidate())->post()->goCheck('add');
|
||||
$result = ProjectCostBudgetLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑费用预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectCostBudgetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectCostBudgetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除费用预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectCostBudgetValidate())->post()->goCheck('delete');
|
||||
ProjectCostBudgetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取费用预算详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectCostBudgetValidate())->goCheck('detail');
|
||||
$result = ProjectCostBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','fyys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectCostBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectCostBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\ProjectCostBudgetDetailLists;
|
||||
use app\adminapi\logic\project\ProjectCostBudgetDetailLogic;
|
||||
use app\adminapi\validate\project\ProjectCostBudgetDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 费用预算明细控制器
|
||||
* Class ProjectCostBudgetDetailController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectCostBudgetDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取费用预算明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectCostBudgetDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加费用预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectCostBudgetDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectCostBudgetDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑费用预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectCostBudgetDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectCostBudgetDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectCostBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除费用预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectCostBudgetDetailValidate())->post()->goCheck('delete');
|
||||
ProjectCostBudgetDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取费用预算明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 14:32
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectCostBudgetDetailValidate())->goCheck('detail');
|
||||
$result = ProjectCostBudgetDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,127 +0,0 @@
|
||||
<?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\ProjectEquipmentBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectEquipmentBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectEquipmentBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 机具预算控制器
|
||||
* Class ProjectEquipmentBudgetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectEquipmentBudgetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取机具预算列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectEquipmentBudgetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加机具预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('add');
|
||||
$result = ProjectEquipmentBudgetLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEquipmentBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑机具预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectEquipmentBudgetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEquipmentBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除机具预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('delete');
|
||||
ProjectEquipmentBudgetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取机具预算详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetValidate())->goCheck('detail');
|
||||
$result = ProjectEquipmentBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','jjys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectEquipmentBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEquipmentBudgetLogic::getError());
|
||||
}
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\ProjectEquipmentBudgetDetailLists;
|
||||
use app\adminapi\logic\project\ProjectEquipmentBudgetDetailLogic;
|
||||
use app\adminapi\validate\project\ProjectEquipmentBudgetDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 机具预算明细控制器
|
||||
* Class ProjectEquipmentBudgetDetailController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectEquipmentBudgetDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取机具预算明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectEquipmentBudgetDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加机具预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectEquipmentBudgetDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEquipmentBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑机具预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectEquipmentBudgetDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEquipmentBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除机具预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetDetailValidate())->post()->goCheck('delete');
|
||||
ProjectEquipmentBudgetDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取机具预算明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 11:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectEquipmentBudgetDetailValidate())->goCheck('detail');
|
||||
$result = ProjectEquipmentBudgetDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -52,7 +52,7 @@ class ProjectEstimateController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectEstimateValidate())->post()->goCheck('add');
|
||||
$result = ProjectEstimateLogic::add($params,$this->adminId);
|
||||
$result = ProjectEstimateLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -69,7 +69,7 @@ class ProjectEstimateController extends BaseAdminController
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectEstimateValidate())->post()->goCheck('edit');
|
||||
$result = ProjectEstimateLogic::edit($params,$this->adminId);
|
||||
$result = ProjectEstimateLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
|
@ -1,128 +0,0 @@
|
||||
<?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\ProjectExpenseReimbursementLists;
|
||||
use app\adminapi\logic\project\ProjectExpenseReimbursementLogic;
|
||||
use app\adminapi\validate\project\ProjectExpenseReimbursementValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 费用报销控制器
|
||||
* Class ProjectExpenseReimbursementController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectExpenseReimbursementController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取费用报销列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectExpenseReimbursementLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加费用报销
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->post()->goCheck('add');
|
||||
$result = ProjectExpenseReimbursementLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑费用报销
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->post()->goCheck('edit');
|
||||
$result = ProjectExpenseReimbursementLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除费用报销
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->post()->goCheck('delete');
|
||||
ProjectExpenseReimbursementLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取费用报销详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->goCheck('detail');
|
||||
$result = ProjectExpenseReimbursementLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','fybx')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementValidate())->post()->goCheck('approve');
|
||||
$result = ProjectExpenseReimbursementLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\ProjectExpenseReimbursementDetailLists;
|
||||
use app\adminapi\logic\project\ProjectExpenseReimbursementDetailLogic;
|
||||
use app\adminapi\validate\project\ProjectExpenseReimbursementDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 报销明细控制器
|
||||
* Class ProjectExpenseReimbursementDetailController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectExpenseReimbursementDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取报销明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectExpenseReimbursementDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加报销明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectExpenseReimbursementDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑报销明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectExpenseReimbursementDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除报销明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementDetailValidate())->post()->goCheck('delete');
|
||||
ProjectExpenseReimbursementDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取报销明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementDetailValidate())->goCheck('detail');
|
||||
$result = ProjectExpenseReimbursementDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\ProjectExpenseReimbursementInvoiceDetailLists;
|
||||
use app\adminapi\logic\project\ProjectExpenseReimbursementInvoiceDetailLogic;
|
||||
use app\adminapi\validate\project\ProjectExpenseReimbursementInvoiceDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 发票明细控制器
|
||||
* Class ProjectExpenseReimbursementInvoiceDetailController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectExpenseReimbursementInvoiceDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取发票明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectExpenseReimbursementInvoiceDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加发票明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementInvoiceDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectExpenseReimbursementInvoiceDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementInvoiceDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑发票明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementInvoiceDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectExpenseReimbursementInvoiceDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectExpenseReimbursementInvoiceDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除发票明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementInvoiceDetailValidate())->post()->goCheck('delete');
|
||||
ProjectExpenseReimbursementInvoiceDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取发票明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/19 13:44
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectExpenseReimbursementInvoiceDetailValidate())->goCheck('detail');
|
||||
$result = ProjectExpenseReimbursementInvoiceDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,126 +0,0 @@
|
||||
<?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\ProjectLaborBudgetLists;
|
||||
use app\adminapi\logic\project\ProjectLaborBudgetLogic;
|
||||
use app\adminapi\validate\project\ProjectLaborBudgetValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 人工预算控制器
|
||||
* Class ProjectLaborBudgetController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectLaborBudgetController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取人工预算列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectLaborBudgetLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加人工预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetValidate())->post()->goCheck('add');
|
||||
$result = ProjectLaborBudgetLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑人工预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetValidate())->post()->goCheck('edit');
|
||||
$result = ProjectLaborBudgetLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborBudgetLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除人工预算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetValidate())->post()->goCheck('delete');
|
||||
ProjectLaborBudgetLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取人工预算详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetValidate())->goCheck('detail');
|
||||
$result = ProjectLaborBudgetLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','rgys')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectLaborBudgetValidate())->post()->goCheck('approve');
|
||||
$result = ProjectLaborBudgetLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborBudgetLogic::getError());
|
||||
}
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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\ProjectLaborBudgetDetailLists;
|
||||
use app\adminapi\logic\project\ProjectLaborBudgetDetailLogic;
|
||||
use app\adminapi\validate\project\ProjectLaborBudgetDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 人工预算明细控制器
|
||||
* Class ProjectLaborBudgetDetailController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectLaborBudgetDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取人工预算明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectLaborBudgetDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加人工预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetDetailValidate())->post()->goCheck('add');
|
||||
$result = ProjectLaborBudgetDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑人工预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetDetailValidate())->post()->goCheck('edit');
|
||||
$result = ProjectLaborBudgetDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLaborBudgetDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除人工预算明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetDetailValidate())->post()->goCheck('delete');
|
||||
ProjectLaborBudgetDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取人工预算明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/16 09:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectLaborBudgetDetailValidate())->goCheck('detail');
|
||||
$result = ProjectLaborBudgetDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
<?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\ProjectLoanApplyLists;
|
||||
use app\adminapi\logic\project\ProjectLoanApplyLogic;
|
||||
use app\adminapi\validate\project\ProjectLoanApplyValidate;
|
||||
use app\common\model\oa\Flow;
|
||||
use app\common\model\oa\FlowType;
|
||||
|
||||
|
||||
/**
|
||||
* 借款申请控制器
|
||||
* Class ProjectLoanApplyController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectLoanApplyController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取借款申请列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 11:05
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectLoanApplyLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加借款申请
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 11:05
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->post()->goCheck('add');
|
||||
$result = ProjectLoanApplyLogic::add($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLoanApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑借款申请
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 11:05
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->post()->goCheck('edit');
|
||||
$result = ProjectLoanApplyLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLoanApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除借款申请
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 11:05
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->post()->goCheck('delete');
|
||||
ProjectLoanApplyLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取借款申请详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2024/01/17 11:05
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->goCheck('detail');
|
||||
$result = ProjectLoanApplyLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
public function flows(): \think\response\Json
|
||||
{
|
||||
$flow_type = FlowType::where('type',4)->where('name','jksq')->findOrEmpty();
|
||||
$data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select();
|
||||
return $this->success('请求成功',$data->toArray());
|
||||
}
|
||||
|
||||
//添加审批
|
||||
public function approve(): \think\response\Json
|
||||
{
|
||||
$params = (new ProjectLoanApplyValidate())->post()->goCheck('approve');
|
||||
$result = ProjectLoanApplyLogic::approve($params,$this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('提交审核信息成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLoanApplyLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
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