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_list_pat_med_bloodsugar.vue | 289 +++++++++++++++++++++++++++++++++------------------------
1 files changed, 167 insertions(+), 122 deletions(-)
diff --git a/src/comp/smartor3/dwo/dw_list_pat_med_bloodsugar.vue b/src/comp/smartor3/dwo/dw_list_pat_med_bloodsugar.vue
index cab09ed..a267b12 100644
--- a/src/comp/smartor3/dwo/dw_list_pat_med_bloodsugar.vue
+++ b/src/comp/smartor3/dwo/dw_list_pat_med_bloodsugar.vue
@@ -1,124 +1,169 @@
<template>
- <div>
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button size="mini" plain="true" icon="el-icon-plus" v-hasPermi="['smartor:patinhosp:add']" type="primary" @click="handleAdd">鏂板</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button size="mini" plain="true" icon="el-icon-edit" :disabled="single" v-hasPermi="['smartor:patinhosp:edit']" type="success" @click="handleUpdate">淇敼</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button size="mini" plain="true" icon="el-icon-delete" :disabled="multiple" v-hasPermi="['smartor:patinhosp:remove']" type="danger" @click="handleDelete">鍒犻櫎</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button size="mini" plain="true" icon="el-icon-download" v-hasPermi="['smartor:patinhosp:export']" type="warning" @click="handleExport">瀵煎嚭</el-button>
- </el-col>
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"/>
- </el-row>
- <el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange" @row-click="rowChanged">
- <el-table-column width="50" type="selection" align="center"/>
- <el-table-column prop="bloodsugarid" label=" 鑷ID " align="center"/>
- <el-table-column prop="serialnum" label=" 娴佹按鍙� " align="center"/>
- <el-table-column prop="recordtime" label=" 璁板綍鏃堕棿 " align="center"/>
- <el-table-column prop="orgid" label=" 鏈烘瀯ID " align="center"/>
- <el-table-column prop="del_flag" label=" 鍒犻櫎鏍囪 " align="center"/>
- <el-table-column prop="update_by" label=" 鏇存柊浜� " align="center"/>
- <el-table-column prop="update_time" label=" 鏇存柊鏃堕棿 " align="center"/>
- <el-table-column prop="create_by" label=" 鍒涘缓浜� " align="center"/>
- <el-table-column prop="create_time" label=" 鍒涘缓鏃堕棿 " align="center"/>
- <el-table-column prop="isupload" label=" 涓婁紶鏍囪 " align="center"/>
- <el-table-column prop="upload_time" label=" 涓婁紶鏃堕棿 " align="center"/>
- <el-table-column prop="patid" label=" 妗fID " align="center"/>
- <el-table-column prop="typename" label=" 鏁版嵁绫诲瀷 " align="center"/>
- <el-table-column prop="sugarlevel" label=" 琛�绯栧�� " align="center"/>
- <el-table-column prop="sourcename" label=" 鏁版嵁鏉ユ簮 " align="center"/>
- <el-table-column prop="sugarlevelempty" label=" 绌鸿吂琛�绯� " align="center"/>
- <el-table-column prop="visittype" label=" 灏辫瘖绫诲瀷" align="center"/>
- <el-table-column prop="visitid" label=" 灏辫瘖ID" align="center"/>
- <el-table-column prop="pid" label=" 鐖禝D" align="center"/>
- <el-table-column prop="guid" label=" GUID" align="center"/>
- </el-table>
- </div>
+ <div>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ size="mini"
+ plain="true"
+ icon="el-icon-plus"
+ v-hasPermi="['smartor:patinhosp:add']"
+ type="primary"
+ @click="handleAdd"
+ >鏂板</el-button
+ >
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ size="mini"
+ plain="true"
+ icon="el-icon-edit"
+ :disabled="single"
+ v-hasPermi="['smartor:patinhosp:edit']"
+ type="success"
+ @click="handleUpdate"
+ >淇敼</el-button
+ >
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ size="mini"
+ plain="true"
+ icon="el-icon-delete"
+ :disabled="multiple"
+ v-hasPermi="['smartor:patinhosp:remove']"
+ type="danger"
+ @click="handleDelete"
+ >鍒犻櫎</el-button
+ >
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ size="mini"
+ plain="true"
+ icon="el-icon-download"
+ v-hasPermi="['smartor:patinhosp:export']"
+ type="warning"
+ @click="handleExport"
+ >瀵煎嚭</el-button
+ >
+ </el-col>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" />
+ </el-row>
+ <el-table
+ v-loading="loading"
+ :data="dataList"
+ @selection-change="handleSelectionChange"
+ @row-click="rowChanged"
+ >
+ <el-table-column width="50" type="selection" align="center" />
+ <el-table-column prop="bloodsugarid" label=" 鑷ID " align="center" />
+ <el-table-column prop="serialnum" label=" 娴佹按鍙� " align="center" />
+ <el-table-column prop="recordtime" label=" 璁板綍鏃堕棿 " align="center" />
+ <el-table-column prop="orgid" label=" 鏈烘瀯ID " align="center" />
+ <el-table-column prop="del_flag" label=" 鍒犻櫎鏍囪 " align="center" />
+ <el-table-column prop="update_by" label=" 鏇存柊浜� " align="center" />
+ <el-table-column prop="update_time" label=" 鏇存柊鏃堕棿 " align="center" />
+ <el-table-column prop="create_by" label=" 鍒涘缓浜� " align="center" />
+ <el-table-column prop="create_time" label=" 鍒涘缓鏃堕棿 " align="center" />
+ <el-table-column prop="isupload" label=" 涓婁紶鏍囪 " align="center" />
+ <el-table-column prop="upload_time" label=" 涓婁紶鏃堕棿 " align="center" />
+ <el-table-column prop="patid" label=" 妗fID " align="center" />
+ <el-table-column prop="typename" label=" 鏁版嵁绫诲瀷 " align="center" />
+ <el-table-column prop="sugarlevel" label=" 琛�绯栧�� " align="center" />
+ <el-table-column prop="sourcename" label=" 鏁版嵁鏉ユ簮 " align="center" />
+ <el-table-column
+ prop="sugarlevelempty"
+ label=" 绌鸿吂琛�绯� "
+ align="center"
+ />
+ <el-table-column prop="visittype" label=" 灏辫瘖绫诲瀷" align="center" />
+ <el-table-column prop="visitid" label=" 灏辫瘖ID" align="center" />
+ <el-table-column prop="pid" label=" 鐖禝D" align="center" />
+ <el-table-column prop="guid" label=" GUID" align="center" />
+ </el-table>
+ </div>
</template>
- <script>
- import { listpat_med_bloodsugar, getpat_med_bloodsugar, delpat_med_bloodsugar, addpat_med_bloodsugar, updatepat_med_bloodsugar } from "@/api/smartor3/pat_med_bloodsugar";
- export default {
- name: "dw_list_pat_med_bloodsugar",
- 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_med_bloodsugar(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.bloodsugarid)
- this.$parent.bloodsugarid = row.bloodsugarid
- }
- }
- }
- </script>
\ No newline at end of file
+<script>
+import {
+ listpat_med_bloodsugar,
+ getpat_med_bloodsugar,
+ delpat_med_bloodsugar,
+ addpat_med_bloodsugar,
+ updatepat_med_bloodsugar,
+} from "@/api/smartor3/pat_med_bloodsugar";
+export default {
+ name: "dw_list_pat_med_bloodsugar",
+ 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_med_bloodsugar(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.bloodsugarid)
+ this.$parent.bloodsugarid = row.bloodsugarid;
+ },
+ },
+};
+</script>
--
Gitblit v1.9.3