From e8c62bd430b9697d3f954125b7ec9f61f18347a2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 11:19:34 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/QuestionnaireTask.vue | 110 ++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 77 insertions(+), 33 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index b95bfb4..7ca9eae 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -80,6 +80,15 @@
>
</el-radio-group>
</el-form-item>
+ <!-- <el-form-item label="鏈嶅姟褰㈠紡">
+ <SortCheckbox
+ v-model="checkList"
+ :options="checkboxlist"
+ value-key="value"
+ label-key="label"
+ @change="checkSelectionChange"
+ />
+ </el-form-item> -->
<el-form-item label="鎵ц鍛ㄦ湡" prop="longTask">
<el-radio-group v-model="form.longTask">
<el-radio :label="0">鑷畾涔夊懆鏈�</el-radio>
@@ -199,7 +208,7 @@
</el-form-item>
<el-form-item label="浠诲姟鍏宠仈" prop="longTask">
<el-radio-group v-model="form.appltype">
- <el-radio label="1">璇鹃缁勫叧鑱�</el-radio>
+ <el-radio label="1">绉戝鍏宠仈</el-radio>
<el-radio label="2">鐥呭尯鍏宠仈</el-radio>
<el-radio label="3">鐤剧梾鍏宠仈</el-radio>
<el-radio label="4">鎵嬫湳鍏宠仈</el-radio>
@@ -207,7 +216,7 @@
</el-form-item>
<el-row v-if="form.appltype == 1">
<el-col :span="20"
- ><el-form-item label="閫傜敤璇鹃缁�" prop="region">
+ ><el-form-item label="閫傜敤绉戝" prop="region">
<el-select
v-model="deptcodesWards"
@remove-tag="removetag"
@@ -215,7 +224,7 @@
size="medium"
multiple
filterable
- placeholder="璇烽�夋嫨璇鹃缁�"
+ placeholder="璇烽�夋嫨绉戝"
>
<el-option
class="ruleFormaa"
@@ -432,8 +441,11 @@
</div>
</div>
</div>
- <el-button type="success" @click="nextstep('ruleForm')">{{
- quote ? "绔嬪嵆鍒涘缓" : "浠诲姟璇︽儏閰嶇疆"
+ <el-button type="primary" @click="nextstep('ruleForm')">{{
+ quote ? "绔嬪嵆鍒涘缓" : "娲惧彂鎮h�呴厤缃�"
+ }}</el-button>
+ <el-button type="success" @click="submitForm('ruleForm')">{{
+ quote ? "绔嬪嵆鍒涘缓" : "纭鏈嶅姟閰嶇疆"
}}</el-button>
<el-button @click="resetForm('ruleForm')">閲嶇疆</el-button>
</div>
@@ -517,7 +529,7 @@
</div>
<el-button type="primary" @click="laststep()">涓婁竴姝�</el-button>
<el-button type="success" @click="submitForm('ruleForm')">{{
- quote ? "绔嬪嵆鍒涘缓" : "纭浠诲姟閰嶇疆"
+ quote ? "绔嬪嵆鍒涘缓" : "纭鏈嶅姟閰嶇疆"
}}</el-button>
<el-button @click="resetForm('ruleForm')">閲嶇疆</el-button>
</div>
@@ -911,8 +923,9 @@
taskdiaggetlist,
taskopergetlist,
} from "@/api/AiCentre/index";
-import OptionalForm from "@/components/OptionalForm"; //姝e垯缁勪欢
+import OptionalForm from "@/components/OptionalForm"; //鐤剧梾娣诲姞缁勪欢
import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
+import SortCheckbox from "@/components/SortCheckbox"; //琛ㄦ牸缁勪欢
import { MessageBox } from "element-ui";
export default {
@@ -941,7 +954,7 @@
previewtftype: 0, //棰勮鎯呭喌0鏂版ā鏉块瑙�1宸查�夋嫨妯℃澘淇敼
dialogVisiblepatient: false, //娣诲姞鎮h�呭脊妗�
dialogVisiblepatientjb: false, //娣诲姞鐤剧梾寮规
- deptcodesWards: [], //璇鹃缁勬暟鎹�
+ deptcodesWards: [], //绉戝鏁版嵁
leavehospitaldistrictcodes: [], //鐥呭尯鏁版嵁
operationcodes: [], //鎵嬫湳鏁版嵁
illnesscodes: [], //鐤剧梾鏁版嵁
@@ -971,7 +984,7 @@
{ label: "骞撮緞", width: "", prop: "age" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "涓绘不鍖荤敓", width: "", prop: "drname" },
- { label: "璇鹃缁�", width: "240", prop: "dept" },
+ { label: "绉戝", width: "240", prop: "dept" },
{ label: "鐥呭尯", width: "240", prop: "leavehospitaldistrictname" },
],
// 鎮h�呰〃鍗�
@@ -985,7 +998,7 @@
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "涓绘不鍖荤敓", width: "", prop: "drname" },
- { label: "璇鹃缁�", width: "180", prop: "deptName" },
+ { label: "绉戝", width: "180", prop: "deptName" },
{ label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
],
@@ -1026,6 +1039,7 @@
pageSize: 10,
},
checkList: "",
+ selectedOrder: [],
deliverytopqueryParams: {
pageNum: 1, //
pageSize: 10,
@@ -1146,7 +1160,7 @@
},
{
value: 1,
- label: "璇鹃缁勬偅鑰�",
+ label: "绉戝鎮h��",
},
{
value: 2,
@@ -1155,14 +1169,14 @@
],
tasktypes: store.getters.tasktypes,
- // 璇鹃缁�/鐥呭尯
+ // 绉戝/鐥呭尯
belongWards: [],
deptlist: [],
hosplist: [],
diagglist: [],
operlist: [],
- tempDetpRelevanceslist: [], //璇鹃缁勬暟鎹�
- tempDetpRelevanceslistform: [], //璇鹃缁勬暟鎹�
+ tempDetpRelevanceslist: [], //绉戝鏁版嵁
+ tempDetpRelevanceslistform: [], //绉戝鏁版嵁
tempbelongWards: [], //鐥呭尯鏁版嵁
tempbelongWardsform: [], //鐥呭尯鏁版嵁
rules: {
@@ -1179,20 +1193,20 @@
{ required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
],
deptcode: [
- { required: true, message: "閫傜敤璇鹃缁勪笉鑳戒负绌�", trigger: "blur" },
+ { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
],
// leavehospitaldistrictcode: [
// { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
// ],
},
belongDepts: [],
- // 璇鹃缁勯櫌鍖烘煡璇㈠叆鍙�
+ // 绉戝闄㈠尯鏌ヨ鍏ュ弬
queryParamsdept: {},
quote: false,
serviceType: null,
};
},
- components: { SFtable, OptionalForm },
+ components: { SFtable, OptionalForm, SortCheckbox },
created() {
this.appraiselist = store.getters.appraiselist;
@@ -1284,9 +1298,13 @@
value: "5",
label: "寰俊鍏紬鍙�",
},
- { label: "寰俊灏忕▼搴�", value: '6' },
+ { label: "寰俊灏忕▼搴�", value: "6" },
];
- } else if (this.form.serviceType == 6||this.form.serviceType == 14||this.form.serviceType == 15) {
+ } else if (
+ this.form.serviceType == 6 ||
+ this.form.serviceType == 14 ||
+ this.form.serviceType == 15
+ ) {
this.checkboxlist = [
{
value: "3",
@@ -1442,17 +1460,17 @@
this.leavehospitaldistrictcodes[0] ||
this.diagglist[0] ||
this.operationcodes[0] ||
- this.form.longTask == 2
+ this.form.longTask == 2||this.serviceType==14
) {
} else {
this.$modal.msgError("璇烽�夋嫨浠诲姟鍏宠仈鏉′欢");
return;
}
-
- if (!this.form.patTaskRelevances[0] && !this.form.longTask) {
- this.$modal.msgError("璇烽�夋嫨鐥呬汉");
- return;
- }
+ //鏆傚仠浠诲姟鎮h�呴檺鍒�
+ // if (!this.form.patTaskRelevances[0] && !this.form.longTask) {
+ // this.$modal.msgError("璇烽�夋嫨鐥呬汉");
+ // return;
+ // }
if (!this.form.templatename && !this.templateor) {
this.$modal.msgError("鏈�夋嫨妯℃澘");
@@ -1561,6 +1579,11 @@
}
});
},
+ checkSelectionChange(selectedValues, selectedOrder) {
+ this.selectedOrder = selectedOrder;
+ console.log("褰撳墠閫変腑:", selectedValues);
+ console.log("閫変腑椤哄簭:", selectedOrder);
+ },
getillness(id) {
if (id) {
getillness({ outid: id, type: 5 }).then((res) => {
@@ -1654,7 +1677,7 @@
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "鍖荤敓", width: "", prop: "drname" },
- { label: "璇鹃缁�", width: "180", prop: "dept" },
+ { label: "绉戝", width: "180", prop: "dept" },
{ label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
];
} else if (this.patientqueryParams.allhosp == 1) {
@@ -1668,7 +1691,21 @@
{ label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
{ label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
{ label: "鍖荤敓", width: "", prop: "drname" },
- { label: "璇鹃缁�", width: "180", prop: "dept" },
+ { label: "绉戝", width: "180", prop: "dept" },
+ { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
+ ];
+ } else if (this.patientqueryParams.allhosp == 2) {
+ this.tableLabelhz = [
+ { label: "灏辫瘖鏃ユ湡", width: "150", prop: "admitdate" },
+ { label: "鎮h��", width: "", prop: "name" },
+ { label: "韬唤璇�", width: "200", prop: "idcardno" },
+ { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" },
+ { label: "鎬у埆", width: "", prop: "sex" },
+ { label: "骞撮緞", width: "", prop: "age" },
+ { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
+ { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
+ { label: "鍖荤敓", width: "", prop: "drname" },
+ { label: "绉戝", width: "180", prop: "dept" },
{ label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
];
}
@@ -1726,6 +1763,13 @@
item.sfzh = item.idcardno;
if (this.patientqueryParams.allhosp == 6) {
item.patfrom = 1;
+ }
+ if (this.patientqueryParams.allhosp == 1) {
+ item.visittime = item.endtime;
+ } else if (this.patientqueryParams.allhosp == 4) {
+ item.visittime = item.starttime;
+ } else if (this.patientqueryParams.allhosp == 2) {
+ item.visittime = item.admitdate;
}
this.overallCase.push(item);
this.form.patTaskRelevances.push(item);
@@ -1842,7 +1886,7 @@
this.patientqueryParams = {
pageNum: 1, //
pageSize: 10,
- topica: 1, //0鍏ㄩ儴1璇鹃缁�2鐥呭尯
+ topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯
leavehospitaldistrictcodes: [],
leaveldeptcodes: [],
};
@@ -1913,7 +1957,7 @@
this.time1 = this.form.showTimeMorn.split(",");
}
}
- // 鑾峰彇浠诲姟璇鹃缁�
+ // 鑾峰彇浠诲姟绉戝
if (this.form.taskid) {
this.listDept();
}
@@ -1990,7 +2034,7 @@
}
});
},
- // 浠诲姟璇鹃缁勫垹闄よЕ鍙�
+ // 浠诲姟绉戝鍒犻櫎瑙﹀彂
removetag(row) {
let result = this.deptlist
.filter((item) => item.deptCode == row)
@@ -2180,7 +2224,7 @@
});
}
},
- // 淇濆瓨璇鹃缁�/鐥呭尯
+ // 淇濆瓨绉戝/鐥呭尯
putbelongDepts(id) {
this.tempDetpRelevanceslistform.forEach((item) => {
item.tempid = id;
@@ -2190,7 +2234,7 @@
});
depthospgetson(this.tempDetpRelevanceslistform).then((res) => {
if (res.code == 200) {
- this.$modal.msgSuccess("璇鹃缁勬洿鏂版垚鍔�");
+ this.$modal.msgSuccess("绉戝鏇存柊鎴愬姛");
this.tempDetpRelevanceslistform = [];
}
});
@@ -2202,7 +2246,7 @@
});
},
- // 璇鹃缁勫鐞�
+ // 绉戝澶勭悊
Departmenttreatment() {
if (!this.form.taskid) {
this.templateor = true;
--
Gitblit v1.9.3