csx 5 anni fa
parent
commit
98a4d18aff

+ 2 - 0
src/api/advice.js Vedi File

@@ -299,3 +299,5 @@ export function postDoctorAdviceConfig(params) {
299 299
 
300 300
 
301 301
 
302
+
303
+

+ 8 - 0
src/api/dialysis.js Vedi File

@@ -239,6 +239,14 @@ export function postDelMonitorInfo(params) {
239 239
 
240 240
 
241 241
 
242
+export function CreateGroupAdvice(id, groupno, advices){
243
+  return request({
244
+    url:'/m/api/advice_remind/create?id='+id + '&groupno=' + groupno,
245
+    method:'post',
246
+    data:advices,
247
+  })
248
+
249
+}
242 250
 
243 251
 
244 252
 

+ 11 - 0
src/api/dialysis_record.js Vedi File

@@ -84,3 +84,14 @@ export function postDelMonitorInfo(params) {
84 84
 
85 85
 
86 86
 
87
+export function getLongAdvice(params) {
88
+  return request({
89
+    url:'api/dialysis/advice_remind',
90
+    method:'Get',
91
+    params:params,
92
+  })
93
+}
94
+
95
+
96
+
97
+

+ 1 - 0
src/xt_pages/data/druguseTemplate.vue Vedi File

@@ -1462,6 +1462,7 @@
1462 1462
         const params = {
1463 1463
           'data': this.adviceTableData
1464 1464
         }
1465
+        this.form.name =  encodeURIComponent(this.form.name)
1465 1466
         postAdviceTemplate(params, this.form.name, this.form.advice_type).then(response => {
1466 1467
           if (response.data.state == 0) {
1467 1468
             this.$message.error(response.data.msg)

+ 20 - 2
src/xt_pages/dialysis/details/NavIgation.vue Vedi File

@@ -57,7 +57,8 @@
57 57
                                       :niprocart_info="niprocart_info" :jms_info="jms_info" :fistula_needle_set_info="fistula_needle_set_info"
58 58
         :fistula_needle_set_16_info="fistula_needle_set_16_info"  :hemoperfusion_info="hemoperfusion_info" :dialyser_sterilised_info="dialyser_sterilised_info"
59 59
         :filtryzer_info="filtryzer_info" :dialyzers_info="dialyzers_info" :injector_info="injector_info" :bloodlines_info="bloodlines_info"  :tubingHemodialysis_info="tubingHemodialysis_info"
60
-        :safe_package_info="safe_package_info" :aliquid_info="aliquid_info" :config="config"
60
+        :safe_package_info="safe_package_info" :aliquid_info="aliquid_info" :config="config" :admin_users="admin_users"  :targetAdvices="longAdvices"
61
+                                      :waitUploadAdvices="waitUploadAdvices" :is_open="is_open"
61 62
 
62 63
         ></dialysis-prescription-dialog>
63 64
 
@@ -109,10 +110,27 @@ export default {
109 110
   },
110 111
   data() {
111 112
     return {
112
-
113 113
     }
114 114
   },
115 115
   props: {
116
+    longAdvices: { // 临时医嘱
117
+      type: Array,
118
+      default: () => {
119
+        return []
120
+      }
121
+    },
122
+    waitUploadAdvices: { // 临时医嘱
123
+      type: Array,
124
+      default: () => {
125
+        return []
126
+      }
127
+    },
128
+    is_open: { // 临时医嘱
129
+      type: Number,
130
+      default: () => {
131
+        return 0
132
+      }
133
+    },
116 134
     patient: { // 患者信息
117 135
       type: Object,
118 136
       default: () => {

File diff suppressed because it is too large
+ 1531 - 490
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 73 - 1
src/xt_pages/dialysis/details/index.vue Vedi File

@@ -41,6 +41,9 @@
41 41
         :safe_package_info="safe_package_info"
42 42
         :aliquid_info="aliquid_info"
43 43
         :config = "config"
44
+        :longAdvices="longAdvices"
45
+        :waitUploadAdvices="waitUploadAdvices"
46
+        :is_open="is_open"
44 47
       >
45 48
       </nav-igation>
46 49
 
@@ -244,7 +247,7 @@
244 247
   import AssessmentAfter from './assessmentAfter'
245 248
   import TreatmentOf from './treatmentOf'
246 249
   import OperationStaff from './operationStaff'
247
-  import { getDialysisScheduleDetail } from '@/api/dialysis_record'
250
+  import { getDialysisScheduleDetail,getLongAdvice } from '@/api/dialysis_record'
248 251
   import { parseTime } from '@/utils'
249 252
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
250 253
 
@@ -280,6 +283,11 @@
280 283
         patient_id: 0,
281 284
         date: 0,
282 285
 
286
+        longAdvices: [],
287
+        waitUploadAdvices: [],
288
+        is_open: 0,
289
+        targetAdvices: [],
290
+
283 291
         patient: { id: 0 }, // 患者信息
284 292
         schedual: { id: 0 }, // 患者排班信息
285 293
         prescription: { id: 0 }, // 透析处方
@@ -322,6 +330,7 @@
322 330
       this.patient_id = patient_id
323 331
       this.date = date
324 332
       this.getScheduleDetail()
333
+      this.getLongAdvice()
325 334
     },
326 335
     computed: {
327 336
       steps: function() {
@@ -355,6 +364,69 @@
355 364
       }
356 365
     },
357 366
     methods: {
367
+      getLongAdvice(){
368
+        var dateStr = parseTime(this.date, '{y}-{m}-{d}')
369
+        var myDate = new Date(Date.parse(dateStr));
370
+        var weekDay = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
371
+        console.log(weekDay[myDate.getDay()])
372
+
373
+        let params = {
374
+          "date":dateStr+" "+"20:00:00",
375
+          "patient_id":this.patient_id,
376
+          "week": weekDay[myDate.getDay()]
377
+        }
378
+        getLongAdvice(params).then(rs => {
379
+          var resp = rs.data
380
+          if (resp.state == 1) {
381
+
382
+            var status = parseInt(resp.data.status)
383
+
384
+            switch (status) {
385
+              case 2:
386
+                var totalAdvice = resp.data.advices
387
+                var longAdvicesTwo = resp.data.advices_two
388
+                var waitUploadAdvices = []
389
+                for (let i = 0; i < totalAdvice.length; i++) {
390
+                  totalAdvice[i]['isCheck'] = 1
391
+
392
+                }
393
+
394
+                for (let i = 0; i < totalAdvice.length; i++) {
395
+                  for (let a = 0; a < longAdvicesTwo.length; a++) {
396
+                    if (totalAdvice[i].template_id == longAdvicesTwo[a].template_id) {
397
+                      totalAdvice[i]['isCheck'] = 0
398
+                    }
399
+                  }
400
+                }
401
+
402
+
403
+                for (let i = 0; i < totalAdvice.length; i++) {
404
+                  if( totalAdvice[i].isCheck == 1){
405
+                    waitUploadAdvices.push(totalAdvice[i])
406
+                  }
407
+                }
408
+
409
+
410
+                this.is_open = resp.data.is_open_remind
411
+                this.longAdvices = totalAdvice
412
+                this.waitUploadAdvices = waitUploadAdvices
413
+                console.log(this.is_open)
414
+                console.log(this.longAdvices)
415
+                console.log(this.waitUploadAdvices)
416
+
417
+                break
418
+
419
+            }
420
+
421
+
422
+
423
+          } else {
424
+            this.$message.error(resp.msg)
425
+          }
426
+          this.loading = false
427
+        })
428
+
429
+      },
358 430
       didDelMonitor(record_id) {
359 431
         var mrl = this.monitor_records.length
360 432
         for (let index = 0; index < mrl; index++) {

+ 149 - 149
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Vedi File

@@ -21,27 +21,27 @@
21 21
         </div>
22 22
         <div class="inline_block">
23 23
           门诊:
24
-            <div class="under_line" style="width: 30px;text-align: center;">
25
-                <check-box  :checked="patientInfo_source_1 "></check-box>
26
-            </div>
24
+          <div class="under_line" style="width: 30px;text-align: center;">
25
+            <check-box  :checked="patientInfo_source_1 "></check-box>
26
+          </div>
27 27
         </div>
28 28
         <div class="inline_block">
29 29
           病区:
30
-            <div class="under_line" style="width: 50px;text-align: center;">
31
-                {{'/'}}
32
-            </div>
30
+          <div class="under_line" style="width: 50px;text-align: center;">
31
+            {{'/'}}
32
+          </div>
33 33
         </div>
34 34
         <div class="inline_block">
35 35
           床号:
36
-            <div class="under_line" style="width: 50px;text-align: center;">
37
-                {{'/'}}
38
-            </div>
36
+          <div class="under_line" style="width: 50px;text-align: center;">
37
+            {{'/'}}
38
+          </div>
39 39
         </div>
40 40
         <div class="inline_block">
41 41
           透析号:
42
-            <div class="under_line" style="width: 70px;text-align: center;">
43
-                {{'/'}}
44
-            </div>
42
+          <div class="under_line" style="width: 70px;text-align: center;">
43
+            {{'/'}}
44
+          </div>
45 45
         </div>
46 46
         <div class="inline_block" style="margin-left: 5px;">
47 47
           住院号/门诊号:
@@ -52,7 +52,7 @@
52 52
             {{'/'}}
53 53
           </div>
54 54
         </div>
55
-        
55
+
56 56
       </div>
57 57
       <div class="row" >
58 58
         <div class="inline_block" >
@@ -154,7 +154,7 @@
154 154
                 <div class="inline_block" style="margin-left:10px;flex:1;">
155 155
                   穿刺方式:
156 156
                   <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
157
-                    
157
+
158 158
                   </div>
159 159
                   <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
160 160
                     绳梯
@@ -177,7 +177,7 @@
177 177
                 <div class="inline_block" style="flex:1;">
178 178
                   透析方式:
179 179
                   <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
180
-                    
180
+
181 181
                   </div>
182 182
                   <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==1">
183 183
                     HD
@@ -285,21 +285,21 @@
285 285
                   mmol/L
286 286
                 </div>
287 287
                 <div class="inline_block" style="margin-left:10px;">
288
-                 钙:
288
+                  钙:
289 289
                   <div class="under_line" style="width: 50px;text-align: center;">
290 290
                     {{prescription.calcium?prescription.calcium:''}}
291 291
                   </div>
292 292
                   mmol/L
293 293
                 </div>
294 294
                 <div class="inline_block" style="margin-left:10px;">
295
-                 碳酸氢根:
295
+                  碳酸氢根:
296 296
                   <div class="under_line" style="width: 50px;text-align: center;">
297 297
                     {{prescription.bicarbonate?prescription.bicarbonate:''}}
298 298
                   </div>
299 299
                   mmol/L
300 300
                 </div>
301 301
                 <div class="inline_block" style="margin-left:10px;">
302
-                 流量:
302
+                  流量:
303 303
                   <div class="under_line" style="width: 50px;text-align: center;">
304 304
                     {{prescription.dialysate_flow?prescription.dialysate_flow:''}}
305 305
                   </div>
@@ -321,21 +321,21 @@
321 321
                   lu
322 322
                 </div>
323 323
                 <div class="inline_block" style="margin-left:20px;">
324
-                 维持:
324
+                  维持:
325 325
                   <div class="under_line" style="width: 50px;text-align: center;">
326 326
                     {{prescription.anticoagulant_weichi?prescription.anticoagulant_weichi:0}}
327 327
                   </div>
328 328
                   lu
329 329
                 </div>
330 330
                 <div class="inline_block" style="margin-left:20px;">
331
-                 总量:
331
+                  总量:
332 332
                   <div class="under_line" style="width: 50px;text-align: center;">
333 333
                     {{prescription.anticoagulant_zongliang?prescription.anticoagulant_zongliang:''}}
334 334
                   </div>
335 335
                   lu
336 336
                 </div>
337 337
                 <div class="inline_block" style="margin-left:20px;">
338
-                 透析机号:
338
+                  透析机号:
339 339
                   <div class="under_line" style="width: 50px;text-align: center;">
340 340
                     {{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}
341 341
                   </div>
@@ -347,68 +347,68 @@
347 347
             <td style="padding: 0; position: relative;" colspan="2">
348 348
               <table class="inside_table">
349 349
                 <tbody>
350
-                  <tr><td colspan="11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">治疗纪录</td></tr>
351
-                  <tr>
352
-                    <td width="60">时间</td>
353
-                    <td width="60">血压<br/>(mmHg)</td>
354
-                    <td width="50">脉搏<br>(次/分)</td>
355
-                    <td width="50">呼吸<br/>(次/分)</td>
356
-                    <td width="50">血流量<br/>(ml/min)</td>
357
-                    <td width="50">静脉压<br/>(mmHg)</td>
358
-                    <td width="50">跨膜压<br/>(mmHg)</td>
359
-                    <td width="60">透析液温度(°C)</td>
360
-                    <td width="50">电导度<br/>(ms/cm)</td>
361
-                    <td width="50">超滤量<br/>(L)</td>
362
-                    <td width="200">病情变化及处理</td>
363
-       
364
-                    <!-- <td width="100">时间</td>
365
-                    <td width="30">T<br>C°</td>
366
-                    <td width="30">P<br/>次/分</td>
367
-                    <td width="30">R<br/>次/分</td>
368
-                    <td width="100">BP<br/>mmHg</td>
369
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
370
-                    <td width="80">血流量<br/>ml/min</td>
371
-                    <td width="90">超滤量累计L</td>
372
-                    <td width="80">钠浓度<br/>mmol/L</td>
373
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
374
-                    <td  width="100">护士签名</td> -->
375
-                  </tr>
376
-
377
-                  <tr v-for="(monitor,monindex) in monitors" :key="monindex">
378
-                    <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
379
-                    <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure+'/':''}}{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
380
-                    <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
381
-                    <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
382
-                    <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
383
-                    <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
384
-                    <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
385
-                    <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
386
-                    <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
387
-                    <td v-if="monitor.systolic_blood_pressure  > 0">{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
388
-                    <td v-else> </td>
389
-                    <td style="line-height:16px;padding:0px;">
390
-                      <div style="height:40px;line-height:40px; overflow:hidden;">
350
+                <tr><td colspan="11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">治疗纪录</td></tr>
351
+                <tr>
352
+                  <td width="60">时间</td>
353
+                  <td width="60">血压<br/>(mmHg)</td>
354
+                  <td width="50">脉搏<br>(次/分)</td>
355
+                  <td width="50">呼吸<br/>(次/分)</td>
356
+                  <td width="50">血流量<br/>(ml/min)</td>
357
+                  <td width="50">静脉压<br/>(mmHg)</td>
358
+                  <td width="50">跨膜压<br/>(mmHg)</td>
359
+                  <td width="60">透析液温度(°C)</td>
360
+                  <td width="50">电导度<br/>(ms/cm)</td>
361
+                  <td width="50">超滤量<br/>(L)</td>
362
+                  <td width="200">病情变化及处理</td>
363
+
364
+                  <!-- <td width="100">时间</td>
365
+                  <td width="30">T<br>C°</td>
366
+                  <td width="30">P<br/>次/分</td>
367
+                  <td width="30">R<br/>次/分</td>
368
+                  <td width="100">BP<br/>mmHg</td>
369
+                  <td width="60">静脉压/动脉压<br/>mmHg</td>
370
+                  <td width="80">血流量<br/>ml/min</td>
371
+                  <td width="90">超滤量累计L</td>
372
+                  <td width="80">钠浓度<br/>mmol/L</td>
373
+                  <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
374
+                  <td  width="100">护士签名</td> -->
375
+                </tr>
376
+
377
+                <tr v-for="(monitor,monindex) in monitors" :key="monindex">
378
+                  <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
379
+                  <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure+'/':''}}{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
380
+                  <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
381
+                  <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
382
+                  <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
383
+                  <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
384
+                  <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
385
+                  <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
386
+                  <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
387
+                  <td v-if="monitor.systolic_blood_pressure  > 0">{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
388
+                  <td v-else> </td>
389
+                  <td style="line-height:16px;padding:0px;">
390
+                    <div style="height:40px;line-height:40px; overflow:hidden;">
391 391
                         <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
392 392
                           <template v-if="monindex == 0">【开始透析】</template>
393 393
                           <template v-if="(monindex == monitors.length - 1) && monindex >= 3">【结束透析】</template>
394
-                          {{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} 
395
-                        </span> 
396
-                      </div>
397
-                    </td>
398
-                  </tr>
399
-                  <tr v-for="(monitor,monindex) in monitors2" :key="monindex">
400
-                    <td> </td>
401
-                    <td> </td>
402
-                    <td> </td>
403
-                    <td> </td>
404
-                    <td> </td>
405
-                    <td> </td>
406
-                    <td> </td>
407
-                    <td> </td>
408
-                    <td> </td>
409
-                    <td> </td>
410
-                    <td style="line-height:16px;padding:0px;"><div style="height:40px;line-height:20px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> </span> </div></td>
411
-                  </tr>
394
+                          {{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}
395
+                        </span>
396
+                    </div>
397
+                  </td>
398
+                </tr>
399
+                <tr v-for="(monitor,monindex) in monitors2" :key="monindex">
400
+                  <td> </td>
401
+                  <td> </td>
402
+                  <td> </td>
403
+                  <td> </td>
404
+                  <td> </td>
405
+                  <td> </td>
406
+                  <td> </td>
407
+                  <td> </td>
408
+                  <td> </td>
409
+                  <td> </td>
410
+                  <td style="line-height:16px;padding:0px;"><div style="height:40px;line-height:20px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> </span> </div></td>
411
+                </tr>
412 412
                 </tbody>
413 413
               </table>
414 414
             </td>
@@ -417,67 +417,67 @@
417 417
             <td style="padding: 0; position: relative;" colspan="2">
418 418
               <table class="inside_table">
419 419
                 <tbody>
420
-                  <tr style="line-height:35px;padding:8px 5px;">
421
-                    <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">医嘱内容</td>
422
-                  </tr>
423
-                  <!-- <tr style="line-height:35px;padding:8px 5px;">
424
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
425
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
426
-                  </tr> -->
427
-                  <tr style="line-height:35px;padding:8px 5px;">
428
-                    <td style="font-size: 16px" width="10%">时间</td>
429
-                    <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
430
-                    <td style="font-size: 16px" width="10%">医生签名</td>
431
-                    <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
432
-                    <td style="font-size: 16px" width="10%">执行人签名</td>
433
-                    <td style="font-size: 16px" width="10%">时间</td>
434
-                  </tr>
435
-                  <!-- <template v-for="group in doctor_advices" > -->
436
-                    <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index" >
437
-                      <td height="35px" >
420
+                <tr style="line-height:35px;padding:8px 5px;">
421
+                  <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">医嘱内容</td>
422
+                </tr>
423
+                <!-- <tr style="line-height:35px;padding:8px 5px;">
424
+                  <td colspan="4" style="font-size: 16px">开医嘱</td>
425
+                  <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
426
+                </tr> -->
427
+                <tr style="line-height:35px;padding:8px 5px;">
428
+                  <td style="font-size: 16px" width="10%">时间</td>
429
+                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
430
+                  <td style="font-size: 16px" width="10%">医生签名</td>
431
+                  <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
432
+                  <td style="font-size: 16px" width="10%">执行人签名</td>
433
+                  <td style="font-size: 16px" width="10%">时间</td>
434
+                </tr>
435
+                <!-- <template v-for="group in doctor_advices" > -->
436
+                <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index" >
437
+                  <td height="35px" >
438 438
                           <span v-if="advice.start_time">
439 439
                             {{getTime(advice.start_time,'{h}:{i}')}}
440 440
                           </span>
441
-                        <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
442
-                      </td>
443
-                      <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;" >
444
-                        <span v-if="advice.parent_id > 0">---></span>
445
-                        <span >{{advice.advice_name }}</span>
446
-                        <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
447
-                        <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
448
-                        <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
449
-                        <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
450
-                        <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
451
-                        <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
452
-                      </td>
453
-                      <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
454
-                        <span>{{advice.delivery_way}}</span>
455
-                        <span>{{advice.execution_frequency}}</span>
456
-                        <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
457
-                      </td> -->
458
-                      <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
459
-                      <td height="35px">
460
-                        <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
461
-                        <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
462
-                      </td>
463
-                      <!-- <td height="35px">
464
-                        <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
465
-                        <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
466
-                      </td> -->
467
-                      <td height="35px">
468
-                        <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
469
-                        <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
470
-                      </td>
471
-                      <td height="35px">
472
-                        <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
473
-                      </td>
474
-                    </tr>
475
-                  <!-- </template> -->
441
+                    <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
442
+                  </td>
443
+                  <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;" >
444
+                    <span v-if="advice.parent_id > 0">---></span>
445
+                    <span >{{advice.advice_name }}</span>
446
+                    <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
447
+                    <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
448
+                    <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
449
+                    <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
450
+                    <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
451
+                    <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
452
+                  </td>
453
+                  <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
454
+                    <span>{{advice.delivery_way}}</span>
455
+                    <span>{{advice.execution_frequency}}</span>
456
+                    <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
457
+                  </td> -->
458
+                  <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
459
+                  <td height="35px">
460
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
461
+                    <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
462
+                  </td>
463
+                  <!-- <td height="35px">
464
+                    <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
465
+                    <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
466
+                  </td> -->
467
+                  <td height="35px">
468
+                    <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
469
+                    <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
470
+                  </td>
471
+                  <td height="35px">
472
+                    <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
473
+                  </td>
474
+                </tr>
475
+                <!-- </template> -->
476 476
                 </tbody>
477 477
               </table>
478 478
             </td>
479 479
           </tr>
480
-  
480
+
481 481
           <tr><td colspan="2"  style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析后情况</td></tr>
482 482
           <tr>
483 483
             <td>
@@ -631,7 +631,7 @@
631 631
       </div>
632 632
     </div>
633 633
 
634
-   
634
+
635 635
   </div>
636 636
 
637 637
 </template>
@@ -649,7 +649,7 @@
649 649
   import print from 'print-js'
650 650
 
651 651
   export default {
652
-    name: 'dialysisPrintOrderSix',
652
+    name: 'DialysisPrintOrderSix',
653 653
     props: ['childResponse'],
654 654
     components: {
655 655
       // DialysisPrintOrderOne,
@@ -932,7 +932,7 @@
932 932
           if (this.monitors.length <= 6) {
933 933
             var nl = 6
934 934
             this.print_length = 6
935
-            
935
+
936 936
             for (let index = 0; index < nl; index++) {
937 937
               if (this.monitors[index] == undefined || this.monitors[index].length <= 0) {
938 938
                 this.monitors2.push([])
@@ -942,7 +942,7 @@
942 942
             }
943 943
           }
944 944
 
945
-     
945
+
946 946
           this.jilurow = this.monitors.length + 1
947 947
 
948 948
           this.advice_jilurow = this.advices.length + 1
@@ -1006,7 +1006,7 @@
1006 1006
           for (let index = 0; index < this.doctor_advices.length; index++) {
1007 1007
             this.doctor_advices[index]['isShow'] = 2
1008 1008
           }
1009
-          
1009
+
1010 1010
           // if (this.doctor_advices.length > 0) {
1011 1011
           //   var group = this.newAdviceGroupObject()
1012 1012
           //   var initGroupBlock = function(group, advice) {
@@ -1037,7 +1037,7 @@
1037 1037
           //       // this.doctor_advices.push(doctor_advice)
1038 1038
           //     }
1039 1039
           //   }
1040
-            
1040
+
1041 1041
           //   for (let index = 0; index < this.doctor_advices.length; index++) {
1042 1042
           //     const advice = this.doctor_advices[index]
1043 1043
           //     if (advice.groupno == 0) {
@@ -1085,11 +1085,11 @@
1085 1085
           //    this.advice_groups.push(group)
1086 1086
           //   }
1087 1087
           // }
1088
-    
1088
+
1089 1089
           if (this.doctor_advices.length <= 6) {
1090 1090
             var nl = 6
1091 1091
             this.print_length = 6
1092
-            
1092
+
1093 1093
             for (let index = 0; index < nl; index++) {
1094 1094
               if (this.doctor_advices[index] == undefined || this.doctor_advices[index].length <= 0) {
1095 1095
                 this.doctor_advices.push([])
@@ -1228,7 +1228,7 @@
1228 1228
 </script>
1229 1229
 
1230 1230
 <style>
1231
-   .print_page_main_content {
1231
+  .print_page_main_content {
1232 1232
     background-color: white;
1233 1233
     width: 960px;
1234 1234
     margin: 0 auto 50px;
@@ -1243,7 +1243,7 @@
1243 1243
     letter-spacing: 5px;
1244 1244
   }
1245 1245
 
1246
-   .dialysis-print-order .order-title {
1246
+  .dialysis-print-order .order-title {
1247 1247
     margin: auto;
1248 1248
     font-weight: 600;
1249 1249
     text-align: center;
@@ -1267,11 +1267,11 @@
1267 1267
   .inline_block {
1268 1268
     display: inline-block;
1269 1269
   }
1270
-   .under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}
1270
+  .under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}
1271 1271
 
1272
-   .under_line_two::before {content: "\00A0";}
1272
+  .under_line_two::before {content: "\00A0";}
1273 1273
 
1274
-   .under_line_two::after {content: "\00A0";}
1274
+  .under_line_two::after {content: "\00A0";}
1275 1275
 
1276 1276
   .under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap;width: 50%;}
1277 1277
 
@@ -1352,7 +1352,7 @@
1352 1352
   }
1353 1353
   .margin-bottom-50{
1354 1354
   }
1355
-   .margin-bottom-300 {
1355
+  .margin-bottom-300 {
1356 1356
     margin-bottom:450px;
1357 1357
   }
1358 1358
   .margin-bottom-600 {
@@ -1382,5 +1382,5 @@
1382 1382
     margin-left: 2px;
1383 1383
     margin-top: 2px;
1384 1384
     position: absolute;
1385
-}
1385
+  }
1386 1386
 </style>

+ 15 - 1
src/xt_pages/user/doctorAdvice.vue Vedi File

@@ -1176,6 +1176,7 @@
1176 1176
     EditDoctorAdvice,
1177 1177
     ExecGroupAdvice,
1178 1178
     getAdviceConfig,
1179
+    getAllAdviceConfig,
1179 1180
     getDoctorAdviceList,
1180 1181
     StopDoctorAdvice,
1181 1182
     StopGroupAdvice
@@ -3334,6 +3335,19 @@
3334 3335
 
3335 3336
         }
3336 3337
         return value
3338
+      },getAllAdviceConfig:function() {
3339
+
3340
+        getAllAdviceConfig().then(response => {
3341
+          if (response.data.state == 1) {
3342
+            this.deliveryWayOptions =
3343
+              response.data.data.drugways === null
3344
+                ? []
3345
+                : response.data.data.drugways
3346
+            this.executionFrequencyOptions =
3347
+              response.data.data.efs === null ? [] : response.data.data.efs
3348
+
3349
+          }
3350
+        })
3337 3351
       }
3338 3352
     },
3339 3353
     watch: {
@@ -3386,7 +3400,7 @@
3386 3400
 
3387 3401
       // this.fetchAllDoctorAndNurse();
3388 3402
       this.fetchAllAdminUsers()
3389
-      // this.getAdviceConfig()
3403
+      this.getAllAdviceConfig()
3390 3404
       this.getList()
3391 3405
       let params = {
3392 3406
         id: this.patientID