| | |
| | | > |
| | | <el-form-item label="姓名" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | v-model="queryParams.patname" |
| | | placeholder="请输入姓名" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="患者编号" prop="idno"> |
| | | <el-form-item label="患者编号" prop="patid"> |
| | | <el-input |
| | | v-model="queryParams.idno" |
| | | v-model="queryParams.patid" |
| | | placeholder="请输入患者编号" |
| | | clearable |
| | | style="width: 250px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="患者编号" prop="telcode"> |
| | | <el-input |
| | | v-model="queryParams.telcode" |
| | | placeholder="请输入患者编号" |
| | | clearable |
| | | style="width: 280px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="患者范围" prop="tagId"> |
| | | <el-select |
| | | v-model="queryParams.Patientid" |
| | | multiple |
| | | placeholder="请选择" |
| | | > |
| | | <el-select v-model="queryParams.Patientid" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in Patientrange" |
| | | :key="item.id" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-form-item label="患者标签" prop="tagId"> |
| | | <!-- <el-form-item label="患者标签" prop="tagId"> |
| | | <el-select |
| | | v-model="queryParams.tagIds" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label=" 就诊日期 " prop="admitdate"> |
| | | </el-form-item> --> |
| | | <el-form-item label=" 就诊日期 " prop="createTime"> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="queryParams.admitdate" |
| | | v-model="queryParams.createTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择 就诊日期 " |
| | |
| | | </el-col> |
| | | <!-- <el-col :span="1.5"> </el-col> --> |
| | | </el-row> |
| | | |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="userList" |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="patid" |
| | | prop="patid" |
| | | key="id" |
| | | prop="id" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="patname" |
| | | prop="patname" |
| | | /> |
| | | <el-table-column |
| | | label="患者编号" |
| | | align="center" |
| | | key="Patientnumber" |
| | | prop="Patientnumber" |
| | | key="patid" |
| | | prop="patid" |
| | | /> |
| | | <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="年龄" |
| | | <!-- <el-table-column |
| | | label="年龄(缺)" |
| | | align="center" |
| | | key="age" |
| | | prop="age" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="联系电话" |
| | | label="联系电话(缺)" |
| | | align="center" |
| | | key="telephone" |
| | | prop="telephone" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="患者标签" |
| | | /> --> |
| | | <!-- <el-table-column |
| | | label="患者标签(缺)" |
| | | align="center" |
| | | key="tagList" |
| | | prop="tagList" |
| | |
| | | <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" |
| | | width="120" |
| | | /> |
| | | </el-table-column> --> |
| | | |
| | | <el-table-column |
| | | label="诊断" |
| | | align="center" |
| | | key="idno" |
| | | prop="idno" |
| | | key="diagname" |
| | | prop="diagname" |
| | | width="190" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="主述" |
| | | align="center" |
| | | key="mainsuit" |
| | | prop="mainsuit" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="科室" |
| | | align="center" |
| | | key="telcode" |
| | | prop="telcode" |
| | | key="deptname" |
| | | prop="deptname" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="医生" |
| | | align="center" |
| | | key="telcode" |
| | | prop="telcode" |
| | | key="drname" |
| | | prop="drname" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="状态" |
| | | align="center" |
| | | key="telcode" |
| | | prop="telcode" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="就诊时间" |
| | | align="center" |
| | | key="archivetime" |
| | | prop="archivetime" |
| | | key="createTime" |
| | | prop="createTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="复诊时间" |
| | | align="center" |
| | | prop="updateTime" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="160" |
| | | class-name="small-padding fixed-width" |
| | |
| | | </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, |
| | | particularpatient, |
| | | deletepatient, |
| | | Exporterrorpatient, |
| | | toleadpatient, |
| | | } from "@/api/patient/homepage"; |
| | | listPatouthosp, |
| | | getPatouthosp, |
| | | addPatouthosp, |
| | | updatePatouthosp, |
| | | delPatouthosp, |
| | | } from "@/api/smartor/patouthosp"; |
| | | import { listtag } from "@/api/system/label"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | |
| | | age: "", |
| | | sex: "", |
| | | tagList: [], |
| | | idno: "", |
| | | idcardno: "", |
| | | telcode: "", |
| | | idtype: "", |
| | | idcardtype: "", |
| | | relativetelcode: "", |
| | | }, |
| | | //导入进度 |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | idno: undefined, |
| | | name: undefined, |
| | | status: undefined, |
| | | tagIds: undefined, |
| | | telcode: undefined, |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | |
| | | /** 查询患者列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | messagelistpatient(this.queryParams).then((response) => { |
| | | listPatouthosp(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"); |
| | |
| | | //修改/新增患者 |
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | console.log(22); |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | addpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("添加成功"); |
| | | }); |
| | | this.form.isoperation = 1; |
| | | } |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("保存成功"); |
| | | }); |
| | | this.reset(); |
| | | // this.idds = ""; |
| | | this.Labelchange = false; |