From c1139d1a4d4de8762ee58cac7c218bcb4d091f7e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 08 一月 2025 09:55:36 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/QuestionnaireTask.vue | 75 +++++++++++++++++++++++++++----------
1 files changed, 54 insertions(+), 21 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index b503205..1506a6f 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
>
@@ -1163,6 +1164,12 @@
sendType: [
{ required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
],
+ deptcode: [
+ { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
+ ],
+ leavehospitaldistrictcode: [
+ { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
+ ],
},
// 绉戝闄㈠尯鏌ヨ鍏ュ弬
queryParamsdept: {
@@ -1249,9 +1256,15 @@
label: "绾歌川",
},
{
+ value: "4",
+ label: "鐭俊",
+ disabled:true,
+ },
+ {
value: "5",
label: "寰俊鍏紬鍙�",
},
+ { label: "寰俊灏忕▼搴�", value: 6 },
];
} else if (this.form.serviceType == 6) {
this.checkboxlist = [
@@ -1262,6 +1275,7 @@
{
value: "4",
label: "鐭俊",
+ disabled:true,
},
{
value: "5",
@@ -1294,6 +1308,7 @@
{
value: "4",
label: "鐭俊",
+ disabled:true,
},
{
value: "5",
@@ -1304,7 +1319,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 +1332,7 @@
{
value: "4",
label: "鐭俊",
+ disabled:true,
},
{
value: "5",
@@ -1360,6 +1376,7 @@
xh: 1,
},
];
+
if (this.checkList[0]) {
this.form.preachform = this.checkList.join(",");
} else {
@@ -1402,6 +1419,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) {
@@ -1423,11 +1446,14 @@
if (res.code == 200) {
this.objyl = res.data;
if (this.objyl.taskid == data.taskId) {
- this.objyl.isoperation = 2;
- }else{
- this.objyl.isoperation = 1;
+ 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;
@@ -1538,7 +1564,11 @@
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 == 1 ||
+ (this.patientqueryParams.allhosp == 1 &&
+ this.patientqueryParams.cry == 1)
+ ) {
this.tableLabelhz = [
// { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
{ label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" },
@@ -1554,7 +1584,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" },
@@ -1576,7 +1606,7 @@
this.patientqueryParams.cry = 1;
} else if (this.patientqueryParams.allhosp == 4) {
this.patientqueryParams.cry = 0;
- this.patientqueryParams.allhosp = '1';
+ this.patientqueryParams.allhosp = "1";
}
// 鏉ユ簮鍒ゆ柇
@@ -1758,25 +1788,25 @@
this.$modal.msgError(res.code);
}
- if (this.newadd) {
- this.neWaddfn();
- }
+ if (this.newadd) {
+ this.neWaddfn();
+ }
});
}
},
// 渚濈収鏂板鏃跺鐞�
- neWaddfn(){
- this.id=null;
- this.form.taskName='';
+ 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=""; //鏅氫笂鏃堕棿娈�
+ this.overallCase = [];
+ this.form.patTaskRelevances = [];
+ this.daytime = []; //鏃ユ湡
+ this.applydaytime = []; //璁$畻鏃ユ湡
+ this.time1 = ""; //涓婂崍鏃堕棿娈�
+ this.time2 = ""; //涓嬪崍鏃堕棿娈�
+ this.time3 = ""; //鏅氫笂鏃堕棿娈�
+ this.time4 = ""; //鏅氫笂鏃堕棿娈�
},
// 鑾峰彇绉戝鍒楄〃
listDept() {
@@ -1905,6 +1935,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