From d3c60e18b95b50751f8088fa2d23cd8ff7f173bc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 01 七月 2026 11:05:17 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/index.vue | 170 +++++++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 129 insertions(+), 41 deletions(-)
diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index 25f12ff..88aa5db 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -1,7 +1,7 @@
<template>
<div class="Questionnairemanagement">
<!-- 宸︿晶鏍� -->
- <div class="sidecolumn">
+ <!-- <div class="sidecolumn">
<div class="sidecolumn-top">
<div class="top-wj">鍖婚櫌鎮h��</div>
</div>
@@ -12,13 +12,12 @@
v-model="queryParams.allhosp"
@tab-click="handleClick"
>
- <!-- <el-tab-pane label="鎮h�呭垪琛�" name="0"></el-tab-pane> -->
<el-tab-pane label="鍑哄叆闄㈡偅鑰�" name="1"></el-tab-pane>
<el-tab-pane label="闂ㄨ瘖鎮h��" name="2"></el-tab-pane>
<el-tab-pane label="浣撴鎮h��" name="3"></el-tab-pane>
</el-tabs>
</div>
- </div>
+ </div> -->
<!-- 鍙充晶鏁版嵁 -->
<div class="leftvlue">
@@ -93,7 +92,7 @@
/>
</el-form-item>
- <el-form-item label="闂ㄨ瘖缂栧彿" prop="visitno">
+ <el-form-item label="鎮h�呮。妗堝彿" prop="visitno">
<el-input
v-model="queryParams.visitno"
placeholder="璇疯緭鍏ョ紪鍙�"
@@ -123,15 +122,17 @@
</el-option>
</el-select>
</el-form-item> -->
- <el-form-item label="鎮h�呰寖鍥�" prop="status">
+ <!-- <el-form-item label="鎮h�呰寖鍥�" prop="status">
<el-cascader
v-model="queryParams.scopetype"
placeholder="榛樿鍏ㄩ儴"
:options="sourcetype"
+ filterable
+ clearable
:props="{ expandTrigger: 'hover' }"
@change="handleChange"
></el-cascader>
- </el-form-item>
+ </el-form-item> -->
<el-form-item label="鑱旂郴鐢佃瘽" prop="telcode">
<el-input
v-model="queryParams.telcode"
@@ -183,16 +184,15 @@
>鍒犻櫎</el-button
>
</el-col>
- <el-col :span="1.5">
+ <!-- <el-col :span="1.5">
<el-button
type="primary"
- plain
icon="el-icon-s-promotion"
size="medium"
@click="distribute"
>鍚戜换鍔℃淳鍙戞偅鑰�</el-button
>
- </el-col>
+ </el-col> -->
<el-col :span="6">
<div class="documentf">
<div class="document">
@@ -254,7 +254,14 @@
<el-button
size="medium"
type="text"
- @click="gettoken360(scope.row.idcardno,scope.row.drcode,scope.row.drname)"
+ @click="
+ gettoken360(
+ scope.row.idcardno,
+ scope.row.drcode,
+ scope.row.drname,
+ scope.row.id
+ )
+ "
><span class="button-textsc">{{
scope.row.name
}}</span></el-button
@@ -371,14 +378,14 @@
><i class="el-icon-edit"></i>鎮h�呰繃婊�</span
></el-button
>
- <!-- <el-button
+ <el-button
size="medium"
type="text"
@click="Distributionservice(scope.row)"
- ><span class="button-textxg"
- ><i class="el-icon-menu"></i>鏈嶅姟</span
+ ><span class="button-textdx"
+ ><i class="el-icon-s-promotion"></i>鐭俊鍙戦��</span
></el-button
- > -->
+ >
<!-- <el-button
size="medium"
type="text"
@@ -568,6 +575,17 @@
</el-form-item>
</el-col>
</el-row>
+ <el-row v-if="amendtag">
+ <el-col :span="8">
+ <el-form-item label="杩囨护鍖荤敓" width="100" prop="filterDrname">
+ <el-input
+ v-model="form.filterDrname"
+ placeholder="璇疯緭鍏ュ尰鐢熷鍚�"
+ maxlength="30"
+ />
+ </el-form-item>
+ </el-col>
+ </el-row>
<el-row v-if="!amendtag">
<el-col :span="8">
<el-form-item label="姘戞棌" prop="name">
@@ -652,6 +670,11 @@
type="textarea"
placeholder="璇疯緭鍏ヨ繃婊ゅ師鍥�"
></el-input>
+ <!-- 鎻愰啋鏂囧瓧 -->
+ <div class="filter-warning">
+ <i class="el-icon-warning-outline"></i>
+ 璇ュ姛鑳介�傜敤浜庢浜°�佸垪鍏ュ尰闄㈤粦鍚嶅崟銆佹槑纭嫆缁濋殢璁跨瓑鎮h�呯殑杩囨护鎺掗櫎锛岃繃婊ゅ悗璇ユ偅鑰呮墍鏈夎繘琛屼腑浠诲姟鍏ㄩ儴鍋滄涓旀棤娉曞尮閰嶆柊鐨勯殢璁夸换鍔★紝璇疯皑鎱庢搷浣滐紒
+ </div>
</el-form-item>
</el-col>
</el-row>
@@ -862,7 +885,11 @@
Exporterrorpatient,
toleadpatient,
} from "@/api/patient/homepage";
-import { getTasklist,query360PatInfo } from "@/api/AiCentre/index";
+import {
+ getTasklist,
+ query360PatInfo,
+ query360PatInfonh,
+} from "@/api/AiCentre/index";
import { listtag } from "@/api/system/label";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
@@ -1030,8 +1057,8 @@
YongHuXX: {
XiTongID: "SUIFANGXT",
XiTongMC: "闅忚绯荤粺",
- YongHuID: "1400466972205912064",
- YongHuXM: "JNRMYY",
+ YongHuID: localStorage.getItem("YongHuID"),
+ YongHuXM: localStorage.getItem("YongHuXM"),
ZuZhiJGID: localStorage.getItem("orgid"),
ZuZhiJGMC: localStorage.getItem("orgname"),
idp: "lyra",
@@ -1070,7 +1097,7 @@
// 鏌ヨ鍙傛暟
queryParams: {
pageNum: 1,
- allhosp: "1",
+ allhosp: "0",
pageSize: 10,
notrequiredFlag: 0,
searchscope: 2,
@@ -1145,6 +1172,18 @@
this.getList();
this.gettabList();
//鑾峰彇宸茬瓫閫夊悗鐨勫彲閫変换鍔$被鍨�
+ this.sourcetype[0].children = store.getters.belongDepts.map((dept) => {
+ return {
+ label: dept.deptName,
+ value: dept.deptCode,
+ };
+ });
+ this.sourcetype[1].children = store.getters.belongWards.map((dept) => {
+ return {
+ label: dept.districtName,
+ value: dept.districtCode,
+ };
+ });
this.taskoptions = store.getters.Serviceauthority;
},
methods: {
@@ -1186,12 +1225,26 @@
});
},
//鎮h��360璺宠浆
- gettoken360(sfzh,drcode,drname) {
- this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
- if (this.postData.XiaoXiTou.ZuHuMC=='涓芥按甯備腑鍖婚櫌') {
- this.postData.YeWuXX.YongHuXX.YongHuID = '1400398571877961728';
- this.postData.YeWuXX.YongHuXX.YongHuXM = 'LSZYY';
+ gettoken360(sfzh, drcode, drname, id) {
+ const orgname = localStorage.getItem("orgname");
+ if (orgname == "鍗楀崕澶у闄勫睘绗竴鍖婚櫌") {
+ query360PatInfonh(id).then((res) => {
+ if (res.data) {
+ window.open(res.data, "_blank");
+ } else {
+ this.$modal.msgWarning("360鏌ヨ鏃犵粨鏋�");
+ }
+ });
+ return;
+ } else if (
+ orgname == "绗竴浜烘皯鍖婚櫌婀栨花闄㈠尯" ||
+ orgname == "绗竴浜烘皯鍖婚櫌鍚村北闄㈠尯"
+ ) {
+ let url = `http://192.200.81.189:9100/blj/view?BINGRENID=${id}&YONGHUID=DBA`;
+ window.open(url, "_blank");
+ return;
}
+ this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
query360PatInfo(this.postData).then((res) => {
if (res.data.url) {
window.open(res.data.url, "_blank");
@@ -1210,8 +1263,17 @@
this.loading = false;
});
},
- Distributionservice(row) {
- this.serviceVisible = true;
+ Distributionservice(patient) {
+ this.$store.dispatch("sms/openSmsDialog", {
+ name: patient.name,
+ age: patient.age,
+ phone: patient.telcode,
+ deptName: patient.deptName,
+ wardName: patient.wardName,
+ smsTemplate: `灏婃暚鐨�${patient.name}锛屾偍濂斤紒`,
+ });
+
+ this.$message.success(`宸插噯澶囧悜 ${patient.name} 鍙戦�佺煭淇);
},
RiskMarker(row) {
this.RiskVisible = true;
@@ -1245,19 +1307,17 @@
/** 閲嶇疆鎸夐挳鎿嶄綔 */
resetQuery() {
this.dateRange = [];
- (this.queryParams = {
+ this.queryParams = {
pageNum: 1,
- allhosp: "1",
+ allhosp: "0",
pageSize: 10,
notrequiredFlag: 0,
searchscope: 2,
- idcardno: undefined,
- name: undefined,
- status: undefined,
- tagIds: undefined,
- telcode: undefined,
- }),
- this.handleQuery();
+ scopetype: [],
+ leaveldeptcodes: [],
+ leavehospitaldistrictcodes: [],
+ };
+ this.handleQuery();
},
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
@@ -1276,8 +1336,8 @@
handleUpdate(row) {
const userIds = row.id || this.ids;
particularpatient(userIds).then((response) => {
- console.log(response);
this.form = response.data;
+ this.form.filterDrname = store.getters.nickName;
});
this.amendtag = true;
this.Labelchange = true;
@@ -1452,7 +1512,7 @@
<style lang="scss" scoped>
.Questionnairemanagement {
- display: flex;
+ // display: flex;
}
.sidecolumn {
width: 180px;
@@ -1527,15 +1587,17 @@
font-size: 20px;
}
::v-deep.leftvlue .el-card__body {
- background: #d0e9fd;
+ background: #f2f8ff;
+ color: #324a9b;
}
::v-deep.leftvlue .el-card__body:hover {
- background: #8dc8f8;
+ background: #3664d9;
+ color: #fff;
cursor: pointer; /* 榧犳爣鎮诞鏃跺彉涓烘墜褰� */
}
.leftvlue {
- width: 80%;
- margin-left: 220px;
+ // width: 100%;
+ // margin-left: 220px;
margin-top: 10px;
}
.leftvlue-bg {
@@ -1594,8 +1656,34 @@
height: 50px;
}
}
+.filter-warning {
+ margin-top: 8px;
+ padding: 10px 14px;
+ background: #fff7e6;
+ border: 1px solid #ffe58f;
+ border-radius: 6px;
+ color: #d46b08;
+ font-size: 18px;
+ line-height: 1.6;
+ display: flex;
+ align-items: flex-start;
+ gap: 6px;
+}
+
+.filter-warning .el-icon-warning-outline {
+ font-size: 16px;
+ color: #faad14;
+ flex-shrink: 0;
+ margin-top: 2px;
+}
.button-textsc {
- color: #28cfe6;
+ color: #3664d9;
+}
+.button-textxga {
+ color: #de7897;
+}
+.button-textdx {
+ color: #569655;
}
.button-textxg {
color: #de7897;
--
Gitblit v1.9.3