Selaa lähdekoodia

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 2 päivää sitten
vanhempi
commit
7e69b6775e
24 muutettua tiedostoa jossa 4105 lisäystä ja 1242 poistoa
  1. 11 0
      src/router/modules/dialysis.js
  2. 10 1
      src/store/modules/globalConfig.js
  3. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue
  4. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_seventyeight.vue
  5. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue
  6. 46 31
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue
  7. 2 194
      src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue
  8. 1347 0
      src/xt_pages/dialysis/batch_print/new_doctor_advice.vue
  9. 17 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  10. 2 0
      src/xt_pages/dialysis/details/dialog/MultiSelectBox/index.vue
  11. 78 0
      src/xt_pages/dialysis/details/dialog/RadioSelectBox/index.vue
  12. 111 5
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  13. 20 18
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue
  14. 3 3
      src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue
  15. 29 94
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue
  16. 1 791
      src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue
  17. 71 30
      src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue
  18. 19 2
      src/xt_pages/user/components/PatientSidebar.vue
  19. 11 5
      src/xt_pages/user/components/PatientSidebar_new.vue
  20. 961 0
      src/xt_pages/user/courseOfDisease_new.vue
  21. 1201 0
      src/xt_pages/user/inspection_new.vue
  22. 1 2
      src/xt_pages/user/patientInfo.vue
  23. 145 47
      src/xt_pages/user/sickHistory_new.vue
  24. 14 14
      src/xt_permission.js

+ 11 - 0
src/router/modules/dialysis.js Näytä tiedosto

@@ -1162,5 +1162,16 @@ export default {
1162 1162
       is_menu: false,
1163 1163
       hidden: true
1164 1164
     },
1165
+    {
1166
+      path: '/dialysis/new/doctoradvice',
1167
+      component: () => import('@/xt_pages/dialysis/batch_print/new_doctor_advice'),
1168
+      name: '医嘱打印',
1169
+      meta: {
1170
+        title: '医嘱打印',
1171
+        noCache: true
1172
+      },
1173
+      is_menu: false,
1174
+      hidden: true
1175
+    },
1165 1176
   ]
1166 1177
 }

+ 10 - 1
src/store/modules/globalConfig.js Näytä tiedosto

@@ -70939,7 +70939,16 @@ const global_config = {
70939 70939
       name: '低血压'
70940 70940
     }
70941 70941
     ],
70942
-    arterial_tube: [{
70942
+    arterial_tube: [
70943
+      {
70944
+        id: -1,
70945
+        name: '有'
70946
+      },
70947
+      {
70948
+        id: -2,
70949
+        name: '无'
70950
+      },
70951
+      {
70943 70952
       id: 1,
70944 70953
       name: '动脉管道0'
70945 70954
     },

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue Näytä tiedosto

@@ -380,7 +380,7 @@
380 380
                               : "/"
381 381
                           }}
382 382
                         </div>
383
-                        kg
383
+                        L
384 384
                       </div>
385 385
                     </div>
386 386
                     <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_seventyeight.vue Näytä tiedosto

@@ -291,7 +291,7 @@
291 291
                         </div>
292 292
                       </div>
293 293
                     </div>
294
-                    <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
294
+                    <!-- <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
295 295
                       <div class="inline_block" style="flex: 1;">
296 296
                         合并症:
297 297
                         <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
@@ -303,7 +303,7 @@
303 303
                          {{ record.assessment_before_dislysis.remark ? record.assessment_before_dislysis.remark : '/' }}
304 304
                         </div>
305 305
                       </div>
306
-                    </div>
306
+                    </div> -->
307 307
                     <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
308 308
                       <div class="inline_block" style="flex: 1;">
309 309
                         干体重:

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue Näytä tiedosto

@@ -736,8 +736,8 @@
736 736
                         >
737 737
                           {{
738 738
                             record.prescription &&
739
-                            record.prescription.displace_liqui_value
740
-                              ? record.prescription.displace_liqui_value
739
+                            record.prescription.replacement_total
740
+                              ? record.prescription.replacement_total
741 741
                               : "/"
742 742
                           }}
743 743
                         </div>

+ 46 - 31
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Näytä tiedosto

@@ -87,7 +87,7 @@
87 87
                 <div class="under_line" style="width: 30px; text-align: center">
88 88
                   <check-box :checked="record.patient.source == 2"></check-box>
89 89
                 </div>
90
-              </div> 
90
+              </div>
91 91
             </span>
92 92
 
93 93
             <span v-if="org_id ==0 || org_id==10677">
@@ -108,9 +108,9 @@
108 108
                 <div class="under_line" style="width: 30px; text-align: center">
109 109
                   <check-box :checked="false"></check-box>
110 110
                 </div>
111
-              </div> 
111
+              </div>
112 112
             </span>
113
-           
113
+
114 114
 
115 115
             <div class="inline_block" v-if="org_id!=10510">
116 116
               病区:
@@ -1825,8 +1825,8 @@
1825 1825
                               colspan="2"
1826 1826
                               class="advice-name"
1827 1827
                               style="padding-left: 7px"
1828
-                            > 
1829
-                              <div v-if="org_id==10551 || org_id ==0">
1828
+                            >
1829
+                              <!-- <div v-if="org_id==10551 || org_id ==0">
1830 1830
                                 <div :rowspan="advice[0].prescriptionChild.length"  v-for="(it,key)  in advice[0].prescriptionChild" style="border: none;">
1831 1831
                                   <div style="border: none;">
1832 1832
                                     <span>{{ it.advice_name }}</span>
@@ -1851,8 +1851,24 @@
1851 1851
                                           >
1852 1852
                                   </div>
1853 1853
                                 </div>
1854
-                              </div>
1855
-                              <div v-else>
1854
+                              </div> -->
1855
+                              <div >
1856
+                                <template v-if="advice[0].children!=undefined && (org_id==10551||org_id == 0)">
1857
+                                  <div v-for="(item,index) in advice[0].children" :key="index">
1858
+                                    {{ item.advice_name }}
1859
+                                    <span v-if="item.advice_desc">
1860
+                                      ({{ item.advice_desc}}{{ item.drug_spec_unit }})
1861
+                                    </span>
1862
+                                    <span v-if="item.prescribing_number">
1863
+                                      &nbsp;&nbsp; {{ item.prescribing_number}}
1864
+                                      {{ item.prescribing_number_unit }}
1865
+                                    </span>
1866
+                                    <span v-if="item.single_dose !=''">
1867
+                                      {{ item.single_dose}}{{ item.single_dose_unit }}
1868
+                                    </span>
1869
+                                    
1870
+                                  </div>
1871
+                                </template>
1856 1872
                                 <span v-if="advice[0].parent_id > 0"></span>
1857 1873
                                 <span>{{ advice[0].advice_name }}</span>
1858 1874
 
@@ -3252,10 +3268,10 @@ export default {
3252 3268
         var resp = rs.data;
3253 3269
         if (resp.state == 1) {
3254 3270
           this.records = this.records.concat(resp.data.schedules);
3255
-         
3271
+
3256 3272
           var tempmonitorflag = true;
3257 3273
           for(let i=0;i<this.records.length;i++){
3258
-           
3274
+
3259 3275
             for(let j=0;j<this.records[i].monitor_records.length;j++){
3260 3276
               this.records[i].monitor_records[j].end = ""
3261 3277
               if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
@@ -3281,8 +3297,8 @@ export default {
3281 3297
             } else {
3282 3298
               dlegh = 0;
3283 3299
             }
3284
-            
3285
-            
3300
+
3301
+
3286 3302
             if (dlegh > 0) {
3287 3303
               if (
3288 3304
                 typeof this.records[recordIndex].monitor_records ===
@@ -3318,12 +3334,12 @@ export default {
3318 3334
                 this.records[recordIndex].advices.push([]);
3319 3335
               }
3320 3336
             }
3321
-            console.log('22222222',this.records[recordIndex].advices);
3322
-            
3337
+            console.log('222222221111',this.records[recordIndex].advices);
3338
+
3323 3339
             var childMap = {};
3324 3340
             for (const index in this.records[recordIndex].advices) {
3325
-              
3326
-              this.records[recordIndex].advices[index].prescriptionChild = []
3341
+
3342
+              // this.records[recordIndex].advices[index].prescriptionChild = []
3327 3343
               if (this.records[recordIndex].advices[index].parent_id == 0) {
3328 3344
                 continue;
3329 3345
               }
@@ -3351,25 +3367,24 @@ export default {
3351 3367
                 item.children = childMap[item.id];
3352 3368
               } else {
3353 3369
                 item.children = [];
3354
-                this.records[recordIndex].advices[index].prescriptionChild.push(item) 
3355 3370
               }
3356 3371
               advices.push(item);
3357
-              
3358
-            }
3359
-            var arr = []
3360
-            for(let i=0;i<advices.length;i++){
3361
-              for(let j=i+1;j<advices.length;j++){
3362
-                if(advices[i].id !=undefined){
3363
-                  if(advices[i].groupno == advices[j].groupno){
3364
-                    arr.push(advices[j])
3365
-                    advices[i].prescriptionChild.push(advices[j])
3366
-                    advices.splice(j,1)
3367
-                  }
3368
-                }
3369
-              }
3372
+
3370 3373
             }
3371
-            console.log('3333333333',advices,arr);
3372
-            
3374
+            // var arr = []
3375
+            // for(let i=0;i<advices.length;i++){
3376
+            //   for(let j=i+1;j<advices.length;j++){
3377
+            //     if(advices[i].id !=undefined){
3378
+            //       if(advices[i].groupno == advices[j].groupno){
3379
+            //         arr.push(advices[j])
3380
+            //         advices[i].prescriptionChild.push(advices[j])
3381
+            //         advices.splice(j,1)
3382
+            //       }
3383
+            //     }
3384
+            //   }
3385
+            // }
3386
+            console.log('3333333333',advices);
3387
+
3373 3388
             var leftAdvice = [];
3374 3389
             var rightAdvice = [];
3375 3390
             var adlen = advices.length;

+ 2 - 194
src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue Näytä tiedosto

@@ -3037,7 +3037,7 @@
3037 3037
                       </td>
3038 3038
                       <td style="text-align: left">
3039 3039
                         <span v-for="(item, index) in advice" :key="index">
3040
-                          <!-- <span v-if="item.children.length > 0"> -->
3040
+                         
3041 3041
                           <span v-if="item.parent_id > 0">---></span>
3042 3042
                           <span v-if="item.advice_name"
3043 3043
                             >&nbsp;&nbsp;&nbsp;&nbsp;{{
@@ -3092,7 +3092,7 @@
3092 3092
                               >
3093 3093
                             </span>
3094 3094
                           </span>
3095
-                          <!-- </span> -->
3095
+                        
3096 3096
                         </span>
3097 3097
                       </td>
3098 3098
                       <td>
@@ -3153,198 +3153,6 @@
3153 3153
                     </tr>
3154 3154
                   </tbody>
3155 3155
                 </table>
3156
-
3157
-                <!-- <table class="table-box" style="margin-top: 10px">
3158
-                  <tbody>
3159
-                    <tr>
3160
-                      <td width="150"></td>
3161
-                      <td width="30">医生</td>
3162
-                      <td width="80">
3163
-                        <div class="under-line">
3164
-                          &nbsp;
3165
-                          <span
3166
-                            v-if="
3167
-                              setAdminUserES(record.prescription, 'creater') ==
3168
-                              ''
3169
-                            "
3170
-                            >{{
3171
-                              getAdminUser(record.prescription, "creater")
3172
-                            }}</span
3173
-                          >
3174
-                          <img
3175
-                            class="es-img"
3176
-                            :src="
3177
-                              setAdminUserES(record.prescription, 'creater')
3178
-                            "
3179
-                            alt=""
3180
-                            srcset=""
3181
-                            v-else
3182
-                            style="height: 30px"
3183
-                          />
3184
-                        </div>
3185
-                      </td>
3186
-                      <td width="50">穿刺护士</td>
3187
-                      <td width="80">
3188
-                        <div class="under-line">
3189
-                          &nbsp;
3190
-                          <span
3191
-                            v-if="
3192
-                              setAdminUserES(
3193
-                                record.dialysis_order,
3194
-                                'puncture_nurse'
3195
-                              ) == ''
3196
-                            "
3197
-                            >{{
3198
-                              getAdminUser(
3199
-                                record.dialysis_order,
3200
-                                "puncture_nurse"
3201
-                              )
3202
-                            }}</span
3203
-                          >
3204
-                          <span v-else>
3205
-                            <img
3206
-                              class="es-img"
3207
-                              style="height: 30px"
3208
-                              :src="
3209
-                                setAdminUserES(
3210
-                                  record.dialysis_order,
3211
-                                  'puncture_nurse'
3212
-                                )
3213
-                              "
3214
-                            />
3215
-                          </span>
3216
-                        </div>
3217
-                      </td>
3218
-                      <td width="50">核对护士</td>
3219
-                      <td width="80">
3220
-                        <div class="under-line">
3221
-                          &nbsp;
3222
-                          <span
3223
-                            v-if="
3224
-                              record.check != null
3225
-                                ? record.dialysis_order.start_nurse !=
3226
-                                  record.check.modifier
3227
-                                : false
3228
-                            "
3229
-                          >
3230
-                            <span
3231
-                              v-if="
3232
-                                setAdminUserES(
3233
-                                  record.check,
3234
-                                  record.check == null ? 0 : 'modifier'
3235
-                                ) == ''
3236
-                              "
3237
-                            >
3238
-                              {{
3239
-                                getAdminUser(
3240
-                                  record.check,
3241
-                                  record.check == null ? 0 : "modifier"
3242
-                                )
3243
-                              }}
3244
-                            </span>
3245
-                            <img
3246
-                              style="height: 30px"
3247
-                              :src="
3248
-                                setAdminUserES(
3249
-                                  record.check,
3250
-                                  record.check == null ? 0 : 'modifier'
3251
-                                )
3252
-                              "
3253
-                              alt
3254
-                              srcset
3255
-                              v-else
3256
-                            />
3257
-                          </span>
3258
-                          <span v-else>
3259
-                            <span
3260
-                              v-if="
3261
-                                setAdminUserES(
3262
-                                  record.check,
3263
-                                  record.check == null ? 0 : 'creater'
3264
-                                ) == ''
3265
-                              "
3266
-                            >
3267
-                              {{ getAdminUser(record.check, "creater") }}
3268
-                            </span>
3269
-                            <img
3270
-                              style="height: 30px"
3271
-                              :src="
3272
-                                setAdminUserES(
3273
-                                  record.check,
3274
-                                  record.check == null ? 0 : 'creater'
3275
-                                )
3276
-                              "
3277
-                              alt
3278
-                              srcset
3279
-                              v-else
3280
-                            />
3281
-                          </span>
3282
-                        </div>
3283
-                      </td>
3284
-                      <td width="50">看机护士</td>
3285
-                      <td width="80">
3286
-                        <div class="under-line">
3287
-                          &nbsp;
3288
-                          <span
3289
-                            v-if="
3290
-                              setAdminUserES(
3291
-                                record.dialysis_order,
3292
-                                'start_nurse'
3293
-                              ) == ''
3294
-                            "
3295
-                            >{{
3296
-                              getAdminUser(record.dialysis_order, "start_nurse")
3297
-                            }}</span
3298
-                          >
3299
-                          <span v-else>
3300
-                            <img
3301
-                              class="es-img"
3302
-                              style="height: 30px"
3303
-                              :src="
3304
-                                setAdminUserES(
3305
-                                  record.dialysis_order,
3306
-                                  'start_nurse'
3307
-                                )
3308
-                              "
3309
-                            />
3310
-                          </span>
3311
-                        </div>
3312
-                      </td>
3313
-                      <td width="50">下机护士</td>
3314
-                      <td width="80">
3315
-                        <div class="under-line">
3316
-                          &nbsp;
3317
-                          <span
3318
-                            v-if="
3319
-                              setAdminUserES(
3320
-                                record.dialysis_order,
3321
-                                'finish_nurse'
3322
-                              ) == ''
3323
-                            "
3324
-                            >{{
3325
-                              getAdminUser(
3326
-                                record.dialysis_order,
3327
-                                "finish_nurse"
3328
-                              )
3329
-                            }}</span
3330
-                          >
3331
-                          <span v-else>
3332
-                            <img
3333
-                              class="es-img"
3334
-                              style="height: 30px"
3335
-                              :src="
3336
-                                setAdminUserES(
3337
-                                  record.dialysis_order,
3338
-                                  'finish_nurse'
3339
-                                )
3340
-                              "
3341
-                            />
3342
-                          </span>
3343
-                        </div>
3344
-                      </td>
3345
-                    </tr>
3346
-                  </tbody>
3347
-                </table> -->
3348 3156
               </div>
3349 3157
             </div>
3350 3158
           </div>

File diff suppressed because it is too large
+ 1347 - 0
src/xt_pages/dialysis/batch_print/new_doctor_advice.vue


+ 17 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Näytä tiedosto

@@ -230,6 +230,7 @@
230 230
       </template>
231 231
       <template v-if="this.template_id == 27">
232 232
         <el-button
233
+          style="margin-left: 1000px;"
233 234
           size="small"
234 235
           icon="el-icon-printer"
235 236
           :disabled="selecting_schs.length == 0"
@@ -237,6 +238,14 @@
237 238
           type="primary"
238 239
           >批量打印</el-button
239 240
         >
241
+        <el-button
242
+          size="small"
243
+          icon="el-icon-printer"
244
+          :disabled="selecting_schs.length == 0"
245
+          @click="batchPrintActionThree"
246
+          type="primary"
247
+          >医嘱打印</el-button
248
+        >
240 249
       </template>
241 250
       <template v-if="this.template_id == 28">
242 251
         <el-button
@@ -2817,6 +2826,14 @@ export default {
2817 2826
         this.$router.push({ path: "/dialysis/print/batch/thirtyThree_two" });
2818 2827
       }
2819 2828
     },
2829
+    batchPrintActionThree:function(){
2830
+      var sch_ids = [];
2831
+      for (let index = 0; index < this.selecting_schs.length; index++) {
2832
+        sch_ids.push(this.selecting_schs[index].sch_id);
2833
+      }
2834
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
2835
+      this.$router.push({path:"/dialysis/new/doctoradvice"})
2836
+    },
2820 2837
     toExport(){
2821 2838
       import('@/vendor/Export2Excel').then(excel => {
2822 2839
 

+ 2 - 0
src/xt_pages/dialysis/details/dialog/MultiSelectBox/index.vue Näytä tiedosto

@@ -14,6 +14,7 @@
14 14
         :key="index"
15 15
       ></el-checkbox>
16 16
     </el-checkbox-group>
17
+
17 18
     <el-input
18 19
       v-show="propsForm.isShowTextArea"
19 20
       v-model="customData"
@@ -60,6 +61,7 @@ export default {
60 61
     },
61 62
 
62 63
     getValue: function() {
64
+     
63 65
       var returnData = [];
64 66
       for (var index in this.checkedData) {
65 67
         returnData.push(this.checkedData[index]);

+ 78 - 0
src/xt_pages/dialysis/details/dialog/RadioSelectBox/index.vue Näytä tiedosto

@@ -0,0 +1,78 @@
1
+<template>
2
+    <el-dialog
3
+      append-to-body
4
+      :show-close="isClose"
5
+      :close-on-click-modal="isClose"
6
+      :close-on-press-escape="isClose"
7
+      :title="propsForm.titles"
8
+      :visible.sync="propsForm.visibility"
9
+    >
10
+       <el-radio-group v-model="checkedData">
11
+        <el-radio
12
+          v-for="(item, index) in propsForm.values"
13
+          :label="item.name"
14
+          :key="index"
15
+        ></el-radio>
16
+      </el-radio-group>
17
+      <span slot="footer" class="dialog-footer">
18
+        <el-button @click="cancle">取 消</el-button>
19
+        <el-button type="primary" @click="comfirm">保 存</el-button>
20
+      </span>
21
+    </el-dialog>
22
+  </template>
23
+  
24
+  <script>
25
+  export default {
26
+    name: "RadioelectBox",
27
+    props: {
28
+      propsForm: {
29
+        type: Object
30
+      }
31
+    },
32
+    data() {
33
+      return {
34
+        checkedData: "",
35
+        customData: "",
36
+        valueString: this.propsForm.selected,
37
+        isClose: false,
38
+        typeValue: this.propsForm.type
39
+      };
40
+    },
41
+    methods: {
42
+      comfirm: function() {
43
+        let returnValue = {};
44
+        returnValue["value"] = this.getValue();
45
+        returnValue["type"] = this.propsForm.type;
46
+        this.propsForm.type = "";
47
+        this.$emit("dialog-comfirm", returnValue);
48
+        console.log(returnValue,"opo")
49
+      },
50
+      cancle: function() {
51
+        this.propsForm.type = "";
52
+        this.$emit("dialog-cancle");
53
+      },
54
+  
55
+      getValue: function() {
56
+       
57
+        return this.checkedData;
58
+       
59
+      }
60
+    },
61
+    created() {
62
+    },
63
+    watch: {
64
+      "propsForm.type": function() {
65
+        this.checkedData= ""
66
+        this.checkedData = this.propsForm.selected 
67
+      }
68
+    }
69
+  };
70
+  </script>
71
+  
72
+  <style scoped>
73
+  .el-checkbox {
74
+    margin-left: 0px;
75
+    margin-right: 30px;
76
+  }
77
+  </style>
78
+  

+ 111 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -815,7 +815,7 @@
815 815
                         </el-form-item>
816 816
                     </el-col>
817 817
 
818
-                    <el-col :span="8" v-if="isShows('透析器')">
818
+                    <el-col :span="8" v-if="isShows('透析器') && this.$store.getters.xt_user.template_info.org_id != 10164">
819 819
                         <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
820 820
                             <el-input v-model="dialysisPrescription.dialysis_dialyszers"
821 821
                                       @focus="showInnerDialog('7')"></el-input>
@@ -823,13 +823,30 @@
823 823
                     </el-col>
824 824
 
825 825
 
826
-                    <el-col :span="8" v-if="isShows('灌流器')">
826
+                    <el-col :span="8" v-if="isShows('透析器') && this.$store.getters.xt_user.template_info.org_id == 10164"  >
827
+                        <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
828
+                            <el-input v-model="dialysisPrescription.dialysis_dialyszers"
829
+                                      @focus="showInnerDialog('20')"></el-input>
830
+                        </el-form-item>
831
+                    </el-col>
832
+
833
+                
834
+
835
+
836
+                    <el-col :span="8" v-if="isShows('灌流器') && this.$store.getters.xt_user.template_info.org_id != 10164">
827 837
                         <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
828 838
                             <el-input v-model="dialysisPrescription.dialysis_irrigation"
829 839
                                       @focus="showInnerDialog('8')"></el-input>
830 840
                         </el-form-item>
831 841
                     </el-col>
832 842
 
843
+                    <el-col :span="8" v-if="isShows('灌流器') && this.$store.getters.xt_user.template_info.org_id == 10164">
844
+                        <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
845
+                            <el-input v-model="dialysisPrescription.dialysis_irrigation"
846
+                                      @focus="showInnerDialog('21')"></el-input>
847
+                        </el-form-item>
848
+                    </el-col>
849
+
833 850
                      <el-col :span="8" v-if="isShows('滤过器')">
834 851
                         <el-form-item label="滤过器:" prop="dialysis_strainer" :rules="isCheckmust('滤过器')">
835 852
                             <el-input v-model="dialysisPrescription.dialysis_strainer"
@@ -1437,6 +1454,13 @@
1437 1454
                 v-on:dialog-cancle="innerDialogCancle"
1438 1455
         ></multi-select-box>
1439 1456
 
1457
+        <radio-select-box
1458
+         :propsForm="InnerDialogPropsOne"
1459
+         v-on:dialog-comfirm="innerDialogComfirmOne"
1460
+         v-on:dialog-cancle="innerDialogCancleOne">
1461
+
1462
+        </radio-select-box>
1463
+
1440 1464
 
1441 1465
      <el-dialog
1442 1466
       title="提示"
@@ -1482,10 +1506,11 @@
1482 1506
   import MsgTip from './MsgTip'
1483 1507
   import request from '@/utils/request'
1484 1508
   import multiSelectBox from './MultiSelectBox'
1509
+  import radioSelectBox from './RadioSelectBox'
1485 1510
   const moment = require('moment')
1486 1511
   export default {
1487 1512
     name: 'dialysisPrescriptionDialog',
1488
-    components: { MsgTip, multiSelectBox },
1513
+    components: { MsgTip, multiSelectBox,radioSelectBox },
1489 1514
     props: {
1490 1515
       mode_id: {
1491 1516
         type: Number
@@ -1720,6 +1745,14 @@
1720 1745
           titles: '',
1721 1746
           type: '' // 不同弹框类型,用来匹配数据
1722 1747
         },
1748
+        InnerDialogPropsOne:{
1749
+          values: [],
1750
+          visibility: false,
1751
+          isShowTextArea: true,
1752
+          customContent: '',
1753
+          titles: '',
1754
+          type: '' // 不同弹框类型,用来匹配数据
1755
+        },
1723 1756
         advice_start_time: '',
1724 1757
         showTxt: '',
1725 1758
         start_time: '',
@@ -1949,8 +1982,14 @@
1949 1982
 
1950 1983
       },
1951 1984
       showInnerDialog: function(val) {
1985
+        console.log("处方=======================",val)
1986
+        
1987
+        if(val == 20 || val == 21){
1988
+          this.InnerDialogPropsOne.visibility = true
1989
+        }else{
1990
+          this.InnerDialogProps.visibility = true
1991
+        }
1952 1992
 
1953
-        this.InnerDialogProps.visibility = true
1954 1993
         switch (val) {
1955 1994
           case '5': // 透析器/灌流器
1956 1995
 
@@ -1975,12 +2014,14 @@
1975 2014
             for (let i = 0; i < this.dialyzers.length; i++) {
1976 2015
               this.dialyzers[i].name = this.dialyzers[i].specification_name
1977 2016
             }
2017
+            
1978 2018
             this.InnerDialogProps.values = this.dialyzers
1979 2019
             this.InnerDialogProps.titles = '透析器'
1980 2020
             this.InnerDialogProps.type = 'dialyzers'
1981 2021
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
1982 2022
             this.InnerDialogProps.isShowTextArea = false
1983 2023
             break
2024
+          
1984 2025
           case '8':
1985 2026
             for (let i = 0; i < this.irrigations.length; i++) {
1986 2027
               this.irrigations[i].name = this.irrigations[i].specification_name
@@ -2035,10 +2076,32 @@ mu
2035 2076
             this.InnerDialogProps.isShowTextArea = false
2036 2077
 
2037 2078
             break
2079
+            case '20': // 透析器
2080
+             
2081
+              for (let i = 0; i < this.dialyzers.length; i++) {
2082
+                this.dialyzers[i].name = this.dialyzers[i].specification_name
2083
+              }
2084
+              this.InnerDialogPropsOne.values = this.dialyzers
2085
+              this.InnerDialogPropsOne.titles = '透析器'
2086
+              this.InnerDialogPropsOne.type = 'dialyzers'
2087
+              this.InnerDialogPropsOne.selected = this.dialysisPrescription.dialysis_dialyszers
2088
+              this.InnerDialogPropsOne.isShowTextArea = false
2089
+              break
2090
+           case '21':
2091
+            for (let i = 0; i < this.irrigations.length; i++) {
2092
+              this.irrigations[i].name = this.irrigations[i].specification_name
2093
+            }
2094
+            this.InnerDialogPropsOne.values = this.irrigations
2095
+            this.InnerDialogPropsOne.titles = '灌流器'
2096
+            this.InnerDialogPropsOne.type = 'irrigations'
2097
+            this.InnerDialogPropsOne.selected = this.dialysisPrescription.dialysis_irrigation
2098
+            this.InnerDialogPropsOne.isShowTextArea = false
2099
+            break
2038 2100
         }
2039 2101
       },
2040 2102
       innerDialogComfirm: function(val) {
2041
-
2103
+          
2104
+       
2042 2105
 
2043 2106
         this.InnerDialogProps.visibility = false
2044 2107
         switch (val.type) {
@@ -2124,6 +2187,49 @@ mu
2124 2187
         this.InnerDialogProps.visibility = false
2125 2188
       },
2126 2189
 
2190
+
2191
+      innerDialogComfirmOne: function(val) {
2192
+       
2193
+          this.InnerDialogPropsOne.visibility = false
2194
+          switch (val.type) {
2195
+            case 'dialyzers':
2196
+              var newArr = []
2197
+              if(this.dialyzers!=null && this.dialyzers.length >0){
2198
+                for(let i=0;i<this.dialyzers.length;i++){
2199
+                  if(this.dialyzers[i].specification_name == val.value){
2200
+                    newArr.push(val.value)
2201
+                  }
2202
+                }
2203
+              }
2204
+              if(newArr!=null && newArr.length >0){
2205
+               this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
2206
+              }else{
2207
+                this.dialysisPrescription.dialysis_dialyszers = ""
2208
+              }
2209
+  
2210
+              break
2211
+            case 'irrigations':
2212
+              var newArr = []
2213
+              console.log("irrigations0000000000000000",this.irrigations)
2214
+              if(this.irrigations!=null && this.irrigations.length >0){
2215
+                for(let i=0;i<this.irrigations.length;i++){
2216
+                  if(this.irrigations[i].specification_name == val.value){
2217
+                    newArr.push(val.value)
2218
+                  }
2219
+                }
2220
+              }
2221
+              if(newArr!=null && newArr.length>0){
2222
+               this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
2223
+              }else{
2224
+                this.dialysisPrescription.dialysis_irrigation = ""
2225
+              }
2226
+              break
2227
+           
2228
+          }
2229
+        },
2230
+      innerDialogCancleOne: function() {
2231
+       this.InnerDialogPropsOne.visibility = false
2232
+      },
2127 2233
       getDryWeight() {
2128 2234
         if (this.dry_weight != null && this.dry_weight.id > 0) {
2129 2235
           return this.dry_weight.dry_weight

+ 20 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue Näytä tiedosto

@@ -264,7 +264,7 @@
264 264
                     </div>
265 265
                   </div>
266 266
 
267
-                  <div class="row" style="display: flex">
267
+                  <!-- <div class="row" style="display: flex">
268 268
                     <div class="inline_block" style="flex: 1;">
269 269
                       合并症:
270 270
                       <div class="under_line"
@@ -273,7 +273,7 @@
273 273
                         {{ predialysis.complication ? predialysis.complication : "/" }}
274 274
                       </div>
275 275
                     </div>
276
-                  </div>
276
+                  </div> -->
277 277
 
278 278
                   <div class="row" style=" display: flex">
279 279
                     <div class="inline_block" style="flex: 1;">
@@ -482,7 +482,7 @@
482 482
                         "
483 483
                       >
484 484
                       <span v-if="predialysis.weight_before && afterdialysis.weight_after &&
485
-                          parseFloat( predialysis.weight_before - predialysis.additional_weight ).toFixed(1) - 
485
+                          parseFloat( predialysis.weight_before - predialysis.additional_weight ).toFixed(1) -
486 486
                           parseFloat( afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1)==0
487 487
                       ">
488 488
                           0
@@ -491,7 +491,7 @@
491 491
                         {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/"}}
492 492
                       </span>
493 493
 
494
-                        
494
+
495 495
                       </div>kg
496 496
                     </div>
497 497
                     <div class="inline_block" style="flex:1;">
@@ -1815,7 +1815,7 @@ export default {
1815 1815
 
1816 1816
     checkData() {
1817 1817
       console.log('new_date',this.new_date);
1818
-      
1818
+
1819 1819
       var checkDate =[]
1820 1820
       var monearr = []
1821 1821
       // if(this.dialysisOrder != undefined && this.dialysisOrder.end_time > this.new_date){
@@ -1840,10 +1840,12 @@ export default {
1840 1840
         } if (this.predialysis.internal_fistula == "" || this.predialysis.catheter == "") {
1841 1841
           const obj6 = "透前内瘘,导管"
1842 1842
           checkDate.push(obj6)
1843
-        } if (this.predialysis.complication == "" ) {
1844
-          const obj7 = "合并症"
1845
-          checkDate.push(obj7)
1846
-        } if (this.predialysis.dry_weight == '' ) {
1843
+        }
1844
+        // if (this.predialysis.complication == "" ) {
1845
+        //   const obj7 = "合并症"
1846
+        //   checkDate.push(obj7)
1847
+        // }
1848
+        if (this.predialysis.dry_weight == '' ) {
1847 1849
           const obj8 = "干体重"
1848 1850
           checkDate.push(obj8)
1849 1851
         } if ( this. predialysis.weight_before == '') {
@@ -1887,8 +1889,8 @@ export default {
1887 1889
           const obj20 = "透后体重"
1888 1890
           checkDate.push(obj20)
1889 1891
         }
1890
-        if (this.afterdialysis.weight_loss == '' && 
1891
-            this.predialysis.weight_before =='' && 
1892
+        if (this.afterdialysis.weight_loss == '' &&
1893
+            this.predialysis.weight_before =='' &&
1892 1894
             this.afterdialysis.weight_after == ''
1893 1895
         ) {
1894 1896
           const obj21 = "体重减少"
@@ -1927,11 +1929,11 @@ export default {
1927 1929
         ){
1928 1930
           const obj30 = "透析器"
1929 1931
           checkDate.push(obj30)
1930
-        } 
1932
+        }
1931 1933
         // if (this.predialysis.machine_type == 0) {
1932 1934
         //   const obj31 = "透析机型"
1933 1935
         //   checkDate.push(obj31)
1934
-        // } 
1936
+        // }
1935 1937
         if ( this.dialysisOrder !=undefined && this.dialysisOrder.DeviceNumber.number == 0) {
1936 1938
           const obj32 = "机号"
1937 1939
           checkDate.push(obj32)
@@ -2049,7 +2051,7 @@ export default {
2049 2051
         if(this.dialysisOrder !=undefined && this.dialysisOrder.end_time != 0){
2050 2052
           if(this.monitors.length >0){
2051 2053
             for(let i in this.monitors){
2052
-              if(this.dialysisOrder.end_time >= this.monitors[i].operate_time && 
2054
+              if(this.dialysisOrder.end_time >= this.monitors[i].operate_time &&
2053 2055
                 this.monitors[i].dispose.indexOf('停') <=-1 && this.monitors[i].ultrafiltration_rate!=0
2054 2056
               ){
2055 2057
                   console.log('1111111111',this.dialysisOrder.end_time,this.monitors[i].operate_time);
@@ -2088,12 +2090,12 @@ export default {
2088 2090
                   checkDate.push(obj62)
2089 2091
                 }
2090 2092
               }
2091
-              
2093
+
2092 2094
 
2093 2095
             }
2094 2096
           }
2095 2097
         }
2096
-        
2098
+
2097 2099
         // if(monearr.length>0){
2098 2100
         // checkDate =checkDate.concat(monearr)
2099 2101
         //   console.log('1111',checkDate.concat(monearr));
@@ -2831,8 +2833,8 @@ export default {
2831 2833
           cancelButtonText: '取消',
2832 2834
           type: 'warning',
2833 2835
           dangerouslyUseHTMLString: true,
2834
-        })       
2835
-        
2836
+        })
2837
+
2836 2838
         // this.$message({
2837 2839
         //   dangerouslyUseHTMLString: true,
2838 2840
         //   message:message,

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue Näytä tiedosto

@@ -703,8 +703,8 @@
703 703
                         style="width: 70px; text-align: center"
704 704
                       >
705 705
                         {{
706
-                          prescription.displace_liqui_value
707
-                            ? prescription.displace_liqui_value
706
+                          prescription.replacement_total
707
+                            ? prescription.replacement_total
708 708
                             : "/"
709 709
                         }}
710 710
                       </div>
@@ -2505,7 +2505,7 @@ export default {
2505 2505
       ) {
2506 2506
         this.$message.error("置换方式未填");
2507 2507
       } else if (
2508
-        this.prescription.displace_liqui_value == 0 &&
2508
+        this.prescription.replacement_total == 0 &&
2509 2509
         this.prescription.mode_id == 2
2510 2510
       ) {
2511 2511
         this.$message.error("置换量未填");

+ 29 - 94
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Näytä tiedosto

@@ -1564,33 +1564,23 @@
1564 1564
                           colspan="2" class="advice-name"
1565 1565
                           style="padding-left: 7px"
1566 1566
                         >
1567
-                          <div v-if="org_id==10551 || org_id ==0">
1568
-                            <div :rowspan="advice.prescriptionChild.length"  v-for="(it,key)  in advice.prescriptionChild" style="border: none;">
1569
-                              <div style="border: none;">
1570
-                                <span>{{ it.advice_name }}</span>
1571
-                                      <span v-if="it && it.advice_desc"
1572
-                                        >({{ it.advice_desc
1573
-                                        }}{{ it.drug_spec_unit }})</span
1574
-                                      >
1575
-                                      <span v-if="it.prescribing_number"
1576
-                                        >&nbsp;&nbsp; {{ it.prescribing_number
1577
-                                        }}{{ it.prescribing_number_unit }}</span
1578
-                                      >
1579
-                                      <span v-if="it.single_dose != 0"
1580
-                                        >{{ it.single_dose
1581
-                                        }}{{ it.single_dose_unit }}</span
1582
-                                      >
1583
-                                      <span>{{ it.delivery_way}}</span>
1584
-                                      <span>{{
1585
-                                        it.execution_frequency
1586
-                                      }}</span>
1587
-                                      <span v-if="it.remark !=''"
1588
-                                        >({{ it.remark }})</span
1589
-                                      >
1567
+                          <div >
1568
+                            <template v-if="advice.children!=undefined && (org_id==10551||org_id == 0)">
1569
+                              <div v-for="(item,index) in advice.children" :key="index">
1570
+                                {{ item.advice_name }}
1571
+                                <span v-if="item.advice_desc">
1572
+                                  ({{ item.advice_desc}}{{ item.drug_spec_unit }})
1573
+                                </span>
1574
+                                <span v-if="item.prescribing_number">
1575
+                                  &nbsp;&nbsp; {{ item.prescribing_number}}
1576
+                                  {{ item.prescribing_number_unit }}
1577
+                                </span>
1578
+                                <span v-if="item.single_dose !=''">
1579
+                                  {{ item.single_dose}}{{ item.single_dose_unit }}
1580
+                                </span>
1581
+                                
1590 1582
                               </div>
1591
-                            </div>
1592
-                          </div>
1593
-                          <div v-else>
1583
+                            </template>
1594 1584
                             <span v-if="advice.parent_id > 0">---></span>
1595 1585
                             <span>{{ advice.advice_name }}</span>
1596 1586
                             <span v-if="advice && advice.advice_desc"
@@ -3367,7 +3357,8 @@ export default {
3367 3357
 
3368 3358
         this.users = response.data.data.users;
3369 3359
         this.patientInfo = response.data.data.patientInfo;
3370
-
3360
+        console.log('response.data.data',response.data.data);
3361
+        
3371 3362
         this.patientInfo.birth = uParseTime(
3372 3363
           this.patientInfo.birthday,
3373 3364
           "{y}-{m}-{d}"
@@ -3765,6 +3756,15 @@ export default {
3765 3756
           }
3766 3757
         }
3767 3758
 
3759
+        if(this.org_id ==10551 ||this.org_id ==0){
3760
+          for(let i in this.doctor_advices){
3761
+            if(this.doctor_advices[i].parent_id >0){
3762
+              this.doctor_advices.splice(i,1)
3763
+            }
3764
+          }
3765
+        }
3766
+        
3767
+
3768 3768
         this.totollength = this.doctor_advices.length + this.monitors.length;
3769 3769
         console.log("this.totollength",this.totollength)
3770 3770
         if (this.totollength > 18) {
@@ -3779,76 +3779,11 @@ export default {
3779 3779
               doctor_advices_2.push(element);
3780 3780
             }
3781 3781
           }
3782
+          
3782 3783
           this.doctor_advices = doctor_advices_1;
3783 3784
           this.doctor_advices_2 = doctor_advices_2;
3784 3785
         }
3785
-        if(this.org_id ==10551 ||this.org_id ==0){
3786
-          var docArr = []
3787
-          if(this.doctor_advices!=null && this.doctor_advices.length>0){
3788
-            for(let i=0;i<this.doctor_advices.length;i++){
3789
-              if(this.doctor_advices[i].delivery_way!='口服'){
3790
-                  docArr.push(this.doctor_advices[i])
3791
-              }
3792
-            }
3793
-          }
3794
-          this.doctor_advices = []
3795
-          this.doctor_advices = docArr
3796
-
3797
-          if(this.doctor_advices!=null && this.doctor_advices.length>0 ){
3798
-
3799
-            for(let i=0;i<this.doctor_advices.length;i++){
3800
-              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno
3801
-            }
3802
-            console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
3803
-
3804
-            let dataInfo = {}
3805
-            this.doctor_advices.forEach((item, index) => {
3806
-
3807
-            let { groupPrescriptionId } = item
3808
-            if (!dataInfo[groupPrescriptionId]) {
3809
-              dataInfo[groupPrescriptionId] = {
3810
-                groupPrescriptionId:item.groupPrescriptionId,
3811
-                start_time:item.start_time,
3812
-                advice_name:item.advice_name,
3813
-                advice_desc:item.advice_desc,
3814
-                parent_id:item.parent_id,
3815
-                drug_spec_unit:item.drug_spec_unit,
3816
-                prescribing_number:item.prescribing_number,
3817
-                prescribing_number_unit:item.prescribing_number_unit,
3818
-                single_dose:item.single_dose,
3819
-                single_dose_unit:item.single_dose_unit,
3820
-                delivery_way:item.delivery_way,
3821
-                execution_frequency:item.execution_frequency,
3822
-                remark:item.remark,
3823
-                execution_time:item.execution_time,
3824
-                execution_staff:item.execution_staff,
3825
-                prescriptionChild:[],
3826
-                advice_doctor:item.advice_doctor,
3827
-              }
3828
-            }
3829
-            })
3830
-            let newArr = Object.values(dataInfo)
3831
-
3832
-            if(newArr!=null && newArr.length >0){
3833
-              for(let i=0;i<newArr.length;i++){
3834
-                for(let j=0;j<this.doctor_advices.length;j++){
3835
-                  if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
3836
-                      newArr[i].prescriptionChild.push(this.doctor_advices[j])
3837
-                  }
3838
-                }
3839
-              }
3840
-            }
3841
-            for(let i in newArr){
3842
-              if(newArr[i].parent_id == undefined){
3843
-                newArr.splice(i,1)
3844
-              }
3845
-            }
3846
-            console.log("newArr",newArr)
3847
-            this.doctor_advices = []
3848
-            this.doctor_advices = newArr
3849
-
3850
-          }
3851
-        }
3786
+        
3852 3787
       } else {
3853 3788
         this.loading = false;
3854 3789
         this.$message.error("请求数据失败");

+ 1 - 791
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue Näytä tiedosto

@@ -351,7 +351,7 @@
351 351
                             : "/"
352 352
                         }}
353 353
                       </div>
354
-                      kg
354
+                      L
355 355
                     </div>
356 356
                   </div>
357 357
 
@@ -1331,796 +1331,6 @@
1331 1331
       </div>
1332 1332
     </div>
1333 1333
 
1334
-    <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;">
1335
-      <div class="order-yy-name">{{ orgname }}</div>
1336
-      <div class="order_title" v-if="org_id!=0&&org_id!=10579">血液净化科医嘱及执行单</div>
1337
-      <div class="order_title" v-if=" org_id==10579">血液净化治疗记录单</div>
1338
-      <div class="row" style="margin-top: 15px">
1339
-        <div class="inline_block">
1340
-          科室:
1341
-          <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
1342
-          &nbsp;
1343
-          <check-box text="住院" :checked="patientInfo_source_2"></check-box>
1344
-        </div>
1345
-        <div class="inline_block" style="margin-left: 5px;">
1346
-          住院号:
1347
-          <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
1348
-            {{ patientInfo.admission_number }}
1349
-          </div>
1350
-          <div class="under_line" style="width: 70px;text-align: left" v-else>
1351
-            {{ "/" }}
1352
-          </div>
1353
-        </div>
1354
-        <div class="inline_block" style="margin-left:10px;">
1355
-          姓名:
1356
-          <div class="under_line" style="width: 50px;text-align: left">
1357
-            {{ patientInfo.name }}
1358
-          </div>
1359
-        </div>
1360
-        <div class="inline_block" style="margin-left: 10px;">
1361
-          性别:
1362
-          <check-box text="男" :checked="patientInfo_gender_1"></check-box>
1363
-          &nbsp;
1364
-          <check-box text="女" :checked="patientInfo_gender_2"></check-box>
1365
-        </div>
1366
-        <div class="inline_block" style="margin-left: 10px;">
1367
-          年龄:
1368
-          <div class="under_line" style="width: 30px;text-align: left">
1369
-            <!-- {{ getAge(patientInfo) }} -->
1370
-            {{ calculateAge(patientInfo.id_card_no,schedule_date) }}
1371
-          </div>
1372
-          岁
1373
-        </div>
1374
-        <div class="inline_block" style="margin-left: 10px;">
1375
-          透析日期:
1376
-          <div class="under_line" style="width: 100px;text-align: left">
1377
-            {{ xtdate }}
1378
-          </div>
1379
-        </div>
1380
-      </div>
1381
-      <div class="row" style="margin-top: 15px">
1382
-        <div  style="">
1383
-          诊断:
1384
-          <div class="under_line" style="width: 95%;text-align: left;white-space: normal;">
1385
-            {{ patientInfo.diagnose }}
1386
-          </div>
1387
-        </div>
1388
-      </div>
1389
-
1390
-      <table class="print-table-no">
1391
-                    <tbody>
1392
-                      <tr style="line-height: 35px; padding: 8px 5px">
1393
-                        <td
1394
-                          colspan="7"
1395
-                          style="
1396
-                            letter-spacing: 5px;
1397
-                            text-align: center;
1398
-                            font-weight: 520;
1399
-                            font-size: 16px;
1400
-                            padding: 6px 8px;
1401
-                            line-height: 30px;
1402
-                          "
1403
-                        >
1404
-                          医嘱内容
1405
-                        </td>
1406
-                      </tr>
1407
-                      <tr style="line-height: 35px; padding: 8px 5px">
1408
-                        <td style="font-size: 16px" width="10%">时间</td>
1409
-                        <td style="font-size: 16px" colspan="2" width="45%">
1410
-                          医嘱内容
1411
-                        </td>
1412
-                        <td style="font-size: 16px" width="10%">医生签名</td>
1413
-
1414
-                        <td style="font-size: 16px" width="10%">执行人签名</td>
1415
-                        <td style="font-size: 16px" width="10%">时间</td>
1416
-                        <td
1417
-                          style="font-size: 16px"
1418
-                          width="10%"
1419
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1420
-                        >
1421
-                          核对护士
1422
-                        </td>
1423
-                      </tr>
1424
-
1425
-
1426
-                      <tr
1427
-                        v-for="(advice, advice_index) in doctor_advices"
1428
-                        :key="advice_index"
1429
-                      >
1430
-                        <td height="32px">
1431
-                          <span v-if="advice.start_time">
1432
-                            {{ getTime(advice.start_time, "{h}:{i}") }}
1433
-                          </span>
1434
-
1435
-                        </td>
1436
-                        <td
1437
-                          height="32px"
1438
-                          colspan="2"
1439
-                          class="advice-name"
1440
-                          style="padding-left: 7px"
1441
-                        >
1442
-                          <span v-if="advice.parent_id > 0">---></span>
1443
-                          <span>{{ advice.advice_name }}</span>
1444
-                          <span v-if="advice && advice.advice_desc"
1445
-                            >({{ advice.advice_desc
1446
-                            }}{{ advice.drug_spec_unit }})</span
1447
-                          >
1448
-                          <span v-if="advice.prescribing_number"
1449
-                            >&nbsp;&nbsp; {{ advice.prescribing_number
1450
-                            }}{{ advice.prescribing_number_unit }}</span
1451
-                          >
1452
-                          <span v-if="advice.single_dose != 0"
1453
-                            >{{ advice.single_dose
1454
-                            }}{{ advice.single_dose_unit }}</span
1455
-                          >
1456
-                          <span v-if="advice.parent_id == 0">{{
1457
-                            advice.delivery_way
1458
-                          }}</span>
1459
-                          <span v-if="advice.parent_id == 0">{{
1460
-                            advice.execution_frequency
1461
-                          }}</span>
1462
-                          <span
1463
-                            v-if="
1464
-                              advice.parent_id == 0 && advice.remark.length > 0
1465
-                            "
1466
-                            >({{ advice.remark }})</span
1467
-                          >
1468
-                        </td>
1469
-
1470
-                        <td height="32px">
1471
-                          <span
1472
-                            v-if="setAdminUserES(advice.advice_doctor) == ''"
1473
-                            >{{ getAdminUser(advice.advice_doctor) }}</span
1474
-                          >
1475
-                          <img
1476
-                            style="height: 30px"
1477
-                            :src="setAdminUserES(advice.advice_doctor)"
1478
-                            alt=""
1479
-                            srcset=""
1480
-                            v-else
1481
-                          />
1482
-                        </td>
1483
-
1484
-                        <td height="32px">
1485
-                          <span
1486
-                            v-if="setAdminUserES(advice.execution_staff) == ''"
1487
-                            >{{ getAdminUser(advice.execution_staff) }}</span
1488
-                          >
1489
-                          <img
1490
-                            style="height: 30px"
1491
-                            :src="setAdminUserES(advice.execution_staff)"
1492
-                            alt=""
1493
-                            srcset=""
1494
-                            v-else
1495
-                          />
1496
-                        </td>
1497
-                        <td height="32px">
1498
-                          <span v-if="advice.execution_time">{{
1499
-                            getTime(advice.execution_time, "{h}:{i}")
1500
-                          }}</span>
1501
-                        </td>
1502
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1503
-                          <span v-if="setAdminUserES(advice.checker) == ''">{{
1504
-                            getAdminUser(advice.checker)
1505
-                          }}</span>
1506
-                          <img
1507
-                            style="height: 30px"
1508
-                            :src="setAdminUserES(advice.checker)"
1509
-                            alt=""
1510
-                            srcset=""
1511
-                            v-else
1512
-                          />
1513
-                        </td>
1514
-                      </tr>
1515
-
1516
-                      <tr v-if="org_id == 0 || org_id == 10579">
1517
-                  <td colspan="7">
1518
-                  <div
1519
-                    class="row"
1520
-                    style="padding: 2px 0; line-height: 23px; display: flex"
1521
-                  >
1522
-                   <div v-if="org_id == 0 || org_id == 10440">
1523
-
1524
-                    <div class="inline_block" style="flex: 1">
1525
-                      上机护士:
1526
-                      <div
1527
-                        class="under_line"
1528
-                        style="width: 90px; text-align: center"
1529
-                      >
1530
-                        <span
1531
-                          style="height: 30px; display: inline-block"
1532
-                          v-if="
1533
-                            setAdminUserES(
1534
-                              dialysisOrder == null
1535
-                                ? 0
1536
-                                : dialysisOrder.start_nurse
1537
-                            ) == ''
1538
-                          "
1539
-                        >
1540
-                          {{
1541
-                            getAdminUser(
1542
-                              dialysisOrder == null
1543
-                                ? 0
1544
-                                : dialysisOrder.start_nurse
1545
-                            )
1546
-                          }}</span
1547
-                        >
1548
-                        <img
1549
-                          style="height: 35px"
1550
-                          :src="
1551
-                            setAdminUserES(
1552
-                              dialysisOrder == null
1553
-                                ? 0
1554
-                                : dialysisOrder.start_nurse
1555
-                            )
1556
-                          "
1557
-                          alt=""
1558
-                          srcset=""
1559
-                          v-else
1560
-                        />
1561
-                      </div>
1562
-                    </div>
1563
-
1564
-
1565
-                  </div>
1566
-                  <div v-if="org_id ==10644">
1567
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
1568
-                      穿刺护士:
1569
-                      <div
1570
-                        class="under_line"
1571
-                        style="width: 90px; text-align: center"
1572
-                      >
1573
-                        <span
1574
-                          style="height: 30px; display: inline-block"
1575
-                          v-if="
1576
-                            setAdminUserES(
1577
-                              dialysisOrder == null
1578
-                                ? 0
1579
-                                : dialysisOrder.puncture_nurse
1580
-                            ) == ''
1581
-                          "
1582
-                        >
1583
-                          {{
1584
-                            getAdminUser(
1585
-                              dialysisOrder == null
1586
-                                ? 0
1587
-                                : dialysisOrder.puncture_nurse
1588
-                            )
1589
-                          }}</span
1590
-                        >
1591
-                        <img
1592
-                          style="height: 35px"
1593
-                          :src="
1594
-                            setAdminUserES(
1595
-                              dialysisOrder == null
1596
-                                ? 0
1597
-                                : dialysisOrder.puncture_nurse
1598
-                            )
1599
-                          "
1600
-                          alt=""
1601
-                          srcset=""
1602
-                          v-else
1603
-                        />
1604
-                      </div>
1605
-                    </div>
1606
-
1607
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
1608
-                      换药护士:
1609
-
1610
-                      <div
1611
-                        class="under_line"
1612
-                        style="width: 90px; text-align: center"
1613
-                        v-if="org_id==10644"
1614
-                      >
1615
-                        <span
1616
-                          style="height: 30px; display: inline-block"
1617
-                          v-if="
1618
-                            setAdminUserES(
1619
-                              dialysisOrder == null
1620
-                                ? 0
1621
-                                : dialysisOrder.change_nurse
1622
-                            ) == ''
1623
-                          "
1624
-                        >
1625
-                          {{
1626
-                            getAdminUser(
1627
-                              dialysisOrder == null
1628
-                                ? 0
1629
-                                : dialysisOrder.change_nurse
1630
-                            )
1631
-                          }}</span
1632
-                        >
1633
-                        <img
1634
-                          style="height: 35px"
1635
-                          :src="
1636
-                            setAdminUserES(
1637
-                              dialysisOrder == null
1638
-                                ? 0
1639
-                                : dialysisOrder.change_nurse
1640
-                            )
1641
-                          "
1642
-                          alt=""
1643
-                          srcset=""
1644
-                          v-else
1645
-                        />
1646
-                      </div>
1647
-
1648
-                      <div
1649
-                        class="under_line"
1650
-                        style="width: 90px; text-align: center"
1651
-                        v-if="org_id!=10644"
1652
-                      >
1653
-                        <span
1654
-                          style="height: 30px; display: inline-block"
1655
-                          v-if="
1656
-                            setAdminUserES(
1657
-                              dialysisOrder == null
1658
-                                ? 0
1659
-                                : dialysisOrder.puncture_nurse
1660
-                            ) == ''
1661
-                          "
1662
-                        >
1663
-                          {{
1664
-                            getAdminUser(
1665
-                              dialysisOrder == null
1666
-                                ? 0
1667
-                                : dialysisOrder.puncture_nurse
1668
-                            )
1669
-                          }}</span
1670
-                        >
1671
-                        <img
1672
-                          style="height: 35px"
1673
-                          :src="
1674
-                            setAdminUserES(
1675
-                              dialysisOrder == null
1676
-                                ? 0
1677
-                                : dialysisOrder.puncture_nurse
1678
-                            )
1679
-                          "
1680
-                          alt=""
1681
-                          srcset=""
1682
-                          v-else
1683
-                        />
1684
-                      </div>
1685
-                    </div>
1686
-                  </div>
1687
-
1688
-
1689
-                  <div v-if="org_id !=10644 && org_id!=10440">
1690
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
1691
-                      穿刺护士:
1692
-                      <div
1693
-                        class="under_line"
1694
-                        style="width: 90px; text-align: center"
1695
-                      >
1696
-                        <span
1697
-                          style="height: 30px; display: inline-block"
1698
-                          v-if="
1699
-                            setAdminUserES(
1700
-                              dialysisOrder == null
1701
-                                ? 0
1702
-                                : dialysisOrder.puncture_nurse
1703
-                            ) == ''
1704
-                          "
1705
-                        >
1706
-                          {{
1707
-                            getAdminUser(
1708
-                              dialysisOrder == null
1709
-                                ? 0
1710
-                                : dialysisOrder.puncture_nurse
1711
-                            )
1712
-                          }}</span
1713
-                        >
1714
-                        <img
1715
-                          style="height: 35px"
1716
-                          :src="
1717
-                            setAdminUserES(
1718
-                              dialysisOrder == null
1719
-                                ? 0
1720
-                                : dialysisOrder.puncture_nurse
1721
-                            )
1722
-                          "
1723
-                          alt=""
1724
-                          srcset=""
1725
-                          v-else
1726
-                        />
1727
-                      </div>
1728
-                    </div>
1729
-
1730
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
1731
-                      穿刺护士:
1732
-
1733
-                      <div
1734
-                        class="under_line"
1735
-                        style="width: 90px; text-align: center"
1736
-                        v-if="org_id==10644"
1737
-                      >
1738
-                        <span
1739
-                          style="height: 30px; display: inline-block"
1740
-                          v-if="
1741
-                            setAdminUserES(
1742
-                              dialysisOrder == null
1743
-                                ? 0
1744
-                                : dialysisOrder.puncture_nurse
1745
-                            ) == ''
1746
-                          "
1747
-                        >
1748
-                          {{
1749
-                            getAdminUser(
1750
-                              dialysisOrder == null
1751
-                                ? 0
1752
-                                : dialysisOrder.puncture_nurse
1753
-                            )
1754
-                          }}</span
1755
-                        >
1756
-                        <img
1757
-                          style="height: 35px"
1758
-                          :src="
1759
-                            setAdminUserES(
1760
-                              dialysisOrder == null
1761
-                                ? 0
1762
-                                : dialysisOrder.puncture_nurse
1763
-                            )
1764
-                          "
1765
-                          alt=""
1766
-                          srcset=""
1767
-                          v-else
1768
-                        />
1769
-                      </div>
1770
-
1771
-                      <div
1772
-                        class="under_line"
1773
-                        style="width: 90px; text-align: center"
1774
-                        v-if="org_id!=10644"
1775
-                      >
1776
-                        <span
1777
-                          style="height: 30px; display: inline-block"
1778
-                          v-if="
1779
-                            setAdminUserES(
1780
-                              dialysisOrder == null
1781
-                                ? 0
1782
-                                : dialysisOrder.puncture_nurse
1783
-                            ) == ''
1784
-                          "
1785
-                        >
1786
-                          {{
1787
-                            getAdminUser(
1788
-                              dialysisOrder == null
1789
-                                ? 0
1790
-                                : dialysisOrder.puncture_nurse
1791
-                            )
1792
-                          }}</span
1793
-                        >
1794
-                        <img
1795
-                          style="height: 35px"
1796
-                          :src="
1797
-                            setAdminUserES(
1798
-                              dialysisOrder == null
1799
-                                ? 0
1800
-                                : dialysisOrder.puncture_nurse
1801
-                            )
1802
-                          "
1803
-                          alt=""
1804
-                          srcset=""
1805
-                          v-else
1806
-                        />
1807
-                      </div>
1808
-                    </div>
1809
-                  </div>
1810
-
1811
-                  <div v-if="org_id==10440">
1812
-
1813
-                    <div class="inline_block" style="flex: 1">
1814
-                     <div>
1815
-                      <span>责任护士:</span>
1816
-                      <div
1817
-                        class="under_line"
1818
-                        style="width: 80px; text-align: center"
1819
-
1820
-                      >
1821
-
1822
-                        <span
1823
-                          style="height: 35px; display: inline-block"
1824
-                          v-if="
1825
-                            setAdminUserES(
1826
-                              dialysisOrder == null
1827
-                                ? 0
1828
-                                : dialysisOrder.start_nurse
1829
-                            ) == ''
1830
-                          "
1831
-                        >
1832
-                          {{
1833
-                            getAdminUser(
1834
-                              dialysisOrder == null
1835
-                                ? 0
1836
-                                : dialysisOrder.start_nurse
1837
-                            )
1838
-                          }}</span
1839
-                        >
1840
-                        <img
1841
-                          style="height: 30px"
1842
-                          :src="
1843
-                            setAdminUserES(
1844
-                              dialysisOrder == null
1845
-                                ? 0
1846
-                                : dialysisOrder.start_nurse
1847
-                            )
1848
-                          "
1849
-                          alt=""
1850
-                          srcset=""
1851
-                          v-else
1852
-                        />
1853
-                      </div>
1854
-                    </div>
1855
-
1856
-                    </div>
1857
-
1858
-                  </div>
1859
-
1860
-                  <div v-if="org_id!=0&&org_id!=10440&&org_id!= 10206">
1861
-                    <div class="inline_block" style="flex: 1">
1862
-                      <span v-if="org_id==10414">责任护士:</span>
1863
-                      <span v-else>治疗护士:</span>
1864
-
1865
-                      <div
1866
-                        class="under_line"
1867
-                        style="width: 80px; text-align: center"
1868
-                      >
1869
-                        <span
1870
-                          style="height: 30px; display: inline-block"
1871
-                          v-if="
1872
-                            setAdminUserES(
1873
-                              dialysisOrder == null
1874
-                                ? 0
1875
-                                : dialysisOrder.start_nurse
1876
-                            ) == ''
1877
-                          "
1878
-                        >
1879
-                          {{
1880
-                            getAdminUser(
1881
-                              dialysisOrder == null
1882
-                                ? 0
1883
-                                : dialysisOrder.start_nurse
1884
-                            )
1885
-                          }}</span
1886
-                        >
1887
-                        <img
1888
-                          style="height: 30px"
1889
-                          :src="
1890
-                            setAdminUserES(
1891
-                              dialysisOrder == null
1892
-                                ? 0
1893
-                                : dialysisOrder.start_nurse
1894
-                            )
1895
-                          "
1896
-                          alt=""
1897
-                          srcset=""
1898
-                          v-else
1899
-                        />
1900
-                      </div>
1901
-                    </div>
1902
-                  </div>
1903
-
1904
-
1905
-
1906
-                    <div class="inline_block" style="flex: 1">
1907
-                      <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span>
1908
-                      <span v-else >核对人员:</span>
1909
-                      <div
1910
-                        class="under_line"
1911
-                        style="width: 80px; text-align: center"
1912
-                        v-if="dialysisOrder == null"
1913
-                      >
1914
-                        <span
1915
-                          style="height: 30px; display: inline-block"
1916
-                          v-if="
1917
-                            setAdminUserES(check == null ? 0 : check.creater) ==
1918
-                            ''
1919
-                          "
1920
-                        >
1921
-                          {{ getAdminUser(check == null ? 0 : check.creater) }}
1922
-                        </span>
1923
-                        <img
1924
-                          style="height: 30px"
1925
-                          :src="
1926
-                            setAdminUserES(check == null ? 0 : check.creater)
1927
-                          "
1928
-                          alt=""
1929
-                          srcset=""
1930
-                          v-else
1931
-                        />
1932
-                      </div>
1933
-                      <div
1934
-                        class="under_line"
1935
-                        style="width: 80px; text-align: center"
1936
-                        v-if="
1937
-                          dialysisOrder != null &&
1938
-                          dialysisOrder.start_nurse == check.modifier
1939
-                        "
1940
-                      >
1941
-                        <span
1942
-                          style="height: 30px; display: inline-block"
1943
-                          v-if="
1944
-                            setAdminUserES(check == null ? 0 : check.creater) ==
1945
-                            ''
1946
-                          "
1947
-                        >
1948
-                          {{ getAdminUser(check == null ? 0 : check.creater) }}
1949
-                        </span>
1950
-                        <img
1951
-                          style="height: 30px"
1952
-                          :src="
1953
-                            setAdminUserES(check == null ? 0 : check.creater)
1954
-                          "
1955
-                          alt=""
1956
-                          srcset=""
1957
-                          v-else
1958
-                        />
1959
-                      </div>
1960
-                      <div
1961
-                        class="under_line"
1962
-                        style="width: 80px; text-align: center"
1963
-                        v-if="
1964
-                          dialysisOrder != null &&
1965
-                          dialysisOrder.start_nurse == check.creater
1966
-                        "
1967
-                      >
1968
-                        <span
1969
-                          style="height: 30px; display: inline-block"
1970
-                          v-if="
1971
-                            setAdminUserES(
1972
-                              check == null ? 0 : check.modifier
1973
-                            ) == ''
1974
-                          "
1975
-                        >
1976
-                          {{ getAdminUser(check == null ? 0 : check.modifier) }}
1977
-                        </span>
1978
-                        <img
1979
-                          style="height: 30px"
1980
-                          :src="
1981
-                            setAdminUserES(check == null ? 0 : check.modifier)
1982
-                          "
1983
-                          alt=""
1984
-                          srcset=""
1985
-                          v-else
1986
-                        />
1987
-                      </div>
1988
-                      <div
1989
-                        class="under_line"
1990
-                        style="width: 80px; text-align: center"
1991
-                        v-if="
1992
-                          dialysisOrder != null &&
1993
-                          dialysisOrder.start_nurse != check.creater &&
1994
-                          dialysisOrder.start_nurse != check.modifier
1995
-                        "
1996
-                      >
1997
-                        <span
1998
-                          style="height: 30px; display: inline-block"
1999
-                          v-if="
2000
-                            setAdminUserES(check == null ? 0 : check.creater) ==
2001
-                            ''
2002
-                          "
2003
-                        >
2004
-                          {{ getAdminUser(check == null ? 0 : check.creater) }}
2005
-                        </span>
2006
-                        <img
2007
-                          style="height: 30px"
2008
-                          :src="
2009
-                            setAdminUserES(check == null ? 0 : check.creater)
2010
-                          "
2011
-                          alt=""
2012
-                          srcset=""
2013
-                          v-else
2014
-                        />
2015
-                      </div>
2016
-                    </div>
2017
-                    <div class="inline_block" style="flex: 1" v-if="org_id!=10579 && org_id!=0">
2018
-                       下机护士:
2019
-                      <div
2020
-                        class="under_line"
2021
-                        style="width: 80px; text-align: center"
2022
-                      >
2023
-                        <span
2024
-                          style="height: 30px; display: inline-block"
2025
-                          v-if="
2026
-                            setAdminUserES(
2027
-                              dialysisOrder == null
2028
-                                ? 0
2029
-                                : dialysisOrder.finish_nurse
2030
-                            ) == ''
2031
-                          "
2032
-                        >
2033
-                          {{
2034
-                            getAdminUser(
2035
-                              dialysisOrder == null
2036
-                                ? 0
2037
-                                : dialysisOrder.finish_nurse
2038
-                            )
2039
-                          }}
2040
-                        </span>
2041
-                        <img
2042
-                          style="height: 30px"
2043
-                          :src="
2044
-                            setAdminUserES(
2045
-                              dialysisOrder == null
2046
-                                ? 0
2047
-                                : dialysisOrder.finish_nurse
2048
-                            )
2049
-                          "
2050
-                          alt=""
2051
-                          srcset=""
2052
-                          v-else
2053
-                        />
2054
-                      </div>
2055
-                    </div>
2056
-                    <div class="inline_block" style="flex: 1" v-if="org_id==10579 || org_id == 0">
2057
-                       患者签名
2058
-                      <div
2059
-                        class="under_line"
2060
-                        style="width: 80px; text-align: center"
2061
-                      >
2062
-
2063
-
2064
-                      </div>
2065
-                    </div>
2066
-                    <div class="inline_block" style="flex: 1">
2067
-                      治疗医生:
2068
-                      <div
2069
-                        v-if="org_id ==10191"
2070
-                        class="under_line"
2071
-                        style="width: 80px; text-align: center"
2072
-                      >
2073
-                        <span
2074
-                          style="height: 30px; display: inline-block"
2075
-                          v-if="setAdminUserES(prescription.creater) == ''"
2076
-                        >
2077
-                          {{ getAdminUser(prescription.creater) }}
2078
-                        </span>
2079
-                        <img
2080
-                          style="height: 40px"
2081
-                          :src="setAdminUserES(prescription.creater)"
2082
-                          alt=""
2083
-                          srcset=""
2084
-                          v-else
2085
-                        />
2086
-                      </div>
2087
-                      <div
2088
-                        v-if="org_id!=10191"
2089
-                        class="under_line"
2090
-                        style="width: 80px; text-align: center"
2091
-                      >
2092
-                      <span v-if="doctor_advices[0]!=null && doctor_advices[0].advice_doctor>0">
2093
-                        <span
2094
-                            style="height: 30px; display: inline-block"
2095
-                            v-if="setAdminUserES(doctor_advices[0].advice_doctor) == ''"
2096
-                          >
2097
-                            {{ getAdminUser(doctor_advices[0].advice_doctor) }}
2098
-                          </span>
2099
-                          <img
2100
-                            style="height: 40px"
2101
-                            :src="setAdminUserES(doctor_advices[0].advice_doctor)"
2102
-                            alt=""
2103
-                            srcset=""
2104
-                            v-else
2105
-                          />
2106
-                      </span>
2107
-
2108
-                      </div>
2109
-                    </div>
2110
-                  </div>
2111
-                </td>
2112
-              </tr>
2113
-
2114
-
2115
-                    </tbody>
2116
-     </table>
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-    </div>
2124 1334
   </div>
2125 1335
 </template>
2126 1336
 

+ 71 - 30
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue Näytä tiedosto

@@ -6,7 +6,7 @@
6 6
         id="dialysis-print-box-1-1"
7 7
         class="dialysis-print-order print-template-two print_page_main_content"
8 8
       >
9
-      
9
+
10 10
         <div style="display:inline-block;width:100%;text-align:center;">
11 11
           <div
12 12
             class="order-title"
@@ -68,8 +68,8 @@
68 68
                   }}
69 69
                 </span> -->
70 70
 
71
-                
72
-              
71
+
72
+
73 73
                 <span v-if="prescription.dialysis_dialyszers !=''">
74 74
                   {{
75 75
                     prescription.dialysis_dialyszers
@@ -109,14 +109,14 @@
109 109
         </div>
110 110
 
111 111
         <div class="row">
112
-          
112
+
113 113
         </div>
114 114
         <div class="row">
115 115
           抗凝药物&nbsp;&nbsp;
116 116
           <div class="inline_block under_line" style="width:90%;text-align: left;">
117
-            {{ prescription.anticoagulant_name ? prescription.anticoagulant_name : '/' }}
117
+            {{ prescription.anticoagulant ? prescription.anticoagulant : '/' }}
118 118
             <div class="inline_block">&nbsp;&nbsp;&nbsp;
119
-              剂量:首
119
+              剂量:首
120 120
               <div class="inline_block" style="width:50px;text-align:center">
121 121
                   {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
122 122
               </div>
@@ -213,7 +213,7 @@
213 213
             <div class="inline_block under_line" style="width:80px;text-align: center;margin-right:30px;">
214 214
               {{ receiverTreatmentAccess.way ? receiverTreatmentAccess.way : "/" }}
215 215
             </div>
216
-           
216
+
217 217
           </div>
218 218
         </div>
219 219
         <div class="row">
@@ -267,8 +267,8 @@
267 267
               <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.change_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.change_nurse)}}</span>
268 268
               <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.change_nurse)" alt="" srcset="" v-else>
269 269
             </div>
270
-          </div> 
271
-          
270
+          </div>
271
+
272 272
           上机护士
273 273
           <div class="inline_block under_line" style="width:100px;text-align: center;">
274 274
             <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
@@ -339,6 +339,7 @@
339 339
           <tbody>
340 340
               <tr style="line-height:20px;">
341 341
                 <td width="60">时间</td>
342
+                <td width="30">拒测血压</td>
342 343
                 <td width="60">BP<br/>mmHg</td>
343 344
                 <td width="40">脉搏<br/>次/分</td>
344 345
                 <td width="40">血流速<br/>ml/min</td>
@@ -355,9 +356,13 @@
355 356
                 <td style="height:35px;line-height:35px">&nbsp;
356 357
                   {{getTime(monitor.operate_time,'{h}:{i}')}}
357 358
                 </td>
359
+                <td>
360
+                  {{monitor.is_pressure}}
361
+                </td>
358 362
                 <td>&nbsp;{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}} <span v-if="monitor.systolic_blood_pressure||monitor.diastolic_blood_pressure">/</span>
359 363
                   {{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}
360 364
                 </td>
365
+
361 366
                 <td>&nbsp;{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
362 367
                 <td>&nbsp;{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
363 368
                 <td>&nbsp;{{monitor.venous_pressure?monitor.venous_pressure:''}}
@@ -473,7 +478,7 @@
473 478
                         <span class="under_line" style="width:100px;display:inline-block">
474 479
                           {{  getintravenous(afterdialysis.intravenous_tube) }}
475 480
                         </span>
476
-                        
481
+
477 482
                         <!-- <label-box :isChecked="afterdialysis.intravenous_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
478 483
                         <label-box :isChecked="afterdialysis.intravenous_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
479 484
                         <label-box :isChecked="afterdialysis.intravenous_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
@@ -484,7 +489,7 @@
484 489
                         <span class="under_line" style="width:100px;display:inline-block">
485 490
                           {{ getarterial(afterdialysis.arterial_tube) }}
486 491
                         </span>
487
-                        
492
+
488 493
                         <!-- <label-box :isChecked="afterdialysis.arterial_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
489 494
                         <label-box :isChecked="afterdialysis.arterial_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
490 495
                         <label-box :isChecked="afterdialysis.arterial_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
@@ -633,6 +638,16 @@
633 638
             </div>
634 639
             mmol/L
635 640
           </div>
641
+          <div class="inline_block" style="margin-left: 10px">
642
+            葡萄糖:
643
+            <div
644
+              class="under_line"
645
+              style="width: 50px; text-align: center"
646
+            >
647
+              {{ prescription.amylaceum ? prescription.amylaceum : "/" }}
648
+            </div>
649
+            mmol/L
650
+          </div>
636 651
       </div>
637 652
     </div>
638 653
   </div>
@@ -1306,12 +1321,51 @@ export default {
1306 1321
           this.doctorForm.url = doctorname.url
1307 1322
           var prescription = response.data.data.dialysisPrescription
1308 1323
           console.log('透析处方', prescription)
1324
+          if (prescription.anticoagulant === 1) {
1325
+            prescription.anticoagulant = '无肝素'
1326
+          }
1327
+          if (prescription.anticoagulant === 2) {
1328
+            prescription.anticoagulant = '普通肝素'
1329
+          }
1330
+          if (prescription.anticoagulant === 3) {
1331
+            prescription.anticoagulant = '低分子肝素'
1332
+          }
1333
+          if (prescription.anticoagulant === 4) {
1334
+            prescription.anticoagulant = '阿加曲班'
1335
+          }
1336
+          if (prescription.anticoagulant === 5) {
1337
+            prescription.anticoagulant = '枸橼酸钠'
1338
+          }
1309 1339
           if (prescription.anticoagulant == 6) {
1310 1340
             prescription.anticoagulant = '低分子肝素钙'
1311 1341
           }
1312 1342
           if (prescription.anticoagulant == 7) {
1313 1343
             prescription.anticoagulant = '低分子肝素钠'
1314 1344
           }
1345
+          if (prescription.anticoagulant == 8) {
1346
+            prescription.anticoagulant = '依诺肝素'
1347
+          }
1348
+          if (prescription.anticoagulant == 9) {
1349
+            prescription.anticoagulant = '达肝素'
1350
+          }
1351
+          if (prescription.anticoagulant == 10) {
1352
+            prescription.anticoagulant = '体外抗凝'
1353
+          }
1354
+          if (prescription.anticoagulant == 11) {
1355
+            prescription.anticoagulant = '那屈肝素'
1356
+          }
1357
+          if (prescription.anticoagulant == 12) {
1358
+            prescription.anticoagulant = '无抗凝剂'
1359
+          }
1360
+          if (prescription.anticoagulant == 13) {
1361
+            prescription.anticoagulant = '那屈肝素钙'
1362
+          }
1363
+          if (prescription.anticoagulant == 14) {
1364
+            prescription.anticoagulant = '肝素钙注射液'
1365
+          }
1366
+          if (prescription.anticoagulant == 15) {
1367
+            prescription.anticoagulant = '甲磺酸萘莫司他'
1368
+          }
1315 1369
           if (prescription.blood_access === 1) {
1316 1370
             prescription.blood_access = '正常'
1317 1371
           }
@@ -1348,21 +1402,7 @@ export default {
1348 1402
           if (prescription.replacement_way === 4) {
1349 1403
             prescription.replacement_way = '混合置换'
1350 1404
           }
1351
-          if (prescription.anticoagulant === 1) {
1352
-            prescription.anticoagulant = '无肝素'
1353
-          }
1354
-          if (prescription.anticoagulant === 2) {
1355
-            prescription.anticoagulant = '普通肝素'
1356
-          }
1357
-          if (prescription.anticoagulant === 3) {
1358
-            prescription.anticoagulant = '低分子肝素'
1359
-          }
1360
-          if (prescription.anticoagulant === 4) {
1361
-            prescription.anticoagulant = '阿加曲班'
1362
-          }
1363
-          if (prescription.anticoagulant === 5) {
1364
-            prescription.anticoagulant = '枸橼酸钠'
1365
-          }
1405
+
1366 1406
           this.prescription = prescription
1367 1407
           var receiverTreatmentAccess =
1368 1408
             response.data.data.receiverTreatmentAccess
@@ -1732,10 +1772,11 @@ export default {
1732 1772
       const options = this.anticoagulantsConfit
1733 1773
       if(val != ''){
1734 1774
         for(let i in options){
1735
-          if(val == options[i].id){
1775
+          if(val == options[i].name){
1736 1776
             return options[i].shouji_unit
1737 1777
           }
1738 1778
         }
1779
+
1739 1780
       }else{
1740 1781
         return ''
1741 1782
       }
@@ -1744,7 +1785,7 @@ export default {
1744 1785
       const options = this.anticoagulantsConfit
1745 1786
       if(val != ''){
1746 1787
         for(let i in options){
1747
-          if(val == options[i].id){
1788
+          if(val == options[i].name){
1748 1789
             return options[i].weichi_unit
1749 1790
           }
1750 1791
         }
@@ -1756,7 +1797,7 @@ export default {
1756 1797
       const options = this.anticoagulantsConfit
1757 1798
       if(val != ''){
1758 1799
         for(let i in options){
1759
-          if(val == options[i].id){
1800
+          if(val == options[i].name){
1760 1801
             return options[i].zongliang_unit
1761 1802
           }
1762 1803
         }
@@ -1803,7 +1844,7 @@ export default {
1803 1844
     this.arterial_tube =  this.$store.getters.arterial_tube
1804 1845
     this.intravenous_tube = this.$store.getters.intravenous_tube
1805 1846
     console.log('intravenous_tube',this.intravenous_tube);
1806
-    
1847
+
1807 1848
 
1808 1849
     this.way_arr = getDataConfig('hemodialysis', 'way')
1809 1850
     this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')

+ 19 - 2
src/xt_pages/user/components/PatientSidebar.vue Näytä tiedosto

@@ -41,7 +41,7 @@
41 41
       >
42 42
       </el-tree>
43 43
     </div>
44
-    <div class="patient-app-container ">
44
+    <div class="patient-app-container " :style="{width:(treeKey!='3-4'&& treeKey!='3-5')?'100vw':''}">
45 45
       <span class="patient-name"
46 46
         >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
47 47
           tranSex(currentPatient.gender)
@@ -159,6 +159,10 @@ export default {
159 159
               name: '3-1',
160 160
               label: '病史'
161 161
             },
162
+            // {
163
+            //   name: '3-4',
164
+            //   label: '病史新'
165
+            // },
162 166
             {
163 167
               name: '3-2',
164 168
               label: '体格检查'
@@ -167,6 +171,10 @@ export default {
167 171
             //   name: '3-3',
168 172
             //   label: '体格检查新'
169 173
             // },
174
+            // {
175
+            //   name: '3-5',
176
+            //   label: '病程记录新'
177
+            // },
170 178
             {
171 179
               name: '1-11',
172 180
               label: '首次病程记录'
@@ -195,6 +203,10 @@ export default {
195 203
               label: '肾科检验'
196 204
             },
197 205
             // {
206
+            //   name: '4-2',
207
+            //   label: '肾科检验新'
208
+            // },
209
+            // {
198 210
             //   name: '4-12',
199 211
             //   label: '新版肾科检验'
200 212
             // },
@@ -353,9 +365,14 @@ export default {
353 365
 
354 366
       } else if(name == '3-3'){
355 367
         this.$router.push({path:'/patients/new_physicalexamination?id='+this.id})
356
-
368
+      } else if(name == '3-4'){
369
+        this.$router.push({ path: '/patients/sickHistory_new?id='+ this.id })
370
+      } else if(name == '3-5'){
371
+        this.$router.push({ path: '/patients/course_new?id='+ this.id })
357 372
       } else if(name == '4-1'){
358 373
         this.$router.push({path:'/patients/inspection_check?id='+this.id})
374
+      } else if (name == '4-2') {
375
+        this.$router.push({ path: '/patients/inspection_new?id=' + this.id })
359 376
       } else if(name == '4-3'){
360 377
         this.$router.push({path:'/patients/ktv?id='+this.id})
361 378
       }else if(name == '4-12'){

+ 11 - 5
src/xt_pages/user/components/PatientSidebar_new.vue Näytä tiedosto

@@ -41,7 +41,7 @@
41 41
       >
42 42
       </el-tree>
43 43
     </div>
44
-    <div class="patient-app-container" :style="{width:treeKey!='3-4' ?'100vw':''}">
44
+    <div class="patient-app-container" :style="{width:(treeKey!='3-4'&& treeKey!='3-5')?'100vw':''}">
45 45
       <span class="patient-name"
46 46
         >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
47 47
           tranSex(currentPatient.gender)
@@ -159,10 +159,10 @@ export default {
159 159
               name: '3-1',
160 160
               label: '病史'
161 161
             },
162
-            // {
163
-            //   name: '3-4',
164
-            //   label: '病史新'
165
-            // },
162
+            {
163
+              name: '3-4',
164
+              label: '病史新'
165
+            },
166 166
             {
167 167
               name: '3-2',
168 168
               label: '体格检查'
@@ -171,6 +171,10 @@ export default {
171 171
             //   name: '3-3',
172 172
             //   label: '体格检查新'
173 173
             // },
174
+            {
175
+              name: '3-5',
176
+              label: '病程记录新'
177
+            },
174 178
             {
175 179
               name: '1-11',
176 180
               label: '首次病程记录'
@@ -353,6 +357,8 @@ export default {
353 357
         this.$router.push({path:'/patients/new_physicalexamination?id='+this.id})
354 358
       } else if(name == '3-4'){
355 359
         this.$router.push({ path: '/patients/sickHistory_new?id='+ this.id })
360
+      } else if(name == '3-5'){
361
+        this.$router.push({ path: '/patients/course_new?id='+ this.id })
356 362
       } else if(name == '4-1'){
357 363
         this.$router.push({path:'/patients/inspection_check?id='+this.id})
358 364
       } else if(name == '4-3'){

+ 961 - 0
src/xt_pages/user/courseOfDisease_new.vue Näytä tiedosto

@@ -0,0 +1,961 @@
1
+<template>
2
+  <!-- <div class="main-contain">
3
+      <div class="position">
4
+         <bread-crumb></bread-crumb>
5
+      </div> -->
6
+  <div class="patient-container">
7
+    <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
8
+    <!-- <div class="app-container"> -->
9
+    <div v-loading="loading">
10
+      <div class="patient-app-container advice-container app-container" style="">
11
+        <div style="display: flex;">
12
+          <div style="width: 34%;">
13
+            <div style="display: flex;">
14
+              <div style="flex: 1.1;">
15
+                <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">病史列表</span>
16
+              </div>
17
+              <div style="flex: 0.9;text-align: right;">
18
+                <el-button type="primary" size="small" @click="add_click">添加</el-button>
19
+              </div>
20
+            </div>
21
+            <div>
22
+              <el-table class="table"
23
+                ref="phy_table"
24
+                :data="tableData"
25
+                :highlight-current-row="true"
26
+                @row-click="rowclick"
27
+                style="width: 100%">
28
+                <el-table-column
29
+                  type="selection"
30
+                  width="55">
31
+                </el-table-column>
32
+                <el-table-column
33
+                  prop="index"
34
+                  label="序号"
35
+                  width="50">
36
+                </el-table-column>
37
+                <el-table-column
38
+                  prop="date"
39
+                  label="时间"
40
+                  width="">
41
+                </el-table-column>
42
+                <el-table-column
43
+                  prop="doctor"
44
+                  label="医生">
45
+                </el-table-column>
46
+              </el-table>
47
+            </div>
48
+          </div>
49
+          <div style="width: 65%;margin-left: 10px;">
50
+            <div style="display: flex;">
51
+              <div style="flex: 1;">
52
+                <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">详情</span>
53
+              </div>
54
+              <div style="flex: 1;text-align: right;">
55
+                <div v-if='add_index == 0'>
56
+                  <el-button type="primary" size="small" @click="showEdit">修改</el-button>
57
+                  <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
58
+                  <el-button type="primary" size="small" @click="prints">打印</el-button>
59
+                </div>
60
+                <div v-if="add_index == 1">
61
+                  <el-button type="primary" size="small" @click="showSave">保存</el-button>
62
+                  <el-button size="small" @click="showCancel">取消</el-button>
63
+                </div>
64
+              </div>
65
+            </div>
66
+            <div style="display: flex;margin: 10px 0;">
67
+              <div style="flex: 1;">
68
+                记录时间:
69
+                <el-date-picker
70
+                  v-model="value1"
71
+                  :disabled="disabled"
72
+                  type="datetime"
73
+                  placeholder="选择日期时间">
74
+                </el-date-picker>
75
+              </div>
76
+              <div style="flex: 1;">
77
+                病程医生:
78
+                <el-select v-model="value" placeholder="请选择" :disabled="disabled">
79
+                  <el-option
80
+                    v-for="item in options"
81
+                    :key="item.value"
82
+                    :label="item.label"
83
+                    :value="item.value">
84
+                  </el-option>
85
+                </el-select>
86
+              </div>
87
+            </div>
88
+            <div>
89
+              <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
90
+                病程内容
91
+              </span>
92
+              <div style="margin: 10px 0;">
93
+                <el-button type="primary" size="small" @click="template_click">
94
+                  {{ add_index ==0 ? '设置模板' : '模板库' }}
95
+                </el-button>
96
+                <el-button type="primary" size="small" @click="auto_click">
97
+                  自动生成
98
+                </el-button>
99
+              </div>
100
+              <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
101
+            </div>
102
+          </div>
103
+        </div>
104
+      </div>
105
+      <el-dialog
106
+        title="设置模板"
107
+        :visible.sync="template_dialog"
108
+        width="20%"
109
+        center>
110
+        <div>
111
+          模板名称:
112
+          <el-input v-model="template_name" placeholder="请输入内容" style="width: 160px;"></el-input>
113
+        </div>
114
+        <span slot="footer" class="dialog-footer">
115
+          <el-button @click="template_dialog = false">取 消</el-button>
116
+          <el-button type="primary" @click="template_save">确 定</el-button>
117
+        </span>
118
+      </el-dialog>
119
+      <el-dialog
120
+        title="模板库"
121
+        :visible.sync="library_dialog"
122
+        width="70%"
123
+        class="lirary"
124
+        >
125
+        <div>
126
+          <div style="display: flex;">
127
+            <div style="width: 27%;">
128
+              <el-table
129
+                :data="tableData"
130
+                :highlight-current-row="true"
131
+                @row-click="rowclick"
132
+                style="width: 100%">
133
+                <el-table-column
134
+                  prop="index"
135
+                  label="序号"
136
+                  width="">
137
+                </el-table-column>
138
+                <el-table-column
139
+                  prop="name"
140
+                  label="模板名称"
141
+                  width="">
142
+                </el-table-column>
143
+              </el-table>
144
+            </div>
145
+            <div style="width: 72%;margin-left: 10px;">
146
+              <div class="Second_title">模板内容</div>
147
+              <div style="">
148
+                <keep-alive>
149
+                  <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
150
+                </keep-alive>
151
+              </div>
152
+            </div>
153
+          </div>
154
+        </div>
155
+        <span slot="footer" class="dialog-footer" style="text-align: center;">
156
+          <el-button type="danger" @click="template_dele">删除模板</el-button>
157
+          <el-button type="primary" @click="template_save">保存模板</el-button>
158
+          <el-button type="primary" @click="template_save">应用</el-button>
159
+          <el-button @click="library_dialog = false">取消</el-button>
160
+        </span>
161
+      </el-dialog>
162
+      <el-dialog
163
+        title="提示"
164
+        :visible.sync="auto_dialog"
165
+        width="70%"
166
+        top="0"
167
+        >
168
+        <div>
169
+          <div style="display:flex">
170
+            <div>
171
+              取值时间:
172
+              <el-select v-model="quzhi_date" placeholder="请选择" style="width: 120px;">
173
+                <el-option
174
+                  v-for="item in quzhi_options"
175
+                  :key="item.value"
176
+                  :label="item.label"
177
+                  :value="item.value">
178
+                </el-option>
179
+              </el-select>
180
+            </div>
181
+            <div style="margin:0 10px">
182
+              <el-date-picker
183
+                v-model="start_date"
184
+                type="date"
185
+                value-format="yyyy-MM-dd"
186
+                placeholder="选择日期"
187
+                style="width: 150px;">
188
+              </el-date-picker>
189
+              <span>-</span>
190
+              <el-date-picker
191
+                v-model="end_date"
192
+                type="date"
193
+                value-format="yyyy-MM-dd"
194
+                placeholder="选择日期"
195
+                style="width: 150px;">
196
+              </el-date-picker>
197
+            </div>
198
+            <div>
199
+              <el-button type="primary" size="small" @click="autotext_click">
200
+                生成
201
+              </el-button>
202
+              <el-button type="primary" size="small" @click="auto_click">
203
+                取消
204
+              </el-button>
205
+            </div>
206
+          </div>
207
+        </div>
208
+        <!-- <span slot="footer" class="dialog-footer">
209
+          <el-button @click="auto_dialog = false">取 消</el-button>
210
+          <el-button type="primary" @click="auto_dialog = false">确 定</el-button>
211
+        </span> -->
212
+      </el-dialog>
213
+
214
+
215
+
216
+
217
+      <!-- </div> -->
218
+      <el-dialog title="新增病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_dialog">
219
+        <div>
220
+          <div class="new_record_form">
221
+            <div class="cell clearfix">
222
+              <label class="title"><span class="name">病程日期</span> : </label>
223
+              <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
224
+                              style="width: 250px;"
225
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
226
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
227
+
228
+              <label class="title"><span class="name">日常病程</span> : </label>
229
+              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
230
+                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
231
+                           :value="option.content"></el-option>
232
+              </el-select>
233
+            </div>
234
+
235
+            <div class="cell clearfix" style="margin-top: 10px">
236
+              <label class="title"><span class="name">病程标题</span> : </label>
237
+              <el-input v-model="title" style="width: 420px"></el-input>
238
+            </div>
239
+
240
+            <div style="margin-top: 10px;">
241
+              <el-button type="primary" size="small" @click="toAuto" v-if="org_id == 3877 || org_id == 10440" >自动生成</el-button>
242
+            </div>
243
+            <div class="textarea_panel">
244
+              <keep-alive>
245
+                <editor ref="editor"
246
+                        id="editors"
247
+                        style="width: 80%"
248
+                        v-bind:r_content="new_content"
249
+                        >
250
+                </editor>
251
+              </keep-alive>
252
+            </div>
253
+
254
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
255
+              <el-button @click="show_dialog = false">取消</el-button>
256
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
257
+                         @click="createAction" :loading="uploading_new_record">保存
258
+              </el-button>
259
+            </div>
260
+          </div>
261
+        </div>
262
+      </el-dialog>
263
+
264
+
265
+      <el-dialog title="修改病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_edit_dialog" style="">
266
+        <div>
267
+          <div class="new_record_form">
268
+            <div class="cell clearfix">
269
+              <label class="title"><span class="name">病程日期</span> : </label>
270
+              <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
271
+                              style="width: 200px;"
272
+                              type="datetime"
273
+                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
274
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
275
+
276
+              <label class="title"><span class="name">日常病程</span> : </label>
277
+              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
278
+                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
279
+                           :value="option.content"></el-option>
280
+              </el-select>
281
+            </div>
282
+
283
+
284
+            <div class="cell clearfix" style="margin-top: 10px">
285
+              <label class="title"><span class="name">病程标题</span> : </label>
286
+              <el-input v-model="edit_title" style="width: 420px"></el-input>
287
+            </div>
288
+
289
+            <div class="textarea_panel">
290
+              <!--<el-input v-model="edit_new_content" type="textarea" rows="6" resize="none"></el-input>-->
291
+              <keep-alive>
292
+                <editor ref="edit_neditor"
293
+                        id="edit_editor"
294
+                        style="width: 80%"
295
+                        v-bind:r_content="edit_new_content">
296
+                </editor>
297
+              </keep-alive>
298
+            </div>
299
+
300
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
301
+              <el-button @click="show_edit_dialog = false">取消</el-button>
302
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
303
+                         @click="modifyAction" :loading="uploading_new_record">保存
304
+              </el-button>
305
+            </div>
306
+          </div>
307
+        </div>
308
+      </el-dialog>
309
+    </div>
310
+  </div>
311
+
312
+  <!-- </div> -->
313
+</template>
314
+
315
+<script>
316
+  import PatientSidebar from './components/PatientSidebar'
317
+  import PatientSidebar_new from './components/PatientSidebar_new'
318
+  import Editor from '@/components/Editor'
319
+  import ueditor from '@/components/Uedtior'
320
+  const moment = require('moment')
321
+  import { getDataConfig } from "@/utils/data";
322
+  import {
323
+    createCourseOfDiseaseRecord,
324
+    deleteCourseOfDiseaseRecords,
325
+    getCourseOfDiseaseRecords,
326
+    modifyCourseOfDiseaseRecord,
327
+    GetCoursePrintData,
328
+    getPatientDialysisInfor
329
+  } from '@/api/patient'
330
+  import { parseTime } from '@/utils'
331
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
332
+  import { uParseTime } from '@/utils/tools'
333
+  export default {
334
+    name: 'CourseOfDisease',
335
+    components: {
336
+      PatientSidebar,
337
+      BreadCrumb,
338
+      Editor,
339
+      PatientSidebar_new,
340
+      ueditor
341
+    },
342
+    data() {
343
+      return {
344
+        loading: false,
345
+        title: '',
346
+        patient_id: 0,
347
+        date: [],
348
+        start_time: '',
349
+        end_time: '',
350
+        course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
351
+        records: [],
352
+        doctors: [],
353
+        current_select_record: null,
354
+        show_dialog: false,
355
+        show_edit_dialog: false,
356
+        uploading_new_record: false,
357
+        templates: this.$store.getters.configlist.course_disease,
358
+        select_template: '',
359
+        new_content: '',
360
+        edit_new_content: '',
361
+        edit_course_of_disease_time: '',
362
+        selectingRows: [],
363
+        table_current_index: -1,
364
+        edit_current_id: 0,
365
+        edit_title: '',
366
+        ids:"",
367
+        idArr:[],
368
+        org_id:0,
369
+
370
+
371
+        add_index:0,
372
+        disabled:true,
373
+        template_dialog:false,
374
+        library_dialog:false,
375
+        auto_dialog:false,
376
+        quzhi_date:1,
377
+        start_date:'',
378
+        end_date:'',
379
+        quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
380
+        tableData:[{index:1,date:'2024-11-12',doctor:'王启年'}],
381
+      }
382
+    },
383
+    created() {
384
+      this.patient_id = parseInt(this.$route.query.id)
385
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
386
+      if (isNaN(this.patient_id) || this.patient_id <= 0) {
387
+        this.$notify.error({
388
+          title: '错误',
389
+          message: '无效的id'
390
+        })
391
+        this.$router.push('/patients/patients')
392
+        return
393
+      }
394
+      // var now = new Date()
395
+      // this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
396
+
397
+      // var nowDate = new Date()
398
+      // var nowYear = nowDate.getFullYear()
399
+      // var nowMonth = nowDate.getMonth() + 1
400
+      // var nowDay = nowDate.getDate()
401
+      // this.end_time =nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
402
+      // nowDate.setMonth(nowDate.getMonth() - 1)
403
+      // nowYear = nowDate.getFullYear() -1
404
+      // nowMonth = nowDate.getMonth() + 1
405
+      // nowDay = nowDate.getDate()
406
+      // this.start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
407
+      this.start_time = moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD');
408
+      console.log("start_time",this.start_time)
409
+      this.end_time = moment().endOf('month').format('YYYY-MM-DD');
410
+      console.log("end_time",this.end_time)
411
+      this.requestCourseRecords()
412
+
413
+    },
414
+    methods: {
415
+      add_click(){
416
+        this.add_index = 1
417
+        this.disabled = false
418
+      },
419
+      showCancel(){
420
+        this.add_index = 0
421
+        this.disabled = true
422
+      },
423
+      showSave(){
424
+        this.add_index = 0
425
+        this.disabled = true
426
+      },
427
+      template_click(){
428
+        console.log('this.add_index',this.add_index);
429
+
430
+        if(this.add_index ==0){
431
+          this.template_dialog = true
432
+        }else{
433
+          this.library_dialog = true
434
+        }
435
+      },
436
+      auto_click(){
437
+        this.auto_dialog = true
438
+      },
439
+      autotext_click(){
440
+        this.auto_dialog = false
441
+      },
442
+
443
+
444
+
445
+
446
+
447
+
448
+      requestCourseRecords: function() {
449
+        this.loading = true
450
+        getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
451
+          this.loading = false
452
+          var resp = rs.data
453
+          if (resp.state == 1) {
454
+            this.current_select_record = null
455
+            this.records = resp.data.records
456
+            console.log("records232322332323232323223",this.records)
457
+            this.doctors = resp.data.doctors
458
+
459
+          } else {
460
+            this.$message.error(resp.msg)
461
+          }
462
+        }).catch(error => {
463
+          this.loading = false
464
+          this.$message.error(error)
465
+        })
466
+      },
467
+
468
+      didChangeCurrentRecord: function(record) {
469
+        this.current_select_record = record
470
+      },
471
+      recordTime: function(timestamp) {
472
+        var time = new Date(timestamp * 1000)
473
+        return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
474
+      },
475
+      doctorName: function(doctor_id) {
476
+        for (let index = 0; index < this.doctors.length; index++) {
477
+          const doctor = this.doctors[index]
478
+          if (doctor.id == doctor_id) {
479
+            return doctor.name
480
+          }
481
+        }
482
+        return ''
483
+      },
484
+      modifyAction: function() {
485
+
486
+        this.edit_new_content = this.$refs.edit_neditor.content
487
+        if (this.edit_new_content.length == 0) {
488
+          this.$message.error('请填写病程内容')
489
+          return
490
+        }
491
+        this.uploading_new_record = true
492
+        modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
493
+          this.uploading_new_record = false
494
+          var resp = rs.data
495
+          if (resp.state == 1) {
496
+            this.records[this.table_current_index].content = resp.data.record.content
497
+            this.records[this.table_current_index].record_time = resp.data.record.record_time
498
+            this.records[this.table_current_index].recorder = resp.data.record.recorder
499
+            this.records[this.table_current_index].title = resp.data.record.title
500
+
501
+            this.show_edit_dialog = false
502
+            this.edit_new_content = ''
503
+            this.table_current_index = -1
504
+
505
+          } else {
506
+            this.table_current_index = -1
507
+            this.$message.error(resp.msg)
508
+          }
509
+
510
+        }).catch(error => {
511
+          this.table_current_index = -1
512
+          this.uploading_new_record = false
513
+          this.$message.error(error)
514
+        })
515
+
516
+      },
517
+
518
+      createAction: function() {
519
+        this.new_content = this.$refs.editor.content
520
+        console.log("hhhhh2h3h232323232",this.new_content)
521
+        if (this.new_content.length == 0) {
522
+          this.$message.error('请填写病程内容')
523
+          return
524
+        }
525
+        this.uploading_new_record = true
526
+
527
+        createCourseOfDiseaseRecord(this.patient_id, this.new_content, this.course_of_disease_time, this.title).then(rs => {
528
+          this.uploading_new_record = false
529
+          var resp = rs.data
530
+          if (resp.state == 1) {
531
+            this.records.unshift(resp.data.record)
532
+            // this.$refs.record_table.setCurrentRow()
533
+            // this.$refs.record_table.setCurrentRow(this.records[0])
534
+            // this.current_select_record = this.records[0]
535
+            this.show_dialog = false
536
+            this.new_content = ''
537
+            this.title = ''
538
+
539
+          } else {
540
+            this.$message.error(resp.msg)
541
+          }
542
+
543
+        }).catch(error => {
544
+          this.uploading_new_record = false
545
+          this.$message.error(error)
546
+        })
547
+      },
548
+      didSelectTemplate: function(templateContent) {
549
+        this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
550
+
551
+      }, didEditSelectTemplate: function(templateContent) {
552
+        this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
553
+      },
554
+
555
+      didSelectionChange: function(selectRows) {
556
+
557
+        var arr = []
558
+        for(let i=0;i<selectRows.length;i++){
559
+           arr.push(selectRows[i].id)
560
+        }
561
+        var newArr = arr.join(',')
562
+        this.ids = newArr
563
+        console.log("select23322332",this.ids)
564
+        this.selectingRows = selectRows
565
+      },
566
+      deleteAction: function() {
567
+        if (this.selectingRows.length == 0) {
568
+          return
569
+        }
570
+        var ids = []
571
+        for (let index = 0; index < this.selectingRows.length; index++) {
572
+          const row = this.selectingRows[index]
573
+          ids.push(row.id)
574
+        }
575
+        var ids_str = ids.join(',')
576
+        this.loading = true
577
+        deleteCourseOfDiseaseRecords(this.patient_id, ids_str).then(rs => {
578
+          var resp = rs.data
579
+          if (resp.state == 1) {
580
+            for (let id_index = 0; id_index < ids.length; id_index++) {
581
+              for (let record_index = 0; record_index < this.records.length; record_index++) {
582
+                if (ids[id_index] == this.records[record_index].id) {
583
+                  this.records.splice(record_index, 1)
584
+                  break
585
+                }
586
+              }
587
+            }
588
+            this.selectingRows = []
589
+            this.$message.success('已删除')
590
+
591
+          } else {
592
+            this.$message.error(resp.msg)
593
+          }
594
+          this.loading = false
595
+        }).catch(err => {
596
+          this.loading = false
597
+          this.$message.error(err)
598
+        })
599
+      }, startTimeChange(val) {
600
+        this.requestCourseRecords()
601
+      }, endTimeChange(val) {
602
+        this.requestCourseRecords()
603
+      }, showEdit() {
604
+        if (this.table_current_index == -1) {
605
+          this.$message.error('请选择要修改的病程内容')
606
+          return
607
+        }
608
+        this.show_edit_dialog = true
609
+        this.edit_course_of_disease_time = this.recordTime(this.records[this.table_current_index].record_time)
610
+        this.edit_new_content = this.records[this.table_current_index].content
611
+        this.edit_current_id = this.records[this.table_current_index].id
612
+        this.edit_title = this.records[this.table_current_index].title
613
+        this.$refs.record_table.setCurrentRow(null)
614
+
615
+      }, tableRow({ row, rowIndex }) {
616
+        // 把每一行的索引放进row
617
+        row.index = rowIndex
618
+      }, onRowClick(row, event, column) {
619
+        this.table_current_index = row.index
620
+      },
621
+      print(){
622
+        if(this.ids.length == 0){
623
+          this.$message.error('请选择要打印的病程')
624
+          return
625
+        }
626
+        this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
627
+
628
+      },
629
+      toAuto(){
630
+
631
+         var params=  {
632
+           patient_id:parseInt(this.$route.query.id),
633
+           record_date:this.course_of_disease_time.slice(0,10),
634
+         }
635
+         console.log("param2222owoowwow",params)
636
+        getPatientDialysisInfor(params).then(response=>{
637
+          if(response.data.state== 1){
638
+            var patient = response.data.data.patient
639
+            var prescription = response.data.data.prescription
640
+            var predialysis_evaluation =  response.data.data.assessmentBefor
641
+            var dialysis_order =  response.data.data.order
642
+            var monitors = response.data.data.monitor
643
+            var doctor_advices = response.data.data.advice
644
+            var assessment_after_dislysis =  response.data.data.afterDislysis
645
+
646
+           var str_one = ""
647
+          if(dialysis_order!=null){
648
+            if(dialysis_order.puncture_nurse_id >0){
649
+              str_one = "护士穿刺成功!"
650
+            }
651
+          }
652
+
653
+          var total =0
654
+          if(predialysis_evaluation!=null){
655
+            total = (predialysis_evaluation.weight_before - predialysis_evaluation.dry_weight).toFixed(1)
656
+          }
657
+
658
+
659
+        var monitor_one =[]
660
+        var monitor_two = []
661
+        var monitor_three = []
662
+
663
+        if(monitors!=null && monitors.length > 0){
664
+          var monitor_one =  monitors.sort(function (a,b) {
665
+            return b.systolic_bp - a.systolic_bp
666
+          })
667
+          var monitor_two =  monitors.sort(function (a,b) {
668
+            return b.diastolic_bp - a.diastolic_bp
669
+          })
670
+
671
+          var monitor_three = monitors.sort(function (a,b) {
672
+            return b.pulse_frequency - a.pulse_frequency
673
+          })
674
+
675
+        }
676
+
677
+        var doc_str = ""
678
+
679
+        if(doctor_advices!=null && doctor_advices.length > 0){
680
+
681
+
682
+          for(let i=0;i<doctor_advices.length;i++){
683
+            doc_str +=doctor_advices[i].advice_name +" "+doctor_advices[i].prescribing_number+doctor_advices[i].prescribing_number_unit+" "+doctor_advices[i].delivery_way
684
+          }
685
+        }
686
+
687
+        if(predialysis_evaluation.blood_access_part_id == -2){
688
+          predialysis_evaluation.blood_access_part_id = ""
689
+        }
690
+
691
+        var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(prescription.mode_id)+
692
+        ",透前检查:"+predialysis_evaluation.internal_fistula +predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(prescription.anticoagulant) +",总量:"+prescription.anticoagulant_zongliang+"iu"+
693
+        ",透前体重:"+predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+prescription.target_ultrafiltration +"ml" +",血流量:"+prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
694
+        +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(dialysis_order.end_time) +
695
+        ",实际治疗时长:"+ assessment_after_dislysis.actual_treatment_hour +"时"+assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
696
+        +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+assessment_after_dislysis.pulse_frequency +"次/分"
697
+
698
+        console.log("str000000000000000000222o2o2",str)
699
+           this.new_content =str
700
+          }
701
+        })
702
+
703
+      },
704
+
705
+      QueryOperaById(val){
706
+        var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
707
+        var name = ""
708
+        for(let i=0;i<blood_access_part_opera.length;i++){
709
+          if(val == blood_access_part_opera[i].id){
710
+              name = blood_access_part_opera[i].name
711
+          }
712
+        }
713
+        return name
714
+      },
715
+      getModeId(mode_id){
716
+        var mode_name = ""
717
+        if(mode_id == 1){
718
+          mode_name ="HD"
719
+        }
720
+        if(mode_id == 2){
721
+          mode_name ="HDF"
722
+        }
723
+        if(mode_id == 3){
724
+          mode_name ="HD+HP"
725
+        }
726
+        if(mode_id == 4){
727
+          mode_name ="HP"
728
+        }
729
+        if(mode_id == 5){
730
+          mode_name ="HF"
731
+        }
732
+        if(mode_id == 6){
733
+          mode_name ="SCUF"
734
+        }
735
+        if(mode_id == 7){
736
+          mode_name ="IUF"
737
+        }
738
+        if(mode_id == 8){
739
+          mode_name ="HFHD"
740
+        }
741
+        if(mode_id == 9){
742
+          mode_name ="HFHD+HP"
743
+        }
744
+        if(mode_id == 10){
745
+          mode_name ="PHF"
746
+        }
747
+        if(mode_id == 11){
748
+          mode_name ="HFR"
749
+        }
750
+        if(mode_id == 12){
751
+          mode_name ="HDF+HP"
752
+        }
753
+        if(mode_id == 13){
754
+          mode_name ="CRRT"
755
+        }
756
+        if(mode_id == 14){
757
+          mode_name ="腹水回输"
758
+        }
759
+        if(mode_id == 19){
760
+          mode_name ="IUF+HD"
761
+        }
762
+        if(mode_id == 20){
763
+          mode_name ="UF"
764
+        }
765
+        if(mode_id == 21){
766
+          mode_name ="HD+"
767
+        }
768
+        if(mode_id == 22){
769
+          mode_name ="血浆胆红素吸附+HDF"
770
+        }
771
+        if(mode_id == 23){
772
+          mode_name ="血浆胆红素吸附"
773
+        }
774
+        if(mode_id == 24){
775
+          mode_name ="I-HDF"
776
+        }
777
+        if(mode_id == 25){
778
+          mode_name ="HD高通"
779
+        }
780
+        if(mode_id == 26){
781
+          mode_name ="CVVH"
782
+        }
783
+        if(mode_id == 27){
784
+          mode_name ="CVVHD"
785
+        }
786
+        if(mode_id == 28){
787
+          mode_name ="CVVHDF"
788
+        }
789
+        if(mode_id == 29){
790
+          mode_name ="PE"
791
+        }
792
+        if(mode_id == 30){
793
+          mode_name ="血浆胆红素吸附+HP"
794
+        }
795
+        if(mode_id == 31){
796
+          mode_name ="HPD"
797
+        }
798
+        if(mode_id == 32){
799
+          mode_name ="HDP"
800
+        }
801
+        return mode_name
802
+      },
803
+      GetAnticoagulant(id){
804
+        var  anticoagulant_name = ""
805
+        if(id == 1){
806
+        anticoagulant_name = "无肝素"
807
+        }
808
+        if(id == 2){
809
+          anticoagulant_name = "普通肝素"
810
+        }
811
+        if(id == 3){
812
+          anticoagulant_name = "低分子肝素"
813
+        }
814
+        if(id == 4){
815
+          anticoagulant_name = "阿加曲班"
816
+        }
817
+
818
+        if(id == 5){
819
+        anticoagulant_name = "枸橼酸钠"
820
+        }
821
+        if(id == 6){
822
+          anticoagulant_name = "低分子肝素钙"
823
+        }
824
+        if(id == 7){
825
+          anticoagulant_name = "低分子肝素钠"
826
+        }
827
+        if(id == 8){
828
+          anticoagulant_name = "依诺肝素"
829
+        }
830
+
831
+        if(id == 9){
832
+          anticoagulant_name = "达肝素"
833
+        }
834
+        if(id == 10){
835
+          anticoagulant_name = "体外抗凝"
836
+        }
837
+
838
+        if(id == 11){
839
+          anticoagulant_name = "那屈肝素"
840
+        }
841
+        if(id == 12){
842
+          anticoagulant_name = "无抗凝剂"
843
+        }
844
+
845
+        if(id == 13){
846
+          anticoagulant_name = "那屈肝素钙"
847
+        }
848
+        if(id == 14){
849
+          anticoagulant_name = "肝素钙注射液"
850
+        }
851
+        if(id == 15){
852
+          anticoagulant_name = "甲磺酸萘莫司他"
853
+        }
854
+
855
+        return anticoagulant_name
856
+      },
857
+      getTime (time) {
858
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
859
+      },
860
+    }
861
+  }
862
+</script>
863
+
864
+<style rel="stylesheet/css" lang="scss" scoped>
865
+  .container {
866
+    margin-left: 180px;
867
+    padding: 20px;
868
+    background: #fff;
869
+    min-height: calc(100vh - 173px);
870
+    margin-bottom: 15px;
871
+
872
+  .record {
873
+    padding-top: 20px;
874
+  }
875
+
876
+  }
877
+  .record_content_panel {
878
+    border-width: 1px;
879
+    border-style: solid;
880
+    border-color: #ebeef5;
881
+    min-height: 200px;
882
+
883
+  .title {
884
+    font-size: 14px;
885
+    font-weight: 500;
886
+    color: #909399;
887
+    line-height: 44px;
888
+    height: 44px;
889
+    text-align: center;
890
+    border-bottom-width: 1px;
891
+    border-bottom-style: solid;
892
+    border-bottom-color: #ebeef5;
893
+  }
894
+
895
+  .content {
896
+    padding: 12px 15px;
897
+    font-size: 15px;
898
+    color: gray;
899
+    line-height: 22px;
900
+  }
901
+
902
+  }
903
+
904
+  .new_record_form {
905
+
906
+  /*/ / padding: 10 px, 25 px;*/
907
+
908
+  .textarea_panel {
909
+    margin-top: 10px;
910
+  }
911
+
912
+  }
913
+  .eldialog{
914
+    .el-dialog{
915
+      .el-dialog__body{
916
+        max-height: calc(100vh - 80px) !important;
917
+        padding: 0px 20px;
918
+      }
919
+    }
920
+
921
+  }
922
+  .Second_title{
923
+    border-left: 5px solid #3891f1f5;
924
+    text-align: left;
925
+    padding-left: 5px;
926
+    // margin-left: 10px;
927
+    margin-bottom: 5px;
928
+    font-size: 16px;
929
+  }
930
+</style>
931
+<style lang="scss">
932
+.el-table td,
933
+.el-table th.is-leaf,
934
+.el-table--border,
935
+.el-table--group {
936
+  border-color: #d0d3da;
937
+}
938
+.el-table--border::after,
939
+.el-table--group::after,
940
+.el-table::before {
941
+  background-color: #d0d3da;
942
+}
943
+
944
+.eldialog{
945
+    .el-dialog{
946
+      .el-dialog__body{
947
+        max-height: calc(100vh - 80px) !important;
948
+        padding: 0px 20px;
949
+      }
950
+    }
951
+
952
+  }
953
+  .lirary{
954
+    .el-dialog__body{
955
+      padding: 0px 20px !important;
956
+    }
957
+    .el-dialog__footer{
958
+      text-align: center;
959
+    }
960
+  }
961
+</style>

File diff suppressed because it is too large
+ 1201 - 0
src/xt_pages/user/inspection_new.vue


+ 1 - 2
src/xt_pages/user/patientInfo.vue Näytä tiedosto

@@ -1,9 +1,8 @@
1 1
 
2 2
 <template>
3 3
   <div class="patient-container">
4
-  <patient-sidebar :id="patientID" v-if="org_id!=0&&org_id!=10702"></patient-sidebar>
4
+  <patient-sidebar :id="patientID"></patient-sidebar>
5 5
    <!-- <PatientSidebar_new :id="patientID"></PatientSidebar_new> -->
6
-   <PatientSidebar_ord :id="patientID" v-if="org_id ==0 || org_id == 10702"></PatientSidebar_ord>
7 6
   <patient-detail :is-edit='true' :class='panelClass' v-on:tran-patient-info="patientInfo=$event"></patient-detail>
8 7
   </div>
9 8
 </template>

+ 145 - 47
src/xt_pages/user/sickHistory_new.vue Näytä tiedosto

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="patient-container">
3 3
     <!-- <patient-sidebar :id="patient_id" defaultActive="3-1"></patient-sidebar> -->
4
-        <PatientSidebar_new :id="patient_id" defaultActive="3-4"></PatientSidebar_new>
4
+        <PatientSidebar :id="patient_id" defaultActive="3-4"></PatientSidebar>
5 5
     <!-- <div class="app-container"> -->
6 6
     <div v-loading="loading">
7 7
       <div class="patient-app-container advice-container app-container">
@@ -115,16 +115,87 @@
115 115
               </div>
116 116
             </div>
117 117
 
118
-            <div style="margin-top: 30px;">
118
+            <div style="margin-top: 15px;">
119 119
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">详情</span>
120 120
               <keep-alive>
121 121
                 <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
122 122
               </keep-alive>
123 123
             </div>
124
+            <div style="text-align: right;margin-top:10px ;">
125
+              <el-button type="primary" size="small" @click="template_click">
126
+                {{ add_index == 0 ? '设置模板' : '模板库' }}
127
+              </el-button>
128
+            </div>
124 129
           </div>
125 130
         </div>
126 131
 
127 132
       </div>
133
+      <el-dialog
134
+        title="设置模板"
135
+        :visible.sync="template_dialog"
136
+        width="20%"
137
+        center>
138
+        <div>
139
+          模板名称:
140
+          <el-input v-model="template_name" placeholder="请输入内容" style="width: 160px;"></el-input>
141
+        </div>
142
+        <span slot="footer" class="dialog-footer">
143
+          <el-button @click="template_dialog = false">取 消</el-button>
144
+          <el-button type="primary" @click="template_save">确 定</el-button>
145
+        </span>
146
+      </el-dialog>
147
+      <el-dialog
148
+        title="模板库"
149
+        :visible.sync="library_dialog"
150
+        width="70%"
151
+        class="lirary"
152
+        >
153
+        <div>
154
+          <div style="display: flex;">
155
+            <div style="width: 27%;">
156
+              <el-table
157
+                :data="tableData"
158
+                :highlight-current-row="true"
159
+                @row-click="rowclick"
160
+                style="width: 100%">
161
+                <el-table-column
162
+                  prop="index"
163
+                  label="序号"
164
+                  width="">
165
+                </el-table-column>
166
+                <el-table-column
167
+                  prop="name"
168
+                  label="模板名称"
169
+                  width="">
170
+                </el-table-column>
171
+              </el-table>
172
+            </div>
173
+            <div style="width: 72%;margin-left: 10px;">
174
+              <div class="Second_title">模板内容</div>
175
+              <div style="">
176
+                <keep-alive>
177
+                  <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
178
+                </keep-alive>
179
+              </div>
180
+            </div>
181
+          </div>
182
+        </div>
183
+        <span slot="footer" class="dialog-footer" style="text-align: center;">
184
+          <el-button type="danger" @click="template_dele">删除模板</el-button>
185
+          <el-button type="primary" @click="template_save">保存模板</el-button>
186
+          <el-button type="primary" @click="template_save">应用</el-button>
187
+          <el-button @click="library_dialog = false">取消</el-button>
188
+        </span>
189
+      </el-dialog>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
128 199
       <!-- </div> -->
129 200
       <el-dialog title="新增病史记录" width="70%" top="5vh" :visible.sync="show_dialog">
130 201
         <div>
@@ -274,7 +345,6 @@
274 345
       </el-dialog>
275 346
     </div>
276 347
   </div>
277
-
278 348
   <!-- </div> -->
279 349
 </template>
280 350
 
@@ -350,6 +420,10 @@ export default {
350 420
       shen_fumo:'',
351 421
       shen_yishen:'',
352 422
       shen_guomi:'',
423
+      template_name:'',
424
+      template_dialog:false,
425
+      library_dialog:false,
426
+
353 427
       yizhi_options:[{value:1,label:'无'},{value:2,label:'有'}],
354 428
       yishen_options:[],
355 429
       guomi_options:[{value:1,label:'无'},{value:2,label:'有'},{value:3,label:'不详'}],
@@ -394,21 +468,29 @@ export default {
394 468
     this.fetchAllDoctorAndNurse()
395 469
 
396 470
   },
471
+  mounted(){
472
+    // setTimeout(()=>{
473
+      // console.log('1111222',this.new_content);
474
+
475
+    //   this.$refs.ue.parent.setDisabled()
476
+    // },10)
477
+  },
397 478
   methods: {
398 479
     add_click(){
399 480
       this.disabled = false
400 481
       this.add_index = 1
401 482
     },
402 483
     showSave(){
403
-      // this.disabled = true
484
+      this.disabled = true
404 485
       this.add_index = 0
405 486
     },
406 487
     showCancel(){
488
+      this.disabled = true
407 489
       this.add_index = 0
408 490
     },
409 491
     rowclick(row,column, eventc){
410 492
       console.log('row',row);
411
-      // this.edit_index = row.index
493
+      this.edit_index = row.index
412 494
     },
413 495
     template_click(){
414 496
       console.log('this.add_index',this.add_index);
@@ -684,56 +766,64 @@ export default {
684 766
 </script>
685 767
 
686 768
 <style rel="stylesheet/css" lang="scss" scoped>
687
-.container {
688
-  margin-left: 180px;
689
-  padding: 20px;
690
-  background: #fff;
691
-  min-height: calc(100vh - 173px);
692
-  margin-bottom: 15px;
693
-
694
-.record {
695
-  padding-top: 20px;
696
-}
769
+  .container {
770
+    margin-left: 180px;
771
+    padding: 20px;
772
+    background: #fff;
773
+    min-height: calc(100vh - 173px);
774
+    margin-bottom: 15px;
775
+
776
+  .record {
777
+    padding-top: 20px;
778
+  }
697 779
 
698
-}
699
-.record_content_panel {
700
-  border-width: 1px;
701
-  border-style: solid;
702
-  border-color: #ebeef5;
703
-  min-height: 200px;
704
-
705
-.title {
706
-  font-size: 14px;
707
-  font-weight: 500;
708
-  color: #909399;
709
-  line-height: 44px;
710
-  height: 44px;
711
-  text-align: center;
712
-  border-bottom-width: 1px;
713
-  border-bottom-style: solid;
714
-  border-bottom-color: #ebeef5;
715
-}
780
+  }
781
+  .record_content_panel {
782
+    border-width: 1px;
783
+    border-style: solid;
784
+    border-color: #ebeef5;
785
+    min-height: 200px;
786
+
787
+  .title {
788
+    font-size: 14px;
789
+    font-weight: 500;
790
+    color: #909399;
791
+    line-height: 44px;
792
+    height: 44px;
793
+    text-align: center;
794
+    border-bottom-width: 1px;
795
+    border-bottom-style: solid;
796
+    border-bottom-color: #ebeef5;
797
+  }
716 798
 
717
-.content {
718
-  padding: 12px 15px;
719
-  font-size: 15px;
720
-  color: gray;
721
-  line-height: 22px;
722
-}
799
+  .content {
800
+    padding: 12px 15px;
801
+    font-size: 15px;
802
+    color: gray;
803
+    line-height: 22px;
804
+  }
723 805
 
724
-}
806
+  }
725 807
 
726
-.new_record_form {
808
+  .new_record_form {
727 809
 
728
-/*/ / padding: 10 px, 25 px;*/
810
+  /*/ / padding: 10 px, 25 px;*/
729 811
 
730
-.textarea_panel {
731
-  margin-top: 10px;
732
-}
812
+  .textarea_panel {
813
+    margin-top: 10px;
814
+  }
733 815
 
734
-}
816
+  }
817
+  .Second_title{
818
+    border-left: 5px solid #3891f1f5;
819
+    text-align: left;
820
+    padding-left: 5px;
821
+    // margin-left: 10px;
822
+    margin-bottom: 5px;
823
+    font-size: 16px;
824
+  }
735 825
 </style>
736
-<style>
826
+<style lang="scss">
737 827
 .el-table td,
738 828
 .el-table th.is-leaf,
739 829
 .el-table--border,
@@ -745,4 +835,12 @@ export default {
745 835
 .el-table::before {
746 836
   background-color: #d0d3da;
747 837
 }
838
+.lirary{
839
+    .el-dialog__body{
840
+      padding: 0px 20px !important;
841
+    }
842
+    .el-dialog__footer{
843
+      text-align: center;
844
+    }
845
+  }
748 846
 </style>

+ 14 - 14
src/xt_permission.js Näytä tiedosto

@@ -11,20 +11,20 @@ const loginWhiteList = ['/token/verify', '/401', '/404'] // 登录验证白名
11 11
 const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名单
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14
-  // // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
14
+  // 线上注释
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))