|
@@ -0,0 +1,196 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="main-contain outpatientChargesManagement">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
|
5
|
+ </div>
|
|
6
|
+ <div>
|
|
7
|
+ <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
|
8
|
+ <div>
|
|
9
|
+ <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
|
|
10
|
+ @keyup.enter.native='searchAction'
|
|
11
|
+ placeholder="请输入患者姓名"
|
|
12
|
+ class="filter-item"/>
|
|
13
|
+ <el-select size="small" v-model="item_type" placeholder="请选择"
|
|
14
|
+ style="width:150px;margin-left:10px;" @change="changeItem">
|
|
15
|
+ <el-option
|
|
16
|
+ label="全部"
|
|
17
|
+ value="0">
|
|
18
|
+ </el-option>
|
|
19
|
+ <el-option
|
|
20
|
+ v-for="item,index in items"
|
|
21
|
+ :key="index"
|
|
22
|
+ :label="item.name"
|
|
23
|
+ :value="item.id">
|
|
24
|
+ </el-option>
|
|
25
|
+ </el-select>
|
|
26
|
+ <el-date-picker
|
|
27
|
+ v-model="chargeDate"
|
|
28
|
+ type="date"
|
|
29
|
+ format="yyyy-MM-dd"
|
|
30
|
+ value-format="yyyy-MM-dd"
|
|
31
|
+ @change="changeDate"
|
|
32
|
+ >
|
|
33
|
+ </el-date-picker>
|
|
34
|
+ </div>
|
|
35
|
+ </div>
|
|
36
|
+ <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
|
|
37
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
38
|
+ highlight-current-row>
|
|
39
|
+
|
|
40
|
+ <el-table-column align="center" prop="name" label="患者名字">
|
|
41
|
+ <template slot-scope="scope">{{ scope.row.patient_name }}</template>
|
|
42
|
+ </el-table-column>
|
|
43
|
+
|
|
44
|
+ <el-table-column align="center" prop="name" label="处方号">
|
|
45
|
+ <template slot-scope="scope">{{scope.row.number}}</template>
|
|
46
|
+ </el-table-column>
|
|
47
|
+ <el-table-column align="center" prop="name" label="创建时间">
|
|
48
|
+ <template slot-scope="scope">{{getTime(scope.row.record_date, '{y}-{m}-{d}')}}</template>
|
|
49
|
+ </el-table-column>
|
|
50
|
+ <el-table-column align="center" prop="name" label="创建医生">
|
|
51
|
+ <template slot-scope="scope">{{scope.row.doctor_name}}</template>
|
|
52
|
+ </el-table-column>
|
|
53
|
+ <el-table-column align="center" prop="name" label="项目名称">
|
|
54
|
+ <template slot-scope="scope">
|
|
55
|
+ <div>{{scope.row.project_name}}</div>
|
|
56
|
+ </template>
|
|
57
|
+ </el-table-column>
|
|
58
|
+
|
|
59
|
+ <el-table-column
|
|
60
|
+ align="center"
|
|
61
|
+ label="操作"
|
|
62
|
+ width="180"
|
|
63
|
+ class-name="small-padding fixed-width"
|
|
64
|
+ >
|
|
65
|
+ <template slot-scope="scope">
|
|
66
|
+ <el-tooltip class="item" effect="dark" content="打印" placement="top">
|
|
67
|
+ <el-button
|
|
68
|
+ type="primary"
|
|
69
|
+ size="small"
|
|
70
|
+ icon="el-icon-edit-outline"
|
|
71
|
+ @click="Print(scope.row, scope.$index)"
|
|
72
|
+ >
|
|
73
|
+ </el-button>
|
|
74
|
+ </el-tooltip>
|
|
75
|
+ </template>
|
|
76
|
+ </el-table-column>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+ </el-table>
|
|
80
|
+ <el-pagination
|
|
81
|
+ @size-change="handleSizeChange"
|
|
82
|
+ @current-change="handleCurrentChange"
|
|
83
|
+ :page-sizes="[10, 50, 100]"
|
|
84
|
+ :page-size="10"
|
|
85
|
+ background
|
|
86
|
+ style="margin-top:20px;float: right"
|
|
87
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
88
|
+ :total="total"
|
|
89
|
+ >
|
|
90
|
+ </el-pagination>
|
|
91
|
+ </div>
|
|
92
|
+ </div>
|
|
93
|
+</template>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+<script>
|
|
97
|
+ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
98
|
+ import { GetLabelList } from '@/api/his/his'
|
|
99
|
+ import { uParseTime } from '@/utils/tools'
|
|
100
|
+ // import NewStatementPrint from './newStatementPrint'
|
|
101
|
+ const moment = require('moment')
|
|
102
|
+ export default {
|
|
103
|
+ components: {
|
|
104
|
+ BreadCrumb
|
|
105
|
+
|
|
106
|
+ },
|
|
107
|
+ data() {
|
|
108
|
+ return {
|
|
109
|
+ crumbs: [
|
|
110
|
+ { path: false, name: 'HIS工具' },
|
|
111
|
+ { path: false, name: '标签打印' }
|
|
112
|
+ ],
|
|
113
|
+ detail_loading: false,
|
|
114
|
+ tempArr: [],
|
|
115
|
+ pos: 0,
|
|
116
|
+ page: 1,
|
|
117
|
+ limit: 10,
|
|
118
|
+ total: 0,
|
|
119
|
+ sameRowArr: [],
|
|
120
|
+ keywords: '',
|
|
121
|
+ tableData: [],
|
|
122
|
+ chargeDate: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
|
|
123
|
+ item_type: '0',
|
|
124
|
+ items: [
|
|
125
|
+ { id: 1, name: '已打印' },
|
|
126
|
+ { id: 2, name: '未打印' }
|
|
127
|
+ ]
|
|
128
|
+
|
|
129
|
+ }
|
|
130
|
+ },
|
|
131
|
+ methods: {
|
|
132
|
+ getTime(value, temp) {
|
|
133
|
+ if (value != undefined) {
|
|
134
|
+ return uParseTime(value, temp)
|
|
135
|
+ }
|
|
136
|
+ return ''
|
|
137
|
+ },
|
|
138
|
+ Print(row, index) {
|
|
139
|
+
|
|
140
|
+ },
|
|
141
|
+ handleCurrentChange(page) {
|
|
142
|
+ this.page = page
|
|
143
|
+ this.getList()
|
|
144
|
+
|
|
145
|
+ },
|
|
146
|
+
|
|
147
|
+ handleSizeChange(limit) {
|
|
148
|
+ this.limit = limit
|
|
149
|
+ this.getList()
|
|
150
|
+
|
|
151
|
+ },
|
|
152
|
+
|
|
153
|
+ changeDate() {
|
|
154
|
+ this.page = 1
|
|
155
|
+ this.limit = 10
|
|
156
|
+ this.getList()
|
|
157
|
+ },
|
|
158
|
+ changeItem() {
|
|
159
|
+ this.page = 1
|
|
160
|
+ this.limit = 10
|
|
161
|
+ this.getList()
|
|
162
|
+ },
|
|
163
|
+ searchAction() {
|
|
164
|
+ this.page = 1
|
|
165
|
+ this.limit = 10
|
|
166
|
+ this.getList()
|
|
167
|
+ },
|
|
168
|
+ getList() {
|
|
169
|
+ let params = {
|
|
170
|
+ record_date: this.chargeDate,
|
|
171
|
+ is_print: this.item_type,
|
|
172
|
+ keyword: this.keywords,
|
|
173
|
+ page: this.page,
|
|
174
|
+ limit: this.limit
|
|
175
|
+ }
|
|
176
|
+ GetLabelList(params).then(response => {
|
|
177
|
+ if (response.data.state == 0) {
|
|
178
|
+
|
|
179
|
+ this.$message.error(response.data.msg)
|
|
180
|
+ return false
|
|
181
|
+ } else {
|
|
182
|
+
|
|
183
|
+ this.tableData = response.data.data.labels
|
|
184
|
+ this.total = response.data.data.total
|
|
185
|
+
|
|
186
|
+ }
|
|
187
|
+
|
|
188
|
+ })
|
|
189
|
+ }
|
|
190
|
+ },
|
|
191
|
+ created() {
|
|
192
|
+ this.getList()
|
|
193
|
+
|
|
194
|
+ }
|
|
195
|
+ }
|
|
196
|
+</script>
|