From d52f64ddb42448838560bd0e8cd6695de75728b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Wed, 13 Mar 2024 13:52:45 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/manage/projectdevice.js | 8 +
src/views/manage/project/index.vue | 6 -
src/views/manage/projectdevice/index.vue | 458 +++++++++++++++----
src/views/manage/servicewaycontent/index.vue | 2 +-
4 files changed, 383 insertions(+), 91 deletions(-)
diff --git a/src/api/manage/projectdevice.js b/src/api/manage/projectdevice.js
index 00706ea..2fc719b 100644
--- a/src/api/manage/projectdevice.js
+++ b/src/api/manage/projectdevice.js
@@ -8,6 +8,14 @@ export function listProjectdevice(query) {
params: query
})
}
+export function patientInfo(query) {
+ return request({
+ url: '/manage/patientInfo/list',
+ method: 'get',
+ params: query
+ })
+}
+
// 查询检测项目设备详细
export function getProjectdevice(id) {
diff --git a/src/views/manage/project/index.vue b/src/views/manage/project/index.vue
index 07dbdc9..13efdb8 100644
--- a/src/views/manage/project/index.vue
+++ b/src/views/manage/project/index.vue
@@ -617,16 +617,10 @@ export default {
this.totaldepartment = response.total;
this.loading = false;
});
- // this.informationqueryParams.page = 1;
},
// 点击分组
clickinnerVisible() {
this.innerVisibleshow = true;
- if (this.itemname) {
- this.informationqueryParams.departmentId = this.itemname;
- } else {
- this.informationqueryParams.departmentId = null;
- }
this.informationInfoinfo();
},
diff --git a/src/views/manage/projectdevice/index.vue b/src/views/manage/projectdevice/index.vue
index bd06a74..74130c7 100644
--- a/src/views/manage/projectdevice/index.vue
+++ b/src/views/manage/projectdevice/index.vue
@@ -1,6 +1,13 @@
-
+
+
+
+
+
+
-
-
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -96,7 +119,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['manage:projectdevice:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+
+
-
+
-
+
-
+
+
+
- {{ scope.row.deviceType=="GLUCOSE_METER" ?"血糖仪" :""}}
- {{ scope.row.deviceType=="BLOOD_PRESSURE_DEVICE" ?"血压计" :""}}
+ {{ scope.row.deviceType == "GLUCOSE_METER" ? "血糖仪" : "" }}
+ {{ scope.row.deviceType == "BLOOD_PRESSURE" ? "血压仪" : "" }}
+ {{ scope.row.deviceType == "ELECTROCARDIOGRAPH" ? "心电仪" : "" }}
-
+
-
-
-
+
+
+
- {{ parseTime(scope.row.deviceBindTime, '{y}-{m}-{d}') }}
+ {{ parseTime(scope.row.deviceBindTime, "{y}-{m}-{d}") }}
-
+
+
-
+
修改
+ >修改
删除
+ >解绑
-
+
-
-
-
-
-
-
+
+
+
+ {{ form.patientName }}
+ {{ form.patientName }}
-
+
-
+
-
-
+
+
+
+
+
-
-
+
+ placeholder="请选择设备绑定时间"
+ >
-
-
- -->
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.sex == "FEMALE" ? "女" : "" }}
+ {{ scope.row.sex == "MALE" ? "男" : "" }}
+
+
+
+
+ patientPhone
+
+
+
diff --git a/src/views/manage/servicewaycontent/index.vue b/src/views/manage/servicewaycontent/index.vue
index 2b081d9..5ed2ebe 100644
--- a/src/views/manage/servicewaycontent/index.vue
+++ b/src/views/manage/servicewaycontent/index.vue
@@ -395,7 +395,7 @@
v-model="form.serviceSort"
controls-position="right"
:min="0"
- style="width: 250px;"
+ style="width: 250px"
/>
From f44374410462b5d13b558865ad461ab923477ee9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Wed, 13 Mar 2024 17:12:39 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/manage/project/index.vue | 37 ++++++++
src/views/manage/projectresult/index.vue | 109 ++++++++++++++++-------
2 files changed, 116 insertions(+), 30 deletions(-)
diff --git a/src/views/manage/project/index.vue b/src/views/manage/project/index.vue
index 13efdb8..92b99bf 100644
--- a/src/views/manage/project/index.vue
+++ b/src/views/manage/project/index.vue
@@ -356,12 +356,14 @@
@@ -585,6 +587,41 @@ export default {
this.info();
},
methods: {
+ checkPricemax() {
+ let checkPlan = "" + this.form.maxValue;
+ checkPlan = checkPlan
+ .replace(/[^\d.]/g, "") // 清除“数字”和“.”以外的字符
+ .replace(/\.{2,}/g, ".") // 只保留第一个. 清除多余的
+ .replace(/^\./g, "") // 保证第一个为数字而不是.
+ .replace(".", "$#$")
+ .replace(/\./g, "")
+ .replace("$#$", ".");
+ if (checkPlan.indexOf(".") < 0 && checkPlan !== "") {
+ // 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
+ checkPlan = parseFloat(checkPlan) + "";
+ } else if (checkPlan.indexOf(".") >= 0) {
+ checkPlan = checkPlan.replace(/^()*(\d+)\.(\d\d).*$/, "$1$2.$3"); // 只能输入两个小数
+ }
+ this.form.maxValue = checkPlan;
+ },
+ /**只能输入数字且有小数点最多保留两位*/
+ checkPrice() {
+ let checkPlan = "" + this.form.minValue;
+ checkPlan = checkPlan
+ .replace(/[^\d.]/g, "") // 清除“数字”和“.”以外的字符
+ .replace(/\.{2,}/g, ".") // 只保留第一个. 清除多余的
+ .replace(/^\./g, "") // 保证第一个为数字而不是.
+ .replace(".", "$#$")
+ .replace(/\./g, "")
+ .replace("$#$", ".");
+ if (checkPlan.indexOf(".") < 0 && checkPlan !== "") {
+ // 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
+ checkPlan = parseFloat(checkPlan) + "";
+ } else if (checkPlan.indexOf(".") >= 0) {
+ checkPlan = checkPlan.replace(/^()*(\d+)\.(\d\d).*$/, "$1$2.$3"); // 只能输入两个小数
+ }
+ this.form.minValue = checkPlan;
+ },
info() {
var dictType = "project_judge_mode";
getAgencytype(dictType).then((res) => {
diff --git a/src/views/manage/projectresult/index.vue b/src/views/manage/projectresult/index.vue
index ca6f9a6..0ddeb71 100644
--- a/src/views/manage/projectresult/index.vue
+++ b/src/views/manage/projectresult/index.vue
@@ -373,10 +373,10 @@
-
+
-
+
@@ -430,15 +430,21 @@