| | |
| | | <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label=" 证件号码 " align="center" prop="iccardno" /> |
| | | <el-table-column label=" 证件号码 " align="center" prop="idno" /> |
| | | <el-table-column label=" 生日 " align="center" prop="birthdate" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.birthdate, '{y}-{m}-{d}') }}</span> |
| | | <span>{{ parseTime(scope.row.birthdate, "{y}-{m}-{d}") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label=" 年龄 " align="center" prop="age" /> |
| | | <el-table-column label=" 来源 " align="center" prop="source"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_patientfrom" :value="scope.row.source" /> |
| | | <dict-tag |
| | | :options="dict.type.sys_patientfrom" |
| | | :value="scope.row.source" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label=" 手机号码 " align="center" prop="telcode" /> |
| | | <el-table-column label=" 机构ID " align="center" prop="orgid"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_patientfrom" :value="scope.row.orgid" /> |
| | | <dict-tag |
| | | :options="dict.type.sys_patientfrom" |
| | | :value="scope.row.orgid" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <!--el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | |
| | | </el-table> |
| | | </template> |
| | | <script> |
| | | import { listPatarchive, getPatarchive, delPatarchive, addPatarchive, updatePatarchive } from "@/api/smartor/patarchive"; |
| | | import { |
| | | listPatarchive, |
| | | getPatarchive, |
| | | delPatarchive, |
| | | addPatarchive, |
| | | updatePatarchive, |
| | | } from "@/api/smartor/patarchive"; |
| | | export default { |
| | | name: "PatarchiveList", |
| | | dicts: ['sys_user_sex', 'sys_patientfrom'], |
| | | dicts: ["sys_user_sex", "sys_patientfrom"], |
| | | data() { |
| | | return { |
| | | parent:null, |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | name: null, |
| | | iccardno: null, |
| | | idno: null, |
| | | source: null, |
| | | telcode: null, |
| | | orgid: null, |
| | | isupload: null, |
| | | uploadTime: null |
| | | uploadTime: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | delFlag: [ |
| | | { required: true, message: " 删除标记 不能为空", trigger: "blur" } |
| | | { required: true, message: " 删除标记 不能为空", trigger: "blur" }, |
| | | ], |
| | | isupload: [ |
| | | { required: true, message: " 上传标记 不能为空", trigger: "blur" } |
| | | { required: true, message: " 上传标记 不能为空", trigger: "blur" }, |
| | | ], |
| | | } |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | initial(parent) |
| | | { |
| | | this.parent = parent |
| | | initial(parent) { |
| | | this.parent = parent; |
| | | }, |
| | | getList() { |
| | | this.loading = true; |
| | | listPatarchive(this.queryParams).then(response => { |
| | | listPatarchive(this.queryParams).then((response) => { |
| | | this.patarchiveList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.patid) |
| | | this.single = selection.length !== 1 |
| | | this.multiple = !selection.length |
| | | this.ids = selection.map((item) => item.patid); |
| | | this.single = selection.length !== 1; |
| | | this.multiple = !selection.length; |
| | | //alert("selections:"+this.ids[0]) |
| | | //this.$parent.selectionChanged(this.ids[0]) |
| | | }, |
| | |
| | | //alert(row.patid) |
| | | //console.log(row) |
| | | //this.$parent.selectionChanged(row.patid) |
| | | this.$parent.patid = row.patid |
| | | } |
| | | } |
| | | } |
| | | this.$parent.patid = row.patid; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |