From 91f78c7a3c325b7627f269524cdf92f006948cdf Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 17:37:35 +0800
Subject: [PATCH] 景宁电话接入
---
src/views/patient/propaganda/index.vue | 130 ++++++++++++++++++++++++++++++++----------
1 files changed, 98 insertions(+), 32 deletions(-)
diff --git a/src/views/patient/propaganda/index.vue b/src/views/patient/propaganda/index.vue
index 87dc142..fa455f6 100644
--- a/src/views/patient/propaganda/index.vue
+++ b/src/views/patient/propaganda/index.vue
@@ -51,6 +51,15 @@
</el-option>
</el-select>
</el-form-item>
+ <el-form-item label="鎮h�呰寖鍥�" prop="status">
+ <el-cascader
+ v-model="topqueryParams.scopetype"
+ placeholder="榛樿鍏ㄩ儴"
+ :options="sourcetype"
+ :props="{ expandTrigger: 'hover' }"
+ @change="handleChange"
+ ></el-cascader>
+ </el-form-item>
<el-form-item label="瀹f暀鐘舵��" prop="status">
<el-select v-model="topqueryParams.sendstate" placeholder="璇烽�夋嫨">
@@ -92,7 +101,6 @@
<el-col :span="1.5">
<el-button
type="primary"
- plain
icon="el-icon-plus"
size="medium"
@click="handleAdd"
@@ -108,7 +116,6 @@
icon="el-icon-upload2"
size="medium"
@click="handleExport"
- v-hasPermi="['system:user:export']"
>瀵煎嚭</el-button
>
</div>
@@ -149,7 +156,6 @@
height="560"
@selection-change="handleSelectionChange"
>
- <el-table-column type="selection" width="50" align="center" />
<el-table-column
label="浠诲姟鍚嶇О"
fixed
@@ -161,6 +167,7 @@
<!-- <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" /> -->
<el-table-column
label="濮撳悕"
+ width="100"
fixed
align="center"
key="sendname"
@@ -176,17 +183,17 @@
<template slot-scope="scope">
<div v-if="scope.row.sendstate == 1">
<el-tag type="primary" :disable-transitions="false"
- >琚鍙�</el-tag
+ >琛ㄥ崟宸查鍙�</el-tag
>
</div>
<div v-if="scope.row.sendstate == 2">
<el-tag type="primary" :disable-transitions="false"
- >寰呭彂閫�</el-tag
+ >寰呴殢璁�</el-tag
>
</div>
<div v-if="scope.row.sendstate == 3">
<el-tag type="success" :disable-transitions="false"
- >宸插彂閫佹湭棰嗗彇</el-tag
+ >琛ㄥ崟宸插彂閫�</el-tag
>
</div>
<div v-if="scope.row.sendstate == 4">
@@ -267,9 +274,7 @@
prop="endDay"
>
<template slot-scope="scope">
- <span>{{
- scope.row.endDay ? scope.row.endDay + "澶�" : ""
- }}</span>
+ <span>{{ scope.row.endDay ? scope.row.endDay + "澶�" : "" }}</span>
</template>
</el-table-column>
<el-table-column
@@ -294,7 +299,6 @@
prop="drname"
/>
-
<!-- <el-table-column
label="鐥呭巻鍙�"
align="center"
@@ -305,7 +309,7 @@
/> -->
<!-- <el-table-column label="骞撮緞" align="center" key="age" prop="age" /> -->
- <!-- <el-table-column label="鎬у埆" align="center" key="sex" prop="sex" /> -->
+ <!-- <el-table-column label="鎬у埆"width="100" align="center" key="sex" prop="sex" /> -->
<!-- <el-table-column label="搴婂彿" align="center" key="badNo" prop="badNo" /> -->
<el-table-column
label="绉戝"
@@ -367,20 +371,28 @@
</template>
</el-table-column> -->
<el-table-column
- fixed="right"
+ fixed="right"
label="浠诲姟缁撴灉璁板綍"
width="120"
align="center"
key="remark"
prop="remark"
>
- <template slot-scope="scope" v-if="scope.row.remark">
- <el-tag type="success" v-if="scope.row.sendstate!=5&&scope.row.sendstate!=4&&scope.row.remark">{{ scope.row.remark }}</el-tag>
- <el-tag type="warning" v-else>{{ scope.row.remark }}</el-tag>
- </template>
- </el-table-column>
+ <template slot-scope="scope" v-if="scope.row.remark">
+ <el-tag
+ type="success"
+ v-if="
+ scope.row.sendstate != 5 &&
+ scope.row.sendstate != 4 &&
+ scope.row.remark
+ "
+ >{{ scope.row.remark }}</el-tag
+ >
+ <el-tag type="warning" v-else>{{ scope.row.remark }}</el-tag>
+ </template>
+ </el-table-column>
<el-table-column
- fixed="right"
+ fixed="right"
label="瀹f暀鏃堕棿"
sortable
align="center"
@@ -598,6 +610,22 @@
ruleForm: {
type: [],
},
+ sourcetype: [
+ {
+ value: 1,
+ label: "绉戝",
+ children: [],
+ },
+ {
+ value: 2,
+ label: "鐥呭尯",
+ children: [],
+ },
+ {
+ value: 3,
+ label: "鍏ㄩ儴",
+ },
+ ],
dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
inputVisible: false,
inputValue: "",
@@ -724,6 +752,9 @@
pageSize: 10,
serviceType: 4,
searchscope: 2,
+ sendstate: 2,
+ leaveldeptcodes: [],
+ leavehospitaldistrictcodes: [],
},
propss: { multiple: true },
options: [],
@@ -731,15 +762,15 @@
topicoptions: [
{
value: 1,
- label: "琚鍙�",
+ label: "琛ㄥ崟宸查鍙�",
},
{
value: 2,
- label: "寰呭彂閫�",
+ label: "寰呴殢璁�",
},
{
value: 3,
- label: "宸插彂閫佹湭棰嗗彇",
+ label: "琛ㄥ崟宸插彂閫�",
},
{
value: 4,
@@ -772,6 +803,19 @@
watch: {},
created() {
this.serviceState = store.getters.serviceState;
+ this.sourcetype[0].children = store.getters.belongDepts.map((dept) => {
+ return {
+ label: dept.deptName,
+ value: dept.deptCode,
+ };
+ });
+ this.sourcetype[1].children = store.getters.belongWards.map((dept) => {
+ return {
+ label: dept.districtName,
+ value: dept.districtCode,
+ };
+ });
+
this.getList();
this.getConfigKey("sys.user.initPassword").then((response) => {
this.initPassword = response.msg;
@@ -789,16 +833,7 @@
methods: {
/** 鏌ヨ闂ㄨ瘖瀹f暀鏈嶅姟鍒楄〃 */
getList() {
- if (this.topqueryParams.searchscope == 1) {
- this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
- (obj) => obj.deptCode
- );
- this.topqueryParams.leavehospitaldistrictcodes = null;
- } else if (this.topqueryParams.searchscope == 2) {
- this.topqueryParams.leavehospitaldistrictcodes =
- store.getters.belongWards.map((obj) => obj.districtCode);
- this.topqueryParams.leaveldeptcodes = null;
- } else {
+ if (this.topqueryParams.searchscope == 3) {
this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
(obj) => obj.deptCode
);
@@ -806,6 +841,18 @@
store.getters.belongWards.map((obj) => obj.districtCode);
}
this.loading = true;
+ console.log(this.topqueryParams.leavehospitaldistrictcodes);
+ console.log(this.topqueryParams.leaveldeptcodes);
+
+ if (
+ this.topqueryParams.leavehospitaldistrictcodes[0] &&
+ this.topqueryParams.leaveldeptcodes[0]
+ ) {
+ this.topqueryParams.deptOrDistrict = 2;
+ } else {
+ this.topqueryParams.deptOrDistrict = 1;
+ }
+ console.log(55);
getTaskservelist(this.topqueryParams).then((response) => {
this.userList = response.rows[0].serviceSubtaskList;
this.userList.forEach((item) => {
@@ -833,6 +880,24 @@
}, 200);
} else {
this.options = [];
+ }
+ },
+ // 鎮h�呰寖鍥村鐞�
+ handleChange(value) {
+ let type = value[0];
+ let code = value.slice(-1)[0];
+ this.topqueryParams.leavehospitaldistrictcodes = [];
+ this.topqueryParams.leaveldeptcodes = [];
+ if (type == 1) {
+ this.topqueryParams.leaveldeptcodes.push(code);
+ this.topqueryParams.leavehospitaldistrictcodes = [];
+ this.topqueryParams.searchscope = 1;
+ } else if (type == 2) {
+ this.topqueryParams.leavehospitaldistrictcodes.push(code);
+ this.topqueryParams.leaveldeptcodes = [];
+ this.topqueryParams.searchscope = 2;
+ } else {
+ this.topqueryParams.searchscope = 3;
}
},
// 闂ㄨ瘖瀹f暀鐘舵�佷慨鏀�
@@ -904,6 +969,7 @@
pageNum: 1,
pageSize: 10,
serviceType: 4,
+ sendstate: 2,
};
this.handleQuery();
},
@@ -1010,7 +1076,7 @@
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
handleExport() {
this.download(
- "system/user/export",
+ "smartor/serviceSubtask/patItemExport",
{
...this.topqueryParams,
},
--
Gitblit v1.9.3