| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="姓名" prop="name"> |
| | | <el-form-item label="姓名" |
| | | width="100" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | placeholder="请输入姓名" |
| | |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="患者范围" prop="tagId"> |
| | | <!-- <el-form-item label="患者范围" prop="tagId"> |
| | | <el-select |
| | | v-model="queryParams.Patientid" |
| | | multiple |
| | | v-model="queryParams.searchscope" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in Patientrange" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否会员" prop="tagId"> |
| | | <el-select |
| | | v-model="queryParams.whether" |
| | | multiple |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in whether" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="过滤时间" prop="tagId"> |
| | | <el-date-picker |
| | | v-model="queryParams.value1" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | |
| | | |
| | | <el-row> |
| | | <el-form-item label="过滤类型" prop="tagId"> |
| | | <el-select |
| | | v-model="queryParams.tagIds" |
| | | multiple |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in Filterreason" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="medium" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['system:user:remove']" |
| | | >删除</el-button |
| | | > |
| | | </el-col> |
| | | <!-- <el-col :span="1.5"> </el-col> --> |
| | | </el-row> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="userList" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="id" |
| | | prop="id" |
| | | /> --> |
| | | <el-table-column |
| | | fixed |
| | | label="姓名" |
| | | width="100" |
| | | align="center" |
| | | key="name" |
| | | prop="name" |
| | | /> |
| | | <el-table-column label="姓名(缺)" align="center" key="name" prop="name" /> |
| | | <el-table-column label="性别" align="center" key="sex" prop="sex"> |
| | | <el-table-column label="性别"width="100" align="center" key="sex" prop="sex"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | |
| | | <el-table-column |
| | | label="审核人" |
| | | label="年龄" |
| | | align="center" |
| | | key="checkBy" |
| | | prop="checkBy" |
| | | width="120" |
| | | key="age" |
| | | prop="age" |
| | | width="60" |
| | | /> |
| | | <el-table-column |
| | | label="审核状态" |
| | | label="出生年月" |
| | | align="center" |
| | | key="checkFlag" |
| | | prop="checkFlag" |
| | | width="120" |
| | | /> |
| | | key="birthdate" |
| | | prop="birthdate" |
| | | width="160" |
| | | > |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="过滤类型" |
| | | align="center" |
| | | key="filterdesc" |
| | | prop="filterdesc" |
| | | key="notrequiredreason" |
| | | prop="notrequiredreason" |
| | | width="120" |
| | | /><el-table-column |
| | | label="过滤申请说明" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.futter_patient" |
| | | :value="scope.row.notrequiredreason" |
| | | /> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | label="过滤原因" |
| | | align="center" |
| | | key="filternotes" |
| | | prop="filternotes" |
| | | key="notrequiredreason" |
| | | prop="notrequiredreason" |
| | | width="190" |
| | | /> |
| | | <el-table-column |
| | | label="居住地" |
| | | align="center" |
| | | key="placeOfResidence" |
| | | prop="placeOfResidence" |
| | | width="180" |
| | | :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" |
| | |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="家庭住址" |
| | | label="建档日期" |
| | | align="center" |
| | | key="idcardno" |
| | | prop="idcardno" |
| | | width="190" |
| | | /> |
| | | <el-table-column |
| | | label="申请日期" |
| | | align="center" |
| | | key="applyTime" |
| | | prop="applyTime" |
| | | key="createTime" |
| | | prop="createTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatTime(scope.row.applyTime) }}</span> |
| | | <span>{{ formatTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="审核日期" |
| | | align="center" |
| | | key="checkTime" |
| | | prop="checkTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatTime(scope.row.checkTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | |
| | | @click=" |
| | | $router.push({ |
| | | path: '/patient/patient/profile/', |
| | | query: { id: scope.row.patid }, |
| | | query: { id: scope.row.id }, |
| | | }) |
| | | " |
| | | v-hasPermi="['system:user:edit']" |
| | | |
| | | ><span class="button-textsc" |
| | | ><i class="el-icon-zoom-in"></i>查看</span |
| | | ></el-button |
| | |
| | | size="medium" |
| | | type="text" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:user:edit']" |
| | | |
| | | ><span class="button-textxga" |
| | | ><i class="el-icon-edit"></i>取消过滤</span |
| | | ></el-button |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 添加或修改用户配置对话框 --> |
| | | <el-dialog |
| | | :title="amendtag ? '修改患者信息' : '新增患者'" |
| | | :visible.sync="Labelchange" |
| | | width="900px" |
| | | > |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="姓名" prop="name"> |
| | | <el-input |
| | | v-model="form.name" |
| | | placeholder="请输入姓名" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-select v-model="form.sex" placeholder="请选择性别"> |
| | | <el-option |
| | | v-for="dict in dict.type.sys_user_sex" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="证件类型" prop="idcardtype"> |
| | | <el-select v-model="form.idcardtype" placeholder="请选择性别"> |
| | | <el-option |
| | | v-for="item in paperstypes" |
| | | :key="item.papersname" |
| | | :label="item.papersname" |
| | | :value="item.papersname" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="证件号" prop="idcardno"> |
| | | <el-input |
| | | v-model="form.idcardno" |
| | | placeholder="请输入证件号" |
| | | maxlength="50" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="本人手机号" prop="telcode"> |
| | | <el-input |
| | | v-model="form.telcode" |
| | | placeholder="请输入手机号" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="亲属手机号" prop="relativetelcode"> |
| | | <el-input |
| | | v-model="form.relativetelcode" |
| | | placeholder="请输入亲属手机号" |
| | | type="password" |
| | | maxlength="20" |
| | | show-password |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="年龄" prop="age"> |
| | | <el-input |
| | | v-model="form.age" |
| | | placeholder="请输入年龄" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="患者标签"> |
| | | <!-- <el-select v-model="form.sex" placeholder="请选择"> --> |
| | | <el-select v-model="form.tagList" multiple placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in optionstag" |
| | | :key="item.tagid" |
| | | :label="item.tagname" |
| | | :value="item.tagid" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <!-- </el-select> --> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input |
| | | v-model="form.remark" |
| | | 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> |
| | | |
| | |
| | | import { delUser } from "@/api/system/user"; |
| | | |
| | | import { |
| | | listfiltration, |
| | | editfiltration, |
| | | patarchivelist, |
| | | alterpatient, |
| | | addfiltration, |
| | | particularpatient, |
| | | delfiltration, |
| | |
| | | |
| | | export default { |
| | | name: "Userhuanze", |
| | | dicts: ["sys_normal_disable", "sys_user_sex"], |
| | | dicts: ["sys_normal_disable", "sys_user_sex", "futter_patient"], |
| | | components: { Treeselect }, |
| | | data() { |
| | | return { |
| | |
| | | propss: { multiple: true }, |
| | | optionstag: [], //标签列表 |
| | | Patientrange: [ |
| | | { |
| | | name: "门诊", |
| | | id: 1, |
| | | { |
| | | value: 0, |
| | | label: "所属患者", |
| | | }, |
| | | { |
| | | name: "住院", |
| | | id: 2, |
| | | value: 1, |
| | | label: "科室患者", |
| | | }, |
| | | { |
| | | name: "体检", |
| | | id: 3, |
| | | value: 2, |
| | | label: "病区患者", |
| | | }, |
| | | ], |
| | | whether: [ |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | allhosp: "1", |
| | | notrequiredFlag: 1, |
| | | idcardno: undefined, |
| | | name: undefined, |
| | | status: undefined, |
| | |
| | | /** 查询患者列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listfiltration(this.queryParams).then((response) => { |
| | | patarchivelist(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | this.resetForm("queryForm"); |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.queryParams={ |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | allhosp: "1", |
| | | notrequiredFlag: 1, |
| | | }, |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | |
| | | this.amendtag = false; |
| | | }, |
| | | |
| | | |
| | | //修改/新增患者 |
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | editfiltration(this.form) |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | handleDelete(row) { |
| | | const userIds = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') |
| | | .then(function () { |
| | | return delfiltration(userIds); |
| | | .confirm('是否确认取消用户编号为"' + userIds + '"的数据项过滤?') |
| | | .then( ()=> { |
| | | row.notrequiredFlag=0 |
| | | alterpatient(row) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }) |
| | | |
| | | .catch(() => {}); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | |
| | | /** 下载模板操作 */ |
| | | importTemplate() { |
| | | this.download( |
| | | "system/user/importTemplate", |
| | | "smartor/import/getImportPatTemplate", |
| | | {}, |
| | | `user_template_${new Date().getTime()}.xlsx` |
| | | ); |