|
@@ -13,16 +13,26 @@
|
13
|
13
|
<div>
|
14
|
14
|
<div class="cell" v-show="order.parent_id == 0">
|
15
|
15
|
<label>开始时间</label>
|
16
|
|
- <el-input style="width:60%" :value="start_time_str" readonly @focus="selectStartTimeAction"></el-input>
|
|
16
|
+ <el-input
|
|
17
|
+ style="width:96%"
|
|
18
|
+ :value="start_time_str"
|
|
19
|
+ readonly
|
|
20
|
+ @focus="selectStartTimeAction"
|
|
21
|
+ ></el-input>
|
17
|
22
|
</div>
|
18
|
23
|
|
19
|
24
|
<div class="cell">
|
20
|
25
|
<label>医嘱名称</label>
|
21
|
|
- <el-input style="width:60%" v-model="order.title"></el-input>
|
|
26
|
+ <el-input style="width:96%" v-model="order.title"></el-input>
|
22
|
27
|
</div>
|
23
|
28
|
<div class="cell">
|
24
|
29
|
<label>药品规格</label>
|
25
|
|
- <input onclick="this.select()" class="inputBox" style="width:60%" v-model="order.advice_desc">
|
|
30
|
+ <input
|
|
31
|
+ onclick="this.select()"
|
|
32
|
+ class="inputBox"
|
|
33
|
+ style="width:60%"
|
|
34
|
+ v-model="order.advice_desc"
|
|
35
|
+ />
|
26
|
36
|
<input
|
27
|
37
|
type="text"
|
28
|
38
|
placeholder="单位"
|
|
@@ -31,7 +41,7 @@
|
31
|
41
|
style="width:35%"
|
32
|
42
|
v-model="order.drug_spec_unit"
|
33
|
43
|
@focus="selectDrugSpecUnitAction"
|
34
|
|
- >
|
|
44
|
+ />
|
35
|
45
|
</div>
|
36
|
46
|
|
37
|
47
|
<div class="cell">
|
|
@@ -42,7 +52,7 @@
|
42
|
52
|
style="width:60%"
|
43
|
53
|
onclick="this.select()"
|
44
|
54
|
v-model="order.prescribing_number"
|
45
|
|
- >
|
|
55
|
+ />
|
46
|
56
|
<input
|
47
|
57
|
type="text"
|
48
|
58
|
placeholder="单位"
|
|
@@ -51,13 +61,18 @@
|
51
|
61
|
style="width:35%"
|
52
|
62
|
v-model="order.prescribing_number_unit"
|
53
|
63
|
@focus="selectPrescribingNumUnitAction"
|
54
|
|
- >
|
|
64
|
+ />
|
55
|
65
|
</div>
|
56
|
66
|
|
57
|
|
-
|
58
|
67
|
<div class="cell">
|
59
|
68
|
<label>单次用量</label>
|
60
|
|
- <input type="number" onclick="this.select()" class="inputBox" style="width:60%" v-model="order.single_dose">
|
|
69
|
+ <input
|
|
70
|
+ type="number"
|
|
71
|
+ onclick="this.select()"
|
|
72
|
+ class="inputBox"
|
|
73
|
+ style="width:60%"
|
|
74
|
+ v-model="order.single_dose"
|
|
75
|
+ />
|
61
|
76
|
<input
|
62
|
77
|
type="text"
|
63
|
78
|
placeholder="单位"
|
|
@@ -66,7 +81,7 @@
|
66
|
81
|
style="width:35%"
|
67
|
82
|
v-model="order.single_dose_unit"
|
68
|
83
|
@focus="selectSingleDoseAction"
|
69
|
|
- >
|
|
84
|
+ />
|
70
|
85
|
</div>
|
71
|
86
|
|
72
|
87
|
<div class="cell" v-show="order.parent_id == 0">
|
|
@@ -79,29 +94,29 @@
|
79
|
94
|
@focus="selectDeliveryWayAction"
|
80
|
95
|
></el-input>
|
81
|
96
|
</div>
|
82
|
|
- <div>
|
|
97
|
+ <!-- <div> -->
|
83
|
98
|
|
84
|
99
|
<div class="cell" v-show="order.parent_id == 0">
|
85
|
100
|
<label>执行频率</label>
|
86
|
101
|
<el-input
|
87
|
102
|
placeholder="选择执行频率"
|
88
|
103
|
readonly
|
89
|
|
- style="width:50%"
|
|
104
|
+ style="width:96%"
|
90
|
105
|
:disabled="mode == 3"
|
91
|
106
|
v-model="order.execution_frequency"
|
92
|
107
|
@focus="selectExecFrequencyAction"
|
93
|
108
|
></el-input>
|
94
|
109
|
</div>
|
95
|
110
|
|
96
|
|
- <div class="cell" v-show="order.parent_id == 0">
|
97
|
|
- <label>医嘱嘱托</label>
|
98
|
|
- <input
|
99
|
|
- class="inputBox"
|
100
|
|
- style="width:50%"
|
101
|
|
- v-model="order.remark"
|
102
|
|
- >
|
103
|
|
- </div>
|
|
111
|
+ <div class="cell" v-show="order.parent_id == 0">
|
|
112
|
+ <label>医嘱嘱托</label>
|
|
113
|
+ <input
|
|
114
|
+ class="inputBox"
|
|
115
|
+ style="width:96%"
|
|
116
|
+ v-model="order.remark"
|
|
117
|
+ />
|
104
|
118
|
</div>
|
|
119
|
+ <!-- </div> -->
|
105
|
120
|
</div>
|
106
|
121
|
</div>
|
107
|
122
|
</div>
|
|
@@ -212,7 +227,7 @@ export default {
|
212
|
227
|
return {
|
213
|
228
|
visibility: false,
|
214
|
229
|
sub_dialog_key: 0,
|
215
|
|
- start_time_str:'',
|
|
230
|
+ start_time_str: "",
|
216
|
231
|
start_time: new Date(),
|
217
|
232
|
mode: 1,
|
218
|
233
|
order: {
|
|
@@ -224,7 +239,7 @@ export default {
|
224
|
239
|
advice_desc: "",
|
225
|
240
|
drug_spec: "",
|
226
|
241
|
drug_spec_unit: "",
|
227
|
|
- remark:"",
|
|
242
|
+ remark: "",
|
228
|
243
|
delivery_way: "",
|
229
|
244
|
execution_frequency: "",
|
230
|
245
|
single_dose: "",
|
|
@@ -245,12 +260,11 @@ export default {
|
245
|
260
|
didSelectStartTime: function(time) {
|
246
|
261
|
this.start_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
|
247
|
262
|
},
|
248
|
|
- selectStartTimeAction:function(){
|
|
263
|
+ selectStartTimeAction: function() {
|
249
|
264
|
this.$refs.start_time_picker.open();
|
250
|
|
-
|
251
|
265
|
},
|
252
|
266
|
showWithModify: function(order) {
|
253
|
|
- console.log(order)
|
|
267
|
+ console.log(order);
|
254
|
268
|
|
255
|
269
|
this.mode = 1;
|
256
|
270
|
this.visibility = true;
|
|
@@ -261,8 +275,8 @@ export default {
|
261
|
275
|
this.order.advice_desc = order.advice_desc;
|
262
|
276
|
this.order.remark = order.remark;
|
263
|
277
|
|
264
|
|
-
|
265
|
|
- this.start_time_str = parseTime(order.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
|
|
278
|
+ this.start_time_str =
|
|
279
|
+ parseTime(order.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
|
266
|
280
|
|
267
|
281
|
this.order.drug_spec = order.drug_spec;
|
268
|
282
|
this.order.drug_spec_unit = order.drug_spec_unit;
|
|
@@ -274,7 +288,7 @@ export default {
|
274
|
288
|
order.execution_frequency == undefined ||
|
275
|
289
|
order.execution_frequency == null
|
276
|
290
|
? ""
|
277
|
|
- : order.execution_frequency;
|
|
291
|
+ : order.execution_frequency;
|
278
|
292
|
this.order.single_dose = order.single_dose;
|
279
|
293
|
this.order.single_dose_unit = order.single_dose_unit;
|
280
|
294
|
this.order.prescribing_number = order.prescribing_number;
|
|
@@ -301,17 +315,16 @@ export default {
|
301
|
315
|
parent_id: this.order.parent_id,
|
302
|
316
|
title: this.order.title,
|
303
|
317
|
advice_desc: this.order.advice_desc,
|
304
|
|
- remark:this.order.remark,
|
|
318
|
+ remark: this.order.remark,
|
305
|
319
|
delivery_way: this.order.delivery_way,
|
306
|
320
|
execution_frequency: this.order.execution_frequency,
|
307
|
321
|
single_dose: this.order.single_dose,
|
308
|
322
|
single_dose_unit: this.order.single_dose_unit,
|
309
|
323
|
prescribing_number: this.order.prescribing_number,
|
310
|
324
|
prescribing_number_unit: this.order.prescribing_number_unit,
|
311
|
|
- start_time:this.start_time_str,
|
312
|
|
- drug_spec:this.order.drug_spec,
|
313
|
|
- drug_spec_unit:this.order.drug_spec_unit,
|
314
|
|
-
|
|
325
|
+ start_time: this.start_time_str,
|
|
326
|
+ drug_spec: this.order.drug_spec,
|
|
327
|
+ drug_spec_unit: this.order.drug_spec_unit
|
315
|
328
|
});
|
316
|
329
|
}
|
317
|
330
|
},
|
|
@@ -320,11 +333,10 @@ export default {
|
320
|
333
|
this.sub_dialog_key = 1;
|
321
|
334
|
},
|
322
|
335
|
didSelectSingleDoseUnit: function(index) {
|
323
|
|
- if (index == -1){
|
324
|
|
- this.order.single_dose_unit = '';
|
325
|
|
- }else{
|
|
336
|
+ if (index == -1) {
|
|
337
|
+ this.order.single_dose_unit = "";
|
|
338
|
+ } else {
|
326
|
339
|
this.order.single_dose_unit = this.single_dose_unit_options[index].name;
|
327
|
|
-
|
328
|
340
|
}
|
329
|
341
|
|
330
|
342
|
this.didCloseSingleOptionDialog();
|
|
@@ -333,10 +345,9 @@ export default {
|
333
|
345
|
this.sub_dialog_key = 5;
|
334
|
346
|
},
|
335
|
347
|
didSelectDrugSpecUnit: function(index) {
|
336
|
|
-
|
337
|
|
- if (index == -1){
|
338
|
|
- this.order.drug_spec_unit = '';
|
339
|
|
- }else{
|
|
348
|
+ if (index == -1) {
|
|
349
|
+ this.order.drug_spec_unit = "";
|
|
350
|
+ } else {
|
340
|
351
|
this.order.drug_spec_unit = this.drug_spec_unit_options[index].name;
|
341
|
352
|
}
|
342
|
353
|
|
|
@@ -346,14 +357,15 @@ export default {
|
346
|
357
|
this.sub_dialog_key = 2;
|
347
|
358
|
},
|
348
|
359
|
didSelectPrescribingNumUnit: function(index) {
|
349
|
|
- if (index == -1){
|
350
|
|
- this.order.prescribing_number_unit = '';
|
351
|
|
- }else{
|
352
|
|
- this.order.prescribing_number_unit = this.prescribing_number_unit_options[index].name;
|
|
360
|
+ if (index == -1) {
|
|
361
|
+ this.order.prescribing_number_unit = "";
|
|
362
|
+ } else {
|
|
363
|
+ this.order.prescribing_number_unit = this.prescribing_number_unit_options[
|
|
364
|
+ index
|
|
365
|
+ ].name;
|
353
|
366
|
}
|
354
|
367
|
|
355
|
368
|
this.didCloseSingleOptionDialog();
|
356
|
|
-
|
357
|
369
|
},
|
358
|
370
|
selectDeliveryWayAction: function() {
|
359
|
371
|
this.sub_dialog_key = 3;
|
|
@@ -406,8 +418,11 @@ export default {
|
406
|
418
|
.inputBox {
|
407
|
419
|
border: 1px $border-color solid;
|
408
|
420
|
border-radius: 2px;
|
409
|
|
- padding: 0.18rem 0;
|
|
421
|
+ padding: 0.14rem 0;
|
410
|
422
|
padding-left: 5px;
|
|
423
|
+ @media only screen and (max-width: 767px) {
|
|
424
|
+ padding: 0.38rem 0;
|
|
425
|
+ }
|
411
|
426
|
}
|
412
|
427
|
|
413
|
428
|
.textarea {
|
|
@@ -426,5 +441,3 @@ export default {
|
426
|
441
|
}
|
427
|
442
|
}
|
428
|
443
|
</style>
|
429
|
|
-
|
430
|
|
-
|