|
@@ -1,42 +1,45 @@
|
1
|
1
|
<template>
|
2
|
2
|
<el-dialog
|
3
|
|
- title="1111"
|
|
3
|
+ :title="name"
|
4
|
4
|
:visible.sync="isLastOrNextVisible"
|
|
5
|
+ @close="hide"
|
5
|
6
|
width="1010px"
|
6
|
|
- @close="resetDialog"
|
7
|
7
|
:modal-append-to-body="false"
|
8
|
8
|
>
|
9
|
9
|
<div class="txsj">
|
10
|
10
|
<el-button
|
11
|
11
|
round
|
12
|
12
|
|
13
|
|
- @click="openLast(1)"
|
|
13
|
+ @click="openLast(3)"
|
14
|
14
|
>上一方
|
15
|
15
|
</el-button>
|
16
|
16
|
|
17
|
17
|
<el-button
|
18
|
18
|
round
|
19
|
|
- @click="openNext(2)"
|
|
19
|
+ @click="openNext(4)"
|
20
|
20
|
>下一方
|
21
|
21
|
</el-button>
|
22
|
22
|
</div>
|
23
|
23
|
|
24
|
|
- <div v-for="(item,index) in allPrescription" :key="index">
|
25
|
|
- <div>{{item.title}}</div>
|
|
24
|
+ <div v-for="(item,index) in allPrescription" :key="index">
|
|
25
|
+ <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
|
26
|
26
|
<el-checkbox-group v-model="item.check_group">
|
27
|
|
- <el-checkbox label="复选框 A" v-for="(subItem,index2) in item.prescriptions" :key="index2" :label="subItem.id" >
|
28
|
|
- <el-table v-if="subItem.type == 1" :data="subItem.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
|
|
27
|
+ <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
|
|
28
|
+ <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
|
|
29
|
+ <el-table v-if="subItem.type == 1" :data="subItem.doctor_advice" border style="width: 99%;"
|
|
30
|
+ :row-style="{ color: '#303133' }"
|
29
|
31
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
30
|
32
|
<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
31
|
|
- <el-table-column align="center" prop="drug_name" label="名称">
|
32
|
|
- <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
|
|
33
|
+ <el-table-column align="center" prop="drug_name" width="100" label="名称">
|
|
34
|
+ <template slot-scope="scope">
|
|
35
|
+ <span>{{ scope.row.advice_name }}</span>
|
|
36
|
+ </template>
|
33
|
37
|
</el-table-column>
|
34
|
38
|
|
35
|
39
|
<el-table-column align="center" prop="single_dose" width="90" label="单次用量">
|
36
|
40
|
<template slot-scope="scope">
|
37
|
41
|
<div style="display:flex;align-items:center;">
|
38
|
|
- <el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>
|
39
|
|
- <div>{{scope.row.single_dose_unit}}</div>
|
|
42
|
+ <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
|
40
|
43
|
</div>
|
41
|
44
|
</template>
|
42
|
45
|
</el-table-column>
|
|
@@ -51,83 +54,94 @@
|
51
|
54
|
</template>
|
52
|
55
|
</el-table-column>
|
53
|
56
|
|
54
|
|
-
|
55
|
57
|
<el-table-column align="center" prop="day" width="50" label="天数">
|
56
|
58
|
<template slot-scope="scope">
|
57
|
|
- <el-input v-model="scope.row.day" placeholder=""></el-input>
|
|
59
|
+ {{scope.row.day}}
|
58
|
60
|
</template>
|
59
|
61
|
</el-table-column>
|
60
|
62
|
|
61
|
|
- <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
|
|
63
|
+ <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
|
62
|
64
|
<template slot-scope="scope">
|
63
|
65
|
<div style="display:flex;align-items:center;">
|
64
|
|
- <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>
|
65
|
|
- <div> {{scope.row.prescribing_number_unit}}</div>
|
|
66
|
+ <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
|
66
|
67
|
</div>
|
67
|
68
|
</template>
|
68
|
69
|
</el-table-column>
|
69
|
|
- <el-table-column align="center" prop="retail_price" width="60" label="单价">
|
|
70
|
+ <el-table-column align="center" prop="retail_price" width="80" label="单价">
|
70
|
71
|
<template slot-scope="scope">
|
71
|
|
- <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
|
|
72
|
+ <div>{{scope.row.retail_price}}</div>
|
72
|
73
|
</template>
|
73
|
74
|
</el-table-column>
|
74
|
|
- <el-table-column align="center" prop="remark" width="50" label="备注">
|
|
75
|
+ <el-table-column align="center" prop="remark" width="200" label="备注">
|
75
|
76
|
<template slot-scope="scope">
|
76
|
|
- <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
|
|
77
|
+ <div>{{scope.row.remark}}</div>
|
77
|
78
|
</template>
|
78
|
79
|
</el-table-column>
|
79
|
80
|
</el-table>
|
80
|
|
-
|
81
|
|
- <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;" :row-style="{ color: '#303133' }"
|
|
81
|
+ <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
|
|
82
|
+ :row-style="{ color: '#303133' }"
|
82
|
83
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
83
|
84
|
<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
84
|
|
- <el-table-column align="center" prop="project_name" label="名称">
|
85
|
|
- <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
|
|
85
|
+ <el-table-column align="center" prop="project_name" width="100" label="名称">
|
|
86
|
+ <template slot-scope="scope">
|
|
87
|
+ <span>{{ scope.row.project.project_name }}</span>
|
|
88
|
+ </template>
|
86
|
89
|
</el-table-column>
|
87
|
90
|
<el-table-column align="center" prop="statistical_classification" width="100" label="组">
|
88
|
91
|
<template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
|
89
|
92
|
</el-table-column>
|
90
|
93
|
<el-table-column align="center" prop="single_dose" width="80" label="单次用量">
|
91
|
94
|
<template slot-scope="scope">
|
92
|
|
- <el-input v-model="scope.row.single_dose" placeholder=""></el-input>
|
|
95
|
+ <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
|
|
96
|
+ <span>{{ scope.row.single_dose }}</span>
|
|
97
|
+
|
93
|
98
|
</template>
|
94
|
99
|
</el-table-column>
|
95
|
|
- <el-table-column align="center" prop="delivery_way" width="80" label="用法">
|
|
100
|
+ <el-table-column align="center" prop="delivery_way" width="100" label="用法">
|
96
|
101
|
<template slot-scope="scope">
|
97
|
|
- <el-input v-model="scope.row.delivery_way" placeholder=""></el-input>
|
|
102
|
+ <!--<el-input v-model="scope.row.delivery_way" placeholder=""></el-input>-->
|
|
103
|
+ <span>{{ scope.row.delivery_way }}</span>
|
|
104
|
+
|
98
|
105
|
</template>
|
99
|
106
|
</el-table-column>
|
100
|
|
- <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
|
|
107
|
+ <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
|
101
|
108
|
<template slot-scope="scope">
|
102
|
|
- <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
|
|
109
|
+ <!--<el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>-->
|
|
110
|
+ <span>{{ scope.row.execution_frequency }}</span>
|
|
111
|
+
|
103
|
112
|
</template>
|
104
|
113
|
</el-table-column>
|
105
|
|
- <el-table-column align="center" prop="number_days" width="50" label="天数">
|
|
114
|
+ <el-table-column align="center" prop="number_days" width="70" label="天数">
|
106
|
115
|
<template slot-scope="scope">
|
107
|
|
- <el-input v-model="scope.row.number_days" placeholder=""></el-input>
|
|
116
|
+ <!--<el-input v-model="scope.row.number_days" placeholder=""></el-input>-->
|
|
117
|
+ <span>{{ scope.row.number_days }}</span>
|
|
118
|
+
|
108
|
119
|
</template>
|
109
|
120
|
</el-table-column>
|
110
|
121
|
<el-table-column align="center" prop="total" width="70" label="总量">
|
111
|
122
|
<template slot-scope="scope">
|
112
|
123
|
<div style="display:flex;align-items:center;">
|
113
|
|
- <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
|
114
|
|
- <div>{{scope.row.unit}}</div>
|
|
124
|
+ <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
|
|
125
|
+ <div>{{ scope.row.total }}{{scope.row.unit}}</div>
|
115
|
126
|
</div>
|
116
|
127
|
</template>
|
117
|
128
|
</el-table-column>
|
118
|
129
|
<el-table-column align="center" prop="name" width="50" label="单价">
|
119
|
130
|
<template slot-scope="scope">
|
120
|
|
- <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
|
|
131
|
+ <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
|
|
132
|
+ <span>{{ scope.row.price }}</span>
|
|
133
|
+
|
121
|
134
|
</template>
|
122
|
135
|
</el-table-column>
|
123
|
|
- <el-table-column align="center" prop="name" width="50" label="备注">
|
|
136
|
+ <el-table-column align="center" prop="name" width="100" label="备注">
|
124
|
137
|
<template slot-scope="scope">
|
125
|
|
- <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
|
|
138
|
+ <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
|
|
139
|
+ <span>{{ scope.row.remark }}</span>
|
|
140
|
+
|
126
|
141
|
</template>
|
127
|
142
|
</el-table-column>
|
128
|
143
|
</el-table>
|
129
|
|
-
|
130
|
|
- </el-checkbox>
|
|
144
|
+ </div>
|
131
|
145
|
</el-checkbox-group>
|
132
|
146
|
|
133
|
147
|
</div>
|
|
@@ -143,87 +157,255 @@
|
143
|
157
|
</template>
|
144
|
158
|
|
145
|
159
|
<script>
|
|
160
|
+ import { uParseTime } from '@/utils/tools'
|
|
161
|
+ import { getDictionaryDataConfig} from "@/utils/data";
|
|
162
|
+
|
|
163
|
+ import {
|
|
164
|
+ getNextOrLastHisPrescription
|
|
165
|
+ } from '@/api/his/his'
|
146
|
166
|
export default {
|
147
|
167
|
name: "nextOrLastPrescription",
|
148
|
168
|
data() {
|
149
|
169
|
return {
|
150
|
|
- allPrescription:[
|
|
170
|
+ srcPrescriptions:[],
|
|
171
|
+ name:"",
|
|
172
|
+ request_record_date:'',
|
|
173
|
+ patient_id:0,
|
|
174
|
+ allPrescription: [
|
151
|
175
|
{
|
152
|
|
- title:"12333",
|
153
|
|
- check_group:[],
|
154
|
|
- prescriptions:[
|
|
176
|
+ check_group: [],
|
|
177
|
+ prescriptions: [
|
155
|
178
|
{
|
156
|
|
- id:5,
|
|
179
|
+ id: 5,
|
157
|
180
|
|
158
|
|
- type:1,
|
159
|
|
- doctor_advice:[],
|
160
|
|
- project:[],
|
|
181
|
+ type: 1,
|
|
182
|
+ doctor_advice: [],
|
|
183
|
+ project: [],
|
161
|
184
|
},
|
162
|
185
|
{
|
163
|
|
- id:8,
|
164
|
|
- type:1,
|
165
|
|
- doctor_advice:[],
|
166
|
|
- project:[],
|
|
186
|
+ id: 8,
|
|
187
|
+ type: 1,
|
|
188
|
+ doctor_advice: [],
|
|
189
|
+ project: [],
|
167
|
190
|
},
|
168
|
191
|
{
|
169
|
|
- id:6,
|
|
192
|
+ id: 6,
|
170
|
193
|
|
171
|
|
- type:2,
|
172
|
|
- doctor_advice:[],
|
173
|
|
- project:[],
|
|
194
|
+ type: 2,
|
|
195
|
+ doctor_advice: [],
|
|
196
|
+ project: [],
|
174
|
197
|
},
|
175
|
198
|
{
|
176
|
|
- id:7,
|
177
|
|
- type:2,
|
178
|
|
- doctor_advice:[],
|
179
|
|
- project:[],
|
|
199
|
+ id: 7,
|
|
200
|
+ type: 2,
|
|
201
|
+ doctor_advice: [],
|
|
202
|
+ project: [],
|
180
|
203
|
},
|
181
|
204
|
],
|
182
|
205
|
}, {
|
183
|
|
- title:"4567",
|
184
|
|
- check_group:[],
|
185
|
|
- prescriptions:[
|
|
206
|
+ check_group: [],
|
|
207
|
+ prescriptions: [
|
186
|
208
|
{
|
187
|
|
- id:1,
|
188
|
|
- type:2,
|
189
|
|
- doctor_advice:[],
|
190
|
|
- project:[],
|
|
209
|
+ id: 1,
|
|
210
|
+ type: 2,
|
|
211
|
+ doctor_advice: [],
|
|
212
|
+ project: [],
|
191
|
213
|
},
|
192
|
214
|
{
|
193
|
215
|
|
194
|
|
- id:2,
|
195
|
|
- type:2,
|
196
|
|
- doctor_advice:[],
|
197
|
|
- project:[],
|
|
216
|
+ id: 2,
|
|
217
|
+ type: 2,
|
|
218
|
+ doctor_advice: [],
|
|
219
|
+ project: [],
|
198
|
220
|
},
|
199
|
221
|
{
|
200
|
|
- id:3,
|
|
222
|
+ id: 3,
|
201
|
223
|
|
202
|
|
- type:1,
|
203
|
|
- doctor_advice:[],
|
204
|
|
- project:[],
|
|
224
|
+ type: 1,
|
|
225
|
+ doctor_advice: [],
|
|
226
|
+ project: [],
|
205
|
227
|
},
|
206
|
228
|
{
|
207
|
|
- id:4,
|
|
229
|
+ id: 4,
|
208
|
230
|
|
209
|
|
- type:1,
|
210
|
|
- doctor_advice:[],
|
211
|
|
- project:[],
|
|
231
|
+ type: 1,
|
|
232
|
+ doctor_advice: [],
|
|
233
|
+ project: [],
|
212
|
234
|
},
|
213
|
235
|
],
|
214
|
236
|
}
|
215
|
237
|
],
|
216
|
238
|
|
217
|
|
- isLastOrNextVisible: true,
|
|
239
|
+ isLastOrNextVisible: false,
|
218
|
240
|
|
219
|
241
|
}
|
220
|
|
- },methods:{
|
221
|
|
- save(){
|
222
|
|
- console.log(this.allPrescription)
|
223
|
|
- }
|
|
242
|
+ }, methods: {
|
|
243
|
+ openLast(val) {
|
|
244
|
+ if (val == 3) {
|
|
245
|
+ let params = {
|
|
246
|
+ patient_id: this.patient_id,
|
|
247
|
+ record_time: this.request_record_date,
|
|
248
|
+ type: 1
|
|
249
|
+ }
|
224
|
250
|
|
|
251
|
+ this.GetNextOrLastHisPrescription(params)
|
225
|
252
|
|
|
253
|
+ }
|
|
254
|
+ },
|
|
255
|
+ openNext(val) {
|
|
256
|
+ if (val == 4) {
|
|
257
|
+ let params = {
|
|
258
|
+ patient_id: this.patient_id,
|
|
259
|
+ record_time: this.request_record_date,
|
|
260
|
+ type: 2
|
|
261
|
+ }
|
|
262
|
+ this.GetNextOrLastHisPrescription(params)
|
|
263
|
+ }
|
|
264
|
+ },
|
|
265
|
+ GetNextOrLastHisPrescription(params){
|
|
266
|
+ getNextOrLastHisPrescription(params).then(response => {
|
|
267
|
+ if (response.data.state == 1) {
|
|
268
|
+ this.allPrescription = response.data.data.prescriptions
|
|
269
|
+ for (let i = 0; i < this.allPrescription.length; i++){
|
|
270
|
+ this.allPrescription[i].check_group = []
|
|
271
|
+ }
|
|
272
|
+ this.request_record_date = uParseTime(response.data.data.prescriptions[0].record_date, '{y}-{m}-{d}')
|
|
273
|
+ } else {
|
|
274
|
+ this.$message.error(response.data.msg)
|
226
|
275
|
|
|
276
|
+ }
|
|
277
|
+ })
|
|
278
|
+ },
|
|
279
|
+ save() {
|
|
280
|
+ let replace_one = []
|
|
281
|
+ let replace_two = []
|
|
282
|
+
|
|
283
|
+ let checkGroup = []
|
|
284
|
+ let allPrescriptions = []
|
|
285
|
+ let targetPrescriptions = []
|
|
286
|
+ let prescriptions = []
|
|
287
|
+ for (let i = 0; i < this.allPrescription.length; i++) {
|
|
288
|
+ for (let a = 0; a < this.allPrescription[i].check_group.length; a++) {
|
|
289
|
+ checkGroup.push(this.allPrescription[i].check_group[a])
|
|
290
|
+ }
|
|
291
|
+ for (let a = 0; a < this.allPrescription[i].prescriptions.length; a++) {
|
|
292
|
+ allPrescriptions.push(this.allPrescription[i].prescriptions[a])
|
|
293
|
+ }
|
|
294
|
+ }
|
|
295
|
+ for (let i = 0; i < allPrescriptions.length; i++){
|
|
296
|
+ for (let a = 0; a < checkGroup.length; a++){
|
|
297
|
+ if(allPrescriptions[i].id == checkGroup[a]){
|
|
298
|
+ targetPrescriptions.push(allPrescriptions[i])
|
|
299
|
+ }
|
|
300
|
+ }
|
|
301
|
+ }
|
|
302
|
+
|
|
303
|
+ if (targetPrescriptions.length > 0) {
|
|
304
|
+ for (let i = 0; i < targetPrescriptions.length; i++) {
|
|
305
|
+ var prescription = targetPrescriptions[i]
|
|
306
|
+ let tempAdvice = []
|
|
307
|
+ let tempProject = []
|
|
308
|
+ let tempAddition = []
|
|
309
|
+ for (let b = 0; b < prescription.doctor_advice.length; b++) {
|
|
310
|
+ let obj = {
|
|
311
|
+ advice_id: prescription.doctor_advice[b].id,
|
|
312
|
+ drug_name: prescription.doctor_advice[b].advice_name,
|
|
313
|
+ single_dose: prescription.doctor_advice[b].single_dose,
|
|
314
|
+ delivery_way: prescription.doctor_advice[b].delivery_way,
|
|
315
|
+ execution_frequency: prescription.doctor_advice[b].execution_frequency,
|
|
316
|
+ retail_price: prescription.doctor_advice[b].price.toString(),
|
|
317
|
+ remark: prescription.doctor_advice[b].remark,
|
|
318
|
+ day:prescription.doctor_advice[b].day,
|
|
319
|
+ prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
|
|
320
|
+ single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
|
|
321
|
+ prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
|
|
322
|
+ medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
|
|
323
|
+ id:prescription.doctor_advice[b].drug_id
|
|
324
|
+ }
|
|
325
|
+ tempAdvice.push(obj)
|
|
326
|
+
|
|
327
|
+ }
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
331
|
+ let obj = {
|
|
332
|
+ id: prescription.project[b].id,
|
|
333
|
+ project_id: prescription.project[b].project_id,
|
|
334
|
+ project_name: prescription.project[b].project.project_name,
|
|
335
|
+ statistical_classification: prescription.project[b].project.statistical_classification,
|
|
336
|
+ single_dose: prescription.project[b].single_dose,
|
|
337
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
338
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
339
|
+ number_days: prescription.project[b].day,
|
|
340
|
+ total:prescription.project[b].count.toString(),
|
|
341
|
+ price:prescription.project[b].price,
|
|
342
|
+ remark:prescription.project[b].remark,
|
|
343
|
+ medical_code:prescription.project[b].project.medical_code,
|
|
344
|
+ }
|
|
345
|
+ tempProject.push(obj)
|
|
346
|
+ }
|
|
347
|
+ let obj = {
|
|
348
|
+ id: 0,
|
|
349
|
+ advices: tempAdvice,
|
|
350
|
+ project: tempProject,
|
|
351
|
+ addition:tempAddition,
|
|
352
|
+ order_status:0,
|
|
353
|
+ // type: type,
|
|
354
|
+ }
|
|
355
|
+ prescriptions.push(obj)
|
|
356
|
+ }
|
|
357
|
+ }
|
|
358
|
+
|
|
359
|
+ console.log(this.srcPrescriptions)
|
|
360
|
+
|
|
361
|
+ if(this.srcPrescriptions.length == 1){
|
|
362
|
+ if(this.srcPrescriptions[0].advices.length == 0 && this.srcPrescriptions[0].project.length == 0){
|
|
363
|
+ this.srcPrescriptions = []
|
|
364
|
+ this.srcPrescriptions = prescriptions
|
|
365
|
+ this.$emit('save', this.srcPrescriptions)
|
|
366
|
+ }else{
|
|
367
|
+
|
|
368
|
+ this.srcPrescriptions = this.srcPrescriptions.concat(prescriptions)
|
|
369
|
+ this.$emit('save', this.srcPrescriptions)
|
|
370
|
+ }
|
|
371
|
+ }else{
|
|
372
|
+ this.srcPrescriptions = this.srcPrescriptions.concat(prescriptions)
|
|
373
|
+ this.$emit('save', this.srcPrescriptions)
|
|
374
|
+ }
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+ },show(prescriptions,name,id,srcPrescriptions){
|
|
379
|
+ this.srcPrescriptions = srcPrescriptions
|
|
380
|
+ this.patient_id = id
|
|
381
|
+ this.request_record_date = uParseTime(prescriptions[0].record_date, '{y}-{m}-{d}')
|
|
382
|
+ this.name = name
|
|
383
|
+ this.allPrescription = prescriptions
|
|
384
|
+ for (let i = 0; i < this.allPrescription.length; i++){
|
|
385
|
+ this.allPrescription[i].check_group = []
|
|
386
|
+ }
|
|
387
|
+ console.log(this.allPrescription)
|
|
388
|
+ this.isLastOrNextVisible = true
|
|
389
|
+ },close(){
|
|
390
|
+ this.isLastOrNextVisible = false
|
|
391
|
+ },hide(){
|
|
392
|
+ this.$emit('cancel')
|
|
393
|
+
|
|
394
|
+ },getTime(time, template){
|
|
395
|
+ return uParseTime(time,template)
|
|
396
|
+
|
|
397
|
+ }, getGroup(id){
|
|
398
|
+ var name = ""
|
|
399
|
+ var statistics_category = getDictionaryDataConfig('system','statistics_category')
|
|
400
|
+ for(let i=0;i<statistics_category.length;i++){
|
|
401
|
+ if(id == statistics_category[i].id){
|
|
402
|
+ name = statistics_category[i].name
|
|
403
|
+ }
|
|
404
|
+ }
|
|
405
|
+ return name
|
|
406
|
+ }, getDictionaryDataConfig(module, filed_name) {
|
|
407
|
+ return getDictionaryDataConfig(module, filed_name)
|
|
408
|
+ },
|
227
|
409
|
}
|
228
|
410
|
}
|
229
|
411
|
</script>
|