|
@@ -28,7 +28,7 @@ function renderConfig(config) {
|
|
|
|
|
|
function getTcmMr(mrId, config) {
|
|
|
renderConfig(config.planDetails || []);
|
|
|
- if (!mrId) {
|
|
|
+ if (!mrId) { //没有mrId时不显示推送模块
|
|
|
$(".recipe").hide();
|
|
|
return;
|
|
|
}
|
|
@@ -49,7 +49,7 @@ function getTcmData(param, config) {
|
|
|
const item = config.planDetails.find((it) => it.code === "treatment");
|
|
|
const num = (item || {}).number || 3;
|
|
|
const {tcmDiag, tcmSyndrome} = param;
|
|
|
- if (!tcmDiag) {
|
|
|
+ if (!tcmDiag) { //没有推送入参时不显示推送模块
|
|
|
$(".recipe").hide();
|
|
|
return;
|
|
|
}
|
|
@@ -61,6 +61,10 @@ function getTcmData(param, config) {
|
|
|
get('/lantone/private/zycftj?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome).then((res) => {
|
|
|
//console.log(res)
|
|
|
let data = res.data.data || []
|
|
|
+ if (!data.length) { //没有处方时不显示推送模块
|
|
|
+ $(".recipe").hide();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (res.data.status) {
|
|
|
renderTcm(data, num)
|
|
|
} else {
|