|
@ -323,6 +323,12 @@ |
|
|
width="780px" |
|
|
width="780px" |
|
|
append-to-body |
|
|
append-to-body |
|
|
> |
|
|
> |
|
|
|
|
|
<template slot="title"> |
|
|
|
|
|
<div class="popup-title"> |
|
|
|
|
|
<p>{{ title }}</p> |
|
|
|
|
|
<span @click="getWeightHeight"> 同步身高体重 </span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
<el-form |
|
|
<el-form |
|
|
class="formStep" |
|
|
class="formStep" |
|
|
ref="form" |
|
|
ref="form" |
|
@ -494,6 +500,7 @@ import { |
|
|
patientAdd, |
|
|
patientAdd, |
|
|
patientUpd, |
|
|
patientUpd, |
|
|
patientDel, |
|
|
patientDel, |
|
|
|
|
|
weightHeight, |
|
|
} from "@/api/patientFile"; |
|
|
} from "@/api/patientFile"; |
|
|
export default { |
|
|
export default { |
|
|
name: "Notice", |
|
|
name: "Notice", |
|
@ -745,6 +752,14 @@ export default { |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getWeightHeight() { |
|
|
|
|
|
weightHeight().then((res) => { |
|
|
|
|
|
console.log("res", res); |
|
|
|
|
|
this.form.height = res.data.height; |
|
|
|
|
|
this.form.weight = res.data.weight; |
|
|
|
|
|
this.$modal.msgSuccess("同步成功"); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
calculateBMI(WEIGHT, HEIGHT) { |
|
|
calculateBMI(WEIGHT, HEIGHT) { |
|
|
if (WEIGHT && HEIGHT) { |
|
|
if (WEIGHT && HEIGHT) { |
|
|
const weight = parseFloat(WEIGHT); |
|
|
const weight = parseFloat(WEIGHT); |
|
@ -944,6 +959,24 @@ export default { |
|
|
</script> |
|
|
</script> |
|
|
<style scoped src="@/assets/styles/common.css"></style> |
|
|
<style scoped src="@/assets/styles/common.css"></style> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
.popup-title { |
|
|
|
|
|
font-size: 18px; |
|
|
|
|
|
line-height: 20px; |
|
|
|
|
|
color: #333; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
padding-right: 20px; |
|
|
|
|
|
} |
|
|
|
|
|
.popup-title p { |
|
|
|
|
|
margin: 0 !important; |
|
|
|
|
|
} |
|
|
|
|
|
.popup-title span { |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
color: blue; |
|
|
|
|
|
border-bottom: 1px solid blue; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
margin-left: 10px; |
|
|
|
|
|
} |
|
|
.form-item-age { |
|
|
.form-item-age { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|