|
@@ -46,8 +46,8 @@ function getTcmMr(mrId, config) {
|
|
|
|
|
|
//获取处方推荐
|
|
|
function getTcmData(param, config) {
|
|
|
- const item = config.planDetails.find((it) => it.code === "treatment");
|
|
|
- const num = (item || {}).number || 3;
|
|
|
+ const item = config.planDetails.filter((it) => it.code === "treatment");
|
|
|
+ const num = (item[0] || {}).number || 3;
|
|
|
const {tcmDiag, tcmSyndrome} = param;
|
|
|
if (!tcmDiag) { //没有推送入参时不显示推送模块
|
|
|
$(".recipe").hide();
|
|
@@ -59,7 +59,7 @@ function getTcmData(param, config) {
|
|
|
treatUrl = targetUrl + '?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome;
|
|
|
//处方推荐
|
|
|
get('/lantone/private/zycftj?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome).then((res) => {
|
|
|
- //console.log(res)
|
|
|
+ console.log("窗口地址:", treatUrl)
|
|
|
let data = res.data.data || []
|
|
|
if (!data.length) { //没有处方时不显示推送模块
|
|
|
$(".recipe").hide();
|