12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- /**
- * Created by Administrator.
- * User: 向往那片天空
- * Date: 2022\5\21 0021
- * Time: 15:08
- * 格言: 抓住中心,宁精勿杂,宁专勿多
- * QQ/微信: 250023777
- * 描述: 无
- */
- namespace app\admin\controller\enterprise;
- use app\admin\controller\AuthController;
- use crmeb\services\UtilService;
- use crmeb\services\{JsonService as Json, JsonService, UtilService as Util};
- use crmeb\traits\CurdControllerTrait;
- class Apply extends AuthController
- {
- use CurdControllerTrait;
- public function index()
- {
- return $this->fetch();
- }
- public function get_apply_list()
- {
- $where = UtilService::getMore([
- ['page', 1],
- ['limit', 20],
- ['audit_status', -1],
- ['apply_user_name', ''],
- ['mer_id', ''],
- ]);
- // return JsonService::fail('找不到记录',$where);
- return app('ApplyLogic')->getPageList($where);
- }
- public function auditPage($id)
- {
- $this->assign('id', $id);
- return $this->fetch('audit');
- }
- public function audit()
- {
- $data = Util::postMore([
- ['id', 0],
- ['audit_status', 0],
- ['text', '']
- ]);
- if (empty($data['id'])) {
- return JsonService::fail('id不能为空');
- }
- if (empty($data['audit_status'])) {
- return JsonService::fail('请选择操作');
- }
- return app('ApplyLogic')->audit($data);
- }
- public function isDel($id)
- {
- return app('ApplyLogic')->delById($id);
- }
- }
|