Browse Source

患者档案添加同步按钮

master^2
1747191978@qq.com 2 months ago
parent
commit
2c659de3b0
  1. 8
      acupuncture-前台/src/api/patientFile.js
  2. 33
      acupuncture-前台/src/views/patientFile/index.vue
  3. BIN
      acupuncture-前台/南妮针灸前台ssl-5.zip
  4. BIN
      acupuncture-前台/南宁针灸前台client-1.zip
  5. BIN
      acupuncture-前台/南宁针灸前台clientssl-1.zip

8
acupuncture-前台/src/api/patientFile.js

@ -32,3 +32,11 @@ export function patientDel(data) {
data: data, data: data,
}); });
} }
// 同步身高体重
export function weightHeight(data) {
return request({
url: "/api/http/getWeightHeight",
method: "post",
data: data,
});
}

33
acupuncture-前台/src/views/patientFile/index.vue

@ -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;

BIN
acupuncture-前台/南宁针灸前台-1.zip → acupuncture-前台/南妮针灸前台ssl-5.zip

Binary file not shown.

BIN
acupuncture-前台/南宁针灸前台client-1.zip

Binary file not shown.

BIN
acupuncture-前台/南宁针灸前台clientssl-1.zip

Binary file not shown.
Loading…
Cancel
Save