From d1367a2eafbc26cadf07abb3caa94a0d64d09cab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 13 八月 2024 14:14:12 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/verbaltrick/index.vue | 1
src/views/repositoryai/verbaltrick/particulars/index.vue | 9
src/views/knowledge/questionbank/particulars/index.vue | 55 +-------
src/views/patient/patient/index.vue | 205 ++++++++++++++++++++++++++++++++-
src/views/patient/patient/profile/index.vue | 35 ++++-
src/api/patient/homepage.js | 2
6 files changed, 238 insertions(+), 69 deletions(-)
diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js
index a28b945..19cb4a3 100644
--- a/src/api/patient/homepage.js
+++ b/src/api/patient/homepage.js
@@ -29,7 +29,7 @@
// 鏂板鎮h��
export function addpatient(data) {
return request({
- url: '/smartor/patarchive',
+ url: '/smartor/patarchive/add',
method: 'post',
data: data
})
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index 317f038..b6da7c2 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -185,8 +185,13 @@
</el-form-item>
<el-row>
<el-col :span="20">
- <el-form-item label="濉┖淇℃伅" v-if="topicobj.scriptType == 3">
- <el-card class="box-card" style="width: 200%;">
+ <el-form-item
+ label="濉┖淇℃伅"
+ v-if="
+ topicobj.scriptType == 3 && topicobj.svyLibScriptOptions.length
+ "
+ >
+ <el-card class="box-card" style="width: 200%">
<div
v-for="item in topicobj.svyLibScriptOptions"
v-if="item.isoperation != 3"
@@ -292,49 +297,7 @@
</div>
</el-form-item>
</el-row>
- <!-- <el-row>
- <el-form-item label="閫傜敤鐤剧梾" prop="region">
- <div class="xinz-inf">
- <el-tag
- :key="item.icd10name"
- type="warning"
- v-for="item in illnesslist"
- closable
- :disable-transitions="false"
- @close="handleCloseillness(item)"
- >
- {{ item.icd10name }}
- </el-tag>
- <el-select
- v-model="inputValueillness"
- v-if="inputVisibleillness"
- @change="illnessConfirm"
- :remote-method="remoteMethod"
- filterable
- remote
- allow-create
- default-first-option
- placeholder="璇烽�夋嫨/鏌ヨ"
- :loading="loading"
- >
- <el-option
- v-for="item in optionsillness"
- :key="item.icdid"
- :label="item.icdname"
- :value="item.icdid"
- >
- </el-option>
- </el-select>
- <el-button
- v-else
- class="button-new-tag"
- size="small"
- @click="inputVisibleillness = true"
- >+ 鏂板鐤剧梾</el-button
- >
- </div>
- </el-form-item>
- </el-row> -->
+
<el-form-item label="閫変腑鎸囨爣锛�">
<span style="margin-left: 30px"
><el-tag type="success" effect="dark">{{
@@ -1270,7 +1233,7 @@
background: #3366f5;
}
.tsgnames {
- width: 90px;
+ width: 120px;
margin-right: 10px;
text-align: center;
cursor: pointer;
diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue
index d248b18..3331263 100644
--- a/src/views/patient/patient/index.vue
+++ b/src/views/patient/patient/index.vue
@@ -171,6 +171,16 @@
>鍒犻櫎</el-button
>
</el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="primary"
+ plain
+ icon="el-icon-s-promotion"
+ size="medium"
+ @click="distribute"
+ >鍚戜换鍔℃淳鍙戞偅鑰�</el-button
+ >
+ </el-col>
<el-col :span="6">
<div class="documentf">
<div class="document">
@@ -354,6 +364,127 @@
</el-row>
</div>
</div>
+ <el-dialog title="閫夋嫨浠诲姟" :visible.sync="distributeVisible" width="70%">
+ <div class="preview-left">
+ <el-form
+ :model="queryParams"
+ ref="queryForm"
+ size="small"
+ :inline="true"
+ label-width="98px"
+ >
+ <el-select
+ @change="distribute"
+ v-model="tasktopic"
+ placeholder="璇烽�夋嫨浠诲姟绫诲瀷"
+ >
+ <el-option
+ v-for="item in taskoptions"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
+ </el-option>
+ </el-select>
+ </el-form>
+ <el-table v-loading="loading" :data="taskuserList">
+ <el-table-column
+ label="浠诲姟鍚嶇О"
+ fixed
+ align="center"
+ key="taskName"
+ prop="taskName"
+ width="140"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="浠诲姟鎻忚堪"
+ align="center"
+ key="taskDesc"
+ prop="taskDesc"
+ width="180"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="鏈嶅姟椤圭洰"
+ align="center"
+ key="templatename"
+ prop="templatename"
+ />
+ <el-table-column
+ label="寰呮墽琛�/鎬讳换鍔�"
+ align="center"
+ key="nickName"
+ prop="nickName"
+ >
+ <template slot-scope="scope">
+ <span>{{ scope.row.wfs }}/{{ scope.row.yfs }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鍒涘缓浜�"
+ align="center"
+ key="createBy"
+ prop="createBy"
+ width="120"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="鍒涘缓鏃堕棿"
+ sortable
+ align="center"
+ prop="createTime"
+ width="160"
+ >
+ <template slot-scope="scope">
+ <span>{{ parseTime(scope.row.createTime) }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鐘舵��"
+ fixed="right"
+ align="center"
+ key="sendState"
+ prop="sendState"
+ width="120"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="dict.type.task_status"
+ :value="scope.row.sendState"
+ />
+ </template>
+ </el-table-column>
+
+ <el-table-column
+ label="浠诲姟璇︽儏"
+ fixed="right"
+ align="center"
+ width="200"
+ class-name="small-padding fixed-width"
+ >
+ <template slot-scope="scope">
+ <el-button
+ size="medium"
+ type="text"
+ @click="handleUpdate(scope.row)"
+ ><span class="button-xq"
+ ><i class="el-icon-s-data"></i>閫夋嫨娲惧彂</span
+ ></el-button
+ >
+ </template>
+ </el-table-column>
+ </el-table>
+
+ <pagination
+ v-show="tasktotal > 0"
+ :total="tasktotal"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="distribute"
+ />
+ </div>
+ </el-dialog>
<!-- 娣诲姞鎴栦慨鏀圭敤鎴烽厤缃璇濇 -->
<el-dialog
@@ -660,19 +791,16 @@
Exporterrorpatient,
toleadpatient,
} from "@/api/patient/homepage";
-import {
- getTaskservelist,
- getTaskInfo,
- Editsingletask,
-} from "@/api/AiCentre/index";
+import { getTasklist } from "@/api/AiCentre/index";
import { listtag } from "@/api/system/label";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
+import store from "@/store";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "Userhuanze",
- dicts: ["sys_normal_disable", "sys_user_sex"],
+ dicts: ["sys_normal_disable", "task_status", "sys_user_sex"],
components: { Treeselect },
data() {
return {
@@ -688,8 +816,10 @@
showSearch: true,
// 鎬绘潯鏁�
total: 0,
+ tasktotal: 0,
// 鐢ㄦ埛琛ㄦ牸鏁版嵁
userList: null,
+ taskuserList: null,
// 寮瑰嚭灞傛爣棰�
title: "",
// 閮ㄩ棬鏍戦�夐」
@@ -704,8 +834,19 @@
amendtag: false, //鏄惁淇敼
serviceVisible: false,
serviceradio: 1,
+ distributeVisible: false,
+ tasktopic: "5", //鏂板绫诲瀷
+ // 鏌ヨ鍙傛暟
+ topqueryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ userName: undefined,
+ tagid: undefined,
+ topic: undefined,
+ },
// 鏃ユ湡鑼冨洿
dateRange: [],
+ taskoptions: [],
paperstypes: [
{ papersname: "韬唤璇�" },
{ papersname: "鎶ょ収" },
@@ -864,6 +1005,8 @@
created() {
this.getList();
this.gettabList();
+ //鑾峰彇宸茬瓫閫夊悗鐨勫彲閫変换鍔$被鍨�
+ this.taskoptions = store.getters.Serviceauthority;
},
methods: {
/** 鏌ヨ鎮h�呭垪琛� */
@@ -879,6 +1022,10 @@
},
handleClick() {
this.getList();
+ },
+ findLabelByValue(data, value) {
+ const item = data.find((item) => item.value === value);
+ return item ? item.label : null;
},
/** 鏌ヨ鏍囩鍒楄〃 */
gettabList() {
@@ -962,10 +1109,10 @@
this.amendtag = true;
this.Labelchange = true;
},
-
//淇敼/鏂板鎮h��
submitForm() {
if (this.amendtag) {
+ this.form.isoperation = 2;
alterpatient(this.form)
.then((response) => {
console.log(response);
@@ -975,7 +1122,8 @@
this.$modal.msgSuccess("淇敼鎴愬姛");
});
} else {
- addpatient(this.form)
+ this.form.isoperation = 1;
+ alterpatient(this.form)
.then((response) => {
console.log(response);
})
@@ -1008,6 +1156,31 @@
this.$router.push({
path: "/followvisit/particty",
query: { type: this.serviceradio },
+ });
+ },
+ distribute() {
+ this.distributeVisible = true;
+ if (this.tasktopic == 1) {
+ this.topqueryParams.type = 3;
+ } else if (this.tasktopic == 2) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 3) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 4) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 5) {
+ this.topqueryParams.type = 1;
+ } else if (this.tasktopic == 6) {
+ this.topqueryParams.type = 2;
+ }
+ this.topqueryParams.typename = this.findLabelByValue(
+ this.taskoptions,
+ this.tasktopic
+ );
+ getTasklist(this.topqueryParams).then((response) => {
+ this.taskuserList = response.rows;
+ this.tasktotal = response.total;
+ this.$forceUpdate();
});
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
@@ -1109,6 +1282,22 @@
display: center !important;
}
}
+.preview-left {
+ margin: 20px;
+ // margin: 20px;
+ padding: 30px;
+ background: #ffff;
+ border: 1px solid #dcdfe6;
+ -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+ 0 0 6px 0 rgba(0, 0, 0, 0.04);
+ .scriptTopic-dev {
+ margin-bottom: 25px;
+ font-size: 20px !important;
+ .dev-text {
+ margin-bottom: 10px;
+ }
+ }
+}
::v-deep.el-tabs--left,
.el-tabs--right {
overflow: hidden;
diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index 4300f6e..e0936bd 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -42,7 +42,7 @@
<span class="mulsz" slot="label"
><i class="el-icon-s-management"></i> 鍖荤枟妗f</span
>
- <el-tabs v-model="sonactiveName" @tab-click="handleClick">
+ <el-tabs v-model="sonactiveName" @tab-click="handleClickson">
<el-tab-pane name="outpatient"
><span class="mulsz" slot="label"
>闂ㄨ瘖({{ mznumber }})</span
@@ -638,6 +638,8 @@
alterpatient,
Patientclinic,
} from "@/api/patient/homepage";
+import { listPatouthosp } from "@/api/smartor/patouthosp";
+import { listpatient } from "@/api/patient/record";
export default {
name: "Profile",
@@ -789,13 +791,23 @@
},
methods: {
- // 鏌ヨ鍖荤枟妗f鍒楄〃淇℃伅
- getList() {
+ // 鏌ヨ鍖荤枟妗f鍚勫垪琛ㄤ俊鎭�
+ getList(type) {
this.loading = true;
- // 闂ㄨ瘖璁板綍
- Patientclinic(this.id).then((response) => {
- console.log(response);
- });
+ if (type == 1) {
+ // 闂ㄨ瘖璁板綍
+ listPatouthosp({ patid: this.id }).then((response) => {
+ console.log(response);
+ });
+ } else if (type == 2) {
+ listpatient({ patid: this.id }).then((response) => {
+ console.log(response);
+ });
+ } else if (type == 3) {
+ listpatient({ patid: this.id }).then((response) => {
+ console.log(response);
+ });
+ }
},
getcontactlist() {
listcontactinformation({ patid: this.id }).then((response) => {
@@ -948,9 +960,12 @@
},
// tab鍒囨崲
handleClick(tab, event) {
- if (tab.index == 1) {
- this.getList();
- }
+ this.getList(tab.index);
+ },
+ handleClickson(tab, event) {
+ console.log(tab.index, "son");
+
+ this.getList(tab.index);
},
// 鑱旂郴鏂瑰紡鏂板
Addanumber() {},
diff --git a/src/views/repositoryai/verbaltrick/index.vue b/src/views/repositoryai/verbaltrick/index.vue
index 1c28856..67ab960 100644
--- a/src/views/repositoryai/verbaltrick/index.vue
+++ b/src/views/repositoryai/verbaltrick/index.vue
@@ -13,6 +13,7 @@
class="input-with-select"
size="medium "
>
+
</el-input>
</div>
<div class="head-container" style="margin-top: 20px">
diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue
index 7ced909..ee9c433 100644
--- a/src/views/repositoryai/verbaltrick/particulars/index.vue
+++ b/src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -291,7 +291,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <span style="font-size: 12px">{{
+ <span style="font-size: 12px" v-if="indexform.scriptVoice">{{
indexform.scriptVoice.substring(
indexform.scriptVoice.lastIndexOf("/") + 1
)
@@ -341,7 +341,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <span style="font-size: 12px">{{
+ <span style="font-size: 12px" v-if="indexform.nomatchvoice">{{
indexform.nomatchvoice.substring(
indexform.nomatchvoice.lastIndexOf("/") + 1
)
@@ -390,7 +390,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <span style="font-size: 12px">{{
+ <span style="font-size: 12px" v-if="indexform.sliencevoice">{{
indexform.sliencevoice.substring(
indexform.sliencevoice.lastIndexOf("/") + 1
)
@@ -440,7 +440,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <span style="font-size: 12px">{{
+ <span style="font-size: 12px" v-if="indexform.noclearlyvoice">{{
indexform.noclearlyvoice.substring(
indexform.noclearlyvoice.lastIndexOf("/") + 1
)
@@ -932,6 +932,7 @@
this.indexform.scriptVoice = response.url;
} else if (additionalParam == 2) {
this.indexform.nomatchvoice = response.url;
+ console.log(this.indexform.nomatchvoice);
} else if (additionalParam == 3) {
this.indexform.sliencevoice = response.url;
} else if (additionalParam == 4) {
--
Gitblit v1.9.3