From e353f0e17dc46203512dd272c5b559b094e40761 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 25 七月 2025 15:02:36 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/QuestionnaireTask.vue | 265 +++++++++++++++++++++++++++++++---------------------
1 files changed, 158 insertions(+), 107 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index bac0337..f06523a 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -87,7 +87,7 @@
</el-radio-group>
</el-form-item>
<el-row :gutter="20" v-if="form.longTask">
- <el-col :span="8">
+ <el-col :span="6">
<el-form-item label="鍛ㄦ湡鏃堕棿" prop="name">
<el-input
v-model="form.sendDay"
@@ -196,6 +196,12 @@
</div>
</div>
</el-form-item>
+ <!-- <el-form-item label="浠诲姟鍏宠仈" prop="longTask">
+ <el-radio-group v-model="form.relevance">
+ <el-radio :label="0">绉戝鍏宠仈</el-radio>
+ <el-radio :label="1">鐥呭尯鍏宠仈</el-radio>
+ </el-radio-group>
+ </el-form-item> -->
<el-row>
<el-col :span="20"
><el-form-item label="閫傜敤绉戝" prop="region">
@@ -222,6 +228,29 @@
<el-row>
<el-col :span="20"
><el-form-item label="閫傜敤鐥呭尯" prop="region">
+ <el-select
+ v-model="leavehospitaldistrictcodes"
+ style="width: 400px"
+ @remove-tag="removehpsp"
+ size="medium"
+ multiple
+ filterable
+ placeholder="璇烽�夋嫨鐥呭尯"
+ >
+ <el-option
+ class="ruleFormaa"
+ v-for="item in belongWards"
+ :key="item.districtCode"
+ :label="item.districtName"
+ :value="item.districtCode"
+ >
+ </el-option>
+ </el-select> </el-form-item
+ ></el-col>
+ </el-row>
+ <el-row v-if="form.relevance == 2">
+ <el-col :span="20"
+ ><el-form-item label="閫傜敤鐤剧梾" prop="region">
<el-select
v-model="leavehospitaldistrictcodes"
style="width: 400px"
@@ -407,6 +436,7 @@
:currentList="overallCase"
:tableLabel="tableLabelhzwb"
:serialnumber="false"
+ :agenumber="true"
:searchTrue="true"
:multiplechoice="false"
:controlxz="false"
@@ -457,6 +487,12 @@
@keyup.enter.native="handleQuery"
></el-input>
</el-form-item>
+ <el-form-item label="鎮h�呮爣绛撅細">
+ <el-input
+ v-model="patientqueryParams.tagname"
+ @keyup.enter.native="handleQuery"
+ ></el-input>
+ </el-form-item>
<el-select
v-model="patientqueryParams.searchscope"
placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
@@ -482,18 +518,18 @@
icon="el-icon-refresh"
size="medium"
@click="resetQuery"
- >鍙栨秷鍒涘缓</el-button
+ >閲嶇疆</el-button
>
</el-form-item>
</el-form>
<!-- 閫夋嫨鎮h�呭垪琛� -->
<SFtable
ref="multipleTable"
-
@handleSelectionChange="handleSelectionChange"
:currentList="patientuserList"
:tableLabel="tableLabelhz"
:heights="600"
+ :agenumber="true"
:serialnumber="false"
:center="false"
:typeinfo="3"
@@ -502,6 +538,8 @@
<pagination
v-show="patienttotal > 0 && this.patientqueryParams.allhosp != 6"
:total="patienttotal"
+ :page.sync="patientqueryParams.pageNum"
+ :limit.sync="patientqueryParams.pageSize"
@pagination="handleAddpatient"
/>
</div>
@@ -730,17 +768,7 @@
<el-form-item label="闂嵎鍚嶇О">
<el-input v-model="topqueryParams.svyname"></el-input>
</el-form-item>
- <!-- <el-form-item label="閫傜敤褰㈠紡" prop="status">
- <el-select v-model="topqueryParams.topica" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in taskoptions"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item> -->
+
<el-form-item>
<el-button
type="primary"
@@ -766,6 +794,7 @@
:serialnumber="false"
:controlsc="false"
:multiplechoice="false"
+ :agenumber="true"
:typeinfo="1"
/>
<pagination
@@ -773,7 +802,7 @@
:total="total"
:page.sync="topqueryParams.pageNum"
:limit.sync="topqueryParams.pageSize"
- @pagination="Acquisitiontype"
+ @pagination="handleQuerymb"
/>
</el-row>
</div>
@@ -804,8 +833,8 @@
taskdepthospgetsonlist,
} from "@/api/AiCentre/index";
-import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
-import { MessageBox, } from "element-ui";
+import SFtable from "@/components/SFtable/index.vue"; //琛ㄦ牸缁勪欢
+import { MessageBox } from "element-ui";
export default {
name: "ServiceDetails",
@@ -849,11 +878,11 @@
propstask: { value: "deptCode", label: "deptName" },
// 鎮h�呰〃鍗�
tableLabelhz: [
- { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "inhosptime" },
+ { label: "鍑洪櫌鏃ユ湡", width: "180", prop: "endtime" },
{ label: "鎮h��", width: "", prop: "name" },
- { label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鎮h�呯紪鍙�", width: "200", prop: "patientno" },
{ label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
+ { label: "鎮h�呮爣绛�", width: "", prop: "tag" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "涓绘不鍖荤敓", width: "", prop: "drname" },
{ label: "绉戝", width: "240", prop: "dept" },
@@ -861,11 +890,10 @@
],
// 鎮h�呰〃鍗�
tableLabelhzwb: [
- { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
+ { label: "鍑洪櫌鏃ユ湡", width: "180", prop: "endtime" },
{ label: "鎮h��", width: "", prop: "name" },
- { label: "韬唤璇�", width: "200", prop: "sfzh" },
+ { label: "鎮h�呯紪鍙�", width: "200", prop: "sfzh" },
{ label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "涓绘不鍖荤敓", width: "", prop: "drname" },
@@ -917,9 +945,10 @@
patientqueryParams: {
pageNum: 1, //
pageSize: 10,
- topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯
leavehospitaldistrictcodes: [],
leaveldeptcodes: [],
+ hospitaldistrictcodes: [],
+ deptcodes: [],
},
topicoptions: [{ children: [{ children: [] }] }],
showSearch: true, //
@@ -993,15 +1022,15 @@
templateid: null,
libtemplateid: null,
kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
- jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
+ jsy: "鎰熻阿鎮ㄥ弬涓庢湰娆¢殢璁裤�傛偍鐨勫弽棣堝府鍔╂垜浠洿濂藉湴浜嗚В瀹濆疂鐨勯�傚簲鎯呭喌锛屽苟涓烘偍鎻愪緵鏇寸簿鍑嗙殑鎶ょ悊寤鸿涓庡仴搴锋寚瀵笺�傜鎮ㄥ拰瀹濆疂鍋ュ悍蹇箰銆�",
},
taskoptions: [
{
- value: "1",
+ value: "4",
label: "鍑洪櫌鐥呬汉",
},
{
- value: "4",
+ value: "1",
label: "鍦ㄩ櫌鐥呬汉",
},
{
@@ -1033,10 +1062,10 @@
],
tasktypes: [
- {
- value: 1,
- label: "鐩戞祴璇勪及",
- },
+ // {
+ // value: "1",
+ // label: "鐩戞祴璇勪及",
+ // },
{
value: 2,
label: "鍑洪櫌闅忚",
@@ -1059,17 +1088,12 @@
},
{
value: 7,
- label: "鎮h�呮棩甯告姤鍛�",
+ label: "鎮h�呮姤鍛�",
},
- {
- value: 9,
- label: "鎮h�呭紓甯告姤鍛�",
- },
-
- {
- value: 8,
- label: "鍏朵粬閫氱煡",
- },
+ // {
+ // value: "8",
+ // label: "鍏朵粬閫氱煡",
+ // },
],
// 绉戝/鐥呭尯
belongWards: [],
@@ -1099,7 +1123,7 @@
// { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
// ],
},
- belongDepts:[],
+ belongDepts: [],
// 绉戝闄㈠尯鏌ヨ鍏ュ弬
queryParamsdept: {},
quote: false,
@@ -1162,11 +1186,6 @@
},
// 鑾峰彇褰撳墠绫诲瀷
Acquisitiontype() {
- let queryParams = {
- pageNum: this.topqueryParams.pageNum,
- pageSize: this.topqueryParams.pageSize,
- isenable: "",
- };
this.currenttype = this.$route.query.type;
this.title = "闂嵎鍐呭鍒楄〃";
this.tableLabel = this.tableLabelwj;
@@ -1309,7 +1328,7 @@
this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷");
return;
}
- if (this.deptcodesWards[0]||this.leavehospitaldistrictcodes[0]) {
+ if (this.deptcodesWards[0] || this.leavehospitaldistrictcodes[0]) {
} else {
this.$modal.msgError("璇烽�夋嫨绉戝鎴栫梾鍖�");
return;
@@ -1398,10 +1417,13 @@
},
// 棰勮
previewfnmb() {
+ console.log(this.form.templateid, "this.form.templateid");
+
getTaskQuestioncomit(this.form.templateid).then((res) => {
if (res.code == 200) {
- console.log(res, "棰勮鏁版嵁");
this.objyl = res.data;
+ console.log(this.objyl, "棰勮鏁版嵁");
+
if (this.objyl.suitway)
this.objyl.suitway = this.objyl.suitway.split(",");
@@ -1461,33 +1483,40 @@
this.overallCase.forEach((item) => {
this.allpids.push(item.patid);
});
- if (
- this.patientqueryParams.allhosp == 1 ||
- (this.patientqueryParams.allhosp == 1 &&
- this.patientqueryParams.cry == 1)
- ) {
+ if (this.patientqueryParams.allhosp == 4) {
this.tableLabelhz = [
// { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
- { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
+ { label: "鍑洪櫌鏃ユ湡", width: "180", prop: "endtime" },
{ label: "鎮h��", width: "", prop: "name" },
- { label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鎮h�呯紪鍙�", width: "200", prop: "patientno" },
{ label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
+ { label: "鎮h�呮爣绛�", width: "200", prop: "tag" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "鍖荤敓", width: "", prop: "drname" },
{ label: "绉戝", width: "180", prop: "dept" },
{ label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
];
- } else if (this.patientqueryParams.allhosp == 4) {
+ } else if (this.patientqueryParams.allhosp == 1) {
this.tableLabelhz = [
{ label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
{ label: "鎮h��", width: "", prop: "name" },
- { label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鎮h�呯紪鍙�", width: "200", prop: "patientno" },
{ label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
+ { label: "鎮h�呮爣绛�", width: "200", prop: "tag" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
+ { label: "鍖荤敓", width: "", prop: "drname" },
+ { label: "绉戝", width: "180", prop: "dept" },
+ { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
+ ];
+ } else {
+ this.tableLabelhz = [
+ { label: "灏辫瘖鏃ユ湡", width: "150", prop: "admitdate" },
+ { label: "鎮h��", width: "", prop: "name" },
+ { label: "鎮h�呯紪鍙�", width: "200", prop: "patientno" },
+ { label: "鎬у埆", width: "", prop: "sex" },
+ { label: "鎮h�呮爣绛�", width: "200", prop: "tag" },
{ label: "鍖荤敓", width: "", prop: "drname" },
{ label: "绉戝", width: "180", prop: "dept" },
{ label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
@@ -1498,31 +1527,22 @@
} else {
this.patientqueryParams.pids = null;
}
- // 绫诲瀷鍒ゆ柇
- if (this.patientqueryParams.allhosp == 1) {
- this.patientqueryParams.cry = 1;
- } else if (this.patientqueryParams.allhosp == 4) {
- this.patientqueryParams.cry = 0;
- this.patientqueryParams.allhosp = "1";
- }
- // 鏉ユ簮鍒ゆ柇
- if (this.patientqueryParams.searchscope == 1) {
- this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
- (obj) => obj.deptCode
- );
+ // 绉戝杩樻槸鐥呭尯
+
+ // 鍑洪櫌杩樻槸鍏ラ櫌
+ if (this.patientqueryParams.allhosp == 4) {
+ this.patientqueryParams.hospitaldistrictcodes = [];
+ this.patientqueryParams.deptcodes = [];
+ } else if (this.patientqueryParams.allhosp == 1) {
+ this.patientqueryParams.deptcodes =
+ this.patientqueryParams.leaveldeptcodes;
+ this.patientqueryParams.hospitaldistrictcodes =
+ this.patientqueryParams.leavehospitaldistrictcodes;
this.patientqueryParams.leavehospitaldistrictcodes = [];
- } else if (this.patientqueryParams.searchscope == 2) {
- this.patientqueryParams.leavehospitaldistrictcodes =
- store.getters.belongWards.map((obj) => obj.districtCode);
this.patientqueryParams.leaveldeptcodes = [];
- } else {
- this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
- (obj) => obj.deptCode
- );
- this.patientqueryParams.leavehospitaldistrictcodes =
- store.getters.belongWards.map((obj) => obj.districtCode);
}
+
getTaskpatientQC(this.patientqueryParams).then((response) => {
this.patientuserList = response.rows;
this.patientuserList.forEach((item) => {
@@ -1551,13 +1571,13 @@
item.isoperation = 1;
item.patid = item.id;
item.hospType = this.patientqueryParams.allhosp;
- item.sfzh = item.idcardno;
+ item.sfzh = item.patientno;
item.deptCode = item.deptcode;
item.deptName = item.dept;
item.admindate = item.inhosptime;
- item.sfzh = item.idcardno;
- if (this.patientqueryParams.allhosp==6) {
- item.patfrom = 1;
+ item.sfzh = item.patientno;
+ if (this.patientqueryParams.allhosp == 6) {
+ item.patfrom = 1;
}
this.overallCase.push(item);
this.form.patTaskRelevances.push(item);
@@ -1607,25 +1627,26 @@
getList() {},
handleQuery() {
// 鑾峰彇澶栭儴鎮h��
- console.log(this.patientqueryParams.allhosp, "aaalll");
-
if (this.patientqueryParams.allhosp == 6) {
this.Externallist();
console.log();
-
return;
}
- if (this.patientqueryParams.topica == 0) {
+ if (this.patientqueryParams.searchscope == 1) {
+ this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ this.patientqueryParams.leavehospitaldistrictcodes = [];
+ } else if (this.patientqueryParams.searchscope == 2) {
this.patientqueryParams.leavehospitaldistrictcodes =
- store.getters.leavehospitaldistrictcodes;
- this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes;
- } else if (this.patientqueryParams.topica == 1) {
- this.patientqueryParams.leavehospitaldistrictcodes = null;
- this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes;
- } else if (this.patientqueryParams.topica == 2) {
+ store.getters.belongWards.map((obj) => obj.districtCode);
+ this.patientqueryParams.leaveldeptcodes = [];
+ } else {
+ this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
this.patientqueryParams.leavehospitaldistrictcodes =
- store.getters.leavehospitaldistrictcodes;
- this.patientqueryParams.leaveldeptcodes = null;
+ store.getters.belongWards.map((obj) => obj.districtCode);
}
if (
@@ -1644,9 +1665,8 @@
Externallist() {
this.tableLabelhz = [
{ label: "鎮h��", width: "", prop: "name" },
- { label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鎮h�呯紪鍙�", width: "200", prop: "patientno" },
{ label: "鎬у埆", width: "", prop: "sex" },
- { label: "骞撮緞", width: "", prop: "age" },
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
];
this.patientqueryParams.pageSize = 1000;
@@ -1664,7 +1684,22 @@
});
},
- resetQuery() {},
+ resetQuery() {
+ let allhosp = this.patientqueryParams.allhosp;
+ this.patientqueryParams = {
+ pageNum: 1, //
+ pageSize: 10,
+ allhosp: allhosp,
+ leavehospitaldistrictcodes: [],
+ leaveldeptcodes: [],
+ hospitaldistrictcodes: [],
+ deptcodes: [],
+ };
+
+ console.log(this.patientqueryParams, "this.patientqueryParams");
+
+ this.handleQuery();
+ },
handleQuerymb() {
getQtemplatelist(this.topqueryParams).then((response) => {
this.userList = response.rows;
@@ -1697,7 +1732,7 @@
templateid: null,
libtemplateid: null,
kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
- jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
+ jsy: "鎰熻阿鎮ㄥ弬涓庢湰娆¢殢璁裤�傛偍鐨勫弽棣堝府鍔╂垜浠洿濂藉湴浜嗚В瀹濆疂鐨勯�傚簲鎯呭喌锛屽苟涓烘偍鎻愪緵鏇寸簿鍑嗙殑鎶ょ悊寤鸿涓庡仴搴锋寚瀵笺�傜鎮ㄥ拰瀹濆疂鍋ュ悍蹇箰銆�",
};
this.questionList = [];
@@ -1752,6 +1787,7 @@
this.id = null;
this.form.taskName = "";
this.form.taskid = null;
+ this.form.sendState = 1;
this.overallCase = [];
this.form.patTaskRelevances = [];
this.daytime = []; //鏃ユ湡
@@ -1965,8 +2001,8 @@
"褰撳墠涓烘柊澧炰换鍔℃湭淇濆瓨涓嶅彲鍏宠仈妯℃澘锛屾槸鍚﹀厛淇濆瓨浠诲姟锛�",
"鍔熻兘鎻愮ず",
{
- confirmButtonText: "淇濆瓨浠诲姟",
- cancelButtonText: "鍙栨秷",
+ confirmButtonText: "鏆傚瓨妯℃澘",
+ cancelButtonText: "淇濆瓨浠诲姟",
type: "warning",
}
)
@@ -1977,11 +2013,26 @@
this.objyl.templateid = this.objyl.svyid;
this.form.libtemplateid = this.objyl.svyid;
this.objyl.isoperation = 1;
- this.objyl.svyTaskTemplateScriptVOS = this.objyl.svyTemplateLibScripts;
- this.form.svyTaskTemplateVO=this.objyl;
- this.submitForm();
+ this.objyl.svyTaskTemplateScriptVOS =
+ this.objyl.svyTemplateLibScripts;
+ this.form.svyTaskTemplateVO = this.objyl;
+ this.form.templatename = this.objyl.svyname;
+ this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�");
+ this.drawermb = false;
+ this.previewtf = false;
})
- .catch(() => {});
+ .catch(() => {
+ if (Array.isArray(this.objyl.suitway)) {
+ this.objyl.suitway = this.objyl.suitway.join(",");
+ }
+ this.objyl.templateid = this.objyl.svyid;
+ this.form.libtemplateid = this.objyl.svyid;
+ this.objyl.isoperation = 1;
+ this.objyl.svyTaskTemplateScriptVOS =
+ this.objyl.svyTemplateLibScripts;
+ this.form.svyTaskTemplateVO = this.objyl;
+ this.submitForm();
+ });
} else {
setTimeout(() => {
this.previewFn();
--
Gitblit v1.9.3