From 3dcfdb6a9a1035cc3c4ff34d29f7af0ee2534068 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 10 一月 2025 13:47:27 +0800
Subject: [PATCH] 丽水提交
---
src/views/patient/propaganda/QuestionnaireTask.vue | 103 ++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 77 insertions(+), 26 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 7734577..888c794 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -75,6 +75,7 @@
v-for="(item, index) in checkboxlist"
:key="index"
:label="item.value"
+ :disabled="!item.disabled"
>
{{ item.label }}</el-checkbox
>
@@ -460,7 +461,7 @@
</el-form-item>
<el-select
v-model="patientqueryParams.searchscope"
- placeholder="璇烽�夋嫨鎮h�呮潵婧�"
+ placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
>
<el-option
v-for="item in source"
@@ -651,7 +652,7 @@
</el-select> </el-form-item
></el-col>
</el-row>
- <el-row>
+ <!-- <el-row>
<el-col :span="20"
><el-form-item label="閫傜敤鐥呭尯" prop="region">
<el-select
@@ -672,7 +673,7 @@
</el-option>
</el-select> </el-form-item
></el-col>
- </el-row>
+ </el-row> -->
<div class="xinz-infs">
<el-form-item>
@@ -997,7 +998,9 @@
patientqueryParams: {
pageNum: 1, //
pageSize: 10,
- topica: 0, //0鍏ㄩ儴1绉戝2鐥呭尯
+ topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯
+ leavehospitaldistrictcodes:[],
+ leaveldeptcodes:[],
},
topicoptions: [{ children: [{ children: [] }] }],
showSearch: true, //
@@ -1070,7 +1073,7 @@
templatename: "",
templateid: null,
libtemplateid: null,
- kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
+ kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
},
taskoptions: [
@@ -1163,6 +1166,12 @@
sendType: [
{ required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
],
+ deptcode: [
+ { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
+ ],
+ // leavehospitaldistrictcode: [
+ // { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
+ // ],
},
// 绉戝闄㈠尯鏌ヨ鍏ュ弬
queryParamsdept: {
@@ -1249,9 +1258,15 @@
label: "绾歌川",
},
{
+ value: "4",
+ label: "鐭俊",
+
+ },
+ {
value: "5",
label: "寰俊鍏紬鍙�",
},
+ { label: "寰俊灏忕▼搴�", value: 6 },
];
} else if (this.form.serviceType == 6) {
this.checkboxlist = [
@@ -1262,6 +1277,7 @@
{
value: "4",
label: "鐭俊",
+
},
{
value: "5",
@@ -1294,6 +1310,7 @@
{
value: "4",
label: "鐭俊",
+
},
{
value: "5",
@@ -1304,7 +1321,7 @@
label: "寰俊灏忕▼搴�",
},
];
- } else if (this.form.serviceType == 2 || this.form.serviceType == 3) {
+ } else if (this.form.serviceType == 2 || this.form.serviceType == 3|| this.form.serviceType == 5|| this.form.serviceType == 4) {
this.checkboxlist = [
{
value: "1",
@@ -1317,6 +1334,7 @@
{
value: "4",
label: "鐭俊",
+
},
{
value: "5",
@@ -1360,6 +1378,7 @@
xh: 1,
},
];
+
if (this.checkList[0]) {
this.form.preachform = this.checkList.join(",");
} else {
@@ -1402,6 +1421,12 @@
this.form.leavehospitaldistrictcodes = store.getters.belongWards.map(
(obj) => obj.districtCode
);
+ console.log(this.form.longTask);
+ console.log(this.form.preachform);
+
+ if (this.form.longTask && this.form.preachform == 6) {
+ this.form.patCycle = 1;
+ }
Editsingletask(this.form).then((res) => {
if (res.code == 200) {
if (this.form.taskid) {
@@ -1422,8 +1447,15 @@
getTaskQuestioncomit(this.form.templateid).then((res) => {
if (res.code == 200) {
this.objyl = res.data;
- this.objyl.isoperation = 2;
+ if (this.objyl.taskid == data.taskId) {
+ this.objyl.isoperation = 2;
+ } else {
+ this.objyl.isoperation = 1;
+ }
this.objyl.taskid = data.taskId;
+ if (!this.objyl.sendDay) {
+ this.objyl.sendDay='5';
+ }
TaskQuestioncomit(this.objyl).then((response) => {
this.previewtf = false;
this.form.libtemplateid = this.objyl.svyid;
@@ -1534,7 +1566,11 @@
this.overallCase.forEach((item) => {
this.allpids.push(item.patid);
});
- if (this.patientqueryParams.allhosp == 1) {
+ if (
+ this.patientqueryParams.allhosp == 1 ||
+ (this.patientqueryParams.allhosp == 1 &&
+ this.patientqueryParams.cry == 1)
+ ) {
this.tableLabelhz = [
// { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
{ label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
@@ -1550,7 +1586,7 @@
];
} else if (this.patientqueryParams.allhosp == 4) {
this.tableLabelhz = [
- { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
+ { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
{ label: "鎮h��", width: "", prop: "name" },
{ label: "韬唤璇�", width: "200", prop: "idcardno" },
{ label: "鎬у埆", width: "", prop: "sex" },
@@ -1572,6 +1608,7 @@
this.patientqueryParams.cry = 1;
} else if (this.patientqueryParams.allhosp == 4) {
this.patientqueryParams.cry = 0;
+ this.patientqueryParams.allhosp = "1";
}
// 鏉ユ簮鍒ゆ柇
@@ -1661,7 +1698,11 @@
let indexa = this.overallCase.indexOf(row);
let indexb = this.form.patTaskRelevances.indexOf(row);
this.overallCase.splice(indexa, 1);
- this.form.patTaskRelevances[indexb].isoperation = 3;
+ if (!this.form.taskid) {
+ this.form.patTaskRelevances.splice(indexa, 1);
+ } else {
+ this.form.patTaskRelevances[indexb].isoperation = 3;
+ }
this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
});
},
@@ -1679,6 +1720,13 @@
store.getters.leavehospitaldistrictcodes;
this.patientqueryParams.leaveldeptcodes = null;
}
+ console.log(this.patientqueryParams.leavehospitaldistrictcodes);
+ console.log(this.patientqueryParams.leaveldeptcodes);
+
+ if (!this.patientqueryParams.leavehospitaldistrictcodes||!this.patientqueryParams.leavehospitaldistrictcodes[0])
+ this.patientqueryParams.leavehospitaldistrictcodes = null;
+ if (!this.patientqueryParams.leaveldeptcodes||!this.patientqueryParams.leaveldeptcodes[0])
+ this.patientqueryParams.leaveldeptcodes = null;
this.handleAddpatient();
},
resetQuery() {},
@@ -1712,7 +1760,7 @@
templatename: "",
templateid: null,
libtemplateid: null,
- kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
+ kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
};
@@ -1753,25 +1801,25 @@
this.$modal.msgError(res.code);
}
- if (this.newadd) {
- this.neWaddfn();
- }
+ if (this.newadd) {
+ this.neWaddfn();
+ }
});
}
},
// 渚濈収鏂板鏃跺鐞�
- neWaddfn(){
- this.id=null;
- this.form.taskName='';
- this.form.taskName='';
- this.overallCase=[];
- this.form.patTaskRelevances=[];
- this.daytime=[]; //鏃ユ湡
- this.applydaytime=[]; //璁$畻鏃ユ湡
- this.time1=""; //涓婂崍鏃堕棿娈�
- this.time2=""; //涓嬪崍鏃堕棿娈�
- this.time3=""; //鏅氫笂鏃堕棿娈�
- this.time4=""; //鏅氫笂鏃堕棿娈�
+ neWaddfn() {
+ this.id = null;
+ this.form.taskName = "";
+ this.form.taskid = null;
+ this.overallCase = [];
+ this.form.patTaskRelevances = [];
+ this.daytime = []; //鏃ユ湡
+ this.applydaytime = []; //璁$畻鏃ユ湡
+ this.time1 = ""; //涓婂崍鏃堕棿娈�
+ this.time2 = ""; //涓嬪崍鏃堕棿娈�
+ this.time3 = ""; //鏅氫笂鏃堕棿娈�
+ this.time4 = ""; //鏅氫笂鏃堕棿娈�
},
// 鑾峰彇绉戝鍒楄〃
listDept() {
@@ -1900,6 +1948,9 @@
this.objyl.isoperation = 1;
console.log(this.objyl.id);
+ if (!this.objyl.sendDay) {
+ this.objyl.sendDay='5';
+ }
if (this.objyl.id) {
deleteTaskQuestioncomit(this.objyl.id).then((res) => {
--
Gitblit v1.9.3