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 | 165 +++++++++++++++++++++++-------------------------------
1 files changed, 71 insertions(+), 94 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 2a31d54..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"
@@ -518,7 +518,7 @@
icon="el-icon-refresh"
size="medium"
@click="resetQuery"
- >鍙栨秷鍒涘缓</el-button
+ >閲嶇疆</el-button
>
</el-form-item>
</el-form>
@@ -768,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"
@@ -843,7 +833,7 @@
taskdepthospgetsonlist,
} from "@/api/AiCentre/index";
-import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
+import SFtable from "@/components/SFtable/index.vue"; //琛ㄦ牸缁勪欢
import { MessageBox } from "element-ui";
export default {
@@ -955,7 +945,6 @@
patientqueryParams: {
pageNum: 1, //
pageSize: 10,
- topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯
leavehospitaldistrictcodes: [],
leaveldeptcodes: [],
hospitaldistrictcodes: [],
@@ -1037,11 +1026,11 @@
},
taskoptions: [
{
- value: "1",
+ value: "4",
label: "鍑洪櫌鐥呬汉",
},
{
- value: "4",
+ value: "1",
label: "鍦ㄩ櫌鐥呬汉",
},
{
@@ -1073,17 +1062,17 @@
],
tasktypes: [
- {
- value: 1,
- label: "蹇冪數闅忚",
- },
+ // {
+ // value: "1",
+ // label: "鐩戞祴璇勪及",
+ // },
{
value: 2,
label: "鍑洪櫌闅忚",
},
{
value: 3,
- label: "褰卞儚闅忚",
+ label: "闂ㄨ瘖闅忚",
},
{
value: 4,
@@ -1091,16 +1080,20 @@
},
{
value: 5,
- label: "浣撴闅忚",
+ label: "澶嶈瘖绠$悊",
},
{
- value: 11,
- label: "鍖绘妧闅忚",
+ value: 6,
+ label: "婊℃剰搴﹁皟鏌�",
},
{
- value: 10,
- label: "涓撶闅忚",
+ value: 7,
+ label: "鎮h�呮姤鍛�",
},
+ // {
+ // value: "8",
+ // label: "鍏朵粬閫氱煡",
+ // },
],
// 绉戝/鐥呭尯
belongWards: [],
@@ -1193,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;
@@ -1307,8 +1295,6 @@
// },
];
}
- console.log(this.topqueryParams, "this.topqueryParams");
-
getQtemplatelist(this.topqueryParams).then((response) => {
this.userList = response.rows;
this.total = response.total;
@@ -1497,11 +1483,7 @@
this.overallCase.forEach((item) => {
this.allpids.push(item.patid);
});
- if (
- (this.patientqueryParams.allhosp == 1 &&
- !this.patientqueryParams.zsallhosp) ||
- this.patientqueryParams.zsallhosp == 1
- ) {
+ if (this.patientqueryParams.allhosp == 4) {
this.tableLabelhz = [
// { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
{ label: "鍑洪櫌鏃ユ湡", width: "180", prop: "endtime" },
@@ -1515,10 +1497,7 @@
{ label: "绉戝", width: "180", prop: "dept" },
{ label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
];
- } else if (
- this.patientqueryParams.allhosp == 4 ||
- this.patientqueryParams.zsallhosp == 4
- ) {
+ } else if (this.patientqueryParams.allhosp == 1) {
this.tableLabelhz = [
{ label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
{ label: "鎮h��", width: "", prop: "name" },
@@ -1527,6 +1506,17 @@
{ 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" },
@@ -1540,45 +1530,17 @@
// 绉戝杩樻槸鐥呭尯
- 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.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);
- }
// 鍑洪櫌杩樻槸鍏ラ櫌
- if (
- (this.patientqueryParams.allhosp == 1 &&
- !this.patientqueryParams.zsallhosp) ||
- this.patientqueryParams.zsallhosp == 1
- ) {
- this.patientqueryParams.cry = 1;
+ if (this.patientqueryParams.allhosp == 4) {
this.patientqueryParams.hospitaldistrictcodes = [];
this.patientqueryParams.deptcodes = [];
- this.patientqueryParams.zsallhosp = "1";
- } else if (
- this.patientqueryParams.allhosp == 4 ||
- this.patientqueryParams.zsallhosp == 4
- ) {
+ } else if (this.patientqueryParams.allhosp == 1) {
this.patientqueryParams.deptcodes =
this.patientqueryParams.leaveldeptcodes;
this.patientqueryParams.hospitaldistrictcodes =
this.patientqueryParams.leavehospitaldistrictcodes;
this.patientqueryParams.leavehospitaldistrictcodes = [];
this.patientqueryParams.leaveldeptcodes = [];
- this.patientqueryParams.cry = 0;
- this.patientqueryParams.allhosp = "1";
- this.patientqueryParams.zsallhosp = "4";
}
getTaskpatientQC(this.patientqueryParams).then((response) => {
@@ -1665,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 (
@@ -1696,7 +1659,6 @@
!this.patientqueryParams.leaveldeptcodes[0]
)
this.patientqueryParams.leaveldeptcodes = null;
- console.log(this.patientqueryParams.allhosp, "bbblll");
this.handleAddpatient();
},
// 鑾峰彇澶栭儴鎮h�呭鍏ュ垪琛�
@@ -1722,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;
@@ -2024,8 +2001,8 @@
"褰撳墠涓烘柊澧炰换鍔℃湭淇濆瓨涓嶅彲鍏宠仈妯℃澘锛屾槸鍚﹀厛淇濆瓨浠诲姟锛�",
"鍔熻兘鎻愮ず",
{
- confirmButtonText: "淇濆瓨浠诲姟",
- cancelButtonText: "鏆傚瓨妯℃澘",
+ confirmButtonText: "鏆傚瓨妯℃澘",
+ cancelButtonText: "淇濆瓨浠诲姟",
type: "warning",
}
)
@@ -2039,7 +2016,10 @@
this.objyl.svyTaskTemplateScriptVOS =
this.objyl.svyTemplateLibScripts;
this.form.svyTaskTemplateVO = this.objyl;
- this.submitForm();
+ this.form.templatename = this.objyl.svyname;
+ this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�");
+ this.drawermb = false;
+ this.previewtf = false;
})
.catch(() => {
if (Array.isArray(this.objyl.suitway)) {
@@ -2051,10 +2031,7 @@
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;
+ this.submitForm();
});
} else {
setTimeout(() => {
--
Gitblit v1.9.3