更新
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\adminapi\controller\setting;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\logic\setting\DesktopWorkstationLogic;
|
||||
use app\adminapi\validate\setting\DesktopWorkstationValidate;
|
||||
|
||||
/**
|
||||
* 医生工作站桌面端升级
|
||||
*/
|
||||
class DesktopWorkstationController extends BaseAdminController
|
||||
{
|
||||
public array $notNeedLogin = ['check'];
|
||||
|
||||
/**
|
||||
* @notes 读取升级策略与安装包
|
||||
*/
|
||||
public function getConfig()
|
||||
{
|
||||
return $this->data(DesktopWorkstationLogic::getConfig());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 保存升级策略与安装包
|
||||
*/
|
||||
public function setConfig()
|
||||
{
|
||||
$params = (new DesktopWorkstationValidate())->post()->goCheck();
|
||||
DesktopWorkstationLogic::setConfig($params);
|
||||
return $this->success('设置成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 桌面端检测更新(免登录)
|
||||
*/
|
||||
public function check()
|
||||
{
|
||||
$result = DesktopWorkstationLogic::check($this->request->get());
|
||||
return $this->data($result);
|
||||
}
|
||||
}
|
||||
@@ -843,7 +843,7 @@ class DiagnosisController extends BaseAdminController
|
||||
* @notes 搜索患者(用于创建订单等场景)
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public function searchPatient()
|
||||
public function searchPatient()
|
||||
{
|
||||
$keyword = $this->request->get('keyword', '');
|
||||
$page_no = $this->request->get('page_no', 1);
|
||||
@@ -865,15 +865,32 @@ class DiagnosisController extends BaseAdminController
|
||||
$count = \app\common\model\tcm\Diagnosis::where('patient_name|phone|id_card', 'like', '%' . $keyword . '%')
|
||||
->count();
|
||||
|
||||
return $this->success('', [
|
||||
'lists' => $lists,
|
||||
'count' => $count,
|
||||
'page_no' => $page_no,
|
||||
'page_size' => $page_size
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
return $this->success('', [
|
||||
'lists' => $lists,
|
||||
'count' => $count,
|
||||
'page_no' => $page_no,
|
||||
'page_size' => $page_size
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes AI 助手患者诊单选择,仅返回当前数据域内的脱敏最小 DTO
|
||||
*/
|
||||
public function aiPatientOptions()
|
||||
{
|
||||
$result = DiagnosisAiLogic::patientOptions(
|
||||
$this->request->get(),
|
||||
(int) $this->adminId,
|
||||
$this->adminInfo
|
||||
);
|
||||
if ($result === null) {
|
||||
return $this->fail(DiagnosisAiLogic::getError());
|
||||
}
|
||||
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 读取已保存的双模型诊单 AI 报告,不触发上游调用
|
||||
*/
|
||||
public function aiReports()
|
||||
@@ -973,6 +990,12 @@ class DiagnosisController extends BaseAdminController
|
||||
$emit('start', [
|
||||
'task' => (string) ($prepared['task'] ?? ''),
|
||||
'model_key' => (string) ($prepared['profile'] ?? ''),
|
||||
'diagnosis_id' => (int) ($prepared['diagnosis_id'] ?? 0),
|
||||
'context_scope' => (string) ($prepared['context_scope'] ?? ''),
|
||||
'context_version' => (string) ($prepared['context_version'] ?? ''),
|
||||
'source_summary' => is_array($prepared['source_summary'] ?? null)
|
||||
? $prepared['source_summary']
|
||||
: [],
|
||||
'message' => '已连接,正在生成…',
|
||||
]);
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class PrescriptionController extends BaseAdminController
|
||||
{
|
||||
$params = (new PrescriptionValidate())->post()->goCheck('add');
|
||||
$params['creator_id'] = $this->adminId;
|
||||
$id = PrescriptionLogic::add($params, $this->adminId);
|
||||
$id = PrescriptionLogic::add($params, $this->adminId, $this->adminInfo);
|
||||
if ($id === null) {
|
||||
return $this->fail(PrescriptionLogic::getError());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user