优化报告查看,增加提示。

main
yanzai 2 years ago
parent 21fc605200
commit f6859c86c7

@ -529,6 +529,12 @@ class ReportController extends Controller
{ {
$id = $request->post('id'); $id = $request->post('id');
$res = self::get_report($id); $res = self::get_report($id);
// return Yo::echo([
// 'message' => "res",
// 'code' => 2001,
// 'data' => $res
// ]);
$conclusion = [ $conclusion = [
'datetime' => '', 'datetime' => '',
'doctor' => '', 'doctor' => '',
@ -545,13 +551,10 @@ class ReportController extends Controller
]; ];
if (count($res) != 0) { if (count($res) != 0) {
if($res[0]['体检状态'] != '报告已出') Yo::error_echo(200090);
$info = self::orderReport($res[0]); $info = self::orderReport($res[0]);
// Yo::error_exit([
// 'message' => "res",
// 'code' => 2001,
// 'data' => $res
// ]);
$list['info']['id'] = $info['体检号']; $list['info']['id'] = $info['体检号'];
$list['info']['password'] = $info['查询密码']; $list['info']['password'] = $info['查询密码'];

@ -137,4 +137,6 @@ return [
200087 => '请输入分账名称', 200087 => '请输入分账名称',
200088 => '分账名称长度在1-50位字符之间', 200088 => '分账名称长度在1-50位字符之间',
200089 => '分账类型不支持追回', 200089 => '分账类型不支持追回',
200090 => '报告未出',
]; ];

@ -1,7 +1,7 @@
let url_ = "https://health.sixinyun.com"; let url_ = "https://health.sixinyun.com";
let report_url_ = "https://health.sixinyun.com"; let report_url_ = "https://health.sixinyun.com";
let h5_url_ = "https://health.sixinyun.com"; let h5_url_ = "https://health.sixinyun.com";
const dev = 0; const dev = 1;
if (dev === 1) { if (dev === 1) {
url_ = "http://sixintijian"; url_ = "http://sixintijian";
report_url_ = "http://192.168.31.106:5173"; report_url_ = "http://192.168.31.106:5173";

@ -5,7 +5,7 @@ import $api from './api.js'
let url_ = "https://health.sixinyun.com"; let url_ = "https://health.sixinyun.com";
let chat_url = "https://service-platform.sixinyun.com" let chat_url = "https://service-platform.sixinyun.com"
let service_platform_appid="qhd130302000100" //岚科服务平台唯一appid let service_platform_appid="qhd130302000100" //岚科服务平台唯一appid
const dev =0 const dev =1
if (dev === 1) { if (dev === 1) {
url_ = "http://sixintijian" url_ = "http://sixintijian"
chat_url = "http://192.168.31.106:5173" chat_url = "http://192.168.31.106:5173"

@ -1,7 +1,7 @@
let url_ = "https://health.cjy.net.cn"; let url_ = "https://health.sixinyun.com";
const dev = 0 const dev = 0
if (dev === 1) { if (dev === 1) {
url_ = "http://192.168.31.106:8000" url_ = "http://sixintijian"
} }
let url_array = {}; let url_array = {};
url_array['ReportDown'] = `${url_}/api/Mp/Down/pdf`; url_array['ReportDown'] = `${url_}/api/Mp/Down/pdf`;

@ -1,10 +1,10 @@
import { import {
$post $post
} from '@/lu/axios.js' } from '@/lu/axios.js'
let url_ = "https://health.cjy.net.cn"; let url_ = "https://health.sixinyun.com";
const dev = 0 const dev = 0
if (dev === 1) { if (dev === 1) {
url_ = "http://192.168.31.106:8000" url_ = "http://sixintijian"
} }
export const HospitalExtraReportStatusAction = async (data) => await $post({ export const HospitalExtraReportStatusAction = async (data) => await $post({
url: 'HospitalExtraReportStatus', url: 'HospitalExtraReportStatus',

@ -28,9 +28,13 @@
}, },
}); });
const ReportList = async () => { const ReportList = async () => {
uni.showLoading({
title: '加载中'
});
const response = await ReportListAction({ const response = await ReportListAction({
id_number: $props.id_number id_number: $props.id_number
}) })
uni.hideLoading();
$response(response, () => { $response(response, () => {
report_list.value = response.data.list report_list.value = response.data.list
}) })

@ -40,9 +40,13 @@
}) })
} }
const ReportInfo = async () => { const ReportInfo = async () => {
uni.showLoading({
title: '加载中'
});
const response = await ReportInfoAction({ const response = await ReportInfoAction({
id: $props.id id: $props.id
}) })
uni.hideLoading();
$response(response, () => { $response(response, () => {
report_content.value = { report_content.value = {
content: response.data.content, content: response.data.content,

Loading…
Cancel
Save