commit
a230937d72
0
.example.env
Normal file → Executable file
0
.example.env
Normal file → Executable file
5
.gitignore
vendored
Normal file → Executable file
5
.gitignore
vendored
Normal file → Executable file
@ -3,7 +3,10 @@
|
||||
*.log
|
||||
/.env
|
||||
/public/uploads/*
|
||||
/public/.htaccess
|
||||
/public/nginx.htaccess
|
||||
!/public/uploads/index.html
|
||||
/runtime/*
|
||||
!/runtime/index.html
|
||||
/config/install.lock
|
||||
/config/install.lock
|
||||
/public/nginx.htaccess
|
||||
|
0
.travis.yml
Normal file → Executable file
0
.travis.yml
Normal file → Executable file
0
LICENSE.txt
Normal file → Executable file
0
LICENSE.txt
Normal file → Executable file
0
app/.htaccess
Normal file → Executable file
0
app/.htaccess
Normal file → Executable file
0
app/AppService.php
Normal file → Executable file
0
app/AppService.php
Normal file → Executable file
0
app/BaseController.php
Normal file → Executable file
0
app/BaseController.php
Normal file → Executable file
0
app/ExceptionHandle.php
Normal file → Executable file
0
app/ExceptionHandle.php
Normal file → Executable file
0
app/Request.php
Normal file → Executable file
0
app/Request.php
Normal file → Executable file
0
app/adminapi/config/route.php
Normal file → Executable file
0
app/adminapi/config/route.php
Normal file → Executable file
0
app/adminapi/controller/BaseAdminController.php
Normal file → Executable file
0
app/adminapi/controller/BaseAdminController.php
Normal file → Executable file
28
app/adminapi/controller/CommonController.php
Normal file
28
app/adminapi/controller/CommonController.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
use think\facade\Db;
|
||||
|
||||
class CommonController extends BaseAdminController
|
||||
{
|
||||
public array $notNeedLogin = ['city', 'area', 'street'];
|
||||
|
||||
//**省列表 */
|
||||
public function province()
|
||||
{
|
||||
$data = Db::name('geo_province')->where(['switch' => 1])->select();
|
||||
return $this->data($data->toArray());
|
||||
} //**市列表 */
|
||||
public function city($province_code)
|
||||
{
|
||||
$data = Db::name('geo_city')->where(['province_code' => $province_code])->select();
|
||||
return $this->data($data->toArray());
|
||||
}
|
||||
//**区域列表 */
|
||||
public function area($city_code)
|
||||
{
|
||||
$data = Db::name('geo_area')->where(['city_code' => $city_code])->select();
|
||||
return $this->data($data->toArray());
|
||||
}
|
||||
}
|
0
app/adminapi/controller/ConfigController.php
Normal file → Executable file
0
app/adminapi/controller/ConfigController.php
Normal file → Executable file
0
app/adminapi/controller/DownloadController.php
Normal file → Executable file
0
app/adminapi/controller/DownloadController.php
Normal file → Executable file
0
app/adminapi/controller/FileController.php
Normal file → Executable file
0
app/adminapi/controller/FileController.php
Normal file → Executable file
0
app/adminapi/controller/LoginController.php
Normal file → Executable file
0
app/adminapi/controller/LoginController.php
Normal file → Executable file
16
app/adminapi/controller/UploadController.php
Normal file → Executable file
16
app/adminapi/controller/UploadController.php
Normal file → Executable file
@ -60,4 +60,18 @@ class UploadController extends BaseAdminController
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @notes 上传文件
|
||||
* @return Json
|
||||
*/
|
||||
public function file()
|
||||
{
|
||||
try {
|
||||
$cid = $this->request->post('cid', 0);
|
||||
$result = UploadService::file($cid);
|
||||
return $this->success('上传成功', $result);
|
||||
} catch (Exception $e) {
|
||||
return $this->fail($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
0
app/adminapi/controller/WorkbenchController.php
Normal file → Executable file
0
app/adminapi/controller/WorkbenchController.php
Normal file → Executable file
0
app/adminapi/controller/article/ArticleCateController.php
Normal file → Executable file
0
app/adminapi/controller/article/ArticleCateController.php
Normal file → Executable file
0
app/adminapi/controller/article/ArticleController.php
Normal file → Executable file
0
app/adminapi/controller/article/ArticleController.php
Normal file → Executable file
0
app/adminapi/controller/auth/AdminController.php
Normal file → Executable file
0
app/adminapi/controller/auth/AdminController.php
Normal file → Executable file
12
app/adminapi/controller/auth/MenuController.php
Normal file → Executable file
12
app/adminapi/controller/auth/MenuController.php
Normal file → Executable file
@ -53,6 +53,18 @@ class MenuController extends BaseAdminController
|
||||
return $this->dataLists(new MenuLists());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id获取模块菜单
|
||||
*/
|
||||
public function model_menu_lists()
|
||||
{
|
||||
$id=$this->request->param('id',0);
|
||||
if($id==0){
|
||||
return $this->fail('缺少参数');
|
||||
}
|
||||
$list=MenuLogic::getModelList($id);
|
||||
return $this->success('操作成功', $list);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 菜单详情
|
||||
|
0
app/adminapi/controller/auth/RoleController.php
Normal file → Executable file
0
app/adminapi/controller/auth/RoleController.php
Normal file → Executable file
108
app/adminapi/controller/bid/BidBiddingDecisionController.php
Normal file
108
app/adminapi/controller/bid/BidBiddingDecisionController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidBiddingDecisionLists;
|
||||
use app\adminapi\logic\bid\BidBiddingDecisionLogic;
|
||||
use app\adminapi\validate\bid\BidBiddingDecisionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 投标决策控制器
|
||||
* Class BidBiddingDecisionController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidBiddingDecisionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标决策列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidBiddingDecisionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加投标决策
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidBiddingDecisionValidate())->post()->goCheck('add');
|
||||
$result = BidBiddingDecisionLogic::add($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 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
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidBiddingDecisionValidate())->goCheck('detail');
|
||||
$result = BidBiddingDecisionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bid/BidBuyBiddingDocumentController.php
Normal file
108
app/adminapi/controller/bid/BidBuyBiddingDocumentController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidBuyBiddingDocumentLists;
|
||||
use app\adminapi\logic\bid\BidBuyBiddingDocumentLogic;
|
||||
use app\adminapi\validate\bid\BidBuyBiddingDocumentValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 购买标书控制器
|
||||
* Class BidBuyBiddingDocumentController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidBuyBiddingDocumentController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取购买标书列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidBuyBiddingDocumentLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加购买标书
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('add');
|
||||
$result = BidBuyBiddingDocumentLogic::add($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 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 获取购买标书详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidBuyBiddingDocumentValidate())->goCheck('detail');
|
||||
$result = BidBuyBiddingDocumentLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bid/BidDocumentExaminationController.php
Normal file
108
app/adminapi/controller/bid/BidDocumentExaminationController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidDocumentExaminationLists;
|
||||
use app\adminapi\logic\bid\BidDocumentExaminationLogic;
|
||||
use app\adminapi\validate\bid\BidDocumentExaminationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 标书审查控制器
|
||||
* Class BidDocumentExaminationController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidDocumentExaminationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidDocumentExaminationLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加标书审查
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->post()->goCheck('add');
|
||||
$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
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidDocumentExaminationValidate())->goCheck('detail');
|
||||
$result = BidDocumentExaminationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidDocumentExaminationDetailLists;
|
||||
use app\adminapi\logic\bid\BidDocumentExaminationDetailLogic;
|
||||
use app\adminapi\validate\bid\BidDocumentExaminationDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 标书审查-报价明细控制器
|
||||
* Class BidDocumentExaminationDetailController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidDocumentExaminationDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查-报价明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidDocumentExaminationDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加标书审查-报价明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidDocumentExaminationDetailValidate())->post()->goCheck('add');
|
||||
$result = BidDocumentExaminationDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidDocumentExaminationDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑标书审查-报价明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidDocumentExaminationDetailValidate())->post()->goCheck('edit');
|
||||
$result = BidDocumentExaminationDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidDocumentExaminationDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除标书审查-报价明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidDocumentExaminationDetailValidate())->post()->goCheck('delete');
|
||||
BidDocumentExaminationDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查-报价明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidDocumentExaminationDetailValidate())->goCheck('detail');
|
||||
$result = BidDocumentExaminationDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/bid/BidResultController.php
Normal file
108
app/adminapi/controller/bid/BidResultController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\bid;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\bid\BidResultLists;
|
||||
use app\adminapi\logic\bid\BidResultLogic;
|
||||
use app\adminapi\validate\bid\BidResultValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 投标结果控制器
|
||||
* Class BidResultController
|
||||
* @package app\adminapi\controller\bid
|
||||
*/
|
||||
class BidResultController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标结果列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new BidResultLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加投标结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new BidResultValidate())->post()->goCheck('add');
|
||||
$result = BidResultLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑投标结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new BidResultValidate())->post()->goCheck('edit');
|
||||
$result = BidResultLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(BidResultLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除投标结果
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new BidResultValidate())->post()->goCheck('delete');
|
||||
BidResultLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标结果详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new BidResultValidate())->goCheck('detail');
|
||||
$result = BidResultLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
0
app/adminapi/controller/channel/OfficialAccountMenuController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OfficialAccountMenuController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OfficialAccountReplyController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OfficialAccountReplyController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OfficialAccountSettingController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OfficialAccountSettingController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OpenSettingController.php
Normal file → Executable file
0
app/adminapi/controller/channel/OpenSettingController.php
Normal file → Executable file
108
app/adminapi/controller/contract/ContractController.php
Normal file
108
app/adminapi/controller/contract/ContractController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ContractLists;
|
||||
use app\adminapi\logic\contract\ContractLogic;
|
||||
use app\adminapi\validate\contract\ContractValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目合同控制器
|
||||
* Class ContractController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class ContractController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目合同列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ContractLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ContractValidate())->post()->goCheck('add');
|
||||
$result = ContractLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ContractValidate())->post()->goCheck('edit');
|
||||
$result = ContractLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ContractValidate())->post()->goCheck('delete');
|
||||
ContractLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目合同详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ContractValidate())->goCheck('detail');
|
||||
$result = ContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ContractNegotiationLists;
|
||||
use app\adminapi\logic\contract\ContractNegotiationLogic;
|
||||
use app\adminapi\validate\contract\ContractNegotiationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 合同洽商控制器
|
||||
* Class ContractNegotiationController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class ContractNegotiationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取合同洽商列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ContractNegotiationLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加合同洽商
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->post()->goCheck('add');
|
||||
$result = ContractNegotiationLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑合同洽商
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->post()->goCheck('edit');
|
||||
$result = ContractNegotiationLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ContractNegotiationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除合同洽商
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->post()->goCheck('delete');
|
||||
ContractNegotiationLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取合同洽商详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ContractNegotiationValidate())->goCheck('detail');
|
||||
$result = ContractNegotiationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ProcurementContractLists;
|
||||
use app\adminapi\logic\contract\ProcurementContractLogic;
|
||||
use app\adminapi\validate\contract\ProcurementContractValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 采购合同控制器
|
||||
* Class ProcurementContractController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class ProcurementContractController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购合同列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProcurementContractLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加采购合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->post()->goCheck('add');
|
||||
$result = ProcurementContractLogic::add($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 获取采购合同详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProcurementContractValidate())->goCheck('detail');
|
||||
$result = ProcurementContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\ProcurementContractDetailLists;
|
||||
use app\adminapi\logic\contract\ProcurementContractDetailLogic;
|
||||
use app\adminapi\validate\contract\ProcurementContractDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 采购明细控制器
|
||||
* Class ProcurementContractDetailController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class ProcurementContractDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProcurementContractDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @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
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProcurementContractDetailValidate())->goCheck('detail');
|
||||
$result = ProcurementContractDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\contract;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\contract\SubcontractingContractLists;
|
||||
use app\adminapi\logic\contract\SubcontractingContractLogic;
|
||||
use app\adminapi\validate\contract\SubcontractingContractValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 分包合同控制器
|
||||
* Class SubcontractingContractController
|
||||
* @package app\adminapi\controller\contract
|
||||
*/
|
||||
class SubcontractingContractController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SubcontractingContractLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加分包合同
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
*/
|
||||
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/09 14:08
|
||||
*/
|
||||
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/09 14:08
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->post()->goCheck('delete');
|
||||
SubcontractingContractLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SubcontractingContractValidate())->goCheck('detail');
|
||||
$result = SubcontractingContractLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
0
app/adminapi/controller/crontab/CrontabController.php
Normal file → Executable file
0
app/adminapi/controller/crontab/CrontabController.php
Normal file → Executable file
108
app/adminapi/controller/custom/CustomContactsController.php
Normal file
108
app/adminapi/controller/custom/CustomContactsController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomContactsLists;
|
||||
use app\adminapi\logic\custom\CustomContactsLogic;
|
||||
use app\adminapi\validate\custom\CustomContactsValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CustomContacts控制器
|
||||
* Class CustomContactsController
|
||||
* @package app\adminapi\controller\custom
|
||||
*/
|
||||
class CustomContactsController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CustomContactsLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomContactsValidate())->post()->goCheck('add');
|
||||
$result = CustomContactsLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomContactsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomContactsValidate())->post()->goCheck('edit');
|
||||
$result = CustomContactsLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomContactsLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CustomContactsValidate())->post()->goCheck('delete');
|
||||
CustomContactsLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CustomContactsValidate())->goCheck('detail');
|
||||
$result = CustomContactsLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/custom/CustomController.php
Normal file
108
app/adminapi/controller/custom/CustomController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomLists;
|
||||
use app\adminapi\logic\custom\CustomLogic;
|
||||
use app\adminapi\validate\custom\CustomValidate;
|
||||
|
||||
|
||||
/**
|
||||
* Custom控制器
|
||||
* Class CustomController
|
||||
* @package app\adminapi\controller\custom
|
||||
*/
|
||||
class CustomController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CustomLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomValidate())->post()->goCheck('add');
|
||||
$result = CustomLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomValidate())->post()->goCheck('edit');
|
||||
$result = CustomLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CustomValidate())->post()->goCheck('delete');
|
||||
CustomLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CustomValidate())->goCheck('detail');
|
||||
$result = CustomLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/custom/CustomerDemandController.php
Normal file
108
app/adminapi/controller/custom/CustomerDemandController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomerDemandLists;
|
||||
use app\adminapi\logic\custom\CustomerDemandLogic;
|
||||
use app\adminapi\validate\custom\CustomerDemandValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 客户需求控制器
|
||||
* Class CustomerDemandController
|
||||
* @package app\adminapi\controller\custom
|
||||
*/
|
||||
class CustomerDemandController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取客户需求列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CustomerDemandLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加客户需求
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomerDemandValidate())->post()->goCheck('add');
|
||||
$result = CustomerDemandLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomerDemandLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑客户需求
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomerDemandValidate())->post()->goCheck('edit');
|
||||
$result = CustomerDemandLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomerDemandLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除客户需求
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CustomerDemandValidate())->post()->goCheck('delete');
|
||||
CustomerDemandLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取客户需求详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CustomerDemandValidate())->goCheck('detail');
|
||||
$result = CustomerDemandLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom\CustomerDemandSolutionLists;
|
||||
use app\adminapi\logic\custom\CustomerDemandSolutionLogic;
|
||||
use app\adminapi\validate\custom\CustomerDemandSolutionValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 解决方案控制器
|
||||
* Class CustomerDemandSolutionController
|
||||
* @package app\adminapi\controller\custom
|
||||
*/
|
||||
class CustomerDemandSolutionController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取解决方案列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CustomerDemandSolutionLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加解决方案
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomerDemandSolutionValidate())->post()->goCheck('add');
|
||||
$result = CustomerDemandSolutionLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomerDemandSolutionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑解决方案
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomerDemandSolutionValidate())->post()->goCheck('edit');
|
||||
$result = CustomerDemandSolutionLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomerDemandSolutionLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除解决方案
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CustomerDemandSolutionValidate())->post()->goCheck('delete');
|
||||
CustomerDemandSolutionLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取解决方案详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CustomerDemandSolutionValidate())->goCheck('detail');
|
||||
$result = CustomerDemandSolutionLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/custom_follow/CustomFollowController.php
Normal file
108
app/adminapi/controller/custom_follow/CustomFollowController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom_follow;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom_follow\CustomFollowLists;
|
||||
use app\adminapi\logic\custom_follow\CustomFollowLogic;
|
||||
use app\adminapi\validate\custom_follow\CustomFollowValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CustomFollow控制器
|
||||
* Class CustomFollowController
|
||||
* @package app\adminapi\controller\custom_follow
|
||||
*/
|
||||
class CustomFollowController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CustomFollowLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomFollowValidate())->post()->goCheck('add');
|
||||
$result = CustomFollowLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomFollowLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomFollowValidate())->post()->goCheck('edit');
|
||||
$result = CustomFollowLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomFollowLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CustomFollowValidate())->post()->goCheck('delete');
|
||||
CustomFollowLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CustomFollowValidate())->goCheck('detail');
|
||||
$result = CustomFollowLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\custom_service;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\custom_service\CustomServiceLists;
|
||||
use app\adminapi\logic\custom_service\CustomServiceLogic;
|
||||
use app\adminapi\validate\custom_service\CustomServiceValidate;
|
||||
|
||||
|
||||
/**
|
||||
* CustomService控制器
|
||||
* Class CustomServiceController
|
||||
* @package app\adminapi\controller\custom_service
|
||||
*/
|
||||
class CustomServiceController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CustomServiceLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CustomServiceValidate())->post()->goCheck('add');
|
||||
$result = CustomServiceLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CustomServiceLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CustomServiceValidate())->post()->goCheck('edit');
|
||||
$result = CustomServiceLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
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 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CustomServiceValidate())->goCheck('detail');
|
||||
$result = CustomServiceLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
58
app/adminapi/controller/dept/DeptController.php
Normal file → Executable file
58
app/adminapi/controller/dept/DeptController.php
Normal file → Executable file
@ -15,8 +15,10 @@
|
||||
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\dept\Dept;
|
||||
|
||||
/**
|
||||
* 部门管理控制器
|
||||
@ -34,28 +36,9 @@ class DeptController extends BaseAdminController
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
$params = $this->request->get();
|
||||
$result = DeptLogic::lists($params);
|
||||
return $this->success('',$result);
|
||||
return $this->dataLists(new DeptLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @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
|
||||
@ -96,8 +79,8 @@ class DeptController extends BaseAdminController
|
||||
public function delete()
|
||||
{
|
||||
$params = (new DeptValidate())->post()->goCheck('delete');
|
||||
DeptLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
$result = DeptLogic::delete($params);
|
||||
return $result ? $this->success('删除成功', [], 1, 1) : $this->fail(DeptLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
@ -113,22 +96,15 @@ class DeptController extends BaseAdminController
|
||||
$result = DeptLogic::detail($params);
|
||||
return $this->data($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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//某个组织下面的部门
|
||||
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);
|
||||
}
|
||||
}
|
29
app/adminapi/controller/dept/JobsController.php
Normal file → Executable file
29
app/adminapi/controller/dept/JobsController.php
Normal file → Executable file
@ -18,6 +18,7 @@ use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\dept\JobsLists;
|
||||
use app\adminapi\logic\dept\JobsLogic;
|
||||
use app\adminapi\validate\dept\JobsValidate;
|
||||
use app\common\model\dept\Jobs;
|
||||
|
||||
|
||||
/**
|
||||
@ -97,22 +98,16 @@ class JobsController extends BaseAdminController
|
||||
$result = JobsLogic::detail($params);
|
||||
return $this->data($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:31
|
||||
*/
|
||||
public function all()
|
||||
{
|
||||
$result = JobsLogic::getAllData();
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
114
app/adminapi/controller/dept/OrgsController.php
Normal file
114
app/adminapi/controller/dept/OrgsController.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\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());
|
||||
}
|
||||
}
|
0
app/adminapi/controller/notice/NoticeController.php
Normal file → Executable file
0
app/adminapi/controller/notice/NoticeController.php
Normal file → Executable file
0
app/adminapi/controller/notice/SmsConfigController.php
Normal file → Executable file
0
app/adminapi/controller/notice/SmsConfigController.php
Normal file → Executable file
108
app/adminapi/controller/project/CompetitorController.php
Normal file
108
app/adminapi/controller/project/CompetitorController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\CompetitorLists;
|
||||
use app\adminapi\logic\project\CompetitorLogic;
|
||||
use app\adminapi\validate\project\CompetitorValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 竞争对手控制器
|
||||
* Class CompetitorController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class CompetitorController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取竞争对手列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 22:01
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new CompetitorLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加竞争对手
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 22:01
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new CompetitorValidate())->post()->goCheck('add');
|
||||
$result = CompetitorLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CompetitorLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑竞争对手
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 22:01
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new CompetitorValidate())->post()->goCheck('edit');
|
||||
$result = CompetitorLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(CompetitorLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除竞争对手
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 22:01
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new CompetitorValidate())->post()->goCheck('delete');
|
||||
CompetitorLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取竞争对手详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 22:01
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new CompetitorValidate())->goCheck('detail');
|
||||
$result = CompetitorLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectController.php
Normal file
108
app/adminapi/controller/project/ProjectController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectLists;
|
||||
use app\adminapi\logic\project\ProjectLogic;
|
||||
use app\adminapi\validate\project\ProjectValidate;
|
||||
|
||||
|
||||
/**
|
||||
* Project控制器
|
||||
* Class ProjectController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:30
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:30
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectValidate())->post()->goCheck('add');
|
||||
$result = ProjectLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:30
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectValidate())->post()->goCheck('edit');
|
||||
$result = ProjectLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:30
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectValidate())->post()->goCheck('delete');
|
||||
ProjectLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:30
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectValidate())->goCheck('detail');
|
||||
$result = ProjectLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectEstimateController.php
Normal file
108
app/adminapi/controller/project/ProjectEstimateController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectEstimateLists;
|
||||
use app\adminapi\logic\project\ProjectEstimateLogic;
|
||||
use app\adminapi\validate\project\ProjectEstimateValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 项目概算控制器
|
||||
* Class ProjectEstimateController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectEstimateController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目概算列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:42
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectEstimateLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加项目概算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:42
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectEstimateValidate())->post()->goCheck('add');
|
||||
$result = ProjectEstimateLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEstimateLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑项目概算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:42
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectEstimateValidate())->post()->goCheck('edit');
|
||||
$result = ProjectEstimateLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectEstimateLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除项目概算
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:42
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectEstimateValidate())->post()->goCheck('delete');
|
||||
ProjectEstimateLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目概算详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:42
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectEstimateValidate())->goCheck('detail');
|
||||
$result = ProjectEstimateLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/project/ProjectFollowUpController.php
Normal file
108
app/adminapi/controller/project/ProjectFollowUpController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectFollowUpLists;
|
||||
use app\adminapi\logic\project\ProjectFollowUpLogic;
|
||||
use app\adminapi\validate\project\ProjectFollowUpValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectFollowUp控制器
|
||||
* Class ProjectFollowUpController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectFollowUpController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:49
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectFollowUpLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:49
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectFollowUpValidate())->post()->goCheck('add');
|
||||
$result = ProjectFollowUpLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectFollowUpLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:49
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectFollowUpValidate())->post()->goCheck('edit');
|
||||
$result = ProjectFollowUpLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectFollowUpLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:49
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectFollowUpValidate())->post()->goCheck('delete');
|
||||
ProjectFollowUpLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:49
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectFollowUpValidate())->goCheck('detail');
|
||||
$result = ProjectFollowUpLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\project;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\project\ProjectPreSalesMembersLists;
|
||||
use app\adminapi\logic\project\ProjectPreSalesMembersLogic;
|
||||
use app\adminapi\validate\project\ProjectPreSalesMembersValidate;
|
||||
|
||||
|
||||
/**
|
||||
* ProjectPreSalesMembers控制器
|
||||
* Class ProjectPreSalesMembersController
|
||||
* @package app\adminapi\controller\project
|
||||
*/
|
||||
class ProjectPreSalesMembersController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:15
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new ProjectPreSalesMembersLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:15
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new ProjectPreSalesMembersValidate())->post()->goCheck('add');
|
||||
$result = ProjectPreSalesMembersLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectPreSalesMembersLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:15
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new ProjectPreSalesMembersValidate())->post()->goCheck('edit');
|
||||
$result = ProjectPreSalesMembersLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(ProjectPreSalesMembersLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:15
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new ProjectPreSalesMembersValidate())->post()->goCheck('delete');
|
||||
ProjectPreSalesMembersLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/14 10:15
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new ProjectPreSalesMembersValidate())->goCheck('detail');
|
||||
$result = ProjectPreSalesMembersLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quotation/QuotationController.php
Normal file
108
app/adminapi/controller/quotation/QuotationController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\quotation;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quotation\QuotationLists;
|
||||
use app\adminapi\logic\quotation\QuotationLogic;
|
||||
use app\adminapi\validate\quotation\QuotationValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 报价单控制器
|
||||
* Class QuotationController
|
||||
* @package app\adminapi\controller\quotation
|
||||
*/
|
||||
class QuotationController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取报价单列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:23
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QuotationLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加报价单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:23
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QuotationValidate())->post()->goCheck('add');
|
||||
$result = QuotationLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QuotationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑报价单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:23
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QuotationValidate())->post()->goCheck('edit');
|
||||
$result = QuotationLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QuotationLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除报价单
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:23
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QuotationValidate())->post()->goCheck('delete');
|
||||
QuotationLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取报价单详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:23
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QuotationValidate())->goCheck('detail');
|
||||
$result = QuotationLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
108
app/adminapi/controller/quotation/QuotationDetailController.php
Normal file
108
app/adminapi/controller/quotation/QuotationDetailController.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\quotation;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\quotation\QuotationDetailLists;
|
||||
use app\adminapi\logic\quotation\QuotationDetailLogic;
|
||||
use app\adminapi\validate\quotation\QuotationDetailValidate;
|
||||
|
||||
|
||||
/**
|
||||
* 报价明细控制器
|
||||
* Class QuotationDetailController
|
||||
* @package app\adminapi\controller\quotation
|
||||
*/
|
||||
class QuotationDetailController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取报价明细列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:59
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new QuotationDetailLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加报价明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:59
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new QuotationDetailValidate())->post()->goCheck('add');
|
||||
$result = QuotationDetailLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QuotationDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑报价明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:59
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new QuotationDetailValidate())->post()->goCheck('edit');
|
||||
$result = QuotationDetailLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(QuotationDetailLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除报价明细
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:59
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new QuotationDetailValidate())->post()->goCheck('delete');
|
||||
QuotationDetailLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取报价明细详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 17:59
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new QuotationDetailValidate())->goCheck('detail');
|
||||
$result = QuotationDetailLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
0
app/adminapi/controller/setting/CustomerServiceController.php
Normal file → Executable file
0
app/adminapi/controller/setting/CustomerServiceController.php
Normal file → Executable file
0
app/adminapi/controller/setting/StorageController.php
Normal file → Executable file
0
app/adminapi/controller/setting/StorageController.php
Normal file → Executable file
0
app/adminapi/controller/setting/dict/DictDataController.php
Normal file → Executable file
0
app/adminapi/controller/setting/dict/DictDataController.php
Normal file → Executable file
0
app/adminapi/controller/setting/dict/DictTypeController.php
Normal file → Executable file
0
app/adminapi/controller/setting/dict/DictTypeController.php
Normal file → Executable file
0
app/adminapi/controller/setting/system/CacheController.php
Normal file → Executable file
0
app/adminapi/controller/setting/system/CacheController.php
Normal file → Executable file
0
app/adminapi/controller/setting/system/LogController.php
Normal file → Executable file
0
app/adminapi/controller/setting/system/LogController.php
Normal file → Executable file
0
app/adminapi/controller/setting/system/SystemController.php
Normal file → Executable file
0
app/adminapi/controller/setting/system/SystemController.php
Normal file → Executable file
0
app/adminapi/controller/setting/user/UserController.php
Normal file → Executable file
0
app/adminapi/controller/setting/user/UserController.php
Normal file → Executable file
0
app/adminapi/controller/setting/web/WebSettingController.php
Normal file → Executable file
0
app/adminapi/controller/setting/web/WebSettingController.php
Normal file → Executable file
0
app/adminapi/controller/tools/GeneratorController.php
Normal file → Executable file
0
app/adminapi/controller/tools/GeneratorController.php
Normal file → Executable file
0
app/adminapi/controller/user/UserController.php
Normal file → Executable file
0
app/adminapi/controller/user/UserController.php
Normal file → Executable file
0
app/adminapi/event.php
Normal file → Executable file
0
app/adminapi/event.php
Normal file → Executable file
0
app/adminapi/http/middleware/AuthMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/AuthMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/CheckDemoMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/CheckDemoMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/EncryDemoDataMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/EncryDemoDataMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/InitMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/InitMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/LoginMiddleware.php
Normal file → Executable file
0
app/adminapi/http/middleware/LoginMiddleware.php
Normal file → Executable file
3
app/adminapi/listener/OperationLog.php
Normal file → Executable file
3
app/adminapi/listener/OperationLog.php
Normal file → Executable file
@ -20,7 +20,8 @@ class OperationLog
|
||||
public function handle($response)
|
||||
{
|
||||
$request = request();
|
||||
|
||||
return;
|
||||
|
||||
//需要登录的接口,无效访问时不记录
|
||||
if (!$request->controllerObject->isNotNeedLogin() && empty($request->adminInfo)) {
|
||||
return;
|
||||
|
0
app/adminapi/lists/BaseAdminDataLists.php
Normal file → Executable file
0
app/adminapi/lists/BaseAdminDataLists.php
Normal file → Executable file
0
app/adminapi/lists/article/ArticleCateLists.php
Normal file → Executable file
0
app/adminapi/lists/article/ArticleCateLists.php
Normal file → Executable file
0
app/adminapi/lists/article/ArticleLists.php
Normal file → Executable file
0
app/adminapi/lists/article/ArticleLists.php
Normal file → Executable file
13
app/adminapi/lists/auth/AdminLists.php
Normal file → Executable file
13
app/adminapi/lists/auth/AdminLists.php
Normal file → Executable file
@ -24,6 +24,7 @@ use app\common\model\auth\AdminRole;
|
||||
use app\common\model\auth\SystemRole;
|
||||
use app\common\model\dept\Dept;
|
||||
use app\common\model\dept\Jobs;
|
||||
use app\common\model\dept\Orgs;
|
||||
|
||||
/**
|
||||
* 管理员列表
|
||||
@ -143,12 +144,13 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
->where($this->queryWhere())
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order($this->sortOrder)
|
||||
->append(['role_id', 'dept_id', 'jobs_id', 'disable_desc'])
|
||||
->append(['role_id', 'org_id', 'dept_id', 'jobs_id', 'disable_desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
|
||||
// 角色数组('角色id'=>'角色名称')
|
||||
$roleLists = SystemRole::column('name', 'id');
|
||||
// 组织列表
|
||||
$orgLists = Orgs::column('name', 'id');
|
||||
// 部门列表
|
||||
$deptLists = Dept::column('name', 'id');
|
||||
// 岗位列表
|
||||
@ -165,6 +167,12 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
$roleName .= '/';
|
||||
}
|
||||
}
|
||||
|
||||
$orgName = '';
|
||||
foreach ($v['org_id'] as $orgId) {
|
||||
$orgName .= $orgLists[$orgId] ?? '';
|
||||
$orgName .= '/';
|
||||
}
|
||||
|
||||
$deptName = '';
|
||||
foreach ($v['dept_id'] as $deptId) {
|
||||
@ -179,6 +187,7 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
}
|
||||
|
||||
$adminLists[$k]['role_name'] = trim($roleName, '/');
|
||||
$adminLists[$k]['orgName'] = trim($orgName, '/');
|
||||
$adminLists[$k]['dept_name'] = trim($deptName, '/');
|
||||
$adminLists[$k]['jobs_name'] = trim($jobsName, '/');
|
||||
}
|
||||
|
0
app/adminapi/lists/auth/MenuLists.php
Normal file → Executable file
0
app/adminapi/lists/auth/MenuLists.php
Normal file → Executable file
0
app/adminapi/lists/auth/RoleLists.php
Normal file → Executable file
0
app/adminapi/lists/auth/RoleLists.php
Normal file → Executable file
77
app/adminapi/lists/bid/BidBiddingDecisionLists.php
Normal file
77
app/adminapi/lists/bid/BidBiddingDecisionLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidBiddingDecision;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 投标决策列表
|
||||
* Class BidBiddingDecisionLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidBiddingDecisionLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['project_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标决策列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidBiddingDecision::where($this->searchWhere)
|
||||
->field(['id', 'project_id', 'project_estimation', 'bidding_project_fund_source', 'bidding_time', 'buy_bid_document_date', 'bid_type', 'competitor', 'is_margin', 'margin_amount', 'bid_opening_date', 'margin_amount_return_date', 'is_internal_resources', 'project_assurance'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标决策数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:14
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidBiddingDecision::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/bid/BidBuyBiddingDocumentLists.php
Normal file
77
app/adminapi/lists/bid/BidBuyBiddingDocumentLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidBuyBiddingDocument;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 购买标书列表
|
||||
* Class BidBuyBiddingDocumentLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidBuyBiddingDocumentLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['project_id', 'bid_document_no', 'invite_tenders_company_name', 'bid_company_name'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取购买标书列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidBuyBiddingDocument::where($this->searchWhere)
|
||||
->field(['id', 'project_id', 'bid_document_no', 'invite_tenders_company_name', 'bid_company_name', 'buyer', 'amount', 'project_fund_source', 'bid_date', 'buy_date', 'invite_tenders_type', 'bid_address', 'is_margin', 'margin_amount', 'bid_project_overview', 'project_desc', 'annex'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取购买标书数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/27 18:22
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidBuyBiddingDocument::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/bid/BidDocumentExaminationDetailLists.php
Normal file
77
app/adminapi/lists/bid/BidDocumentExaminationDetailLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidDocumentExaminationDetail;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 标书审查-报价明细列表
|
||||
* Class BidDocumentExaminationDetailLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidDocumentExaminationDetailLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['bid_document_examination_id', 'product_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查-报价明细列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidDocumentExaminationDetail::where($this->searchWhere)
|
||||
->field(['id', 'bid_document_examination_id', 'product_id', 'product_num', 'cost_unit_price', 'amount', 'rate', 'unit_price', 'total_amount', 'create_user'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查-报价明细数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:59
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidDocumentExaminationDetail::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/bid/BidDocumentExaminationLists.php
Normal file
77
app/adminapi/lists/bid/BidDocumentExaminationLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidDocumentExamination;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 标书审查列表
|
||||
* Class BidDocumentExaminationLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidDocumentExaminationLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['buy_bidding_document_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidDocumentExamination::where($this->searchWhere)
|
||||
->field(['id', 'approve_id', 'buy_bidding_document_id', 'is_need_deposit', 'bid_opening_date', 'deposit_refund_time', 'bidding_project_overview', 'project_introduction', 'annex', 'technical_protocol_deviation', 'protocol_deviation_handling_plan', 'technical_review_annex', 'business_review_total_amount', 'tax_rate', 'pay_type', 'pay_rate', 'business_contract_deviation', 'business_contract_deviation_handling_plan', 'business_contract_deviation_annex'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取标书审查数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 09:52
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidDocumentExamination::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/bid/BidResultLists.php
Normal file
77
app/adminapi/lists/bid/BidResultLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\bid;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\bid\BidResult;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 投标结果列表
|
||||
* Class BidResultLists
|
||||
* @package app\adminapi\listsbid
|
||||
*/
|
||||
class BidResultLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['bid_document_examination_id', 'project_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标结果列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return BidResult::where($this->searchWhere)
|
||||
->field(['id', 'bid_document_examination_id', 'project_id', 'is_successful', 'bidder', 'bidder_amount', 'bidder_amount_daxie'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取投标结果数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 14:54
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return BidResult::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
0
app/adminapi/lists/channel/OfficialAccountReplyLists.php
Normal file → Executable file
0
app/adminapi/lists/channel/OfficialAccountReplyLists.php
Normal file → Executable file
77
app/adminapi/lists/contract/ContractLists.php
Normal file
77
app/adminapi/lists/contract/ContractLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\contract;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\contract\Contract;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 项目合同列表
|
||||
* Class ContractLists
|
||||
* @package app\adminapi\listscontract
|
||||
*/
|
||||
class ContractLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['contract_name', 'contract_type'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目合同列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Contract::where($this->searchWhere)
|
||||
->field(['approve_id', 'customer_id', 'buy_bidding_document_id', 'contract_name', 'contract_code', 'contract_type', 'contract_pricing_method', 'party_a', 'party_b', 'amount', 'business_director', 'contract_status', 'expire', 'contract_date'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['approve_id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取项目合同数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/02 17:19
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Contract::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/contract/ContractNegotiationLists.php
Normal file
77
app/adminapi/lists/contract/ContractNegotiationLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\contract;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\contract\ContractNegotiation;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 合同洽商列表
|
||||
* Class ContractNegotiationLists
|
||||
* @package app\adminapi\listscontract
|
||||
*/
|
||||
class ContractNegotiationLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['contract_id', 'negotiation_name'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取合同洽商列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return ContractNegotiation::where($this->searchWhere)
|
||||
->field(['id', 'contract_id', 'approve_id', 'negotiation_name', 'negotiation_no', 'negotiation_amount', 'negotiation_type', 'labor_costs', 'material_costs', 'warranty_amount', 'Warranty_expire_date', 'profit', 'profit_rate'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取合同洽商数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 21:26
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return ContractNegotiation::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\contract;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\contract\ProcurementContractDetail;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 采购明细列表
|
||||
* Class ProcurementContractDetailLists
|
||||
* @package app\adminapi\listscontract
|
||||
*/
|
||||
class ProcurementContractDetailLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['procurement_contract_id', 'material_procurement_application_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购明细列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return ProcurementContractDetail::where($this->searchWhere)
|
||||
->field(['id', 'procurement_contract_id', 'material_procurement_application_id', 'num', 'unit_price_including_tax', 'tax_rate', 'amount_excluding_tax', 'amount_including_tax'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购明细数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:30
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return ProcurementContractDetail::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/contract/ProcurementContractLists.php
Normal file
77
app/adminapi/lists/contract/ProcurementContractLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\contract;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\contract\ProcurementContract;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 采购合同列表
|
||||
* Class ProcurementContractLists
|
||||
* @package app\adminapi\listscontract
|
||||
*/
|
||||
class ProcurementContractLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['supplier_id', 'project_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购合同列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return ProcurementContract::where($this->searchWhere)
|
||||
->field(['id', 'supplier_id', 'approve_id', 'project_id', 'contract_no', 'supplier_contract_no', 'contract_type', 'signing_date', 'pay_type', 'account_period', 'amount', 'amount_excluding_tax', 'amount_daxie', 'retention_money_rate', 'retention_money'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取采购合同数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/04 22:08
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return ProcurementContract::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/contract/SubcontractingContractLists.php
Normal file
77
app/adminapi/lists/contract/SubcontractingContractLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\contract;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\contract\SubcontractingContract;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 分包合同列表
|
||||
* Class SubcontractingContractLists
|
||||
* @package app\adminapi\listscontract
|
||||
*/
|
||||
class SubcontractingContractLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['department_id', 'contract_name'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return SubcontractingContract::where($this->searchWhere)
|
||||
->field(['id', 'org_id', 'department_id', 'project_id', 'contract_no', 'contract_name', 'supplier_id', 'contract_type', 'signing_date', 'pay_type', 'account_period', 'amount', 'amount_daxie', 'tax_rate', 'amount_excluding_tax', 'retention_money', 'retention_money_rate'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取分包合同数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/12/09 14:08
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return SubcontractingContract::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
0
app/adminapi/lists/crontab/CrontabLists.php
Normal file → Executable file
0
app/adminapi/lists/crontab/CrontabLists.php
Normal file → Executable file
77
app/adminapi/lists/custom/CustomContactsLists.php
Normal file
77
app/adminapi/lists/custom/CustomContactsLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\custom;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\custom\CustomContacts;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* CustomContacts列表
|
||||
* Class CustomContactsLists
|
||||
* @package app\adminapi\listscustom
|
||||
*/
|
||||
class CustomContactsLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['custom_id', 'name', 'position', 'phone', 'telephone', 'email', 'notes', 'annex'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return CustomContacts::where($this->searchWhere)
|
||||
->field(['id', 'custom_id', 'name', 'position', 'phone', 'telephone', 'email', 'notes', 'annex'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:56
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return CustomContacts::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
84
app/adminapi/lists/custom/CustomLists.php
Normal file
84
app/adminapi/lists/custom/CustomLists.php
Normal file
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\custom;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\custom\Custom;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* Custom列表
|
||||
* Class CustomLists
|
||||
* @package app\adminapi\listscustom
|
||||
*/
|
||||
class CustomLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['name', 'custom_type', 'phone', 'credit_rating', 'province', 'city', 'status'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Custom::where($this->searchWhere)
|
||||
->field(['*'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item, $key){
|
||||
if (!empty($item['other_contacts'])) {
|
||||
$otherContactsArray = json_decode($item['other_contacts'], true);
|
||||
if (is_array($otherContactsArray)) {
|
||||
$item['other_contacts'] = $otherContactsArray;
|
||||
}
|
||||
}
|
||||
return $item;
|
||||
})->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/11 22:10
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Custom::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/custom/CustomerDemandLists.php
Normal file
77
app/adminapi/lists/custom/CustomerDemandLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\custom;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\custom\CustomerDemand;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 客户需求列表
|
||||
* Class CustomerDemandLists
|
||||
* @package app\adminapi\listscustom
|
||||
*/
|
||||
class CustomerDemandLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['org_id', 'department_id', 'project_id', 'theme', 'supplier', 'supplier_contacts', 'importance', 'recording_time', 'demand_content', 'annex'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取客户需求列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return CustomerDemand::where($this->searchWhere)
|
||||
->field(['id', 'org_id', 'department_id', 'project_id', 'theme', 'supplier', 'supplier_contacts', 'importance', 'recording_time', 'demand_content', 'annex'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取客户需求数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:18
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return CustomerDemand::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/custom/CustomerDemandSolutionLists.php
Normal file
77
app/adminapi/lists/custom/CustomerDemandSolutionLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\custom;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\custom\CustomerDemandSolution;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* 解决方案列表
|
||||
* Class CustomerDemandSolutionLists
|
||||
* @package app\adminapi\listscustom
|
||||
*/
|
||||
class CustomerDemandSolutionLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['theme'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取解决方案列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return CustomerDemandSolution::where($this->searchWhere)
|
||||
->field(['id', 'org_id', 'department_id', 'project_id', 'customer_demand_id', 'theme', 'submission_time'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取解决方案数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 21:32
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return CustomerDemandSolution::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/custom_follow/CustomFollowLists.php
Normal file
77
app/adminapi/lists/custom_follow/CustomFollowLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\custom_follow;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\custom_follow\CustomFollow;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* CustomFollow列表
|
||||
* Class CustomFollowLists
|
||||
* @package app\adminapi\listscustom_follow
|
||||
*/
|
||||
class CustomFollowLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['custom_id', 'contacts', 'date', 'types', 'admin_id', 'description', 'annex', 'coordinate', 'next_follow_date', 'status'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return CustomFollow::where($this->searchWhere)
|
||||
->field(['id', 'custom_id', 'contacts', 'date', 'types', 'admin_id', 'description', 'annex', 'coordinate', 'next_follow_date', 'status'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 13:40
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return CustomFollow::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
77
app/adminapi/lists/custom_service/CustomServiceLists.php
Normal file
77
app/adminapi/lists/custom_service/CustomServiceLists.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\custom_service;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\custom_service\CustomService;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* CustomService列表
|
||||
* Class CustomServiceLists
|
||||
* @package app\adminapi\listscustom_service
|
||||
*/
|
||||
class CustomServiceLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['project_id', 'custom_id', 'approve_id', 'contacts', 'phone', 'date', 'classification', 'urgency', 'receiver', 'processed_admin_id', 'name', 'description', 'notes', 'annex'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return CustomService::where($this->searchWhere)
|
||||
->field(['id', 'project_id', 'custom_id', 'approve_id', 'contacts', 'phone', 'date', 'classification', 'urgency', 'receiver', 'processed_admin_id', 'name', 'description', 'notes', 'annex'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/12 14:00
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return CustomService::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
0
app/adminapi/lists/decorate/MenuLists.php
Normal file → Executable file
0
app/adminapi/lists/decorate/MenuLists.php
Normal file → Executable file
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