|
@@ -1,191 +1,285 @@
|
1
|
1
|
<template>
|
2
|
|
- <el-dialog
|
3
|
|
- title="详情"
|
4
|
|
- width="1000px"
|
5
|
|
- :visible.sync="visible"
|
6
|
|
- :before-close="_close"
|
7
|
|
- class="detailDialog"
|
8
|
|
- >
|
9
|
|
- <el-tabs v-model="activeName">
|
10
|
|
- <el-tab-pane label="处方详情" name="first">
|
11
|
|
- <el-table :data="tableData" border height="350" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
12
|
|
- <el-table-column align="center" prop="name" label="类型">
|
13
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
14
|
|
- </el-table-column>
|
15
|
|
- <el-table-column align="center" prop="name" label="医嘱名称">
|
16
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
17
|
|
- </el-table-column>
|
18
|
|
- <el-table-column align="center" prop="name" label="组">
|
19
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
20
|
|
- </el-table-column>
|
21
|
|
- <el-table-column align="center" prop="name" label="每次量">
|
22
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
23
|
|
- </el-table-column>
|
24
|
|
- <el-table-column align="center" prop="name" label="单位">
|
25
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
26
|
|
- </el-table-column>
|
27
|
|
- <el-table-column align="center" prop="name" label="用法">
|
28
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
29
|
|
- </el-table-column>
|
30
|
|
- <el-table-column align="center" prop="name" label="频率">
|
31
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
32
|
|
- </el-table-column>
|
33
|
|
- <el-table-column align="center" prop="name" label="天数">
|
34
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
35
|
|
- </el-table-column>
|
36
|
|
- <el-table-column align="center" prop="name" label="总量">
|
37
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
38
|
|
- </el-table-column>
|
39
|
|
- <el-table-column align="center" prop="name" label="单位">
|
40
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
41
|
|
- </el-table-column>
|
42
|
|
- <el-table-column align="center" prop="name" label="限制说明">
|
43
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
44
|
|
- </el-table-column>
|
45
|
|
- </el-table>
|
46
|
|
- </el-tab-pane>
|
47
|
|
- <el-tab-pane label="病历详情" name="second">
|
48
|
|
- <div class="detailMain">
|
49
|
|
- <span style="width:240px;">处方号:344431222222222</span>
|
50
|
|
- <span style="width:200px;">医生:医生</span>
|
51
|
|
- <span style="width:200px;">科室:儿科</span>
|
52
|
|
- <span style="width:200px;">创建时间:2020-10-10 01:12:20</span>
|
53
|
|
- </div>
|
54
|
|
- <div class="commonCell">
|
55
|
|
- <p>基本信息</p>
|
56
|
|
- <div class="detailMain">
|
57
|
|
- <span style="width:240px;">疾病名称:无</span>
|
58
|
|
- <span style="width:200px;">症状:医生</span>
|
59
|
|
- <span style="width:200px;">发病日期:2020-10-10 01:12:20</span>
|
60
|
|
- <span style="width:200px;">是否传染:否</span>
|
61
|
|
- </div>
|
62
|
|
- </div>
|
63
|
|
- <div class="commonCell">
|
64
|
|
- <p>体格信息</p>
|
65
|
|
- <div class="detailMain">
|
66
|
|
- <span style="width:140px;">体温:℃</span>
|
67
|
|
- <span style="width:140px;">呼吸:0 次/分</span>
|
68
|
|
- <span style="width:140px;">脉搏:0 次/分</span>
|
69
|
|
- <span style="width:200px;">血压:0。00~0.00 mmHg</span>
|
70
|
|
- </div>
|
71
|
|
- </div>
|
72
|
|
- <div class="commonCell">
|
73
|
|
- <p></p>
|
74
|
|
- <div class="detailMain">
|
75
|
|
- <span style="width:140px;">血糖:0 mmol/L</span>
|
76
|
|
- <span style="width:140px;">血脂:0 mmol/L</span>
|
77
|
|
- <span style="width:140px;">身高:0 cm</span>
|
78
|
|
- <span style="width:200px;">体重:0 kg</span>
|
79
|
|
- </div>
|
80
|
|
- </div>
|
81
|
|
- <div class="commonCell">
|
82
|
|
- <p>主诉</p>
|
83
|
|
- <div>无</div>
|
84
|
|
- </div>
|
85
|
|
- <div class="commonCell">
|
86
|
|
- <p>现病史</p>
|
87
|
|
- <div>无</div>
|
88
|
|
- </div>
|
89
|
|
- <div class="commonCell">
|
90
|
|
- <p>门诊诊断</p>
|
91
|
|
- <div>无</div>
|
92
|
|
- </div>
|
93
|
|
- <div class="commonCell">
|
94
|
|
- <p>门诊医嘱</p>
|
95
|
|
- <div>无</div>
|
96
|
|
- </div>
|
97
|
|
- <div class="commonCell">
|
98
|
|
- <p>过敏史</p>
|
99
|
|
- <div>无</div>
|
100
|
|
- </div>
|
101
|
|
- <div class="commonCell">
|
102
|
|
- <p>既往史</p>
|
103
|
|
- <div>无</div>
|
104
|
|
- </div>
|
105
|
|
- <div class="commonCell">
|
106
|
|
- <p>个人史</p>
|
107
|
|
- <div>无</div>
|
108
|
|
- </div>
|
109
|
|
- <div class="commonCell">
|
110
|
|
- <p>家族史</p>
|
111
|
|
- <div>无</div>
|
112
|
|
- </div>
|
113
|
|
- </el-tab-pane>
|
|
2
|
+ <el-dialog
|
|
3
|
+ title="详情"
|
|
4
|
+ width="1000px"
|
|
5
|
+ :visible.sync="visible"
|
|
6
|
+ :before-close="_close"
|
|
7
|
+ class="detailDialog"
|
|
8
|
+ >
|
|
9
|
+ <el-tabs v-model="activeName">
|
|
10
|
+ <el-tab-pane label="处方详情" name="first">
|
|
11
|
+ <el-tabs class="preTabs" v-model="editableTabsValue" type="card" @tab-click="tabclickEvent">
|
|
12
|
+ <el-tab-pane
|
|
13
|
+ v-for="(item, index) in prescriptions"
|
|
14
|
+ :key="index"
|
|
15
|
+ :label="item.name"
|
|
16
|
+ :name="item.name"
|
|
17
|
+ >
|
|
18
|
+ </el-tab-pane>
|
|
19
|
+
|
|
20
|
+ <div class="RP">
|
|
21
|
+ Rp
|
|
22
|
+ </div>
|
|
23
|
+ <new-prescription-table ref="prescription_tables"
|
|
24
|
+ :prescription="curPrescriptions"></new-prescription-table>
|
114
|
25
|
</el-tabs>
|
115
|
|
- <div slot="footer" class="dialog-footer">
|
116
|
|
- <el-button @click="hide">取 消</el-button>
|
117
|
|
- <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
|
|
26
|
+
|
|
27
|
+ </el-tab-pane>
|
|
28
|
+ <el-tab-pane label="病历详情" name="second">
|
|
29
|
+ <div class="detailMain">
|
|
30
|
+ <span style="width:240px;">处方号:344431222222222</span>
|
|
31
|
+ <span style="width:200px;">医生:医生</span>
|
|
32
|
+ <span style="width:200px;">科室:儿科</span>
|
|
33
|
+ <span style="width:200px;">创建时间:2020-10-10 01:12:20</span>
|
|
34
|
+ </div>
|
|
35
|
+ <div class="commonCell">
|
|
36
|
+ <p>基本信息</p>
|
|
37
|
+ <div class="detailMain">
|
|
38
|
+ <span style="width:240px;">疾病名称:无</span>
|
|
39
|
+ <span style="width:200px;">症状:医生</span>
|
|
40
|
+ <span style="width:200px;">发病日期:2020-10-10 01:12:20</span>
|
|
41
|
+ <span style="width:200px;">是否传染:否</span>
|
|
42
|
+ </div>
|
|
43
|
+ </div>
|
|
44
|
+ <div class="commonCell">
|
|
45
|
+ <p>体格信息</p>
|
|
46
|
+ <div class="detailMain">
|
|
47
|
+ <span style="width:140px;">体温:℃</span>
|
|
48
|
+ <span style="width:140px;">呼吸:0 次/分</span>
|
|
49
|
+ <span style="width:140px;">脉搏:0 次/分</span>
|
|
50
|
+ <span style="width:200px;">血压:0。00~0.00 mmHg</span>
|
|
51
|
+ </div>
|
|
52
|
+ </div>
|
|
53
|
+ <div class="commonCell">
|
|
54
|
+ <p></p>
|
|
55
|
+ <div class="detailMain">
|
|
56
|
+ <span style="width:140px;">血糖:0 mmol/L</span>
|
|
57
|
+ <span style="width:140px;">血脂:0 mmol/L</span>
|
|
58
|
+ <span style="width:140px;">身高:0 cm</span>
|
|
59
|
+ <span style="width:200px;">体重:0 kg</span>
|
|
60
|
+ </div>
|
|
61
|
+ </div>
|
|
62
|
+ <div class="commonCell">
|
|
63
|
+ <p>主诉</p>
|
|
64
|
+ <div>无</div>
|
|
65
|
+ </div>
|
|
66
|
+ <div class="commonCell">
|
|
67
|
+ <p>现病史</p>
|
|
68
|
+ <div>无</div>
|
|
69
|
+ </div>
|
|
70
|
+ <div class="commonCell">
|
|
71
|
+ <p>门诊诊断</p>
|
|
72
|
+ <div>无</div>
|
|
73
|
+ </div>
|
|
74
|
+ <div class="commonCell">
|
|
75
|
+ <p>门诊医嘱</p>
|
|
76
|
+ <div>无</div>
|
|
77
|
+ </div>
|
|
78
|
+ <div class="commonCell">
|
|
79
|
+ <p>过敏史</p>
|
|
80
|
+ <div>无</div>
|
118
|
81
|
</div>
|
119
|
|
- </el-dialog>
|
|
82
|
+ <div class="commonCell">
|
|
83
|
+ <p>既往史</p>
|
|
84
|
+ <div>无</div>
|
|
85
|
+ </div>
|
|
86
|
+ <div class="commonCell">
|
|
87
|
+ <p>个人史</p>
|
|
88
|
+ <div>无</div>
|
|
89
|
+ </div>
|
|
90
|
+ <div class="commonCell">
|
|
91
|
+ <p>家族史</p>
|
|
92
|
+ <div>无</div>
|
|
93
|
+ </div>
|
|
94
|
+ </el-tab-pane>
|
|
95
|
+ </el-tabs>
|
|
96
|
+ <div slot="footer" class="dialog-footer">
|
|
97
|
+ <el-button @click="hide">取 消</el-button>
|
|
98
|
+ <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
|
|
99
|
+ </div>
|
|
100
|
+ </el-dialog>
|
120
|
101
|
</template>
|
121
|
102
|
|
|
103
|
+
|
|
104
|
+
|
122
|
105
|
<script>
|
123
|
|
-export default {
|
124
|
|
- data(){
|
125
|
|
- return{
|
126
|
|
- visible:false,
|
127
|
|
- tableData: [{
|
128
|
|
- date: '2016-05-02',
|
129
|
|
- name: '王小虎',
|
130
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
131
|
|
- }, {
|
132
|
|
- date: '2016-05-04',
|
133
|
|
- name: '王小虎',
|
134
|
|
- address: '上海市普陀区金沙江路 1517 弄'
|
135
|
|
- }, {
|
136
|
|
- date: '2016-05-01',
|
137
|
|
- name: '王小虎',
|
138
|
|
- address: '上海市普陀区金沙江路 1519 弄'
|
139
|
|
- }, {
|
140
|
|
- date: '2016-05-03',
|
141
|
|
- name: '王小虎',
|
142
|
|
- address: '上海市普陀区金沙江路 1516 弄'
|
143
|
|
- }],
|
144
|
|
- activeName:'first'
|
145
|
|
- }
|
|
106
|
+ import { getHisPrescriptionInfo } from '@/api/his/his'
|
|
107
|
+ import NewPrescriptionTable from './newPrescriptionTable'
|
|
108
|
+
|
|
109
|
+ export default {
|
|
110
|
+ components: { NewPrescriptionTable },
|
|
111
|
+ data() {
|
|
112
|
+ return {
|
|
113
|
+ visible: false,
|
|
114
|
+ activeName: 'first',
|
|
115
|
+ curPrescriptions: {},
|
|
116
|
+ prescriptions: [],
|
|
117
|
+ record_date: '',
|
|
118
|
+ editableTabsValue: '1',
|
|
119
|
+ loadingone: false,
|
|
120
|
+ editableTabs: [{
|
|
121
|
+ title: '处方1',
|
|
122
|
+ name: '1'
|
|
123
|
+ }],
|
|
124
|
+ tabIndex: 1,
|
|
125
|
+ hisPatientInfo: {},
|
|
126
|
+ loadingtwo: false,
|
|
127
|
+ patientTableData: [{
|
|
128
|
+ name: '杨美英',
|
|
129
|
+ mdtrt_id: '1709946'
|
|
130
|
+ }],
|
|
131
|
+ patientInfo: { id: 0 },
|
|
132
|
+ doctor: {},
|
|
133
|
+ total: 0,
|
|
134
|
+ state: '未收费',
|
|
135
|
+ radio: 1,
|
|
136
|
+ radioStatus: 1,
|
|
137
|
+ search_input: ''
|
|
138
|
+ }
|
146
|
139
|
},
|
147
|
|
- methods:{
|
148
|
|
- _close: function(done) {
|
149
|
|
- // this.clear()
|
150
|
|
- done()
|
151
|
|
- },
|
152
|
|
- clear: function() {
|
153
|
|
- this.form.id = 0;
|
154
|
|
- this.form.name = "";
|
155
|
|
- this.form.intro = "";
|
156
|
|
- },
|
157
|
|
- show() {
|
158
|
|
- // this.clear()
|
159
|
|
- this.visible = true
|
160
|
|
- },
|
161
|
|
- hide() {
|
162
|
|
- // this.clear()
|
163
|
|
- this.visible = false
|
164
|
|
- },
|
165
|
|
- }
|
166
|
|
-}
|
167
|
|
-</script>
|
|
140
|
+ methods: {
|
|
141
|
+ tabclickEvent(val) {
|
|
142
|
+ for (let i = 0; i < this.prescriptions.length; i++) {
|
|
143
|
+ if (this.prescriptions[i].name == val.name) {
|
|
144
|
+ this.curPrescriptions = {}
|
|
145
|
+ var temp = this.deepClone(this.prescriptions[i])
|
|
146
|
+ this.curPrescriptions = temp
|
|
147
|
+ }
|
|
148
|
+ }
|
|
149
|
+ },
|
|
150
|
+ deepClone(source) {
|
|
151
|
+ if (!source && typeof source !== 'object') {
|
|
152
|
+ throw new Error('error arguments', 'shallowClone')
|
|
153
|
+ }
|
|
154
|
+ const targetObj = source.constructor === Array ? [] : {}
|
|
155
|
+ Object.keys(source).forEach((keys) => {
|
|
156
|
+ if (source[keys] && typeof source[keys] === 'object') {
|
|
157
|
+ targetObj[keys] = this.deepClone(source[keys])
|
|
158
|
+ } else {
|
|
159
|
+ targetObj[keys] = source[keys]
|
|
160
|
+ }
|
|
161
|
+ })
|
|
162
|
+ return targetObj
|
|
163
|
+ },
|
168
|
164
|
|
169
|
|
-<style lang="scss">
|
170
|
|
-.detailDialog{
|
171
|
|
- .el-dialog__body{
|
172
|
|
- padding: 0 20px 30px;
|
173
|
|
- }
|
174
|
|
- .detailMain{
|
175
|
|
- // padding:5px;
|
176
|
|
- span{
|
177
|
|
- display: inline-block;
|
|
165
|
+ moreState(tab, event) {
|
|
166
|
+ if (tab == 'more') {
|
|
167
|
+ return false
|
178
|
168
|
}
|
179
|
|
- }
|
180
|
|
- .commonCell{
|
181
|
|
- display: flex;
|
182
|
|
- line-height: 40px;
|
183
|
|
- >p{
|
184
|
|
- font-weight: bold;
|
185
|
|
- color:#000;
|
186
|
|
- width: 80px;
|
|
169
|
+ },
|
|
170
|
+
|
|
171
|
+ _close: function(done) {
|
|
172
|
+ // this.clear()
|
|
173
|
+ done()
|
|
174
|
+ },
|
|
175
|
+ clear: function() {
|
|
176
|
+ this.form.id = 0
|
|
177
|
+ this.form.name = ''
|
|
178
|
+ this.form.intro = ''
|
|
179
|
+ },
|
|
180
|
+ show(id) {
|
|
181
|
+ let params={
|
|
182
|
+ id:id,
|
187
|
183
|
}
|
|
184
|
+ getHisPrescriptionInfo(params).then(response => {
|
|
185
|
+ if (response.data.state == 0) {
|
|
186
|
+ this.$message.error(response.data.msg)
|
|
187
|
+ return false
|
|
188
|
+ } else {
|
|
189
|
+ this.patientInfo = response.data.data.order.patient
|
|
190
|
+ this.hisPatientInfo = response.data.data.order.his_patient
|
|
191
|
+ this.prescriptions = []
|
|
192
|
+ for (let i = 0; i < response.data.data.prescription.length; i++) {
|
|
193
|
+ var prescription = response.data.data.prescription[i]
|
|
194
|
+ let tempAdvice = []
|
|
195
|
+ let tempProject = []
|
|
196
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
197
|
+ let obj = {
|
|
198
|
+ advice_id: prescription.advices[b].id,
|
|
199
|
+ drug_name: prescription.advices[b].advice_name,
|
|
200
|
+ single_dose: prescription.advices[b].single_dose,
|
|
201
|
+ delivery_way: prescription.advices[b].delivery_way,
|
|
202
|
+ execution_frequency: prescription.advices[b].execution_frequency,
|
|
203
|
+ retail_price: prescription.advices[b].price.toString(),
|
|
204
|
+ remark: prescription.advices[b].remark,
|
|
205
|
+ prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
|
206
|
+ single_dose_unit: prescription.advices[b].single_dose_unit,
|
|
207
|
+ prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
|
208
|
+ min_unit: prescription.advices[b].single_dose_unit,
|
|
209
|
+ medical_insurance_number: prescription.advices[b].med_list_codg
|
|
210
|
+
|
|
211
|
+ }
|
|
212
|
+ tempAdvice.push(obj)
|
|
213
|
+ }
|
|
214
|
+
|
|
215
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
216
|
+ let obj = {
|
|
217
|
+ id: prescription.project[b].id,
|
|
218
|
+ project_id: prescription.project[b].project.id,
|
|
219
|
+ project_name: prescription.project[b].project.project_name,
|
|
220
|
+ statistical_classification: prescription.project[b].statistical_classification,
|
|
221
|
+ single_dose: prescription.project[b].single_dose,
|
|
222
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
223
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
224
|
+ number_days: prescription.project[b].day,
|
|
225
|
+ total: prescription.project[b].count.toString(),
|
|
226
|
+ price: prescription.project[b].price,
|
|
227
|
+ remark: prescription.project[b].remark,
|
|
228
|
+ medical_code: prescription.project[b].project.medical_code
|
|
229
|
+ }
|
|
230
|
+ tempProject.push(obj)
|
|
231
|
+ }
|
|
232
|
+ let index = i + 1
|
|
233
|
+ let obj = {
|
|
234
|
+ id: prescription.id,
|
|
235
|
+ name: '处方' + index,
|
|
236
|
+ advices: tempAdvice,
|
|
237
|
+ project: tempProject,
|
|
238
|
+ type: response.data.data.prescription[i].type
|
|
239
|
+ }
|
|
240
|
+ this.prescriptions.push(obj)
|
|
241
|
+ this.curPrescriptions = this.prescriptions[0]
|
|
242
|
+ }
|
|
243
|
+ }
|
|
244
|
+ })
|
|
245
|
+ // this.clear()
|
|
246
|
+ this.visible = true
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+ },
|
|
251
|
+ hide() {
|
|
252
|
+ // this.clear()
|
|
253
|
+ this.visible = false
|
|
254
|
+ }
|
188
|
255
|
}
|
189
|
|
-}
|
|
256
|
+ }
|
|
257
|
+</script>
|
|
258
|
+
|
|
259
|
+<style lang="scss">
|
|
260
|
+ .detailDialog {
|
|
261
|
+
|
|
262
|
+ .el-dialog__body {
|
|
263
|
+ padding: 0 20px 30px;
|
|
264
|
+ }
|
|
265
|
+
|
|
266
|
+ .detailMain {
|
|
267
|
+ span {
|
|
268
|
+ display: inline-block;
|
|
269
|
+ }
|
|
270
|
+
|
|
271
|
+ }
|
|
272
|
+ .commonCell {
|
|
273
|
+ display: flex;
|
|
274
|
+ line-height: 40px;
|
|
275
|
+
|
|
276
|
+ > p {
|
|
277
|
+ font-weight: bold;
|
|
278
|
+ color: #000;
|
|
279
|
+ width: 80px;
|
|
280
|
+ }
|
|
281
|
+
|
|
282
|
+ }
|
|
283
|
+ }
|
190
|
284
|
</style>
|
191
|
285
|
|