From 08881d6b6412822d5035f63a0775ca1f213c8668 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 10:17:22 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/profile/index.vue | 145 +++++++++++++++++++++++++-----------------------
1 files changed, 75 insertions(+), 70 deletions(-)
diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index e84c7d1..08dab86 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -111,7 +111,7 @@
ref="userform"
:model="userform"
:rules="rules"
- label-width="100px"
+ label-width="150px"
>
<el-row :gutter="20">
<el-col :span="12">
@@ -122,6 +122,8 @@
maxlength="30"
></el-input> </el-form-item
></el-col>
+ </el-row>
+ <el-row >
<el-col :span="12"
><el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
<el-input
@@ -129,6 +131,14 @@
placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
maxlength="30"
/> </el-form-item
+ ></el-col>
+ <el-col :span="12">
+ <el-form-item label="浜插睘鑱旂郴鏂瑰紡" prop="name">
+ <el-input
+ v-model="userform.telcodewx"
+ placeholder="璇疯緭鍏ュ鍚�"
+ maxlength="30"
+ ></el-input> </el-form-item
></el-col>
</el-row>
<el-row :gutter="20">
@@ -198,7 +208,7 @@
</el-form>
</div>
</div>
- <div class="top-message">
+ <!-- <div class="top-message">
<div class="headline">鐥呭彶</div>
<div class="detailed">
<el-form :model="form" label-width="100px">
@@ -306,7 +316,7 @@
</el-row>
</el-form>
</div>
- </div>
+ </div> -->
<!-- 鑱旂郴鐢佃瘽 -->
<div class="bottom-message">
<div class="headline">
@@ -321,7 +331,7 @@
>
<el-table-column prop="id" label="搴忓彿" width="180">
</el-table-column>
- <el-table-column prop="contactname" label="濮撳悕" width="180">
+ <el-table-column prop="contactname" label="濮撳悕" width="100">
</el-table-column>
<el-table-column prop="contactway" label="鑱旂郴鏂瑰紡" width="180">
</el-table-column>
@@ -363,23 +373,24 @@
<el-table-column
label="灏辫瘖鏃堕棿"
align="center"
- key="createTime"
- prop="createTime"
+ key="admitdate"
+ prop="admitdate"
width="160"
>
<template slot-scope="scope">
- <span>{{ formatTime(scope.row.createTime) }}</span>
+ <span>{{ formatTime(scope.row.admitdate) }}</span>
</template>
</el-table-column>
<el-table-column
- label="闂ㄨ瘖鍙�"
+ label="鐥呮鍙�"
align="center"
- key="patid"
- prop="patid"
+ key="outhospno"
+ prop="outhospno"
/>
<el-table-column
label="濮撳悕"
+ width="100"
align="center"
key="patname"
prop="patname"
@@ -451,12 +462,13 @@
<el-table-column
label="浣忛櫌鍙�"
align="center"
- key="patno"
- prop="patno"
+ key="inhospno"
+ prop="inhospno"
width="180"
/>
<el-table-column
label="濮撳悕"
+ width="100"
align="center"
key="patname"
prop="patname"
@@ -519,7 +531,6 @@
prop="bedNo"
width="120"
/>
-
</el-table>
</div>
<!-- 鍑洪櫌 -->
@@ -528,12 +539,13 @@
<el-table-column
label="浣忛櫌鍙�"
align="center"
- key="patno"
- prop="patno"
+ key="inhospno"
+ prop="inhospno"
width="120"
/>
<el-table-column
label="濮撳悕"
+ width="100"
align="center"
key="patname"
prop="patname"
@@ -597,7 +609,6 @@
prop="bedNo"
width="120"
/>
-
</el-table>
</div>
</div>
@@ -618,26 +629,22 @@
border-left: 4px solid rgb(190, 65, 134);
"
>
- <span v-if="item.serviceType==2">鍑洪櫌闅忚</span>
- <span v-if="item.serviceType==1">蹇冪數闅忚</span>
- <span v-if="item.serviceType==3">褰卞儚闅忚</span>
- <span v-if="item.serviceType==4">瀹f暀鍏虫��</span>
+ <span v-if="item.serviceType == 2">鍑洪櫌闅忚</span>
+ <span v-if="item.serviceType == 1">蹇冪數闅忚</span>
+ <span v-if="item.serviceType == 3">褰卞儚闅忚</span>
+ <span v-if="item.serviceType == 4">瀹f暀鍏虫��</span>
</div>
<el-divider></el-divider>
<div style="margin-top: 10px">
- 鏈嶅姟鍚嶇О锛�<span style="color: #2775b6"
- >{{ item.templatename }}</span
- >
+ 鏈嶅姟鍚嶇О锛�<span style="color: #2775b6">{{
+ item.templatename
+ }}</span>
</div>
<div style="margin-top: 10px">
- 鍒涘缓鏃堕棿锛�<span style="color: #2775b6"
- >{{item.createTime}}</span
- >
+ 鍒涘缓鏃堕棿锛�<span style="color: #2775b6">{{ item.createTime }}</span>
</div>
<div style="margin-top: 10px">
- 瀹屾垚鏃堕棿锛�<span style="color: #2775b6"
- >{{ item.finishtime }}</span
- >
+ 瀹屾垚鏃堕棿锛�<span style="color: #2775b6">{{ item.finishtime }}</span>
</div>
<div style="margin-top: 10px">
<el-row :gutter="20">
@@ -647,9 +654,10 @@
>
<el-col :span="12"
>鐥呭尯锛�
- <span style="color: #2775b6">{{ item.leavehospitaldistrictname }}</span></el-col
+ <span style="color: #2775b6">{{
+ item.leavehospitaldistrictname
+ }}</span></el-col
>
-
</el-row>
</div>
@@ -674,15 +682,15 @@
<span style="color: #2775b6">{{ item.drname }}</span></el-col
>
<el-col :span="6"
- >璐d换鎶ゅ+ <span style="color: #2775b6">{{ item.nurseName }}</span></el-col
+ >璐d换鎶ゅ+
+ <span style="color: #2775b6">{{ item.nurseName }}</span></el-col
>
</el-row>
</div>
<div style="margin-top: 10px">
缁撴灉鐘舵�侊細
- <span style="color: #2775b6" v-if="item.excep==0">鏈嶅姟姝e父</span>
- <span style="color: #B55E54" v-if="item.excep==1">寮傚父</span>
-
+ <span style="color: #2775b6" v-if="item.excep == 0">鏈嶅姟姝e父</span>
+ <span style="color: #b55e54" v-if="item.excep == 1">寮傚父</span>
</div>
<!-- <div style="margin-top: 10px">
澶囨敞锛�
@@ -799,7 +807,7 @@
<el-dialog :title="titletb" :visible.sync="AddanumberVisible">
<el-form :model="numberform" label-width="100px">
- <el-form-item label="濮撳悕">
+ <el-form-item label="濮撳悕" width="100">
<el-input v-model="numberform.contactname"></el-input>
</el-form-item>
<el-form-item label="鑱旂郴鐢佃瘽">
@@ -838,10 +846,7 @@
Patientclinic,
} from "@/api/patient/homepage";
-import {
- getsearchrResults,
- getTaskservelist,
-} from "@/api/AiCentre/index";
+import { getsearchrResults, getTaskservelist } from "@/api/AiCentre/index";
import { listPatouthosp } from "@/api/smartor/patouthosp";
import { listpatient } from "@/api/patient/record";
@@ -872,29 +877,29 @@
record: [
{
name: "瀹f暀浠诲姟",
- serviceType:'4',
- templatename:'绠¢ゲ瀹f暀涓�鏈�',
- createTime:'2024-11-10',
- finishtime:'2024-11-12',
- createBy:'鐜嬫斂',
- drname:'鍒樻槑',
- nurseName:'寮犳窇鐞�',
- excep:'0',
- deptname:'鍛煎惛绉�',
- leavehospitaldistrictname:'浜旂梾鍖�',
+ serviceType: "4",
+ templatename: "绠¢ゲ瀹f暀涓�鏈�",
+ createTime: "2024-11-10",
+ finishtime: "2024-11-12",
+ createBy: "鐜嬫斂",
+ drname: "鍒樻槑",
+ nurseName: "寮犳窇鐞�",
+ excep: "0",
+ deptname: "鍛煎惛绉�",
+ leavehospitaldistrictname: "浜旂梾鍖�",
},
{
name: "闅忚浠诲姟",
- serviceType:'2',
- templatename:'蹇冭绠¢殢璁夸竴鏈�',
- createTime:'2024-11-11',
- finishtime:'2024-11-14',
- createBy:'绔犵▼',
- drname:'鍒樻槑',
- nurseName:'鏉庝附',
- excep:'0',
- deptname:'鍛煎惛绉�',
- leavehospitaldistrictname:'浜旂梾鍖�',
+ serviceType: "2",
+ templatename: "蹇冭绠¢殢璁夸竴鏈�",
+ createTime: "2024-11-11",
+ finishtime: "2024-11-14",
+ createBy: "绔犵▼",
+ drname: "鍒樻槑",
+ nurseName: "鏉庝附",
+ excep: "0",
+ deptname: "鍛煎惛绉�",
+ leavehospitaldistrictname: "浜旂梾鍖�",
},
// {
// name: "闂嵎璋冩煡",
@@ -1049,8 +1054,8 @@
// 闂ㄨ瘖璁板綍
listPatouthosp({ patid: this.id }).then((response) => {
if (response.code == 200) {
- // this.serviceData = response.rows;
- this.serviceData = [];
+ this.serviceData = response.rows;
+ // this.serviceData = [];
}
});
} else if (type == 1) {
@@ -1064,7 +1069,7 @@
if (response.code == 200) {
this.serviceDatacy = response.rows;
console.log(this.serviceDatacy);
- this.$forceUpdate()
+ this.$forceUpdate();
}
});
}
@@ -1072,6 +1077,9 @@
getcontactlist() {
listcontactinformation({ patid: this.id }).then((response) => {
this.tableData = response.rows;
+ if (this.tableData.length) {
+ this.userform.telcodewx = this.tableData[0].contactway;
+ }
});
},
processElement(element) {
@@ -1089,7 +1097,7 @@
this.userform = response.rows[0];
// this.dynamicTags = response.rows[0].tagList;
this.dynamicTags = response.rows[0].tagList.map(this.processElement);
- console.log(this.dynamicTags);
+ this.getcontactlist();
});
// 鐥呭彶淇℃伅
getmedicalhistory({ pid: this.id }).then((res) => {
@@ -1098,7 +1106,6 @@
}
});
// 鑱旂郴淇℃伅
- this.getcontactlist();
},
// 淇濆瓨鎮h�呮。妗�
savefile() {
@@ -1226,8 +1233,8 @@
handleClick(tab, event) {
if (tab.index == "1") {
this.getList(1);
- }else if (tab.index == "2") {
-this.handleClickfw();
+ } else if (tab.index == "2") {
+ this.handleClickfw();
}
},
handleClickson(tab, event) {
@@ -1235,11 +1242,9 @@
this.getList(tab.index);
},
// 鏌ヨ鏈嶅姟璁板綍
- handleClickfw(){
+ handleClickfw() {
getTaskservelist({
patid: this.id,
- deptOrDistrict:2,
-
}).then((res) => {
if (res.code == 200) {
this.record = res.rows[0].serviceSubtaskList;
--
Gitblit v1.9.3