| | |
| | | data: data |
| | | }); |
| | | } |
| | | // 更新语音服务(内) |
| | | export function sendMsg(data) { |
| | | return request({ |
| | | url: "/smartor/smsaccount/sendMsg", |
| | | method: "post", |
| | | data: data |
| | | }); |
| | | } |
| | |
| | | // 用户信息查询患者列表 |
| | | export function messagelistpatient(data) { |
| | | return request({ |
| | | url: '/smartor/patarchive/patInfoByContion', |
| | | url: '/smartor/patarchive/list', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" v-if="order" |
| | | ><el-form-item label="可预约数"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入节点" |
| | | v-model="item.person" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10" v-if="!intent"> |
| | | <el-col :span="20" |
| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | order:{ |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | |
| | | created() { |
| | |
| | | <el-button plain type="info" @click="Editsingletaskson('5')" |
| | | >中心随访</el-button |
| | | > |
| | | <!-- <el-button type="primary" round @click="sendAgain()" |
| | | >再次随访</el-button |
| | | > --> |
| | | <el-button type="primary" round @click="sendAgain()" |
| | | >短信回复</el-button |
| | | > |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <el-dialog title="患者再次随访" :visible.sync="dialogFormVisible"> |
| | | <el-dialog title="短信发送" :visible.sync="dialogFormVisible"> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-form-item label="任务名称"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | | v-model="form.taskName" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="患者名称"> |
| | | <el-input |
| | | style="width: 400px" |
| | |
| | | </el-form-item> |
| | | <el-form-item label="年龄"> |
| | | <el-input style="width: 400px" disabled v-model="form.age"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="电话"> |
| | | <el-input style="width: 400px" disabled v-model="userform.telcode"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-input |
| | |
| | | v-model="form.leavehospitaldistrictname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="随访方式"> |
| | | <el-radio-group v-model="form.resource"> |
| | | <el-radio label="1">本病区随访</el-radio> |
| | | <el-radio label="2">随访中心随访</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="即刻发送"> |
| | | <el-switch v-model="zcform.delivery"></el-switch> |
| | | </el-form-item> --> |
| | | <el-form-item label="随访时间"> |
| | | <el-date-picker |
| | | type="date" |
| | | placeholder="选择日期" |
| | | v-model="form.date1" |
| | | style="width: 100%" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="随访记录"> |
| | | <el-input type="textarea" v-model="form.remark"></el-input> |
| | | <el-form-item label="短信内容"> |
| | | <el-input type="textarea" v-model="form.content"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="setupsubtask">确认创建服务</el-button> |
| | | <el-button type="primary" @click="setupsubtask">确认发送</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | Editsingletaskson, |
| | | serviceSubtaskDetailedit, |
| | | serviceSubtaskDetailadd, |
| | | updatePersonVoices, |
| | | sendMsg, |
| | | addPersonVoices, |
| | | } from "@/api/AiCentre/index"; |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | |
| | | }, |
| | | // 创建再次随访服务 |
| | | setupsubtask() { |
| | | console.log(this.form); |
| | | let form = structuredClone(this.form); |
| | | form.longSendTime = this.formatTime(form.date1); |
| | | form.finishtime = ''; |
| | | |
| | | if (form.resource) { |
| | | if (form.resource == 2) { |
| | | form.serviceType = 10; |
| | | } |
| | | } else { |
| | | this.$modal.msgError("未选择随访方式"); |
| | | } |
| | | form.id = null; |
| | | form.sendstate = 2; |
| | | addserviceSubtask(form).then((res) => { |
| | | sendMsg({phoneNumber:this.userform.telcode,content:this.form.content}).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("创建成功"); |
| | | this.$modal.msgSuccess("发送成功"); |
| | | } else { |
| | | this.$modal.msgError("创建失败"); |
| | | } |
| | |
| | | </el-radio-group> |
| | | </el-form-item></el-col |
| | | > |
| | | <!-- <el-col :span="8"> |
| | | <el-form-item label="是否必填" prop="ismandatory"> |
| | | <el-radio-group v-model="topicobj.ismandatory"> |
| | | <el-col :span="8" |
| | | ><el-form-item label="是否预约" prop="reservation"> |
| | | <el-radio-group v-model="topicobj.reservation"> |
| | | <el-radio |
| | | @change="$forceUpdate()" |
| | | v-for="(item, index) in required" |
| | | v-for="(item, index) in reservations" |
| | | :label="item.value" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- <el-form-item |
| | | label="" |
| | | prop="scriptContent" |
| | | v-if="topicobj.scriptType == 3" |
| | | > |
| | | <div style="display: flex; margin-bottom: 10px"> |
| | | <div class="tsgnames" @click="tsgnametos">插入填空标记</div> |
| | | </div> |
| | | </el-form-item> --> |
| | | <!-- <el-row> |
| | | <el-col :span="20"> |
| | | <el-form-item |
| | | label="填空信息" |
| | | v-if=" |
| | | topicobj.scriptType == 3 && |
| | | topicobj.svyLibScriptOptions.length |
| | | " |
| | | > |
| | | <el-card class="box-card" style="width: 200%"> |
| | | <div |
| | | v-for="item in topicobj.svyLibScriptOptions" |
| | | v-if="item.isoperation != 3" |
| | | style="margin-bottom: 10px" |
| | | > |
| | | <el-input |
| | | type="text" |
| | | placeholder="填入内容信息" |
| | | v-model="item.aaa" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | @click="deletexuanx(item)" |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | ></el-button> |
| | | <span slot="prepend">{{ |
| | | "(" + item.orderno + ")" |
| | | }}</span> |
| | | </el-input> |
| | | </div> |
| | | </el-card> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> --> |
| | | |
| | | |
| | | <!-- <el-form-item label="选中指标:"> |
| | | <span style="margin-left: 30px" |
| | | ><el-tag type="success" effect="dark">{{ |
| | | topicobj.targetname ? topicobj.targetname : "未选择" |
| | | }}</el-tag></span |
| | | > |
| | | <span style="margin-left: 30px" |
| | | ><el-button type="success" round @click="gettargetInfo" |
| | | >+选择指标</el-button |
| | | ></span |
| | | > |
| | | </el-form-item> --> |
| | | </div> |
| | | <div class="headline">关联信息配置</div> |
| | | <el-divider></el-divider> |
| | |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="topicobj.picturePath" |
| | | :preview-src-list="[...topicobj.picturePath]" |
| | | :preview-src-list="topicobj.picturePath ? [topicobj.picturePath] : []" |
| | | > |
| | | </el-image> |
| | | </div> |
| | |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="item.picturePath" |
| | | :preview-src-list="[...item.picturePath]" |
| | | :preview-src-list="item.picturePath ? [item.picturePath] : []" |
| | | > |
| | | </el-image> |
| | | </div> |
| | |
| | | optionstag: [], |
| | | valuetype: [], |
| | | usable: [], |
| | | reservations: [ |
| | | { label: "预约", value: "2" }, |
| | | { label: "非预约", value: "1" }, |
| | | ], |
| | | mode: [], //方式 |
| | | // 表单校验 |
| | | rules: { |
| | |
| | | this.dynamicTags = this.topicobj.svyLibScriptTagList.map( |
| | | this.processElement |
| | | ); |
| | | console.log(this.dynamicTags,'this.dynamicTags'); |
| | | |
| | | this.scriptTypels = this.topicobj.scriptType; |
| | | this.variablelist = JSON.parse(this.topicobj.otherdata) |
| | | ? JSON.parse(this.topicobj.otherdata) |
| | |
| | | }; |
| | | listtag(tagqueryParams).then((response) => { |
| | | this.optionstag = response.rows; |
| | | console.log(this.optionstag,'optionstag'); |
| | | |
| | | }); |
| | | }, |
| | | handleClosetag(tag) { |
| | |
| | | class="topicxq" |
| | | v-for="item in topicobj.svyLibTemplateTargetoptions" |
| | | > |
| | | <el-row :gutter="5"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="选项名称"> |
| | | <el-input |
| | |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :gutter="10" v-if="topicobj.reservation == 2"> |
| | | <el-form-item label="可预约数"> |
| | | <el-input |
| | | type="number" |
| | | placeholder="请输入数字" |
| | | v-model="item.person" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :gutter="10" v-if="topicobj.branchFlag == 1"> |
| | | <el-col :span="20" |
| | | ><el-form-item label="下题跳转(序号)"> |
| | |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="item.picturePath" |
| | | :preview-src-list="[...item.picturePath]" |
| | | :preview-src-list=" |
| | | item.picturePath ? [item.picturePath] : [] |
| | | " |
| | | > |
| | | </el-image> |
| | | </div> |
| | |
| | | </el-select> |
| | | </el-form-item> --> |
| | | |
| | | |
| | | <el-row> |
| | | |
| | | <el-row :gutter="15"> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >重置</el-button |
| | | > |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >重置</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-help" |
| | | size="medium" |
| | | @click="distribute" |
| | | >新增患者过滤</el-button |
| | | > |
| | | </el-col> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | |
| | | <el-table |
| | | v-loading="loading" |
| | |
| | | query: { id: scope.row.id }, |
| | | }) |
| | | " |
| | | |
| | | ><span class="button-textsc" |
| | | ><i class="el-icon-zoom-in"></i>查看</span |
| | | ></el-button |
| | |
| | | size="medium" |
| | | type="text" |
| | | @click="handleDelete(scope.row)" |
| | | |
| | | ><span class="button-textxga" |
| | | ><i class="el-icon-edit"></i>取消过滤</span |
| | | ></el-button |
| | |
| | | /> |
| | | </el-col> |
| | | </el-row> |
| | | <el-dialog title="选择患者" :visible.sync="distributeVisible" width="70%"> |
| | | <el-row :gutter="20"> |
| | | <!--用户数据--> |
| | | <el-col :span="24" :xs="24"> |
| | | <el-form |
| | | :model="filtrqueryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="患者姓名" prop="name"> |
| | | <el-input |
| | | v-model="filtrqueryParams.name" |
| | | placeholder="请输入姓名" |
| | | maxlength="30" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="患者标签" prop="tagname"> |
| | | <el-input |
| | | v-model="filtrqueryParams.tagname" |
| | | placeholder="输入进行模糊查询" |
| | | maxlength="30" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="患者范围" prop="tagId"> |
| | | <el-select |
| | | v-model="filtrqueryParams.searchscope" |
| | | placeholder="请选择患者范围" |
| | | > |
| | | <el-option |
| | | v-for="item in source" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="distribute" |
| | | >搜索</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table v-loading="filtrloading" :data="filtruserList" height="660"> |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | fixed |
| | | label="姓名" |
| | | align="center" |
| | | key="name" |
| | | prop="name" |
| | | /> |
| | | <el-table-column |
| | | label="患者编号" |
| | | align="center" |
| | | key="patientno" |
| | | prop="patientno" |
| | | width="180" |
| | | /> |
| | | |
| | | <el-table-column label="性别" align="center" key="sex" prop="sex"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | | key="age" |
| | | prop="age" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.age" |
| | | >{{ scope.row.age }}{{ scope.row.ageUnit }}</span |
| | | ><span v-if="scope.row.age2" |
| | | >{{ scope.row.age2 }}{{ scope.row.ageUnit2 }}</span |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="出生年月" |
| | | align="center" |
| | | key="birthdate" |
| | | prop="birthdate" |
| | | width="120" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="居住地" |
| | | align="center" |
| | | key="placeOfResidence" |
| | | prop="placeOfResidence" |
| | | width="150" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="患者标签" |
| | | align="center" |
| | | key="tagList" |
| | | prop="tagList" |
| | | width="160" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-for="item in scope.row.tagList" |
| | | >{{ item.tagname }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="证件号码" |
| | | align="center" |
| | | key="idcardno" |
| | | prop="idcardno" |
| | | width="190" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="联系方式" |
| | | align="center" |
| | | key="telcode" |
| | | prop="telcode" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="建档日期" |
| | | align="center" |
| | | key="createTime" |
| | | prop="createTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="更新日期" |
| | | align="center" |
| | | prop="archivetime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatTime(scope.row.archivetime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="操作" |
| | | align="center" |
| | | width="190" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="handleUpdate(scope.row)" |
| | | ><span class="button-textxga" |
| | | ><i class="el-icon-help"></i>患者过滤</span |
| | | ></el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="filtrqueryParams.pageNum" |
| | | :limit.sync="filtrqueryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </el-col> |
| | | </el-row> |
| | | </el-dialog> |
| | | <el-dialog title="修改患者信息" :visible.sync="Labelchange" width="900px"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| | | <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="姓名" prop="name"> |
| | | <el-input |
| | | v-model="form.name" |
| | | placeholder="请输入姓名" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-select v-model="form.sex" placeholder="请选择性别"> |
| | | <el-option |
| | | v-for="dict in sextype" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="年龄" prop="age"> |
| | | <el-input |
| | | v-model="form.age" |
| | | placeholder="请输入年龄" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="过滤原因"> |
| | | <el-input |
| | | v-model="form.notrequiredreason" |
| | | type="textarea" |
| | | placeholder="请输入过滤原因" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | filtrloading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | filtrtotal: 0, |
| | | // 用户表格数据 |
| | | userList: null, |
| | | filtruserList: null, |
| | | distributeVisible: false, |
| | | |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 部门树选项 |
| | |
| | | idcardtype: "", |
| | | relativetelcode: "", |
| | | }, |
| | | filtrqueryParams: { |
| | | notrequiredFlag: 0, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | //导入进度 |
| | | dractive: 1, |
| | | // 导入展示表单 |
| | |
| | | Labelchange: false, //修改新增弹窗 |
| | | propss: { multiple: true }, |
| | | optionstag: [], //标签列表 |
| | | sextype: [ |
| | | { |
| | | value: 1, |
| | | label: "男", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "女", |
| | | }, |
| | | ], |
| | | Patientrange: [ |
| | | { |
| | | { |
| | | value: 0, |
| | | label: "所属患者", |
| | | }, |
| | |
| | | tagIds: undefined, |
| | | telcode: undefined, |
| | | }, |
| | | form: { |
| | | name: "", |
| | | age: "", |
| | | sex: "", |
| | | tagList: [], |
| | | idcardno: "", |
| | | telcode: "", |
| | | idcardtype: "", |
| | | relativetelcode: "", |
| | | }, |
| | | // 表单校验 |
| | | rules: {}, |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: "用户名称不能为空", trigger: "blur" }, |
| | | { |
| | | min: 2, |
| | | max: 20, |
| | | message: "用户名称长度必须介于 2 和 20 之间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | |
| | | sex: [{ required: true, message: "性别不能为空", trigger: "blur" }], |
| | | age: [{ required: true, message: "年龄不能为空", trigger: "blur" }], |
| | | nation: [{ required: true, message: "民族不能为空", trigger: "blur" }], |
| | | telcode: [ |
| | | { required: true, message: "联系方式不能为空", trigger: "blur" }, |
| | | { |
| | | pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, |
| | | message: "请输入正确的手机号码", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | |
| | | idcardno: [ |
| | | { required: true, message: "证件号可能为空", trigger: "blur" }, |
| | | { |
| | | pattern: |
| | | /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/, |
| | | message: "请输入正确的身份证号码", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | placeOfResidence: [ |
| | | { required: true, message: "居住地不能为空", trigger: "blur" }, |
| | | ], |
| | | birthplace: [ |
| | | { required: true, message: "出生地不能为空", trigger: "blur" }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | /** 查询患者列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | |
| | | messagelistpatient(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 调起新增过滤弹框 |
| | | distribute() { |
| | | this.distributeVisible = true; |
| | | this.filtrloading = true; |
| | | |
| | | messagelistpatient(this.filtrqueryParams).then((response) => { |
| | | this.filtruserList = response.rows; |
| | | this.filtrtotal = response.total; |
| | | this.filtrloading = false; |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | const userIds = row.id; |
| | | particularpatient(userIds).then((response) => { |
| | | this.form = response.data; |
| | | }); |
| | | this.amendtag = true; |
| | | this.Labelchange = true; |
| | | }, |
| | | /** 查询标签列表 */ |
| | | gettabList() { |
| | |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map((item) => item.patid); |
| | |
| | | |
| | | //修改/新增患者 |
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | } else { |
| | | addfiltration(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("添加成功"); |
| | | }); |
| | | } |
| | | this.reset(); |
| | | // this.idds = ""; |
| | | this.Labelchange = false; |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | this.form.isoperation = 2; |
| | | this.form.notrequiredFlag = 1; |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("患者过滤成功"); |
| | | }); |
| | | this.reset(); |
| | | // this.idds = ""; |
| | | this.Labelchange = false; |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | /** 删除按钮操作 */ |
| | |
| | | const userIds = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认取消用户编号为"' + userIds + '"的数据项过滤?') |
| | | .then( ()=> { |
| | | row.notrequiredFlag=0 |
| | | .then(() => { |
| | | row.notrequiredFlag = 0; |
| | | alterpatient(row) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | }) |
| | | |
| | | .catch(() => {}); |
| | |
| | | tableLabelhz: [ |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "", prop: "tag" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | |
| | | tableLabelhzwb: [ |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "sfzh" }, |
| | | { label: "患者编号", width: "200", prop: "sfzh" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | { label: "责任护士", width: "", prop: "nurseName" }, |
| | |
| | | topica: 1, //0全部1科室2病区 |
| | | leavehospitaldistrictcodes: [], |
| | | leaveldeptcodes: [], |
| | | hospitaldistrictcodes: [], |
| | | deptcodes: [], |
| | | }, |
| | | topicoptions: [{ children: [{ children: [] }] }], |
| | | showSearch: true, // |
| | |
| | | // { label: "入院日期", width: "170", prop: "starttime" }, |
| | | { label: "出院日期", width: "180", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "200", prop: "tag" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | |
| | | this.tableLabelhz = [ |
| | | { label: "入院日期", width: "150", prop: "starttime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "患者标签", width: "200", prop: "tag" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | |
| | | } else { |
| | | this.patientqueryParams.pids = null; |
| | | } |
| | | // 类型判断 |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.patientqueryParams.cry = 1; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | this.patientqueryParams.cry = 0; |
| | | this.patientqueryParams.allhosp = "1"; |
| | | } |
| | | // 来源判断 |
| | | |
| | | // 科室还是病区 |
| | | |
| | | if (this.patientqueryParams.searchscope == 1) { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | // 出院还是入院 |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.patientqueryParams.cry = 1; |
| | | this.patientqueryParams.hospitaldistrictcodes = []; |
| | | this.patientqueryParams.deptcodes = []; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | this.patientqueryParams.deptcodes = |
| | | this.patientqueryParams.leaveldeptcodes; |
| | | this.patientqueryParams.hospitaldistrictcodes = |
| | | this.patientqueryParams.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | this.patientqueryParams.cry = 0; |
| | | this.patientqueryParams.allhosp = "1"; |
| | | } |
| | | getTaskpatientQC(this.patientqueryParams).then((response) => { |
| | | this.patientuserList = response.rows; |
| | |
| | | item.isoperation = 1; |
| | | item.patid = item.id; |
| | | item.hospType = this.patientqueryParams.allhosp; |
| | | item.sfzh = item.idcardno; |
| | | item.sfzh = item.patientno; |
| | | item.deptCode = item.deptcode; |
| | | item.deptName = item.dept; |
| | | item.admindate = item.inhosptime; |
| | | item.sfzh = item.idcardno; |
| | | item.sfzh = item.patientno; |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | item.patfrom = 1; |
| | | } |
| | |
| | | Externallist() { |
| | | this.tableLabelhz = [ |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "idcardno" }, |
| | | { label: "患者编号", width: "200", prop: "patientno" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "出院天数", width: "", prop: "endDay" }, |
| | | ]; |