Browse Source

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

陈少旭 4 months ago
parent
commit
7c1db780c9

+ 21 - 1
src/api/patient.js View File

1221
     method:"get",
1221
     method:"get",
1222
     params:params
1222
     params:params
1223
   })
1223
   })
1224
-}
1224
+}
1225
+
1226
+
1227
+export function createNewSickHistoryRecord(data){
1228
+
1229
+  return request({
1230
+    url:"/api/patient/createnewsickhistoryrecord",
1231
+    method:"post",
1232
+    data:data,
1233
+  })
1234
+}
1235
+
1236
+export function getNewSickHistory(params){
1237
+
1238
+  return request({
1239
+    url:"/api/patient/getnewsickhistory",
1240
+    method:"get",
1241
+    params:params,
1242
+  })
1243
+}
1244
+

+ 4 - 0
src/main.js View File

31
 // import '../static/ueditor/lang/zh-cn/zh-cn.js'
31
 // import '../static/ueditor/lang/zh-cn/zh-cn.js'
32
 // import '../static/ueditor/ueditor.parse.min.js'
32
 // import '../static/ueditor/ueditor.parse.min.js'
33
 // import './mock' // simulation data
33
 // import './mock' // simulation data
34
+import '../static/ueditor/ueditor.config.js'
35
+import '../static/ueditor/ueditor.all.min.js'
36
+import '../static/ueditor/lang/zh-cn/zh-cn.js'
37
+import '../static/ueditor/ueditor.parse.min.js'
34
 import VueClipboard from 'vue-clipboard2'
38
 import VueClipboard from 'vue-clipboard2'
35
 
39
 
36
 import * as filters from './filters' // global filters
40
 import * as filters from './filters' // global filters

+ 40 - 0
src/router/modules/patient.js View File

139
       noCache: true
139
       noCache: true
140
     }
140
     }
141
   },
141
   },
142
+  {//新
143
+    path: '/patients/inspection_new',
144
+    component: () => import('@/xt_pages/user/inspection_new'),
145
+    hidden: true,
146
+    is_menu: false,
147
+    name: 'Inspection',
148
+    meta: {
149
+      title: 'inspection',
150
+      noCache: true
151
+    }
152
+  },
142
   {
153
   {
143
     path: '/patients/newInspection',
154
     path: '/patients/newInspection',
144
     component: () => import('@/xt_pages/user/lapsoInspection'),
155
     component: () => import('@/xt_pages/user/lapsoInspection'),
213
       noCache: true
224
       noCache: true
214
     }
225
     }
215
   },
226
   },
227
+  {//新
228
+    path: '/patients/course_new',
229
+    component: () => import('@/xt_pages/user/courseOfDisease_new'),
230
+    hidden: true,
231
+    is_menu: false,
232
+    name: 'CourseOfDiseaseManage',
233
+    meta: {
234
+      title: 'CourseOfDiseaseManage',
235
+      noCache: true
236
+    }
237
+  },
216
   {
238
   {
217
       path: '/patients/sickhistory',
239
       path: '/patients/sickhistory',
218
       component: () => import('@/xt_pages/user/sickHistory'),
240
       component: () => import('@/xt_pages/user/sickHistory'),
221
       name: 'sickHistory',
243
       name: 'sickHistory',
222
       meta: { title: 'sickHistory', noCache: true }
244
       meta: { title: 'sickHistory', noCache: true }
223
   },
245
   },
246
+  // 新
247
+  {
248
+    path: '/patients/sickHistory_new',
249
+    component: () => import('@/xt_pages/user/sickHistory_new'),
250
+    hidden: true,
251
+    is_menu: false,
252
+    name: 'sickHistory',
253
+    meta: { title: 'sickHistory', noCache: true }
254
+  },
224
   {
255
   {
225
       path: '/patients/inspection_check',
256
       path: '/patients/inspection_check',
226
       component: () => import('@/xt_pages/user/inspectionCheck'),
257
       component: () => import('@/xt_pages/user/inspectionCheck'),
245
     name: 'physicalexamination',
276
     name: 'physicalexamination',
246
     meta: { title: 'physicalexamination', noCache: true }
277
     meta: { title: 'physicalexamination', noCache: true }
247
   },
278
   },
279
+  // 新
280
+  {
281
+    path: '/patients/new_physicalexamination',
282
+    component: () => import('@/xt_pages/user/Physicalexamination_new'),
283
+    hidden: true,
284
+    is_menu: false,
285
+    name: 'physicalexamination',
286
+    meta: { title: 'physicalexamination', noCache: true }
287
+  },
248
   {
288
   {
249
     path: '/patients/rescue',
289
     path: '/patients/rescue',
250
     component: () => import('@/xt_pages/user/rescueRecord'),
290
     component: () => import('@/xt_pages/user/rescueRecord'),

+ 5 - 3
src/xt_pages/dialysis/PatientBox.vue View File

26
                 {{ schedule.patient.name
26
                 {{ schedule.patient.name
27
                 }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
27
                 }}<span class="yc" v-show="isAbnormal(schedule)">异常</span>
28
               </h3>
28
               </h3>
29
-              <span class="num"
30
-                >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
31
-              >
29
+              <span class="num">
30
+                {{ genderText(schedule) }} | {{ getAge(schedule)>200 ? schedule.patient.age : getAge(schedule) }} 岁
31
+              </span>
32
               <div
32
               <div
33
                 style="
33
                 style="
34
                   margin-left: 10px;
34
                   margin-left: 10px;
499
       // return nowYear - birthdayYear
499
       // return nowYear - birthdayYear
500
     },
500
     },
501
     getAge: function (val) {
501
     getAge: function (val) {
502
+      console.log('1111111111222222',val);
503
+      
502
       var thisLen = val.patient.id_card_no.length;
504
       var thisLen = val.patient.id_card_no.length;
503
       var birth = "";
505
       var birth = "";
504
       if (thisLen == 15) {
506
       if (thisLen == 15) {

+ 19 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue View File

1036
                         <div class="under_line"
1036
                         <div class="under_line"
1037
                           style="width: 50px; text-align: center"
1037
                           style="width: 50px; text-align: center"
1038
                         >
1038
                         >
1039
-                          {{
1039
+                          <!-- {{
1040
                             record.assessment_after_dislysis.systolic_blood_pressure
1040
                             record.assessment_after_dislysis.systolic_blood_pressure
1041
                               ? record.assessment_after_dislysis.systolic_blood_pressure
1041
                               ? record.assessment_after_dislysis.systolic_blood_pressure
1042
                               : "/"
1042
                               : "/"
1043
-                          }}
1043
+                          }} -->
1044
+                          <span v-if="record.monitor_records.length>0">
1045
+                            {{ 
1046
+                              record.monitor_records[record.monitor_records.length-1].systolic_blood_pressure ?
1047
+                              record.monitor_records[record.monitor_records.length-1].systolic_blood_pressure :'/'
1048
+                            }}
1049
+                          </span>
1050
+                          <span v-else>/</span>
1044
                         </div>
1051
                         </div>
1045
                         /
1052
                         /
1046
                         <div class="under_line"
1053
                         <div class="under_line"
1047
                           style="width: 50px; text-align: center"
1054
                           style="width: 50px; text-align: center"
1048
                         >
1055
                         >
1049
-                          {{
1056
+                          <!-- {{
1050
                              record.assessment_after_dislysis.diastolic_blood_pressure
1057
                              record.assessment_after_dislysis.diastolic_blood_pressure
1051
                               ?  record.assessment_after_dislysis.diastolic_blood_pressure
1058
                               ?  record.assessment_after_dislysis.diastolic_blood_pressure
1052
                               : "/"
1059
                               : "/"
1053
-                          }}
1060
+                          }} -->
1061
+                          <span v-if="record.monitor_records.length>0">
1062
+                            {{ 
1063
+                              record.monitor_records[record.monitor_records.length-1].diastolic_blood_pressure ?
1064
+                              record.monitor_records[record.monitor_records.length-1].diastolic_blood_pressure : '/'
1065
+                            }}
1066
+                          </span>
1067
+                          <span v-else>/</span>
1054
                         </div>
1068
                         </div>
1055
                         mmHg
1069
                         mmHg
1056
                       </div>
1070
                       </div>
1185
                               : "/"
1199
                               : "/"
1186
                           }}
1200
                           }}
1187
                         </div>
1201
                         </div>
1188
-                        kg
1202
+                        L
1189
                       </div>
1203
                       </div>
1190
                     </div>
1204
                     </div>
1191
 
1205
 

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_seventyeight.vue View File

1412
                         </div>
1412
                         </div>
1413
                         min
1413
                         min
1414
                       </div>
1414
                       </div>
1415
-                      <div class="inline_block" style="flex: 2">
1415
+                      <div class="inline_block" style="flex: 3">
1416
                         透后宣教:
1416
                         透后宣教:
1417
-                        <div class="under_line" style="width: 60%; text-align: center">
1417
+                        <div class="under_line" style="width: 85%; text-align: left;white-space: normal;">
1418
                           {{ record.summer ? record.summer.mission : '/' }}
1418
                           {{ record.summer ? record.summer.mission : '/' }}
1419
                         </div>
1419
                         </div>
1420
                       </div>
1420
                       </div>

+ 17 - 14
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

387
                 org_id == 10599 || 
387
                 org_id == 10599 || 
388
                 org_id == 10612 ||
388
                 org_id == 10612 ||
389
                 org_id == 10617 ||
389
                 org_id == 10617 ||
390
-                org_id ==10580 || org_id ==10629 || org_id==10677 || org_id ==10667 || org_id ==10697 || org_id ==10635 || org_id ==10702 || org_id ==10090 || org_id ==10723 || org_id == 10721 || org_id ==10727) &&
390
+                org_id ==10580 || org_id ==10629 || org_id==10677 || org_id ==10667 || org_id ==10697 || org_id ==10635 || org_id ==10702 || org_id ==10090 || org_id ==10723 || org_id == 10721 || org_id ==10727 || org_id == 10206) &&
391
                 org_id!=10387
391
                 org_id!=10387
392
             "
392
             "
393
           >
393
           >
458
               && org_id!=10432 && org_id!=10445
458
               && org_id!=10432 && org_id!=10445
459
               && org_id!=10410 && org_id!=10495 &&
459
               && org_id!=10410 && org_id!=10495 &&
460
                org_id!=10485 && org_id!=10395 && org_id!=10375
460
                org_id!=10485 && org_id!=10395 && org_id!=10375
461
-               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10697 && org_id!=10635  && org_id!=10702  && org_id!=10090 && org_id!=10723 && org_id!=10721 && org_id!=10727)
461
+               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10697 && org_id!=10635  && org_id!=10702  && org_id!=10090 && org_id!=10723 && org_id!=10721 && org_id!=10727  && org_id!=10206)
462
               || org_id == 10387
462
               || org_id == 10387
463
             "
463
             "
464
           >
464
           >
529
                 org_id == 10410 ||
529
                 org_id == 10410 ||
530
                 org_id == 10495  ||
530
                 org_id == 10495  ||
531
                 org_id == 10395
531
                 org_id == 10395
532
-                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612 || org_id==10617 || org_id ==10580 || org_id ==10629 || org_id ==10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id ==10635 || org_id ==10702 || org_id == 10090 || org_id == 10723 || org_id == 10721 || org_id ==10727)
532
+                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612 || org_id==10617 || org_id ==10580 || org_id ==10629 || org_id ==10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id ==10635 || org_id ==10702 || org_id == 10090 || org_id == 10723 || org_id == 10721 || org_id ==10727 || org_id == 10206)
533
                 && org_id!=10387
533
                 && org_id!=10387
534
             "
534
             "
535
           >
535
           >
584
               org_id!=10432 &&
584
               org_id!=10432 &&
585
               org_id!=10445 &&
585
               org_id!=10445 &&
586
               org_id!=10410 && org_id!=10495
586
               org_id!=10410 && org_id!=10495
587
-              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10693  && org_id!=10697  && org_id!=10635  && org_id!=10702 && org_id!=10090 && org_id!=10723 && org_id!=10721 && org_id!=10727) ||
587
+              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10693  && org_id!=10697  && org_id!=10635  && org_id!=10702 && org_id!=10090 && org_id!=10723 && org_id!=10721 && org_id!=10727 && org_id!=10206) ||
588
               org_id == 10387
588
               org_id == 10387
589
             "
589
             "
590
           >
590
           >
797
                 org_id == 10340 ||
797
                 org_id == 10340 ||
798
                 org_id == 10432 ||
798
                 org_id == 10432 ||
799
                 org_id == 10445 ||
799
                 org_id == 10445 ||
800
-                org_id == 10395 
800
+                org_id == 10395 ||
801
+                org_id == 10206
801
                 )
802
                 )
802
             "
803
             "
803
           >
804
           >
831
               org_id !=10340 &&
832
               org_id !=10340 &&
832
               org_id !=10432 &&
833
               org_id !=10432 &&
833
               org_id !=10445 && 
834
               org_id !=10445 && 
834
-              org_id!=10395 
835
+              org_id!=10395  &&
836
+              org_id!=10206
835
             "
837
             "
836
           >
838
           >
837
             <template slot-scope="scope">
839
             <template slot-scope="scope">
1683
                 org_id== 10432 ||
1685
                 org_id== 10432 ||
1684
                 org_id== 10445 ||
1686
                 org_id== 10445 ||
1685
                 org_id== 10410 ||
1687
                 org_id== 10410 ||
1686
-                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612 || org_id ==10580 || org_id ==10617 || org_id ==10667 || org_id == 10693 || org_id ==10697 || org_id ==10635 || org_id ==10702 || org_id == 10090 || org_id == 10723 || org_id == 10721 || org_id == 10727) &&
1688
+                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612 || org_id ==10580 || org_id ==10617 || org_id ==10667 || org_id == 10693 || org_id ==10697 || org_id ==10635 || org_id ==10702 || org_id == 10090 || org_id == 10723 || org_id == 10721 || org_id == 10727 || org_id == 10206) &&
1687
                 org_id!=10387
1689
                 org_id!=10387
1688
             "
1690
             "
1689
           >
1691
           >
1731
               org_id!=10445 &&
1733
               org_id!=10445 &&
1732
               org_id!=10410 &&
1734
               org_id!=10410 &&
1733
               org_id!=10485 &&
1735
               org_id!=10485 &&
1734
-              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10667 && org_id!=10693 && org_id!=10697 && org_id!=10635 && org_id!=10702 && org_id!=10090 && org_id!=10723 && org_id!=10721 && org_id!=10727)
1736
+              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10667 && org_id!=10693 && org_id!=10697 && org_id!=10635 && org_id!=10702 && org_id!=10090 && org_id!=10723 && org_id!=10721 && org_id!=10727 && org_id!=10206)
1735
               || org_id == 10387
1737
               || org_id == 10387
1736
             "
1738
             "
1737
           >
1739
           >
1804
                 org_id == 10599 ||
1806
                 org_id == 10599 ||
1805
                 org_id ==10612 || 
1807
                 org_id ==10612 || 
1806
                 org_id ==10617 || 
1808
                 org_id ==10617 || 
1807
-                org_id==10580 || org_id ==10629 || org_id == 10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id == 10635 || org_id == 10702 || org_id == 10090 || org_id ==10723 || org_id == 10721 || org_id == 10727)
1809
+                org_id==10580 || org_id ==10629 || org_id == 10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id == 10635 || org_id == 10702 || org_id == 10090 || org_id ==10723 || org_id == 10721 || org_id == 10727 || org_id ==10206)
1808
                 && org_id!=10387 && org_id!=10694
1810
                 && org_id!=10387 && org_id!=10694
1809
             "
1811
             "
1810
           >
1812
           >
1881
               org_id!=10090 && 
1883
               org_id!=10090 && 
1882
               org_id!=10723 &&
1884
               org_id!=10723 &&
1883
               org_id!=10721 &&
1885
               org_id!=10721 &&
1884
-              org_id!=10727
1886
+              org_id!=10727 &&
1887
+              org_id!=10206
1885
               )
1888
               )
1886
               || org_id == 10387 || org_id == 10694
1889
               || org_id == 10387 || org_id == 10694
1887
             "
1890
             "
1947
               org_id!=10395 &&
1950
               org_id!=10395 &&
1948
               org_id!=10617 &&
1951
               org_id!=10617 &&
1949
               org_id!=10677 &&
1952
               org_id!=10677 &&
1950
-              org_id!=10721 && org_id!=10727)
1953
+              org_id!=10721 && org_id!=10727 && org_id!=10206)
1951
               || org_id ==10558 || org_id==10598
1954
               || org_id ==10558 || org_id==10598
1952
             "
1955
             "
1953
           >
1956
           >
1975
                 org_id==10445 ||
1978
                 org_id==10445 ||
1976
                 org_id==10410 ||
1979
                 org_id==10410 ||
1977
                 org_id==10395 || 
1980
                 org_id==10395 || 
1978
-                org_id==10617 || org_id==10677 || org_id == 10721 || org_id!=10727) && org_id !=10558 && org_id!=10598 && org_id!=10414
1981
+                org_id==10617 || org_id==10677 || org_id == 10721 || org_id==10727 || org_id==10206) && org_id !=10558 && org_id!=10598 && org_id!=10414
1979
             "
1982
             "
1980
           >
1983
           >
1981
             <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
1984
             <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
2000
             :span="8"
2003
             :span="8"
2001
             v-if="
2004
             v-if="
2002
               isShow('置换量') &&
2005
               isShow('置换量') &&
2003
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727) &&
2006
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206) &&
2004
               org_id != 9779 &&
2007
               org_id != 9779 &&
2005
               template_id != 11 &&
2008
               template_id != 11 &&
2006
               template_id != 20 &&
2009
               template_id != 20 &&
2032
                 org_id != 9919 &&
2035
                 org_id != 9919 &&
2033
                 org_id != 10191 &&
2036
                 org_id != 10191 &&
2034
                 org_id != 10551 &&
2037
                 org_id != 10551 &&
2035
-                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644) ||
2038
+                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206) ||
2036
                 org_id == 9779 ||
2039
                 org_id == 9779 ||
2037
                 template_id == 11 ||
2040
                 template_id == 11 ||
2038
                 template_id == 20 ||
2041
                 template_id == 20 ||

+ 6 - 6
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

20
           <th v-if="isShow('血流量1')" width="92px">血流量(ml/min)</th>
20
           <th v-if="isShow('血流量1')" width="92px">血流量(ml/min)</th>
21
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
21
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
22
           <th v-if="isShow('跨膜压1')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
22
           <th v-if="isShow('跨膜压1')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
23
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10597  || this.$store.getters.xt_user.template_info.org_id == 10612  || this.$store.getters.xt_user.template_info.org_id == 10617  || this.$store.getters.xt_user.template_info.org_id == 10580  || this.$store.getters.xt_user.template_info.org_id == 10629 || this.$store.getters.xt_user.template_info.org_id == 10677  || this.$store.getters.xt_user.template_info.org_id == 10667 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10635  || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727) &&this.$store.getters.xt_user.template_info.org_id!=10387 &&this.$store.getters.xt_user.template_info.org_id!=10471 " width="76px" > 超滤量(ml)</th>
24
-          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 && this.$store.getters.xt_user.template_info.org_id!=10679 && this.$store.getters.xt_user.template_info.org_id!=10667 && this.$store.getters.xt_user.template_info.org_id!=10702 && this.$store.getters.xt_user.template_info.org_id!=10697 && this.$store.getters.xt_user.template_info.org_id!=10635 && this.$store.getters.xt_user.template_info.org_id!=10702 &&  this.$store.getters.xt_user.template_info.org_id!=10721 && this.$store.getters.xt_user.template_info.org_id!=10727) || this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10471"  width="76px"> 超滤量(L) </th>
23
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10597  || this.$store.getters.xt_user.template_info.org_id == 10612  || this.$store.getters.xt_user.template_info.org_id == 10617  || this.$store.getters.xt_user.template_info.org_id == 10580  || this.$store.getters.xt_user.template_info.org_id == 10629 || this.$store.getters.xt_user.template_info.org_id == 10677  || this.$store.getters.xt_user.template_info.org_id == 10667 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10635  || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727 || this.$store.getters.xt_user.template_info.org_id == 10206) &&this.$store.getters.xt_user.template_info.org_id!=10387 &&this.$store.getters.xt_user.template_info.org_id!=10471 " width="76px" > 超滤量(ml)</th>
24
+          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 && this.$store.getters.xt_user.template_info.org_id!=10679 && this.$store.getters.xt_user.template_info.org_id!=10667 && this.$store.getters.xt_user.template_info.org_id!=10702 && this.$store.getters.xt_user.template_info.org_id!=10697 && this.$store.getters.xt_user.template_info.org_id!=10635 && this.$store.getters.xt_user.template_info.org_id!=10702 &&  this.$store.getters.xt_user.template_info.org_id!=10721 && this.$store.getters.xt_user.template_info.org_id!=10727 && this.$store.getters.xt_user.template_info.org_id!=10206) || this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10471"  width="76px"> 超滤量(L) </th>
25
           <th v-if=" isShow('超滤量1')"  width="76px"> 超滤量(ml) </th>
25
           <th v-if=" isShow('超滤量1')"  width="76px"> 超滤量(ml) </th>
26
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10580 || this.$store.getters.xt_user.template_info.org_id == 10629 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10667 || this.$store.getters.xt_user.template_info.org_id == 10693 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
27
-          <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 && this.$store.getters.xt_user.template_info.org_id!=10679 && this.$store.getters.xt_user.template_info.org_id!=10667 && this.$store.getters.xt_user.template_info.org_id!=10693 && this.$store.getters.xt_user.template_info.org_id!=10702 && this.$store.getters.xt_user.template_info.org_id!=10697 && this.$store.getters.xt_user.template_info.org_id!=10635 && this.$store.getters.xt_user.template_info.org_id!=10702 && this.$store.getters.xt_user.template_info.org_id!=10721  && this.$store.getters.xt_user.template_info.org_id!=10727 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
26
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10612 || this.$store.getters.xt_user.template_info.org_id == 10617 || this.$store.getters.xt_user.template_info.org_id == 10580 || this.$store.getters.xt_user.template_info.org_id == 10629 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10667 || this.$store.getters.xt_user.template_info.org_id == 10693 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10697 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10727 || this.$store.getters.xt_user.template_info.org_id == 10206) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
27
+          <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10612 && this.$store.getters.xt_user.template_info.org_id!=10617 && this.$store.getters.xt_user.template_info.org_id!=10580 && this.$store.getters.xt_user.template_info.org_id!=10629 && this.$store.getters.xt_user.template_info.org_id!=10679 && this.$store.getters.xt_user.template_info.org_id!=10667 && this.$store.getters.xt_user.template_info.org_id!=10693 && this.$store.getters.xt_user.template_info.org_id!=10702 && this.$store.getters.xt_user.template_info.org_id!=10697 && this.$store.getters.xt_user.template_info.org_id!=10635 && this.$store.getters.xt_user.template_info.org_id!=10702 && this.$store.getters.xt_user.template_info.org_id!=10721  && this.$store.getters.xt_user.template_info.org_id!=10727  && this.$store.getters.xt_user.template_info.org_id!=10206 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
28
           <th v-if="isShow('超滤率2')" width="92px">超滤率(ml/h)</th>
28
           <th v-if="isShow('超滤率2')" width="92px">超滤率(ml/h)</th>
29
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
29
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
30
           <th v-if="isShow('钠浓度1')" width="92px">钠浓度(mmol/L)</th>
30
           <th v-if="isShow('钠浓度1')" width="92px">钠浓度(mmol/L)</th>
31
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
31
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
32
           <th v-if="isShow('透析液温度1')" width="92px">透析液温度(℃)</th>
32
           <th v-if="isShow('透析液温度1')" width="92px">透析液温度(℃)</th>
33
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id ==10617 || org_id==10677 || org_id==10702 || org_id==10721 || org_id ==10727) && org_id!=10558 && org_id!=10598 && org_id!=10414  " width="92px" > 置换率(ml/min) </th>
34
-          <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
33
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410 || org_id ==10617 || org_id==10677 || org_id==10702 || org_id==10721 || org_id ==10727 || org_id == 10206) && org_id!=10558 && org_id!=10598 && org_id!=10414  " width="92px" > 置换率(ml/min) </th>
34
+          <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727 && org_id !=10206) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
37
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644" width="92px"  > 置换量(ml)  </th>
37
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644" width="92px"  > 置换量(ml)  </th>

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue View File

1244
                       min
1244
                       min
1245
                     </div>
1245
                     </div>
1246
 
1246
 
1247
-                    <div class="inline_block" style="flex: 2">
1247
+                    <div class="inline_block" style="flex: 3">
1248
                       透后宣教:
1248
                       透后宣教:
1249
-                      <div class="under_line" style="width: 80%; text-align: center;white-space: normal;">
1249
+                      <div class="under_line" style="width: 85%; text-align: left;white-space: normal;">
1250
                         {{ summary.mission ? summary.mission : '/' }}
1250
                         {{ summary.mission ? summary.mission : '/' }}
1251
                       </div>
1251
                       </div>
1252
                     </div>
1252
                     </div>

+ 19 - 5
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue View File

876
                       <div class="under_line"
876
                       <div class="under_line"
877
                         style="width: 50px; text-align: center"
877
                         style="width: 50px; text-align: center"
878
                       >
878
                       >
879
-                        {{
879
+                        <!-- {{
880
                           afterdialysis.systolic_blood_pressure
880
                           afterdialysis.systolic_blood_pressure
881
                             ? afterdialysis.systolic_blood_pressure
881
                             ? afterdialysis.systolic_blood_pressure
882
                             : "/"
882
                             : "/"
883
-                        }}
883
+                        }} -->
884
+                          <span v-if="monitors.length>0">
885
+                            {{ 
886
+                              monitors[monitors.length-1].systolic_blood_pressure ?
887
+                              monitors[monitors.length-1].systolic_blood_pressure :"/"
888
+                            }}
889
+                          </span>
890
+                           <span v-else>/</span>
884
                       </div>
891
                       </div>
885
                       /
892
                       /
886
                       <div
893
                       <div
887
                         class="under_line"
894
                         class="under_line"
888
                         style="width: 50px; text-align: center"
895
                         style="width: 50px; text-align: center"
889
                       >
896
                       >
890
-                        {{
897
+                        <!-- {{
891
                           afterdialysis.diastolic_blood_pressure
898
                           afterdialysis.diastolic_blood_pressure
892
                             ? afterdialysis.diastolic_blood_pressure
899
                             ? afterdialysis.diastolic_blood_pressure
893
                             : "/"
900
                             : "/"
894
-                        }}
901
+                        }} -->
902
+                        <span v-if="monitors.length>0">
903
+                          {{ 
904
+                            monitors[monitors.length-1].diastolic_blood_pressure ?
905
+                              monitors[monitors.length-1].diastolic_blood_pressure :"/"
906
+                          }}
907
+                        </span>
908
+                        <span v-else>/</span>
895
                       </div>
909
                       </div>
896
                       mmHg
910
                       mmHg
897
                     </div>
911
                     </div>
1041
                             : "/"
1055
                             : "/"
1042
                         }}
1056
                         }}
1043
                       </div>
1057
                       </div>
1044
-                      kg
1058
+                      L
1045
                     </div>
1059
                     </div>
1046
                   </div>
1060
                   </div>
1047
 
1061
 

+ 18 - 18
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

278
 
278
 
279
         <table class="print-table" border="1">
279
         <table class="print-table" border="1">
280
           <tr>
280
           <tr>
281
-            <td style="height:40px;line-height:40px">时间</td>
281
+            <td style="height:25px;line-height:25px">时间</td>
282
             <td>医嘱</td>
282
             <td>医嘱</td>
283
             <td>医师签名</td>
283
             <td>医师签名</td>
284
             <td>执行时间</td>
284
             <td>执行时间</td>
286
             <td>核对者签名</td>
286
             <td>核对者签名</td>
287
           </tr>
287
           </tr>
288
           <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
288
           <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
289
-            <td style="height:35px;line-height:35px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
289
+            <td style="height:25px;line-height:25px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
290
             <td class="parent">
290
             <td class="parent">
291
               <span v-if="advice.parent_id > 0">---></span>
291
               <span v-if="advice.parent_id > 0">---></span>
292
               <span>{{ advice.advice_name }}</span>
292
               <span>{{ advice.advice_name }}</span>
305
               </span>
305
               </span>
306
               <span
306
               <span
307
                 v-else
307
                 v-else
308
-                style="display:flex;align-items:center;justify-content:space-around;height:36px;"
308
+                style="display:flex;align-items:center;justify-content:space-around;height:25px;"
309
               >
309
               >
310
-                <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
310
+                <img style="height:25px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
311
               </span>
311
               </span>
312
             </td>
312
             </td>
313
             <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
313
             <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
319
               </span>
319
               </span>
320
               <span
320
               <span
321
                 v-else
321
                 v-else
322
-                style="display:flex;align-items:center;justify-content:space-around;height:36px;"
322
+                style="display:flex;align-items:center;justify-content:space-around;height:25px;"
323
               >
323
               >
324
-                <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
324
+                <img style="height:25px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
325
               </span>
325
               </span>
326
             </td>
326
             </td>
327
             <td>
327
             <td>
328
               <span v-if="setAdminUserES(advice.checker) == ''">
328
               <span v-if="setAdminUserES(advice.checker) == ''">
329
                 {{ getAdminUser(advice.checker) }}
329
                 {{ getAdminUser(advice.checker) }}
330
               </span>
330
               </span>
331
-              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
331
+              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:30px;">
332
                 <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
332
                 <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
333
               </span>
333
               </span>
334
             </td>
334
             </td>
1238
             this.tableAdvice = tableAdvice
1238
             this.tableAdvice = tableAdvice
1239
           }
1239
           }
1240
 
1240
 
1241
-          // if (tableAdvice.length >= 6 && tableAdvice.length <= 8) {
1242
-          //   const length = 6 - tableAdvice.length
1243
-          //   var obj = { advice_name: '', start_time: '' }
1244
-          //   for (i = 0; i < length; i++) {
1245
-          //     console.log(1)
1246
-          //     tableAdvice.push(obj)
1247
-          //   }
1241
+          if (tableAdvice.length >= 6 && tableAdvice.length <= 8) {
1242
+            const length = 6 - tableAdvice.length
1243
+            var obj = { advice_name: '', start_time: '' }
1244
+            for (i = 0; i < length; i++) {
1245
+              console.log(1)
1246
+              tableAdvice.push(obj)
1247
+            }
1248
 
1248
 
1249
-          //   this.tableAdvice = tableAdvice
1250
-          // }else{
1251
-          //   this.tableAdvice = tableAdvice
1252
-          // }
1249
+            this.tableAdvice = tableAdvice
1250
+          }else{
1251
+            this.tableAdvice = tableAdvice
1252
+          }
1253
           this.afterdialysis = response.data.data.AssessmentAfterDislysis
1253
           this.afterdialysis = response.data.data.AssessmentAfterDislysis
1254
           console.log('透后评估', this.afterdialysis)
1254
           console.log('透后评估', this.afterdialysis)
1255
           this.operators = response.data.data.operators
1255
           this.operators = response.data.data.operators

+ 20 - 20
src/xt_pages/stock/drugs/inventoryPrint.vue View File

13
 
13
 
14
                 <table class="printTable" border="1">
14
                 <table class="printTable" border="1">
15
                     <tr>
15
                     <tr>
16
-                        <td>序号</td>
17
-                        <td>名称</td>
18
-                        <td>规格</td>
19
-                        <td>批号</td>
20
-                        <td>生产日期</td>
21
-                        <td>有效日期</td>
22
-                        <td>生产企业</td>
23
-                        <td>国药准字</td>
24
-                        <td>单位</td>
25
-                        <td>库存量</td>
16
+                        <td align="center">序号</td>
17
+                        <td align="center">名称</td>
18
+                        <td align="center">规格</td>
19
+                        <td align="center">批号</td>
20
+                        <td style="width: 100px;" align="center">生产日期</td>
21
+                        <td align="center">有效日期</td>
22
+                        <td align="center">生产企业</td>
23
+                        <td align="center">国药准字</td>
24
+                        <td align="center">单位</td>
25
+                        <td style="width:200px" align="center">库存量</td>
26
                     </tr>
26
                     </tr>
27
                     <tr v-for="(item,index) in tableData" :key="index">
27
                     <tr v-for="(item,index) in tableData" :key="index">
28
-                        <td>{{index+1}}</td>
29
-                        <td>{{item.drug_name}}</td>
30
-                        <td>{{item.specification_name}}</td>
31
-                        <td>{{item.batch_number}}</td>
32
-                        <td>{{getTime(item.product_date)}}</td>
33
-                        <td>{{getTime(item.expiry_date)}}</td>
34
-                        <td>{{getManufacturerName(item.manufacturer)}}</td>
35
-                        <td>{{item.number}}</td>
36
-                        <td>{{item.max_unit}}</td>
37
-                        <td></td>
28
+                        <td align="center">{{index+1}}</td>
29
+                        <td align="center">{{item.drug_name}}</td>
30
+                        <td align="center">{{item.specification_name}}</td>
31
+                        <td align="center">{{item.batch_number}}</td>
32
+                        <td align="center">{{getTime(item.product_date)}}</td>
33
+                        <td align="center">{{getTime(item.expiry_date)}}</td>
34
+                        <td align="center">{{getManufacturerName(item.manufacturer)}}</td>
35
+                        <td align="center">{{item.number}}</td>
36
+                        <td align="center">{{item.max_unit}}</td>
37
+                        <td align="center"></td>
38
                     </tr>
38
                     </tr>
39
                 </table>
39
                 </table>
40
 
40
 

+ 20 - 20
src/xt_pages/stock/inventoryPrint.vue View File

13
 
13
 
14
                 <table class="printTable" border="1">
14
                 <table class="printTable" border="1">
15
                     <tr>
15
                     <tr>
16
-                        <td>序号</td>
17
-                        <td>名称</td>
18
-                        <td>规格</td>
19
-                        <td>批号</td>
20
-                        <td>生产日期</td>
21
-                        <td>有效日期</td>
22
-                        <td>生产企业</td>
23
-                        <td>国药准字</td>
24
-                        <td>单位</td>
25
-                        <td>库存量</td>
16
+                        <td align="center">序号</td>
17
+                        <td align="center">名称</td>
18
+                        <td align="center">规格</td>
19
+                        <td align="center">批号</td>
20
+                        <td align="center">生产日期</td>
21
+                        <td align="center">有效日期</td>
22
+                        <td style="width: 100px;" align="center">生产企业</td>
23
+                        <td align="center">国药准字</td>
24
+                        <td align="center">单位</td>
25
+                        <td style="width:200px" align="center">库存量</td>
26
                     </tr>
26
                     </tr>
27
                     <tr v-for="(item,index) in tableData" :key="index">
27
                     <tr v-for="(item,index) in tableData" :key="index">
28
-                        <td>{{index+1}}</td>
29
-                        <td>{{item.good_name}}</td>
30
-                        <td>{{item.specification_name}}</td>
31
-                        <td>{{item.number}}</td>
32
-                        <td>{{getTime(item.product_date)}}</td>
33
-                        <td>{{getTime(item.expiry_date)}}</td>
34
-                        <td>{{getManufacturerName(item.manufacturer)}}</td>
35
-                        <td>{{item.remark}}</td>
36
-                        <td>{{item.packing_unit}}</td>
37
-                        <td></td>
28
+                        <td align="center">{{index+1}}</td>
29
+                        <td align="center">{{item.good_name}}</td>
30
+                        <td align="center">{{item.specification_name}}</td>
31
+                        <td align="center">{{item.number}}</td>
32
+                        <td align="center">{{getTime(item.product_date)}}</td>
33
+                        <td align="center">{{getTime(item.expiry_date)}}</td>
34
+                        <td align="center">{{getManufacturerName(item.manufacturer)}}</td>
35
+                        <td align="center">{{item.remark}}</td>
36
+                        <td align="center">{{item.packing_unit}}</td>
37
+                        <td align="center"></td>
38
                     </tr>
38
                     </tr>
39
                 </table>
39
                 </table>
40
 
40
 

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue View File

1052
      },
1052
      },
1053
      changeGoodCode(row,index){
1053
      changeGoodCode(row,index){
1054
         this.textarea=""
1054
         this.textarea=""
1055
-        this.textarea = row.drug_code
1055
+        this.textarea = row.good_code
1056
         this.currentRow = row
1056
         this.currentRow = row
1057
         this.currentIndex =index
1057
         this.currentIndex =index
1058
         this.dialogVisible = true
1058
         this.dialogVisible = true

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue View File

1053
     },
1053
     },
1054
     changeGoodCode(row,index){
1054
     changeGoodCode(row,index){
1055
         this.textarea=""
1055
         this.textarea=""
1056
-        this.textarea = row.drug_code
1056
+        this.textarea = row.good_code
1057
         this.currentRow = row
1057
         this.currentRow = row
1058
         this.currentIndex =index
1058
         this.currentIndex =index
1059
         this.dialogVisible = true
1059
         this.dialogVisible = true

+ 25 - 9
src/xt_pages/stock/stockOutOrderAdd.vue View File

718
           }
718
           }
719
 
719
 
720
           for(let i=0;i<this.recordInfo.recordData.length;i++){
720
           for(let i=0;i<this.recordInfo.recordData.length;i++){
721
+          
722
+            if( this.recordInfo.recordData[i].count == 0){
723
+              this.$message.error("出库数量不能为空!")
724
+              this.loading = false
725
+              return
726
+            } 
727
+
721
              if(this.recordInfo.recordData[i].dealer == ""){
728
              if(this.recordInfo.recordData[i].dealer == ""){
722
                 this.recordInfo.recordData[i].dealer = 0
729
                 this.recordInfo.recordData[i].dealer = 0
723
              }
730
              }
736
 
743
 
737
               this.recordInfo.recordData[i].count = this.recordInfo.recordData[i].count.toString()
744
               this.recordInfo.recordData[i].count = this.recordInfo.recordData[i].count.toString()
738
 
745
 
746
+             
747
+
739
           }
748
           }
740
 
749
 
741
           for(let i=0;i<this.recordInfo.recordData.length;i++){
750
           for(let i=0;i<this.recordInfo.recordData.length;i++){
795
             if (response.data.state == 0) {
804
             if (response.data.state == 0) {
796
               this.$message.error("库存不足")
805
               this.$message.error("库存不足")
797
               loading.close()
806
               loading.close()
807
+              this.loading = false
798
               return false;
808
               return false;
799
             } else {
809
             } else {
800
                var msg = response.data.data.msg
810
                var msg = response.data.data.msg
801
                this.loading = false
811
                this.loading = false
812
+               loading.close()
802
                var good_name = response.data.data.good_name
813
                var good_name = response.data.data.good_name
803
                var specification_name = response.data.data.specification_name
814
                var specification_name = response.data.data.specification_name
804
                var storehose_name = response.data.data.storehose_name
815
                var storehose_name = response.data.data.storehose_name
821
                  var doctorList = response.data.data.doctorList
832
                  var doctorList = response.data.data.doctorList
822
                  for(let i=0;i<warehouseOutInfoList.length;i++){
833
                  for(let i=0;i<warehouseOutInfoList.length;i++){
823
                     for(let j=0;j<manufacturerList.length;j++){
834
                     for(let j=0;j<manufacturerList.length;j++){
824
-                       if(warehouseOutInfoList[i].manufacturer_id == manufacturerList[i].id){
825
-                          warehouseOutInfoList[i].manufacturer_id = manufacturerList[i].manufacturer_name
835
+                       if(warehouseOutInfoList[i].manufacturer == manufacturerList[i].id){
836
+                          warehouseOutInfoList[i].manufacturer = manufacturerList[i].manufacturer_name
826
                        }
837
                        }
827
                     }
838
                     }
828
                     for(let z=0;z<dealerList.length;z++){
839
                     for(let z=0;z<dealerList.length;z++){
829
-                      if(warehouseOutInfoList[i].dealer_id == dealerList[z].id){
840
+                      if(warehouseOutInfoList[i].dealer == dealerList[z].id){
830
                          warehouseOutInfoList[i].dealer_id = dealerList[z].dealer_name
841
                          warehouseOutInfoList[i].dealer_id = dealerList[z].dealer_name
831
                       }
842
                       }
832
                     }
843
                     }
849
                  this.showCheck = true
860
                  this.showCheck = true
850
                }
861
                }
851
                loading.close()
862
                loading.close()
863
+               this.loading = false
864
+               loading.close()
852
 
865
 
853
             }
866
             }
854
           });
867
           });
966
              this.recordInfo.recordData[i].dealer = val.dealer
979
              this.recordInfo.recordData[i].dealer = val.dealer
967
             }
980
             }
968
 
981
 
969
-            for(let i=0;i<this.recordInfo.recordData.length;i++){
970
-              this.recordInfo.recordData[i].warehouse_info_str = ""
971
-              for(let j=0;j<this.recordInfo.recordData[i].xt_warehouse_info.length;j++){
972
-                this.recordInfo.recordData[i].warehouse_info_str += "批次:"+this.recordInfo.recordData[i].xt_warehouse_info[j].number+" " + "剩余:"+this.recordInfo.recordData[i].xt_warehouse_info[j].stock_count+this.recordInfo.recordData[i].packing_unit +"\n"
973
-              }
974
-            }
982
+            // for(let i=0;i<this.recordInfo.recordData.length;i++){
983
+            //   this.recordInfo.recordData[i].warehouse_info_str = ""
984
+            //   for(let j=0;j<this.recordInfo.recordData[i].xt_warehouse_info.length;j++){
985
+            //     this.recordInfo.recordData[i].warehouse_info_str += "批次:"+this.recordInfo.recordData[i].xt_warehouse_info[j].number+" " + "剩余:"+this.recordInfo.recordData[i].xt_warehouse_info[j].stock_count+this.recordInfo.recordData[i].packing_unit +"\n"
986
+            //   }
987
+            // }
975
 
988
 
976
             console.log("日期我我我哦我",  this.recordInfo.recordData)
989
             console.log("日期我我我哦我",  this.recordInfo.recordData)
977
          }
990
          }
1117
     tempObj['register_number'] = ''
1130
     tempObj['register_number'] = ''
1118
     tempObj['patient_id'] = 0
1131
     tempObj['patient_id'] = 0
1119
     tempObj["class_type"] = ""
1132
     tempObj["class_type"] = ""
1133
+    tempObj["product_date"] = ""
1134
+    tempObj["expiry_date"] = ""
1135
+    tempObj["count"] = ""
1120
    
1136
    
1121
     this.recordInfo.recordData.push(tempObj);
1137
     this.recordInfo.recordData.push(tempObj);
1122
     this.GetConfigInfo();
1138
     this.GetConfigInfo();

+ 1 - 0
src/xt_pages/stock/stockOutOrderEdit.vue View File

430
         showReturnCheck:false,
430
         showReturnCheck:false,
431
         loading:false,
431
         loading:false,
432
         patients:[],
432
         patients:[],
433
+        classType:[{id:1,name:"上午"},{id:2,name:"下午"},{id:3,name:"晚上"}],
433
       }
434
       }
434
     },
435
     },
435
     methods: {
436
     methods: {

+ 18 - 12
src/xt_pages/user/components/PatientSidebar.vue View File

41
       >
41
       >
42
       </el-tree>
42
       </el-tree>
43
     </div>
43
     </div>
44
-    <div class="patient-app-container " :style="{width:(treeKey!='3-4'&& treeKey!='3-5')?'100vw':''}">
44
+    <div class="patient-app-container " :style="{width:(treeKey=='3-3')?'100vw':''}">
45
       <span class="patient-name"
45
       <span class="patient-name"
46
         >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
46
         >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
47
           tranSex(currentPatient.gender)
47
           tranSex(currentPatient.gender)
48
         }}
48
         }}
49
-        &nbsp;&nbsp; 年龄:{{ getAge(currentPatient) }} &nbsp;&nbsp; 透析号:{{
49
+        &nbsp;&nbsp; 年龄:
50
+        <span v-if="getAge(currentPatient)>200">
51
+          {{ currentPatient.age }}
52
+        </span>
53
+        <span v-else>
54
+          {{ getAge(currentPatient) }}
55
+        </span>
56
+
57
+        &nbsp;&nbsp; 透析号:{{
50
           currentPatient.dialysis_no
58
           currentPatient.dialysis_no
51
         }}
59
         }}
52
       </span>
60
       </span>
159
               name: '3-1',
167
               name: '3-1',
160
               label: '病史'
168
               label: '病史'
161
             },
169
             },
162
-            // {
163
-            //   name: '3-4',
164
-            //   label: '病史新'
165
-            // },
170
+            {
171
+              name: '3-4',
172
+              label: '病史新'
173
+            },
166
             {
174
             {
167
               name: '3-2',
175
               name: '3-2',
168
               label: '体格检查'
176
               label: '体格检查'
202
               name: '1-3',
210
               name: '1-3',
203
               label: '肾科检验'
211
               label: '肾科检验'
204
             },
212
             },
205
-            // {
206
-            //   name: '4-2',
207
-            //   label: '肾科检验新'
208
-            // },
213
+            {
214
+              name: '4-2',
215
+              label: '肾科检验新'
216
+            },
209
             // {
217
             // {
210
             //   name: '4-12',
218
             //   name: '4-12',
211
             //   label: '新版肾科检验'
219
             //   label: '新版肾科检验'
599
        this.treeKey = this.defaultActive
607
        this.treeKey = this.defaultActive
600
 
608
 
601
     }
609
     }
602
-
603
-
604
     this.getList()
610
     this.getList()
605
   },
611
   },
606
 
612
 

+ 31 - 21
src/xt_pages/user/inspection.vue View File

148
                         <span v-else> {{ scope.row.value }}</span>
148
                         <span v-else> {{ scope.row.value }}</span>
149
                       </span>
149
                       </span>
150
                       <span v-if="scope.row.range_type == 1">
150
                       <span v-if="scope.row.range_type == 1">
151
-                        <span v-if="scope.row.value < parseFloat(scope.row.range_min) ">
151
+                        <span v-if="parseFloat(scope.row.value) < parseFloat(getrange(scope.row.range_min)) ">
152
                           {{ scope.row.value }} <span style="color: blue;" v-if="scope.row.value>0">↓</span>
152
                           {{ scope.row.value }} <span style="color: blue;" v-if="scope.row.value>0">↓</span>
153
                         </span>
153
                         </span>
154
-                        <span v-if="parseFloat(scope.row.range_min)<= parseFloat( scope.row.value) && parseFloat(scope.row.value)<= parseFloat(scope.row.range_max) ">
154
+                        <span v-if="parseFloat(getrange(scope.row.range_min))<= parseFloat( scope.row.value) && parseFloat(scope.row.value)<= parseFloat(getrange(scope.row.range_max)) ">
155
                           {{ scope.row.value }}
155
                           {{ scope.row.value }}
156
                         </span>
156
                         </span>
157
-                        <span v-if="parseFloat(scope.row.value) >parseFloat(scope.row.range_max) ">
157
+                        <span v-if="parseFloat(scope.row.value) >parseFloat(getrange(scope.row.range_max)) ">
158
                           {{ scope.row.value }} <span style="color: red;" v-if="scope.row.value>0">↑</span>
158
                           {{ scope.row.value }} <span style="color: red;" v-if="scope.row.value>0">↑</span>
159
                         </span>
159
                         </span>
160
                         <span v-if ="scope.row.range_max ==''||scope.row.range_min ==''">
160
                         <span v-if ="scope.row.range_max ==''||scope.row.range_min ==''">
311
     </el-dialog>
311
     </el-dialog>
312
 
312
 
313
 
313
 
314
-
314
+<!-- 新增 -->
315
     <el-dialog
315
     <el-dialog
316
       :title="formTitle"
316
       :title="formTitle"
317
       :visible.sync="dialogFormVisible"
317
       :visible.sync="dialogFormVisible"
693
             date: this.itemDate,
693
             date: this.itemDate,
694
             project_id: this.project.project_id
694
             project_id: this.project.project_id
695
           }
695
           }
696
+          console.log('params',params);
696
           DeletePatientInspection(params).then(response => {
697
           DeletePatientInspection(params).then(response => {
697
             if (response.data.state == 0) {
698
             if (response.data.state == 0) {
698
               this.$message.error(response.data.msg)
699
               this.$message.error(response.data.msg)
843
           }
844
           }
844
 
845
 
845
         }
846
         }
846
-        console.log(this.form.formItem)
847
+        console.log('11111',this.form.formItem)
847
         this.dialogFormVisible = true
848
         this.dialogFormVisible = true
848
 
849
 
849
       }
850
       }
897
 
898
 
898
     },
899
     },
899
     openNew() {
900
     openNew() {
901
+      console.log('this.project',this.project);
902
+
900
       if (this.project == null) {
903
       if (this.project == null) {
901
         this.$message.error('请先选择项目')
904
         this.$message.error('请先选择项目')
902
         return false
905
         return false
916
       for (var index in this.project.inspection_reference) {
919
       for (var index in this.project.inspection_reference) {
917
         var item_id =0
920
         var item_id =0
918
         if(this.project.inspection_reference[index].item_id == 0){
921
         if(this.project.inspection_reference[index].item_id == 0){
919
-            item_id =  parseInt(this.project.inspection_reference[index].id) 
922
+            item_id =  parseInt(this.project.inspection_reference[index].id)
920
         }
923
         }
921
         if(this.project.inspection_reference[index].item_id > 0){
924
         if(this.project.inspection_reference[index].item_id > 0){
922
-          item_id = parseInt(this.project.inspection_reference[index].item_id) 
925
+          item_id = parseInt(this.project.inspection_reference[index].item_id)
923
         }
926
         }
924
         this.form.formItem.push({
927
         this.form.formItem.push({
925
           id: 0,
928
           id: 0,
1031
 
1034
 
1032
           console.log("this.form",this.form)
1035
           console.log("this.form",this.form)
1033
 
1036
 
1034
-         
1037
+
1035
           CreatePatientInspection(
1038
           CreatePatientInspection(
1036
             this.patientID,
1039
             this.patientID,
1037
             this.form,
1040
             this.form,
1327
             }
1330
             }
1328
 
1331
 
1329
             this.inspections = response.data.data.inspections
1332
             this.inspections = response.data.data.inspections
1330
-            console.log("this.inpections",this.inspections)
1333
+            console.log("this.inpections",response.data.data)
1331
             if (inspections == null) {
1334
             if (inspections == null) {
1332
               this.inspections = []
1335
               this.inspections = []
1333
               return false
1336
               return false
1354
 
1357
 
1355
               console.log("item=-----------------12",inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1358
               console.log("item=-----------------12",inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1356
               if (item.item_id > 0) {
1359
               if (item.item_id > 0) {
1357
-                console.log('执行0',inspectionsMap[items[index].id]);
1358
 
1360
 
1359
                 if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1361
                 if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1360
                   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1362
                   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1361
                     item.value = inspectionsMap[items[index].id].inspect_value
1363
                     item.value = inspectionsMap[items[index].id].inspect_value
1362
                     item.item_name = inspectionsMap[items[index].id].item_name
1364
                     item.item_name = inspectionsMap[items[index].id].item_name
1363
                   }else{
1365
                   }else{
1364
-                    console.log('执行3',inspectionsMap,item);
1366
+                    console.log('执行1');
1367
+                    
1365
                     if(this.org_id == 10702 || this.org_id == 0){
1368
                     if(this.org_id == 10702 || this.org_id == 0){
1366
-                      if(item.project_name == '血常规'|| item.project_name == '透后肾功能' || 
1367
-                          item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能'
1369
+                      if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1370
+                          item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1371
+                          item.project_name == '传染病检查'
1368
                         ){
1372
                         ){
1369
-                        console.log('11111',inspectionsMap[items[index].id].inspect_value);
1373
+
1370
                         item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1374
                         item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1371
                         item.item_name = inspectionsMap[items[index].id].item_name
1375
                         item.item_name = inspectionsMap[items[index].id].item_name
1372
                       }else{
1376
                       }else{
1373
-                        
1374
                         item.value = ''
1377
                         item.value = ''
1375
                         item.item_name = ''
1378
                         item.item_name = ''
1376
                       }
1379
                       }
1377
                     } else{
1380
                     } else{
1381
+                      console.log('执行2');
1378
                       item.value = ''
1382
                       item.value = ''
1379
                       item.item_name = ''
1383
                       item.item_name = ''
1380
                     }
1384
                     }
1381
                   }
1385
                   }
1382
                 } else {
1386
                 } else {
1383
-                  console.log('执行1',inspectionsMap);
1387
+                  console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1384
                   item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1388
                   item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1385
                   item.item_name = inspectionsMap[items[index].item_id].item_name
1389
                   item.item_name = inspectionsMap[items[index].item_id].item_name
1386
                 }
1390
                 }
1387
-               
1388
-
1389
                 if(this.org_id ==10191){
1391
                 if(this.org_id ==10191){
1390
                   if(item.project_name == "乙肝定性(五项)"){
1392
                   if(item.project_name == "乙肝定性(五项)"){
1391
                     console.log("金阿迪发到付阿打发")
1393
                     console.log("金阿迪发到付阿打发")
1397
                 if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1399
                 if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1398
                   continue
1400
                   continue
1399
                 }
1401
                 }
1400
-                console.log('执行2',inspectionsMap);
1402
+                console.log('执行4',inspectionsMap);
1401
                 item.value = inspectionsMap[items[index].id].inspect_value
1403
                 item.value = inspectionsMap[items[index].id].inspect_value
1402
                 item.item_name = inspectionsMap[items[index].id].item_name
1404
                 item.item_name = inspectionsMap[items[index].id].item_name
1403
               }
1405
               }
1405
               // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1407
               // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1406
               item.value_direction = ''
1408
               item.value_direction = ''
1407
               if (item.range_type == 1) {
1409
               if (item.range_type == 1) {
1410
+                console.log('执行5',parseFloat(item.value));
1408
                 var value = parseFloat(item.value)
1411
                 var value = parseFloat(item.value)
1409
                 var range_min = parseFloat(item.range_min)
1412
                 var range_min = parseFloat(item.range_min)
1410
                 var range_max = parseFloat(item.range_max)
1413
                 var range_max = parseFloat(item.range_max)
1432
                 this.isPic = false
1435
                 this.isPic = false
1433
               }
1436
               }
1434
 
1437
 
1435
-
1436
               console.log("woowwoow",this.isPic)
1438
               console.log("woowwoow",this.isPic)
1437
               console.log("isPicwowowow",this.items)
1439
               console.log("isPicwowowow",this.items)
1438
             }
1440
             }
1443
       setTimeout(() => {
1445
       setTimeout(() => {
1444
         this.itemLoading = false
1446
         this.itemLoading = false
1445
       }, 1000)
1447
       }, 1000)
1446
-    }
1448
+    },
1449
+    getrange(val){
1450
+      if(val !=''){
1451
+        return (val.replace(/[^\d.]/g, ''))*1;
1452
+      }else{
1453
+        return ''
1454
+      }
1455
+
1456
+    },
1447
   },
1457
   },
1448
   created() {
1458
   created() {
1449
     const id = this.$route.query && this.$route.query.id
1459
     const id = this.$route.query && this.$route.query.id

+ 48 - 29
src/xt_pages/user/inspection_new.vue View File

657
             })
657
             })
658
           }else{
658
           }else{
659
             this.form.formItem.push({
659
             this.form.formItem.push({
660
-              id: this.list[index].id,
660
+              // id: this.list[index].item_id,
661
+              id: this.getid(this.list[index].item_id,row.inspect_date),
661
               project_id: this.list[index].project_id,
662
               project_id: this.list[index].project_id,
662
               project_name: this.list[index].project_name,
663
               project_name: this.list[index].project_name,
663
-              item_id: this.list[index].item_id,
664
+              item_id: (this.list[index].item_id)*1,
664
               item_name: this.list[index].item_name,
665
               item_name: this.list[index].item_name,
665
               range_type: this.list[index].range_type,
666
               range_type: this.list[index].range_type,
666
               value: this.getvalue(this.list[index].item_id,row.inspect_date) ,
667
               value: this.getvalue(this.list[index].item_id,row.inspect_date) ,
738
           for (var index in this.form.formItem) {
739
           for (var index in this.form.formItem) {
739
             this.form.formItem[index].value = '' + this.form.formItem[index].value
740
             this.form.formItem[index].value = '' + this.form.formItem[index].value
740
           }
741
           }
741
-
742
           EditPatientInspection(this.patientID, this.form, this.form.remind_cycle, this.form.inspect_date, this.form.project_id).then(response => {
742
           EditPatientInspection(this.patientID, this.form, this.form.remind_cycle, this.form.inspect_date, this.form.project_id).then(response => {
743
             if (response.data.state == 1) {
743
             if (response.data.state == 1) {
744
               this.$notify({
744
               this.$notify({
747
                 type: 'success',
747
                 type: 'success',
748
                 duration: 2000
748
                 duration: 2000
749
               })
749
               })
750
-              this.patient_info.remind_cycle =
751
-                response.data.data.remind_cycle
750
+              // this.patient_info.remind_cycle =
751
+              //   response.data.data.remind_cycle
752
               this.itemDate = this.form.inspect_date
752
               this.itemDate = this.form.inspect_date
753
               this.items = []
753
               this.items = []
754
               var inspections = response.data.data.inspections
754
               var inspections = response.data.data.inspections
788
                   this.items.push(item)
788
                   this.items.push(item)
789
                 }
789
                 }
790
               }
790
               }
791
-
792
-              this.resetForm(formName)
793
-              this.dialogFormVisible = false
791
+              this.getchildlist(this.form.project_id)
792
+              // this.resetForm(formName)
793
+              
794
             } else {
794
             } else {
795
               this.$message.error(response.data.msg)
795
               this.$message.error(response.data.msg)
796
+              // this.dialogFormVisible = false
796
               return false
797
               return false
797
             }
798
             }
798
           })
799
           })
799
-            .catch(v => {
800
-              this.$message.error(v)
801
-              return false
802
-            })
800
+            // .catch(v => {
801
+            //   this.$message.error(v)
802
+            //   return false
803
+            // })
803
           this.formLoading = false
804
           this.formLoading = false
804
-          return false
805
+          this.dialogFormVisible = false
806
+          
807
+          // return false
805
         } else {
808
         } else {
806
           return false
809
           return false
807
         }
810
         }
817
           }
820
           }
818
           for (var index in this.form.formItem) {this.form.formItem[index].value ='' + this.form.formItem[index].value}
821
           for (var index in this.form.formItem) {this.form.formItem[index].value ='' + this.form.formItem[index].value}
819
 
822
 
820
-          console.log("this.form",this.form)
821
-
822
-
823
           CreatePatientInspection(
823
           CreatePatientInspection(
824
             this.patientID,
824
             this.patientID,
825
             this.form,
825
             this.form,
833
                   duration: 2000
833
                   duration: 2000
834
                 })
834
                 })
835
                 // this.form.remind_reycle = response.data.data.remind_reycc
835
                 // this.form.remind_reycle = response.data.data.remind_reycc
836
-                this.patient_info.remind_cycle =
837
-                  response.data.data.remind_cycle
838
-                console.log(this.patient_info.remind_cycle)
836
+                // this.patient_info.remind_cycle =
837
+                //   response.data.data.remind_cycle
838
+                // console.log('this.patient_info.remind_cycle',this.patient_info.remind_cycle)
839
 
839
 
840
                 this.itemDate = this.form.inspect_date
840
                 this.itemDate = this.form.inspect_date
841
                 this.items = []
841
                 this.items = []
883
                   }
883
                   }
884
                 }
884
                 }
885
 
885
 
886
-                this.resetForm(formName)
886
+                // this.resetForm(formName)
887
                 this.dialogFormVisible = false
887
                 this.dialogFormVisible = false
888
 
888
 
889
                 this.queryParams.patient = this.patientID
889
                 this.queryParams.patient = this.patientID
890
                 this.queryParams.project_id = this.project.project_id
890
                 this.queryParams.project_id = this.project.project_id
891
                 this.queryParams.page = 1
891
                 this.queryParams.page = 1
892
                 this.total = 0
892
                 this.total = 0
893
-                this.fetchPatientInspections(this.queryParams)
893
+                this.getchildlist(this.project.project_id)
894
               } else {
894
               } else {
895
                 this.$message.error(response.data.msg)
895
                 this.$message.error(response.data.msg)
896
                 return false
896
                 return false
897
               }
897
               }
898
             })
898
             })
899
-            .catch(v => {
900
-              this.$message.error(v)
901
-              return false
902
-            })
903
-          this.formLoading = false
904
-          return false
899
+            // .catch(v => {
900
+            //   this.$message.error(v)
901
+            //   return false
902
+            // })
903
+            // this.dialogFormVisible = false
904
+            this.formLoading = false
905
+          // return false
905
         } else {
906
         } else {
906
           return false
907
           return false
907
         }
908
         }
948
     //   this.$refs.singleTable.setCurrentRow(row)
949
     //   this.$refs.singleTable.setCurrentRow(row)
949
     // },
950
     // },
950
     resetForm(formName) {
951
     resetForm(formName) {
952
+      console.log('44444',formName);
953
+      
951
       this.$refs[formName].resetFields()
954
       this.$refs[formName].resetFields()
952
     },
955
     },
953
     handleCurrentChange(row) {
956
     handleCurrentChange(row) {
1159
 
1162
 
1160
     },
1163
     },
1161
     getvalue(val,time){
1164
     getvalue(val,time){
1162
-      console.log();
1165
+      // console.log('val',this.items,val);
1163
       const options = this.items
1166
       const options = this.items
1164
       for(let i in options){
1167
       for(let i in options){
1165
         if( options[i].inspect_date == time){
1168
         if( options[i].inspect_date == time){
1166
           for(let j in options[i].Child){
1169
           for(let j in options[i].Child){
1167
             if(options[i].Child[j].item_id == val){
1170
             if(options[i].Child[j].item_id == val){
1168
-              console.log('options[i].inspect_value',options[i].inspect_value);
1171
+              // console.log('options[i].inspect_value',options[i].inspect_value);
1169
               return options[i].Child[j].inspect_value
1172
               return options[i].Child[j].inspect_value
1170
             }
1173
             }
1171
 
1174
 
1172
           }
1175
           }
1173
         }
1176
         }
1174
 
1177
 
1178
+      }
1179
+    },
1180
+    getid(val,time){
1181
+      // console.log('val',this.items,val);
1182
+      const options = this.items
1183
+      for(let i in options){
1184
+        if( options[i].inspect_date == time){
1185
+          for(let j in options[i].Child){
1186
+            if(options[i].Child[j].item_id == val){
1187
+              // console.log('options[i].inspect_value',options[i].inspect_value);
1188
+              return options[i].Child[j].id
1189
+            }
1190
+
1191
+          }
1192
+        }
1193
+
1175
       }
1194
       }
1176
     }
1195
     }
1177
   },
1196
   },

+ 3 - 3
src/xt_pages/user/patientInfo.vue View File

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

+ 1 - 1
src/xt_pages/user/patients.vue View File

427
               :to="'/patients/patient/' + scope.row.id"
427
               :to="'/patients/patient/' + scope.row.id"
428
               style="color:#409eff;width:100%;display:block;"
428
               style="color:#409eff;width:100%;display:block;"
429
             >
429
             >
430
-              <span v-if="scope.row.is_infectious == 1">{{ scope.row.name }}</span> 
430
+              <span v-if="scope.row.is_infectious == 1 || scope.row.is_infectious == 0">{{ scope.row.name }}</span> 
431
               <span v-if="scope.row.is_infectious == 2" style="color: red;">{{ scope.row.name }}</span> 
431
               <span v-if="scope.row.is_infectious == 2" style="color: red;">{{ scope.row.name }}</span> 
432
             </router-link
432
             </router-link
433
             >
433
             >

+ 101 - 251
src/xt_pages/user/sickHistory_new.vue View File

17
             </div>
17
             </div>
18
             <div>
18
             <div>
19
               <el-table class="table"
19
               <el-table class="table"
20
-                ref="phy_table"
20
+                ref="record_table"
21
                 :data="tableData"
21
                 :data="tableData"
22
                 :highlight-current-row="true"
22
                 :highlight-current-row="true"
23
-                @row-click="rowclick"
23
+                @current-change="getCurrentChange"
24
                 style="width: 100%">
24
                 style="width: 100%">
25
-                <el-table-column
26
-                  prop="index"
27
-                  label="序号"
28
-                  width="50">
25
+                <el-table-column prop="index" label="序号" width="50" align="center">
26
+                   <template slot-scope="scope">
27
+                       {{ scope.$index + 1 }}
28
+                   </template>
29
                 </el-table-column>
29
                 </el-table-column>
30
-                <el-table-column
31
-                  prop="date"
32
-                  label="时间"
33
-                  width="">
30
+                <el-table-column prop="date" label="时间" width="" align="center">
31
+                    <template slot-scope="scope">
32
+                         {{ getTime(scope.row.record_time) }}
33
+                    </template>
34
                 </el-table-column>
34
                 </el-table-column>
35
-                <el-table-column
36
-                  prop="doctor"
37
-                  label="医生">
35
+                <el-table-column prop="doctor" label="医生" align="center">
36
+                  <template slot-scope="scope">
37
+                         {{ getDocName(scope.row.doctor_id) }}
38
+                  </template>
38
                 </el-table-column>
39
                 </el-table-column>
39
               </el-table>
40
               </el-table>
40
             </div>
41
             </div>
51
                   <el-button type="primary" size="small" @click="prints">打印</el-button>
52
                   <el-button type="primary" size="small" @click="prints">打印</el-button>
52
                 </div>
53
                 </div>
53
                 <div v-if="add_index == 1">
54
                 <div v-if="add_index == 1">
54
-                  <el-button type="primary" size="small" @click="showSave">保存</el-button>
55
+                  <el-button type="primary" size="small" @click="createAction">保存2</el-button>
55
                   <el-button size="small" @click="showCancel">取消</el-button>
56
                   <el-button size="small" @click="showCancel">取消</el-button>
56
                 </div>
57
                 </div>
57
               </div>
58
               </div>
60
               <div style="flex: 1;">
61
               <div style="flex: 1;">
61
                 日期:
62
                 日期:
62
                 <el-date-picker
63
                 <el-date-picker
63
-                  v-model="history_date"
64
+                  v-model="start_time"
64
                   type="date"
65
                   type="date"
65
                   :disabled="disabled"
66
                   :disabled="disabled"
66
                   style="width: 150px;"
67
                   style="width: 150px;"
93
             <div style="display: flex;">
94
             <div style="display: flex;">
94
               <div style="width: 30%;">
95
               <div style="width: 30%;">
95
                 医生:
96
                 医生:
96
-                <el-select v-model="shen_yishen" placeholder="请选择" style="width: 120px;" :disabled="disabled">
97
+                <el-select v-model="admin_user_id" placeholder="请选择" style="width: 120px;" :disabled="disabled">
97
                   <el-option
98
                   <el-option
98
-                    v-for="item in yishen_options"
99
-                    :key="item.value"
100
-                    :label="item.label"
101
-                    :value="item.value">
99
+                    v-for="item in doctorOptions"
100
+                    :key="item.id"
101
+                    :label="item.name"
102
+                    :value="item.id">
102
                   </el-option>
103
                   </el-option>
103
                 </el-select>
104
                 </el-select>
104
               </div>
105
               </div>
112
                     :value="item.value">
113
                     :value="item.value">
113
                   </el-option>
114
                   </el-option>
114
                 </el-select>
115
                 </el-select>
116
+                <el-input v-if="shen_guomi == 2" v-model="guominyaowu_desc"></el-input>
115
               </div>
117
               </div>
116
             </div>
118
             </div>
117
 
119
 
118
             <div style="margin-top: 15px;">
120
             <div style="margin-top: 15px;">
119
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">详情</span>
121
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">详情</span>
120
               <keep-alive>
122
               <keep-alive>
121
-                <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
123
+                <ueditor ref="edit" :content="new_content" id="editor"></ueditor>
122
               </keep-alive>
124
               </keep-alive>
123
             </div>
125
             </div>
124
             <div style="text-align: right;margin-top:10px ;">
126
             <div style="text-align: right;margin-top:10px ;">
174
               <div class="Second_title">模板内容</div>
176
               <div class="Second_title">模板内容</div>
175
               <div style="">
177
               <div style="">
176
                 <keep-alive>
178
                 <keep-alive>
177
-                  <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
179
+                  <ueditor ref="editor" id="editors" v-bind:r_content="new_content"></ueditor>
178
                 </keep-alive>
180
                 </keep-alive>
179
               </div>
181
               </div>
180
             </div>
182
             </div>
196
 
198
 
197
 
199
 
198
 
200
 
199
-      <!-- </div> -->
200
-      <el-dialog title="新增病史记录" width="70%" top="5vh" :visible.sync="show_dialog">
201
-        <div>
202
-          <div class="new_record_form">
203
-            <div class="cell clearfix" style="margin-bottom: 20px;">
204
-              <label class="title"><span class="name">病程标题</span> : </label>
205
-              <el-input v-model="title" style="width: 150px"></el-input>
206
-
207
-              <label class="title" style="margin-left: 20px;"><span class="name">日期</span> : </label>
208
-              <el-date-picker v-model="sick_history_time" prefix-icon="el-icon-date" :editable="false"
209
-                              style="width: 150px;"
210
-                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
211
-                              value-format="yyyy-MM-dd "></el-date-picker>
212
-
213
-
214
-              <label class="title" style="margin-left: 20px;"><span class="name">肾移植史</span> : </label>
215
-              <el-select style="width: 150px;" v-model="is_shenyizhishi" placeholder="选择肾移植史" >
216
-                <el-option label="无" value="0"></el-option>
217
-                <el-option label="有" value="1"></el-option>
218
-              </el-select>
219
-            </div>
220
-
221
-            <div class="cell clearfix" style="margin-bottom: 20px;">
222
-
223
-              <label class="title" ><span class="name">腹膜透析史</span> : </label>
224
-              <el-select style="width: 150px;" v-model="is_fumotouxishi" placeholder="选择腹膜透析史" >
225
-                <el-option label="无" value="0"></el-option>
226
-                <el-option label="有" value="1"></el-option>
227
-              </el-select>
228
-
229
-              <label class="title" style="margin-left: 20px;"><span class="name">医生</span> : </label>
230
-              <el-select style="width: 100px;" v-model="doctor_id" placeholder="请选择医生">
231
-                <el-option v-for="(item,index) in doctorOptions" :label="item.name" :value="item.id" :key="index"></el-option>
232
-              </el-select>
233
-
234
-              <label class="title" style="margin-left: 20px;"><span class="name">过敏药物</span> : </label>
235
-              <el-select style="width: 100px;" v-model="is_guominyaowu" placeholder="选择过敏药物">
236
-                <el-option label="无" value="0"></el-option>
237
-                <el-option label="有" value="1"></el-option>
238
-                <el-option label="不详" value="2"></el-option>
239
-
240
-              </el-select>
241
-              <el-input v-if="is_guominyaowu == 1" v-model="guominyaowu_desc"></el-input>
242
-
243
-            </div>
244
-
245
-            <div class="cell clearfix" >
246
-              <label class="title"><span class="name">病史模版</span> : </label>
247
-              <el-select v-model="select_template" placeholder="选择病史模板" @change="didSelectTemplate">
248
-                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
249
-                           :value="option.content"></el-option>
250
-              </el-select>
251
-            </div>
252
-
253
-            <div class="textarea_panel">
254
-              <keep-alive>
255
-                <editor ref="editor"
256
-                        id="editors"
257
-                        style="width: 100%"
258
-                        v-bind:r_content="new_content"
259
-                >
260
-                </editor>
261
-              </keep-alive>
262
-            </div>
263
-
264
-            <div style="text-align: right; padding-right: 0px; padding-top: 20px; padding-bottom: 10px;">
265
-              <el-button @click="show_dialog = false">取消</el-button>
266
-              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
267
-                         @click="createAction" :loading="uploading_new_record">保存
268
-              </el-button>
269
-            </div>
270
-          </div>
271
-        </div>
272
-      </el-dialog>
273
-
274
-      <el-dialog title="修改病史记录" width="50%" top="5vh" :visible.sync="show_edit_dialog">
275
-        <div>
276
-          <div class="new_record_form">
277
-            <div class="cell clearfix" style="margin-bottom: 20px;">
278
-              <label class="title"><span class="name">病程标题</span> : </label>
279
-              <el-input v-model="edit_title" style="width: 150px"></el-input>
280
-
281
-              <label class="title" style="margin-left: 20px;"><span class="name">日期</span> : </label>
282
-              <el-date-picker v-model="edit_sick_history_time" prefix-icon="el-icon-date" :editable="false"
283
-                              style="width: 150px;"
284
-                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd "
285
-                              value-format="yyyy-MM-dd "></el-date-picker>
286
-
287
-
288
-              <label class="title" style="margin-left: 20px;"><span class="name">肾移植史</span> : </label>
289
-              <el-select style="width: 150px;" v-model="edit_is_shenyizhishi" placeholder="选择肾移植史" >
290
-                <el-option label="无" value="0"></el-option>
291
-                <el-option label="有" value="1"></el-option>
292
-              </el-select>
293
-            </div>
294
-
295
-            <div class="cell clearfix" style="margin-bottom: 20px;">
296
-
297
-              <label class="title" ><span class="name">腹膜透析史</span> : </label>
298
-              <el-select style="width: 150px;" v-model="edit_is_fumotouxishi" placeholder="选择腹膜透析史" >
299
-                <el-option label="无" value="0"></el-option>
300
-                <el-option label="有" value="1"></el-option>
301
-              </el-select>
302
-
303
-              <label class="title" style="margin-left: 20px;"><span class="name">医生</span> : </label>
304
-              <el-select style="width: 100px;" v-model="edit_doctor_id" placeholder="请选择医生">
305
-                <el-option v-for="(item,index) in doctorOptions" :label="item.name" :value="item.id" :key="index"></el-option>
306
-              </el-select>
307
-
308
-              <label class="title" style="margin-left: 20px;"><span class="name">过敏药物</span> : </label>
309
-              <el-select style="width: 100px;" v-model="edit_is_guominyaowu" placeholder="选择过敏药物">
310
-                <el-option label="无" value="0"></el-option>
311
-                <el-option label="有" value="1"></el-option>
312
-              </el-select>
313
-              <el-input v-if="edit_is_guominyaowu == 1" v-model="edit_guominyaowu_desc"></el-input>
314
-
315
-            </div>
316
-
317
-            <div class="cell clearfix">
318
-              <label class="title"><span class="name">病史模版</span> : </label>
319
-              <el-select v-model="select_template" placeholder="选择病史模板" @change="didSelectTemplate">
320
-                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
321
-                           :value="option.content"></el-option>
322
-              </el-select>
323
-            </div>
324
-
325
-            <div class="textarea_panel">
326
-              <keep-alive>
327
-                <editor ref="edit_neditor"
328
-                        id="editors"
329
-                        style="width: 100%"
330
-                        v-bind:r_content="edit_new_content"
331
-                >
332
-                </editor>
333
-              </keep-alive>
334
-            </div>
335
-
336
-
337
-            <div style="text-align: right; padding-right: 0px; padding-top: 20px; padding-bottom: 10px;">
338
-              <el-button @click="show_edit_dialog = false">取消</el-button>
339
-              <el-button type="primary"
340
-                         @click="modifyAction" :loading="uploading_new_record">保存
341
-              </el-button>
342
-            </div>
343
-          </div>
344
-        </div>
345
-      </el-dialog>
201
+     
202
+     
346
     </div>
203
     </div>
347
   </div>
204
   </div>
348
-  <!-- </div> -->
205
+ 
349
 </template>
206
 </template>
350
 
207
 
351
 <script>
208
 <script>
356
 import { fetchAllDoctorAndNurse } from "@/api/doctor";
213
 import { fetchAllDoctorAndNurse } from "@/api/doctor";
357
  import print from 'print-js'
214
  import print from 'print-js'
358
 import {
215
 import {
359
-  createSickHistoryRecord,
216
+  createNewSickHistoryRecord,
360
   deleteSickHistoryRecords,
217
   deleteSickHistoryRecords,
361
-  GetSickHistoryRecords,
218
+  getNewSickHistory,
362
   ModifySickHistoryRecord,
219
   ModifySickHistoryRecord,
220
+  getSickHistoryByPatient
363
 } from '@/api/patient'
221
 } from '@/api/patient'
364
 import { parseTime } from '@/utils'
222
 import { parseTime } from '@/utils'
365
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
366
-
223
+import BreadCrumb from '@/xt_pages/components/bread-crumb' 
224
+import { uParseTime } from '@/utils/tools'
367
 export default {
225
 export default {
368
   name: 'CourseOfDisease',
226
   name: 'CourseOfDisease',
369
   components: {
227
   components: {
402
       uploading_new_record: false,
260
       uploading_new_record: false,
403
       templates: this.$store.getters.configlist.sick_history,
261
       templates: this.$store.getters.configlist.sick_history,
404
       select_template:"",
262
       select_template:"",
405
-      new_content: '111111',
263
+      new_content: '',
406
       edit_new_content: '',
264
       edit_new_content: '',
407
       edit_sick_history_time: '',
265
       edit_sick_history_time: '',
408
       selectingRows: [],
266
       selectingRows: [],
427
       yizhi_options:[{value:1,label:'无'},{value:2,label:'有'}],
285
       yizhi_options:[{value:1,label:'无'},{value:2,label:'有'}],
428
       yishen_options:[],
286
       yishen_options:[],
429
       guomi_options:[{value:1,label:'无'},{value:2,label:'有'},{value:3,label:'不详'}],
287
       guomi_options:[{value:1,label:'无'},{value:2,label:'有'},{value:3,label:'不详'}],
430
-      tableData:[{index:1,date:'2024-11-12',doctor:'王启年'}],
288
+      tableData:[],
289
+      admin_user_id:"",
431
     }
290
     }
432
   },
291
   },
433
   created() {
292
   created() {
293
+    this.admin_user_id = this.$store.getters.xt_user.user.id
294
+    
434
     this.patient_id = parseInt(this.$route.query.id)
295
     this.patient_id = parseInt(this.$route.query.id)
296
+
435
     if (isNaN(this.patient_id) || this.patient_id <= 0) {
297
     if (isNaN(this.patient_id) || this.patient_id <= 0) {
436
       this.$notify.error({
298
       this.$notify.error({
437
         title: '错误',
299
         title: '错误',
464
       '-' +
326
       '-' +
465
       (nowDay < 10 ? '0' + nowDay : nowDay)
327
       (nowDay < 10 ? '0' + nowDay : nowDay)
466
 
328
 
467
-    this.requestSickHistory()
329
+    this.getlist()
468
     this.fetchAllDoctorAndNurse()
330
     this.fetchAllDoctorAndNurse()
469
 
331
 
470
   },
332
   },
476
     // },10)
338
     // },10)
477
   },
339
   },
478
   methods: {
340
   methods: {
341
+    template_dele(){
342
+
343
+    },
479
     add_click(){
344
     add_click(){
480
       this.disabled = false
345
       this.disabled = false
481
       this.add_index = 1
346
       this.add_index = 1
529
         }
394
         }
530
       });
395
       });
531
     },
396
     },
532
-    requestSickHistory: function() {
533
-      this.loading = true
534
-      let params = {
535
-        patient_id:this.patient_id,
536
-        start_time:this.start_time,
537
-        end_time:this.end_time,
538
-      }
539
-      GetSickHistoryRecords(params).then(rs => {
540
-        this.loading = false
541
-        var resp = rs.data
542
-        if (resp.state == 1) {
543
-          this.current_select_record = null
544
-          this.records = resp.data.records
545
-          this.doctors = resp.data.doctors
546
-          this.$refs.record_table.setCurrentRow(this.records[0])
547
-        } else {
548
-          this.$message.error(resp.msg)
549
-        }
550
-      }).catch(error => {
551
-        this.loading = false
552
-        this.$message.error(error)
553
-      })
554
-    },
397
+  
555
 
398
 
556
     didChangeCurrentRecord: function(record) {
399
     didChangeCurrentRecord: function(record) {
557
       this.current_select_record = record
400
       this.current_select_record = record
560
       var time = new Date(timestamp * 1000)
403
       var time = new Date(timestamp * 1000)
561
       return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
404
       return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
562
     },
405
     },
563
-    doctorName: function(doctor_id) {
564
-      for (let index = 0; index < this.doctorOptions.length; index++) {
565
-        const doctor = this.doctorOptions[index]
566
-        if (doctor.id == doctor_id) {
567
-          return doctor.name
568
-        }
569
-      }
570
-      return ''
571
-    },
572
     modifyAction: function() {
406
     modifyAction: function() {
573
       this.edit_new_content = this.$refs.edit_neditor.content
407
       this.edit_new_content = this.$refs.edit_neditor.content
574
       if (this.edit_new_content.length == 0) {
408
       if (this.edit_new_content.length == 0) {
577
       }
411
       }
578
       this.uploading_new_record = true
412
       this.uploading_new_record = true
579
       let params = {
413
       let params = {
580
-        id:this.edit_current_id,
414
+        id:this.id,
581
         patient_id: this.patient_id,
415
         patient_id: this.patient_id,
582
-        content: this.edit_new_content,
583
-        record_time: this.edit_sick_history_time + " 00:00:00",
584
-        title: this.edit_title,
585
-        is_shenyizhishi:this.edit_is_shenyizhishi,
586
-        is_fumotouxishi:this.edit_is_fumotouxishi,
587
-        is_guominyaowu:this.edit_is_guominyaowu,
588
-        guominyaowu_desc:this.edit_guominyaowu_desc,
589
-        doctor_id: this.edit_doctor_id
416
+        content: this.new_content,
417
+        record_time: this.sick_history_time +" 00:00:00",
418
+        title: this.title,
419
+        is_shenyizhishi:this.shen_yizhi,
420
+        is_fumotouxishi:this.shen_fumo,
421
+        is_guominyaowu:this.shen_guomi,
422
+        guominyaowu_desc:this.guominyaowu_desc,
423
+        doctor_id: this.admin_user_id
590
       }
424
       }
591
 
425
 
592
       ModifySickHistoryRecord(params).then(rs => {
426
       ModifySickHistoryRecord(params).then(rs => {
619
     },
453
     },
620
 
454
 
621
     createAction: function() {
455
     createAction: function() {
622
-      this.new_content = this.$refs.editor.content
456
+    
457
+      this.new_content = this.$refs.edit.contents
623
       if (this.new_content.length == 0) {
458
       if (this.new_content.length == 0) {
624
         this.$message.error('请填写病程内容')
459
         this.$message.error('请填写病程内容')
625
         return
460
         return
626
       }
461
       }
627
-      this.uploading_new_record = true
628
       let params = {
462
       let params = {
629
         patient_id: this.patient_id,
463
         patient_id: this.patient_id,
630
         content: this.new_content,
464
         content: this.new_content,
631
-        record_time: this.sick_history_time +" 00:00:00",
465
+        record_time: this.start_time,
632
         title: this.title,
466
         title: this.title,
633
-        is_shenyizhishi:this.is_shenyizhishi,
634
-        is_fumotouxishi:this.is_fumotouxishi,
635
-        is_guominyaowu:this.is_guominyaowu,
467
+        is_shenyizhishi:this.shen_yizhi,
468
+        is_fumotouxishi:this.shen_fumo,
469
+        is_guominyaowu:this.shen_guomi,
636
         guominyaowu_desc:this.guominyaowu_desc,
470
         guominyaowu_desc:this.guominyaowu_desc,
637
-        doctor_id: this.doctor_id
471
+        doctor_id: this.admin_user_id
638
       }
472
       }
639
-      createSickHistoryRecord(params).then(rs => {
640
-        this.uploading_new_record = false
641
-        this.$message.success("新增成功")
642
-        var resp = rs.data
643
-        if (resp.state == 1) {
644
-          this.records.unshift(resp.data.record)
645
-          this.show_dialog = false
646
-          this.new_content = ''
647
-          this.title = ''
648
-          this.$refs.record_table.setCurrentRow(this.records[0])
649
-        } else {
650
-          this.$message.error(resp.msg)
651
-        }
473
+      console.log("params-------------",params)
474
+      createNewSickHistoryRecord(params).then(response => {
475
+         if(response.data.state == 1){
476
+           var patientSickHistory = response.data.data.patientSickHistory
477
+           this.$message.success("保存成功!")
478
+           this.getlist()
479
+         }
652
 
480
 
653
       }).catch(error => {
481
       }).catch(error => {
654
         this.uploading_new_record = false
482
         this.uploading_new_record = false
712
         this.loading = false
540
         this.loading = false
713
         this.$message.error(err)
541
         this.$message.error(err)
714
       })
542
       })
715
-    }, startTimeChange(val) {
716
-      this.requestSickHistory()
717
-    }, endTimeChange(val) {
718
-      this.requestSickHistory()
719
     },
543
     },
720
-    showDialog(){
721
-      for(let i = 0; i < this.doctorOptions.length; i++){
722
-        if(this.doctorOptions[i].id == this.$store.getters.xt_user.user.id){
723
-          this.doctor_id =this.$store.getters.xt_user.user.id
724
-        }
725
-      }
726
-      this.show_dialog = true
727
-
728
-    },showEdit() {
544
+    showEdit() {
729
       if (this.table_current_index == -1) {
545
       if (this.table_current_index == -1) {
730
         this.$message.error('请选择要修改的病程内容')
546
         this.$message.error('请选择要修改的病程内容')
731
         return
547
         return
760
         return
576
         return
761
       }
577
       }
762
       this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
578
       this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
579
+    },
580
+    getlist(){
581
+       var params = {
582
+        patient_id:this.patient_id
583
+       }
584
+      getNewSickHistory(params).then(response=>{
585
+        if(response.data.state ==1 ){
586
+          var list = response.data.data.list
587
+          this.tableData = list
588
+          this.$refs.record_table.setCurrentRow(this.tableData[0])
589
+        } 
590
+      })
591
+    },
592
+    getDocName(admin_user_id){
593
+      var user_name = ""
594
+      for(let i=0;i<this.doctorOptions.length;i++){
595
+        if(admin_user_id == this.doctorOptions[i].id){
596
+             user_name = this.doctorOptions[i].name
597
+        }
598
+      }
599
+      return user_name
600
+    },
601
+    getTime (time) {
602
+      return uParseTime(time, '{y}-{m}-{d}')
603
+    },
604
+    getCurrentChange(val){
605
+       console.log("VAL---------------",val)
606
+      this.record_time = this.getTime(val.record_time)
607
+      this.id = val.id
608
+      this.content = val.content
609
+      this.guominyaowu_desc = val.hypersusceptibility_desc
610
+
611
+      this.is_fumotouxishi = val.is_fumo_dialysis_history
612
+      this.is_hypersusceptibility  = val.is_shenyizhi_history
763
     }
613
     }
764
   }
614
   }
765
 }
615
 }

File diff suppressed because it is too large
+ 29357 - 29153
static/ueditor/ueditor.all.js


File diff suppressed because it is too large
+ 1 - 1
static/ueditor/ueditor.all.min.js


+ 3 - 3
static/ueditor/ueditor.config.js View File

229
         //]
229
         //]
230
 
230
 
231
         //打开右键菜单功能
231
         //打开右键菜单功能
232
-        //,enableContextMenu: true
232
+        // ,enableContextMenu: true
233
         //右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准
233
         //右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准
234
-        //,contextMenu:[
234
+        // ,contextMenu:[
235
         //    {
235
         //    {
236
         //        label:'',       //显示的名称
236
         //        label:'',       //显示的名称
237
         //        cmdName:'selectall',//执行的command命令,当点击这个右键菜单时
237
         //        cmdName:'selectall',//执行的command命令,当点击这个右键菜单时
241
         //            //this.ui._dialogs['inserttableDialog'].open();
241
         //            //this.ui._dialogs['inserttableDialog'].open();
242
         //        }
242
         //        }
243
         //    }
243
         //    }
244
-        //]
244
+        // ]
245
 
245
 
246
         //快捷菜单
246
         //快捷菜单
247
         //,shortcutMenu:["fontfamily", "fontsize", "bold", "italic", "underline", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist"]
247
         //,shortcutMenu:["fontfamily", "fontsize", "bold", "italic", "underline", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist"]

File diff suppressed because it is too large
+ 878 - 1
static/ueditor/ueditor.parse.min.js