1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
| <dw obj="pat_archive" name="dw_query_pat_archive" used="query">
| <field name="patid" label=" 自增ID "/>
| <field name="name" label=" 姓名 "/>
| <field name="sex" label=" 性别 1:男 2:女"/>
| <field name="idcardno" label=" 证件号码 "/>
| <field name="birthdate" label=" 生日 "/>
| </dw>
| <script>
| import {
| listpat_archive,
| getpat_archive,
| delpat_archive,
| addpat_archive,
| updatepat_archive,
| } from "@/api/smartor3/pat_archive";
| export default {
| name: "dw_query_pat_archive",
| dicts: ["sys_user_sex", "sys_patientfrom"],
| data() {
| return {
| parent: null,
| // 遮罩层
| loading: true, //false,
| // 选中数组
| ids: [],
| // 非单个禁用
| single: true,
| // 非多个禁用
| multiple: true,
| // 显示搜索条件
| showSearch: false,
| // 总条数
| total: 0,
| // 表格数据
| dataList: [],
| // 弹出层标题
| title: "",
| // 是否显示弹出层
| open: false,
| // 查询参数
| queryParams: {
| pageNum: 1,
| pageSize: 10,
| name: null,
| idcardno: null,
| source: null,
| telcode: null,
| orgid: null,
| isupload: null,
| uploadTime: null,
| },
| // 表单参数
| form: {},
| // 表单校验
| rules: {},
| };
| },
| created() {
| //this.getList();
| },
| methods: {
| getList() {
| this.loading = true;
| listpat_archive(this.queryParams).then((response) => {
| this.dataList = 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;
| //alert("selections:"+this.ids[0])
| //this.$parent.selectionChanged(this.ids[0])
| },
| handleAdd() {
| this.$parent.HandleCmdDefault("bill.new", this.ids[0]);
| },
| handleUpdate() {
| this.$parent.HandleCmdDefault("bill.open", this.ids[0]);
| },
| rowChanged(row) {
| //alert(row.patid)
| //console.log(row)
| //this.$parent.selectionChanged(row.patid)
| this.$parent.patid = row.patid;
| },
| },
| };
| </script>
|
|