|
@@ -1,214 +1,214 @@
|
1
|
1
|
<template><!--发药明细-->
|
2
|
|
- <div class="main-contain">
|
3
|
|
- <div class="position">
|
4
|
|
- <bread-crumb :crumbs="crumbs"></bread-crumb>
|
5
|
|
- </div>
|
6
|
|
- <div class="app-container">
|
7
|
|
- <div
|
8
|
|
- style="
|
9
|
|
- justify-content: space-between;
|
10
|
|
- margin: 0px 0 12px 0;
|
11
|
|
- display: flex;
|
12
|
|
- align-items: center;
|
13
|
|
- "
|
14
|
|
- >
|
15
|
|
- <div>
|
16
|
|
- <el-input
|
17
|
|
- size="small"
|
18
|
|
- style="width: 200px; margin-left: 10px"
|
19
|
|
- class="filter-item"
|
20
|
|
- v-model="keyword"
|
21
|
|
- placeholder="请输入患者姓名"
|
22
|
|
- ></el-input>
|
|
2
|
+<!-- <div class="main-contain">-->
|
|
3
|
+<!-- <div class="position">-->
|
|
4
|
+<!-- <bread-crumb :crumbs="crumbs"></bread-crumb>-->
|
|
5
|
+<!-- </div>-->
|
|
6
|
+<!-- <div class="app-container">-->
|
|
7
|
+<!-- <div-->
|
|
8
|
+<!-- style="-->
|
|
9
|
+<!-- justify-content: space-between;-->
|
|
10
|
+<!-- margin: 0px 0 12px 0;-->
|
|
11
|
+<!-- display: flex;-->
|
|
12
|
+<!-- align-items: center;-->
|
|
13
|
+<!-- "-->
|
|
14
|
+<!-- >-->
|
|
15
|
+<!-- <div>-->
|
|
16
|
+<!-- <el-input-->
|
|
17
|
+<!-- size="small"-->
|
|
18
|
+<!-- style="width: 200px; margin-left: 10px"-->
|
|
19
|
+<!-- class="filter-item"-->
|
|
20
|
+<!-- v-model="keyword"-->
|
|
21
|
+<!-- placeholder="请输入患者姓名"-->
|
|
22
|
+<!-- ></el-input>-->
|
23
|
23
|
|
24
|
|
- <el-date-picker
|
25
|
|
- size="small"
|
26
|
|
- v-model="start_time"
|
27
|
|
- prefix-icon="el-icon-date"
|
28
|
|
- :editable="false"
|
29
|
|
- style="width: 196px"
|
30
|
|
- type="date"
|
31
|
|
- placeholder="选择日期时间"
|
32
|
|
- align="right"
|
33
|
|
- format="yyyy-MM-dd"
|
34
|
|
- value-format="yyyy-MM-dd"
|
35
|
|
- @change="startTimeChange"
|
36
|
|
- ></el-date-picker
|
37
|
|
- >-
|
38
|
|
- <el-date-picker
|
39
|
|
- size="small"
|
40
|
|
- v-model="end_time"
|
41
|
|
- prefix-icon="el-icon-date"
|
42
|
|
- :editable="false"
|
43
|
|
- style="width: 196px"
|
44
|
|
- type="date"
|
45
|
|
- placeholder="选择日期时间"
|
46
|
|
- align="right"
|
47
|
|
- format="yyyy-MM-dd"
|
48
|
|
- value-format="yyyy-MM-dd"
|
49
|
|
- @change="endTimeChange"
|
50
|
|
- ></el-date-picker>
|
|
24
|
+<!-- <el-date-picker-->
|
|
25
|
+<!-- size="small"-->
|
|
26
|
+<!-- v-model="start_time"-->
|
|
27
|
+<!-- prefix-icon="el-icon-date"-->
|
|
28
|
+<!-- :editable="false"-->
|
|
29
|
+<!-- style="width: 196px"-->
|
|
30
|
+<!-- type="date"-->
|
|
31
|
+<!-- placeholder="选择日期时间"-->
|
|
32
|
+<!-- align="right"-->
|
|
33
|
+<!-- format="yyyy-MM-dd"-->
|
|
34
|
+<!-- value-format="yyyy-MM-dd"-->
|
|
35
|
+<!-- @change="startTimeChange"-->
|
|
36
|
+<!-- ></el-date-picker-->
|
|
37
|
+<!-- >- -->
|
|
38
|
+<!-- <el-date-picker-->
|
|
39
|
+<!-- size="small"-->
|
|
40
|
+<!-- v-model="end_time"-->
|
|
41
|
+<!-- prefix-icon="el-icon-date"-->
|
|
42
|
+<!-- :editable="false"-->
|
|
43
|
+<!-- style="width: 196px"-->
|
|
44
|
+<!-- type="date"-->
|
|
45
|
+<!-- placeholder="选择日期时间"-->
|
|
46
|
+<!-- align="right"-->
|
|
47
|
+<!-- format="yyyy-MM-dd"-->
|
|
48
|
+<!-- value-format="yyyy-MM-dd"-->
|
|
49
|
+<!-- @change="endTimeChange"-->
|
|
50
|
+<!-- ></el-date-picker>-->
|
51
|
51
|
|
52
|
|
- <el-button
|
53
|
|
- size="small"
|
54
|
|
- class="filter-item"
|
55
|
|
- type="primary"
|
56
|
|
- icon="el-icon-search"
|
57
|
|
- @click="query"
|
58
|
|
- >查询</el-button
|
59
|
|
- >
|
60
|
|
- </div>
|
61
|
|
- </div>
|
62
|
|
- <el-table
|
63
|
|
- :row-style="{ color: '#303133' }"
|
64
|
|
- :header-cell-style="{
|
65
|
|
- backgroundColor: 'rgb(245, 247, 250)',
|
66
|
|
- color: '#606266',
|
67
|
|
- }"
|
68
|
|
- style="width: 1651px"
|
69
|
|
- :data="tableList"
|
70
|
|
- :class="signAndWeighBoxPatients"
|
71
|
|
- border
|
72
|
|
- >
|
73
|
|
- <el-table-column type="index" label="序号" align="center" width="250">
|
74
|
|
- </el-table-column>
|
75
|
|
- <el-table-column label="患者名称" align="center" width="300">
|
76
|
|
- <template slot-scope="scope">
|
77
|
|
- <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
|
78
|
|
- </template>
|
79
|
|
- </el-table-column>
|
|
52
|
+<!-- <el-button-->
|
|
53
|
+<!-- size="small"-->
|
|
54
|
+<!-- class="filter-item"-->
|
|
55
|
+<!-- type="primary"-->
|
|
56
|
+<!-- icon="el-icon-search"-->
|
|
57
|
+<!-- @click="query"-->
|
|
58
|
+<!-- >查询</el-button-->
|
|
59
|
+<!-- >-->
|
|
60
|
+<!-- </div>-->
|
|
61
|
+<!-- </div>-->
|
|
62
|
+<!-- <el-table-->
|
|
63
|
+<!-- :row-style="{ color: '#303133' }"-->
|
|
64
|
+<!-- :header-cell-style="{-->
|
|
65
|
+<!-- backgroundColor: 'rgb(245, 247, 250)',-->
|
|
66
|
+<!-- color: '#606266',-->
|
|
67
|
+<!-- }"-->
|
|
68
|
+<!-- style="width: 1651px"-->
|
|
69
|
+<!-- :data="tableList"-->
|
|
70
|
+<!-- :class="signAndWeighBoxPatients"-->
|
|
71
|
+<!-- border-->
|
|
72
|
+<!-- >-->
|
|
73
|
+<!-- <el-table-column type="index" label="序号" align="center" width="250">-->
|
|
74
|
+<!-- </el-table-column>-->
|
|
75
|
+<!-- <el-table-column label="患者名称" align="center" width="300">-->
|
|
76
|
+<!-- <template slot-scope="scope">-->
|
|
77
|
+<!-- <span>{{scope.row.Name ? scope.row.Name : ""}}</span>-->
|
|
78
|
+<!-- </template>-->
|
|
79
|
+<!-- </el-table-column>-->
|
80
|
80
|
|
81
|
|
- <el-table-column label="开立医生" align="center" width="300">
|
82
|
|
- <template slot-scope="scope">
|
83
|
|
- <span>{{scope.row.DoctorName ? scope.row.DoctorName : ""}}</span>
|
84
|
|
- </template>
|
85
|
|
- </el-table-column>
|
86
|
|
- <el-table-column label="发药时间" align="center" width="400">
|
87
|
|
- <template slot-scope="scope">
|
88
|
|
- <span>{{scope.row.RecordDate ? scope.row.RecordDate : ""}}</span>
|
89
|
|
- </template>
|
90
|
|
- </el-table-column>
|
91
|
|
- <el-table-column label="操作" align="center" width="400">
|
92
|
|
- <template slot-scope="scope">
|
93
|
|
- <el-button type="primary" @click="views(scope.row)">查看</el-button>
|
94
|
|
- </template>
|
95
|
|
- </el-table-column>
|
96
|
|
- </el-table>
|
97
|
|
- <el-pagination
|
98
|
|
- @size-change="handleSizeChange"
|
99
|
|
- @current-change="handleCurrentChange"
|
100
|
|
- :page-sizes="[10, 50, 100, 200, 500, 1000]"
|
101
|
|
- :page-size="10"
|
102
|
|
- background
|
103
|
|
- align="right"
|
104
|
|
- style="margin-top: 20px"
|
105
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
106
|
|
- :total="total"
|
107
|
|
- >
|
108
|
|
- </el-pagination>
|
109
|
|
- </div>
|
|
81
|
+<!-- <el-table-column label="开立医生" align="center" width="300">-->
|
|
82
|
+<!-- <template slot-scope="scope">-->
|
|
83
|
+<!-- <span>{{scope.row.DoctorName ? scope.row.DoctorName : ""}}</span>-->
|
|
84
|
+<!-- </template>-->
|
|
85
|
+<!-- </el-table-column>-->
|
|
86
|
+<!-- <el-table-column label="发药时间" align="center" width="400">-->
|
|
87
|
+<!-- <template slot-scope="scope">-->
|
|
88
|
+<!-- <span>{{scope.row.RecordDate ? scope.row.RecordDate : ""}}</span>-->
|
|
89
|
+<!-- </template>-->
|
|
90
|
+<!-- </el-table-column>-->
|
|
91
|
+<!-- <el-table-column label="操作" align="center" width="400">-->
|
|
92
|
+<!-- <template slot-scope="scope">-->
|
|
93
|
+<!-- <el-button type="primary" @click="views(scope.row)">查看</el-button>-->
|
|
94
|
+<!-- </template>-->
|
|
95
|
+<!-- </el-table-column>-->
|
|
96
|
+<!-- </el-table>-->
|
|
97
|
+<!-- <el-pagination-->
|
|
98
|
+<!-- @size-change="handleSizeChange"-->
|
|
99
|
+<!-- @current-change="handleCurrentChange"-->
|
|
100
|
+<!-- :page-sizes="[10, 50, 100, 200, 500, 1000]"-->
|
|
101
|
+<!-- :page-size="10"-->
|
|
102
|
+<!-- background-->
|
|
103
|
+<!-- align="right"-->
|
|
104
|
+<!-- style="margin-top: 20px"-->
|
|
105
|
+<!-- layout="total, sizes, prev, pager, next, jumper"-->
|
|
106
|
+<!-- :total="total"-->
|
|
107
|
+<!-- >-->
|
|
108
|
+<!-- </el-pagination>-->
|
|
109
|
+<!-- </div>-->
|
110
|
110
|
|
111
|
|
- <details-print
|
112
|
|
- ref="detailsprint"
|
113
|
|
- :visibility="isVisibility"
|
114
|
|
- :propsTable="propsTable"
|
115
|
|
- >
|
116
|
|
- </details-print>
|
|
111
|
+<!-- <details-print-->
|
|
112
|
+<!-- ref="detailsprint"-->
|
|
113
|
+<!-- :visibility="isVisibility"-->
|
|
114
|
+<!-- :propsTable="propsTable"-->
|
|
115
|
+<!-- >-->
|
|
116
|
+<!-- </details-print>-->
|
117
|
117
|
|
118
|
|
- </div>
|
|
118
|
+<!-- </div>-->
|
119
|
119
|
</template>
|
120
|
120
|
|
121
|
|
-<script>
|
122
|
|
-import detailsPrint from "./print/details.vue";
|
123
|
|
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
124
|
|
-import {
|
125
|
|
- dispensingdetails,
|
126
|
|
- prescriptiondetails
|
127
|
|
-} from "@/api/pharmacy"
|
128
|
|
-const moment = require('moment')
|
129
|
|
-export default {
|
130
|
|
- components: {
|
131
|
|
- detailsPrint,
|
132
|
|
- BreadCrumb,
|
133
|
|
- },
|
134
|
|
- data() {
|
135
|
|
- return {
|
136
|
|
- crumbs: [
|
137
|
|
- { path: false, name: "发药明细" },
|
138
|
|
- { path: "/Pharmacy/DispensingDetails", name: "发药明细" },
|
139
|
|
- ],
|
140
|
|
- keyword: "",
|
141
|
|
- tableList: [{}],
|
142
|
|
- signAndWeighBoxPatients: "sign-and-weigh-box-patients",
|
143
|
|
- start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
|
144
|
|
- end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
|
145
|
|
- prescriptionList:[],//处方
|
146
|
|
- stat_order:[],//临时医嘱
|
147
|
|
- total: 0,
|
148
|
|
- page: 1,
|
149
|
|
- limit: 10,
|
150
|
|
- };
|
151
|
|
- },
|
152
|
|
- created() {
|
153
|
|
- this.init();
|
154
|
|
- this.query();
|
155
|
|
- },
|
156
|
|
- methods: {
|
157
|
|
- init(){
|
158
|
|
- this.page = 1;
|
159
|
|
- this.limit = 10;
|
160
|
|
- this.keyword = "";
|
161
|
|
- },
|
162
|
|
- query(){
|
163
|
|
- var params = {
|
164
|
|
- keyword: this.keyword,
|
165
|
|
- start_time: this.start_time,
|
166
|
|
- end_time: this.end_time,
|
167
|
|
- page: 1,
|
168
|
|
- limit: this.limit,
|
169
|
|
- }
|
170
|
|
- dispensingdetails(params).then((res) => {
|
171
|
|
- if (res.data.state == 1){
|
172
|
|
- this.tableList = res.data.data.list;
|
173
|
|
- this.total = res.data.data.total;
|
174
|
|
- }
|
175
|
|
- })
|
176
|
|
- },
|
177
|
|
- search(){
|
178
|
|
- console.log("this.start_time",this.start_time)
|
179
|
|
- console.log("this.end_time",this.end_time)
|
180
|
|
- var params = {
|
181
|
|
- keyword: this.keyword,
|
182
|
|
- start_time: this.start_time,
|
183
|
|
- end_time: this.end_time,
|
184
|
|
- page: this.page,
|
185
|
|
- limit: this.limit,
|
186
|
|
- }
|
187
|
|
- dispensingdetails(params).then((res) => {
|
188
|
|
- if (res.data.state == 1){
|
189
|
|
- this.tableList = res.data.data.list;
|
190
|
|
- }
|
191
|
|
- })
|
192
|
|
- },
|
|
121
|
+<!--<script>-->
|
|
122
|
+<!--import detailsPrint from "./print/details.vue";-->
|
|
123
|
+<!--import BreadCrumb from "@/xt_pages/components/bread-crumb";-->
|
|
124
|
+<!--import {-->
|
|
125
|
+<!-- dispensingdetails,-->
|
|
126
|
+<!-- prescriptiondetails-->
|
|
127
|
+<!--} from "@/api/pharmacy"-->
|
|
128
|
+<!--const moment = require('moment')-->
|
|
129
|
+<!--export default {-->
|
|
130
|
+<!-- components: {-->
|
|
131
|
+<!-- detailsPrint,-->
|
|
132
|
+<!-- BreadCrumb,-->
|
|
133
|
+<!-- },-->
|
|
134
|
+<!-- data() {-->
|
|
135
|
+<!-- return {-->
|
|
136
|
+<!-- crumbs: [-->
|
|
137
|
+<!-- { path: false, name: "发药明细" },-->
|
|
138
|
+<!-- { path: "/Pharmacy/DispensingDetails", name: "发药明细" },-->
|
|
139
|
+<!-- ],-->
|
|
140
|
+<!-- keyword: "",-->
|
|
141
|
+<!-- tableList: [{}],-->
|
|
142
|
+<!-- signAndWeighBoxPatients: "sign-and-weigh-box-patients",-->
|
|
143
|
+<!-- start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),-->
|
|
144
|
+<!-- end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),-->
|
|
145
|
+<!-- prescriptionList:[],//处方-->
|
|
146
|
+<!-- stat_order:[],//临时医嘱-->
|
|
147
|
+<!-- total: 0,-->
|
|
148
|
+<!-- page: 1,-->
|
|
149
|
+<!-- limit: 10,-->
|
|
150
|
+<!-- };-->
|
|
151
|
+<!-- },-->
|
|
152
|
+<!-- created() {-->
|
|
153
|
+<!-- this.init();-->
|
|
154
|
+<!-- this.query();-->
|
|
155
|
+<!-- },-->
|
|
156
|
+<!-- methods: {-->
|
|
157
|
+<!-- init(){-->
|
|
158
|
+<!-- this.page = 1;-->
|
|
159
|
+<!-- this.limit = 10;-->
|
|
160
|
+<!-- this.keyword = "";-->
|
|
161
|
+<!-- },-->
|
|
162
|
+<!-- query(){-->
|
|
163
|
+<!-- var params = {-->
|
|
164
|
+<!-- keyword: this.keyword,-->
|
|
165
|
+<!-- start_time: this.start_time,-->
|
|
166
|
+<!-- end_time: this.end_time,-->
|
|
167
|
+<!-- page: 1,-->
|
|
168
|
+<!-- limit: this.limit,-->
|
|
169
|
+<!-- }-->
|
|
170
|
+<!-- dispensingdetails(params).then((res) => {-->
|
|
171
|
+<!-- if (res.data.state == 1){-->
|
|
172
|
+<!-- this.tableList = res.data.data.list;-->
|
|
173
|
+<!-- this.total = res.data.data.total;-->
|
|
174
|
+<!-- }-->
|
|
175
|
+<!-- })-->
|
|
176
|
+<!-- },-->
|
|
177
|
+<!-- search(){-->
|
|
178
|
+<!-- console.log("this.start_time",this.start_time)-->
|
|
179
|
+<!-- console.log("this.end_time",this.end_time)-->
|
|
180
|
+<!-- var params = {-->
|
|
181
|
+<!-- keyword: this.keyword,-->
|
|
182
|
+<!-- start_time: this.start_time,-->
|
|
183
|
+<!-- end_time: this.end_time,-->
|
|
184
|
+<!-- page: this.page,-->
|
|
185
|
+<!-- limit: this.limit,-->
|
|
186
|
+<!-- }-->
|
|
187
|
+<!-- dispensingdetails(params).then((res) => {-->
|
|
188
|
+<!-- if (res.data.state == 1){-->
|
|
189
|
+<!-- this.tableList = res.data.data.list;-->
|
|
190
|
+<!-- }-->
|
|
191
|
+<!-- })-->
|
|
192
|
+<!-- },-->
|
193
|
193
|
|
194
|
|
- // 查看
|
195
|
|
- views(data) {
|
196
|
|
- console.log("吱吱吱",data)
|
197
|
|
- this.$refs.detailsprint.show();
|
198
|
|
- this.$refs.detailsprint.drugdetails(data);
|
199
|
|
- },
|
200
|
|
- // 页表操作
|
201
|
|
- handleSizeChange(val) {
|
202
|
|
- this.limit = val;
|
203
|
|
- this.search();
|
204
|
|
- },
|
205
|
|
- handleCurrentChange(val) {
|
206
|
|
- this.page = val;
|
207
|
|
- this.search();
|
208
|
|
- },
|
209
|
|
- },
|
210
|
|
-};
|
211
|
|
-</script>
|
|
194
|
+<!-- // 查看-->
|
|
195
|
+<!-- views(data) {-->
|
|
196
|
+<!-- console.log("吱吱吱",data)-->
|
|
197
|
+<!-- this.$refs.detailsprint.show();-->
|
|
198
|
+<!-- this.$refs.detailsprint.drugdetails(data);-->
|
|
199
|
+<!-- },-->
|
|
200
|
+<!-- // 页表操作-->
|
|
201
|
+<!-- handleSizeChange(val) {-->
|
|
202
|
+<!-- this.limit = val;-->
|
|
203
|
+<!-- this.search();-->
|
|
204
|
+<!-- },-->
|
|
205
|
+<!-- handleCurrentChange(val) {-->
|
|
206
|
+<!-- this.page = val;-->
|
|
207
|
+<!-- this.search();-->
|
|
208
|
+<!-- },-->
|
|
209
|
+<!-- },-->
|
|
210
|
+<!--};-->
|
|
211
|
+<!--</script>-->
|
212
|
212
|
|
213
|
|
-<style rel="stylesheet/css" lang="scss" scoped>
|
214
|
|
-</style>
|
|
213
|
+<!--<style rel="stylesheet/css" lang="scss" scoped>-->
|
|
214
|
+<!--</style>-->
|