| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 查询问卷任务详情 |
| | | export function Questionnairetaskgetson(data) { |
| | | return request({ |
| | | url: "/smartor/serviceSubtask/queryTaskByCondition", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // 问卷任务模板新增修改 |
| | | export function TaskQuestioncomit(data) { |
| | | return request({ |
| | |
| | | // 保存授权角色 |
| | | export function updateAuthRole(data) { |
| | | return request({ |
| | | url: '/system/user/authRole/edit', |
| | | url: '/system/user/authRole', |
| | | method: 'post', |
| | | params: data |
| | | }) |
| | |
| | | method: 'get' |
| | | }) |
| | | } |
| | | // 新增科室/病区 |
| | | export function adduserdept(data) { |
| | | return request({ |
| | | url: '/smartor/userdept/add', |
| | | method: 'post', |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | <el-form-item label="任务名称"> |
| | | <el-input v-model="topqueryParams.taskName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="发起人"> |
| | | <!-- <el-form-item label="发起人"> |
| | | <el-input v-model="topqueryParams.createBy"></el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="审核时间"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | |
| | | <el-form-item label="模板名称" prop="status"> |
| | | <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.sendstate" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" fixed align="center" key="id" prop="id" /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="sendname" |
| | | prop="sendname" |
| | | /> |
| | | <el-table-column |
| | | label="病历号" |
| | | align="center" |
| | | sortable |
| | | key="medicalRecordNo" |
| | | prop="medicalRecordNo" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column label="年龄" align="center" key="age" prop="age" /> |
| | | <el-table-column label="性别" align="center" key="sex" prop="sex" /> |
| | | <el-table-column label="床号" align="center" key="badNo" prop="badNo" /> |
| | | <el-table-column |
| | | label="病区" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | | width="120" |
| | | > |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="疾病名称" |
| | | align="center" |
| | | key="icdName" |
| | | prop="icdName" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="任务名称" |
| | | align="center" |
| | |
| | | prop="taskName" |
| | | width="120" |
| | | /> |
| | | <!-- <el-table-column label="序号" fixed align="center" key="id" prop="id" /> --> |
| | | <el-table-column |
| | | label="姓名" |
| | | |
| | | align="center" |
| | | key="sendname" |
| | | prop="sendname" |
| | | /> |
| | | <el-table-column |
| | | label="身份证号码" |
| | | |
| | | width="200" |
| | | align="center" |
| | | key="sfzh" |
| | | prop="sfzh" |
| | | /> |
| | | <!-- <el-table-column |
| | | label="病历号" |
| | | align="center" |
| | | sortable |
| | | key="medicalRecordNo" |
| | | prop="medicalRecordNo" |
| | | width="120" |
| | | /> --> |
| | | |
| | | <!-- <el-table-column label="年龄" align="center" key="age" prop="age" /> --> |
| | | <!-- <el-table-column label="性别" align="center" key="sex" prop="sex" /> --> |
| | | <!-- <el-table-column label="床号" align="center" key="badNo" prop="badNo" /> --> |
| | | <!-- <el-table-column |
| | | label="科室" |
| | | align="center" |
| | | key="deptname" |
| | | prop="deptname" |
| | | width="120" |
| | | > |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | label="病区" |
| | | align="center" |
| | | key="leavehospitaldistrictname" |
| | | prop="leavehospitaldistrictname" |
| | | width="120" |
| | | > |
| | | </el-table-column> |
| | | |
| | | <!-- <el-table-column |
| | | label="疾病名称" |
| | | align="center" |
| | | key="icdName" |
| | | prop="icdName" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> --> |
| | | |
| | | <el-table-column |
| | | label="随访方式(需调整格式)" |
| | | label="模板名称" |
| | | align="center" |
| | | key="serviceform" |
| | | prop="serviceform" |
| | | width="120" |
| | | key="templatename" |
| | | prop="templatename" |
| | | width="200" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="随访人员" |
| | | align="center" |
| | | key="operator" |
| | | prop="operator" |
| | | key="createBy" |
| | | prop="createBy" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="就诊时间" |
| | | <!-- <el-table-column |
| | | label="出院时间" |
| | | sortable |
| | | align="center" |
| | | prop="admindate" |
| | | prop="createTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatTime(scope.row.admindate) }}</span> |
| | | <span>{{ formatTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <!-- <el-table-column |
| | | label="随访时间" |
| | | sortable |
| | |
| | | <span>{{ formatTime(scope.row.finishtime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="随访状态" |
| | | fixed="right" |
| | | align="center" |
| | |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="serviceState" :value="scope.row.sendstate" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | |
| | | <span>{{ scope.row.wfs }}/{{ scope.row.yfs }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="状态" |
| | | align="center" |
| | | key="sendState" |
| | | prop="sendState" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.task_status" |
| | | :value="scope.row.sendState" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="创建人" |
| | | align="center" |
| | |
| | | <span>{{ formatTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="sendState" |
| | | prop="sendState" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.task_status" |
| | | :value="scope.row.sendState" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="120" |
| | | width="180" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | type="text" |
| | | @click="sponsor(scope.row)" |
| | | ><span class="button-zx" |
| | | ><i class="el-icon-s-promotion"></i>任务发起</span |
| | | ><i class="el-icon-s-promotion"></i>发起</span |
| | | ></el-button |
| | | > |
| | | |
| | | <el-button size="medium" type="text" @click="newAdd(scope.row)" |
| | | ><span class="button-xj" |
| | | ><i class="el-icon-circle-plus-outline"></i>任务终止</span |
| | | ><i class="el-icon-circle-plus-outline"></i>终止</span |
| | | ></el-button |
| | | > |
| | | <el-button |
| | |
| | | type="text" |
| | | @click="stop(scope.row)" |
| | | ><span class="button-zt" |
| | | ><i class="el-icon-circle-plus-outline"></i>暂停任务</span |
| | | ><i class="el-icon-circle-plus-outline"></i>暂停</span |
| | | ></el-button |
| | | > |
| | | </template> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="可用状态" prop="isAvailable"> |
| | | <el-radio-group v-model="ruleForm.isAvailable"> |
| | | <el-radio |
| | | v-for="(item, index) in usable" |
| | | :label="item.value" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="版本号" prop="name"> |
| | | <el-input |
| | | v-model="ruleForm.version" |
| | | placeholder="默认1.0" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="问卷标题" prop="svyname"> |
| | | <div style="width: 30%"> |
| | | <div style="width: 55vw"> |
| | | <el-input v-model="ruleForm.svyname"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="问卷描述" prop="description"> |
| | | <el-input |
| | | style="width: 40vw" |
| | | style="width: 55vw" |
| | | type="textarea" |
| | | :rows="5" |
| | | autosize |
| | | placeholder="请输入内容" |
| | | v-model="ruleForm.description" |
| | |
| | | <i class="el-icon-warning-outline"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | <div style="margin-bottom: 10px"> |
| | | <el-button |
| | | type="warning" |
| | | @click="$refs.child.handleAddpatient()" |
| | | >添加疾病诊断</el-button |
| | | > |
| | | </div> |
| | | <el-tag |
| | | v-for="tag in displayedTags" |
| | | :key="tag.icdid" |
| | |
| | | <el-tag v-if="hasMore" type="info">+{{ remaining }} more</el-tag> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="margin-left: 120px; margin-bottom: 10px"> |
| | | <el-button type="warning" @click="$refs.child.handleAddpatient()" |
| | | >疾病详情</el-button |
| | | > |
| | | </div> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="版本号" prop="name"> |
| | | <el-input |
| | | v-model="ruleForm.version" |
| | | placeholder="默认1.0" |
| | | ></el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="9"> |
| | | <el-form-item label="可用状态" prop="isAvailable"> |
| | | <el-radio-group v-model="ruleForm.isAvailable"> |
| | | <el-radio |
| | | v-for="(item, index) in usable" |
| | | :label="item.value" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | |
| | | <el-form-item label="问卷方式" prop="suitway"> |
| | | <el-select |
| | | v-model="ruleForm.suitway" |
| | | style="width: 55vw" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | |
| | | </el-form-item> |
| | | |
| | | <el-row> |
| | | <el-col :span="10" |
| | | ><el-form-item label="适用院区" prop="region"> |
| | | <el-select |
| | | v-model="ruleForm.campus" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in courtyardlist" |
| | | :key="item.label" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | <el-cascader |
| | | style="width: 400px;" |
| | | style="width: 55vw" |
| | | v-model="tempDetpRelevanceslist" |
| | | :options="deptList" |
| | | :props="props" |
| | |
| | | </el-row> |
| | | <el-form-item label="问卷结束语" prop="conclusion"> |
| | | <el-input |
| | | style="width: 40vw" |
| | | style="width: 55vw; line-height: 80px" |
| | | type="textarea" |
| | | :rows="5" |
| | | autosize |
| | | placeholder="请输入内容" |
| | | v-model="ruleForm.conclusion" |
| | |
| | | >{{ !Operateit ? "编辑题目" : "完整信息展示" }}</el-button |
| | | > |
| | | </div> |
| | | <div style="display: flex"> |
| | | <div style="display: flex" v-if="ruleForm.scoreType==1"> |
| | | <span |
| | | style=" |
| | | width: 180px; |
| | |
| | | svyTemplateLibScripts: [], |
| | | tempDetpRelevances: [], |
| | | svyLibTemplateTagList: [], |
| | | scoreType:'4', |
| | | isAvailable:'0' |
| | | scoreType: "4", |
| | | isAvailable: "0", |
| | | }, |
| | | indexform: { |
| | | svyLibTemplateTargetoptions: [], |
| | |
| | | // 获取数据 |
| | | getissueinfo() { |
| | | this.id = this.$route.query.id; |
| | | this.ruleForm= { |
| | | (this.ruleForm = { |
| | | svyTemplateLibScripts: [], |
| | | tempDetpRelevances: [], |
| | | svyLibTemplateTagList: [], |
| | | scoreType:'4', |
| | | isAvailable:'0' |
| | | }, |
| | | this.topicobj = {}; |
| | | scoreType: "4", |
| | | isAvailable: "0", |
| | | }), |
| | | (this.topicobj = {}); |
| | | |
| | | if (this.id) { |
| | | getQtemplateobj({ svyid: this.id }).then((res) => { |
| | |
| | | <el-radio |
| | | border |
| | | v-for="(items, index) in item.svyLibTemplateTargetoptions" |
| | | :class="items.isabnormal ? 'red-star' : ''" |
| | | :class=" |
| | | items.isabnormal && item.scriptResult == items.optioncontent |
| | | ? 'red-star' |
| | | : '' |
| | | " |
| | | :key="index" |
| | | :label="items.optioncontent" |
| | | >{{ items.optioncontent }}</el-radio |
| | |
| | | border |
| | | @change="$forceUpdate()" |
| | | v-for="(items, indexs) in item.svyLibTemplateTargetoptions" |
| | | :class="items.isabnormal ? 'red-star' : ''" |
| | | :key="indexs" |
| | | :label="items.optioncontent" |
| | | > |
| | |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | <!-- :class="items.isabnormal ? 'red-star' : ''" --> |
| | | <div v-show="item.prompt && item.scriptResult[0]"> |
| | | <el-alert :title="item.prompt" type="warning"> </el-alert> |
| | | </div> |
| | |
| | | patid: 265823, |
| | | kcb: "", |
| | | questionList: [ |
| | | { |
| | | scriptType: 1, |
| | | scriptContent: "您的年龄范围是?", |
| | | scriptResult: null, |
| | | svyLibTemplateTargetoptions: [ |
| | | { optioncontent: "18-25", value: "18-25", isabnormal: true }, |
| | | { optioncontent: "26-35", value: "26-35" }, |
| | | { optioncontent: "36-45", value: "36-45" }, |
| | | { optioncontent: "46-55", value: "46-55" }, |
| | | { optioncontent: "56+", value: "56+" }, |
| | | ], |
| | | required: true, |
| | | }, |
| | | { |
| | | scriptType: 1, |
| | | scriptContent: "您的职业是什么?", |
| | | scriptResult: null, |
| | | svyLibTemplateTargetoptions: [ |
| | | { optioncontent: "学生", value: "student" }, |
| | | { optioncontent: "教师", value: "teacher" }, |
| | | { optioncontent: "工程师", value: "engineer" }, |
| | | { optioncontent: "医生", value: "doctor" }, |
| | | { optioncontent: "其他", value: "other" }, |
| | | ], |
| | | required: false, |
| | | }, |
| | | { |
| | | scriptType: 2, |
| | | scriptContent: "您感兴趣的活动有哪些?", |
| | | scriptResult: [], |
| | | svyLibTemplateTargetoptions: [ |
| | | { optioncontent: "旅游", value: "travel", isabnormal: true }, |
| | | { optioncontent: "阅读", value: "reading", isabnormal: true }, |
| | | { optioncontent: "运动", value: "sports", isabnormal: true }, |
| | | { optioncontent: "音乐", value: "music" }, |
| | | { optioncontent: "电影", value: "movies" }, |
| | | ], |
| | | required: false, |
| | | }, |
| | | { |
| | | scriptType: 1, |
| | | scriptContent: "您的职业是什么?", |
| | | scriptResult: null, |
| | | svyLibTemplateTargetoptions: [ |
| | | { optioncontent: "学生", value: "student" }, |
| | | { optioncontent: "教师", value: "teacher" }, |
| | | { optioncontent: "工程师", value: "engineer" }, |
| | | { optioncontent: "医生", value: "doctor" }, |
| | | { optioncontent: "其他", value: "other" }, |
| | | ], |
| | | required: false, |
| | | }, |
| | | { |
| | | scriptType: 1, |
| | | scriptContent: "您的职业是什么?", |
| | | scriptResult: null, |
| | | svyLibTemplateTargetoptions: [ |
| | | { optioncontent: "学生", value: "student" }, |
| | | { optioncontent: "教师", value: "teacher" }, |
| | | { optioncontent: "工程师", value: "engineer", isabnormal: true }, |
| | | { optioncontent: "医生", value: "doctor" }, |
| | | { optioncontent: "其他", value: "other" }, |
| | | ], |
| | | required: false, |
| | | }, |
| | | { |
| | | scriptType: 1, |
| | | scriptContent: "您的职业是什么?", |
| | | scriptResult: null, |
| | | svyLibTemplateTargetoptions: [ |
| | | { optioncontent: "学生", value: "student" }, |
| | | { optioncontent: "教师", value: "teacher" }, |
| | | { optioncontent: "工程师", value: "engineer" }, |
| | | { optioncontent: "医生", value: "doctor" }, |
| | | { optioncontent: "其他", value: "other" }, |
| | | ], |
| | | required: false, |
| | | }, |
| | | { |
| | | scriptType: 4, |
| | | scriptContent: "您的姓名是什么?", |
| | | scriptResult: "name", |
| | | required: true, |
| | | scriptResult: null, |
| | | }, |
| | | // { |
| | | // scriptType: 1, |
| | | // scriptContent: "您的年龄范围是?", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // { optioncontent: "18-25", value: "18-25", isabnormal: true }, |
| | | // { optioncontent: "26-35", value: "26-35" }, |
| | | // { optioncontent: "36-45", value: "36-45" }, |
| | | // { optioncontent: "46-55", value: "46-55" }, |
| | | // { optioncontent: "56+", value: "56+" }, |
| | | // ], |
| | | // required: true, |
| | | // }, |
| | | // { |
| | | // scriptType: 1, |
| | | // scriptContent: "您的职业是什么?", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // { optioncontent: "学生", value: "student" }, |
| | | // { optioncontent: "教师", value: "teacher" }, |
| | | // { optioncontent: "工程师", value: "engineer" }, |
| | | // { optioncontent: "医生", value: "doctor" }, |
| | | // { optioncontent: "其他", value: "other" }, |
| | | // ], |
| | | // required: false, |
| | | // }, |
| | | // { |
| | | // scriptType: 2, |
| | | // scriptContent: "您感兴趣的活动有哪些?", |
| | | // scriptResult: [], |
| | | // svyLibTemplateTargetoptions: [ |
| | | // { optioncontent: "旅游", value: "travel", isabnormal: true }, |
| | | // { optioncontent: "阅读", value: "reading", isabnormal: true }, |
| | | // { optioncontent: "运动", value: "sports", isabnormal: true }, |
| | | // { optioncontent: "音乐", value: "music" }, |
| | | // { optioncontent: "电影", value: "movies" }, |
| | | // ], |
| | | // required: false, |
| | | // }, |
| | | // { |
| | | // scriptType: 1, |
| | | // scriptContent: "您的职业是什么?", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // { optioncontent: "学生", value: "student" }, |
| | | // { optioncontent: "教师", value: "teacher" }, |
| | | // { optioncontent: "工程师", value: "engineer" }, |
| | | // { optioncontent: "医生", value: "doctor" }, |
| | | // { optioncontent: "其他", value: "other" }, |
| | | // ], |
| | | // required: false, |
| | | // }, |
| | | // { |
| | | // scriptType: 1, |
| | | // scriptContent: "您的职业是什么?", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // { optioncontent: "学生", value: "student" }, |
| | | // { optioncontent: "教师", value: "teacher" }, |
| | | // { optioncontent: "工程师", value: "engineer", isabnormal: true }, |
| | | // { optioncontent: "医生", value: "doctor" }, |
| | | // { optioncontent: "其他", value: "other" }, |
| | | // ], |
| | | // required: false, |
| | | // }, |
| | | // { |
| | | // scriptType: 1, |
| | | // scriptContent: "您的职业是什么?", |
| | | // scriptResult: null, |
| | | // svyLibTemplateTargetoptions: [ |
| | | // { optioncontent: "学生", value: "student" }, |
| | | // { optioncontent: "教师", value: "teacher" }, |
| | | // { optioncontent: "工程师", value: "engineer" }, |
| | | // { optioncontent: "医生", value: "doctor" }, |
| | | // { optioncontent: "其他", value: "other" }, |
| | | // ], |
| | | // required: false, |
| | | // }, |
| | | // { |
| | | // scriptType: 4, |
| | | // scriptContent: "您的姓名是什么?", |
| | | // scriptResult: "name", |
| | | // required: true, |
| | | // scriptResult: null, |
| | | // }, |
| | | ], |
| | | jsy: null, |
| | | dialogVisible: false, |
| | |
| | | @details="detailhz" |
| | | @handleUpdate="handleUpdate" |
| | | :currentList="overallCase" |
| | | :tableLabel="tableLabelhz" |
| | | :tableLabel="tableLabelhzwb" |
| | | :serialnumber="false" |
| | | :searchTrue="true" |
| | | :multiplechoice="false" |
| | |
| | | getQtemplatelist, |
| | | getQtemplateobj, |
| | | TaskQuestioncomit, |
| | | Questionnairetaskget, |
| | | Questionnairetaskgetson, |
| | | gethetaskinfo, |
| | | delhetaskinfo, |
| | | Editsingletask, |
| | |
| | | questionList: [], |
| | | // 患者表单 |
| | | tableLabelhz: [ |
| | | { label: "出院日期", width: "150", prop: "inhosptime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "", prop: "deptName" }, |
| | | { label: "就诊/出院日期", width: "280", prop: "inhosptime" }, |
| | | { label: "科室", width: "240", prop: "deptname" }, |
| | | { label: "病区", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // 患者表单 |
| | | tableLabelhzwb: [ |
| | | { label: "出院日期", width: "150", prop: "inhosptime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "sfzh" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "180", prop: "deptName" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | |
| | | tableLabelwj: [ |
| | |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | kcb:'亲爱的患者-家属,您好!我们是浙中医大二院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。', |
| | | jsy:'生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!', |
| | | jsy:'请您注意休息和营养,生活上要劳逸结合,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!', |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | |
| | | }, |
| | | // 保存 |
| | | submitForm(formName) { |
| | | console.log(this.form.patTaskRelevances,'1.patTaskRelevances'); |
| | | console.log(this.overallCase,'this.form.overallCase'); |
| | | if (this.time4 && this.form.sendType == 3) |
| | | this.form.showTimeMorn = this.time4; |
| | | this.form.sendTimeslot = [ |
| | |
| | | } else { |
| | | return this.$modal.msgError("时间信息缺失"); |
| | | } |
| | | |
| | | console.log(this.form.patTaskRelevances,'2.patTaskRelevances'); |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "姓名" && item.name !== "电话" && item.name !== "地址" |
| | |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "出院日期", width: "150", prop: "inhosptime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "医生", width: "", prop: "drname" }, |
| | | { label: "科室", width: "", prop: "deptName" }, |
| | | { label: "就诊/出院日期", width: "280", prop: "inhosptime" }, |
| | | { label: "科室", width: "180", prop: "deptname" }, |
| | | { label: "病区", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "诊断", width: "", prop: "diagname" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "科室", width: "", prop: "deptname" }, |
| | | { label: "病区", width: "", prop: "leavehospitaldistrictname" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | ]; |
| | |
| | | handleExport() {}, |
| | | // 选择患者表数据 |
| | | handleSelectionChange(selection) { |
| | | console.log("多选患者"); |
| | | this.SelectPatientslist = selection; |
| | | console.log("多选患者",selection); |
| | | this.SelectPatientslist = structuredClone(selection); |
| | | this.multiple = !selection.length; |
| | | |
| | | // 赋值给整体选中数组 |
| | |
| | | item.isoperation = 1; |
| | | item.patid = item.id; |
| | | item.hospType = this.patientqueryParams.allhosp; |
| | | item.sfzh = item.idcardno; |
| | | item.deptCode = item.deptcode; |
| | | item.deptName = item.deptname; |
| | | item.admindate = item.inhosptime; |
| | | item.sfzh = item.idcardno; |
| | | console.log(item); |
| | | this.overallCase.push(item); |
| | | this.form.patTaskRelevances.push(item); |
| | | console.log(this.form.patTaskRelevances,'patTaskRelevances'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | getList() {}, |
| | | handleQuery() { |
| | | if (this.patientqueryParams.topica == 0) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | } else if (topica == 1) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = null; |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | } else if (topica == 2) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | } |
| | | // if (this.patientqueryParams.topica == 0) { |
| | | // this.patientqueryParams.leavehospitaldistrictcodes = |
| | | // store.getters.leavehospitaldistrictcodes; |
| | | // this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | // } else if (this.patientqueryParams.topica == 1) { |
| | | // this.patientqueryParams.leavehospitaldistrictcodes = null; |
| | | // this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | // } else if (this.patientqueryParams.topica == 2) { |
| | | // this.patientqueryParams.leavehospitaldistrictcodes = |
| | | // store.getters.leavehospitaldistrictcodes; |
| | | // this.patientqueryParams.leaveldeptcodes = null; |
| | | // } |
| | | this.handleAddpatient(); |
| | | }, |
| | | resetQuery() {}, |
| | |
| | | }; |
| | | this.questionList = []; |
| | | if (this.id) { |
| | | Questionnairetaskget({ taskid: this.id }).then((res) => { |
| | | Questionnairetaskgetson({ taskid: this.id }).then((res) => { |
| | | let filteredArray = ""; |
| | | if (res.code == 200) { |
| | | this.form = res.data; |
| | |
| | | v-if="columns[2].visible" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="部门" |
| | | align="center" |
| | | key="deptName" |
| | | prop="dept.deptName" |
| | | v-if="columns[3].visible" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | /> --> |
| | | <el-table-column |
| | | label="手机号码" |
| | | align="center" |
| | |
| | | addUser, |
| | | updateUser, |
| | | resetUserPwd, |
| | | adduserdept, |
| | | changeUserStatus, |
| | | deptTreeSelect, |
| | | } from "@/api/system/user"; |
| | |
| | | children: "children", |
| | | label: "label", |
| | | }, |
| | | props: { multiple: true, value: "id", label: "label" }, |
| | | props: { multiple: true, value: "deptCode", label: "label" }, |
| | | // 用户导入参数 |
| | | upload: { |
| | | // 是否显示弹出层(用户导入) |
| | |
| | | const userId = row.userId || this.ids; |
| | | getUser(userId).then((response) => { |
| | | this.form = response.data; |
| | | |
| | | this.form.leaveldeptcodes = JSON.parse(this.form.hospInfo); |
| | | this.form.leavehospitaldistrictcodes = JSON.parse(this.form.deptInfo); |
| | | console.log(this.form.leavehospitaldistrictcodes,'leavehospitaldistrictcodes'); |
| | | console.log(this.form.leaveldeptcodes,'leaveldeptcodes'); |
| | | |
| | | this.postOptions = response.posts; |
| | | this.roleOptions = response.roles; |
| | | this.$set(this.form, "postIds", response.postIds); |
| | |
| | | this.form.leavehospitaldistrictcodes = this.form.leavehospitaldistrictcodes.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | | console.log(this.form.leavehospitaldistrictcodes,'leavehospitaldistrictcodes'); |
| | | console.log(this.form.leaveldeptcodes,'leaveldeptcodes'); |
| | | |
| | | |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 新增数据 |
| | | adduserdept(){ |
| | | if (this.form.leavehospitaldistrictcodes[0]) { |
| | | this.form.leavehospitaldistrictcodes.forEach((dept) => { |
| | | adduserdept({deptCode:dept,deptType:2,userId:this.form.userId}).then((response) => { |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }) |
| | | } |
| | | if (this.form.leaveldeptcodes[0]) { |
| | | this.form.leaveldeptcodes.forEach((dept) => { |
| | | adduserdept({deptCode:dept,deptType:1,userId:this.form.userId}).then((response) => { |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | adduserdept(this.form).then((response) => { |
| | | this.$modal.msgSuccess("添加成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const userIds = row.userId || this.ids; |