From dc3d15dfe0c4a4a85bc5b4df7959b84a02beb064 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 11 十二月 2023 10:48:04 +0800 Subject: [PATCH] 随访题库完成 --- src/comp/smartor3/dwo/dw_query_pat_archive.vue | 168 ++++++++++++++++++++++++++++--------------------------- 1 files changed, 85 insertions(+), 83 deletions(-) diff --git a/src/comp/smartor3/dwo/dw_query_pat_archive.vue b/src/comp/smartor3/dwo/dw_query_pat_archive.vue index 9cb80e9..bdaff72 100644 --- a/src/comp/smartor3/dwo/dw_query_pat_archive.vue +++ b/src/comp/smartor3/dwo/dw_query_pat_archive.vue @@ -2,88 +2,90 @@ <field name="patid" label=" 鑷ID "/> <field name="name" label=" 濮撳悕 "/> <field name="sex" label=" 鎬у埆 1:鐢� 2:濂�"/> - <field name="iccardno" label=" 璇佷欢鍙风爜 "/> + <field name="idno" 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, - iccardno: 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> \ No newline at end of file +<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, + idno: 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> -- Gitblit v1.9.3