修复病史数据

This commit is contained in:
huangdeliang 2021-03-13 19:25:44 +08:00
parent cac31face0
commit 3056bc2b84
5 changed files with 24 additions and 9 deletions

View File

@ -31,7 +31,7 @@
left join sys_user su_nutritionist on su_nutritionist.user_id = srt.nutritionist_id and su_nutritionist.del_flag = 0 left join sys_user su_nutritionist on su_nutritionist.user_id = srt.nutritionist_id and su_nutritionist.del_flag = 0
left join sys_user su_nutritionist_assis on su_nutritionist_assis.user_id = srt.nutri_assis_id and su_nutritionist_assis.del_flag = 0 left join sys_user su_nutritionist_assis on su_nutritionist_assis.user_id = srt.nutri_assis_id and su_nutritionist_assis.del_flag = 0
where srt.del_flag = 0 where srt.del_flag = 0
<if test="name != null and name != ''">and srt.name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''">and srt.name like concat('%', #{name}, '%') or srt.remark like concat('%', #{name}, '%')</if>
<if test="nutriAssisId != null ">and srt.nutri_assis_id = #{nutriAssisId}</if> <if test="nutriAssisId != null ">and srt.nutri_assis_id = #{nutriAssisId}</if>
<if test="nutritionistId != null ">and srt.nutritionist_id = #{nutritionistId}</if> <if test="nutritionistId != null ">and srt.nutritionist_id = #{nutritionistId}</if>
<if test="reviewStatus != null ">and srp.review_status = #{reviewStatus}</if> <if test="reviewStatus != null ">and srp.review_status = #{reviewStatus}</if>

View File

@ -200,7 +200,7 @@ export const familyIllnessHistoryArray = [
{ name: "冠心病", value: "3" }, { name: "冠心病", value: "3" },
{ name: "外周血管病", value: "4" }, { name: "外周血管病", value: "4" },
{ name: "心力衰竭", value: "5" }, { name: "心力衰竭", value: "5" },
{ name: "冠心病", value: "6" }, { name: "糖尿病", value: "6" },
{ name: "肥胖症", value: "7" }, { name: "肥胖症", value: "7" },
{ name: "慢性肾脏疾病", value: "8" }, { name: "慢性肾脏疾病", value: "8" },
{ name: "骨质疏松", value: "9" }, { name: "骨质疏松", value: "9" },
@ -483,7 +483,9 @@ export function dealHealthy(customerHealthy) {
customerHealthy.basicBMR += "千卡"; customerHealthy.basicBMR += "千卡";
customerHealthy.notSportHeat += "千卡"; customerHealthy.notSportHeat += "千卡";
const lowRecProtein = customerHealthy.tall - 105; const lowRecProtein = customerHealthy.tall - 105;
customerHealthy.recProtein = `${lowRecProtein * 0.8} - ${lowRecProtein * 1.5}`; customerHealthy.recProtein = `${(lowRecProtein * 0.8).toFixed(1)} - ${(
lowRecProtein * 1.5
).toFixed(1)}`;
needAttrName.forEach(name => { needAttrName.forEach(name => {
if (customerHealthy.hasOwnProperty(name)) { if (customerHealthy.hasOwnProperty(name)) {
@ -540,6 +542,15 @@ export function dealHealthy(customerHealthy) {
} }
}); });
if (customerHealthy.hasOwnProperty("physicalSignsId")) {
const signs = customerHealthy.otherPhysicalSigns
? [customerHealthy.otherPhysicalSigns]
: [];
customerHealthy.signList.forEach(obj => {
signs.push(obj.name);
});
customerHealthy.physicalSigns = signs.join(",");
}
if (customerHealthy.hasOwnProperty("tall")) { if (customerHealthy.hasOwnProperty("tall")) {
customerHealthy.tall += "cm"; customerHealthy.tall += "cm";
} }

View File

@ -9,7 +9,7 @@
:step="5" :step="5"
:value="value" :value="value"
@blur="handleOnBlur" @blur="handleOnBlur"
@keydown.enter="handleEnterClick" @keydown.enter.native="handleEnterClick"
/> />
</div> </div>
</template> </template>

View File

@ -7,11 +7,11 @@
<div class="content"> <div class="content">
<!-- 筛选 --> <!-- 筛选 -->
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="模板名称" prop="name"> <el-form-item label="搜索内容" prop="name">
<el-input <el-input
v-model="queryParams.name" v-model="queryParams.name"
placeholder="请输入模板名称" placeholder="请输入模板名称或备注"
@keydown.enter="handleQuery" @keydown.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="营养师" prop="nutritionistId"> <el-form-item label="营养师" prop="nutritionistId">

View File

@ -6,8 +6,12 @@
:inline="true" :inline="true"
v-show="showSearch" v-show="showSearch"
> >
<el-form-item label="模板名称" prop="name"> <el-form-item label="搜索内容" prop="name">
<el-input v-model="queryParams.name" placeholder="请输入模板名称" /> <el-input
v-model="queryParams.name"
placeholder="请输入模板名称或备注"
@keydown.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="营养师" prop="nutritionistId"> <el-form-item label="营养师" prop="nutritionistId">
<el-select <el-select