| | |
| | | > |
| | | <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="idcardtype" |
| | | prop="idcardtype" |
| | | key="filterdesc" |
| | | prop="filterdesc" |
| | | width="120" |
| | | /><el-table-column |
| | | label="证件编号" |
| | | label="过滤申请说明" |
| | | align="center" |
| | | key="idcardno" |
| | | prop="idcardno" |
| | | key="filternotes" |
| | | prop="filternotes" |
| | | width="190" |
| | | /> |
| | | <el-table-column |
| | |
| | | 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 |
| | |
| | | |
| | | <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 { |
| | |
| | | id: 2, |
| | | }, |
| | | ], |
| | | Filterreason: [ |
| | | { |
| | | name: "患者死亡", |
| | | id: 1, |
| | | }, |
| | | { |
| | | name: "频繁就诊", |
| | | id: 2, |
| | | }, |
| | | { |
| | | name: "患者拒绝服务", |
| | | id: 3, |
| | | }, |
| | | { |
| | | name: "联系方式无效", |
| | | id: 4, |
| | | }, |
| | | { |
| | | name: "黑名单", |
| | | id: 5, |
| | | }, |
| | | ], |
| | | Filterreason: [], |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "label", |
| | |
| | | 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; |
| | |
| | | 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(); |