| | |
| | | }); |
| | | } |
| | | |
| | | // 各科室服务人次 |
| | | // 各课题组服务人次 |
| | | export function getDeptRanking(data) { |
| | | return request({ |
| | | url: "/smartor/patinhosp/getDeptRanking", |
| | |
| | | method: "get", |
| | | }); |
| | | } |
| | | //科室病区模板关联新增 |
| | | //课题组病区模板关联新增 |
| | | export function depthospgetson(data) { |
| | | return request({ |
| | | url: "/smartor/td/add", |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | //科室病区模板关联查询 |
| | | //课题组病区模板关联查询 |
| | | export function depthospgetsonlist(data) { |
| | | return request({ |
| | | url: "/smartor/td/list", |
| | |
| | | params: data, |
| | | }); |
| | | } |
| | | //任务科室病区模板关联查询 |
| | | //任务课题组病区模板关联查询 |
| | | export function taskdepthospgetsonlist(data) { |
| | | return request({ |
| | | url: "/smartor/taskdept/list", |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 删除科室病区模板分类 |
| | | // 删除课题组病区模板分类 |
| | | export function depthospgetsondel(id) { |
| | | return request({ |
| | | url: "/smartor/td/remove/" + id, |
| | | method: "get", |
| | | }); |
| | | } |
| | | // 删除任务科室关联 |
| | | // 删除任务课题组关联 |
| | | export function taskdepthospgetsondel(id) { |
| | | return request({ |
| | | url: "/smartor/taskdept/remove/" + id, |
| | |
| | | params: data, |
| | | }); |
| | | } |
| | | // 新增科室/病区 |
| | | // 新增课题组/病区 |
| | | export function adduserdept(data) { |
| | | return request({ |
| | | url: "/smartor/userdept/add", |
| | |
| | | **/ |
| | | |
| | | /* theme color */ |
| | | $--color-primary: #3ba2f7; |
| | | $--color-success: #13ce66; |
| | | $--color-primary: #3664D9; |
| | | $--color-success: #0ABC54; |
| | | $--color-warning: #ffba00; |
| | | $--color-danger: #ff4949; |
| | | // $--color-info: #1E1E1E; |
| | |
| | | -webkit-transition: width .28s; |
| | | transition: width 0.28s; |
| | | width: $base-sidebar-width !important; |
| | | background: -webkit-linear-gradient(bottom, #3d6df8, #5b8cff); |
| | | // background: -webkit-linear-gradient(bottom, #3d6df8, #5b8cff); |
| | | |
| | | height: 100%; |
| | | position: fixed; |
| | |
| | | // 默认菜单主题风格 |
| | | $base-menu-color:#f7f8f8; |
| | | $base-menu-color-active:#f4f4f5; |
| | | $base-menu-background:#5788fe; |
| | | $base-menu-background:#1D42F5; |
| | | // $base-menu-background:linear-gradient(90deg, #1D42F5, #6BAEF5); |
| | | |
| | | $base-logo-title-color: #ffffff; |
| | | |
| | | $base-menu-light-color:rgba(0,0,0,.70); |
| | | $base-menu-light-background:#59f97f; |
| | | $base-logo-light-title-color: #001529; |
| | | |
| | | $base-sub-menu-background:#99baed; |
| | | $base-sub-menu-hover:#001528; |
| | | $base-sub-menu-background:#aec6e8; |
| | | $base-sub-menu-hover:#6eb8fc; |
| | | |
| | | // 自定义暗色菜单风格 |
| | | /** |
| | |
| | | sipUri: `${randomNum}` + "@192.168.10.124", |
| | | password: "Smartor@2023", |
| | | displayName: "Web 小龙", |
| | | // realm: "9.208.5.18:8090", |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | console.log('当前分机号',this.sipConfig); |
| | | // 测试 |
| | | const ws = new WebSocket("wss://9.208.5.18:7443"); |
| | | ws.onopen = () => console.log("WebSocket 连接成功"); |
| | | ws.onerror = (e) => console.error("WebSocket 错误:", e); |
| | | |
| | | |
| | | // 初始化SIP连接 |
| | | |
| | | sipService.init(this.sipConfig); |
| | | sipService.onStatusChange = (status) => { |
| | |
| | | margin-right: 15px; |
| | | } |
| | | &.active { |
| | | background-color: #42b983; |
| | | background-color: #3664D9; |
| | | color: #fff; |
| | | border-color: #42b983; |
| | | border-color: #3664D9; |
| | | &::before { |
| | | content: ''; |
| | | background: #fff; |
| | |
| | | <el-form-item label=" 医院名称 " prop="hospitalname"> |
| | | <el-input prop="hospitalname" placeholder="请输入 医院名称 " clearable/> |
| | | </el-form-item> |
| | | <el-form-item label=" 科室名称 " prop="deptname"> |
| | | <el-input prop="deptname" placeholder="请输入 科室名称 " clearable /> |
| | | <el-form-item label=" 课题组名称 " prop="deptname"> |
| | | <el-input prop="deptname" placeholder="请输入 课题组名称 " clearable /> |
| | | </el-form-item> |
| | | <el-form-item label=" 医生名称 " prop="drname"> |
| | | <el-input prop="drname" placeholder="请输入 医生名称 " clearable /> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </template> |
| | | </template> |
| | |
| | | <el-table-column label=" 自增ID " align="center" prop="id" /> |
| | | <el-table-column label=" 医院名称 " align="center" prop="hospitalname" /> |
| | | <el-table-column label=" 诊断名称 " align="center" prop="diagname" /> |
| | | <el-table-column label=" 科室名称 " align="center" prop="deptname" /> |
| | | <el-table-column label=" 课题组名称 " align="center" prop="deptname" /> |
| | | <el-table-column label=" 医生名称 " align="center" prop="drname" /> |
| | | <el-table-column label=" 就诊日期 " align="center" prop="admitdate" width="180"> |
| | | <template slot-scope="scope"> |
| | |
| | | </template> |
| | | <script> |
| | | |
| | | </script> |
| | | </script> |
| | |
| | | // 随访类型 |
| | | tasktypes: (state) => [ |
| | | { |
| | | value: 1, |
| | | label: "监测评估", |
| | | value: 16, |
| | | label: "课题随访", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | value: 2, |
| | | label: "出院随访", |
| | |
| | | }, |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "监测评估", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | { |
| | | value: 14, |
| | | label: "门诊满意度", |
| | | raw: { |
| | |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | // { |
| | | // value: 8, |
| | | // label: "其他通知", |
| | | // raw: { |
| | | // cssClass: "", |
| | | // listClass: "", |
| | | // }, |
| | | // }, |
| | | |
| | | { |
| | | value: 9, |
| | | label: "体检随访", |
| | |
| | | import { login, logout, getInfo } from '@/api/login' |
| | | import { getToken, setToken, removeToken } from '@/utils/auth' |
| | | import { login, logout, getInfo } from "@/api/login"; |
| | | import { getToken, setToken, removeToken } from "@/utils/auth"; |
| | | |
| | | const user = { |
| | | state: { |
| | | token: getToken(), |
| | | name: '', |
| | | nickName:'', |
| | | Id: '', |
| | | avatar: '', |
| | | hisUserId:'', |
| | | belongWards:[], |
| | | belongDepts:[], |
| | | name: "", |
| | | nickName: "", |
| | | Id: "", |
| | | avatar: "", |
| | | hisUserId: "", |
| | | belongWards: [], |
| | | belongDepts: [], |
| | | roles: [], |
| | | permissions: [], |
| | | // 服务类型 |
| | | Serviceauthority: [ |
| | | { |
| | | value: "1", |
| | | label: "患者报告", |
| | | route: "followvisit/QuestionnaireTask", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | Serviceauthority: [ |
| | | { |
| | | value: "1", |
| | | label: "患者报告", |
| | | route: "followvisit/QuestionnaireTask", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "心电随访", |
| | | route: "followvisit/QuestionnaireTask", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | { |
| | | value: "2", |
| | | label: "心电随访", |
| | | route: "followvisit/QuestionnaireTask", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "体检随访", |
| | | route: "followvisit/particty", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | { |
| | | value: "3", |
| | | label: "体检随访", |
| | | route: "followvisit/particty", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "宣教关怀", |
| | | route: "followvisit/Missioncreation", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | { |
| | | value: "4", |
| | | label: "宣教关怀", |
| | | route: "followvisit/Missioncreation", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "出院随访", |
| | | route: "followvisit/particty", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | { |
| | | value: "5", |
| | | label: "出院随访", |
| | | route: "followvisit/particty", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "门诊随访", |
| | | route: "followvisit/particty", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | { |
| | | value: "6", |
| | | label: "门诊随访", |
| | | route: "followvisit/particty", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | value: "7", |
| | | label: "通知服务", |
| | | route: "followvisit/Missioncreation", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | { |
| | | value: "7", |
| | | label: "通知服务", |
| | | route: "followvisit/Missioncreation", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | ], |
| | | }, |
| | | |
| | | mutations: { |
| | | SET_TOKEN: (state, token) => { |
| | | state.token = token |
| | | state.token = token; |
| | | }, |
| | | SET_NAME: (state, name) => { |
| | | state.name = name |
| | | state.name = name; |
| | | }, |
| | | SET_nickNAME: (state, name) => { |
| | | state.nickName = name |
| | | state.nickName = name; |
| | | }, |
| | | SET_Id: (state, Id) => { |
| | | state.Id = Id |
| | | console.log(state.Id,'user2'); |
| | | |
| | | state.Id = Id; |
| | | console.log(state.Id, "user2"); |
| | | }, |
| | | SET_AVATAR: (state, avatar) => { |
| | | state.avatar = avatar |
| | | state.avatar = avatar; |
| | | }, |
| | | SET_ROLES: (state, roles) => { |
| | | state.roles = roles |
| | | state.roles = roles; |
| | | }, |
| | | SET_PERMISSIONS: (state, permissions) => { |
| | | state.permissions = permissions |
| | | state.permissions = permissions; |
| | | }, |
| | | SET_Serviceauthority: (state, Serviceauthority) => { |
| | | state.Serviceauthority = Serviceauthority |
| | | state.Serviceauthority = Serviceauthority; |
| | | }, |
| | | SET_leavehospitaldistrictcodes: (state, belongWards) => { |
| | | state.belongWards = belongWards |
| | | state.belongWards = belongWards; |
| | | }, |
| | | SET_hisUserId: (state, hisUserId) => { |
| | | state.hisUserId = hisUserId |
| | | state.hisUserId = hisUserId; |
| | | }, |
| | | SET_leaveldeptcodes: (state, belongDepts) => { |
| | | state.belongDepts = belongDepts |
| | | } |
| | | state.belongDepts = belongDepts; |
| | | }, |
| | | }, |
| | | |
| | | actions: { |
| | | // 登录 |
| | | Login({ commit }, userInfo) { |
| | | console.log(userInfo,'user info'); |
| | | console.log(userInfo, "user info"); |
| | | |
| | | const username = userInfo.username.trim() |
| | | const password = userInfo.password |
| | | const code = userInfo.code |
| | | const username = userInfo.username.trim(); |
| | | const password = userInfo.password; |
| | | const code = userInfo.code; |
| | | |
| | | const orgid = userInfo.orgid |
| | | const orgid = userInfo.orgid; |
| | | return new Promise((resolve, reject) => { |
| | | login(username, password, code, orgid).then(res => { |
| | | setToken(res.token) |
| | | commit('SET_TOKEN', res.token) |
| | | localStorage.setItem('orgid', orgid); |
| | | if (orgid=='30001002') { |
| | | localStorage.setItem('orgname', '浙江省立同德医院翠苑院区'); |
| | | localStorage.setItem('ZuHuID', '1400361376454545408'); |
| | | localStorage.setItem('deptCode', '1017'); |
| | | }else if (orgid=='30001003') { |
| | | localStorage.setItem('orgname', '浙江省立同德医院之江院区'); |
| | | localStorage.setItem('ZuHuID', '1400360867068907520'); |
| | | localStorage.setItem('deptCode', '01040201'); |
| | | }else if (orgid=='30001004') { |
| | | localStorage.setItem('orgname', '浙江省立同德医院闲林院区'); |
| | | localStorage.setItem('ZuHuID', '1429338802177000002'); |
| | | localStorage.setItem('deptCode', ''); |
| | | }else if (orgid=='30001005') { |
| | | localStorage.setItem('orgname', '浙江省立同德医院天目山路院区'); |
| | | localStorage.setItem('ZuHuID', '1429338802177000003'); |
| | | localStorage.setItem('deptCode', ''); |
| | | }else if (orgid=='30001006') { |
| | | localStorage.setItem('orgname', '浙江省立同德医院青山湖院区'); |
| | | localStorage.setItem('ZuHuID', '1429338802177000004'); |
| | | localStorage.setItem('deptCode', ''); |
| | | }else if (orgid=='30001007') { |
| | | localStorage.setItem('orgname', '测试院区'); |
| | | localStorage.setItem('ZuHuID', '1429338802177000005'); |
| | | localStorage.setItem('deptCode', ''); |
| | | } |
| | | resolve() |
| | | }).catch(error => { |
| | | reject(error) |
| | | }) |
| | | }) |
| | | login(username, password, code, orgid) |
| | | .then((res) => { |
| | | setToken(res.token); |
| | | commit("SET_TOKEN", res.token); |
| | | localStorage.setItem("orgid", orgid); |
| | | if (orgid == "H41010500003") { |
| | | localStorage.setItem("orgname", "河南中医药大学第一附属医院"); |
| | | localStorage.setItem("ZuHuID", "1400361376454545408"); // 请替换为实际的ZuHuID |
| | | localStorage.setItem("deptCode", "1017"); // 请替换为实际的课题组代码 |
| | | } else if (orgid == "H41082200269") { |
| | | localStorage.setItem("orgname", "博爱县人民医院"); |
| | | localStorage.setItem("ZuHuID", "1400360867068907520"); // 请替换为实际的ZuHuID |
| | | localStorage.setItem("deptCode", "01040201"); // 请替换为实际的课题组代码 |
| | | } else if (orgid == "H41078202417") { |
| | | localStorage.setItem("orgname", "辉县市中医院"); |
| | | localStorage.setItem("ZuHuID", "1429338802177000002"); // 请替换为实际的ZuHuID |
| | | localStorage.setItem("deptCode", ""); // 请替换为实际的课题组代码 |
| | | } |
| | | resolve(); |
| | | }) |
| | | .catch((error) => { |
| | | reject(error); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // 获取用户信息 |
| | | GetInfo({ commit, state }) { |
| | | return new Promise((resolve, reject) => { |
| | | getInfo().then(res => { |
| | | |
| | | const user = res.user |
| | | const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar; |
| | | if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组 |
| | | commit('SET_ROLES', res.roles) |
| | | commit('SET_PERMISSIONS', res.permissions) |
| | | } else { |
| | | commit('SET_ROLES', ['ROLE_DEFAULT']) |
| | | } |
| | | commit('SET_NAME', user.userName) |
| | | commit('SET_nickNAME', user.nickName) |
| | | commit('SET_Id', user.userId) |
| | | commit('SET_hisUserId', user.hisUserId) |
| | | commit('SET_leavehospitaldistrictcodes', user.belongWards) |
| | | commit('SET_leaveldeptcodes', user.belongDepts) |
| | | commit('SET_AVATAR', avatar) |
| | | resolve(res) |
| | | }).catch(error => { |
| | | reject(error) |
| | | }) |
| | | }) |
| | | getInfo() |
| | | .then((res) => { |
| | | const user = res.user; |
| | | const avatar = |
| | | user.avatar == "" || user.avatar == null |
| | | ? require("@/assets/images/profile.jpg") |
| | | : process.env.VUE_APP_BASE_API + user.avatar; |
| | | if (res.roles && res.roles.length > 0) { |
| | | // 验证返回的roles是否是一个非空数组 |
| | | commit("SET_ROLES", res.roles); |
| | | commit("SET_PERMISSIONS", res.permissions); |
| | | } else { |
| | | commit("SET_ROLES", ["ROLE_DEFAULT"]); |
| | | } |
| | | commit("SET_NAME", user.userName); |
| | | commit("SET_nickNAME", user.nickName); |
| | | commit("SET_Id", user.userId); |
| | | commit("SET_hisUserId", user.hisUserId); |
| | | commit("SET_leavehospitaldistrictcodes", user.belongWards); |
| | | commit("SET_leaveldeptcodes", user.belongDepts); |
| | | commit("SET_AVATAR", avatar); |
| | | resolve(res); |
| | | }) |
| | | .catch((error) => { |
| | | reject(error); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // 退出系统 |
| | | LogOut({ commit, state }) { |
| | | return new Promise((resolve, reject) => { |
| | | logout(state.token).then(() => { |
| | | commit('SET_TOKEN', '') |
| | | commit('SET_ROLES', []) |
| | | commit('SET_PERMISSIONS', []) |
| | | removeToken() |
| | | resolve() |
| | | }).catch(error => { |
| | | reject(error) |
| | | }) |
| | | }) |
| | | logout(state.token) |
| | | .then(() => { |
| | | commit("SET_TOKEN", ""); |
| | | commit("SET_ROLES", []); |
| | | commit("SET_PERMISSIONS", []); |
| | | removeToken(); |
| | | resolve(); |
| | | }) |
| | | .catch((error) => { |
| | | reject(error); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // 前端 登出 |
| | | FedLogOut({ commit }) { |
| | | return new Promise(resolve => { |
| | | commit('SET_TOKEN', '') |
| | | removeToken() |
| | | resolve() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | return new Promise((resolve) => { |
| | | commit("SET_TOKEN", ""); |
| | | removeToken(); |
| | | resolve(); |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | |
| | | export default user |
| | | export default user; |
| | |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="被投诉科室" prop="status"> |
| | | <el-form-item label="被投诉课题组" prop="status"> |
| | | <el-cascader |
| | | v-model="topqueryParams.tagid" |
| | | :options="optionss" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="medium" |
| | | :disabled="single" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="首次随访科室" |
| | | label="首次随访课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="本次科室" |
| | | label="本次课题组" |
| | | align="center" |
| | | key="visitDeptName" |
| | | prop="visitDeptName" |
| | |
| | | v-model="zcform.age" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | border-radius: 1px; |
| | | color: #ffffff; |
| | | } |
| | | |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | ::v-deep.el-radio-group { |
| | | span { |
| | | font-size: 24px; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | background-color: #6b21a8; |
| | | border-color: #6b21a8; |
| | | } |
| | | |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | .purple-button.is-disabled { |
| | | background-color: #d8b4fe; |
| | | border-color: #d8b4fe; |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="任务名称"> |
| | | <!-- <el-form-item label="任务名称"> |
| | | <el-input |
| | | v-model="topqueryParams.taskName" |
| | | placeholder="请选择任务名称" |
| | |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="应随访时间"> |
| | | <el-date-picker |
| | | v-model="dateRangefs" |
| | |
| | | placeholder="请输入患者姓名" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="诊断名称" prop="leavediagname"> |
| | | <!-- <el-form-item label="诊断名称" prop="leavediagname"> |
| | | <el-input |
| | | v-model="topqueryParams.leavediagname" |
| | | placeholder="请输入诊断名称" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="随访人员" prop="updateBy"> |
| | | <el-input |
| | | v-model="topqueryParams.updateBy" |
| | | placeholder="请输入随访人员" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="主治医生" prop="drname"> |
| | | <!-- <el-form-item label="主治医生" prop="drname"> |
| | | <el-input |
| | | v-model="topqueryParams.drname" |
| | | placeholder="请输入主治医生" |
| | |
| | | v-model="topqueryParams.managementDoctor" |
| | | placeholder="请输入主治医生" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item label="患者范围" prop="status"> |
| | | <el-cascader |
| | |
| | | </el-form> |
| | | <el-divider></el-divider> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <div class="documentf"> |
| | | <div class="document"> |
| | | <el-button |
| | |
| | | > |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <div class="documentf"> |
| | | <div class="document"> |
| | | <el-button |
| | |
| | | > |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | </el-col> --> |
| | | <!-- <el-col :span="1.5"> |
| | | <div class="documentf"> |
| | | <div class="document"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | size="medium" |
| | | @click="affiliation()" |
| | | >本人所属服务</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <div class="documentf"> |
| | | <div class="document"> |
| | |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <div class="documentf"> |
| | | <div class="document"> |
| | | <el-tooltip |
| | |
| | | </el-tooltip> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-table |
| | | v-loading="loading" |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="过滤医生" width="100" prop="filterDrname"> |
| | | <el-input |
| | |
| | | v-model="zcform.age" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | pageSize: 10, |
| | | sendstate: 2, |
| | | sort: 2, //0 出院时间(正序) 1 出院时间(倒序) 2 发送时间(正序) 3 发送时间(倒序) |
| | | serviceType: 2, |
| | | serviceType: 16, |
| | | searchscope: 3, |
| | | visitCount: 1, |
| | | scopetype: [], |
| | |
| | | }); |
| | | }, |
| | | affiliation() { |
| | | |
| | | this.topqueryParams.managementDoctor = store.getters.hisUserId; |
| | | this.getList(1); |
| | | }, |
| | |
| | | pageSize: 10, |
| | | sendstate: 2, |
| | | sort: 2, //0 出院时间(正序) 1 出院时间(倒序) 2 发送时间(正序) 3 发送时间(倒序) |
| | | serviceType: 2, |
| | | serviceType: 16, |
| | | searchscope: 3, |
| | | visitCount: 1, |
| | | scopetype: [], |
| | |
| | | if (res.code == 200) { |
| | | this.$message.success("评分保存成功"); |
| | | this.scoreDialogVisible = false; |
| | | this.selectedRows=[]; |
| | | this.$refs.userform.clearSelection() |
| | | this.selectedRows = []; |
| | | this.$refs.userform.clearSelection(); |
| | | } else { |
| | | this.$modal.msgWarning("评分保存失败"); |
| | | this.scoreDialogVisible = false; |
| | | this.selectedRows=[]; |
| | | this.$refs.userform.clearSelection() |
| | | this.selectedRows = []; |
| | | this.$refs.userform.clearSelection(); |
| | | } |
| | | }); |
| | | // 这里可以添加保存逻辑,如调用API保存评分 |
| | |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { |
| | | type: 2, |
| | | serviceType: 2, |
| | | serviceType: 16, |
| | | }, |
| | | }); |
| | | }, |
| | | //患者360跳转 |
| | | gettoken360(sfzh, drcode, drname) { |
| | | this.$modal.msgWarning('360功能暂未开通'); |
| | | return; // 阻止后续代码执行 |
| | | this.$modal.msgWarning("360功能暂未开通"); |
| | | return; // 阻止后续代码执行 |
| | | this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh; |
| | | if (this.postData.XiaoXiTou.ZuHuMC == "丽水市中医院") { |
| | | this.postData.YeWuXX.YongHuXX.YongHuID = "1400398571877961728"; |
| | |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if (row.excep == 1) { |
| | | return "warning-row"; |
| | | } else if (row.excep == 2) { |
| | | return "remind-row"; |
| | | } |
| | | return ""; |
| | | }, |
| | |
| | | } |
| | | ::v-deep.el-table .warning-row { |
| | | background: #eec4c4; |
| | | } |
| | | ::v-deep.el-table .remind-row { |
| | | background: #fcf5aa; |
| | | } |
| | | |
| | | .documentf { |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #f2f8ff; |
| | | color: #324a9b; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664d9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | background: #d0fdd8; |
| | | } |
| | | ::v-deep.ysfleftvlue .el-card__body:hover { |
| | | background: #8df8a4; |
| | | background: #0abc54; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | .button-bb { |
| | |
| | | color: #ffffff; |
| | | } |
| | | .button-zx { |
| | | background: #4fabe9; |
| | | background: #324a9b; |
| | | padding: 5px; |
| | | border-radius: 1px; |
| | | color: #ffffff; |
| | |
| | | background-color: #6b21a8; |
| | | border-color: #6b21a8; |
| | | } |
| | | |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | .purple-button.is-disabled { |
| | | background-color: #d8b4fe; |
| | | border-color: #d8b4fe; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | v-model="zcform.age" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | background: #8df8a4; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | .button-bb { |
| | | font-weight: 500; |
| | | background-color: #2ba05c; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | v-model="zcform.age" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | height: 100px; |
| | | } |
| | | } |
| | | |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | .qrcode-dialo { |
| | | // text-align: center; |
| | | // display: flex; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | >只展示本次服务信息</el-button |
| | | > |
| | | </div> |
| | | <div style="margin-left: 20px; color: #59a0f0"> |
| | | <!-- <div style="margin-left: 20px; color: #59a0f0"> |
| | | <el-link |
| | | href="https://9.208.2.207:6060/search-homepage" |
| | | target="_blank" |
| | |
| | | > |
| | | 前往CDSS查询 |
| | | </el-link> |
| | | </div> |
| | | </div> --> |
| | | <div class="merge-controls" v-if="Whetherall"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | </el-radio-group> |
| | | </div> |
| | | <div |
| | | v-if="item.showAppendInput||item.answerps" |
| | | v-if="item.showAppendInput || item.answerps" |
| | | class="append-input-container" |
| | | > |
| | | <el-input |
| | |
| | | {{ index + 1 }}、[问答]<span>{{ |
| | | item.scriptContent |
| | | }}</span> |
| | | <span v-if="item.valueType == 3">(只能输入数字)</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <div class="dev-xx" v-if="item.valueType == 3"> |
| | | <el-input |
| | | type="text" |
| | | v-numeric-only |
| | | placeholder="请输入答案" |
| | | v-model="item.scriptResult" |
| | | > |
| | | </el-input> |
| | | </div> |
| | | <div class="dev-xx" v-else> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | |
| | | <div class="scriptTopic-dev" :key="index" v-else> |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、[问答]<span>{{ |
| | | item.questiontext |
| | | item.scriptContent |
| | | }}</span> |
| | | <span v-if="item.valueType == 3">(只能输入数字)</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <div class="dev-xx" v-if="item.valueType == 3"> |
| | | <el-input |
| | | type="text" |
| | | v-numeric-only |
| | | placeholder="请输入答案" |
| | | v-model="item.scriptResult" |
| | | > |
| | | </el-input> |
| | | </div> |
| | | <div class="dev-xx" v-else> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入答案" |
| | | v-model="item.matchedtext" |
| | | v-model="item.scriptResult" |
| | | clearable |
| | | > |
| | | </el-input> |
| | |
| | | @click="sendAgain()" |
| | | >再次随访</el-button |
| | | > |
| | | </div> |
| | | <div class="tag-selector-container"> |
| | | <el-select |
| | | v-model="selectedTag" |
| | | placeholder="请选择异常状态" |
| | | clearable |
| | | style="width: 150px; margin-right: 10px" |
| | | > |
| | | <el-option |
| | | v-for="item in tagOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | <span style="display: flex; align-items: center"> |
| | | <span |
| | | class="color-indicator" |
| | | :style="{ backgroundColor: item.color }" |
| | | ></span> |
| | | <span>{{ item.label }}</span> |
| | | </span> |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | <!-- 当前选择的颜色指示器 --> |
| | | <div |
| | | v-if="selectedTag" |
| | | class="color-indicator selected-indicator" |
| | | :style="{ backgroundColor: getSelectedTagColor() }" |
| | | ></div> |
| | | |
| | | <!-- 标记说明提示 --> |
| | | <el-tooltip |
| | | v-if="selectedTag" |
| | | effect="light" |
| | | :content="getSelectedDescription()" |
| | | placement="top" |
| | | > |
| | | <i class="el-icon-info tag-info-icon"></i> |
| | | </el-tooltip> |
| | | </div> |
| | | </div> |
| | | <el-row> |
| | |
| | | <el-form-item label="年龄"> |
| | | <el-input style="width: 400px" disabled v-model="form.age"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | CallButton, |
| | | MergeAndModify, |
| | | }, |
| | | directives: { |
| | | numericOnly: { |
| | | bind(el, binding, vnode) { |
| | | // 尝试获取实际的input元素 |
| | | const input = el.tagName === "INPUT" ? el : el.querySelector("input"); |
| | | if (!input) { |
| | | console.warn("v-numeric-only: 未找到input元素"); |
| | | return; |
| | | } |
| | | |
| | | const handleInput = function (event) { |
| | | const oldValue = input.value; |
| | | const newValue = oldValue.replace(/[^\d]/g, ""); |
| | | if (newValue !== oldValue) { |
| | | input.value = newValue; |
| | | // 触发input事件,通知v-model更新 |
| | | input.dispatchEvent(new Event("input", { bubbles: true })); // 注意bubbles |
| | | } |
| | | }; |
| | | |
| | | const handlePaste = function (event) { |
| | | event.preventDefault(); |
| | | const clipboardData = event.clipboardData || window.clipboardData; |
| | | const pastedData = clipboardData.getData("text"); |
| | | const numericValue = pastedData.replace(/[^\d]/g, ""); |
| | | |
| | | // 模拟在光标位置插入纯数字文本 |
| | | const start = input.selectionStart; |
| | | const end = input.selectionEnd; |
| | | input.value = |
| | | input.value.substring(0, start) + |
| | | numericValue + |
| | | input.value.substring(end); |
| | | // 调整光标位置 |
| | | const newCursorPos = start + numericValue.length; |
| | | input.setSelectionRange(newCursorPos, newCursorPos); |
| | | |
| | | // 触发input事件 |
| | | input.dispatchEvent(new Event("input", { bubbles: true })); |
| | | }; |
| | | |
| | | input.addEventListener("input", handleInput); |
| | | input.addEventListener("paste", handlePaste); |
| | | |
| | | // 存储引用以便解绑 |
| | | el._numericOnly = { |
| | | inputHandle: handleInput, |
| | | pasteHandle: handlePaste, |
| | | inputEl: input, |
| | | }; |
| | | }, |
| | | unbind(el) { |
| | | if (el._numericOnly) { |
| | | const { inputHandle, pasteHandle, inputEl } = el._numericOnly; |
| | | inputEl.removeEventListener("input", inputHandle); |
| | | inputEl.removeEventListener("paste", pasteHandle); |
| | | delete el._numericOnly; |
| | | } |
| | | }, |
| | | }, |
| | | }, |
| | | dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"], |
| | | data() { |
| | | const validatePhone = (rule, value, callback) => { |
| | |
| | | isMergeMode: false, |
| | | mergeDialogVisible: false, |
| | | selectedServices: [], // 选中的服务列表 |
| | | selectedTag: "", |
| | | tagOptions: [ |
| | | { |
| | | value: "0", |
| | | label: "正常", |
| | | type: "normal", |
| | | color: "#7ff5e1", |
| | | description: "患者情况正常,无需特别关注", |
| | | }, |
| | | { |
| | | value: "1", |
| | | label: "异常", |
| | | type: "abnormal", |
| | | color: "#f75c5c", |
| | | description: "患者存在异常情况,需要重点关注", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "警告", |
| | | type: "warning", |
| | | color: "#fbfb4a", |
| | | description: "患者情况需要警告注意,可能存在风险", |
| | | }, |
| | | ], |
| | | zcrules: { |
| | | resource: [ |
| | | { required: true, message: "请选择随访方式", trigger: "change" }, |
| | |
| | | }, |
| | | //患者360跳转 |
| | | gettoken360(sfzh, drcode, drname) { |
| | | this.$modal.msgWarning('360功能暂未开通'); |
| | | return; // 阻止后续代码执行 |
| | | this.$modal.msgWarning("360功能暂未开通"); |
| | | return; // 阻止后续代码执行 |
| | | this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh; |
| | | if (this.postData.XiaoXiTou.ZuHuMC == "丽水市中医院") { |
| | | this.postData.YeWuXX.YongHuXX.YongHuID = "1400398571877961728"; |
| | |
| | | getuserinfo() { |
| | | const queryParams = { |
| | | pid: Number(this.patid), |
| | | allhosp: "0",//1住院2门诊3体检4出院 |
| | | allhosp: "0", //1住院2门诊3体检4出院 |
| | | }; |
| | | // 患者基础信息 |
| | | messagelistpatient(queryParams).then((response) => { |
| | |
| | | let excep = ""; |
| | | const promises = []; |
| | | this.tableDatatop.forEach((item) => { |
| | | if (item.valueType == 3 && item.scriptResult) { |
| | | // 验证是否为有效数字 |
| | | if (!/^\d+$/.test(item.scriptResult)) { |
| | | this.$message.error(`问题 "${item.scriptContent}" 必须输入数字`); |
| | | return; |
| | | } |
| | | } |
| | | var objs = item.svyLibTemplateTargetoptions.find( |
| | | (items) => items.optioncontent == item.scriptResult |
| | | ); |
| | |
| | | promises.push(serviceSubtaskDetailadd(obj)); |
| | | } |
| | | }); |
| | | |
| | | // 使用 Promise.all 等待所有异步操作完成 |
| | | Promise.all(promises) |
| | | .then((results) => { |
| | |
| | | |
| | | this.logsheetlist = res.rows[0].serviceSubtaskList; |
| | | this.templateid = this.logsheetlist[0].templateid; |
| | | this.selectedTag = this.logsheetlist[0].excep; |
| | | const targetDate = new Date(this.form.longSendTime); // 目标日期 |
| | | const now = new Date(); // 当前时间 |
| | | if (now < targetDate && this.form.sendstate == 2) { |
| | |
| | | (item) => item.id == this.id |
| | | ); |
| | | objson.remark = this.form.remark; |
| | | objson.excep = this.selectedTag; |
| | | if (sendstate) objson.sendstate = sendstate; |
| | | Editsingletaskson(objson).then((res) => { |
| | | if (res.code) { |
| | |
| | | } |
| | | return ""; |
| | | }, |
| | | getSelectedTagType() { |
| | | if (!this.selectedTag) return ""; |
| | | const tag = this.tagOptions.find( |
| | | (item) => item.value === this.selectedTag |
| | | ); |
| | | return tag ? tag.type : ""; |
| | | }, |
| | | |
| | | getSelectedTagColor() { |
| | | if (!this.selectedTag) return ""; |
| | | const tag = this.tagOptions.find( |
| | | (item) => item.value === this.selectedTag |
| | | ); |
| | | return tag ? tag.color : ""; |
| | | }, |
| | | |
| | | getSelectedDescription() { |
| | | if (!this.selectedTag) return ""; |
| | | const tag = this.tagOptions.find( |
| | | (item) => item.value === this.selectedTag |
| | | ); |
| | | return tag ? tag.description : ""; |
| | | }, |
| | | |
| | | // 调起再次发送 |
| | | sendAgain() { |
| | | document.querySelector("#app").scrollTo(0, 0); |
| | |
| | | height: 100%; /* 确保高度继承 */ |
| | | } |
| | | } |
| | | .numeric-input { |
| | | position: relative; |
| | | } |
| | | |
| | | .numeric-input::after { |
| | | content: "只能输入数字"; |
| | | position: absolute; |
| | | right: 8px; |
| | | top: 50%; |
| | | transform: translateY(-50%); |
| | | font-size: 12px; |
| | | color: #999; |
| | | background: #f5f5f5; |
| | | padding: 2px 6px; |
| | | border-radius: 4px; |
| | | } |
| | | .call-container { |
| | | padding: 20px; |
| | | background: #fff; |
| | |
| | | top: 0; |
| | | } |
| | | } |
| | | .tag-selector-container { |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 0 30px; |
| | | } |
| | | |
| | | .color-indicator { |
| | | width: 16px; |
| | | height: 16px; |
| | | border-radius: 3px; |
| | | margin-right: 8px; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .selected-indicator { |
| | | margin-left: 10px; |
| | | width: 20px; |
| | | height: 20px; |
| | | } |
| | | |
| | | .tag-info-icon { |
| | | margin-left: 10px; |
| | | color: #909399; |
| | | cursor: pointer; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | /* 确保选择器选项中也显示颜色块 */ |
| | | .el-select-dropdown__item { |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | |
| | | .tag-normal { |
| | | background-color: #7ff5e1; |
| | | } |
| | | .tag-abnormal { |
| | | background-color: #f75c5c; |
| | | } |
| | | .tag-warning { |
| | | background-color: #fbfb4a; |
| | | } |
| | | |
| | | .tag-info { |
| | | margin-left: 10px; |
| | | color: #909399; |
| | | cursor: pointer; |
| | | } |
| | | ::v-deep.offside-value .el-radio__label { |
| | | color: #fff; |
| | | } |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | >只展示本次服务信息</el-button |
| | | > |
| | | </div> |
| | | <div style="margin-left: 20px; color: #59a0f0"> |
| | | <!-- <div style="margin-left: 20px; color: #59a0f0"> |
| | | <el-link |
| | | href="https://9.208.2.207:6060/search-homepage" |
| | | target="_blank" |
| | |
| | | > |
| | | 前往CDSS查询 |
| | | </el-link> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <!-- <el-button type="success">随访后短信</el-button> --> |
| | | </div> |
| | |
| | | <el-form-item label="年龄"> |
| | | <el-input style="width: 400px" disabled v-model="form.age"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | v-model="topqueryParams.hospitaldistrictname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室名称"> |
| | | <el-form-item label="课题组名称"> |
| | | <el-input |
| | | placeholder="请输入患者科室" |
| | | placeholder="请输入患者课题组" |
| | | v-model="topqueryParams.deptname" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | width="120" |
| | | align="center" |
| | | key="deptname" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | label="科室名称" |
| | | label="课题组名称" |
| | | v-if="currenttype == 1 || currenttype == 3" |
| | | > |
| | | <el-input |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="出院科室" prop="status"> |
| | | <el-form-item label="出院课题组" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "就诊科室", width: "", prop: "impTemplate" }, |
| | | { label: "就诊课题组", width: "", prop: "impTemplate" }, |
| | | { label: "入院日期", width: "", prop: "create_time" }, |
| | | { label: "创建人", width: "", prop: "update_by" }, |
| | | ], |
| | |
| | | { label: "姓名", width: "", prop: "name" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "联系电话", width: "", prop: "telcode" }, |
| | | { label: "就诊科室", width: "", prop: "impTemplate" }, |
| | | { label: "就诊课题组", width: "", prop: "impTemplate" }, |
| | | { label: "诊断", width: "", prop: "name" }, |
| | | { label: "出院时间", width: "", prop: "name" }, |
| | | { label: "发起时间", width: "", prop: "create_time" }, |
| | |
| | | { label: "姓名", width: "", prop: "name" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "联系电话", width: "", prop: "telcode" }, |
| | | { label: "就诊科室", width: "", prop: "impTemplate" }, |
| | | { label: "就诊课题组", width: "", prop: "impTemplate" }, |
| | | { label: "诊断", width: "", prop: "name" }, |
| | | { label: "出院时间", width: "", prop: "name" }, |
| | | { label: "发起时间", width: "", prop: "create_time" }, |
| | |
| | | { label: "姓名", width: "", prop: "name" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "联系电话", width: "", prop: "telcode" }, |
| | | { label: "所在科室", width: "", prop: "impTemplate" }, |
| | | { label: "所在课题组", width: "", prop: "impTemplate" }, |
| | | { label: "完成时间", width: "", prop: "finishtime" }, |
| | | { label: "状态", width: "", prop: "sex" }, |
| | | { label: "重复次数", width: "", prop: "update_by" }, |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | <el-form-item label="执行人"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6" |
| | | ><el-select v-model="form.value" placeholder="请选择科室"> |
| | | ><el-select v-model="form.value" placeholder="请选择课题组"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="出院科室" prop="status"> |
| | | <el-form-item label="出院课题组" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 1 || |
| | | this.tasktopic == 7 || |
| | | this.tasktopic == 5 || |
| | | this.tasktopic == 6 |
| | | ) { |
| | | if (!this.topqueryParams.type) this.topqueryParams.type = "2"; |
| | |
| | | label: "问卷随访", |
| | | }, |
| | | ]; |
| | | this.topqueryParams.type=2; |
| | | this.topqueryParams.type = 2; |
| | | } else if (this.tasktopic == 4 || this.tasktopic == 8) { |
| | | if (!this.topqueryParams.type) this.topqueryParams.type = "3"; |
| | | this.longtermlist = [ |
| | |
| | | label: "宣教关怀", |
| | | }, |
| | | ]; |
| | | this.topqueryParams.type=3; |
| | | } else if (this.tasktopic == 5) { |
| | | if (!this.topqueryParams.type) this.topqueryParams.type = "1"; |
| | | this.topqueryParams.type = 3; |
| | | } else if (this.tasktopic == 16) { |
| | | if (!this.topqueryParams.type) this.topqueryParams.type = "2"; |
| | | this.longtermlist = [ |
| | | { |
| | | value: 1, |
| | |
| | | value: 2, |
| | | label: "问卷随访", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "宣教关怀", |
| | | }, |
| | | ]; |
| | | this.topqueryParams.type = 2; |
| | | } |
| | | this.topqueryParams.beginTime = this.dateRange[0]; |
| | | this.topqueryParams.endTime = this.dateRange[1]; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="首次随访科室" |
| | | label="首次随访课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="本次科室" |
| | | label="本次课题组" |
| | | align="center" |
| | | key="visitDeptName" |
| | | prop="visitDeptName" |
| | |
| | | v-model="zcform.age" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-form-item label="课题组"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | border-radius: 1px; |
| | | color: #ffffff; |
| | | } |
| | | |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | ::v-deep.el-radio-group { |
| | | span { |
| | | font-size: 24px; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | | background: #fdd0d7; |
| | | } |
| | |
| | | <el-col :span="4" class="aside"> |
| | | <div class="grid-contentsa bg-purple" style="margin-top: -180px"> |
| | | <div class="title"> |
| | | 科室服务量 |
| | | 课题组服务量 |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | </div> |
| | | <div class="dept-table-container"> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <div v-else class="empty-tip"> |
| | | <el-empty description="暂无科室服务数据"></el-empty> |
| | | <el-empty description="暂无课题组服务数据"></el-empty> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="适用科室" prop="region"> |
| | | <el-form-item label="适用课题组" prop="region"> |
| | | <el-cascader |
| | | v-model="tempDetpRelevanceslist" |
| | | :options="deptList" |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | // 科室处理 |
| | | // 课题组处理 |
| | | Departmenttreatment() { |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | const result = this.tempDetpRelevanceslist.map( |
| | |
| | | |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | ><el-form-item label="适用课题组" prop="region"> |
| | | <el-select |
| | | v-model="tempDetpRelevanceslist" |
| | | @remove-tag="removetag" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | v-model="topicobj.score" |
| | | placeholder="请输入题号" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item prop="valueType"> |
| | | <template #label> |
| | | 结果类型 |
| | | <el-tooltip |
| | | class="item" |
| | | effect="light" |
| | | content="本类型为结果收集类型;选项用于指向性题目如是否等;文本适用复杂情况;数值用于收集数值型数据" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-warning-outline"></i> |
| | | </el-tooltip> |
| | | <!-- 在标签后插入红色星号 --> |
| | | </template> |
| | | <el-radio-group v-model="topicobj.valueType"> |
| | | <el-radio :label="1">选项</el-radio> |
| | | <el-radio :label="2">文本</el-radio> |
| | | <el-radio :label="3">数值</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | delScriptVOList: [], |
| | | illnesslistapi: [], |
| | | illnesslist: [], |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | optionstag: [], |
| | |
| | | }); |
| | | } |
| | | }, |
| | | // 获取科室树 |
| | | // 获取课题组树 |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | this.flatArray = this.flattenArray(response.data); |
| | |
| | | this.Departmenttreatment(); |
| | | }, |
| | | |
| | | // 科室/院区处理 |
| | | // 课题组/院区处理 |
| | | Departmenttreatment() { |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | | console.log(item); |
| | |
| | | this.submitForm(); |
| | | }, 500); |
| | | }, |
| | | // 科室删除触发 |
| | | // 课题组删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | this.illnessVisible = false; |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }, |
| | | // 保存科室/病区 |
| | | // 保存课题组/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | if (!item.tempid) item.tempid = id; |
| | |
| | | if (this.tempDetpRelevanceslistform.length > 0) { |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("科室新增成功"); |
| | | this.$modal.msgSuccess("课题组新增成功"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | password: "", |
| | | rememberMe: false, |
| | | code: "", |
| | | orgid:'30001002', |
| | | orgid:'H41010500003', |
| | | }, |
| | | options: [ |
| | | { value: "30001002", label: "浙江省立同德医院翠苑院区" }, |
| | | { value: "30001003", label: "浙江省立同德医院之江院区" }, |
| | | { value: "30001004", label: "浙江省立同德医院闲林院区" }, |
| | | { value: "30001005", label: "浙江省立同德医院天目山路院区" }, |
| | | { value: "30001006", label: "浙江省立同德医院青山湖院区" }, |
| | | { value: "30001007", label: "测试院区" } |
| | | ], |
| | | |
| | | { value: "H41010500003", label: "河南中医药大学第一附属医院" }, |
| | | { value: "H41082200269", label: "博爱县人民医院" }, |
| | | { value: "H41078202417", label: "辉县市中医院" } |
| | | ], |
| | | loginRules: { |
| | | username: [ |
| | | { required: true, trigger: "blur", message: "请输入您的账号" }, |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | height: 100px; |
| | | } |
| | | } |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | </style> |
| | |
| | | prop="leavehospitaldistrictname" |
| | | /> |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | width="120" |
| | | align="center" |
| | | key="deptname" |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | font-size: 20px; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | .leftvlue { |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | .button-textxg { |
| | | color: #de7897; |
| | |
| | | <el-form-item label="患者范围" prop="status"> |
| | | <el-cascader |
| | | v-model="queryParams.scopetype" |
| | | placeholder="默认全部科室" |
| | | placeholder="默认全部课题组" |
| | | :options="sourcetype" |
| | | :props="{ expandTrigger: 'hover' }" |
| | | @change="handleChange" |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "全部科室", |
| | | label: "全部课题组", |
| | | }, |
| | | { |
| | | value: 4, |
| | |
| | | optionstag: [], //标签列表 |
| | | Patientrange: [ |
| | | { |
| | | name: "全部科室", |
| | | name: "全部课题组", |
| | | id: 999, |
| | | }, |
| | | { |
| | | name: "当前科室", |
| | | name: "当前课题组", |
| | | id: 1, |
| | | }, |
| | | ], |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | </style> |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="科室名称" prop="inhospno"> |
| | | <el-form-item label="课题组名称" prop="inhospno"> |
| | | <el-input |
| | | v-model="queryParams.deptname" |
| | | placeholder="请输入科室名称" |
| | | placeholder="请输入课题组名称" |
| | | clearable |
| | | style="width: 250px" |
| | | @keyup.enter.native="handleQuery" |
| | |
| | | <el-form-item label="患者范围" prop="status"> |
| | | <el-cascader |
| | | v-model="queryParams.scopetype" |
| | | placeholder="默认全部科室" |
| | | placeholder="默认全部课题组" |
| | | :options="sourcetype" |
| | | :props="{ expandTrigger: 'hover' }" |
| | | @change="handleChange" |
| | |
| | | width="120" |
| | | /> --> |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "全部科室", |
| | | label: "全部课题组", |
| | | }, |
| | | { |
| | | value: 4, |
| | |
| | | optionstag: [], //标签列表 |
| | | Patientrange: [ |
| | | { |
| | | name: "全部科室", |
| | | name: "全部课题组", |
| | | id: 999, |
| | | }, |
| | | { |
| | | name: "当前科室", |
| | | name: "当前课题组", |
| | | id: 1, |
| | | }, |
| | | ], |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | </style> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="科室/病区" prop="userName"> |
| | | <!-- <el-form-item label="课题组/病区" prop="userName"> |
| | | <el-select v-model="queryParams.value2" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in options" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-s-promotion" |
| | | size="medium" |
| | | @click="distribute" |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | font-size: 20px; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | .leftvlue { |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | .button-textxga { |
| | | color: #de7897; |
| | | } |
| | | .button-textxg { |
| | | color: #de7897; |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | width="120" |
| | | /> --> |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="regdeptname" |
| | | prop="regdeptname" |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | optionstag: [], //标签列表 |
| | | Patientrange: [ |
| | | { |
| | | name: "全部科室", |
| | | name: "全部课题组", |
| | | id: 999, |
| | | }, |
| | | { |
| | | name: "当前科室", |
| | | name: "当前课题组", |
| | | id: 1, |
| | | }, |
| | | ], |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | </style> |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="科室" width="100" prop="name"> |
| | | <el-form-item label="课题组" width="100" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.deptname" |
| | | placeholder="请输入科室名称" |
| | | placeholder="请输入课题组名称" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | |
| | | width="120" |
| | | /> --> |
| | | <el-table-column |
| | | label="就诊科室" |
| | | label="就诊课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="outhospno" label="病案号" /> |
| | | <el-table-column prop="deptname" label="科室" /> |
| | | <el-table-column prop="deptname" label="课题组" /> |
| | | </el-table> |
| | | </div> |
| | | </el-col> |
| | |
| | | <template #empty> |
| | | <div class="empty-message"> |
| | | <i class="el-icon-warning"></i> |
| | | <span>患者科室无匹配服务</span> |
| | | <span>患者课题组无匹配服务</span> |
| | | </div> |
| | | </template> |
| | | </el-table> |
| | |
| | | id: 999, |
| | | }, |
| | | { |
| | | name: "当前科室", |
| | | name: "当前课题组", |
| | | id: 1, |
| | | }, |
| | | ], |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | ); |
| | | return; |
| | | } |
| | | // 获取选中患者的科室信息(用于校验同一科室) |
| | | // 获取选中患者的课题组信息(用于校验同一课题组) |
| | | const patientDepts = new Set(); |
| | | let deptcode = ""; |
| | | this.ids.forEach((patId) => { |
| | |
| | | } |
| | | }); |
| | | |
| | | // 校验是否同一科室 |
| | | // 校验是否同一课题组 |
| | | if (patientDepts.size > 1) { |
| | | this.$modal.msgError("选中的患者不属于同一科室,无法批量添加任务"); |
| | | this.$modal.msgError("选中的患者不属于同一课题组,无法批量添加任务"); |
| | | return; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | .batch-patient-section, |
| | | .batch-task-section { |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="hospitalname" |
| | | prop="hospitalname" |
| | |
| | | id: 1, |
| | | }, |
| | | { |
| | | name: "当前科室", |
| | | name: "当前课题组", |
| | | id: 1, |
| | | }, |
| | | ], |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | </style> |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="就诊科室" |
| | | label="就诊课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="就诊科室" |
| | | label="就诊课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="就诊科室" |
| | | label="就诊课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | <div style="margin-top: 10px"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12" |
| | | >科室: |
| | | >课题组: |
| | | <span style="color: #2775b6">{{ item.deptname }}</span></el-col |
| | | > |
| | | <el-col :span="12" |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | ><el-form-item label="适用课题组" prop="region"> |
| | | <el-select |
| | | v-model="form.deptcode" |
| | | style="width: 400px" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="就诊科室"> |
| | | <el-form-item label="就诊课题组"> |
| | | <el-input v-model="topqueryParams.deptName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | </el-select> |
| | | </el-form-item> --> |
| | | |
| | | <!-- <el-form-item label="适用科室" prop="status"> |
| | | <!-- <el-form-item label="适用课题组" prop="status"> |
| | | <el-select v-model="topqueryParams.topicd" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | |
| | | dialogVisiblepatient: false, //添加患者弹框 |
| | | radio: 1, |
| | | checkboxlist: [], |
| | | // 科室/病区 |
| | | // 课题组/病区 |
| | | belongWards: [], |
| | | belongWards: [], |
| | | tableLabel: [], |
| | |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "240", prop: "dept" }, |
| | | { label: "课题组", width: "240", prop: "dept" }, |
| | | { label: "病区", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // 患者表单 |
| | |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "deptName" }, |
| | | { label: "课题组", width: "180", prop: "deptName" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "责任护士", 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) { |
| | |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "诊断", width: "", prop: "diagname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "就诊课题组", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | |
| | | console.log(this.sortlist); |
| | | }); |
| | | }, |
| | | // 获取科室列表 |
| | | // 获取课题组列表 |
| | | listDept() { |
| | | listDept().then((res) => { |
| | | this.topicoptions = this.handleTree(res.data, "deptId"); |
| | |
| | | } |
| | | } |
| | | .button-textsc { |
| | | color: #28cfe6; |
| | | color: #3664D9; |
| | | } |
| | | .button-textxg { |
| | | color: #de7897; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | |
| | | <el-table-column label="年龄" align="center" key="age" prop="age" /> |
| | | <el-table-column label="床号" align="center" key="badNo" prop="badNo" /> |
| | | <el-table-column |
| | | label="科室/病区" |
| | | label="课题组/病区" |
| | | align="center" |
| | | key="dept" |
| | | prop="dept" |
| | |
| | | </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> |
| | |
| | | </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" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | previewtftype: 0, //预览情况0新模板预览1已选择模板修改 |
| | | dialogVisiblepatient: false, //添加患者弹框 |
| | | dialogVisiblepatientjb: false, //添加疾病弹框 |
| | | deptcodesWards: [], //科室数据 |
| | | deptcodesWards: [], //课题组数据 |
| | | leavehospitaldistrictcodes: [], //病区数据 |
| | | operationcodes: [], //手术数据 |
| | | illnesscodes: [], //疾病数据 |
| | |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "240", prop: "dept" }, |
| | | { label: "课题组", width: "240", prop: "dept" }, |
| | | { label: "病区", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // 患者表单 |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "deptName" }, |
| | | { label: "课题组", width: "180", prop: "deptName" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | ], |
| | | |
| | | tasktypes: store.getters.tasktypes, |
| | | // 科室/病区 |
| | | // 课题组/病区 |
| | | belongWards: [], |
| | | deptlist: [], |
| | | hosplist: [], |
| | | diagglist: [], |
| | | operlist: [], |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | rules: { |
| | |
| | | { 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, |
| | |
| | | value: "5", |
| | | label: "微信公众号", |
| | | }, |
| | | { label: "微信小程序", value: 6 }, |
| | | { label: "微信小程序", value: '6' }, |
| | | ]; |
| | | } else if (this.form.serviceType == 6||this.form.serviceType == 14||this.form.serviceType == 15) { |
| | | this.checkboxlist = [ |
| | |
| | | this.form.serviceType == 2 || |
| | | this.form.serviceType == 3 || |
| | | this.form.serviceType == 5 || |
| | | this.form.serviceType == 16 || |
| | | this.form.serviceType == 4 |
| | | ) { |
| | | this.checkboxlist = [ |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", 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) { |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "课题组", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } |
| | |
| | | this.patientqueryParams = { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0全部1科室2病区 |
| | | topica: 1, //0全部1课题组2病区 |
| | | leavehospitaldistrictcodes: [], |
| | | leaveldeptcodes: [], |
| | | }; |
| | |
| | | this.time1 = this.form.showTimeMorn.split(","); |
| | | } |
| | | } |
| | | // 获取任务科室 |
| | | // 获取任务课题组 |
| | | if (this.form.taskid) { |
| | | this.listDept(); |
| | | } |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 任务科室删除触发 |
| | | // 任务课题组删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | }); |
| | | } |
| | | }, |
| | | // 保存科室/病区 |
| | | // 保存课题组/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | item.tempid = id; |
| | |
| | | }); |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("科室更新成功"); |
| | | this.$modal.msgSuccess("课题组更新成功"); |
| | | this.tempDetpRelevanceslistform = []; |
| | | } |
| | | }); |
| | |
| | | }); |
| | | }, |
| | | |
| | | // 科室处理 |
| | | // 课题组处理 |
| | | Departmenttreatment() { |
| | | if (!this.form.taskid) { |
| | | this.templateor = true; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | <el-input v-model="topqueryParams.templateName"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="适用科室" prop="status"> |
| | | <el-form-item label="适用课题组" prop="status"> |
| | | <el-select v-model="topqueryParams.topicd" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "就诊课题组", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "birthdate" }, |
| | | { label: "创建人(缺)", width: "", prop: "update_by" }, |
| | | ], |
| | |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "主任医师", width: "", prop: "drname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "就诊课题组", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "birthdate" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "诊断", width: "", prop: "diagname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "就诊课题组", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "birthdate" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | |
| | | this.indexAssortlist = res.rows; |
| | | }); |
| | | }, |
| | | // 获取科室列表 |
| | | // 获取课题组列表 |
| | | listDept() { |
| | | listDept().then((res) => { |
| | | this.topicoptions = this.handleTree(res.data, "deptId"); |
| | |
| | | </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> |
| | |
| | | </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" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | patientloading: false, // 遮罩层 |
| | | dialogVisiblepatient: false, //添加患者弹框 |
| | | dialogVisiblepatientjb: false, |
| | | deptcodesWards: [], //科室数据 |
| | | deptcodesWards: [], //课题组数据 |
| | | leavehospitaldistrictcodes: [], //病区数据 |
| | | operationcodes: [], //手术数据 |
| | | illnesscodes: [], //疾病数据 |
| | |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "240", prop: "dept" }, |
| | | { label: "课题组", width: "240", prop: "dept" }, |
| | | { label: "病区", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // 患者表单 |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "主治医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "deptName" }, |
| | | { label: "课题组", width: "180", prop: "deptName" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | |
| | |
| | | patientqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0全部1科室2病区 |
| | | topica: 1, //0全部1课题组2病区 |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | }, |
| | |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "科室患者", |
| | | label: "课题组患者", |
| | | }, |
| | | { |
| | | value: 2, |
| | |
| | | ], |
| | | |
| | | tasktypes: store.getters.tasktypes, |
| | | // 科室/病区 |
| | | // 课题组/病区 |
| | | belongWards: [], |
| | | deptlist: [], |
| | | hosplist: [], |
| | | diagglist: [], |
| | | operlist: [], |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | rules: { |
| | |
| | | { required: true, message: "发送设置不能为空", trigger: "blur" }, |
| | | ], |
| | | // deptcode: [ |
| | | // { required: true, message: "适用科室不能为空", trigger: "blur" }, |
| | | // { required: true, message: "适用课题组不能为空", trigger: "blur" }, |
| | | // ], |
| | | // leavehospitaldistrictcode: [ |
| | | // { required: true, message: "适用病区不能为空", trigger: "blur" }, |
| | | // ], |
| | | }, |
| | | // 科室院区查询入参 |
| | | // 课题组院区查询入参 |
| | | queryParamsdept: { |
| | | tempid: "", |
| | | type: 2, |
| | |
| | | } else if ( |
| | | this.form.serviceType == 2 || |
| | | this.form.serviceType == 3 || |
| | | this.form.serviceType == 16 || |
| | | this.form.serviceType == 4 |
| | | ) { |
| | | this.checkboxlist = [ |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", 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 == 4) { |
| | |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "dept" }, |
| | | { label: "课题组", width: "180", prop: "dept" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } |
| | |
| | | this.patientqueryParams = { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0全部1科室2病区 |
| | | topica: 1, //0全部1课题组2病区 |
| | | leaveldeptcodes: [], |
| | | leavehospitaldistrictcodes: [], |
| | | }; |
| | |
| | | this.time3 = ""; //晚上时间段 |
| | | this.time4 = ""; //晚上时间段 |
| | | }, |
| | | // 获取科室列表 |
| | | // 获取课题组列表 |
| | | listDept() { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.deptcodesWards = []; |
| | |
| | | } |
| | | }, |
| | | |
| | | // 任务科室删除触发 |
| | | // 任务课题组删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | }); |
| | | } |
| | | }, |
| | | // 保存科室/病区 |
| | | // 保存课题组/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | item.tempid = id; |
| | |
| | | }); |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("科室更新成功"); |
| | | this.$modal.msgSuccess("课题组更新成功"); |
| | | this.tempDetpRelevanceslistform = []; |
| | | } |
| | | }); |
| | |
| | | (obj) => obj.value !== tag.value |
| | | ); |
| | | }, |
| | | // 科室处理 |
| | | // 课题组处理 |
| | | Departmenttreatment() { |
| | | if (!this.form.taskid) { |
| | | this.templateor = true; |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | >新增</el-button |
| | |
| | | <!-- <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="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | ><el-form-item label="所属课题组"> |
| | | <el-select v-model="form.region" placeholder="请选择课题组"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | |
| | | sourcetype: [ |
| | | { |
| | | value: 1, |
| | | label: "科室", |
| | | label: "课题组", |
| | | children: [], |
| | | }, |
| | | { |
| | |
| | | // value: 0, |
| | | // }, |
| | | { |
| | | name: "应随访", |
| | | name: "需随访", |
| | | value: 0, |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | ::v-deep.leftvlue .el-card__body { |
| | | background: #d0e9fd; |
| | | background: #F2F8FF; |
| | | color: #324A9B; |
| | | } |
| | | ::v-deep.leftvlue .el-card__body:hover { |
| | | background: #8dc8f8; |
| | | background: #3664D9; |
| | | color: #fff; |
| | | cursor: pointer; /* 鼠标悬浮时变为手形 */ |
| | | } |
| | | ::v-deep.errleftvlue .el-card__body { |
| | |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | ><el-form-item label="适用课题组" prop="region"> |
| | | <el-select |
| | | v-model="tempDetpRelevanceslist" |
| | | @remove-tag="removetag" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | ivrLibaScriptTargetoptionList: [], |
| | | }, |
| | | labelInfovalue: [], //标签临时存储 |
| | | deptNamesvalue: [], //科室临时存储 |
| | | deptNamesvalue: [], //课题组临时存储 |
| | | dialogVisiblepatient: false, //适用疾病窗口 |
| | | dynamicTags: [], |
| | | indexAssortlist: [], |
| | |
| | | optionstag: [], |
| | | prefollowuplist: [], |
| | | postfollowuplist: [], |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | generallist: [ |
| | |
| | | this.task = this.$route.query.task; |
| | | this.queryParamsdept.tempid = this.id; |
| | | }, |
| | | // 获取科室树 |
| | | // 获取课题组树 |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | this.flatArray = this.flattenArray(response.data); |
| | |
| | | this.illnessVisible = false; |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }, |
| | | // 科室处理 |
| | | // 课题组处理 |
| | | Departmenttreatment() { |
| | | this.$modal.loading("正在修正保存数据,请稍候..."); |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | |
| | | }, 1000); |
| | | // this.submitForm(); |
| | | }, |
| | | // 保存科室/病区 |
| | | // 保存课题组/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | if (!item.tempid) item.tempid = id; |
| | |
| | | if (this.tempDetpRelevanceslistform.length > 0) { |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("科室新增成功"); |
| | | this.$modal.msgSuccess("课题组新增成功"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | // 科室删除触发 |
| | | // 课题组删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | ><el-form-item label="适用课题组" prop="region"> |
| | | <el-select |
| | | v-model="tempDetpRelevanceslist" |
| | | @remove-tag="removetag" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | ivrTaskScriptTargetoptionList: [], |
| | | }, |
| | | labelInfovalue: [], //标签临时存储 |
| | | deptNamesvalue: [], //科室临时存储 |
| | | deptNamesvalue: [], //课题组临时存储 |
| | | dialogVisiblepatient: false, //适用疾病窗口 |
| | | dynamicTags: [], |
| | | indexAssortlist: [], |
| | |
| | | optionstag: [], |
| | | prefollowuplist: [], |
| | | postfollowuplist: [], |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | generallist: [ |
| | |
| | | this.task = this.$route.query.task; |
| | | this.queryParamsdept.tempid = this.id; |
| | | }, |
| | | // 获取科室树 |
| | | // 获取课题组树 |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | this.flatArray = this.flattenArray(response.data); |
| | |
| | | this.illnessVisible = false; |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }, |
| | | // 科室处理 |
| | | // 课题组处理 |
| | | Departmenttreatment() { |
| | | this.$modal.loading("正在修正保存数据,请稍候..."); |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | |
| | | }, 1000); |
| | | // this.submitForm(); |
| | | }, |
| | | // 保存科室/病区 |
| | | // 保存课题组/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | if (!item.tempid) item.tempid = id; |
| | |
| | | if (this.tempDetpRelevanceslistform.length > 0) { |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("科室新增成功"); |
| | | this.$modal.msgSuccess("课题组新增成功"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | // 科室删除触发 |
| | | // 课题组删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | <div v-if="showDeptSelect" class="dept-select-container"> |
| | | <el-form> |
| | | <el-form> |
| | | <el-form-item label="选择科室"> |
| | | <el-form-item label="选择课题组"> |
| | | <el-select |
| | | v-model="selectedDept" |
| | | filterable |
| | | clearable |
| | | placeholder="请选择科室或输入关键词搜索" |
| | | placeholder="请选择课题组或输入关键词搜索" |
| | | @change="handleDeptChange" |
| | | popper-class="dept-select-dropdown" |
| | | > |
| | |
| | | |
| | | // 加载问卷数据 |
| | | this.loadSurveyData(); |
| | | // 获取科室列表 |
| | | // 获取课题组列表 |
| | | this.WLgetDept(); |
| | | }, |
| | | WLgetDept() { |
| | | // 调用接口获取科室数据 |
| | | // 调用接口获取课题组数据 |
| | | WLgetDept(this.encryptedParams.param6).then((res) => { |
| | | this.deptList = Object.entries(res.data).map(([code, name]) => ({ |
| | | code, |
| | |
| | | |
| | | // 准备提交数据 |
| | | prepareSubmitData() { |
| | | // 创建科室选择问题对象 |
| | | // 创建课题组选择问题对象 |
| | | const deptQuestion = { |
| | | scriptId: "dept_selection", // 自定义ID |
| | | scriptType: 4, // 4表示问答类型 |
| | | scriptContent: "选择的科室", |
| | | scriptResult: this.selectedDept || "", // 存储选择的科室名称 |
| | | scriptContent: "选择的课题组", |
| | | scriptResult: this.selectedDept || "", // 存储选择的课题组名称 |
| | | required: false, // 非必填 |
| | | sort: 999, |
| | | nextScriptno: "1", |
| | |
| | | serialnum: this.encryptedParams.param2 || this.encryptedParams.param3, |
| | | mzzy: this.surveyType, |
| | | svyLibTemplateScriptVOS: [ |
| | | deptQuestion, // 将科室选择作为第一个问题 |
| | | deptQuestion, // 将课题组选择作为第一个问题 |
| | | ...this.questionList.map((item) => { |
| | | return { |
| | | scriptId: item.scriptId, |
| | |
| | | end-placeholder="结束日期" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="科室:" prop="userName"> |
| | | <el-form-item label="课题组:" prop="userName"> |
| | | <el-select v-model="queryParams.value2" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in ksoptions" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | v-for="item in flatArraydept" |
| | |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | width="120" |
| | | prop="deptname" |
| | | align="center" |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="首次出院随访"> |
| | | <el-table-column |
| | | label="应随访" |
| | | label="需随访" |
| | | align="center" |
| | | key="needFollowUp" |
| | | prop="needFollowUp" |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="再次出院随访"> |
| | | <el-table-column |
| | | label="应随访" |
| | | label="需随访" |
| | | align="center" |
| | | key="needFollowUpAgain" |
| | | prop="needFollowUpAgain" |
| | |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="科室" |
| | | label="课题组" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="首次出院随访"> |
| | | <el-table-column |
| | | label="应随访" |
| | | label="需随访" |
| | | align="center" |
| | | key="needFollowUp" |
| | | prop="needFollowUp" |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="再次出院随访"> |
| | | <el-table-column |
| | | label="应随访" |
| | | label="需随访" |
| | | align="center" |
| | | key="needFollowUpAgain" |
| | | prop="needFollowUpAgain" |
| | |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "科室统计", |
| | | label: "课题组统计", |
| | | value: 2, |
| | | }, |
| | | ], |
| | |
| | | postOptions: [], |
| | | // 角色选项 |
| | | roleOptions: [], |
| | | // 存储所有科室代码 |
| | | // 存储所有课题组代码 |
| | | allDeptCodes: [], |
| | | // 存储所有病区代码 |
| | | allWardCodes: [], |
| | |
| | | dateRange: [], |
| | | statisticaltype: 1, |
| | | leavehospitaldistrictcodes: ["all"], // 默认选中全部病区 |
| | | deptcodes: [], // 默认选中全部科室 |
| | | deptcodes: [], // 默认选中全部课题组 |
| | | }, |
| | | // 列信息 |
| | | columns: [ |
| | |
| | | // 处理查询参数 |
| | | const params = { |
| | | ...this.queryParams, |
| | | // 如果选择了"全部",则传所有病区/科室代码 |
| | | // 如果选择了"全部",则传所有病区/课题组代码 |
| | | leavehospitaldistrictcodes: |
| | | this.queryParams.leavehospitaldistrictcodes.includes("all") |
| | | ? this.allWardCodes |
| | |
| | | // 处理查询参数 |
| | | const params = { |
| | | ...this.queryParams, |
| | | // 如果选择了"全部",则传所有病区/科室代码 |
| | | // 如果选择了"全部",则传所有病区/课题组代码 |
| | | leavehospitaldistrictcodes: [row.leavehospitaldistrictcode], |
| | | drcode: "1", |
| | | }; |
| | |
| | | tagid: row.tagid, |
| | | }; |
| | | }, |
| | | // 获取科室树 |
| | | // 获取课题组树 |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | this.flatArraydept = store.getters.belongDepts.map((dept) => { |
| | | return { |
| | | label: dept.deptName, |
| | | value: dept.deptCode, |
| | | }; |
| | | }); |
| | | // 存储所有科室代码 |
| | | // 存储所有课题组代码 |
| | | this.allDeptCodes = store.getters.belongDepts.map( |
| | | (dept) => dept.deptCode |
| | | ); |
| | |
| | | |
| | | const option = { |
| | | title: { |
| | | text: "科室/病区随访趋势", |
| | | text: "课题组/病区随访趋势", |
| | | left: "center", |
| | | textStyle: { |
| | | color: '#333', |
| | |
| | | <span class="mulsz" slot="label">按出院病区统计 </span> |
| | | </el-tab-pane> |
| | | <el-tab-pane name="sharing"> |
| | | <span class="mulsz" slot="label">按出院科室统计 </span> |
| | | <span class="mulsz" slot="label">按出院课题组统计 </span> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | |
| | | <span class="mulsz" slot="label">按出院病区统计 </span> |
| | | </el-tab-pane> |
| | | <el-tab-pane name="sharing"> |
| | | <span class="mulsz" slot="label">按出院科室统计 </span> |
| | | <span class="mulsz" slot="label">按出院课题组统计 </span> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="适用科室" prop="region"> |
| | | <el-form-item label="适用课题组" prop="region"> |
| | | <el-cascader |
| | | v-model="tempDetpRelevanceslist" |
| | | :options="deptList" |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | // 科室处理 |
| | | // 课题组处理 |
| | | Departmenttreatment() { |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | const result = this.tempDetpRelevanceslist.map( |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="适用科室" prop="region"> |
| | | <el-form-item label="适用课题组" prop="region"> |
| | | <el-cascader |
| | | style="width: 478px" |
| | | v-model="form.deptCodes" |
| | |
| | | deptId: undefined, |
| | | }, |
| | | searchscopelist: [ |
| | | { value: "1", label: "科室" }, |
| | | { value: "1", label: "课题组" }, |
| | | { value: "2", label: "病区" }, |
| | | { value: "0", label: "全部" }, |
| | | { value: "9", label: "无" }, |
| | |
| | | }, |
| | | /** 查询部门下拉树结构 */ |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | deptTreeSelect(1).then((response) => { |
| | | this.deptOptionsks = response.data; |
| | | }); |
| | |
| | | this.form.password = ""; |
| | | }); |
| | | }, |
| | | // 删除科室 |
| | | // 删除课题组 |
| | | removehpsp(valueArray) { |
| | | console.log(valueArray, "删除科室"); |
| | | console.log(valueArray, "删除课题组"); |
| | | console.log(this.form.userId, "删除"); |
| | | let code = valueArray[valueArray.length - 1]; |
| | | removeusertd(this.form.userId, code).then((res) => { |
| | |
| | | <div class="pull-right" >未配置</div> |
| | | </li> |
| | | <li class="list-group-item" v-if="user.belongDepts[0]"> |
| | | <svg-icon icon-class="tree" />所属科室 |
| | | <svg-icon icon-class="tree" />所属课题组 |
| | | <div class="pull-right" >{{ user.belongDepts[0].deptName }}</div> |
| | | </li> |
| | | <li class="list-group-item" v-else> |
| | | <svg-icon icon-class="tree" />所属科室 |
| | | <svg-icon icon-class="tree" />所属课题组 |
| | | <div class="pull-right" >未配置</div> |
| | | </li> |
| | | <li class="list-group-item"> |