| | |
| | | </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-row> |
| | | <el-form-item label="过滤类型" prop="tagId"> |
| | | <el-select |
| | |
| | | > |
| | | <el-option |
| | | v-for="item in Filterreason" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="medium" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['system:user:edit']" |
| | | >修改</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="patid" |
| | | prop="patid" |
| | | key="id" |
| | | prop="id" |
| | | /> |
| | | <el-table-column label="姓名" 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"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | |
| | | <el-table-column |
| | | label="年龄" |
| | | label="审核人" |
| | | align="center" |
| | | key="age" |
| | | prop="age" |
| | | key="checkBy" |
| | | prop="checkBy" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="审核状态" |
| | | align="center" |
| | | key="checkFlag" |
| | | prop="checkFlag" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="证件编号" |
| | | align="center" |
| | | key="age" |
| | | prop="age" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="过滤类型" |
| | | align="center" |
| | | key="age" |
| | | prop="age" |
| | | width="120" |
| | | /> |
| | | <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 }} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="证件类型" |
| | | align="center" |
| | | key="idtype" |
| | | prop="idtype" |
| | | key="filterdesc" |
| | | prop="filterdesc" |
| | | width="120" |
| | | /><el-table-column |
| | | label="证件编号" |
| | | label="过滤申请说明" |
| | | align="center" |
| | | key="idno" |
| | | prop="idno" |
| | | key="filternotes" |
| | | prop="filternotes" |
| | | width="190" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-table-column |
| | | label="家庭住址" |
| | | align="center" |
| | | key="idno" |
| | | prop="idno" |
| | | key="idcardno" |
| | | prop="idcardno" |
| | | width="190" |
| | | /> |
| | | <el-table-column |
| | | label="操作日期" |
| | | label="申请日期" |
| | | align="center" |
| | | key="archivetime" |
| | | prop="archivetime" |
| | | key="applyTime" |
| | | prop="applyTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | <span>{{ formatTime(scope.row.applyTime) }}</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" |
| | | fixed="right" |
| | | width="190" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="handleUpdate(scope.row)" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:user:edit']" |
| | | ><span class="button-textxga" |
| | | ><i class="el-icon-edit"></i>取消过滤</span |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="证件类型" prop="idtype"> |
| | | <el-select v-model="form.idtype" placeholder="请选择性别"> |
| | | <el-form-item label="证件类型" prop="idcardtype"> |
| | | <el-select v-model="form.idcardtype" placeholder="请选择性别"> |
| | | <el-option |
| | | v-for="item in paperstypes" |
| | | :key="item.papersname" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="证件号" prop="idno"> |
| | | <el-form-item label="证件号" prop="idcardno"> |
| | | <el-input |
| | | v-model="form.idno" |
| | | v-model="form.idcardno" |
| | | placeholder="请输入证件号" |
| | | maxlength="50" |
| | | /> |
| | |
| | | |
| | | <script> |
| | | import { delUser } from "@/api/system/user"; |
| | | |
| | | import { |
| | | listpat_archive, |
| | | getpat_archive, |
| | | addpat_archive, |
| | | updatepat_archive, |
| | | delpat_archive, |
| | | } from "@/api/smartorpor/pat_archive"; |
| | | import { |
| | | messagelistpatient, |
| | | alterpatient, |
| | | addpatient, |
| | | listfiltration, |
| | | editfiltration, |
| | | addfiltration, |
| | | particularpatient, |
| | | deletepatient, |
| | | delfiltration, |
| | | Exporterrorpatient, |
| | | toleadpatient, |
| | | } from "@/api/patient/homepage"; |
| | | import { listtag } from "@/api/system/label"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import store from "@/store"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | |
| | | export default { |
| | |
| | | age: "", |
| | | sex: "", |
| | | tagList: [], |
| | | idno: "", |
| | | idcardno: "", |
| | | telcode: "", |
| | | idtype: "", |
| | | idcardtype: "", |
| | | relativetelcode: "", |
| | | }, |
| | | //导入进度 |
| | |
| | | id: 2, |
| | | }, |
| | | ], |
| | | Filterreason: [ |
| | | { |
| | | name: "患者死亡", |
| | | id: 1, |
| | | }, |
| | | { |
| | | name: "频繁就诊", |
| | | id: 2, |
| | | }, |
| | | { |
| | | name: "患者拒绝服务", |
| | | id: 3, |
| | | }, |
| | | { |
| | | name: "联系方式无效", |
| | | id: 4, |
| | | }, |
| | | { |
| | | name: "黑名单", |
| | | id: 5, |
| | | }, |
| | | ], |
| | | Filterreason: [], |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "label", |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | idno: undefined, |
| | | idcardno: undefined, |
| | | name: undefined, |
| | | status: undefined, |
| | | tagIds: undefined, |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.gettabList(); |
| | | this.Filterreason = store.getters.Filterreason; |
| | | }, |
| | | methods: { |
| | | /** 查询患者列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | messagelistpatient(this.queryParams).then((response) => { |
| | | listfiltration(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | |
| | | }, |
| | | /** 查询标签列表 */ |
| | | gettabList() { |
| | | const queryParams = {}; |
| | | listtag().then((response) => { |
| | | const tagqueryParams = { |
| | | pageNum: 1, |
| | | pageSize: 1000, |
| | | tagname: undefined, |
| | | tagdescription: undefined, |
| | | tagcategoryid: "0", |
| | | }; |
| | | listtag(tagqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | |
| | | age: "", |
| | | sex: "", |
| | | tagList: [], |
| | | idno: "", |
| | | idcardno: "", |
| | | telcode: "", |
| | | idtype: "", |
| | | idcardtype: "", |
| | | relativetelcode: "", |
| | | }; |
| | | // this.resetForm("form"); |
| | |
| | | this.Labelchange = true; |
| | | this.amendtag = false; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | const userIds = row.patid || this.ids; |
| | | particularpatient(userIds).then((response) => { |
| | | console.log(response); |
| | | this.form = response.data; |
| | | }); |
| | | this.amendtag = true; |
| | | this.Labelchange = true; |
| | | }, |
| | | |
| | | |
| | | //修改/新增患者 |
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | alterpatient(this.form) |
| | | editfiltration(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | } else { |
| | | addpatient(this.form) |
| | | addfiltration(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const userIds = row.userId || this.ids; |
| | | const userIds = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') |
| | | .then(function () { |
| | | return deletepatient(userIds); |
| | | return delfiltration(userIds); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |