瀏覽代碼

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

陈少旭 1 年之前
父節點
當前提交
4254a8df8a
共有 71 個文件被更改,包括 8828 次插入7353 次删除
  1. 45 0
      src/api/data.js
  2. 8 0
      src/api/manage.js
  3. 8 0
      src/api/patient.js
  4. 2 1
      src/lang/zh.js
  5. 0 1
      src/router/index.js
  6. 3 3
      src/router/modules/dialysis.js
  7. 12 0
      src/router/modules/workforce.js
  8. 2 2
      src/utils/data.js
  9. 2 1
      src/xt_pages/data/components/editInspection.vue
  10. 1 1
      src/xt_pages/data/components/inspection.vue
  11. 8 2
      src/xt_pages/data/specialDictionary.vue
  12. 1 1
      src/xt_pages/data/template.vue
  13. 17 1
      src/xt_pages/device/airDisinfectTwo.vue
  14. 10 10
      src/xt_pages/device/objectTableDisinfectTwo.vue
  15. 31 9
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue
  16. 141 40
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  17. 56 5
      src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue
  18. 3 1
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue
  19. 12 9
      src/xt_pages/dialysis/bloodPresssWatch.vue
  20. 5 0
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  21. 14 5
      src/xt_pages/dialysis/details/NavIgation.vue
  22. 2 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  23. 7 0
      src/xt_pages/dialysis/details/assessmentBefore.vue
  24. 10 10
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  25. 34 39
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  26. 89 86
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  27. 59 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  28. 206 16
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  29. 2 2
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  30. 98 59
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  31. 17 16
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  32. 2 2
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  33. 5 2
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  34. 260 3
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  35. 2 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  36. 1 0
      src/xt_pages/dialysis/details/index.vue
  37. 40 131
      src/xt_pages/dialysis/dialysisFlow.vue
  38. 3 5
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  39. 35 13
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  40. 61 21
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  41. 98 53
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue
  42. 48 3
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  43. 24 3
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  44. 3 1
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  45. 1 0
      src/xt_pages/hospitalStation/components/dialysisIndex.vue
  46. 3590 3590
      src/xt_pages/hospitalStation/doctorDesk.vue
  47. 40 35
      src/xt_pages/infor/index.vue
  48. 34 1
      src/xt_pages/management/components/UserForm.vue
  49. 2 4
      src/xt_pages/management/components/WaterForm.vue
  50. 40 7
      src/xt_pages/management/components/WaterFormList.vue
  51. 20 1
      src/xt_pages/management/index.vue
  52. 1 1
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  53. 2719 2654
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  54. 1 0
      src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue
  55. 17 16
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  56. 1 1
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  57. 13 12
      src/xt_pages/qcd/basicInformationAnalysis.vue
  58. 0 1
      src/xt_pages/qcd/patientAnalysis/bloodPressure.vue
  59. 22 3
      src/xt_pages/qcd/qualitycontrol/totalSstatistics.vue
  60. 8 0
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  61. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  62. 8 1
      src/xt_pages/stock/stockInOrder.vue
  63. 387 387
      src/xt_pages/stock/stockInOrderDetailPrint.vue
  64. 4 1
      src/xt_pages/stock/stockOutOrderEdit.vue
  65. 124 63
      src/xt_pages/user/components/PatientDetail.vue
  66. 12 1
      src/xt_pages/user/components/PatientForm.vue
  67. 241 5
      src/xt_pages/user/courseOfDisease.vue
  68. 16 1
      src/xt_pages/user/dialysisSolution.vue
  69. 12 0
      src/xt_pages/user/doctorAdvice.vue
  70. 20 2
      src/xt_pages/workforce/appointment.vue
  71. 7 3
      src/xt_pages/workforce/components/historyWeekTable.vue

+ 45 - 0
src/api/data.js 查看文件

@@ -305,3 +305,48 @@ export function postSearchDrugList(keyword, storehouse_id, params) {
305 305
   })
306 306
 }
307 307
 
308
+export function savePatientDiagnose(data){
309
+  
310
+  return request({
311
+    url:"/api/patient/addpatientdiagnose",
312
+    method:"post",
313
+    data:data,
314
+  })
315
+}
316
+
317
+export function getPatientDiagnose(params){
318
+  
319
+  return request({
320
+    url:"/api/patient/getpatientdiagnose",
321
+    method:"get",
322
+    params:params
323
+  })
324
+}
325
+
326
+export function getPatientDiagnoseDetail(params){
327
+  
328
+  return request({
329
+    url:"/api/patient/getpatientdiagnosedetail",
330
+    method:"Get",
331
+    params:params
332
+  })
333
+}
334
+
335
+
336
+export function updatePatientCase(data){
337
+  
338
+  return request({
339
+    url:"/api/patient/updatepatientcase",
340
+    method:"post",
341
+    data:data,
342
+  })
343
+}
344
+
345
+export function deletePatientDiagnose(params){
346
+  
347
+  return request({
348
+    url:"/api/patient/deletepatientdiagnose",
349
+    method:"Get",
350
+    params:params,
351
+  })
352
+}

+ 8 - 0
src/api/manage.js 查看文件

@@ -797,4 +797,12 @@ export function DeleteBatchDialyisWater(data){
797 797
     method:"Delete",
798 798
     data:data,
799 799
   })
800
+}
801
+
802
+export function getInformationManaList(params){
803
+  return request({
804
+    url:"/api/manage/getinformationmanalist",
805
+    method:"get",
806
+    params:params
807
+  })
800 808
 }

+ 8 - 0
src/api/patient.js 查看文件

@@ -744,3 +744,11 @@ export function getSickhistoryCheckRecordsPrint(params) {
744 744
 }
745 745
 
746 746
 
747
+export function getPatientDialysisInfor(params){
748
+  
749
+  return request({
750
+    url:"/api/patient/getpatientdialysisinforlist",
751
+    method:"get",
752
+    params:params
753
+  })
754
+}

+ 2 - 1
src/lang/zh.js 查看文件

@@ -418,6 +418,7 @@ export default {
418 418
     tentative_diagnosis: '初步诊断',
419 419
     diagnostic_basis: '诊断依据',
420 420
     differential_diagnosis: '鉴别诊断',
421
-    treatment_plan: '诊疗计划'
421
+    treatment_plan: '诊疗计划',
422
+    befor_symptoms: '透前症状',
422 423
   }
423 424
 }

+ 0 - 1
src/router/index.js 查看文件

@@ -174,7 +174,6 @@ var _asy_router_map = [
174 174
 
175 175
   otherManagement,
176 176
   qcd,
177
-  // qualitycontrol,//透析分析5/29
178 177
 
179 178
   device,
180 179
   org,

+ 3 - 3
src/router/modules/dialysis.js 查看文件

@@ -371,12 +371,12 @@ export default {
371 371
       }
372 372
     },
373 373
     // {
374
-    //   path: '/dialysis/print/batch/fiftyone',
374
+    //   path: '/dialysis/print/batch/sixtyFive',
375 375
     //   component: () =>
376
-    //     import('@/xt_pages/dialysis/batch_print/batch_print_order_fiftyone'),
376
+    //     import('@/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive'),
377 377
     //   hidden: true,
378 378
     //   is_menu: false,
379
-    //   name: 'dialysis_batch_fiftyone',
379
+    //   name: 'dialysis_batch_sixtyFive',
380 380
     //   meta: {
381 381
     //     title: '批量打印',
382 382
     //     noCache: true

+ 12 - 0
src/router/modules/workforce.js 查看文件

@@ -167,6 +167,18 @@ export default {
167 167
       noCache: true
168 168
     }
169 169
   },
170
+
171
+  {
172
+    path: '/scheduleTablePrintThree',
173
+    component: () => import('@/xt_pages/workforce/scheduleTablePrintThree'),
174
+    name: 'scheduleTablePrintThree',
175
+    hidden: true,
176
+    is_menu: false,
177
+    meta: {
178
+      title: 'scheduleTablePrintThree',
179
+      noCache: true
180
+    }
181
+  },
170 182
   // {
171 183
   //   path: '/historyWeekTable',
172 184
   //   component: () => import('@/xt_pages/workforce/historyWeekTable'),

+ 2 - 2
src/utils/data.js 查看文件

@@ -6,7 +6,7 @@ export function getDataConfig(module, field) {
6 6
   if (moduleConfig == undefined) {
7 7
     return false
8 8
   }
9
-  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record' || module == 'dialysis_remark' || module=='catheter_operation') {
9
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record' || module == 'dialysis_remark' || module=='catheter_operation' || module=='befor_symptoms') {
10 10
     var Aresult = []
11 11
     for (var j = 0; j < moduleConfig.length; j++) {
12 12
       var Atemp = []
@@ -43,7 +43,7 @@ export function getDictionaryDataConfig(module, field) {
43 43
   if (moduleConfig == undefined) {
44 44
     return false
45 45
   }
46
-  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
46
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record'|| module=='befor_symptoms') {
47 47
     var Aresult = []
48 48
     for (var j = 0; j < moduleConfig.length; j++) {
49 49
       var Atemp = []

+ 2 - 1
src/xt_pages/data/components/editInspection.vue 查看文件

@@ -421,7 +421,8 @@
421 421
     },
422 422
     created() {
423 423
       this.getlist()
424
-    },watch: {
424
+    },
425
+    watch: {
425 426
       'tableData': function() {
426 427
         let c = 0
427 428
         this.form.price  = 0

+ 1 - 1
src/xt_pages/data/components/inspection.vue 查看文件

@@ -99,7 +99,7 @@ export default {
99 99
             },],
100 100
             value: '',
101 101
             tableData: [],
102
-            limit:20,
102
+            limit:10,
103 103
             page:1,
104 104
             total:0
105 105
             

+ 8 - 2
src/xt_pages/data/specialDictionary.vue 查看文件

@@ -43,6 +43,11 @@
43 43
           <diagnose-other v-if="activeName == 10"></diagnose-other>
44 44
         </el-tab-pane>
45 45
 
46
+
47
+        <el-tab-pane label="疾病诊断" name="11">
48
+          <patient-diagnose v-if="activeName == 11"></patient-diagnose>
49
+        </el-tab-pane>
50
+
46 51
       </el-tabs>
47 52
     </div>
48 53
   </div>
@@ -62,7 +67,7 @@
62 67
   import Addtion from './components/addtion'
63 68
   import DiagnoseOtherDialog from "./components/diagnoseOtherDialog";
64 69
   import DiagnoseOther from "./components/diagnoseOther";
65
-
70
+  import PatientDiagnose from "./components/patient_diagnose.vue"
66 71
   export default {
67 72
     name: 'specialDictionary',
68 73
     components: {
@@ -77,7 +82,8 @@
77 82
       project,
78 83
       inspection,
79 84
       manufacturer,
80
-      configure
85
+      configure,
86
+      PatientDiagnose
81 87
     },
82 88
     data() {
83 89
       return {

+ 1 - 1
src/xt_pages/data/template.vue 查看文件

@@ -63,7 +63,7 @@ export default {
63 63
         { label: this.$t("data_config.differential_diagnosis"), key:"differential_diagnosis"},
64 64
         { label: this.$t("data_config.treatment_plan"), key:"treatment_plan"},
65 65
         { label: this.$t("data_config.sick_history"), key:"sick_history"},
66
-
66
+        { label: this.$t("data_config.befor_symptoms"), key:"befor_symptoms"},
67 67
       ],
68 68
       activeName: "education",
69 69
       createdTimes: 0

+ 17 - 1
src/xt_pages/device/airDisinfectTwo.vue 查看文件

@@ -510,7 +510,7 @@
510 510
                     ></el-date-picker>
511 511
                   </el-form-item>
512 512
                   <el-form-item label="累计时间(h)" label-width="110px">
513
-                      <el-input v-model= "form.first_disinfection_time"  ></el-input>
513
+                      <el-input v-model= "form.first_total_time"  ></el-input>
514 514
                   </el-form-item>
515 515
                   <el-form-item label="检测合格" label-width="110px">
516 516
                       <div>
@@ -1258,7 +1258,23 @@
1258 1258
                 }else{
1259 1259
                     this.form.last_modifications= 0
1260 1260
                 }
1261
+                console.log("23333333333333",this.form.first_total_time)
1262
+                if( this.form.first_total_time > 0){
1263
+                  this.form.first_total_time   = this.form.first_total_time.toString()
1264
+                }
1265
+                if( this.form.sencond_total_time > 0){
1266
+                  this.form.sencond_total_time   = this.form.sencond_total_time.toString()
1267
+                }
1261 1268
 
1269
+                if( this.form.third_total_time > 0){
1270
+                  this.form.third_total_time   = this.form.third_total_time.toString()
1271
+                }
1272
+
1273
+                if(this.form.last_total_time >0){
1274
+                    this.form.last_total_time   = this.form.last_total_time.toString()
1275
+                }
1276
+               
1277
+                console.log("form23333333333333333wo",this.form)
1262 1278
                 updateNewAirDisinfect(this.form).then(response=>{
1263 1279
                 if(response.data.state == 1){
1264 1280
                   var disinfect =  response.data.data.disinfect

+ 10 - 10
src/xt_pages/device/objectTableDisinfectTwo.vue 查看文件

@@ -80,7 +80,7 @@
80 80
                     </template>
81 81
                 </el-table-column>
82 82
 
83
-                <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
83
+                <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精浸泡'" align="center" min-width="60">
84 84
                     <template slot-scope="scope">
85 85
                         <!-- {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}} -->
86 86
                         <!-- {{ scope.row.fourth_disinfection_time }} -->
@@ -990,7 +990,7 @@
990 990
                                 <td>负责人</td>
991 991
                                 <td>医疗垃圾桶<br/>1000mg/l含氯制剂</td>
992 992
                                 <td>负责人</td>
993
-                                <td>体温计<br/>75%酒精<br/>擦拭</td>
993
+                                <td>体温计<br/>75%酒精<br/>浸泡</td>
994 994
                                 <td>负责人</td>
995 995
                                 <td>体温枪<br/>75%酒精<br/>擦拭</td>
996 996
                                 <td>负责人</td>
@@ -1424,15 +1424,15 @@
1424 1424
               this.form.third_modifications = list.third_modifications?list.third_modifications:""
1425 1425
               this.form.third_creator = list.third_creator
1426 1426
 
1427
-              this.form.fourth_disinfection_water = list.third_disinfection_water?list.third_disinfection_water:""
1428
-              this.form.fourth_disinfection_methods = list.third_disinfection_methods?list.third_disinfection_methods:""
1427
+              this.form.fourth_disinfection_water = list.fourth_disinfection_water?list.fourth_disinfection_water:""
1428
+              this.form.fourth_disinfection_methods = list.fourth_disinfection_methods?list.fourth_disinfection_methods:""
1429 1429
               this.form.fourth_disinfection_time = list.fourth_disinfection_time?list.fourth_disinfection_time:""
1430
-              this.form.fourth_start_time  =this.getTimeThree(list.third_start_time)
1431
-              this.form.fourth_end_time = this.getTimeThree(list.third_end_time)
1432
-              this.form.fourth_total_time = list.third_total_time? list.third_total_time:""
1433
-              this.form.fourth_is_check = list.third_is_check.toString()
1434
-              this.form.fourth_modifications = list.third_modifications?list.third_modifications:""
1435
-              this.form.fourth_creator = list.third_creator
1430
+              this.form.fourth_start_time  =this.getTimeThree(list.fourth_start_time)
1431
+              this.form.fourth_end_time = this.getTimeThree(list.fourth_end_time)
1432
+              this.form.fourth_total_time = list.fourth_total_time? list.fourth_total_time:""
1433
+              this.form.fourth_is_check = list.fourth_is_check.toString()
1434
+              this.form.fourth_modifications = list.fourth_modifications?list.fourth_modifications:""
1435
+              this.form.fourth_creator = list.fourth_creator
1436 1436
 
1437 1437
               this.form.last_start_time = this.getTimeThree(list.last_start_time)
1438 1438
               this.form.last_end_time = this.getTimeThree(list.last_end_time)

+ 31 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue 查看文件

@@ -1392,16 +1392,38 @@ export default {
1392 1392
         return record[key] == target_value
1393 1393
       }
1394 1394
     },
1395
+    // getAge: function(val) {
1396
+    //   if (val.age == 0) {
1397
+    //     if (val.birthday == 0) {
1398
+    //       return ''
1399
+    //     }
1400
+    //     return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1401
+    //   } else {
1402
+    //     return val.age
1403
+    //   }
1404
+    // },
1395 1405
     getAge: function(val) {
1396
-      if (val.age == 0) {
1397
-        if (val.birthday == 0) {
1398
-          return ''
1399
-        }
1400
-        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1401
-      } else {
1402
-        return val.age
1403
-      }
1404
-    },
1406
+     
1407
+     if (val.id_card_no) {
1408
+       var thisLen = val.id_card_no.length
1409
+
1410
+       var birth = ''
1411
+       if (thisLen == 15) {
1412
+         birth = '19' + val.id_card_no.substr(6, 6)
1413
+       } else {
1414
+         birth = val.id_card_no.substr(6, 8)
1415
+       }
1416
+       var birthtwo =
1417
+         birth.substr(0, 4) +
1418
+         '-' +
1419
+         birth.substr(4, 2) +
1420
+         '-' +
1421
+         birth.substr(6, 2)
1422
+
1423
+       var age = jsGetAge(birthtwo, '-')
1424
+       return age
1425
+     }
1426
+   },
1405 1427
     newAdviceGroupObject: function() {
1406 1428
       return Object.assign(
1407 1429
         {},

+ 141 - 40
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -69,8 +69,14 @@
69 69
               </div>
70 70
71 71
             </div>
72
-            <div class="inline_block">
73
-              门诊:
72
+            <div class="inline_block" v-if="record.receive_assessment.condition!=1">
73
+                门诊:
74
+                <div class="under_line" style="width: 30px; text-align: center">
75
+                  <check-box :checked="record.patient.source == 1"></check-box>
76
+                </div>
77
+              </div>
78
+            <div class="inline_block" v-if="record.receive_assessment.condition==1">
79
+              住院:
74 80
               <div class="under_line" style="width: 30px; text-align: center">
75 81
                 <check-box :checked="record.patient.source == 1"></check-box>
76 82
               </div>
@@ -1108,6 +1114,30 @@
1108 1114
                           <span v-if="record.prescription.anticoagulant == 7"
1109 1115
                             >&nbsp;低分子肝素钠</span
1110 1116
                           >
1117
+                          <span v-if="record.prescription.anticoagulant == 8"
1118
+                            >&nbsp;依诺肝素</span
1119
+                          >
1120
+                          <span v-if="record.prescription.anticoagulant == 9"
1121
+                            >&nbsp;达肝素</span
1122
+                          >
1123
+                          <span v-if="record.prescription.anticoagulant == 10"
1124
+                            >&nbsp;体外抗凝</span
1125
+                          >
1126
+                          <span v-if="record.prescription.anticoagulant == 11"
1127
+                            >&nbsp;那屈肝素</span
1128
+                          >
1129
+                          <span v-if="record.prescription.anticoagulant == 12"
1130
+                            >&nbsp;无抗凝剂</span
1131
+                          >
1132
+                          <span v-if="record.prescription.anticoagulant == 13"
1133
+                            >&nbsp;那屈肝素钙</span
1134
+                          >
1135
+                          <span v-if="record.prescription.anticoagulant == 14"
1136
+                            >&nbsp;肝素钙注射液</span
1137
+                          >
1138
+                          <span v-if="record.prescription.anticoagulant == 15"
1139
+                            >&nbsp;甲磺酸萘莫司他</span
1140
+                          >
1111 1141
                         </div>
1112 1142
                       </div>
1113 1143
                       <div class="inline_block" style="margin-left: 20px">
@@ -1318,7 +1348,8 @@
1318 1348
                               org_id != 9538 &&
1319 1349
                               org_id != 10121 &&
1320 1350
                               org_id != 9675 &&
1321
-                              org_id != 0
1351
+                              org_id != 0 &&
1352
+                              org_id!=10490
1322 1353
                             "
1323 1354
                           >
1324 1355
                             电导度<br />(ms/cm)
@@ -1334,13 +1365,21 @@
1334 1365
                           <td
1335 1366
                             width="50"
1336 1367
                             v-if="
1337
-                              org_id == 0 || org_id ==  10469
1368
+                              org_id ==  10469
1338 1369
                             "
1339 1370
                           >
1340 1371
                             钠浓度<br />(mmol/L)
1341 1372
                           </td>
1342
-                          <td width="50" v-if="org_id != 0 && org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1343
-                          <td width="50" v-if="org_id ==0 || org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1373
+                          <td
1374
+                            width="50"
1375
+                            v-if="
1376
+                              org_id ==  10490 || org_id == 0
1377
+                            "
1378
+                          >
1379
+                          置换液的速度<br />(ml/h)
1380
+                          </td>
1381
+                          <td width="50" v-if="org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1382
+                          <td width="50" v-if="org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1344 1383
                           <td
1345 1384
                             v-if="
1346 1385
                               record.prescription.mode_id == 2 ||
@@ -1351,7 +1390,7 @@
1351 1390
                           >
1352 1391
                             置换量<br />(ml)
1353 1392
                           </td>
1354
-                          <td v-if="org_id == 3877 || org_id == 0 || org_id == 10449" width="50">滤前压(mmHg)</td>
1393
+                          <td v-if="org_id == 3877  || org_id == 10449" width="50">滤前压(mmHg)</td>
1355 1394
                           <td
1356 1395
                             width="50"
1357 1396
                             v-if="
@@ -1372,6 +1411,15 @@
1372 1411
                             血容量<br />(L)
1373 1412
                           </td>
1374 1413
 
1414
+                          <td
1415
+                            width="50"
1416
+                            v-if="
1417
+                              org_id == 10490 || org_id == 0
1418
+                            "
1419
+                          >
1420
+                          碳酸氢钠<br />(ml)
1421
+                          </td>
1422
+
1375 1423
                           <td width="200">病情变化及处理</td>
1376 1424
                         </tr>
1377 1425
 
@@ -1446,15 +1494,13 @@
1446 1494
                             }}
1447 1495
                           </td>
1448 1496
 
1449
-                          <!-- <td v-if="org_id != 10121 && org_id != 9675 && org_id != 0">
1450
-                            {{monitor_record.conductivity? monitor_record.conductivity : ""}}
1451
-                          </td> -->
1497
+                      
1452 1498
                           <td
1453 1499
                             v-if="
1454 1500
                               org_id != 9538 &&
1455 1501
                               org_id != 10121 &&
1456 1502
                               org_id != 9675 && 
1457
-                              org_id!=0
1503
+                              org_id!=0 && org_id!=10490
1458 1504
                              
1459 1505
                             "
1460 1506
                           >
@@ -1479,7 +1525,7 @@
1479 1525
 
1480 1526
                           <td
1481 1527
                             v-if="
1482
-                              org_id == 0 || org_id == 10469 
1528
+                              org_id == 10469 
1483 1529
                             "
1484 1530
                           >
1485 1531
                             {{
@@ -1489,6 +1535,18 @@
1489 1535
                             }}
1490 1536
                           </td>
1491 1537
 
1538
+                          <td
1539
+                            v-if="
1540
+                              org_id == 10490 || org_id == 0 
1541
+                            "
1542
+                          >
1543
+                            {{
1544
+                              monitor_record.replacement_speed
1545
+                                ? monitor_record.replacement_speed
1546
+                                : ""
1547
+                            }}
1548
+                          </td>
1549
+
1492 1550
                           <td v-if="org_id == 9538">
1493 1551
                             {{
1494 1552
                               monitor_record.sodium_concentration
@@ -1528,7 +1586,7 @@
1528 1586
                                 : ""
1529 1587
                             }}
1530 1588
                           </td>
1531
-                          <td v-if="org_id == 3877 || org_id == 0 || org_id == 10449">
1589
+                          <td v-if="org_id == 3877  || org_id == 10449">
1532 1590
                             {{
1533 1591
                               monitor_record.filter_pressure
1534 1592
                                 ? monitor_record.filter_pressure
@@ -1554,6 +1612,14 @@
1554 1612
                           >
1555 1613
                             {{ monitor_record.accumulated_blood_volume }}
1556 1614
                           </td>
1615
+                          <td
1616
+                            width="50"
1617
+                            v-if="
1618
+                              org_id == 10490 || org_id == 0
1619
+                            "
1620
+                          >
1621
+                           {{ monitor_record.dicarbonate  }}<br />
1622
+                          </td>
1557 1623
 
1558 1624
                           <td style="line-height: 16px; padding: 0px">
1559 1625
                             <div
@@ -1604,22 +1670,29 @@
1604 1670
                           v-for="(monitor_record, s) in record.monitor_records2"
1605 1671
                           :key="s"
1606 1672
                         >
1607
-                          <td></td>
1608
-                          <td></td>
1609
-                          <td></td>
1610
-                          <td></td>
1611
-                          <td></td>
1612
-                          <td></td>
1613
-                          <td></td>
1614
-                          <td></td>
1615
-                          <td></td>
1616
-                          <td></td>
1617
-                          <td
1618
-                            v-if="
1619
-                              org_id == 9919 || org_id == 9538 || org_id == 9675
1620
-                            "
1621
-                          ></td>
1622
-                          <td v-if="org_id == 9538 || org_id == 9675"></td>
1673
+                        <td></td>
1674
+                        <td></td>
1675
+                        <td></td>
1676
+                        <td></td>
1677
+                        <td></td>
1678
+                        <td></td>
1679
+                        <td></td>
1680
+                        <td></td>
1681
+                        <td></td>
1682
+                        <td></td>
1683
+                        <td v-if="org_id == 9671 || org_id == 9919"></td>
1684
+                        <td
1685
+                          v-if="
1686
+                            prescription.mode_id == 2 ||
1687
+                            prescription.mode_id == 5 ||
1688
+                            prescription.mode_id == 12
1689
+                          "
1690
+                          width="50"
1691
+                        ></td>
1692
+                        <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671"></td>
1693
+                        <td v-if="org_id == 9538"></td>
1694
+                        <td v-if="org_id == 10490 || org_id == 0"></td>
1695
+                         
1623 1696
                           <td style="line-height: 16px; padding: 0px">
1624 1697
                             <div
1625 1698
                               style="
@@ -1994,12 +2067,18 @@
1994 2067
                 </div>
1995 2068
1996 2069
               </div>
1997
-              <div class="inline_block">
2070
+              <div class="inline_block" v-if="record.receive_assessment.condition!=1">
1998 2071
                 门诊:
1999 2072
                 <div class="under_line" style="width: 30px; text-align: center">
2000 2073
                   <check-box :checked="record.patient.source == 1"></check-box>
2001 2074
                 </div>
2002 2075
               </div>
2076
+              <div class="inline_block" v-if="record.receive_assessment.condition==1">
2077
+                住院:
2078
+                <div class="under_line" style="width: 30px; text-align: center">
2079
+                  <check-box :checked="record.patient.source == 1"></check-box>
2080
+                </div>
2081
+              </div>
2003 2082
               <div class="inline_block">
2004 2083
                 病区:
2005 2084
                 <div class="under_line" style="width: 50px; text-align: center">
@@ -3439,16 +3518,38 @@ export default {
3439 3518
         return record[key] == target_value;
3440 3519
       }
3441 3520
     },
3442
-    getAge: function (val) {
3443
-      if (val.age == 0) {
3444
-        if (val.birthday == 0) {
3445
-          return "";
3446
-        }
3447
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
3448
-      } else {
3449
-        return val.age;
3450
-      }
3451
-    },
3521
+    // getAge: function (val) {
3522
+    //   if (val.age == 0) {
3523
+    //     if (val.birthday == 0) {
3524
+    //       return "";
3525
+    //     }
3526
+    //     return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
3527
+    //   } else {
3528
+    //     return val.age;
3529
+    //   }
3530
+    // },
3531
+    getAge: function(val) {
3532
+     
3533
+     if (val.id_card_no) {
3534
+       var thisLen = val.id_card_no.length
3535
+
3536
+       var birth = ''
3537
+       if (thisLen == 15) {
3538
+         birth = '19' + val.id_card_no.substr(6, 6)
3539
+       } else {
3540
+         birth = val.id_card_no.substr(6, 8)
3541
+       }
3542
+       var birthtwo =
3543
+         birth.substr(0, 4) +
3544
+         '-' +
3545
+         birth.substr(4, 2) +
3546
+         '-' +
3547
+         birth.substr(6, 2)
3548
+
3549
+       var age = jsGetAge(birthtwo, '-')
3550
+       return age
3551
+     }
3552
+   },
3452 3553
     newAdviceGroupObject: function () {
3453 3554
       return Object.assign(
3454 3555
         {},

+ 56 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue 查看文件

@@ -200,10 +200,17 @@
200 200
                     </div>
201 201
                     <div class="inline_block" style="margin-right:30px;">
202 202
                         透析液配方
203
-                        <div class="inline_block under_line" style="width:150px;text-align: center;">
203
+                        <div class="inline_block under_line" style="width:100px;text-align: center;">
204 204
                             {{ record.prescription.dialysate_formulation ? dialysateFormulationName(record.prescription.dialysate_formulation) : ''}}
205 205
                         </div>
206 206
                     </div>
207
+                    <div class="inline_block" style="margin-right:30px;">
208
+                      通路形成时间
209
+                      <div class="inline_block under_line" style="width:100px;text-align: left;">
210
+                        {{getTimeOne(record.assessment_before_dislysis.pathway_formation_time) }}
211
+                         
212
+                      </div>
213
+                  </div>
207 214
                 </div>
208 215
                 <div class="row">
209 216
                     血管通路
@@ -236,19 +243,53 @@
236 243
                     </div>
237 244
                 </div>
238 245
                 <div class="row">
239
-                  <div class="inline_block" style="margin-right:30px;">
246
+                  <div class="inline_block" style="margin-right:10px;">
240 247
                       导管
241
-                      <div class="inline_block under_line" style="width:200px;text-align: left;">
248
+                      <div class="inline_block under_line" style="width:900px;text-align: left;">
242 249
                           {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter : ''}}
243 250
                       </div>
244 251
                   </div>
245
-                  <div class="inline_block" style="margin-right:30px;">
252
+                </div>
253
+                <div class="row">
254
+                 <div class="inline_block" style="margin-right:10px;">
246 255
                       内瘘
247
-                      <div class="inline_block under_line" style="width:200px;text-align: left;">
256
+                      <div class="inline_block under_line" style="width:900px;text-align: left;">
248 257
                           {{ record.assessment_before_dislysis.internal_fistula ? record.assessment_before_dislysis.internal_fistula : ''}}
249 258
                       </div>
250 259
                   </div>
251 260
                 </div>
261
+                <!-- <div class="row"> -->
262
+                  <!-- <div class="inline_block" style="margin-right:30px;">
263
+                    导管评估项目
264
+                      <div class="inline_block under_line" style="width:200px;text-align: left;">
265
+                          {{ record.assessment_before_dislysis.catheter_evaluation_program ? record.assessment_before_dislysis.catheter_evaluation_program : ''}}
266
+                      </div>
267
+                  </div>
268
+                  <div class="inline_block" style="margin-right:30px;">
269
+                    置管部位皮肤
270
+                      <div class="inline_block under_line" style="width:100px;text-align: left;">
271
+                          {{ record.assessment_before_dislysis.skin_site_catheterization ? record.assessment_before_dislysis.skin_site_catheterization : ''}}
272
+                      </div>
273
+                  </div>
274
+
275
+                  <div class="inline_block" style="margin-right:30px;">
276
+                    是否通畅
277
+                      <div class="inline_block under_line" style="width:100px;text-align: left;">
278
+                        <span v-if="record.assessment_before_dislysis.whether_unobstructed ==0"></span>
279
+                         <span v-if="record.assessment_before_dislysis.whether_unobstructed ==1">是</span>
280
+                         <span v-if="record.assessment_before_dislysis.whether_unobstructed ==2">否</span>
281
+                      </div>
282
+                  </div> -->
283
+                  <!-- <div class="inline_block" style="margin-right:30px;">
284
+                    留置必要
285
+                      <div class="inline_block under_line" style="width:100px;text-align: left;">
286
+                        <span v-if="record.assessment_before_dislysis.lien_necessary ==0"></span>
287
+                         <span v-if="record.assessment_before_dislysis.lien_necessary ==1">是</span>
288
+                         <span v-if="record.assessment_before_dislysis.lien_necessary ==2">否</span>
289
+                         
290
+                      </div>
291
+                  </div> -->
292
+                <!-- </div> -->
252 293
                 <div class="row">
253 294
                     抗凝药物
254 295
                     <div class="inline_block under_line" style="width:92%;text-align: left;">
@@ -1010,6 +1051,16 @@ export default {
1010 1051
         )
1011 1052
       }
1012 1053
     },
1054
+    getTimeOne(val) {
1055
+        if(val < 0){
1056
+          return ""
1057
+        }
1058
+        if(val == ""){
1059
+        return ""
1060
+        }else {
1061
+        return uParseTime(val, '{y}-{m}-{d}')
1062
+        }
1063
+     },
1013 1064
     getNewAge(UUserCard) {
1014 1065
       if (UUserCard != null && UUserCard != '') {
1015 1066
         // 获取年龄

+ 3 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue 查看文件

@@ -72,7 +72,9 @@
72 72
                         <td width="10">第</td>
73 73
                         <td width="50">
74 74
                             <div class="under-line">
75
-                            {{ record.patient.total_dialysis + record.patient.user_sys_before_count }}
75
+                            <!-- {{ record.patient.total_dialysis + record.patient.user_sys_before_count }} -->
76
+
77
+                             {{ record.Count }}
76 78
                             </div>
77 79
                         </td>
78 80
                         <td width="80">次透析</td>

+ 12 - 9
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -383,7 +383,15 @@
383 383
           type="primary"
384 384
           >批量打印</el-button>
385 385
       </template>
386
-      
386
+      <template v-if="this.template_id == 65">
387
+        <el-button
388
+          size="small"
389
+          icon="el-icon-printer"
390
+          :disabled="selecting_schs.length == 0"
391
+          @click="batchPrintAction"
392
+          type="primary"
393
+          >批量打印</el-button>
394
+      </template>
387 395
 
388 396
     </div>
389 397
     <div class="app-container">
@@ -501,7 +509,6 @@
501 509
         style="width: 100%"
502 510
         v-loading="loading"
503 511
         border
504
-
505 512
         @current-change="clickCurrent"
506 513
         @selection-change="handleSelectionChange"
507 514
         highlight-current-row
@@ -691,12 +698,6 @@
691 698
         </el-table-column>
692 699
 
693 700
 
694
-
695
-
696
-
697
-
698
-
699
-
700 701
        <el-table-column label="超滤量(ml)" align="center"
701 702
              v-if="
702 703
               isShow('超滤量') &&
@@ -953,7 +954,6 @@
953 954
             </template>
954 955
         </el-table-column>
955 956
 
956
-
957 957
       <el-table-column label="置换率(L/h)" align="center"
958 958
           v-if="
959 959
           isShow('置换率') &&
@@ -2125,7 +2125,10 @@ export default {
2125 2125
         this.$router.push({ path: "/dialysis/print/batch/sixtyOne" });
2126 2126
       }else if (this.template_id == 62) {
2127 2127
         this.$router.push({ path: "/dialysis/print/batch/sixtyTwo" });
2128
+      }else if (this.template_id == 65) {//dialysis/print/batch/sixtyFive
2129
+        this.$router.push({ path: "/dialysis/print/batch/sixtyFive" });
2128 2130
       }
2131
+
2129 2132
     },
2130 2133
     batchPrintActionOne: function() {
2131 2134
       if (this.selecting_schs.length === 0) {

+ 5 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -606,6 +606,11 @@
606 606
           <span class="content">{{this.prescription.treatment_remark}}</span>
607 607
         </li>
608 608
 
609
+        <li v-if="isShow('加糖')">
610
+          <label>加糖: </label>
611
+          <span class="content">{{this.prescription.chaptalization}}</span>
612
+        </li>
613
+
609 614
        
610 615
       </ul>
611 616
     </div>

+ 14 - 5
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

@@ -131,6 +131,12 @@
131 131
       ref="treatmentSummary"
132 132
       :patient="patient"
133 133
       :treatment_summary="treatment_summary"
134
+      :prescription="prescription"
135
+      :predialysis_evaluation="predialysis_evaluation"
136
+      :doctor_advices="doctor_advices"
137
+      :dialysis_order="dialysis_order"
138
+      :monitors="monitor_records"
139
+      :assessment_after_dislysis="assessment_after_dislysis"
134 140
     ></treatment-summary-dialog>
135 141
 
136 142
     <doctor-advice-dialog
@@ -579,6 +585,9 @@ export default {
579 585
       default:()=>{
580 586
         return [];
581 587
       } 
588
+    },
589
+    record_date:{
590
+      type:String
582 591
     }
583 592
   },
584 593
   methods: {
@@ -668,7 +677,7 @@ export default {
668 677
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
669 678
     },
670 679
     showDoctorAdviceDialog: function() {
671
-      console.log("!!!!!!temp_schedual",this.temp_schedual)
680
+      
672 681
       this.$refs.doctor_advice.show(this.his_is_open,this.is_advice_open);
673 682
     },
674 683
     showComputerDialog: function() {
@@ -678,16 +687,16 @@ export default {
678 687
       this.$refs.finish_dialog.show(this.dialysis_order);
679 688
     },
680 689
     showPrescription: function() {
681
-      console.log("prescirpiton+++++++++++",this.prescription)
690
+     
682 691
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
683 692
     },
684 693
     showAccepts: function() {
685 694
       this.$refs.accepts.show(this.receiver_treatment_access);
686 695
     },
687 696
     showAssessmentBefore: function() {
688
-      console.log(this.last_predialysis_evaluation)
689
-
690
-      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
697
+     
698
+      console.log("透前评估进入23232323我我哦",this.record_date)
699
+      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment,this.record_date);
691 700
     },
692 701
     showDoubleCheck: function() {
693 702
 

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -193,8 +193,8 @@
193 193
         <li v-if="isShow('透析中进食')">
194 194
           <label>透析中进食: </label>
195 195
           <span class="content" >{{ this.record.dialysis_during ? this.record.dialysis_during : ""  }}</span>
196
-          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id != 36">{{ this.record.dialysis_during ? "ml" : "" }}</span>
197
-          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id == 36">{{ this.record.dialysis_during ? "g" : "" }}</span>
196
+          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 6">{{ this.record.dialysis_during ? "ml" : "" }}</span>
197
+          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 6">{{ this.record.dialysis_during ? "g" : "" }}</span>
198 198
         </li>
199 199
       </ul>
200 200
       <ul>

+ 7 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue 查看文件

@@ -421,6 +421,13 @@
421 421
           <span class="unit"></span>
422 422
         </li>
423 423
 
424
+        <li v-if="isShow('透前症状')">
425
+          <label>透前症状: </label>
426
+          <span class="content">{{this.record.befor_symptoms}}</span>
427
+          <span class="unit"></span>
428
+        </li>
429
+
430
+
424 431
       </ul>
425 432
     </div>
426 433
     <div class="note">

+ 10 - 10
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -29,7 +29,7 @@
29 29
           <el-col :span="8" v-if="isShow('实际超滤量')">
30 30
             <el-form-item
31 31
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
32
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || 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"  >
32
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410"  >
33 33
               <el-input v-model="form.actual_ultrafiltration"></el-input>
34 34
             </el-form-item>
35 35
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">
@@ -382,10 +382,10 @@
382 382
         </el-col>
383 383
 
384 384
         <el-col :span="8" v-if="isShow('透析中进食')">
385
-          <el-form-item label="透析中进食(ml): " v-if="template_id != 36" :prop="isName('透析中进食')" :rules="isCheckmust('透析中进食')">
385
+          <el-form-item label="透析中进食(ml): " v-if="template_id != 36 && template_id!=6" :prop="isName('透析中进食')" :rules="isCheckmust('透析中进食')">
386 386
             <el-input v-model="form.dialysis_during"></el-input>
387 387
           </el-form-item>
388
-          <el-form-item label="透析中进食(g): " v-if="template_id == 36" :prop="isName('透析中进食')" :rules="isCheckmust('透析中进食')" >
388
+          <el-form-item label="透析中进食(g): " v-if="template_id == 36 || template_id == 6" :prop="isName('透析中进食')" :rules="isCheckmust('透析中进食')" >
389 389
             <el-input v-model="form.dialysis_during"></el-input>
390 390
           </el-form-item>
391 391
         </el-col>
@@ -892,7 +892,7 @@ export default {
892 892
           this.form['internal_fistula_tremor_ac'] = ''
893 893
         }
894 894
         if (this.assessment_after_dislysis['patient_gose'] == 0) {
895
-          this.form['patient_gose'] = ''
895
+          this.form['patient_gose'] = 0
896 896
         }
897 897
         if (this.assessment_after_dislysis['weight_after'] == 0) {
898 898
           this.form['weight_after'] = ''
@@ -1118,7 +1118,7 @@ export default {
1118 1118
           data['puncture_point_oozing_blood'] = this.form.puncture_point_oozing_blood ? parseFloat(this.form.puncture_point_oozing_blood) : 0
1119 1119
           data['puncture_point_haematoma'] = this.form.puncture_point_haematoma ? parseFloat(this.form.puncture_point_haematoma) : 0
1120 1120
           data['internal_fistula_tremor_ac'] = this.form.internal_fistula_tremor_ac ? parseFloat(this.form.internal_fistula_tremor_ac) : 0
1121
-          data['patient_gose'] = this.form.patient_gose ? parseFloat(this.form.patient_gose) : ' '
1121
+          data['patient_gose'] = this.form.patient_gose ? parseFloat(this.form.patient_gose) : 0
1122 1122
           data['inpatient_department'] = this.form.inpatient_department
1123 1123
           data['observation_content'] = this.form.observation_content
1124 1124
           data['observation_content_other'] = this.form.observation_content_other
@@ -1167,6 +1167,7 @@ export default {
1167 1167
           data["after_urea"] = this.form.after_urea
1168 1168
           data["pip_coagulation"] = this.form.pip_coagulation
1169 1169
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1170
+          console.log("Data",data)
1170 1171
           console.log("Paramsquery",data)
1171 1172
 
1172 1173
           postAssessmentAfterDislysis(ParamsQuery, data)
@@ -1175,7 +1176,7 @@ export default {
1175 1176
               if (response.data.state == 0) {
1176 1177
                 this.$message.error(response.data.msg)
1177 1178
                 if(response.data.code == 600000008){
1178
-                  this.infoDialogVisible = false
1179
+                  this.infoDialogVisible = true
1179 1180
                 }
1180 1181
                 return false
1181 1182
               } else {
@@ -1196,8 +1197,7 @@ export default {
1196 1197
                 }
1197 1198
                 this.hide()
1198 1199
               }
1199
-            })
1200
-            .catch(v => {
1200
+            }).catch(v => {
1201 1201
               this.loading = false
1202 1202
             })
1203 1203
         }else {
@@ -1471,13 +1471,13 @@ export default {
1471 1471
           selected_date:this.selected_date,
1472 1472
           patient_id:this.$route.query.patient_id,
1473 1473
           record_date:this.$route.query.date,
1474
-          module:2,
1474
+          module:9,
1475 1475
           remark:this.remark,
1476 1476
         }
1477 1477
         saveInformation(params).then(response=>{
1478 1478
            if(response.data.state == 1){
1479 1479
              var information = response.data.data.information
1480
-             this.$message.success("审核成功!")
1480
+             this.$message.success("提交成功!")
1481 1481
              this.infoDialogVisible = false
1482 1482
            }
1483 1483
         })

+ 34 - 39
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -257,6 +257,7 @@
257 257
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
258 258
               <span class="el-dropdown-link">
259 259
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
260
+
260 261
                 <i class="el-icon-arrow-down el-icon--right"></i>
261 262
               </span>
262 263
               <el-dropdown-menu slot="dropdown">
@@ -290,7 +291,7 @@
290 291
           </template>
291 292
         </el-table-column>
292 293
         <el-table-column
293
-          v-if="template_id != 6 && org_id!=10223 && org_id!=10445"
294
+          v-if="template_id != 6 && org_id!=10223 && org_id!=10445 && org_id!=0"
294 295
           prop="checker"
295 296
           min-width="30px"
296 297
           align="center"
@@ -359,6 +360,7 @@
359 360
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
360 361
               <span class="el-dropdown-link">
361 362
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
363
+
362 364
                 <i class="el-icon-arrow-down el-icon--right"></i>
363 365
               </span>
364 366
               <el-dropdown-menu slot="dropdown">
@@ -606,40 +608,6 @@
606 608
       v-on:add-new-order="addNewOrder"
607 609
       :admin_users="admin_users"
608 610
     ></edit-group-advice>
609
-
610
-
611
-      <el-dialog
612
-          title="提示"
613
-          :visible.sync="infoDialogVisible"
614
-          width="30%">
615
-          <span>
616
-           <el-form>
617
-             <el-row>
618
-               <span>申请日期:</span>
619
-                <span>
620
-                    <el-date-picker
621
-                      type="datetime"
622
-                      format="yyyy-MM-dd HH:mm"
623
-                      value-format="yyyy-MM-dd HH:mm"
624
-                      placeholder="选择时间"
625
-                      v-model="selected_date"
626
-                  ></el-date-picker>
627
-                </span>
628
-             </el-row>
629
-             <el-row>
630
-               <span>备注:</span>
631
-                <span>
632
-                   <el-input v-model="remark" style="width:200px"></el-input>
633
-                </span>
634
-             </el-row>
635
-           </el-form>
636
-
637
-          </span>
638
-          <span slot="footer" class="dialog-footer">
639
-            <el-button @click="infoDialogVisible = false">取 消</el-button>
640
-            <el-button type="primary" @click="saveInformation">确 定</el-button>
641
-          </span>
642
-        </el-dialog>
643 611
   </div>
644 612
 </template>
645 613
 
@@ -660,7 +628,7 @@
660 628
     getPatientSchedule
661 629
   } from '@/api/advice'
662 630
   import { getDataConfig } from '@/utils/data'
663
-
631
+  import { saveInformation } from '@/api/dialysis'
664 632
   import request from '@/utils/request'
665 633
   import { getDialysisScheduleDetail } from '@/api/dialysis_record'
666 634
   import { getSelfMedicalList } from "@/api/drug/drug"
@@ -815,9 +783,7 @@
815 783
         src_type:"",
816 784
         org_id:0,
817 785
         schedulePatient:{},
818
-        infoDialogVisible:false,
819
-        selected_date:"",
820
-        remark:""
786
+        tempArrOne:[],
821 787
       }
822 788
     },
823 789
     watch: {
@@ -832,12 +798,40 @@
832 798
         this.form['dialysis_order_id'] = this.dialysis_order.id
833 799
       },
834 800
 
801
+      'doctor_advices': function() {
802
+
803
+        this.handleSpanTempArrOne();
804
+      },
805
+
835 806
     },
836 807
     methods: {
808
+      handleSpanTempArrOne() {
809
+          this.tempArrOne = [];
810
+
811
+          for (let i = 0; i < this.doctor_advices.length; i++) {
812
+            if (i === 0) {
813
+              this.tempArrOne.push(1);
814
+              this.pos = 0;
815
+            } else {
816
+              // 判断当前元素与上一个元素是否相同
817
+              if (
818
+                this.doctor_advices[i].groupno ===
819
+                this.doctor_advices[i - 1].groupno
820
+              ) {
821
+                this.tempArrOne[this.pos] += 1;
822
+                this.tempArrOne.push(0);
823
+              } else {
824
+                this.tempArrOne.push(1);
825
+                this.pos = i;
826
+              }
827
+            }
828
+          }
829
+      },
837 830
       handleSelectionChange(){
838 831
 
839 832
       },
840 833
 
834
+
841 835
       //调试
842 836
       lili(index,row){
843 837
         // console.log("==index==",index)
@@ -958,6 +952,7 @@
958 952
           return ''
959 953
         }
960 954
       },
955
+
961 956
       submitEditAdvice() {
962 957
         // console.log()
963 958
         console.log("保存22222222222222")

+ 89 - 86
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue 查看文件

@@ -1,5 +1,6 @@
1 1
 <template>
2
- <div>
2
+  <div>
3
+  <div>
3 4
   <el-dialog
4 5
     title="接诊评估"
5 6
     class="newDialog"
@@ -212,25 +213,30 @@
212 213
 
213 214
       </el-form-item>
214 215
 
215
-      <el-form-item
216
-        label-width="150px"
217
-        label="跌倒风险预防措施: "
218
-        :prop="isName('跌倒风险预防措施')"
219
-        :rules="isCheckmust('跌倒风险预防措施')"
220
-        v-if="isShow('跌倒风险预防措施')"
221
-      >
222
-        <!-- isFalldown prop="precautionTwo" @change="precautionchange" isCheckmust('跌倒风险预防措施') :prop="isName('跌倒风险预防措施')" :rules="isCheckmust('跌倒风险预防措施')"
223
-           [{required: true, message: '请选择跌倒风险预防措施', trigger: 'change'}]-->
224
-        <el-checkbox-group v-model="precautionTwo" @change="precautionchange">
225
-          <el-checkbox
226
-            v-for="item in precaution_arr"
227
-            :label="item.name"
228
-            :key="item.id"
229
-            >{{ item.name }}</el-checkbox
230
-          >
231
-        </el-checkbox-group>
232
-      </el-form-item>
233
-
216
+      <div style="position: relative;">
217
+        <span v-if="isrequired" style="color: red;position: absolute;top: 10px;">*</span>
218
+        <el-form-item
219
+          label-width="138px"
220
+          label="跌倒风险预防措施: "
221
+          prop="precautionTwo"
222
+          :rules="isCheckmust('跌倒风险预防措施')"
223
+          v-if="isShow('跌倒风险预防措施')"
224
+          style="display: inline-block;"
225
+        >
226
+          <!--v-if="isShow('跌倒风险预防措施')" isFalldown prop="precautionTwo" @change="precautionchange" isCheckmust('跌倒风险预防措施')
227
+            :prop="isName('跌倒风险预防措施')" :rules="isCheckmust('跌倒风险预防措施')"
228
+            [{required: true, message: '请选择跌倒风险预防措施', trigger: 'change'}]-->
229
+
230
+          <el-checkbox-group v-model="precautionTwo" @change="precautionchange" >
231
+            <el-checkbox
232
+              v-for="item in precaution_arr"
233
+              :label="item.name"
234
+              :key="item.id"
235
+              >{{ item.name }}</el-checkbox
236
+            >
237
+          </el-checkbox-group>
238
+        </el-form-item>
239
+      </div>
234 240
       <el-form-item
235 241
         label-width="200px"
236 242
         label="其他跌倒风险预防措施 : "
@@ -336,50 +342,47 @@
336 342
     </el-form>
337 343
     <div slot="footer" class="dialog-footer">
338 344
       <el-button @click="handleCancle">取 消</el-button>
339
-      <!--v-if="hasPermission" -->
340
-      <el-button type="primary"  @click="handleComfirm('receiveTreatmentAsses')"
345
+      <!-- v-if="hasPermission"-->
346
+      <el-button type="primary"   @click="handleComfirm('receiveTreatmentAsses')"
341 347
         >保 存</el-button
342 348
       >
343 349
     </div>
344 350
   </el-dialog>
345 351
 
346 352
 
347
- <el-dialog
348
-          title="提示"
349
-          :visible.sync="infoDialogVisible"
350
-          width="30%">
351
-          <span>
352
-           <el-form>
353
-             <el-row>
354
-               <span>申请日期:</span>
355
-                <span>
356
-                    <el-date-picker
357
-                      type="datetime"
358
-                      format="yyyy-MM-dd HH:mm"
359
-                      value-format="yyyy-MM-dd HH:mm"
360
-                      placeholder="选择时间"
361
-                      v-model="selected_date"
362
-                  ></el-date-picker>
363
-                </span>
364
-             </el-row>
365
-             <el-row>
366
-               <span>备注:</span>
367
-                <span>
368
-                   <el-input v-model="remark" style="width:200px"></el-input>
369
-                </span>
370
-             </el-row>
371
-           </el-form>
372
-
373
-          </span>
374
-          <span slot="footer" class="dialog-footer">
375
-            <el-button @click="infoDialogVisible = false">取 消</el-button>
376
-            <el-button type="primary" @click="saveInformation">确 定</el-button>
377
-          </span>
378
-        </el-dialog>
379
-
380
-  </div>
381
-
382
-
353
+  <el-dialog
354
+      title="提示"
355
+      :visible.sync="infoDialogVisible"
356
+      width="30%">
357
+      <span>
358
+        <el-form>
359
+          <el-row>
360
+            <span>申请日期:</span>
361
+            <span>
362
+                <el-date-picker
363
+                  type="datetime"
364
+                  format="yyyy-MM-dd HH:mm"
365
+                  value-format="yyyy-MM-dd HH:mm"
366
+                  placeholder="选择时间"
367
+                  v-model="selected_date"
368
+              ></el-date-picker>
369
+            </span>
370
+          </el-row>
371
+          <el-row>
372
+            <span>备注:</span>
373
+            <span>
374
+                <el-input v-model="remark" style="width:200px"></el-input>
375
+            </span>
376
+          </el-row>
377
+        </el-form>
378
+
379
+      </span>
380
+      <span slot="footer" class="dialog-footer">
381
+        <el-button @click="infoDialogVisible = false">取 消</el-button>
382
+        <el-button type="primary" @click="saveInformation">确 定</el-button>
383
+      </span>
384
+    </el-dialog>
385
+   </div>
383 386
 </template>
384 387
 
385 388
 <script>
@@ -429,12 +432,13 @@ export default {
429 432
         tumble: "",
430 433
         his_department: "",
431 434
         his_bed: "",
435
+        falldown:[],
432 436
       },
433 437
       precautionTwo: [],
438
+      arr:[],
434 439
       infoDialogVisible:false,
435 440
       selected_date:"",
436
-      remark:"",
437
-      arr:[],
441
+      remark:""
438 442
     };
439 443
   },
440 444
   methods: {
@@ -458,22 +462,21 @@ export default {
458 462
       }
459 463
       this.accepts = accepts;
460 464
       // console.log("accepts", accepts);
461
-      var arr = [];
462
-      if (this.accepts.precaution) {
463
-        var precaution = this.accepts.precaution.split(",");
464
-        // console.log("precaution", precaution);
465
-        // console.log("hhh", this.precaution_arr);
466
-        for (let i = 0; i < precaution.length; i++) {
467
-          for (let j = 0; j < this.precaution_arr.length; j++) {
468
-            if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
469
-              // console.log("aaaa");
470
-              arr.push(this.precaution_arr[j].name);
471
-            }
472
-          }
473
-        }
474
-        this.precautionTwo = arr;
475
-        // console.log("arr", arr);
476
-      }
465
+      // var arr = [];
466
+      // if (this.accepts.precaution) {
467
+      //   var precaution = this.accepts.precaution.split(",");
468
+      //   // console.log("precaution", precaution);
469
+      //   // console.log("hhh", this.precaution_arr);
470
+      //   for (let i = 0; i < precaution.length; i++) {
471
+      //     for (let j = 0; j < this.precaution_arr.length; j++) {
472
+      //       if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
473
+      //         // console.log("aaaa");
474
+      //         this.arr.push(this.precaution_arr[j].name);
475
+      //       }
476
+      //     }
477
+      //   }
478
+      //   this.precautionTwo = this.arr;
479
+      // }
477 480
 
478 481
       this.getPermission();
479 482
       for (var index in this.receiveTreatmentAsses) {
@@ -507,19 +510,16 @@ export default {
507 510
 
508 511
     handleComfirm: function (formName) {
509 512
       // var arr = [];
510
-        if(this.precaution_arr!=null && this.precaution_arr.length >0){
511
-        for (let i = 0; i < this.precaution_arr.length; i++) {
512
-          for (let j = 0; j < this.precautionTwo.length; j++) {
513
-            if (this.precaution_arr[i].name == this.precautionTwo[j]) {
514
-              this.arr.push(this.precaution_arr[i].id);
515
-            }
513
+      for (let i = 0; i < this.precaution_arr.length; i++) {
514
+        for (let j = 0; j < this.precautionTwo.length; j++) {
515
+          if (this.precaution_arr[i].name == this.precautionTwo[j]) {
516
+            this.arr.push(this.precaution_arr[i].id);
516 517
           }
517 518
         }
518
-        var obj = this.arr.join(",");
519 519
       }
520
-      
520
+      // this.precautionchange()
521
+      var obj = this.arr.join(",");
521 522
       this.receiveTreatmentAsses.precaution = obj;
522
-
523 523
       let ParamsQuery = this.receiveTreatmentAsses;
524 524
 
525 525
       console.log("ParamsQuery", ParamsQuery);
@@ -542,6 +542,9 @@ export default {
542 542
           postAccepts(ParamsQuery).then((response) => {
543 543
             if (response.data.state == 0) {
544 544
               this.$message.error(response.data.msg);
545
+               if(response.data.code == 600000008){
546
+                 this.infoDialogVisible = true
547
+               }
545 548
               return false;
546 549
             } else {
547 550
               this.$notify({
@@ -694,7 +697,7 @@ export default {
694 697
         saveInformation(params).then(response=>{
695 698
            if(response.data.state == 1){
696 699
              var information = response.data.data.information
697
-             this.$message.success("审核成功!")
700
+             this.$message.success("提交成功!")
698 701
              this.infoDialogVisible = false
699 702
            }
700 703
         })

+ 59 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

@@ -556,6 +556,40 @@
556 556
         </el-button>
557 557
       </div>
558 558
     </el-dialog>
559
+
560
+
561
+    <el-dialog
562
+      title="提示"
563
+      :visible.sync="infoDialogVisible"
564
+      width="30%">
565
+      <span>
566
+        <el-form>
567
+          <el-row>
568
+            <span>申请日期:</span>
569
+            <span>
570
+                <el-date-picker
571
+                  type="datetime"
572
+                  format="yyyy-MM-dd HH:mm"
573
+                  value-format="yyyy-MM-dd HH:mm"
574
+                  placeholder="选择时间"
575
+                  v-model="selected_date"
576
+              ></el-date-picker>
577
+            </span>
578
+          </el-row>
579
+          <el-row>
580
+            <span>备注:</span>
581
+            <span>
582
+                <el-input v-model="remark" style="width:200px"></el-input>
583
+            </span>
584
+          </el-row>
585
+        </el-form>
586
+      
587
+      </span>
588
+      <span slot="footer" class="dialog-footer">
589
+        <el-button @click="infoDialogVisible = false">取 消</el-button>
590
+        <el-button type="primary" @click="saveInformation">确 定</el-button>
591
+      </span>
592
+    </el-dialog>
559 593
   </div>
560 594
 </template>
561 595
 
@@ -570,6 +604,7 @@ import {
570 604
   getDoctorAdviceList,
571 605
   StopDoctorAdvice
572 606
 } from "@/api/advice";
607
+import { saveInformation } from "@/api/dialysis";
573 608
 import { getDataConfig } from '@/utils/data'
574 609
 import {getSelfMedicalList,getDrugDescByDrugName } from "@/api/drug/drug"
575 610
 import { duration } from 'moment';
@@ -655,6 +690,9 @@ export default {
655 690
       src_type:"",
656 691
       private_drug_config:{},
657 692
       units:[],
693
+      infoDialogVisible:false,
694
+      selected_date:"",
695
+      remark:""
658 696
     };
659 697
   },
660 698
   props: {
@@ -770,6 +808,9 @@ export default {
770 808
             response => {
771 809
               if (response.data.state == 0) {
772 810
                 this.$message.error(response.data.msg);
811
+                if(response.data.code == 600000008){
812
+                 this.infoDialogVisible = true
813
+                }
773 814
                 return false;
774 815
               } else {
775 816
                 this.$notify({
@@ -1559,7 +1600,7 @@ export default {
1559 1600
         }
1560 1601
       }
1561 1602
       
1562
-      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340){
1603
+      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10517){
1563 1604
          var date = new Date()
1564 1605
           var year = date.getFullYear()
1565 1606
           var month = date.getMonth() + 1
@@ -1905,6 +1946,23 @@ export default {
1905 1946
            }
1906 1947
          }
1907 1948
          return name
1949
+      },
1950
+    
1951
+    saveInformation(){
1952
+        var params = {
1953
+          selected_date:this.selected_date,
1954
+          patient_id:this.$route.query.patient_id,
1955
+          record_date:this.$route.query.date,
1956
+          module:4,
1957
+          remark:this.remark,
1958
+        }
1959
+        saveInformation(params).then(response=>{
1960
+           if(response.data.state == 1){
1961
+             var information = response.data.data.information
1962
+             this.$message.success("提交成功!")
1963
+             this.infoDialogVisible = false
1964
+           }
1965
+        })
1908 1966
       }
1909 1967
   },
1910 1968
   watch: {

+ 206 - 16
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -416,6 +416,8 @@
416 416
             </el-form-item>
417 417
           </el-col>
418 418
 
419
+        
420
+
419 421
           <el-col :span="8">
420 422
             <el-form-item label="前次透析后症状:" :prop="isName('前次透析后症状')"
421 423
               :rules="isCheckmust('前次透析后症状')" v-if="isShow('前次透析后症状')">
@@ -624,19 +626,105 @@
624 626
               <el-input v-model="body_weight_before" readonly></el-input>
625 627
             </el-form-item>
626 628
           </el-col>
629
+
630
+          <el-col :span="8">
631
+          
632
+            <el-form-item label="导管评估项目: " :prop="isName('导管评估项目')"
633
+              :rules="isCheckmust('导管评估项目')" v-if="isShow('导管评估项目')">
634
+              <el-input v-model="assessmentBeforeDislysis.catheter_evaluation_program" readonly
635
+                        @focus="showInnerDialog('22')"></el-input>
636
+            </el-form-item>
637
+          
638
+          </el-col>
639
+
640
+          <el-col :span="8">
641
+            <el-form-item label="置管部位皮肤:" :prop="isName('置管部位皮肤')"
642
+              :rules="isCheckmust('置管部位皮肤')" v-if="isShow('置管部位皮肤')">
643
+           
644
+              <el-input v-model="assessmentBeforeDislysis.skin_site_catheterization" readonly
645
+                        @focus="showInnerDialog('23')"></el-input>
646
+            </el-form-item>
647
+          </el-col>
627 648
          
649
+          <el-col :span="8">
650
+            <el-form-item label="是否通畅:" :prop="isName('是否通畅')"
651
+              :rules="isCheckmust('是否通畅')" v-if="isShow('是否通畅')">
652
+              <el-select v-model="assessmentBeforeDislysis.whether_unobstructed" @change="changeThrombus">
653
+                <el-option :key="0" label="请选择" :value="0"></el-option>
654
+                <el-option label="是" value="1"></el-option>
655
+                <el-option label="否" value="2"></el-option>
656
+              </el-select>
657
+            </el-form-item>
658
+          </el-col>
628 659
         
629
- 
630
-         
631
-          <el-col :span="24">
632
-            <el-form-item label="备注: " :prop="isName('备注')"
633
-              :rules="isCheckmust('备注')">
634
-              <el-input type="textarea" v-model="assessmentBeforeDislysis.remark" :rows="5"></el-input>
660
+          <el-col :span="8">
661
+            <el-form-item label="留置必要:" :prop="isName('留置必要')"
662
+              :rules="isCheckmust('留置必要')" v-if="isShow('留置必要')">
663
+              <el-select v-model="assessmentBeforeDislysis.lien_necessary" @change="changeThrombus">
664
+                <el-option :key="0" label="请选择" :value="0"></el-option>
665
+                <el-option label="是" value="1"></el-option>
666
+                <el-option label="否" value="2"></el-option>
667
+              </el-select>
668
+            </el-form-item>
669
+          </el-col>
670
+
671
+          <el-col :span="8">
672
+            <el-form-item label="通路形成时间:" :prop="isName('通路形成时间')"
673
+              :rules="isCheckmust('通路形成时间')" v-if="isShow('通路形成时间')">
674
+              <el-date-picker
675
+              v-model="assessmentBeforeDislysis.pathway_formation_time"
676
+              type="date"
677
+              style="width:200px"
678
+              format="yyyy-MM-dd"
679
+              value-format="yyyy-MM-dd"
680
+              placeholder="通路形成时间">
681
+              </el-date-picker>
635 682
             </el-form-item>
636 683
           </el-col>
637 684
          
638
-      
685
+        
639 686
         </el-row>
687
+        <el-row :gutter="20">
688
+          <el-col :span="24" v-if="isShow('透前症状')">
689
+              <el-form-item
690
+                label="透前症状:"
691
+                :prop="isName('透前症状')"
692
+                :rules="isCheckmust('透前症状')"
693
+              >
694
+                <el-select @change="dialysisSummarySelectChange" v-model="value2">
695
+                  <el-option
696
+                    v-for="(item, index) in summary"
697
+                    :label="item.text"
698
+                    :value="item.value"
699
+                    :key="index"
700
+                  ></el-option>
701
+                </el-select>
702
+              </el-form-item>
703
+            </el-col>
704
+            <el-col v-if="isShow('透前症状')">
705
+              <el-form-item
706
+                :prop="isName('透前症状')"
707
+                :rules="isCheckmust('透前症状')"
708
+              >
709
+                <el-input
710
+                  type="textarea"
711
+                  v-model="assessmentBeforeDislysis.befor_symptoms"
712
+                  :rows="4"
713
+                ></el-input>
714
+              </el-form-item>
715
+            </el-col>
716
+          
717
+              
718
+            
719
+              <el-col :span="24">
720
+                <el-form-item label="备注: " :prop="isName('备注')"
721
+                  :rules="isCheckmust('备注')">
722
+                  <el-input type="textarea" v-model="assessmentBeforeDislysis.remark" :rows="5"></el-input>
723
+                </el-form-item>
724
+              </el-col>
725
+            
726
+          
727
+            </el-row>
640 728
 
641 729
 
642 730
       </el-form>
@@ -748,7 +836,7 @@
748 836
   import { parseTime } from '@/utils'
749 837
 
750 838
   import request from '@/utils/request'
751
-
839
+  const moment = require('moment')
752 840
   export default {
753 841
     components: {
754 842
       multiSelectBox
@@ -866,7 +954,12 @@
866 954
           age:"",
867 955
           his_department:"",
868 956
           his_bed:"",
869
-          point_puncture:""
957
+          point_puncture:"",
958
+          catheter_evaluation_program:"",
959
+          skin_site_catheterization:"",
960
+          pathway_formation_time:"",
961
+          lien_necessary:"",
962
+          befor_symptoms:"",
870 963
         },
871 964
 
872 965
         InnerDialogProps: {
@@ -887,8 +980,11 @@
887 980
         point_punctures:[],
888 981
         infoDialogVisible:false,
889 982
         selected_date:"",
890
-        remark:""
891
-
983
+        remark:"",
984
+        catheter_evaluation_program_list:[],
985
+        skin_site_catheterization_list:[],
986
+        summary:[],
987
+        value2:""
892 988
       }
893 989
     },
894 990
     props: {
@@ -994,13 +1090,18 @@
994 1090
         return false
995 1091
       },
996 1092
 
997
-      show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
1093
+      show(assessment, lastDryWeightDislysis,last_predialysis_evaluation,lastAssessment,record_date) {
998 1094
         console.log("dryWeightList",this.dryWeightList)
999 1095
         console.log("doclist",this.docList)
1000 1096
         let filedList = store.getters.xt_user.fileds;
1001 1097
         console.log(filedList,'filedList')
1002 1098
         this.lastPredialysisEvaluation = last_predialysis_evaluation
1003 1099
         console.log("获取上次数据",this.lastPredialysisEvaluation, this.$store.getters.xt_user.org.id )
1100
+
1101
+        if(record_date!=null && record_date!=undefined){
1102
+           this.record_date = record_date
1103
+        }
1104
+        console.log("日期23333333333我",this.record_date)
1004 1105
         if(this.lastPredialysisEvaluation != null) {
1005 1106
         // if(this.lastPredialysisEvaluation.remark == "" && this.$store.getters.xt_user.org.id == 10307){
1006 1107
         //     console.log("2o2o3232o23o2o3o23")
@@ -1042,6 +1143,24 @@
1042 1143
          
1043 1144
         }
1044 1145
 
1146
+        this.assessmentBeforeDislysis.pathway_formation_time = moment(new Date()).format('YYYY-MM-DD')
1147
+        console.log(" this.assessmentBeforeDislysis.pathway_formation_time", moment(new Date()).format('YYYY-MM-DD'))
1148
+        console.log("hhahhahahah",assessment)
1149
+        if(assessment!=null){
1150
+          this.assessmentBeforeDislysis.pathway_formation_time =  this.getTimeOne(assessment.pathway_formation_time)
1151
+          if(assessment.whether_unobstructed >0){
1152
+            this.assessmentBeforeDislysis.whether_unobstructed = assessment.whether_unobstructed.toString()
1153
+          } 
1154
+          if(assessment.lien_necessary>0){
1155
+            this.assessmentBeforeDislysis.lien_necessary = assessment.lien_necessary.toString()
1156
+          }
1157
+        }
1158
+      
1159
+
1160
+        
1161
+         
1162
+        
1163
+
1045 1164
 
1046 1165
         this.assessment = assessment
1047 1166
         this.getPermission()
@@ -1313,6 +1432,26 @@
1313 1432
             this.InnerDialogProps.isShowTextArea = false
1314 1433
 
1315 1434
             break
1435
+
1436
+            case '22': // 导管评估项目
1437
+
1438
+              this.InnerDialogProps.values = this.catheter_evaluation_program_list
1439
+              this.InnerDialogProps.titles = '导管评估项目'
1440
+              this.InnerDialogProps.type = 'catheter_evaluation_program'
1441
+              this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_evaluation_program
1442
+              this.InnerDialogProps.isShowTextArea = false
1443
+
1444
+            break
1445
+
1446
+            case '23': // 置管部位皮肤
1447
+
1448
+              this.InnerDialogProps.values = this.skin_site_catheterization_list
1449
+              this.InnerDialogProps.titles = '置管部位皮肤'
1450
+              this.InnerDialogProps.type = 'skin_site_catheterization'
1451
+              this.InnerDialogProps.selected = this.assessmentBeforeDislysis.skin_site_catheterization
1452
+              this.InnerDialogProps.isShowTextArea = false
1453
+
1454
+            break
1316 1455
          
1317 1456
         }
1318 1457
       },
@@ -1386,12 +1525,20 @@
1386 1525
            case 'point_puncture':
1387 1526
             this.assessmentBeforeDislysis.point_puncture = val.value.join(',')
1388 1527
             break
1528
+           case 'catheter_evaluation_program':
1529
+            this.assessmentBeforeDislysis.catheter_evaluation_program = val.value.join(',')
1530
+            break
1531
+          case 'skin_site_catheterization':
1532
+            this.assessmentBeforeDislysis.skin_site_catheterization = val.value.join(',')
1533
+            break
1534
+            
1389 1535
         }
1390 1536
       },
1391 1537
       innerDialogCancle: function() {
1392 1538
         this.InnerDialogProps.visibility = false
1393 1539
       }, 
1394 1540
       handleComfirm(formName) {
1541
+        console.log("提交日期",this.record_date)
1395 1542
         var arr = this.assessmentBeforeDislysis
1396 1543
         for (let i = 0; i < this.machineType.length; i++) {
1397 1544
           if (arr.machine_type == this.machineType[i].id) {
@@ -1420,6 +1567,9 @@
1420 1567
           }
1421 1568
         }
1422 1569
          console.log("params",ParamsQuery)
1570
+
1571
+         ParamsQuery.whether_unobstructed = parseInt(ParamsQuery.whether_unobstructed)
1572
+         ParamsQuery.lien_necessary =  parseInt(ParamsQuery.lien_necessary)
1423 1573
          
1424 1574
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
1425 1575
           
@@ -1569,17 +1719,47 @@
1569 1719
           selected_date:this.selected_date,
1570 1720
           patient_id:this.$route.query.patient_id,
1571 1721
           record_date:this.$route.query.date,
1572
-          module:2,
1722
+          module:3,
1573 1723
           remark:this.remark,
1574 1724
         }
1575 1725
         saveInformation(params).then(response=>{
1576 1726
            if(response.data.state == 1){
1577 1727
              var information = response.data.data.information
1578
-             this.$message.success("审核成功!")
1728
+             this.$message.success("提交成功!")
1579 1729
              this.infoDialogVisible = false
1580 1730
            }
1581 1731
         })
1732
+      },
1733
+      getTimeOne(val) {
1734
+        if(val == ""){
1735
+        return ""
1736
+        }else {
1737
+        return uParseTime(val, '{y}-{m}-{d}')
1738
+        }
1739
+     },
1740
+     dialysisSummarySelectChange: function (values) {
1741
+   
1742
+      if (this.assessmentBeforeDislysis.befor_symptoms == "") {
1743
+        this.assessmentBeforeDislysis.befor_symptoms = values;
1744
+      } else {
1745
+       
1746
+        if (this.assessmentBeforeDislysis.befor_symptoms.indexOf(values) == -1) {
1747
+          if (
1748
+            this.assessmentBeforeDislysis.befor_symptoms
1749
+              .charAt(this.assessmentBeforeDislysis.befor_symptoms.length - 1)
1750
+              .indexOf("。") == -1
1751
+          ) {
1752
+            this.assessmentBeforeDislysis.befor_symptoms =
1753
+            this.assessmentBeforeDislysis.befor_symptoms+ "," + values;
1754
+          } else {
1755
+            this.assessmentBeforeDislysis.befor_symptoms =
1756
+            this.assessmentBeforeDislysis.befor_symptoms+ "," + values;
1757
+            this.assessmentBeforeDislysis.befor_symptoms =
1758
+            this.assessmentBeforeDislysis.befor_symptoms + values;
1759
+          }
1760
+        }
1582 1761
       }
1762
+    },
1583 1763
       
1584 1764
     },
1585 1765
     created() {
@@ -1615,10 +1795,19 @@
1615 1795
       console.log("针眼",this.pinholings)
1616 1796
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1617 1797
       console.log("导管维护",this.catheter_maintenancelist)
1798
+
1799
+      this.catheter_evaluation_program_list = getDataConfig('hemodialysis','catheter_evaluation_program')
1800
+
1801
+      this.skin_site_catheterization_list = getDataConfig('hemodialysis','skin_site_catheterization')
1618 1802
        
1619 1803
       console.log("predialysis_evaluation2332323323222323",this.predialysis_evaluation)
1620 1804
 
1621 1805
       this.point_punctures = getDataConfig('hemodialysis','point_puncture')
1806
+
1807
+      this.summary = getDataConfig("befor_symptoms", "befor_symptoms");
1808
+      
1809
+      console.log("hhh32h323h23h23h23h23h23h",getDataConfig("befor_symptoms", "befor_symptoms"))
1810
+      
1622 1811
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1623 1812
 
1624 1813
       // if(this.predialysis_evaluation.id == 0){
@@ -1639,12 +1828,12 @@
1639 1828
 
1640 1829
       },
1641 1830
       'predialysis_evaluation.id': function() {
1642
-         
1831
+        console.log("hhahahahhaah",this.predialysis_evaluation)
1643 1832
        if(this.predialysis_evaluation.thromubus_type == 1){
1644 1833
              this.predialysis_evaluation.thromubus_type = this.predialysis_evaluation.thromubus_type.toString()
1645 1834
              this.thrombuShow = true
1646 1835
         }
1647
-
1836
+       
1648 1837
         if (this.predialysis_evaluation.id > 0) {
1649 1838
           for (var index in this.assessmentBeforeDislysis) {
1650 1839
             this.assessmentBeforeDislysis[index] = this.predialysis_evaluation[index]
@@ -1693,6 +1882,7 @@
1693 1882
           if (this.predialysis_evaluation['pulse_frequency'] == 0) {
1694 1883
             this.assessmentBeforeDislysis['pulse_frequency'] = ''
1695 1884
           }
1885
+          
1696 1886
         }
1697 1887
       },
1698 1888
       'assessmentBeforeDislysis.weight_before': {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

@@ -1146,13 +1146,13 @@ export default {
1146 1146
           selected_date:this.selected_date,
1147 1147
           patient_id:this.$route.query.patient_id,
1148 1148
           record_date:this.$route.query.date,
1149
-          module:2,
1149
+          module:6,
1150 1150
           remark:this.remark,
1151 1151
         }
1152 1152
         saveInformation(params).then(response=>{
1153 1153
            if(response.data.state == 1){
1154 1154
              var information = response.data.data.information
1155
-             this.$message.success("审核成功!")
1155
+             this.$message.success("提交成功!")
1156 1156
              this.infoDialogVisible = false
1157 1157
            }
1158 1158
         })

+ 98 - 59
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -10,13 +10,16 @@
10 10
         >
11 11
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
12 12
             <span style="position: absolute;left: 22%;top: 3%">
13
-              透前体重: --kg
13
+              透前体重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
14 14
             </span>
15 15
             <span style="position: absolute;left: 35%;top: 3%">
16
-              干体重:--kg
16
+              干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
17 17
             </span>
18
+            <!-- <span style="position: absolute;left: 48%;top: 3%">
19
+              衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
20
+            </span> -->
18 21
             <span style="position: absolute;left: 48%;top: 3%">
19
-              衣物重:--kg
22
+              上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
20 23
             </span>
21 24
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
22 25
             <el-form
@@ -137,6 +140,14 @@
137 140
                         </el-form-item>
138 141
                     </el-col>
139 142
 
143
+                    <el-col :span="8"
144
+                            v-if="isShows('加糖')">
145
+                        <el-form-item label="加糖:" prop="prescription_water" :rules="isCheckmust('加糖')">
146
+                            <el-input v-model="dialysisPrescription.chaptalization"
147
+                            ></el-input>
148
+                        </el-form-item>
149
+                    </el-col>
150
+
140 151
                    <el-col :span="8" v-if="isShows('带水上机')">
141 152
                         <el-form-item label="带水上机:" prop="water_machine" :rules="isCheckmust('带水上机')">
142 153
                            <el-select v-model="dialysisPrescription.water_machine">
@@ -1661,6 +1672,7 @@
1661 1672
           sodium_bicarbonate_flow:"",
1662 1673
           prescription_water:"",
1663 1674
           dialysis_strainer:"",
1675
+          chaptalization:"",
1664 1676
         },
1665 1677
 
1666 1678
         anticoagulant: {
@@ -1709,7 +1721,9 @@
1709 1721
         zongliang:"",
1710 1722
         educationList:[],
1711 1723
         value:"",
1712
-        infoDialogVisible:false
1724
+        infoDialogVisible:false,
1725
+        selected_date:"",
1726
+        remark:"",
1713 1727
       }
1714 1728
 
1715 1729
     },
@@ -2480,7 +2494,7 @@ mu
2480 2494
           if (minites < 10) {
2481 2495
             minites = '0' + minites
2482 2496
           }
2483
-          if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ) {
2497
+          if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ||  this.$store.getters.xt_user.org.id == 9970) {
2484 2498
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2485 2499
           }else if(this.$store.getters.xt_user.org.id == 10234 || this.$store.getters.xt_user.org.id == 9990 || this.$store.getters.xt_user.org.id==10432){
2486 2500
             if (schedual.schedule_type == 1) {
@@ -2538,6 +2552,14 @@ mu
2538 2552
             } else if (schedual.schedule_type == 3) {
2539 2553
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2540 2554
             }
2555
+           }else if(this.$store.getters.xt_user.org.id == 10517){
2556
+              if (schedual.schedule_type == 1) {
2557
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2558
+            } else if (schedual.schedule_type == 2) {
2559
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2560
+            } else if (schedual.schedule_type == 3) {
2561
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2562
+            }
2541 2563
            } else {
2542 2564
             if (schedual.schedule_type == 1) {
2543 2565
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
@@ -2756,24 +2778,24 @@ mu
2756 2778
               this.dialysisPrescription.anticoagulant_shouji = '0'
2757 2779
               this.dialysisPrescription.anticoagulant_zongliang = '0'
2758 2780
             }
2759
-            if (this.$store.getters.xt_user.template_info.template_id == 6) {
2760
-              if (this.dialysisPrescription.mode_id == 2) {
2761
-                if (
2762
-                  this.dialysisPrescription.displace_liqui_part == 0 ||
2763
-                  this.dialysisPrescription.displace_liqui_part == -2 ||
2764
-                  this.dialysisPrescription.displace_liqui_value == 0 ||
2765
-                  this.dialysisPrescription.displace_liqui_value == ''
2766
-                  || this.dialysisPrescription.replacement_total == 0 ||
2767
-                  this.dialysisPrescription.replacement_total == '' ||
2768
-                  this.dialysisPrescription.displace_speed == 0 ||
2769
-                  this.dialysisPrescription.displace_speed == ''
2770
-                ) {
2771
-                  this.$message.error('HDF模式下置换液和置换液总量不能为空!')
2772
-                  return
2773
-                }
2774
-              }
2775
-
2776
-            }
2781
+            // if (this.$store.getters.xt_user.template_info.template_id == 6) {
2782
+            //   if (this.dialysisPrescription.mode_id == 2) {
2783
+            //     if (
2784
+            //       this.dialysisPrescription.displace_liqui_part == 0 ||
2785
+            //       this.dialysisPrescription.displace_liqui_part == -2 ||
2786
+            //       this.dialysisPrescription.displace_liqui_value == 0 ||
2787
+            //       this.dialysisPrescription.displace_liqui_value == ''
2788
+            //       || this.dialysisPrescription.replacement_total == 0 ||
2789
+            //       this.dialysisPrescription.replacement_total == '' ||
2790
+            //       this.dialysisPrescription.displace_speed == 0 ||
2791
+            //       this.dialysisPrescription.displace_speed == ''
2792
+            //     ) {
2793
+            //       this.$message.error('HDF模式下置换液和置换液总量不能为空!')
2794
+            //       return
2795
+            //     }
2796
+            //   }
2797
+
2798
+            // }
2777 2799
             if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2778 2800
               this.dialysisPrescription.displace_liqui_part = 0
2779 2801
               this.dialysisPrescription.displace_liqui_value = 0
@@ -3298,35 +3320,35 @@ mu
3298 3320
                 this.dialysisPrescription.anticoagulant_shouji = '0'
3299 3321
                 this.dialysisPrescription.anticoagulant_zongliang = '0'
3300 3322
               }
3301
-              if (this.$store.getters.xt_user.template_info.template_id == 6) {
3302
-                if (this.dialysisPrescription.mode_id == 2) {
3303
-                  if (
3304
-                    this.dialysisPrescription.displace_liqui_part == 0 ||
3305
-                    this.dialysisPrescription.displace_liqui_part == -2 ||
3306
-                    this.dialysisPrescription.displace_liqui_value == 0 ||
3307
-                    this.dialysisPrescription.displace_liqui_value == ''
3308
-                    || this.dialysisPrescription.replacement_total == 0 ||
3309
-                    this.dialysisPrescription.replacement_total == ''||
3310
-                    this.dialysisPrescription.displace_speed == 0 ||
3311
-                    this.dialysisPrescription.displace_speed == ''
3312
-                  ) {
3313
-                    this.$message.error('HDF模式下置换液和置换液总量不能为空!')
3314
-                    return
3315
-                  }
3316
-                }
3317
-                if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
3318
-                  this.dialysisPrescription.displace_liqui_part == 0
3319
-                  this.dialysisPrescription.displace_liqui_value == 0
3320
-                  this.dialysisPrescription.replacement_total == 0
3321
-                  this.dialysisPrescription.displace_speed == 0
3322
-                  console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
3323
-                  console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
3324
-                  // this.dialysisPrescription.displace_liqui_part = 0
3325
-                  // this.dialysisPrescription.displace_liqui_value = 0
3326
-                  // this.dialysisPrescription.replacement_total = 0
3327
-                  // this.dialysisPrescription.displace_speed = 0
3328
-                }
3329
-              }
3323
+              // if (this.$store.getters.xt_user.template_info.template_id == 6) {
3324
+              //   if (this.dialysisPrescription.mode_id == 2) {
3325
+              //     if (
3326
+              //       this.dialysisPrescription.displace_liqui_part == 0 ||
3327
+              //       this.dialysisPrescription.displace_liqui_part == -2 ||
3328
+              //       this.dialysisPrescription.displace_liqui_value == 0 ||
3329
+              //       this.dialysisPrescription.displace_liqui_value == ''
3330
+              //       || this.dialysisPrescription.replacement_total == 0 ||
3331
+              //       this.dialysisPrescription.replacement_total == ''||
3332
+              //       this.dialysisPrescription.displace_speed == 0 ||
3333
+              //       this.dialysisPrescription.displace_speed == ''
3334
+              //     ) {
3335
+              //       this.$message.error('HDF模式下置换液和置换液总量不能为空!')
3336
+              //       return
3337
+              //     }
3338
+              //   }
3339
+              //   if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
3340
+              //     this.dialysisPrescription.displace_liqui_part == 0
3341
+              //     this.dialysisPrescription.displace_liqui_value == 0
3342
+              //     this.dialysisPrescription.replacement_total == 0
3343
+              //     this.dialysisPrescription.displace_speed == 0
3344
+              //     console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
3345
+              //     console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
3346
+              //     // this.dialysisPrescription.displace_liqui_part = 0
3347
+              //     // this.dialysisPrescription.displace_liqui_value = 0
3348
+              //     // this.dialysisPrescription.replacement_total = 0
3349
+              //     // this.dialysisPrescription.displace_speed = 0
3350
+              //   }
3351
+              // }
3330 3352
 
3331 3353
           this.is_pre = 2
3332 3354
 
@@ -3711,13 +3733,13 @@ mu
3711 3733
                             advice_doctor: this.waitUploadAdvices[0].advice_doctor,
3712 3734
                             advice_type: this.waitUploadAdvices[0].advice_type,
3713 3735
                             parent_id: this.patient_id,
3714
-                            // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
3715
-                            start_time:
3716
-                              uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
3717
-                              ' ' +
3718
-                              hour +
3719
-                              ':' +
3720
-                              minute,
3736
+                            start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
3737
+                            // start_time:
3738
+                            //   uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
3739
+                            //   ' ' +
3740
+                            //   hour +
3741
+                            //   ':' +
3742
+                            //   minute,
3721 3743
 
3722 3744
                             remark: ''
3723 3745
                           }
@@ -4265,6 +4287,23 @@ mu
4265 4287
       }
4266 4288
     }
4267 4289
     },
4290
+
4291
+    saveInformation(){
4292
+      var params = {
4293
+        selected_date:this.selected_date,
4294
+        patient_id:this.$route.query.patient_id,
4295
+        record_date:this.$route.query.date,
4296
+        module:1,
4297
+        remark:this.remark,
4298
+      }
4299
+      saveInformation(params).then(response=>{
4300
+          if(response.data.state == 1){
4301
+            var information = response.data.data.information
4302
+            this.$message.success("提交成功!")
4303
+            this.infoDialogVisible = false
4304
+          }
4305
+      })
4306
+     }
4268 4307
   },
4269 4308
 
4270 4309
     watch: {

+ 17 - 16
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

@@ -1299,6 +1299,22 @@ export default {
1299 1299
         }
1300 1300
       });
1301 1301
     },
1302
+    saveInformation(){
1303
+        var params = {
1304
+          selected_date:this.selected_date,
1305
+          patient_id:this.$route.query.patient_id,
1306
+          record_date:this.$route.query.date,
1307
+          module:5,
1308
+          remark:this.remark,
1309
+        }
1310
+        saveInformation(params).then(response=>{
1311
+           if(response.data.state == 1){
1312
+             var information = response.data.data.information
1313
+             this.$message.success("提交成功!")
1314
+             this.infoDialogVisible = false
1315
+           }
1316
+        })
1317
+      }
1302 1318
   },
1303 1319
 
1304 1320
   props: {
@@ -1889,22 +1905,7 @@ export default {
1889 1905
       }
1890 1906
     },
1891 1907
 
1892
-   saveInformation(){
1893
-        var params = {
1894
-          selected_date:this.selected_date,
1895
-          patient_id:this.$route.query.patient_id,
1896
-          record_date:this.$route.query.date,
1897
-          module:5,
1898
-          remark:this.remark,
1899
-        }
1900
-        saveInformation(params).then(response=>{
1901
-           if(response.data.state == 1){
1902
-             var information = response.data.data.information
1903
-             this.$message.success("审核成功!")
1904
-             this.infoDialogVisible = false
1905
-           }
1906
-        })
1907
-      }
1908
+  
1908 1909
   },
1909 1910
   created() {
1910 1911
     var date = this.$route.query && this.$route.query.date;

+ 2 - 2
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

@@ -478,7 +478,7 @@
478 478
 
479 479
               } else {
480 480
                 this.$message.error(resp.msg)
481
-               if(response.data.code == 600000008){
481
+               if(response.code == 600000008){
482 482
                   this.infoDialogVisible = true
483 483
                 }
484 484
               }
@@ -577,7 +577,7 @@
577 577
           selected_date:this.selected_date,
578 578
           patient_id:this.$route.query.patient_id,
579 579
           record_date:this.$route.query.date,
580
-          module:1,
580
+          module:8,
581 581
           remark:this.remark,
582 582
         }
583 583
         console.log("params32222222222----",params)

+ 5 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -536,6 +536,7 @@
536 536
               ((template_id == 6 &&
537 537
                 org_id != 9919 &&
538 538
                 org_id != 10191 &&
539
+                org_id!=10478 &&
539 540
                 template_id != 43 &&
540 541
                 template_id != 47) ||
541 542
                 org_id == 9779 ||
@@ -568,7 +569,7 @@
568 569
             width="100"
569 570
             v-if="
570 571
               isShow('置换量') &&
571
-              (template_id != 6 || org_id == 9919 || org_id == 10191) &&
572
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478) &&
572 573
               template_id != 9779 &&
573 574
               template_id != 11 &&
574 575
               template_id != 20 &&
@@ -2440,6 +2441,8 @@ export default {
2440 2441
         this.form.filter_pressure = monitor.filter_pressure
2441 2442
         ? monitor.filter_pressure
2442 2443
         : "";
2444
+        this.form.replacement_speed = monitor.replacement_speed?monitor.replacement_speed:""
2445
+        this.form.dicarbonate = monitor.dicarbonate?monitor.dicarbonate:""
2443 2446
         // 设置三个下拉框的值,直接调用事件偷懒
2444 2447
         this.symptomTextareaBlur();
2445 2448
         this.disposeTextareaBlur();
@@ -2754,7 +2757,7 @@ export default {
2754 2757
                 : parseFloat(this.form.heparin_amount);
2755 2758
             this.$message.error(resp.msg);
2756 2759
             if(resp.code == 600000008){
2757
-              this.infoDialogVisible = false
2760
+              this.infoDialogVisible = true
2758 2761
             }
2759 2762
           }
2760 2763
         }

+ 260 - 3
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 查看文件

@@ -59,7 +59,9 @@
59 59
           </el-form-item>
60 60
         </el-col>
61 61
       </el-row>
62
+      <el-button type="primary" size="small" @click="autoClick" style="margin-top: 5px;margin-bottom: 5px;" v-if="org_id ==9671 || org_id==10440 || org_id == 10495">自动生成</el-button>
62 63
       <el-row :gutter="20">
64
+
63 65
         <el-col v-if="isShow('透析小结')">
64 66
           <el-form-item
65 67
             :prop="isName('透析小结')"
@@ -219,6 +221,42 @@ export default {
219 221
         return { id: 0 };
220 222
       },
221 223
     },
224
+    prescription:{
225
+      type:Object,
226
+      default: () => {
227
+        return { id: 0 };
228
+      },
229
+    },
230
+    predialysis_evaluation:{
231
+      type:Object,
232
+      default: () => {
233
+        return { id: 0 };
234
+      },
235
+    },
236
+    doctor_advices:{
237
+      type:Array,
238
+      default: () => {
239
+        return { id: 0 };
240
+      },
241
+    },
242
+    dialysis_order:{
243
+      type:Object,
244
+      default: () => {
245
+        return { id: 0 };
246
+      },
247
+    },
248
+    monitors:{
249
+      type:Array,
250
+      default: () => {
251
+        return { id: 0 };
252
+      },
253
+    },
254
+    assessment_after_dislysis:{
255
+      type:Object,
256
+      default: () => {
257
+        return { id: 0 };
258
+      },
259
+    }
222 260
   },
223 261
   data() {
224 262
     return {
@@ -254,7 +292,8 @@ export default {
254 292
           return time.getTime() > Date.now()
255 293
         }
256 294
       },
257
-      remark:""
295
+      remark:"",
296
+      org_id:0,
258 297
     };
259 298
   },
260 299
   methods: {
@@ -486,7 +525,7 @@ export default {
486 525
           selected_date:this.selected_date,
487 526
           patient_id:this.$route.query.patient_id,
488 527
           record_date:this.$route.query.date,
489
-          module:1,
528
+          module:10,
490 529
           remark:this.remark,
491 530
         }
492 531
        
@@ -497,7 +536,223 @@ export default {
497 536
              this.infoDialogVisible = false
498 537
            }
499 538
         })
500
-     }
539
+     },
540
+     autoClick(){
541
+      var str_one = ""
542
+      if(this.dialysis_order!=null){
543
+        if(this.dialysis_order.puncture_nurse_id >0){
544
+          str_one = "护士穿刺成功!"
545
+        }
546
+      }
547
+    
548
+      var total =0 
549
+      if(this.predialysis_evaluation!=null){
550
+        total = (this.predialysis_evaluation.weight_before - this.predialysis_evaluation.dry_weight).toFixed(1)
551
+      }
552
+  
553
+
554
+      var monitor_one =[]
555
+      var monitor_two = []
556
+      var monitor_three = []
557
+
558
+      if(this.monitors!=null && this.monitors.length > 0){
559
+        var monitor_one =  this.monitors.sort(function (a,b) {
560
+     	     return b.systolic_bp - a.systolic_bp
561
+        })
562
+        var monitor_two =  this.monitors.sort(function (a,b) {
563
+           return b.diastolic_bp - a.diastolic_bp
564
+        })
565
+
566
+        var monitor_three = this.monitors.sort(function (a,b) {
567
+              return b.pulse_frequency - a.pulse_frequency
568
+        })
569
+
570
+      }
571
+  
572
+
573
+    
574
+     
575
+     
576
+     var doc_str = ""
577
+      console.log("医嘱2333333333333",this.predialysis_evaluation)
578
+      if(this.doctor_advices!=null && this.doctor_advices.length > 0){
579
+       
580
+        
581
+        for(let i=0;i<this.doctor_advices.length;i++){
582
+          doc_str +=this.doctor_advices[i].advice_name +" "+this.doctor_advices[i].prescribing_number+this.doctor_advices[i].prescribing_number_unit+" "+this.doctor_advices[i].delivery_way
583
+        }
584
+      }
585
+
586
+      if(this.predialysis_evaluation.blood_access_part_id == -2){
587
+        this.predialysis_evaluation.blood_access_part_id = ""
588
+      }
589
+     
590
+       var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
591
+       ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +",总量:"+this.prescription.anticoagulant_zongliang+"iu"+
592
+      ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"ml" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
593
+      +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
594
+      ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
595
+      +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
596
+
597
+       console.log("str000000000000000000222o2o2",str)
598
+       this.treatmentSummary.dialysis_summary = ""
599
+       this.treatmentSummary.dialysis_summary = str
600
+    },
601
+    QueryOperaById(val){
602
+       var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
603
+       var name = ""
604
+       for(let i=0;i<blood_access_part_opera.length;i++){
605
+         if(val == blood_access_part_opera[i].id){
606
+            name = blood_access_part_opera[i].name
607
+         }
608
+       }
609
+       return name
610
+    },
611
+    getModeId(mode_id){
612
+      var mode_name = ""
613
+      if(mode_id == 1){
614
+         mode_name ="HD"
615
+      }
616
+      if(mode_id == 2){
617
+         mode_name ="HDF"
618
+      }
619
+      if(mode_id == 3){
620
+         mode_name ="HD+HP"
621
+      }
622
+      if(mode_id == 4){
623
+         mode_name ="HP"
624
+      }
625
+      if(mode_id == 5){
626
+         mode_name ="HF"
627
+      }
628
+      if(mode_id == 6){
629
+         mode_name ="SCUF"
630
+      }
631
+      if(mode_id == 7){
632
+         mode_name ="IUF"
633
+      }
634
+      if(mode_id == 8){
635
+         mode_name ="HFHD"
636
+      }
637
+      if(mode_id == 9){
638
+         mode_name ="HFHD+HP"
639
+      }
640
+      if(mode_id == 10){
641
+         mode_name ="PHF"
642
+      }
643
+      if(mode_id == 11){
644
+         mode_name ="HFR"
645
+      }
646
+      if(mode_id == 12){
647
+         mode_name ="HDF+HP"
648
+      }
649
+      if(mode_id == 13){
650
+         mode_name ="CRRT"
651
+      }
652
+      if(mode_id == 14){
653
+         mode_name ="腹水回输"
654
+      }
655
+      if(mode_id == 19){
656
+         mode_name ="IUF+HD"
657
+      }
658
+      if(mode_id == 20){
659
+         mode_name ="UF"
660
+      }
661
+      if(mode_id == 21){
662
+         mode_name ="HD+"
663
+      }
664
+      if(mode_id == 22){
665
+         mode_name ="血浆胆红素吸附+HDF"
666
+      }
667
+      if(mode_id == 23){
668
+         mode_name ="血浆胆红素吸附"
669
+      }
670
+      if(mode_id == 24){
671
+         mode_name ="I-HDF"
672
+      }
673
+      if(mode_id == 25){
674
+         mode_name ="HD高通"
675
+      }
676
+      if(mode_id == 26){
677
+         mode_name ="CVVH"
678
+      }
679
+      if(mode_id == 27){
680
+         mode_name ="CVVHD"
681
+      }
682
+      if(mode_id == 28){
683
+         mode_name ="CVVHDF"
684
+      }
685
+      if(mode_id == 29){
686
+         mode_name ="PE"
687
+      }
688
+      if(mode_id == 30){
689
+         mode_name ="血浆胆红素吸附+HP"
690
+      }
691
+      if(mode_id == 31){
692
+         mode_name ="HPD"
693
+      }
694
+      if(mode_id == 32){
695
+         mode_name ="HDP"
696
+      }
697
+      return mode_name
698
+    },
699
+    GetAnticoagulant(id){
700
+      var  anticoagulant_name = ""
701
+      if(id == 1){
702
+       anticoagulant_name = "无肝素"
703
+      }
704
+      if(id == 2){
705
+         anticoagulant_name = "普通肝素"
706
+      }
707
+      if(id == 3){
708
+        anticoagulant_name = "低分子肝素"
709
+      } 
710
+      if(id == 4){
711
+        anticoagulant_name = "阿加曲班"
712
+      } 
713
+
714
+      if(id == 5){
715
+       anticoagulant_name = "枸橼酸钠"
716
+      }
717
+      if(id == 6){
718
+         anticoagulant_name = "低分子肝素钙"
719
+      }
720
+      if(id == 7){
721
+        anticoagulant_name = "低分子肝素钠"
722
+      } 
723
+      if(id == 8){
724
+        anticoagulant_name = "依诺肝素"
725
+      } 
726
+
727
+      if(id == 9){
728
+        anticoagulant_name = "达肝素"
729
+      } 
730
+      if(id == 10){
731
+        anticoagulant_name = "体外抗凝"
732
+      } 
733
+
734
+      if(id == 11){
735
+        anticoagulant_name = "那屈肝素"
736
+      } 
737
+      if(id == 12){
738
+        anticoagulant_name = "无抗凝剂"
739
+      } 
740
+
741
+      if(id == 13){
742
+        anticoagulant_name = "那屈肝素钙"
743
+      } 
744
+      if(id == 14){
745
+        anticoagulant_name = "肝素钙注射液"
746
+      } 
747
+      if(id == 15){
748
+        anticoagulant_name = "甲磺酸萘莫司他"
749
+      } 
750
+
751
+      return anticoagulant_name
752
+    },
753
+    getTime (time) {
754
+     return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
755
+    },
501 756
   },
502 757
   watch: {
503 758
     isVisibility(val) {},
@@ -545,6 +800,7 @@ export default {
545 800
         }
546 801
       },
547 802
     },
803
+  
548 804
   },
549 805
   created() {
550 806
     this.education = getDataConfig("education", "education");
@@ -562,6 +818,7 @@ export default {
562 818
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
563 819
     }
564 820
     
821
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
565 822
   },
566 823
 };
567 824
 </script>

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -23,8 +23,8 @@
23 23
           <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) " width="92px" > 置换率(ml/min) </th>
24 24
           <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" width="92px" > 置换率(L/h)  </th>
25 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || 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 )" width="92px"  > 置换量(ml)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && 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)" width="92px" > 置换量(L) </th>
26
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478) || 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 )" width="92px"  > 置换量(ml)  </th>
27
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478) && 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)" width="92px" > 置换量(L) </th>
28 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29 29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30 30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 1 - 0
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -676,6 +676,7 @@
676 676
         :lastOrder="lastOrder"
677 677
         :dryWeightList="dryWeightList"
678 678
         :docList="docList"
679
+       
679 680
       >
680 681
       </nav-igation>
681 682
 

+ 40 - 131
src/xt_pages/dialysis/dialysisFlow.vue 查看文件

@@ -135,7 +135,19 @@
135 135
                {{ scope.row.patient.name }}
136 136
              </template>
137 137
           </el-table-column>
138
-          <el-table-column prop="mode_name" label="透析处方" align="center"  width="100">
138
+          <el-table-column
139
+          align="center"
140
+          prop="name"
141
+          v-for="(item,index) in moduleList"
142
+          :key="index"
143
+          :label="item.name"
144
+        >
145
+          <template slot-scope="scope">
146
+            <span>{{getModeFinish(scope.row.dialysis_finish,item.id)}}</span>
147
+          </template>
148
+
149
+        </el-table-column>
150
+          <!-- <el-table-column prop="mode_name" label="透析处方" align="center"  width="100">
139 151
             <template slot-scope="scope">
140 152
                 <span v-if="scope.row.dialysis_finish!=null && scope.row.dialysis_finish.module == 1">
141 153
@@ -304,7 +316,7 @@
304 316
                   ×
305 317
                 </span>
306 318
            </template>
307
-         </el-table-column>
319
+         </el-table-column> -->
308 320
   
309 321
 
310 322
         </el-table>
@@ -356,6 +368,19 @@
356 368
           { value: 2, label: "下午" },
357 369
           { value: 3, label: "晚上" }
358 370
         ],
371
+        moduleList:[
372
+        {id:1,name:"透析处方"},
373
+        {id:2,name:"接诊评估"},
374
+        {id:3,name:"透前评估"},
375
+        {id:4,name:"临时医嘱"},  
376
+        {id:5,name:"双人核对"}, 
377
+        {id:6,name:"透析上机"}, 
378
+        {id:7,name:"透析监测"},
379
+        {id:8,name:"透析下机"},
380
+        {id:9,name:"透后评估"},
381
+        {id:10,name:"治疗小结"},
382
+        {id:11,name:"耗材出库"},
383
+        ],
359 384
         template_id: 0,
360 385
   
361 386
         partitionType: 0,
@@ -749,135 +774,19 @@
749 774
         this.listQuery.limit = val;
750 775
         this.getSchedualPatientList();
751 776
       },
752
-      batchPrintAction: function() {
753
-        if (this.selecting_schs.length === 0) {
754
-          this.$message.error("请至少选择一条需要打印的内容");
755
-          return false;
756
-        }
757
-        // 模板ID为6
758
-        var sch_ids = [];
759
-  
760
-        for (let index = 0; index < this.selecting_schs.length; index++) {
761
-          sch_ids.push(this.selecting_schs[index].sch_id);
762
-        }
763
-        console.log("sch_ids",sch_ids)
764
-        this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
765
-        if (this.template_id == 2 || this.template_id == 0) {
766
-          this.$router.push({ path: "/dialysis/print/batch/other" });
767
-        } else if (this.template_id == 1) {
768
-          this.$router.push({ path: "/dialysis/print/batch" });
769
-        } else if (this.template_id == 3) {
770
-          this.$router.push({ path: "/dialysis/print/batch/three" });
771
-        } else if (this.template_id == 4) {
772
-          this.$router.push({ path: "/dialysis/print/batch/four" });
773
-        } else if (this.template_id == 5) {
774
-          this.$router.push({ path: "/dialysis/print/batch/five" });
775
-        } else if (this.template_id == 6) {
776
-          this.$router.push({ path: "/dialysis/print/batch/six" });
777
-        } else if (this.template_id == 7) {
778
-          this.$router.push({ path: "/dialysis/print/batch/seven" });
779
-        } else if (this.template_id == 8) {
780
-          this.$router.push({ path: "/dialysis/print/batch/eight" });
781
-        } else if (this.template_id == 9) {
782
-          this.$router.push({ path: "/dialysis/print/batch/nine" });
783
-        } else if (this.template_id == 12) {
784
-          this.$router.push({ path: "/dialysis/print/batch/twelve" });
785
-        } else if (this.template_id == 13) {
786
-          this.$router.push({ path: "/dialysis/print/batch/thirteen" });
787
-        } else if (this.template_id == 15) {
788
-          this.$router.push({ path: "/dialysis/print/batch/fifteen" });
789
-        } else if (this.template_id == 17) {
790
-          this.$router.push({ path: "/dialysis/print/batch/seventeen" });
791
-        } else if (this.template_id == 20) {
792
-          this.$router.push({ path: "/dialysis/print/batch/twenty" });
793
-        } else if (this.template_id == 22) {
794
-          this.$router.push({ path: "/dialysis/print/batch/twentyTwo" });
795
-        } else if (this.template_id == 25) {
796
-          this.$router.push({ path: "/dialysis/print/batch/twentyFive" });
797
-        }else if (this.template_id == 27) {
798
-          this.$router.push({ path: "/dialysis/print/batch/twentySeven" });
799
-        } else if(this.template_id == 28){
800
-           this.$router.push({path:"/dialysis/print/batch/twentyEight"})
801
-        } else if (this.template_id == 30) {
802
-          this.$router.push({ path: "/dialysis/print/batch/thirty" });
803
-        } else if (this.template_id == 32) {
804
-          this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
805
-        } else if (this.template_id == 33) {
806
-          this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
807
-        } else if (this.template_id == 37) {
808
-          this.$router.push({ path: "/dialysis/print/batch/thirtySeven" });
809
-        } else if (this.template_id == 38) {
810
-          this.$router.push({ path: "/dialysis/print/batch/thirtyEight" });
811
-        } else if (this.template_id == 39) {
812
-          this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
813
-        } else if (this.template_id == 40) {
814
-          this.$router.push({ path: "/dialysis/print/batch/forty" });
815
-        } else if (this.template_id == 41) {
816
-          this.$router.push({ path: "/dialysis/print/batch/fortyOne" });
817
-        } else if (this.template_id == 43) {
818
-          this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
819
-        } else if (this.template_id == 47) {
820
-          this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
821
-        } else if (this.template_id == 48) {
822
-          this.$router.push({ path: "/dialysis/print/batch/six" });
823
-        }else if (this.template_id == 51) {
824
-          this.$router.push({ path: "/dialysis/print/batch/fiftyOne" });
825
-        }else if (this.template_id == 53) {
826
-          this.$router.push({ path: "/dialysis/print/batch/fiftyThree" });
827
-        }else if (this.template_id == 59) {
828
-          this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
829
-        }else if (this.template_id == 60) {
830
-          this.$router.push({ path: "/dialysis/print/batch/sixty" });
831
-        }else if (this.template_id == 61) {
832
-          this.$router.push({ path: "/dialysis/print/batch/sixtyOne" });
833
-        }else if (this.template_id == 62) {
834
-          this.$router.push({ path: "/dialysis/print/batch/sixtyTwo" });
835
-        }
836
-      },
837
-      batchPrintActionOne: function() {
838
-        if (this.selecting_schs.length === 0) {
839
-          this.$message.error("请至少选择一条需要打印的内容");
840
-          return false;
841
-        }
842
-        var sch_ids = [];
843
-        for (let index = 0; index < this.selecting_schs.length; index++) {
844
-          sch_ids.push(this.selecting_schs[index].sch_id);
845
-        }
846
-        this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
847
-        if (this.template_id == 2 || this.template_id == 0) {
848
-          this.$router.push({ path: "/dialysis/print/batch/otherone" });
849
-        } else if (this.template_id == 1) {
850
-          this.$router.push({ path: "/dialysis/print/batch" });
851
-        } else if (this.template_id == 5) {
852
-          this.$router.push({ path: "/dialysis/print/batch/fiveone" });
853
-        } else if (this.template_id == 22) {
854
-          this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
855
-        } else if(this.template_id == 33){
856
-          this.$router.push({ path: "/dialysis/print/batch/thirtyThree_one" });
857
-        }
858
-      },
859
-      batchPrintActionTwo: function() {
860
-        if (this.selecting_schs.length === 0) {
861
-          this.$message.error("请至少选择一条需要打印的内容");
862
-          return false;
863
-        }
864
-        var sch_ids = [];
865
-        for (let index = 0; index < this.selecting_schs.length; index++) {
866
-          sch_ids.push(this.selecting_schs[index].sch_id);
867
-        }
868
-        this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
869
-        if (this.template_id == 2 || this.template_id == 0) {
870
-          this.$router.push({ path: "/dialysis/print/batch/othertwo" });
871
-        } else if (this.template_id == 1) {
872
-          this.$router.push({ path: "/dialysis/print/batch" });
873
-        } else if (this.template_id == 5) {
874
-          this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
875
-        } else if (this.template_id == 22) {
876
-          this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
877
-        } else if (this.template_id == 33) {
878
-          this.$router.push({ path: "/dialysis/print/batch/thirtyThree_two" });
879
-        }
880
-      }
777
+     getModeFinish(val,id){
778
+      var name = "×"
779
+       if(val!=null){
780
+         for(let i=0;i<val.length;i++){
781
+            if(val[i].module == id){
782
+               name = "√"
783
+            }
784
+         }
785
+       }
786
+       return name
787
+     }
788
+      
789
+      
881 790
     },
882 791
     components: {
883 792
       BreadCrumb

+ 3 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -112,7 +112,6 @@
112 112
           org_template_info.template_id == 52 ||
113 113
           org_template_info.template_id == 53  ||
114 114
           org_template_info.template_id == 64)
115
-          && $store.getters.xt_user.org.id != 0
116 115
         "
117 116
       >
118 117
       <div>
@@ -403,8 +402,7 @@
403 402
       </template>
404 403
       <template
405 404
         v-if="
406
-          org_template_info.template_id == 27 ||
407
-          org_template_info.template_id == 0
405
+          org_template_info.template_id == 27
408 406
         "
409 407
       >
410 408
         <div>
@@ -971,7 +969,7 @@
971 969
                                   
972 970
           <DialysisPrintOrderSix
973 971
             v-bind:childResponse="childResponse"
974
-            v-if="org_template_info.template_id == 6 && $store.getters.xt_user.org.id!=0"
972
+            v-if="org_template_info.template_id == 6"
975 973
           >
976 974
           </DialysisPrintOrderSix>
977 975
 
@@ -1260,7 +1258,7 @@
1260 1258
 
1261 1259
           <DialysisPrintOrderSixtyFive
1262 1260
               v-bind:childResponse="childResponse"
1263
-            v-if="org_template_info.template_id == 65 || $store.getters.xt_user.org.id ==0">
1261
+            v-if="org_template_info.template_id == 65">
1264 1262
 
1265 1263
           </DialysisPrintOrderSixtyFive>
1266 1264
         </div>

+ 35 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue 查看文件

@@ -1658,20 +1658,42 @@ export default {
1658 1658
       }
1659 1659
       return ''
1660 1660
     },
1661
+    // getAge: function(val) {
1662
+    //   if (
1663
+    //     this.org_template_info.template_id == 2 ||
1664
+    //     this.org_template_info.template_id == 0
1665
+    //   ) {
1666
+    //     if (val.age == 0) {
1667
+    //       return jsGetAge(val.birth, '-')
1668
+    //     } else {
1669
+    //       return val.age
1670
+    //     }
1671
+    //   } else {
1672
+    //     return jsGetAge(val.birth, '-')
1673
+    //   }
1674
+    // },
1661 1675
     getAge: function(val) {
1662
-      if (
1663
-        this.org_template_info.template_id == 2 ||
1664
-        this.org_template_info.template_id == 0
1665
-      ) {
1666
-        if (val.age == 0) {
1667
-          return jsGetAge(val.birth, '-')
1668
-        } else {
1669
-          return val.age
1670
-        }
1671
-      } else {
1672
-        return jsGetAge(val.birth, '-')
1673
-      }
1674
-    },
1676
+     
1677
+     if (val.id_card_no) {
1678
+       var thisLen = val.id_card_no.length
1679
+
1680
+       var birth = ''
1681
+       if (thisLen == 15) {
1682
+         birth = '19' + val.id_card_no.substr(6, 6)
1683
+       } else {
1684
+         birth = val.id_card_no.substr(6, 8)
1685
+       }
1686
+       var birthtwo =
1687
+         birth.substr(0, 4) +
1688
+         '-' +
1689
+         birth.substr(4, 2) +
1690
+         '-' +
1691
+         birth.substr(6, 2)
1692
+
1693
+       var age = jsGetAge(birthtwo, '-')
1694
+       return age
1695
+     }
1696
+   },
1675 1697
     newAdviceGroupObject: function() {
1676 1698
       return Object.assign(
1677 1699
         {},

+ 61 - 21
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -65,12 +65,18 @@
65 65
             </div>
66 66
67 67
           </div>
68
-          <div class="inline_block">
68
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1">
69 69
             门诊:
70 70
             <div class="under_line" style="width: 30px; text-align: center">
71 71
               <check-box :checked="patientInfo_source_1"></check-box>
72 72
             </div>
73 73
           </div>
74
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition==1">
75
+            住院:
76
+            <div class="under_line" style="width: 30px; text-align: center">
77
+              <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
78
+            </div>
79
+          </div>
74 80
           <div class="inline_block">
75 81
             病区:
76 82
             <div class="under_line" style="width: 50px; text-align: center">
@@ -1447,8 +1453,9 @@
1447 1453
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1448 1454
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1449 1455
                         <td width="50" v-if="org_id != 10121">
1450
-                          <span v-if="org_id != 0 && org_id !=10469"> 电导度<br />(ms/cm)</span> 
1451
-                          <span v-if="org_id == 0 || org_id ==10469"> 钠浓度<br />(mmol/L)</span> 
1456
+                          <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490"> 电导度<br />(ms/cm)</span> 
1457
+                          <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span> 
1458
+                          <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span> 
1452 1459
                         </td>
1453 1460
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1454 1461
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 0">超滤量<br />(ml)</td>
@@ -1468,6 +1475,7 @@
1468 1475
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1469 1476
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1470 1477
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1478
+                        <td width="50" v-if="org_id == 10490 || org_id == 0">碳酸氢钠<br />(ml)</td>
1471 1479
                         <td width="200">病情变化及处理</td>
1472 1480
                       </tr>
1473 1481
 
@@ -1542,9 +1550,9 @@
1542 1550
 
1543 1551
 
1544 1552
                         <td v-if="org_id != 9538 &&org_id != 10121">
1545
-                          <span v-if="org_id!=0&&org_id!=10469"> {{ monitor.conductivity ? monitor.conductivity : "" }}</span>
1546
-                          <span v-if="org_id==0||org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</span>
1547
-                          
1553
+                          <span v-if="org_id!=0&&org_id!=10469 && org_id!=10490"> {{ monitor.conductivity ? monitor.conductivity : "" }}</span>
1554
+                          <span v-if="org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</span>
1555
+                          <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
1548 1556
                         </td>
1549 1557
 
1550 1558
                       
@@ -1584,6 +1592,9 @@
1584 1592
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1585 1593
                           {{ monitor.accumulated_blood_volume }}
1586 1594
                         </td>
1595
+                        <td width="50" v-if="org_id ==10490 || org_id == 0">
1596
+                          {{ monitor.dicarbonate }}
1597
+                        </td>
1587 1598
                         <td style="line-height: 16px; padding: 0px">
1588 1599
                           <div
1589 1600
                             style="
@@ -1646,6 +1657,7 @@
1646 1657
                         ></td>
1647 1658
                         <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671"></td>
1648 1659
                         <td v-if="org_id == 9538"></td>
1660
+                        <td v-if="org_id == 10490 || org_id == 0"></td>
1649 1661
                         <td style="line-height: 16px; padding: 0px">
1650 1662
                           <div
1651 1663
                             style="
@@ -1872,12 +1884,18 @@
1872 1884
               </div>
1873 1885
1874 1886
             </div>
1875
-            <div class="inline_block">
1876
-              门诊:
1877
-              <div class="under_line" style="width: 30px; text-align: center">
1878
-                <check-box :checked="patientInfo_source_1"></check-box>
1879
-              </div>
1887
+            <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1">
1888
+            门诊:
1889
+            <div class="under_line" style="width: 30px; text-align: center">
1890
+              <check-box :checked="patientInfo_source_1"></check-box>
1880 1891
             </div>
1892
+          </div>
1893
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition==1">
1894
+            住院:
1895
+            <div class="under_line" style="width: 30px; text-align: center">
1896
+              <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
1897
+            </div>
1898
+          </div>
1881 1899
             <div class="inline_block">
1882 1900
               病区:
1883 1901
               <div class="under_line" style="width: 50px; text-align: center">
@@ -3921,18 +3939,40 @@ export default {
3921 3939
       }
3922 3940
       return "";
3923 3941
     },
3924
-    getAge: function (val) {
3925
-      if (
3926
-        this.org_template_info.template_id == 2 ||
3927
-        this.org_template_info.template_id == 0
3928
-      ) {
3929
-        if (val.age == 0) {
3930
-          return jsGetAge(val.birth, "-");
3942
+    // getAge: function (val) {
3943
+    //   if (
3944
+    //     this.org_template_info.template_id == 2 ||
3945
+    //     this.org_template_info.template_id == 0
3946
+    //   ) {
3947
+    //     if (val.age == 0) {
3948
+    //       return jsGetAge(val.birth, "-");
3949
+    //     } else {
3950
+    //       return val.age;
3951
+    //     }
3952
+    //   } else {
3953
+    //     return this.getoldAge();
3954
+    //   }
3955
+    // },
3956
+    getAge: function(val) {
3957
+     
3958
+      if (val.id_card_no) {
3959
+        var thisLen = val.id_card_no.length
3960
+
3961
+        var birth = ''
3962
+        if (thisLen == 15) {
3963
+          birth = '19' + val.id_card_no.substr(6, 6)
3931 3964
         } else {
3932
-          return val.age;
3965
+          birth = val.id_card_no.substr(6, 8)
3933 3966
         }
3934
-      } else {
3935
-        return this.getoldAge();
3967
+        var birthtwo =
3968
+          birth.substr(0, 4) +
3969
+          '-' +
3970
+          birth.substr(4, 2) +
3971
+          '-' +
3972
+          birth.substr(6, 2)
3973
+
3974
+        var age = jsGetAge(birthtwo, '-')
3975
+        return age
3936 3976
       }
3937 3977
     },
3938 3978
     newAdviceGroupObject: function () {

+ 98 - 53
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue 查看文件

@@ -20,7 +20,9 @@
20 20
           <h1 style="text-align: center;">血液透析(滤过)记录表单</h1>
21 21
           <div>
22 22
             <div>
23
-              <div style="display:inline-block; ;">病历号:</div>
23
+              <div style="display:inline-block; ;">病历号:
24
+                {{patientInfo.record_number?patientInfo.record_number:"" }}
25
+              </div>
24 26
               <div style="display:inline-block;margin-left: 90px;">
25 27
                 姓名:{{ patientInfo.name }}
26 28
               </div>
@@ -54,7 +56,8 @@
54 56
                 <td colspan="3" style="border:1px solid black">
55 57
                   <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
56 58
                     上机前病情:
57
-                    {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
59
+                    <!-- {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }} -->
60
+                    {{ predialysis.befor_symptoms? predialysis.befor_symptoms:"" }}
58 61
                   </div>
59 62
 
60 63
                 </td>
@@ -63,7 +66,7 @@
63 66
                 <td colspan="3">
64 67
                   <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
65 68
                     疾病诊断:
66
-                    {{ patientInfo.diagnose }}
69
+                    {{ getDiagnosis(prescriptionInfo.patient_diagnosis) }}
67 70
                   </div>
68 71
                 </td>
69 72
               </tr>
@@ -74,30 +77,31 @@
74 77
                     <span v-else-if="prescription.mode_id == 1">HD</span>
75 78
                     <span v-else-if="prescription.mode_id == 2">HDF</span>
76 79
                     <span v-else-if="prescription.mode_id == 3">HD+HP</span>
77
-                    <span v-else-if="prescription.mode_id == 4">HF</span>
78
-                    <span v-else-if="prescription.mode_id == 5">SCUF</span>
79
-                    <span v-else-if="prescription.mode_id == 6">IUF</span>
80
-                    <span v-else-if="prescription.mode_id == 7">HFHD</span>
81
-                    <span v-else-if="prescription.mode_id == 8">HFHD+HP</span>
82
-                    <span v-else-if="prescription.mode_id == 9">PHF</span>
83
-                    <span v-else-if="prescription.mode_id == 10">HFR</span>
84
-                    <span v-else-if="prescription.mode_id == 11">HDF+HP</span>
85
-                    <span v-else-if="prescription.mode_id == 12">CRRT</span>
86
-                    <span v-else-if="prescription.mode_id == 13">腹水回输</span>
87
-                    <span v-else-if="prescription.mode_id == 14">IUF+HD</span>
88
-                    <span v-else-if="prescription.mode_id == 15">UF</span>
89
-                    <span v-else-if="prescription.mode_id == 16">HD+</span>
90
-                    <span v-else-if="prescription.mode_id == 17">血浆胆红素吸附+HDF</span>
91
-                    <span v-else-if="prescription.mode_id == 18">血浆胆红素吸附</span>
92
-                    <span v-else-if="prescription.mode_id == 19">I-HDF</span>
93
-                    <span v-else-if="prescription.mode_id == 20">HD高通</span>
94
-                    <span v-else-if="prescription.mode_id == 21">CVVH</span>
95
-                    <span v-else-if="prescription.mode_id == 22">CVVHD</span>
96
-                    <span v-else-if="prescription.mode_id == 23">CVVHDF</span>
97
-                    <span v-else-if="prescription.mode_id == 24">PE</span>
98
-                    <span v-else-if="prescription.mode_id == 25">血浆胆红素吸附+HP</span>
99
-                    <span v-else-if="prescription.mode_id == 26">HPD</span>
100
-                    <span v-else-if="prescription.mode_id == 27">HDP</span>
80
+                    <span v-else-if="prescription.mode_id == 4">HP</span>
81
+                    <span v-else-if="prescription.mode_id == 5">HF</span>
82
+                    <span v-else-if="prescription.mode_id == 6">SCUF</span>
83
+                    <span v-else-if="prescription.mode_id == 7">IUF</span>
84
+                    <span v-else-if="prescription.mode_id == 8">HFHD</span>
85
+                    <span v-else-if="prescription.mode_id == 9">HFHD+HP</span>
86
+                    <span v-else-if="prescription.mode_id == 10">PHF</span>
87
+                    <span v-else-if="prescription.mode_id == 11">HFR</span>
88
+                    <span v-else-if="prescription.mode_id == 12">HDF+HP</span>
89
+                    <span v-else-if="prescription.mode_id == 13">CRRT</span>
90
+                  
91
+                    <span v-else-if="prescription.mode_id == 19">IUF+HD</span>
92
+                    <span v-else-if="prescription.mode_id == 20">UF</span>
93
+                    <span v-else-if="prescription.mode_id == 21">HD+</span>
94
+                    <span v-else-if="prescription.mode_id == 22">血浆胆红素吸附+HDF</span>
95
+                    <span v-else-if="prescription.mode_id == 23">血浆胆红素吸附</span>
96
+                    <span v-else-if="prescription.mode_id == 24">I-HDF</span>
97
+                    <span v-else-if="prescription.mode_id == 25">HD高通</span>
98
+                    <span v-else-if="prescription.mode_id == 26">CVVH</span>
99
+                    <span v-else-if="prescription.mode_id == 27">CVVHD</span>
100
+                    <span v-else-if="prescription.mode_id == 28">CVVHDF</span>
101
+                    <span v-else-if="prescription.mode_id == 29">PE</span>
102
+                    <span v-else-if="prescription.mode_id == 30">血浆胆红素吸附+HP</span>
103
+                    <span v-else-if="prescription.mode_id == 31">HPD</span>
104
+                    <span v-else-if="prescription.mode_id == 32">HDP</span>
101 105
                 </td>
102 106
                 <td>
103 107
                   <span
@@ -378,7 +382,6 @@
378 382
                             }}
379 383
                             </span>
380 384
                         </td >
381
-
382 385
                         <td style=" ">
383 386
                             <span v-if="getTime(monitor.operate_time) != ''">
384 387
                                 &nbsp;{{
@@ -444,10 +447,12 @@
444 447
 
445 448
                         <!-- <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td> -->
446 449
                         <td style=" ">
447
-                          <span style="word-break: break-all;word-wrap: break-word;">
448
-
449
-                              {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
450
-                          </span>
450
+                          <!-- <span style="display:inline-block;word-break: break-all;word-wrap: break-word; text-align: left;text-indent:2em;">
451
+                            {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
452
+                          </span> -->
453
+                          <div style="word-break: break-all;word-wrap: break-word; text-align: left;text-indent:2em;">
454
+                            {{ monitor.symptom }} {{ monitor.dispose }} {{monitor.result}}
455
+                          </div>
451 456
                         </td>
452 457
                         <!-- <td>
453 458
                           <span v-if="
@@ -765,7 +770,9 @@ export default {
765 770
       adminUser: [],
766 771
       bloodAccessParOpera: {},
767 772
       lastafterdialysis: {},
768
-      projects:[]
773
+      projects:[],
774
+      prescriptionInfo:{},
775
+      patientDiagnose:[]
769 776
     };
770 777
   },
771 778
   computed: {},
@@ -886,7 +893,8 @@ export default {
886 893
         // this.receiverTreatmentAccess =
887 894
         //     response.data.data.receiverTreatmentAccess;
888 895
         this.assessmentafter = response.data.data.assessmentAfterDislysis;
889
-
896
+        this.prescriptionInfo = response.data.data.prescriptionInfo
897
+        this.patientDiagnose = response.data.data.patientDiagnose
890 898
         // this.sick_condition_arr.forEach((o) => {
891 899
         //     if (this.receiverTreatmentAccess.sick_condition == o.id) {
892 900
         //     this.sick_condition = o.name;
@@ -986,6 +994,7 @@ export default {
986 994
           }
987 995
         });
988 996
         this.projects = projects;
997
+
989 998
         if (this.doctor_advices.length + this.projects.length <= 6) {
990 999
           var nl = 6 - (this.doctor_advices.length + this.projects.length);
991 1000
           this.print_length = 6;
@@ -1004,20 +1013,22 @@ export default {
1004 1013
         console.log("advices",this.advices)
1005 1014
         console.log("this.projects", this.projects);
1006 1015
 
1007
-        var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1016
+        // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1008 1017
         if(this.projects!=null && this.projects.length >0){
1009 1018
            for(let i=0;i<this.projects.length;i++){
1010
-              if(this.projects[i].project_id ==  7620){
1011
-                 objProject.advice_name = this.projects[i].project.project_name
1012
-                 objProject.start_time = this.projects[i].start_time
1013
-                 objProject.single_dose = this.projects[i].single_dose
1014
-                 objProject.single_dose_unit = this.projects[i].unit
1015
-                 objProject.execution_time = this.projects[i].execution_time
1016
-                 objProject.execution_staff= this.projects[i].execution_staff
1017
-              }
1019
+             if(this.projects[i].type== 2){
1020
+              this.projects[i].advice_name = this.projects[i].project.project_name
1021
+              this.projects[i].start_time = this.projects[i].start_time
1022
+              this.projects[i].single_dose = this.projects[i].single_dose
1023
+              this.projects[i].single_dose_unit = this.projects[i].unit
1024
+              this.projects[i].execution_time = this.projects[i].execution_time
1025
+              this.projects[i].execution_staff= this.projects[i].execution_staff 
1026
+              this.advices.push(this.projects[i])
1027
+             }
1028
+             
1018 1029
            }
1019 1030
         }
1020
-        this.advices.push(objProject)
1031
+        
1021 1032
 
1022 1033
         var tableAdvice = this.advices;
1023 1034
 
@@ -1098,6 +1109,8 @@ export default {
1098 1109
           this.advices = tableAdvice;
1099 1110
         }
1100 1111
 
1112
+        console.log("advices-----------------",this.advices)
1113
+
1101 1114
  
1102 1115
          
1103 1116
 
@@ -1164,20 +1177,52 @@ export default {
1164 1177
       }
1165 1178
       return ''
1166 1179
     },
1180
+    // getAge: function (val) {
1181
+    //   if (
1182
+    //     this.org_template_info.template_id == 2 ||
1183
+    //     this.org_template_info.template_id == 0
1184
+    //   ) {
1185
+    //     if (val.age == 0) {
1186
+    //       return jsGetAge(val.birth, "-");
1187
+    //     } else {
1188
+    //       return val.age;
1189
+    //     }
1190
+    //   } else {
1191
+    //     return jsGetAge(val.birth, "-");
1192
+    //   }
1193
+    // },
1167 1194
     getAge: function (val) {
1168
-      if (
1169
-        this.org_template_info.template_id == 2 ||
1170
-        this.org_template_info.template_id == 0
1171
-      ) {
1172
-        if (val.age == 0) {
1173
-          return jsGetAge(val.birth, "-");
1195
+      if(val!=undefined){
1196
+        var thisLen = val.id_card_no.length;
1197
+        var birth = "";
1198
+        if (thisLen == 15) {
1199
+          birth = "19" + val.id_card_no.substr(6, 6);
1174 1200
         } else {
1175
-          return val.age;
1201
+          birth = val.id_card_no.substr(6, 8);
1176 1202
         }
1177
-      } else {
1178
-        return jsGetAge(val.birth, "-");
1203
+        var birthtwo =
1204
+          birth.substr(0, 4) +
1205
+          "-" +
1206
+          birth.substr(4, 2) +
1207
+          "-" +
1208
+          birth.substr(6, 2);
1209
+
1210
+        var age = jsGetAge(birthtwo, "-");
1211
+        return age;
1179 1212
       }
1213
+    
1180 1214
     },
1215
+   
1216
+    getDiagnosis(id) {
1217
+      let arr = id.split(',')
1218
+      var name = ''
1219
+      for (let i = 0; i < this.patientDiagnose.length; i++) {
1220
+        if (arr.indexOf(String(this.patientDiagnose[i].id)) > -1) {
1221
+          name += this.patientDiagnose[i].class_name + ' '
1222
+        }
1223
+      }
1224
+      return name
1225
+    }
1181 1226
   },
1182 1227
   created() {
1183 1228
     var bloodAccessParOpera = getDataConfig(

+ 48 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue 查看文件

@@ -129,10 +129,19 @@
129 129
             </div>
130 130
             <div class="inline_block" style="margin-right:30px;">
131 131
               透析液配方
132
-              <div class="inline_block under_line" style="width:150px;text-align: center;">
132
+              <div class="inline_block under_line" style="width:100px;text-align: center;">
133 133
                   {{ prescription.dialysate_formulation_name ? prescription.dialysate_formulation_name : ''}}
134 134
               </div>
135 135
             </div>
136
+           
137
+            <div class="inline_block" style="margin-right:30px;">
138
+              通路形成时间
139
+              <div class="inline_block under_line" style="width:100px;text-align: center;">
140
+                {{getTimeOne(predialysis.pathway_formation_time) }}
141
+              </div>
142
+            </div>
143
+          
144
+         
136 145
         </div>
137 146
         <div class="row">
138 147
           血管通路
@@ -162,17 +171,42 @@
162 171
             <label-box :isChecked="predialysis.blood_access_part_id.indexOf('其他')>-1?true:false" showValue="其他"></label-box>
163 172
             &nbsp;
164 173
           </div>
174
+        
165 175
         </div>
166 176
         <div class="row">
167 177
           导管
168
-          <div class="inline_block under_line" style="width:200px;text-align: left;">
178
+          <div class="inline_block under_line" style="width:95%;text-align: left;">
169 179
             {{ predialysis.catheter ? predialysis.catheter : "" }}
170 180
           </div>
181
+        
182
+         
183
+        </div>
184
+        <div class="row">
171 185
           内瘘
172
-          <div class="inline_block under_line" style="width:200px;text-align: left;">
186
+          <div class="inline_block under_line" style="width:95%;text-align: left;">
173 187
             {{ predialysis.internal_fistula ? predialysis.internal_fistula : "" }}
174 188
           </div>
175 189
         </div>
190
+        <div class="row">
191
+          <!-- 导管评估项目
192
+          <div class="inline_block under_line" style="width:200px;text-align: left;">
193
+            {{ predialysis.catheter_evaluation_program ? predialysis.catheter_evaluation_program : "" }}
194
+          </div>
195
+          置管部位皮肤
196
+          <div class="inline_block under_line" style="width:200px;text-align: left;">
197
+            {{ predialysis.skin_site_catheterization ? predialysis.skin_site_catheterization : "" }}
198
+          </div>
199
+          是否通畅
200
+          <div class="inline_block under_line" style="width:100px;text-align: left;">
201
+             <span v-if="predialysis.whether_unobstructed ==1">是</span>
202
+             <span v-if="predialysis.whether_unobstructed ==2">否</span>
203
+          </div> -->
204
+          <!-- 留置必要
205
+          <div class="inline_block under_line" style="width:100px;text-align: left;">
206
+            <span v-if="predialysis.lien_necessary ==1">是</span>
207
+            <span v-if="predialysis.lien_necessary ==2">否</span>
208
+          </div> -->
209
+        </div>
176 210
         <div class="row">
177 211
           抗凝药物
178 212
           <div class="inline_block under_line" style="width:92%;text-align: left;">
@@ -913,6 +947,17 @@ export default {
913 947
       }
914 948
       return ''
915 949
     },
950
+
951
+    getTimeOne(val) {
952
+        if(val < 0){
953
+          return ""
954
+        }
955
+        if(val == ""){
956
+        return ""
957
+        }else {
958
+        return uParseTime(val, '{y}-{m}-{d}')
959
+        }
960
+     },
916 961
     printThisPage() {
917 962
       var ptime = Math.round(new Date().getTime() / 1000)
918 963
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')

+ 24 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue 查看文件

@@ -2276,11 +2276,32 @@ export default {
2276 2276
       }
2277 2277
       return ''
2278 2278
     },
2279
+    // getAge: function(val) {
2280
+    //   if (val.birthday != 0) {
2281
+    //     return jsGetAge(val.birth, '-')
2282
+    //   }
2283
+    //   return ''
2284
+    // },
2279 2285
     getAge: function(val) {
2280
-      if (val.birthday != 0) {
2281
-        return jsGetAge(val.birth, '-')
2286
+      if (val.id_card_no == undefined) {
2287
+        return false
2282 2288
       }
2283
-      return ''
2289
+      var thisLen = val.id_card_no.length
2290
+      var birth = ''
2291
+      if (thisLen == 15) {
2292
+        birth = '19' + val.id_card_no.substr(6, 6)
2293
+      } else {
2294
+        birth = val.id_card_no.substr(6, 8)
2295
+      }
2296
+      var birthtwo =
2297
+        birth.substr(0, 4) +
2298
+        '-' +
2299
+        birth.substr(4, 2) +
2300
+        '-' +
2301
+        birth.substr(6, 2)
2302
+
2303
+      var age = jsGetAge(birthtwo, '-')
2304
+      return age
2284 2305
     },
2285 2306
     checkIdCardNo(val) {
2286 2307
       var thisLen = val.length

+ 3 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

@@ -2303,6 +2303,7 @@ export default {
2303 2303
                 record_date: this.record_date,
2304 2304
                 his_patient_id: this.hisPatientInfo.id,
2305 2305
                 reg_type: this.register_type,
2306
+                patient_diagnose:""
2306 2307
               }
2307 2308
 
2308 2309
               for (let i = 0; i < this.prescriptions.length; i++) {
@@ -2725,7 +2726,8 @@ export default {
2725 2726
                 record_date: this.end_time,
2726 2727
                 his_patient_id: this.hisPatientInfo.id,
2727 2728
                 reg_type: this.register_type,
2728
-                p_type: 1
2729
+                p_type: 1,
2730
+                patient_diagnose:""
2729 2731
               }
2730 2732
 
2731 2733
               var month_prescriptions = this.deepClone(this.month_prescriptions)

+ 1 - 0
src/xt_pages/hospitalStation/components/dialysisIndex.vue 查看文件

@@ -63,6 +63,7 @@
63 63
           :stockType="stockType"
64 64
           :mode_id="mode_id"
65 65
           :is_advice_open="is_advice_open"
66
+          :record_date="date"
66 67
         >
67 68
         </nav-igation>
68 69
 

文件差異過大導致無法顯示
+ 3590 - 3590
src/xt_pages/hospitalStation/doctorDesk.vue


+ 40 - 35
src/xt_pages/infor/index.vue 查看文件

@@ -10,12 +10,12 @@
10 10
                 :data="list"
11 11
                 border
12 12
                 style="width: 100%">
13
-                <el-table-column  prop="date" label="序号"  width="50" align="center">
13
+                <el-table-column  prop="date" label="序号" min-width="50"  align="center">
14 14
                    <template slot-scope="scope" >
15 15
                        {{scope.$index + 1 }}
16 16
                    </template>
17 17
                 </el-table-column>
18
-                <el-table-column prop="name"  label="信息模块"  width="100" align="center">
18
+                <el-table-column prop="name"  label="信息模块" min-width="120"  align="center">
19 19
                   <template slot-scope="scope" >
20 20
                       <span v-if="scope.row.module == 1">透析处方</span> 
21 21
                       <span v-if="scope.row.module == 2">接诊评估</span> 
@@ -27,53 +27,54 @@
27 27
                       <span v-if="scope.row.module == 8">透析下机</span> 
28 28
                       <span v-if="scope.row.module == 9">透后评估</span> 
29 29
                       <span v-if="scope.row.module == 10">治疗小结</span> 
30
+                      <span v-if="scope.row.module == 11">耗材出库</span> 
30 31
                    </template>
31 32
                 </el-table-column>
32
-                <el-table-column  prop="address" label="患者姓名" width="100" align="center">
33
+                <el-table-column  prop="address" label="患者姓名" min-width="100" align="center">
33 34
                   <template slot-scope="scope">
34 35
                      {{getPatientName(scope.row.patient_id) }}
35 36
                    </template>
36 37
                 </el-table-column>
37
-                <el-table-column prop="date" label="治疗日期" width="100" align="center">
38
+                <el-table-column prop="date" label="治疗日期"  min-width="100" align="center">
38 39
                    <template  slot-scope="scope" >
39 40
                       {{getTimeOne(scope.row.record_date)  }}
40 41
                    </template>
41 42
                 </el-table-column>
42
-                <el-table-column prop="name"  label="申请人"  width="100" align="center">
43
+                <el-table-column prop="name"  label="申请人"  min-width="100"  align="center">
43 44
                   <template  slot-scope="scope">
44 45
                       {{getUserName(scope.row.creater)  }}
45 46
                    </template>
46 47
                 </el-table-column>
47
-                <el-table-column  prop="address" label="申请时间" width="180" align="center">
48
+                <el-table-column  prop="address" label="申请时间"   min-width="150" align="center">
48 49
                   <template  slot-scope="scope" >
49
-                      {{getTimeTwo(scope.row.record_date)  }}
50
+                      {{getTimeTwo(scope.row.application_date)  }}
50 51
                    </template>
51 52
 
52 53
                 </el-table-column>
53 54
 
54
-                <el-table-column  prop="date" label="状态" width="100" align="center">
55
+                <el-table-column  prop="date" label="状态" align="center"  min-width="100">
55 56
                   <template  slot-scope="scope" >
56 57
                      <span v-if="scope.row.application_status == 1">已审核</span>
57 58
                      <span v-if="scope.row.application_status == 2">未审核</span>
58 59
                      <span v-if="scope.row.application_status == 3">拒绝</span>
59 60
                   </template>
60 61
                 </el-table-column>
61
-                <el-table-column prop="name" label="审批人" width="100" align="center">
62
+                <el-table-column prop="name" label="审批人"  min-width="100" align="center">
62 63
                   <template  slot-scope="scope" >
63 64
                       {{getUserName(scope.row.checker)  }}
64 65
                    </template>
65 66
                 </el-table-column>
66
-                <el-table-column prop="address" label="审批时间" width="180" align="center">
67
+                <el-table-column prop="address" label="审批时间"   min-width="100" align="center">
67 68
                   <template  slot-scope="scope">
68 69
                       {{getTimeOne(scope.row.check_time)  }}
69 70
                    </template>
70 71
                 </el-table-column>
71
-                <el-table-column  prop="address" label="备注" width="180" align="center">
72
+                <el-table-column  prop="address" label="备注"   min-width="100" align="center">
72 73
                   <template  slot-scope="scope">
73 74
                       {{scope.row.remark }}
74 75
                    </template>
75 76
                 </el-table-column>
76
-                <el-table-column prop="address" label="操作" width="180" align="center">
77
+                <el-table-column prop="address" label="操作"   min-width="150" align="center">
77 78
                   <template slot-scope="scope">
78 79
                     <el-tooltip
79 80
                       class="item"
@@ -111,7 +112,7 @@
111 112
               <el-pagination
112 113
                 @size-change="handleSizeChange"
113 114
                 @current-change="handleCurrentChange"
114
-                :page-size="5"
115
+                :page-size="10"
115 116
                 background
116 117
                 style="margin-top:20px;float: right"
117 118
                 :total="total"
@@ -123,12 +124,12 @@
123 124
                 :data="inforList"
124 125
                 border
125 126
                 style="width: 100%">
126
-                <el-table-column  prop="date" label="序号"  width="50" align="center">
127
+                <el-table-column  prop="date" label="序号"  min-width="50" align="center">
127 128
                    <template slot-scope="scope" >
128 129
                        {{scope.$index + 1 }}
129 130
                    </template>
130 131
                 </el-table-column>
131
-                <el-table-column prop="name"  label="信息模块"  width="100" align="center">
132
+                <el-table-column prop="name"  label="信息模块"  min-width="100" align="center">
132 133
                   <template slot-scope="scope" >
133 134
                       <span v-if="scope.row.module == 1">透析处方</span> 
134 135
                       <span v-if="scope.row.module == 2">接诊评估</span> 
@@ -140,48 +141,49 @@
140 141
                       <span v-if="scope.row.module == 8">透析下机</span> 
141 142
                       <span v-if="scope.row.module == 9">透后评估</span> 
142 143
                       <span v-if="scope.row.module == 10">治疗小结</span> 
144
+                      <span v-if="scope.row.module == 11">耗材出库</span> 
143 145
                    </template>
144 146
                 </el-table-column>
145
-                <el-table-column  prop="address" label="患者姓名" width="100" align="center">
147
+                <el-table-column  prop="address" label="患者姓名" min-width="100" align="center">
146 148
                   <template slot-scope="scope">
147 149
                      {{getPatientName(scope.row.patient_id) }}
148 150
                    </template>
149 151
                 </el-table-column>
150
-                <el-table-column prop="date" label="治疗日期" width="100" align="center">
152
+                <el-table-column prop="date" label="治疗日期"  min-width="100" align="center">
151 153
                    <template  slot-scope="scope" >
152 154
                       {{getTimeOne(scope.row.record_date)  }}
153 155
                    </template>
154 156
                 </el-table-column>
155
-                <el-table-column prop="name"  label="申请人"  width="100" align="center">
157
+                <el-table-column prop="name"  label="申请人"  min-width="100" align="center">
156 158
                   <template  slot-scope="scope">
157 159
                       {{getUserName(scope.row.creater)  }}
158 160
                    </template>
159 161
                 </el-table-column>
160
-                <el-table-column  prop="address" label="申请时间" width="180" align="center">
162
+                <el-table-column  prop="address" label="申请时间" min-width="180" align="center">
161 163
                   <template  slot-scope="scope" >
162
-                      {{getTimeTwo(scope.row.record_date)  }}
164
+                      {{getTimeTwo(scope.row.application_date)  }}
163 165
                    </template>
164 166
 
165 167
                 </el-table-column>
166 168
 
167
-                <el-table-column  prop="date" label="状态" width="100" align="center">
169
+                <el-table-column  prop="date" label="状态" min-width="100" align="center">
168 170
                   <template  slot-scope="scope" >
169 171
                      <span v-if="scope.row.application_status == 1">已审核</span>
170 172
                      <span v-if="scope.row.application_status == 2">未审核</span>
171 173
                      <span v-if="scope.row.application_status == 3">拒绝</span>
172 174
                   </template>
173 175
                 </el-table-column>
174
-                <el-table-column prop="name" label="审批人" width="100" align="center">
176
+                <el-table-column prop="name" label="审批人" min-width="100" align="center">
175 177
                   <template  slot-scope="scope" >
176 178
                       {{getUserName(scope.row.checker)  }}
177 179
                    </template>
178 180
                 </el-table-column>
179
-                <el-table-column prop="address" label="审批时间" width="180" align="center">
181
+                <el-table-column prop="address" label="审批时间" min-width="180" align="center">
180 182
                   <template  slot-scope="scope">
181 183
                       {{getTimeOne(scope.row.check_time)  }}
182 184
                    </template>
183 185
                 </el-table-column>
184
-                <el-table-column  prop="address" label="备注" width="260" align="center">
186
+                <el-table-column  prop="address" label="备注" min-width="260" align="center">
185 187
                   <template  slot-scope="scope">
186 188
                       {{scope.row.remark }}
187 189
                    </template>
@@ -190,12 +192,12 @@
190 192
                 
191 193
               </el-table>
192 194
               <el-pagination
193
-                @size-change="handleSizeChange"
194
-                @current-change="handleCurrentChange"
195
-                :page-size="5"
195
+                @size-change="handleSizeChangeOne"
196
+                @current-change="handleCurrentChangeOne"
197
+                :page-size="10"
196 198
                 background
197 199
                 style="margin-top:20px;float: right"
198
-                :total="total"
200
+                :total="totalOne"
199 201
             ></el-pagination>
200 202
 
201 203
             </el-tab-pane>
@@ -231,8 +233,7 @@
231 233
      <el-dialog
232 234
         title="信息归档设置"
233 235
         :visible.sync="dialogVisible"
234
-        width="30%"
235
-        :before-close="handleClose">
236
+        width="30%">
236 237
         <span>
237 238
           <span>归档天数:</span> <el-input v-model="week_day" style="width:200px"></el-input>   
238 239
         </span>
@@ -270,7 +271,7 @@
270 271
     },
271 272
     methods: {
272 273
         handleClick(val){
273
-          console.log("val----------------",val)
274
+           this.getlist()
274 275
         },
275 276
         toSeeting(){
276 277
           var params = {
@@ -296,7 +297,9 @@
296 297
             SaveDialysisInformationSetting(params).then(response=>{
297 298
              if(response.data.state == 1){
298 299
                var informaitonSetting = response.data.data.informaitonSetting
300
+               this.$message.success("保存成功!")
299 301
                this.dialogVisible = false
302
+               this.toSeeting()
300 303
              }
301 304
           })
302 305
         },
@@ -305,6 +308,7 @@
305 308
              limit:this.limit,
306 309
              page:this.page
307 310
            }
311
+           console.log("params23433232wo",params)
308 312
           getDialysisInformationSetting(params).then(response=>{
309 313
             if(response.data.state == 1){
310 314
               var informaitonSetting =  response.data.data.informaitonSetting
@@ -338,8 +342,7 @@
338 342
         this.getlist()
339 343
       },
340 344
       getPatientName(patient_id){
341
-        console.log("patinet_id---",patient_id)
342
-        console.log("patients",this.patients)
345
+       
343 346
         var name = ""
344 347
         for(let i=0;i<this.patients.length;i++){
345 348
            if(patient_id == this.patients[i].id){
@@ -359,7 +362,7 @@
359 362
         if(val == ""){
360 363
         return ""
361 364
         }else {
362
-        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
365
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
363 366
         }
364 367
      },
365 368
      getUserName(admin_user_id){
@@ -423,12 +426,14 @@
423 426
             }
424 427
           });
425 428
         }).catch(() => {});
426
-    }
429
+    },
430
+
427 431
     
428 432
     },
429 433
    
430 434
     created(){
431 435
       this.getlist()
436
+     
432 437
     }
433 438
   };
434 439
 </script>

+ 34 - 1
src/xt_pages/management/components/UserForm.vue 查看文件

@@ -979,7 +979,14 @@
979 979
                 </td>
980 980
 
981 981
                 <td style="text-align:center;font-size:15px;height:30px">
982
-                  {{ item.user_name }}
982
+                  <!-- {{ item.user_name }} -->
983
+
984
+                  <span v-if="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id) == ''">
985
+                     {{ item.user_name }}
986
+                  </span>
987
+                  <span v-else>
988
+                      <img style="height:30px;" :src="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id)" alt="" srcset="">
989
+                  </span>
983 990
                 </td>
984 991
               </tr>
985 992
             </table>
@@ -1202,6 +1209,8 @@ export default {
1202 1209
       four: true,
1203 1210
       showone: false,
1204 1211
       org_id:0,
1212
+      operators: [],
1213
+      operatorMaps:{},
1205 1214
     };
1206 1215
   },
1207 1216
   methods: {
@@ -1568,6 +1577,17 @@ export default {
1568 1577
         if (response.data.state === 1) {
1569 1578
           var approle = response.data.data.approle;
1570 1579
           this.autograph = approle;
1580
+          this.operators =  response.data.data.operators
1581
+          if (this.operators.length > 0) {
1582
+              var operatorsLen = this.operators.length;
1583
+              for (var index = 0; index < operatorsLen; index++) {
1584
+                this.$set(
1585
+                  this.operatorMaps,
1586
+                  this.operators[index].id,
1587
+                  this.operators[index]
1588
+                );
1589
+              }
1590
+            }
1571 1591
         }
1572 1592
       });
1573 1593
     },
@@ -2596,6 +2616,19 @@ export default {
2596 2616
       formatJson(filterVal, jsonData) {
2597 2617
         return jsonData.map(v => filterVal.map(j => v[j]));
2598 2618
       },
2619
+      setAdminUserES(id) {
2620
+           
2621
+           if (id === 0) {
2622
+           return ''
2623
+           }
2624
+           var user_name = ""
2625
+           for(let i=0;i<this.operators.length;i++){
2626
+              if(id == this.operators[i].admin_user_id){
2627
+                 user_name = this.operators[i].url
2628
+              }
2629
+           }
2630
+           return user_name
2631
+       },
2599 2632
     },
2600 2633
   created() {
2601 2634
     this.getAllSubregion();

+ 2 - 4
src/xt_pages/management/components/WaterForm.vue 查看文件

@@ -152,7 +152,7 @@
152 152
          <el-row>
153 153
             <el-col :span="8">
154 154
                 <el-form-item label="精密过滤器(MPa):"  class="st">
155
-                    <el-input  v-model.number="form.ultrafilter"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
155
+                    <el-input  v-model="form.ultrafilter"  style="width:100px"></el-input>
156 156
                 </el-form-item>
157 157
             </el-col>
158 158
          </el-row>
@@ -164,9 +164,7 @@
164 164
          <el-row>
165 165
             <el-col :span="8">
166 166
                 <el-form-item label="硬度监测(mg/l):"  class="st">
167
-                    <el-input  v-model="form.hardness_monitoring" style="width:100px"
168
-                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
169
-                     ></el-input>
167
+                    <el-input  v-model="form.hardness_monitoring" style="width:100px"></el-input>
170 168
                 </el-form-item>
171 169
             </el-col>
172 170
             <el-col :span="8">

+ 40 - 7
src/xt_pages/management/components/WaterFormList.vue 查看文件

@@ -152,7 +152,7 @@
152 152
           <el-table-column label="水质监测" align="center" min-width="110px">
153 153
             <el-table-column label="硬度" align="center" min-width="110px">
154 154
               <template slot-scope="scope">
155
-                {{ scope.row.hardness_monitoring?scope.row.hardness_monitoring:"" }}
155
+                {{ scope.row.hardness_monitoring?scope.row.hardness_monitoring:0 }}
156 156
               </template>
157 157
             </el-table-column>
158 158
             <el-table-column label="总氯" align="center" min-width="110px">
@@ -196,6 +196,7 @@
196 196
             <el-table-column label="记录人" align="center" min-width="110px">
197 197
               <template slot-scope="scope">
198 198
                  {{ getDocName(scope.row.admin_user_id) }}
199
+                
199 200
               </template>
200 201
             </el-table-column>
201 202
 
@@ -397,7 +398,7 @@
397 398
          <el-row>
398 399
             <el-col :span="8">
399 400
                 <el-form-item label="精密过滤器(MPa):"  class="st">
400
-                    <el-input  v-model="form.ultrafilter" style="width:100px" type="number"></el-input>
401
+                    <el-input  v-model="form.ultrafilter" style="width:100px"></el-input>
401 402
                 </el-form-item>
402 403
             </el-col>
403 404
          </el-row>
@@ -735,7 +736,7 @@
735 736
                 <td
736 737
                   style="text-align:center;width:60px;font-size:15px"
737 738
                 >
738
-                {{ item.hardness_monitoring }}
739
+                {{ item.hardness_monitoring?item.hardness_monitoring:0 }}
739 740
                 </td>
740 741
                 <td
741 742
                   style="text-align:center;width:60px;font-size:15px"
@@ -776,7 +777,14 @@
776 777
                 </td>
777 778
 
778 779
                 <td style="text-align:center;width:70px;font-size:15px">
779
-                  {{ getDocName(item.admin_user_id) }}
780
+                  <!-- {{ getDocName(item.admin_user_id) }} -->
781
+
782
+                  <span v-if="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id) == ''">
783
+                     {{getDocName(item.admin_user_id)}}
784
+                 </span>
785
+                  <span v-else>
786
+                      <img style="height:30px;" :src="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id)" alt="" srcset="">
787
+                  </span>
780 788
                 </td>
781 789
 
782 790
 
@@ -878,6 +886,8 @@
878 886
            nurseList:[],
879 887
            selectCulture: [],
880 888
            hiddenShow:false,
889
+           operators: [],
890
+           operatorMaps:{},
881 891
         }
882 892
       },
883 893
       methods:{
@@ -905,7 +915,17 @@
905 915
                var total = response.data.data.total
906 916
                this.total = total
907 917
                this.adminRole = response.data.data.adminRole
908
-
918
+               this.operators = response.data.data.operators
919
+               if (this.operators.length > 0) {
920
+                var operatorsLen = this.operators.length
921
+                for (var index = 0; index < operatorsLen; index++) {
922
+                this.$set(
923
+                    this.operatorMaps,
924
+                    this.operators[index].id,
925
+                    this.operators[index]
926
+                )
927
+               }
928
+              }
909 929
 
910 930
              }
911 931
           })
@@ -1047,7 +1067,7 @@
1047 1067
             this.form.snd_tank = detail.snd_tank?detail.snd_tank:""
1048 1068
             this.form.resin_tank = detail.resin_tank?detail.resin_tank:""
1049 1069
             this.form.ultrafilter = detail.ultrafilter?detail.ultrafilter:""
1050
-            this.form.hardness_monitoring = detail.hardness_monitoring?detail.hardness_monitoring:""
1070
+            this.form.hardness_monitoring = detail.hardness_monitoring?detail.hardness_monitoring:0
1051 1071
             this.form.total_chlorine_detection= detail.total_chlorine_detection?detail.total_chlorine_detection:""
1052 1072
             this.form.ph_detection = detail.ph_detection?detail.ph_detection:""
1053 1073
             this.form.concentration_of_peroxyacetic_acid = detail.concentration_of_peroxyacetic_acid?detail.concentration_of_peroxyacetic_acid:""
@@ -1336,9 +1356,22 @@
1336 1356
         formatJson(filterVal, jsonData) {
1337 1357
           return jsonData.map(v => filterVal.map(j => v[j]));
1338 1358
         },
1359
+        setAdminUserES(id) {
1360
+           
1361
+           if (id === 0) {
1362
+           return ''
1363
+           }
1364
+           var user_name = ""
1365
+           for(let i=0;i<this.operators.length;i++){
1366
+              if(id == this.operators[i].admin_user_id){
1367
+                 user_name = this.operators[i].url
1368
+              }
1369
+           }
1370
+         
1371
+          return user_name
1372
+       },
1339 1373
       },
1340 1374
       created(){
1341
-        console.log("list+++++++++++++++++++++++")
1342 1375
         this.getlist()
1343 1376
       }
1344 1377
     }

+ 20 - 1
src/xt_pages/management/index.vue 查看文件

@@ -30,6 +30,15 @@
30 30
           @click="seahcerMacherInfo()"
31 31
           >搜索</el-button
32 32
         >
33
+
34
+        <!-- <el-button
35
+          class="filter-item"
36
+          type="primary"
37
+          icon="el-icon-search"
38
+          size="small"
39
+          @click="Auto()"
40
+          >自动生成</el-button
41
+        > -->
33 42
       </div>
34 43
 
35 44
       <div class="cell clearfix">
@@ -169,7 +178,7 @@
169 178
 
170 179
 <script>
171 180
 import BreadCrumb from "../components/bread-crumb";
172
-import { getAllMachineInfo, getAllSubregion,getUserMachTotalCount,deleteManageMent } from "@/api/manage";
181
+import { getAllMachineInfo, getAllSubregion,getUserMachTotalCount,deleteManageMent,getInformationManaList } from "@/api/manage";
173 182
 import ManageForm from "./components/ManageForm";
174 183
 
175 184
 export default {
@@ -397,6 +406,16 @@ export default {
397 406
           })
398 407
         }
399 408
       
409
+    },
410
+
411
+    Auto(){
412
+       
413
+      getInformationManaList().then(response=>{
414
+        if(response.data.state == 1){
415
+          var list = response.data.data.list
416
+          this.$message.success("保存成功!")
417
+        }
418
+      })
400 419
     }
401 420
   },
402 421
   created() {

+ 1 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

@@ -634,7 +634,7 @@
634 634
           'certificates':this.form.certificates,
635 635
         }
636 636
 
637
-        if ((this.$store.getters.xt_user.org_id == 10387 && this.form.id_card_type ==  4) || (this.$store.getters.xt_user.org_id == 4 && this.form.id_card_type ==  4)){
637
+        if ((this.$store.getters.xt_user.org_id == 10387 && this.form.id_card_type ==  4) || (this.$store.getters.xt_user.org_id == 4 && this.form.id_card_type ==  4)) {
638 638
           try {
639 639
             //检测当前浏览器是否支持websocket模式
640 640
             window.WebSocket = window.WebSocket || window.MozWebSocket;

文件差異過大導致無法顯示
+ 2719 - 2654
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue


+ 1 - 0
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue 查看文件

@@ -63,6 +63,7 @@
63 63
           :lastAssessment="lastAssessment"
64 64
           :stockType="stockType"
65 65
           :mode_id="mode_id"
66
+          :record_date="date"
66 67
         >
67 68
         </nav-igation>
68 69
 

+ 17 - 16
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -165,7 +165,7 @@
165 165
                            :org_id="org_id"
166 166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
167 167
                            v-on:getSunziValue = "getSunziValue"
168
-                           :hisPatientInfo="hisPatientInfo" :patient_diagnoses="patient_diagnoses" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
168
+                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
169 169
                            v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
170 170
 
171 171
 
@@ -275,6 +275,7 @@
275 275
           </template>
276 276
         </el-table-column>
277 277
       </el-table>
278
+
278 279
       <el-dialog
279 280
           class="centerDialog"
280 281
           width="600px"
@@ -1469,8 +1470,8 @@ export default {
1469 1470
         'record_date': this.record_date,
1470 1471
         'type': this.radio,
1471 1472
         'sch_type': this.schedule_type
1472
-
1473 1473
       }
1474
+
1474 1475
       this.un_cure_data = []
1475 1476
       this.cure_data = []
1476 1477
       this.all_data = []
@@ -1765,7 +1766,7 @@ export default {
1765 1766
               // }
1766 1767
 
1767 1768
               var preTime = nowTime
1768
-              if (this.$store.getters.xt_user.org.id != 9919 || this.$store.getters.xt_user.org.id != 10485){
1769
+              if ( this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485){
1769 1770
                 if (prescription.pre_time == 0) {
1770 1771
                   if (this.schedule.schedule_type == 1) {
1771 1772
                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -1922,7 +1923,7 @@ export default {
1922 1923
                   tempProject.push(obj)
1923 1924
                 }
1924 1925
                 var preTime = nowTime
1925
-                if (this.$store.getters.xt_user.org.id != 9919 || this.$store.getters.xt_user.org.id != 10485) {
1926
+                if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485) {
1926 1927
                   if (this.schedule.schedule_type == 1) {
1927 1928
                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1928 1929
                   } else if (this.schedule.schedule_type == 2) {
@@ -1976,7 +1977,7 @@ export default {
1976 1977
             }
1977 1978
           }
1978 1979
           console.log('~~~~~00000222222',this.prescriptions)
1979
-          this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
1980
+          this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis,this.patient_diagnoses)
1980 1981
         }
1981 1982
       })
1982 1983
 
@@ -2232,7 +2233,7 @@ export default {
2232 2233
                     // }
2233 2234
 
2234 2235
                     var preTime = nowTime
2235
-                    if (this.$store.getters.xt_user.org.id != 9919 ||this.$store.getters.xt_user.org.id != 10485 ) {
2236
+                    if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 ) {
2236 2237
                       if (prescription.pre_time == 0) {
2237 2238
                         if (this.schedule.schedule_type == 1) {
2238 2239
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -2390,7 +2391,7 @@ export default {
2390 2391
 
2391 2392
                       var preTime = nowTime
2392 2393
                       // var preTime = ''
2393
-                      if(this.org_id !=  9919 || this.org_id !=  10485) {
2394
+                      if(this.org_id != 0 && this.org_id !=  9919 && this.org_id !=  10485) {
2394 2395
                         if (this.schedule.schedule_type == 1) {
2395 2396
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2396 2397
                         } else if (this.schedule.schedule_type == 2) {
@@ -2563,7 +2564,7 @@ export default {
2563 2564
                     //   }
2564 2565
                   }
2565 2566
                 }
2566
-                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
2567
+                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis,this.patient_diagnoses)
2567 2568
                 this.$refs.child.watchSign = 0
2568 2569
               }
2569 2570
             })
@@ -3086,7 +3087,7 @@ export default {
3086 3087
                     // }
3087 3088
                   }
3088 3089
                 }
3089
-                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
3090
+                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis,this.patient_diagnoses)
3090 3091
                 this.$refs.child.watchSign = 0
3091 3092
               }
3092 3093
             })
@@ -3600,7 +3601,7 @@ export default {
3600 3601
                   // }
3601 3602
                 }
3602 3603
               }
3603
-              this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
3604
+              this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis,this.patient_diagnoses)
3604 3605
               this.$refs.child.watchSign = 0
3605 3606
             }
3606 3607
           })
@@ -3896,7 +3897,7 @@ export default {
3896 3897
 
3897 3898
                     var preTime = nowTime
3898 3899
 
3899
-                    if(this.org_id != 9919 || this.org_id  != 10485 ) {
3900
+                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id  != 10485 ) {
3900 3901
                       if (prescription.pre_time == 0) {
3901 3902
                         if (this.schedule.schedule_type == 1) {
3902 3903
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -4050,7 +4051,7 @@ export default {
4050 4051
 
4051 4052
                       // var preTime = nowTime
4052 4053
                       var preTime = nowTime
4053
-                      if(this.org_id != 9919 ||  this.org_id != 10485) {
4054
+                      if( this.org_id != 0 && this.org_id != 9919 &&  this.org_id != 10485) {
4054 4055
                         if (this.schedule.schedule_type == 1) {
4055 4056
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4056 4057
                         } else if (this.schedule.schedule_type == 2) {
@@ -4223,7 +4224,7 @@ export default {
4223 4224
                     // }
4224 4225
                   }
4225 4226
                 }
4226
-                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
4227
+                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis,this.patient_diagnoses)
4227 4228
               }
4228 4229
             })
4229 4230
 
@@ -4533,7 +4534,7 @@ export default {
4533 4534
 
4534 4535
                     var preTime = nowTime
4535 4536
 
4536
-                    if(this.org_id != 9919 || this.org_id != 10485) {
4537
+                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485) {
4537 4538
                       if (prescription.pre_time == 0) {
4538 4539
                         // preTime = nowTime
4539 4540
                         if (this.schedule.schedule_type == 1) {
@@ -4690,7 +4691,7 @@ export default {
4690 4691
 
4691 4692
                       var preTime = nowTime
4692 4693
                       // var preTime = ''
4693
-                      if(this.org_id != 9919  || this.org_id != 10485) {
4694
+                      if(this.org_id != 0 && this.org_id != 9919  && this.org_id != 10485) {
4694 4695
                         if (this.schedule.schedule_type == 1) {
4695 4696
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4696 4697
                         } else if (this.schedule.schedule_type == 2) {
@@ -4746,7 +4747,7 @@ export default {
4746 4747
 
4747 4748
                   }
4748 4749
                 }
4749
-                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
4750
+                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis,this.patient_diagnoses)
4750 4751
               }
4751 4752
             })
4752 4753
           } else {

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

@@ -197,7 +197,7 @@
197 197
           <!--            <p>药费:551.2元</p>-->
198 198
           <!--            <p>药费:466.2元</p>-->
199 199
         </div>
200
-        <div style="page-break-after: always"></div>
200
+        <!-- <div style="page-break-after: always"></div> -->
201 201
       </div>
202 202
     </div>
203 203
   </div>

+ 13 - 12
src/xt_pages/qcd/basicInformationAnalysis.vue 查看文件

@@ -762,6 +762,7 @@ export default {
762 762
       }
763 763
     },
764 764
     selectLapseTo(state) {
765
+      console.log("statt---23-322323",state)
765 766
       this.stateType = state;
766 767
       this.listQuery.state = state;
767 768
       //获取本月当前机构的透析模式
@@ -1338,23 +1339,23 @@ export default {
1338 1339
     },
1339 1340
     selectSource(source) {
1340 1341
       this.sourceType = source
1341
-      this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1342
-      this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1343
-      this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1344
-      this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1345
-      this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1346
-      this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1342
+      this.getDialysisModeType(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1343
+      this.getTotalLapseCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1344
+      this.getTotalSexCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1345
+      this.getTotalInfectiousCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1346
+      this.getTotalAgeCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1347
+      this.getTotalDialysisCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1347 1348
       this.getRolloutCount(this.lapsetoType,this.sourceType)
1348 1349
     },
1349 1350
     selectLapseOne(lapseto) {
1350 1351
       console.log("lapseto22222",lapseto)
1351 1352
       this.lapsetoType = lapseto
1352
-      this.getDialysisModeType(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1353
-      this.getTotalLapseCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1354
-      this.getTotalSexCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1355
-      this.getTotalInfectiousCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1356
-      this.getTotalAgeCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1357
-      this.getTotalDialysisCount(this.startDate,this.endDate,this.lapsetoType,this.sourceType)
1353
+      this.getDialysisModeType(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1354
+      this.getTotalLapseCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1355
+      this.getTotalSexCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1356
+      this.getTotalInfectiousCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1357
+      this.getTotalAgeCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1358
+      this.getTotalDialysisCount(this.listQuery.start_time,this.list.listQuery.end_time,this.lapsetoType,this.sourceType)
1358 1359
       this.getRolloutCount(this.lapsetoType,this.sourceType)
1359 1360
     },
1360 1361
   },

+ 0 - 1
src/xt_pages/qcd/patientAnalysis/bloodPressure.vue 查看文件

@@ -147,7 +147,6 @@
147 147
   </div>
148 148
 </template>
149 149
 
150
-
151 150
 <script>
152 151
 import { GetPABloodPressureData  } from "@/api/qcd";
153 152
 import PieChart from '../components/PieChart'

+ 22 - 3
src/xt_pages/qcd/qualitycontrol/totalSstatistics.vue 查看文件

@@ -183,16 +183,35 @@ methods: {
183 183
         top: "0%",
184 184
         left: "center"
185 185
       },
186
+      tooltip : {
187
+        trigger: 'item',
188
+        formatter: "{a} <br/>{b} : {c} ({d}%)"
189
+      },
186 190
       series: [
187 191
         {
188 192
           type: "pie",
189 193
           label: {
190
-            show: true,
191
-            formatter:"{b} : {d}% ({c})"
194
+            // show: true,
195
+            // formatter:"{b} : {d}% ({c})",
196
+            normal : {
197
+              formatter: '{b}:{c}: ({d}%)',
198
+              textStyle : {
199
+                  fontWeight : 'normal',
200
+                  fontSize : 15,
201
+                  color : "black"
202
+              }
203
+            }
192 204
             // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})" 
193 205
           },
194 206
           radius: "65%", //饼图半径
195
-          data: this.pieData
207
+          data: this.pieData,
208
+          itemStyle : {
209
+            emphasis: {
210
+                  shadowBlur: 10,
211
+                  shadowOffsetX: 0,
212
+                  shadowColor: 'rgba(0, 0, 0, 0.5)'
213
+              }
214
+          }
196 215
         }
197 216
       ]
198 217
     };

+ 8 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue 查看文件

@@ -175,6 +175,12 @@
175 175
           </template>
176 176
         </el-table-column>
177 177
 
178
+        <el-table-column label="审核人" align="center"  v-if="org_id == 3877 || org_id == 10318">
179
+          <template slot-scope="scope">
180
+            {{ getXuserName(scope.row.checker) }}
181
+          </template>
182
+        </el-table-column>
183
+
178 184
         <el-table-column label="入库方式" align="center">
179 185
           <template slot-scope="scope">
180 186
             <span v-if="scope.row.is_sys == 13">调拨入库</span>
@@ -472,6 +478,7 @@ export default {
472 478
   name: "drugStockInOrder",
473 479
   components: { BreadCrumb },
474 480
   created() {
481
+    this.org_id = this.$store.getters.xt_user.org.id
475 482
     if (this.$route.path == "/Pharmacy/drugs/stock/in") {
476 483
       this.crumbs = [
477 484
         { path: false, name: "药品管理" },
@@ -552,6 +559,7 @@ export default {
552 559
         { id: 2, name: "未审核" },
553 560
       ],
554 561
       exportLoding:false,
562
+      org_id:0
555 563
     };
556 564
   },
557 565
 

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue 查看文件

@@ -59,7 +59,7 @@
59 59
               <td style="line-height:18px">{{ item.batch_number }}</td>
60 60
               <td style="line-height:18px">{{ getTime(item.product_date,'{y}-{m}-{d}')}}</td>
61 61
               <td style="line-height:18px">{{ getTime(item.expiry_date,'{y}-{m}-{d}')}}</td>
62
-              <td style="line-height:18px">{{ getTime(it.ctime,'{y}-{m}-{d}')}}</td>
62
+              <td style="line-height:18px">{{ getTime(it.warehousing_time,'{y}-{m}-{d}')}}</td>
63 63
               <td style="line-height:18px">正常<br>入库</td>
64 64
               <td style="line-height:18px">合格</td>
65 65
             </tr>

+ 8 - 1
src/xt_pages/stock/stockInOrder.vue 查看文件

@@ -161,6 +161,12 @@
161 161
           </template>
162 162
         </el-table-column>
163 163
 
164
+        <el-table-column label="审核人" align="center" v-if="org_id == 3877 || org_id == 10318">
165
+          <template slot-scope="scope">
166
+            {{ getXuserName(scope.row.checker) }}
167
+          </template>
168
+        </el-table-column>
169
+
164 170
         <el-table-column label="入库方式" align="center">
165 171
           <template slot-scope="scope">
166 172
             <span v-if="scope.row.is_sys == 12">调拨入库</span>
@@ -771,7 +777,7 @@ export default {
771 777
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
772 778
       "-" +
773 779
       (nowDay < 10 ? "0" + nowDay : nowDay);
774
-
780
+    this.org_id = this.$store.getters.xt_user.org.id
775 781
     this.GetWarehouse();
776 782
     this.GetConfigInfo();
777 783
     this.fetchAllAdminUsers();
@@ -887,6 +893,7 @@ export default {
887 893
       ],
888 894
       check_id: 0,
889 895
       exportLoding:false,
896
+      org_id:0
890 897
     };
891 898
 
892 899
 

+ 387 - 387
src/xt_pages/stock/stockInOrderDetailPrint.vue 查看文件

@@ -1,445 +1,444 @@
1 1
 <template>
2
-    <div class="main-contain">
3
-        <div class="position">
4
-        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-        <el-row style="float:right;">
6
-            <el-col :span="24">
7
-            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
-            </el-col>
9
-        </el-row>
10
-        </div>
11
-        <div class="app-container" style="background-color: white;">
12
-            <div id="print_content">
13
-                <div class="print_main_content" v-for="(it,index) in warehousingInfo" :key="index" >
14
-                  <div style="margin-bottom: 20px; page-break-after: always;">
15
-                    <div class="order_title_panl" style="text-align:center;">
16
-                        <div style="font-size:22px;font-weight:bold;">{{ orgName }}</div>
17
-                        <span style="font-weight:500;font-size:18px; text-align: center;">耗材入库登记单</span>
2
+  <div class="main-contain">
3
+      <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+          <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+      </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+          <div id="print_content">
13
+              <div class="print_main_content" v-for="(it,index) in warehousingInfo" :key="index" >
14
+                <div style="margin-bottom: 20px; page-break-after: always;">
15
+                  <div class="order_title_panl" style="text-align:center;">
16
+                      <div style="font-size:22px;font-weight:bold;">{{ orgName }}</div>
17
+                      <span style="font-weight:500;font-size:18px; text-align: center;">耗材入库登记单</span>
18
+                  </div>
19
+                  <div style="display:flex;justify-content: space-between;">
20
+                    <div style="text-align:left;margin-bottom:1px;font-size: 18px;">
21
+                      单据编号:{{it.warehousing_order}}
18 22
                     </div>
19
-                    <div style="display:flex;justify-content: space-between;">
20
-                      <div style="text-align:left;margin-bottom:1px;font-size: 18px;">
21
-                        单据编号:{{it.warehousing_order}}
22
-                      </div>
23
-                      <div style="text-align:right;margin-bottom:1px;font-size: 18px;">
24
-                        打印时间:{{time_now}}
25
-                      </div>
23
+                    <div style="text-align:right;margin-bottom:1px;font-size: 18px;">
24
+                      打印时间:{{time_now}}
26 25
                     </div>
27
-                    
28
-                    <div class="table_panel">
29
-                        <table class="table">
30
-                            <thead>
31
-                                <tr>
32
-                                    <td style="line-height:18px;" width="80">耗材<br>名称</td>
33
-                                    <td style="line-height:18px;" width="80">注册证号/批准文号/备案凭证号</td>
34
-                                    <td style="line-height:18px;" width="80">规格<br>型号</td>
35
-                                    <td style="line-height:18px;" width="80">生产<br>厂商</td>
36
-                                    <td style="line-height:18px;" width="80">经销商</td>
37
-                                    <td style="line-height:18px;" width="80">单位</td>
38
-                                    <td style="line-height:18px;" width="80">进货价</td>
39
-                                    <td style="line-height:18px;" width="80">入库<br>数量</td> 
40
-                                    <td style="line-height:18px;" width="60">总价</td>
41
-                                    <td style="line-height:18px;" width="80">批号</td>
42
-                                    <td style="line-height:18px;" width="120">生产日期</td>
43
-                                    <td style="line-height:18px;" width="120">有效日期</td>
44
-                                    <td style="line-height:18px;" width="120">入库日期</td>
45
-                                    <td style="line-height:18px;" width="60">质检<br>意见</td>
46
-                                    <td style="line-height:18px;" width="60">验收<br>结论</td>
47
-                                </tr>
48
-                            </thead>
49
-                            <tbody>
50
-                                <tr v-for='(item,index) in it.child' :key="index">
51
-                                    <td style="line-height:18px;"><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
52
-                                    <td style="line-height:18px;">{{item.register_number}} <span v-if="item.license_number !=''">/</span> {{item.license_number}}</td>
53
-                                    <td style="line-height:18px;"><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
54
-                                    <td style="line-height:18px;">{{ getManufacturer(item.good_id) }}</td>
55
-                                    <td style="line-height:18px;">{{ getDeatl(item.dealer) }}</td>
56
-                                    <td style="line-height:18px;"><span v-if="item.good_id!=0">{{item.GoodInfo.packing_unit}}</span></td>
57
-                                    <td style="line-height:18px;">{{item.price}}</td>
58
-                                    <td style="line-height:18px;">{{item.warehousing_count}}</td> 
59
-                                    <td style="line-height:18px;">{{(item.warehousing_count*item.price).toFixed(2)}}</td>
60
-                                    <td style="line-height:18px;">{{ item.number }}</td>
61
-                                    <td style="line-height:18px;">{{ getTime(item.product_date) }}</td>
62
-                                    <td style="line-height:18px;">{{ getTime(item.expiry_date) }}</td>
63
-                                    <td style="line-height:18px;">{{ getTime(item.ctime) }}</td>
64
-                                    <td style="line-height:18px;">正常<br>入库</td>
65
-                                    <td style="line-height:18px;">合格</td>
66
-                                </tr>
67
-                                <tr>
68
-                                  <td>合计</td>
69
-                                  <td colspan="7" style="text-align:center;"></td>
70
-                                  <td style="text-align:right;">{{getAllPice(it.id).toFixed(2)}}</td>
71
-                                  <td colspan="6" style="text-align:center"></td>
72
-                               </tr>
73
-                            </tbody>
74
-                        </table>
26
+                  </div>
27
+                  
28
+                  <div class="table_panel">
29
+                      <table class="table">
30
+                          <thead>
31
+                              <tr>
32
+                                  <td style="line-height:18px;" width="80">耗材<br>名称</td>
33
+                                  <td style="line-height:18px;" width="80">注册证号/批准文号/备案凭证号</td>
34
+                                  <td style="line-height:18px;" width="80">规格<br>型号</td>
35
+                                  <td style="line-height:18px;" width="80">生产<br>厂商</td>
36
+                                  <td style="line-height:18px;" width="80">经销商</td>
37
+                                  <td style="line-height:18px;" width="80">单位</td>
38
+                                  <td style="line-height:18px;" width="80">进货价</td>
39
+                                  <td style="line-height:18px;" width="80">入库<br>数量</td> 
40
+                                  <td style="line-height:18px;" width="60">总价</td>
41
+                                  <td style="line-height:18px;" width="80">批号</td>
42
+                                  <td style="line-height:18px;" width="120">生产日期</td>
43
+                                  <td style="line-height:18px;" width="120">有效日期</td>
44
+                                  <td style="line-height:18px;" width="120">入库日期</td>
45
+                                  <td style="line-height:18px;" width="60">质检<br>意见</td>
46
+                                  <td style="line-height:18px;" width="60">验收<br>结论</td>
47
+                              </tr>
48
+                          </thead>
49
+                          <tbody>
50
+                              <tr v-for='(item,index) in it.child' :key="index">
51
+                                  <td style="line-height:18px;"><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
52
+                                  <td style="line-height:18px;">{{item.register_number}} <span v-if="item.license_number !=''">/</span> {{item.license_number}}</td>
53
+                                  <td style="line-height:18px;"><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
54
+                                  <td style="line-height:18px;">{{ getManufacturer(item.good_id) }}</td>
55
+                                  <td style="line-height:18px;">{{ getDeatl(item.dealer) }}</td>
56
+                                  <td style="line-height:18px;"><span v-if="item.good_id!=0">{{item.GoodInfo.packing_unit}}</span></td>
57
+                                  <td style="line-height:18px;">{{item.price}}</td>
58
+                                  <td style="line-height:18px;">{{item.warehousing_count}}</td> 
59
+                                  <td style="line-height:18px;">{{(item.warehousing_count*item.price).toFixed(2)}}</td>
60
+                                  <td style="line-height:18px;">{{ item.number }}</td>
61
+                                  <td style="line-height:18px;">{{ getTime(item.product_date) }}</td>
62
+                                  <td style="line-height:18px;">{{ getTime(item.expiry_date) }}</td>
63
+                                  <td style="line-height:18px;">{{ getTime(it.warehousing_time) }}</td>
64
+                                  <td style="line-height:18px;">正常<br>入库</td>
65
+                                  <td style="line-height:18px;">合格</td>
66
+                              </tr>
67
+                              <tr>
68
+                                <td>合计</td>
69
+                                <td colspan="7" style="text-align:center;"></td>
70
+                                <td style="text-align:right;">{{getAllPice(it.id).toFixed(2)}}</td>
71
+                                <td colspan="6" style="text-align:center"></td>
72
+                             </tr>
73
+                          </tbody>
74
+                      </table>
75 75
 
76
-                        <div style="display:flex;margin-top:1px;float:right;">
77
-                            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
78
-                            <div style="width:80px;" v-if='orgId != 10024'>药材主任:</div><div style="width:100px;"></div>
79
-                            <div style="width:50px;">会计:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
80
-                            <div style="width:50px;">审核:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
81
-                            <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(it.creater) }}</div>
82
-                       </div>
83
-                    </div>
76
+                      <div style="display:flex;margin-top:1px;float:right;">
77
+                          <div style="width:50px;">审批:</div><div style="width:100px;"></div>
78
+                          <div style="width:80px;" v-if='orgId != 10024'>药材主任:</div><div style="width:100px;"></div>
79
+                          <div style="width:50px;">会计:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
80
+                          <div style="width:50px;">审核:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
81
+                          <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(it.creater) }}</div>
82
+                     </div>
84 83
                   </div>
85 84
                 </div>
86
-            </div>
87
-        </div>
88
-    </div>
85
+              </div>
86
+          </div>
87
+      </div>
88
+  </div>
89 89
 </template>
90 90
 
91 91
 <script>
92 92
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
93 93
 import {
94
-  GetAllConfig,
95
-  getWarehouseInfoList,
96
-  getGoodInfoList
94
+GetAllConfig,
95
+getWarehouseInfoList,
96
+getGoodInfoList
97 97
 } from "@/api/stock";
98 98
 import { fetchAllAdminUsers } from "@/api/doctor";
99 99
 import print from 'print-js'
100 100
 const moment = require('moment')
101 101
 import { uParseTime } from '@/utils/tools'
102 102
 export default {
103
-    components:{
104
-        BreadCrumb
105
-    },
106
-    data(){
107
-        return{
108
-          crumbs: [
109
-            { path: false, name: '库存管理' },
110
-            { path: false, name: '耗材管理' },
111
-            { path: false, name: '入库单打印' },
112
-          ],
113
-            isEdit: 0,
114
-            checked: false,
115
-            signAndWeighBoxPatients: "sign-and-weigh-box-patients",
116
-            goodType: [],
117
-            goodInfo: [],
118
-            manufacturer: [],
119
-            dealer: [],
120
-            Warehouse: {
121
-                loading: false,
122
-                warehouseDate: [],
123
-                tableCurrentIndex: ""
124
-            },
125
-
126
-            WarehouseInfo: {
127
-                loading: false,
128
-                warehouseInfoDate: [],
129
-                warehouse: {}
130
-            },
131
-            time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
132
-            allPrice:0,
133
-            page: 1,
134
-            limit: 10000,
135
-            keyword: "",
136
-            is_use:"",
137
-            good_kind:"",
138
-            is_charge:"",
139
-            list:[],
140
-            orgName:'',
141
-            orgId:'',
142
-            adminUserOptions:[],
143
-            warehousingInfo:[],
144
-            warehousList:[]
145
-        }
146
-    },
147
-    methods:{
148
-      printAction: function() {
149
-          const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 1px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 12px; padding: 10px 5px; white-space: pre-line;} .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
150
-          printJS({
151
-          printable: 'print_content',
152
-          type: 'html',
153
-          documentTitle: '  ',
154
-          style: style,
155
-          scanStyles: false
156
-          })
157
-      },
158
-
159
-      getTime(val) {
160
-         if(val < 0){
161
-           return ""
162
-         }
163
-         if(val == ""){
164
-          return ""
165
-         }else {
166
-          return uParseTime(val, '{y}-{m}-{d}')
167
-         }
168
-      },
169
-      
170
-        GetConfigInfo: function() {
171
-        GetAllConfig().then(response => {
172
-            if (response.data.state == 0) {
173
-            this.$message.error(response.data.msg);
174
-            return false;
175
-            } else {
176
-            this.manufacturer = response.data.data.manufacturer;
177
-            this.dealer = response.data.data.dealer;
178
-            this.goodInfo = response.data.data.goodInfo;
179
-            this.goodType = response.data.data.goodType;
180
-           
181
-           for(let i=0;i<this.goodInfo.length;i++){
182
-               this.goodInfo[i].manufacturer_name = ""
183
-            }
184
-            for(let i=0;i<this.goodInfo.length;i++){
185
-               for(let j=0;j<this.manufacturer.length;j++){
186
-                  if(this.goodInfo[i].manufacturer == this.manufacturer[j].id){
187
-                     this.goodInfo[i].manufacturer_name = this.manufacturer[j].manufacturer_name
188
-                  }
189
-                
190
-               } 
191
-            }
192
-             console.log("商品信息",this.goodInfo)
193
-            }
194
-        });
195
-        },
196
-       
197
-     GetOrderDetail: function(order_id) {
103
+  components:{
104
+      BreadCrumb
105
+  },
106
+  data(){
107
+      return{
108
+        crumbs: [
109
+          { path: false, name: '库存管理' },
110
+          { path: false, name: '耗材管理' },
111
+          { path: false, name: '入库单打印' },
112
+        ],
113
+          isEdit: 0,
114
+          checked: false,
115
+          signAndWeighBoxPatients: "sign-and-weigh-box-patients",
116
+          goodType: [],
117
+          goodInfo: [],
118
+          manufacturer: [],
119
+          dealer: [],
120
+          Warehouse: {
121
+              loading: false,
122
+              warehouseDate: [],
123
+              tableCurrentIndex: ""
124
+          },
198 125
 
199
-        const params = {
200
-            id: order_id
201
-        };
202
-        getWarehouseInfoList(params).then(response => {
203
-            if (response.data.state == 0) {
204
-            this.$message.error(response.data.msg);
205
-            return false;
206
-            } else {
207
-             var info = response.data.data.info
208
-             console.log("info2222",info)
209
-             var warehousing = response.data.data.warehousing
210
-             console.log("warehousing",warehousing)
211
-             this.warehousList = info
212
-             for(let i=0;i<warehousing.length;i++){
213
-                warehousing[i].child = []
214
-              for(let j=0;j<info.length;j++){
215
-                if(warehousing[i].id == info[j].warehousing_id){
216
-                   warehousing[i].child.push(info[j])
217
-                }
218
-              }
219
-             }
220
-             
221
-             this.warehousingInfo = warehousing
222
-          
223
-            }
224
-        });
225
-       },
226
-      
227
-    getSpecificationName: function(id) {
228
-      let name = "";
229
-      for (let i = 0; i < this.goodInfo.length; i++) {
230
-        if (this.goodInfo[i].id == id) {
231
-          name = this.goodInfo[i].specification_name;
232
-        }
126
+          WarehouseInfo: {
127
+              loading: false,
128
+              warehouseInfoDate: [],
129
+              warehouse: {}
130
+          },
131
+          time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
132
+          allPrice:0,
133
+          page: 1,
134
+          limit: 10000,
135
+          keyword: "",
136
+          is_use:"",
137
+          good_kind:"",
138
+          is_charge:"",
139
+          list:[],
140
+          orgName:'',
141
+          orgId:'',
142
+          adminUserOptions:[],
143
+          warehousingInfo:[],
144
+          warehousList:[]
233 145
       }
234
-      return name;
146
+  },
147
+  methods:{
148
+    printAction: function() {
149
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 1px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 12px; padding: 10px 5px; white-space: pre-line;} .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
150
+        printJS({
151
+        printable: 'print_content',
152
+        type: 'html',
153
+        documentTitle: '  ',
154
+        style: style,
155
+        scanStyles: false
156
+        })
235 157
     },
236
-    getTypeName: function(id) {
237
-      let name = "";
238
-      for (let i = 0; i < this.goodType.length; i++) {
239
-        if (this.goodType[i].id == id) {
240
-          name = this.goodType[i].type_name;
241
-        }
242
-      }
243
-      return name;
158
+
159
+    getTime(val) {
160
+       if(val < 0){
161
+         return ""
162
+       }
163
+       if(val == ""){
164
+        return ""
165
+       }else {
166
+        return uParseTime(val, '{y}-{m}-{d}')
167
+       }
244 168
     },
245
-    getTypeNameOne:function(id){
246
-      let name = "";
247
-      for (let i = 0; i < this.goodInfo.length; i++) {
248
-        if (this.goodInfo[i].id == id) {
249
-          name = this.goodInfo[i].good_name;
250
-        }
251
-      }
252
-      return name;
253
-     },
254
-     getList() {
255
-        this.goodInfo.loading = true
256
-        let params = {
257
-          page: this.page,
258
-          limit: this.limit,
259
-          keyword: this.keywords,
260
-          is_use:this.is_use,
261
-          good_kind:this.good_kind,
262
-          is_charge: this.is_charge,
263
-        }
264
-        getGoodInfoList(params).then(response => {
169
+    
170
+      GetConfigInfo: function() {
171
+      GetAllConfig().then(response => {
265 172
           if (response.data.state == 0) {
266
-           
267
-            this.$message.error(response.data.msg)
268
-            return false
173
+          this.$message.error(response.data.msg);
174
+          return false;
269 175
           } else {
270
-            this.list = []
271
-            for (let i = 0; i < response.data.data.list.length; i++) {
272
-              this.list.push(response.data.data.list[i])
273
-            }
274
-            console.log("list22222",this.list)
176
+          this.manufacturer = response.data.data.manufacturer;
177
+          this.dealer = response.data.data.dealer;
178
+          this.goodInfo = response.data.data.goodInfo;
179
+          this.goodType = response.data.data.goodType;
180
+         
181
+         for(let i=0;i<this.goodInfo.length;i++){
182
+             this.goodInfo[i].manufacturer_name = ""
275 183
           }
276
-        })
277
-      },
278
-      getUnit(id){
279
-        var name = ""
280
-        for(let i=0;i<this.list.length;i++){
281
-          if(id == this.list[i].id){
282
-             name = this.list[i].good_unit
184
+          for(let i=0;i<this.goodInfo.length;i++){
185
+             for(let j=0;j<this.manufacturer.length;j++){
186
+                if(this.goodInfo[i].manufacturer == this.manufacturer[j].id){
187
+                   this.goodInfo[i].manufacturer_name = this.manufacturer[j].manufacturer_name
188
+                }
189
+              
190
+             } 
283 191
           }
284
-        }
285
-        return this.getGoodUnit(name)
286
-      },
287
-      getGoodUnit(id){
288
-        for (let i = 0; i <this.$store.getters.good_unit.length; i++ ){
289
-          if(id == this.$store.getters.good_unit[i].id){
290
-
291
-            return this.$store.getters.good_unit[i].name
192
+           console.log("商品信息",this.goodInfo)
292 193
           }
293
-        }
294
-        return ""
194
+      });
295 195
       },
296
-      // getManufacturer(id){
297
-      //   let name = ''
298
-      //   this.manufacturer.map(item => {
299
-      //     if(item.id == id){
300
-      //       name = item.manufacturer_name
301
-      //     }
302
-      //   })
303
-      //   return name
304
-      // },
305
-     getManufacturer(id){
306
-         let name = ""
307
-         for(let i=0;i<this.goodInfo.length;i++){
308
-            if(id == this.goodInfo[i].id){
309
-              name  =this.goodInfo[i].manufacturer_name
310
-            }
311
-         }
312
-         return name
313
-      },
314
-      fetchAllAdminUsers() {
315
-        fetchAllAdminUsers().then(response => {
316
-          console.log(response);
317
-          if (response.data.state == 1) {
318
-            this.adminUserOptions = response.data.data.users;
319
-            var alen = this.adminUserOptions.length;
320
-            for (let index = 0; index < alen; index++) {
321
-              if (this.adminUserOptions[index].user_type == 2) {
322
-                // this.doctorOptions.push(this.adminUserOptions[index]);
196
+     
197
+   GetOrderDetail: function(order_id) {
198
+
199
+      const params = {
200
+          id: order_id
201
+      };
202
+      getWarehouseInfoList(params).then(response => {
203
+          if (response.data.state == 0) {
204
+          this.$message.error(response.data.msg);
205
+          return false;
206
+          } else {
207
+           var info = response.data.data.info
208
+           console.log("info2222",info)
209
+           var warehousing = response.data.data.warehousing
210
+           console.log("warehousing",warehousing)
211
+           this.warehousList = info
212
+           for(let i=0;i<warehousing.length;i++){
213
+              warehousing[i].child = []
214
+            for(let j=0;j<info.length;j++){
215
+              if(warehousing[i].id == info[j].warehousing_id){
216
+                 warehousing[i].child.push(info[j])
323 217
               }
324 218
             }
219
+           }
220
+           
221
+           this.warehousingInfo = warehousing
222
+        
325 223
           }
326
-        });
327
-      },
328
-      getXuserName(id) {
329
-        if (id <= 0) {
330
-          return "";
224
+      });
225
+     },
226
+    
227
+  getSpecificationName: function(id) {
228
+    let name = "";
229
+    for (let i = 0; i < this.goodInfo.length; i++) {
230
+      if (this.goodInfo[i].id == id) {
231
+        name = this.goodInfo[i].specification_name;
232
+      }
233
+    }
234
+    return name;
235
+  },
236
+  getTypeName: function(id) {
237
+    let name = "";
238
+    for (let i = 0; i < this.goodType.length; i++) {
239
+      if (this.goodType[i].id == id) {
240
+        name = this.goodType[i].type_name;
241
+      }
242
+    }
243
+    return name;
244
+  },
245
+  getTypeNameOne:function(id){
246
+    let name = "";
247
+    for (let i = 0; i < this.goodInfo.length; i++) {
248
+      if (this.goodInfo[i].id == id) {
249
+        name = this.goodInfo[i].good_name;
250
+      }
251
+    }
252
+    return name;
253
+   },
254
+   getList() {
255
+      this.goodInfo.loading = true
256
+      let params = {
257
+        page: this.page,
258
+        limit: this.limit,
259
+        keyword: this.keywords,
260
+        is_use:this.is_use,
261
+        good_kind:this.good_kind,
262
+        is_charge: this.is_charge,
263
+      }
264
+      getGoodInfoList(params).then(response => {
265
+        if (response.data.state == 0) {
266
+         
267
+          this.$message.error(response.data.msg)
268
+          return false
269
+        } else {
270
+          this.list = []
271
+          for (let i = 0; i < response.data.data.list.length; i++) {
272
+            this.list.push(response.data.data.list[i])
273
+          }
274
+          console.log("list22222",this.list)
331 275
         }
332
-        var name = "";
333
-        if (
334
-          this.adminUserOptions == null ||
335
-          typeof this.adminUserOptions.length === "undefined"
336
-        ) {
337
-          return name;
276
+      })
277
+    },
278
+    getUnit(id){
279
+      var name = ""
280
+      for(let i=0;i<this.list.length;i++){
281
+        if(id == this.list[i].id){
282
+           name = this.list[i].good_unit
338 283
         }
339
-        var leng = this.adminUserOptions.length;
340
-        if (leng == 0) {
341
-          return name;
284
+      }
285
+      return this.getGoodUnit(name)
286
+    },
287
+    getGoodUnit(id){
288
+      for (let i = 0; i <this.$store.getters.good_unit.length; i++ ){
289
+        if(id == this.$store.getters.good_unit[i].id){
290
+
291
+          return this.$store.getters.good_unit[i].name
342 292
         }
343
-        for (let index = 0; index < leng; index++) {
344
-          if (this.adminUserOptions[index].id == id) {
345
-            name = this.adminUserOptions[index].name;
346
-            break;
293
+      }
294
+      return ""
295
+    },
296
+    // getManufacturer(id){
297
+    //   let name = ''
298
+    //   this.manufacturer.map(item => {
299
+    //     if(item.id == id){
300
+    //       name = item.manufacturer_name
301
+    //     }
302
+    //   })
303
+    //   return name
304
+    // },
305
+   getManufacturer(id){
306
+       let name = ""
307
+       for(let i=0;i<this.goodInfo.length;i++){
308
+          if(id == this.goodInfo[i].id){
309
+            name  =this.goodInfo[i].manufacturer_name
310
+          }
311
+       }
312
+       return name
313
+    },
314
+    fetchAllAdminUsers() {
315
+      fetchAllAdminUsers().then(response => {
316
+        console.log(response);
317
+        if (response.data.state == 1) {
318
+          this.adminUserOptions = response.data.data.users;
319
+          var alen = this.adminUserOptions.length;
320
+          for (let index = 0; index < alen; index++) {
321
+            if (this.adminUserOptions[index].user_type == 2) {
322
+              // this.doctorOptions.push(this.adminUserOptions[index]);
323
+            }
347 324
           }
348 325
         }
326
+      });
327
+    },
328
+    getXuserName(id) {
329
+      if (id <= 0) {
330
+        return "";
331
+      }
332
+      var name = "";
333
+      if (
334
+        this.adminUserOptions == null ||
335
+        typeof this.adminUserOptions.length === "undefined"
336
+      ) {
349 337
         return name;
350
-      },
351
-      getAllPice(id){
352
-        var  total_price = 0 
353
-        for(let i=0;i<this.warehousList.length;i++){
354
-          if(id == this.warehousList[i].warehousing_id){
355
-             total_price += this.warehousList[i].warehousing_count * this.warehousList[i].price
356
-          }
338
+      }
339
+      var leng = this.adminUserOptions.length;
340
+      if (leng == 0) {
341
+        return name;
342
+      }
343
+      for (let index = 0; index < leng; index++) {
344
+        if (this.adminUserOptions[index].id == id) {
345
+          name = this.adminUserOptions[index].name;
346
+          break;
357 347
         }
358
-        return total_price
359
-      },
360
-      getDeatl(id){
361
-        console.log("23323233223",id)
362
-        var dealer_name = ""
363
-        for(let i=0;i<this.dealer.length;i++){
364
-          if(id == this.dealer[i].id){
365
-            dealer_name = this.dealer[i].dealer_name
366
-          }
348
+      }
349
+      return name;
350
+    },
351
+    getAllPice(id){
352
+      var  total_price = 0 
353
+      for(let i=0;i<this.warehousList.length;i++){
354
+        if(id == this.warehousList[i].warehousing_id){
355
+           total_price += this.warehousList[i].warehousing_count * this.warehousList[i].price
367 356
         }
368
-        return dealer_name
369 357
       }
358
+      return total_price
370 359
     },
371
-    created(){
372
-      this.orgName = this.$store.getters.xt_user.org.org_name;
373
-      this.orgId = this.$store.getters.xt_user.org.id;
374
-      const order_id = this.$route.query.id;
375
-
376
-      this.fetchAllAdminUsers()
377
-      this.GetConfigInfo();
378
-      this.GetOrderDetail(order_id);
379
-      this.getList()
360
+    getDeatl(id){
361
+      console.log("23323233223",id)
362
+      var dealer_name = ""
363
+      for(let i=0;i<this.dealer.length;i++){
364
+        if(id == this.dealer[i].id){
365
+          dealer_name = this.dealer[i].dealer_name
366
+        }
367
+      }
368
+      return dealer_name
380 369
     }
370
+  },
371
+  created(){
372
+    this.orgName = this.$store.getters.xt_user.org.org_name;
373
+    this.orgId = this.$store.getters.xt_user.org.id;
374
+    const order_id = this.$route.query.id;
375
+
376
+    this.fetchAllAdminUsers()
377
+    this.GetConfigInfo();
378
+    this.GetOrderDetail(order_id);
379
+    this.getList()
380
+  }
381 381
 }
382 382
 </script>
383 383
 
384 384
 
385 385
 <style rel="stylesheet/scss" lang="scss" scoped>
386 386
 .print_main_content {
387
-  background-color: white;
388
-  max-width: 1500px;
389
-  margin: 0 auto;
390
-  padding: 0 0 20px 0;
387
+background-color: white;
388
+max-width: 1500px;
389
+margin: 0 auto;
390
+padding: 0 0 20px 0;
391 391
 
392
-  .order_title_panl {
393
-    text-align: center;
394
-    .main_title {
395
-      font-size: 18px;
396
-      line-height: 40px;
397
-      font-weight: 500;
398
-    }
392
+.order_title_panl {
393
+  text-align: center;
394
+  .main_title {
395
+    font-size: 18px;
396
+    line-height: 40px;
397
+    font-weight: 500;
399 398
   }
400
-  .table_panel {
401
-    .table {
402
-      width: 100%;
403
-      border: 1px solid;
404
-      border-collapse: collapse;
405
-      padding: 2px;
406
-      
399
+}
400
+.table_panel {
401
+  .table {
402
+    width: 100%;
403
+    border: 1px solid;
404
+    border-collapse: collapse;
405
+    padding: 2px;
406
+    
407 407
 
408
-      thead {
409
-        tr {
410
-          td {
411
-            border: 1px solid;
412
-            text-align: center;
413
-            font-size: 18px;
414
-            padding: 1px 5px;
415
-          }
408
+    thead {
409
+      tr {
410
+        td {
411
+          border: 1px solid;
412
+          text-align: center;
413
+          font-size: 18px;
414
+          padding: 1px 5px;
416 415
         }
417 416
       }
418
-      tbody {
419
-        tr {
420
-          td {
421
-            border: 1px solid;
422
-            text-align: center;
423
-            font-size: 18px;
424
-            padding: 10px 5px;
425
-            white-space: pre-line;
426
-            .proj {
427
-              padding: 5px 0;
428
-              text-align: left;
417
+    }
418
+    tbody {
419
+      tr {
420
+        td {
421
+          border: 1px solid;
422
+          text-align: center;
423
+          font-size: 18px;
424
+          padding: 10px 5px;
425
+          white-space: pre-line;
426
+          .proj {
427
+            padding: 5px 0;
428
+            text-align: left;
429 429
 
430
-              .proj_title {
431
-                font-size: 16px;
432
-                font-weight: 500;
433
-                line-height: 25px;
434
-              }
430
+            .proj_title {
431
+              font-size: 16px;
432
+              font-weight: 500;
433
+              line-height: 25px;
434
+            }
435 435
 
436
-              .proj_item {
437
-                font-size: 15px;
438
-                line-height: 20px;
436
+            .proj_item {
437
+              font-size: 15px;
438
+              line-height: 20px;
439 439
 
440
-                .zone_name {
441
-                  font-weight: 500;
442
-                }
440
+              .zone_name {
441
+                font-weight: 500;
443 442
               }
444 443
             }
445 444
           }
@@ -448,4 +447,5 @@ export default {
448 447
     }
449 448
   }
450 449
 }
450
+}
451 451
 </style>

+ 4 - 1
src/xt_pages/stock/stockOutOrderEdit.vue 查看文件

@@ -711,6 +711,7 @@
711 711
 
712 712
 
713 713
             var warehout_id = parseInt(this.$route.query.id)
714
+           
714 715
             editWarehouseoutInfo(params, this.warehouse_out_time, warehout_id, this.$route.query.type, this.form.manufacturer, this.form.dealer,this.storehouse_id).then(response => {
715 716
               if (response.data.state == 0) {
716 717
                 this.$message.error(response.data.msg)
@@ -722,6 +723,8 @@
722 723
                   this.$message.success('保存成功')
723 724
                   // this.$router.back(-1)
724 725
                   loading.close()
726
+                  const order_id = this.$route.query.id
727
+                  this.getSingleOutOrderDetail(order_id)
725 728
                 }
726 729
 
727 730
                 if(response.data.data.msg == 5){
@@ -839,7 +842,7 @@
839 842
       }
840 843
     },
841 844
      getSingleOutOrderDetail(order_id){
842
-
845
+      this.recordInfo.recordData = []
843 846
         const loading = this.$loading({
844 847
           lock: true,
845 848
           text: "Loading",

+ 124 - 63
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -279,8 +279,20 @@
279 279
                     >{{ item.label }}</el-checkbox
280 280
                   >
281 281
                 </el-checkbox-group>
282
-              </el-form-item> </el-col
283
-            ><el-col :span="6">
282
+              </el-form-item>
283
+             </el-col>
284
+
285
+             <el-col :span="24">
286
+              <el-form-item label="病历号 : " prop="record_number">
287
+                <el-input
288
+                  style="width: 200px;"
289
+                  v-model="form.record_number"
290
+                  disabled
291
+                ></el-input>
292
+              </el-form-item>
293
+             </el-col>
294
+
295
+              <el-col :span="6">
284 296
               <el-form-item
285 297
                 label="本院前透析频率 : "
286 298
                 prop="pre_hospital_dialysis_frequency"
@@ -856,88 +868,130 @@
856 868
               </thead> -->
857 869
               <tbody>
858 870
                 <tr>
859
-                  <td valign="top" style="width:8%"><div class="td_proj_title">姓名</div></td>
860
-                  <td valign="top">
861
-                    <div class="td_proj_content">{{ patientPrint.name }}</div>
871
+                  <!--  -->
872
+                  <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
873
+                    姓名
874
+                    <!-- <div class="td_proj_title">姓名</div> -->
875
+                  </td> 
876
+                  <td style="padding: 3px 0px;font-size: 17px;">
877
+                    {{ patientPrint.name }}
878
+                    <!-- <div class="td_proj_content">{{ patientPrint.name }}</div> -->
862 879
                   </td>
863
-                  <td valign="top"><div class="td_proj_title">性别</div></td>
864
-                  <td valign="top">
865
-                    <div class="td_proj_content">{{ patientPrint.gender }}</div>
880
+                  <td style="padding: 3px 0px;font-size: 17px;">
881
+                    性别
882
+                    <!-- <div class="td_proj_title">性别</div> -->
866 883
                   </td>
867
-                  <td valign="top"><div class="td_proj_title">年龄</div></td>
868
-                  <td valign="top">
869
-                    <div class="td_proj_content">{{ patientPrint.age }}</div>
884
+                  <td style="padding: 3px 0px;font-size: 17px;">
885
+                    {{ patientPrint.gender }}
886
+                    <!-- <div class="td_proj_content">{{ patientPrint.gender }}</div> -->
870 887
                   </td>
871
-                  <td valign="top"><div class="td_proj_title">籍贯</div></td>
872
-                  <td valign="top">
873
-                    <div class="td_proj_content td_align_left">
888
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
889
+                    年龄
890
+                    <!-- <div class="td_proj_title">年龄</div> -->
891
+                  </td>
892
+                  <td style="padding: 3px 0px;font-size: 17px;">
893
+                    {{ patientPrint.age }}岁
894
+                    <!-- <div class="td_proj_content">{{ patientPrint.age }}岁</div> -->
895
+                  </td>
896
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
897
+                    籍贯
898
+                    <!-- <div class="td_proj_title">籍贯</div> -->
899
+                  </td>
900
+                  <td style="padding: 3px 0px;font-size: 17px;">
901
+                    {{ patientPrint.native_place }}
902
+                    <!-- <div class="td_proj_content td_align_left">
874 903
                       {{ patientPrint.native_place }}
875
-                    </div>
904
+                    </div> -->
876 905
                   </td>
877 906
                 </tr>
878 907
                 <tr>
879
-                  <td valign="top"><div class="td_proj_title">职业</div></td>
880
-                  <td valign="top">
881
-                    <div class="td_proj_content">
908
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
909
+                    职业
910
+                    <!-- <div class="td_proj_title">职业</div> -->
911
+                  </td>
912
+                  <td style="padding: 3px 0px;font-size: 17px;">
913
+                    {{ patientPrint.profession }}
914
+                    <!-- <div class="td_proj_content">
882 915
                       {{ patientPrint.profession }}
883
-                    </div>
916
+                    </div> -->
917
+                  </td>
918
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
919
+                    婚姻
920
+                    <!-- <div class="td_proj_title">婚姻</div> -->
884 921
                   </td>
885
-                  <td valign="top"><div class="td_proj_title">婚姻</div></td>
886
-                  <td valign="top">
887
-                    <div class="td_proj_content">
922
+                  <td style="padding: 3px 0px;font-size: 17px;">
923
+                    {{ patientPrint.marital_status }}
924
+                    <!-- <div class="td_proj_content">
888 925
                       {{ patientPrint.marital_status }}
889
-                    </div>
926
+                    </div> -->
927
+                  </td>
928
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
929
+                    透析号
930
+                    <!-- <div class="td_proj_title">透析号</div> -->
890 931
                   </td>
891
-                  <td valign="top"><div class="td_proj_title">透析号</div></td>
892
-                  <td valign="top">
893
-                    <div class="td_proj_content">
932
+                  <td style="padding: 3px 0px;font-size: 17px;">
933
+                    {{ patientPrint.dialysis_no }}
934
+                    <!-- <div class="td_proj_content">
894 935
                       {{ patientPrint.dialysis_no }}
895
-                    </div>
936
+                    </div> -->
896 937
                   </td>
897
-                  <td valign="top">
898
-                    <div class="td_proj_title">身份证号</div>
938
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
939
+                    身份证号
940
+                    <!-- <div class="td_proj_title">身份证号</div> -->
899 941
                   </td>
900
-                  <td valign="top">
901
-                    <div class="td_proj_content td_align_left">
942
+                  <td style="padding: 3px 0px;font-size: 17px;">
943
+                    {{ patientPrint.id_card_no }}
944
+                    <!-- <div class="td_proj_content td_align_left">
902 945
                       {{ patientPrint.id_card_no }}
903
-                    </div>
946
+                    </div> -->
904 947
                   </td>
905 948
                 </tr>
906 949
                 <tr>
907
-                  <td valign="top"><div class="td_proj_title">民族</div></td>
908
-                  <td valign="top">
909
-                    <div class="td_proj_content">{{ patientPrint.nation }}</div>
950
+                  <td  style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
951
+                    民族
952
+                    <!-- <div class="td_proj_title">民族</div>  valign="top" -->
910 953
                   </td>
911
-                  <td valign="top"><div class="td_proj_title">电话</div></td>
912
-                  <td valign="top" colspan="3">
913
-                    <div class="td_proj_content td_align_left">
914
-                      {{ patientPrint.phone }}
915
-                    </div>
954
+                  <td style="padding: 3px 0px;font-size: 17px;">
955
+                    {{ patientPrint.nation }}
956
+                    <!-- <div class="td_proj_content">{{ patientPrint.nation }}</div> -->
916 957
                   </td>
917
-                  <td valign="top">
918
-                    <div class="td_proj_title">家属电话</div>
958
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
959
+                    电话
960
+                    <!-- <div class="td_proj_title">电话</div> -->
919 961
                   </td>
920
-                  <td valign="top">
921
-                    <div class="td_proj_content td_align_left">
962
+                  <td  colspan="3" style="padding: 3px 0px;font-size: 17px;">
963
+                    {{ patientPrint.phone }}
964
+                    <!-- <div class="td_proj_content td_align_left">
965
+                      {{ patientPrint.phone }}
966
+                    </div> -->
967
+                   </td>
968
+                 <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
969
+                    家属电话
970
+                    <!-- <div class="td_proj_title">家属电话</div> -->
971
+                  </td>
972
+                  <td style="padding: 3px 0px;font-size: 17px;">
973
+                    {{ patientPrint.home_telephone }}
974
+                    <!-- <div class="td_proj_content td_align_left">
922 975
                       {{ patientPrint.home_telephone }}
923
-                    </div>
976
+                    </div> -->
924 977
                   </td>
925 978
                 </tr>
926 979
                 <tr>
927
-                  <td><div class="td_proj_title">地址</div></td>
928
-                  <td colspan="7">
929
-                    <div class="td_proj_content td_align_left">
980
+                  <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">地址</td>
981
+                  <td colspan="7" style="text-align: left; padding:0px 5px;font-size: 17px;">
982
+                    <!-- class="td_proj_content td_align_left" -->
983
+                    <!-- <div > -->
930 984
                       {{ patientPrint.home_address }}
931
-                    </div>
985
+                    <!-- </div> -->
932 986
                   </td>
933 987
                 </tr>
934 988
                 <tr>
935
-                  <td style="padding: 0px 0px;">
989
+                  <td style="padding: 3px 0px;font-size: 17px; font-weight: 500;">
936 990
                     主诉
937 991
                     <!-- <div class="td_proj_title">主诉</div> -->
938 992
                   </td>
939 993
                   <!-- class="td_proj_content td_align_left" -->
940
-                  <td colspan="7" style="text-align: left; padding: 2px 0px;"> 
994
+                  <td colspan="7" style="text-align: left; padding:0px 5px ;font-size: 17px;"> 
941 995
                     {{ patientPrint.patient_complains }}
942 996
                     <!-- <div style="padding: 0px 0px;"
943 997
                       v-html="patientPrint.patient_complains"
@@ -949,6 +1003,9 @@
949 1003
                     <div class="td_proj_title">现<br />病<br />史</div>
950 1004
                   </td>
951 1005
                   <td colspan="7">
1006
+                    <!-- <div class="td_proj_content td_align_left">{{patientPrint.present_history}}</div> -->
1007
+
1008
+                    
952 1009
                     <div
953 1010
                       class="td_proj_content td_align_left"
954 1011
                       v-html="patientPrint.present_history"
@@ -961,10 +1018,11 @@
961 1018
                     <div class="td_proj_title">既<br />往<br />史</div>
962 1019
                   </td>
963 1020
                   <td colspan="7">
964
-                    <div
965
-                      class="td_proj_content td_align_left"
966
-                      v-html="patientPrint.past_history"
967
-                    ></div>
1021
+                    
1022
+                    <div class="td_proj_content td_align_left">
1023
+                      {{ patientPrint.past_history }}
1024
+                    </div>
1025
+                    <!--  v-html="patientPrint.past_history" -->
968 1026
                   </td>
969 1027
                 </tr>
970 1028
                 <tr>
@@ -1178,6 +1236,7 @@ const defaultForm = {
1178 1236
   zb_patient_id: "",
1179 1237
   treatment_plan: "",
1180 1238
   doctor:"",
1239
+  record_number:"",
1181 1240
 };
1182 1241
 
1183 1242
 export default {
@@ -1388,7 +1447,7 @@ export default {
1388 1447
             // if (patietInfo.is_infectious == 1) {
1389 1448
             //   this.form.remind_cycle = 0;
1390 1449
             // }
1391
-            console.log("222222", this.form.remind_cycle);
1450
+            // console.log("222222", this.form.remind_cycle);
1392 1451
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1393 1452
 
1394 1453
             this.infections = response.data.data.infections;
@@ -1503,6 +1562,7 @@ export default {
1503 1562
             this.form.contact_name = patietInfo.contact_name;
1504 1563
             this.form.tell_phone = patietInfo.tell_phone;
1505 1564
             this.form.dialysis_age = patietInfo.dialysis_age;
1565
+            this.form.record_number = patietInfo.record_number
1506 1566
             if (patietInfo.expense_kind == 0) {
1507 1567
               this.form.expense_kind = "";
1508 1568
             } else {
@@ -1563,7 +1623,7 @@ export default {
1563 1623
 
1564 1624
             var contagionsArr = response.data.data.contagions;
1565 1625
             var diseasesArr = response.data.data.diseases;
1566
-              console.log('123456',response.data.data);
1626
+              // console.log('123456',response.data.data);
1567 1627
             this.patientPrint = patietInfo;
1568 1628
 
1569 1629
             var sourceLen = this.sourceOptions.length;
@@ -1614,12 +1674,13 @@ export default {
1614 1674
               "{y}-{m}-{d}"
1615 1675
             );
1616 1676
             this.patientPrint.age = jsGetAge(this.patientPrint.birthday, "-");
1617
-            console.log('qwerewqrt',patietInfo.patient_complains);
1677
+            
1618 1678
             this.patientPrint.patient_complains =
1619 1679
               patietInfo.patient_complains.replace(/\n/g, "<br/>");
1620
-              
1680
+              // console.log('qwerewqrt',patietInfo.present_history);
1621 1681
             this.patientPrint.present_history =
1622 1682
               patietInfo.present_history.replace(/\n/g, "<br/>");
1683
+              console.log('qwerewqrt',patietInfo.past_history);
1623 1684
             this.patientPrint.past_history = patietInfo.past_history.replace(
1624 1685
               /\n/g,
1625 1686
               "<br/>"
@@ -2168,13 +2229,13 @@ export default {
2168 2229
   /* padding: 10px 8px; */
2169 2230
 }
2170 2231
 .td_proj_title {
2171
-  font-size: 18px;
2172
-  line-height: 20px;
2232
+  font-size: 17px;
2233
+  /* line-height: 20px; */
2173 2234
   font-weight: 500;
2174 2235
 }
2175 2236
 .td_proj_content {
2176
-  font-size: 18px;
2177
-  line-height: 20px;
2237
+  font-size: 17px;
2238
+  /* line-height: 20px; */
2178 2239
 }
2179 2240
 .td_align_left {
2180 2241
   text-align: left;

+ 12 - 1
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -333,6 +333,16 @@
333 333
                 </el-checkbox-group>
334 334
               </el-form-item>
335 335
             </el-col>
336
+            
337
+            <el-col :span="24">
338
+              <el-form-item label="病历号 : " prop="record_number">
339
+                <el-input
340
+                  style="width: 200px;"
341
+                  v-model="form.record_number"
342
+                ></el-input>
343
+              </el-form-item>
344
+             </el-col>
345
+
336 346
             <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
337 347
               <el-form-item
338 348
                 label="本院前透析频率 : "
@@ -1037,7 +1047,7 @@ const defaultForm = {
1037 1047
   diagnose: "",
1038 1048
   is_infectious: 1,
1039 1049
   age: "",
1040
-
1050
+  record_number:"",
1041 1051
   response_result: "",
1042 1052
   remind_cycle: 0,
1043 1053
   record_date: "",
@@ -1896,6 +1906,7 @@ export default {
1896 1906
             // if (patietInfo.registrars_id > 0) {
1897 1907
             //   this.form.registrars = patietInfo.registrars_id;
1898 1908
             // }
1909
+            this.form.record_number = patietInfo.record_number
1899 1910
             this.form.doctor = patietInfo.doctor
1900 1911
             if(this.form.doctor == 0){
1901 1912
               this.form.doctor = ""

+ 241 - 5
src/xt_pages/user/courseOfDisease.vue 查看文件

@@ -700,7 +700,9 @@
700 700
               <el-input v-model="title" style="width: 420px"></el-input>
701 701
             </div>
702 702
 
703
-
703
+            <div style="margin-top: 10px;">
704
+              <el-button type="primary" size="small" @click="toAuto" v-if="org_id == 3877 || org_id == 10440" >自动生成</el-button>
705
+            </div>
704 706
             <div class="textarea_panel">
705 707
               <keep-alive>
706 708
                 <editor ref="editor"
@@ -777,17 +779,18 @@
777 779
   import PatientSidebar from './components/PatientSidebar'
778 780
   import Editor from '@/components/Editor'
779 781
   const moment = require('moment')
780
-
782
+  import { getDataConfig } from "@/utils/data";
781 783
   import {
782 784
     createCourseOfDiseaseRecord,
783 785
     deleteCourseOfDiseaseRecords,
784 786
     getCourseOfDiseaseRecords,
785 787
     modifyCourseOfDiseaseRecord,
786
-    GetCoursePrintData
788
+    GetCoursePrintData,
789
+    getPatientDialysisInfor
787 790
   } from '@/api/patient'
788 791
   import { parseTime } from '@/utils'
789 792
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
790
-
793
+  import { uParseTime } from '@/utils/tools'
791 794
   export default {
792 795
     name: 'CourseOfDisease',
793 796
     components: {
@@ -821,10 +824,12 @@
821 824
         edit_title: '',
822 825
         ids:"",
823 826
         idArr:[],
827
+        org_id:0
824 828
       }
825 829
     },
826 830
     created() {
827 831
       this.patient_id = parseInt(this.$route.query.id)
832
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
828 833
       if (isNaN(this.patient_id) || this.patient_id <= 0) {
829 834
         this.$notify.error({
830 835
           title: '错误',
@@ -1040,8 +1045,239 @@
1040 1045
           return
1041 1046
         }
1042 1047
         this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
1043
-        // this.$router.push({ path: "/physique/print?ids="+this.ids+"&patient_id="+this.patient_id});
1048
+       
1049
+      },
1050
+      toAuto(){
1051
+       
1052
+         var params=  {
1053
+           patient_id:parseInt(this.$route.query.id),
1054
+           record_date:this.course_of_disease_time.slice(0,10),
1055
+         }
1056
+         console.log("param2222owoowwow",params)
1057
+        getPatientDialysisInfor(params).then(response=>{
1058
+          if(response.data.state== 1){
1059
+            var patient = response.data.data.patient
1060
+            var prescription = response.data.data.prescription
1061
+            var predialysis_evaluation =  response.data.data.assessmentBefor
1062
+            var dialysis_order =  response.data.data.order
1063
+            var monitors = response.data.data.monitor
1064
+            var doctor_advices = response.data.data.advice
1065
+            var assessment_after_dislysis =  response.data.data.afterDislysis
1066
+           
1067
+           var str_one = ""
1068
+          if(dialysis_order!=null){
1069
+            if(dialysis_order.puncture_nurse_id >0){
1070
+              str_one = "护士穿刺成功!"
1071
+            }
1072
+          }
1073
+        
1074
+          var total =0 
1075
+          if(predialysis_evaluation!=null){
1076
+            total = (predialysis_evaluation.weight_before - predialysis_evaluation.dry_weight).toFixed(1)
1077
+          }
1078
+  
1079
+
1080
+        var monitor_one =[]
1081
+        var monitor_two = []
1082
+        var monitor_three = []
1083
+
1084
+        if(monitors!=null && monitors.length > 0){
1085
+          var monitor_one =  monitors.sort(function (a,b) {
1086
+            return b.systolic_bp - a.systolic_bp
1087
+          })
1088
+          var monitor_two =  monitors.sort(function (a,b) {
1089
+            return b.diastolic_bp - a.diastolic_bp
1090
+          })
1091
+
1092
+          var monitor_three = monitors.sort(function (a,b) {
1093
+            return b.pulse_frequency - a.pulse_frequency
1094
+          })
1095
+
1096
+        }
1097
+  
1098
+        var doc_str = ""
1099
+      
1100
+        if(doctor_advices!=null && doctor_advices.length > 0){
1101
+        
1102
+          
1103
+          for(let i=0;i<doctor_advices.length;i++){
1104
+            doc_str +=doctor_advices[i].advice_name +" "+doctor_advices[i].prescribing_number+doctor_advices[i].prescribing_number_unit+" "+doctor_advices[i].delivery_way
1105
+          }
1106
+        }
1107
+
1108
+        if(predialysis_evaluation.blood_access_part_id == -2){
1109
+          predialysis_evaluation.blood_access_part_id = ""
1110
+        }
1111
+      
1112
+        var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(prescription.mode_id)+
1113
+        ",透前检查:"+predialysis_evaluation.internal_fistula +predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(prescription.anticoagulant) +",总量:"+prescription.anticoagulant_zongliang+"iu"+
1114
+        ",透前体重:"+predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+prescription.target_ultrafiltration +"ml" +",血流量:"+prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
1115
+        +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(dialysis_order.end_time) +
1116
+        ",实际治疗时长:"+ assessment_after_dislysis.actual_treatment_hour +"时"+assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
1117
+        +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+assessment_after_dislysis.pulse_frequency +"次/分"
1118
+
1119
+        console.log("str000000000000000000222o2o2",str)
1120
+           this.new_content =str
1121
+          }
1122
+        })
1123
+
1124
+      },
1125
+
1126
+    QueryOperaById(val){
1127
+       var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1128
+       var name = ""
1129
+       for(let i=0;i<blood_access_part_opera.length;i++){
1130
+         if(val == blood_access_part_opera[i].id){
1131
+            name = blood_access_part_opera[i].name
1132
+         }
1133
+       }
1134
+       return name
1135
+    },
1136
+    getModeId(mode_id){
1137
+      var mode_name = ""
1138
+      if(mode_id == 1){
1139
+         mode_name ="HD"
1140
+      }
1141
+      if(mode_id == 2){
1142
+         mode_name ="HDF"
1143
+      }
1144
+      if(mode_id == 3){
1145
+         mode_name ="HD+HP"
1146
+      }
1147
+      if(mode_id == 4){
1148
+         mode_name ="HP"
1149
+      }
1150
+      if(mode_id == 5){
1151
+         mode_name ="HF"
1152
+      }
1153
+      if(mode_id == 6){
1154
+         mode_name ="SCUF"
1155
+      }
1156
+      if(mode_id == 7){
1157
+         mode_name ="IUF"
1044 1158
       }
1159
+      if(mode_id == 8){
1160
+         mode_name ="HFHD"
1161
+      }
1162
+      if(mode_id == 9){
1163
+         mode_name ="HFHD+HP"
1164
+      }
1165
+      if(mode_id == 10){
1166
+         mode_name ="PHF"
1167
+      }
1168
+      if(mode_id == 11){
1169
+         mode_name ="HFR"
1170
+      }
1171
+      if(mode_id == 12){
1172
+         mode_name ="HDF+HP"
1173
+      }
1174
+      if(mode_id == 13){
1175
+         mode_name ="CRRT"
1176
+      }
1177
+      if(mode_id == 14){
1178
+         mode_name ="腹水回输"
1179
+      }
1180
+      if(mode_id == 19){
1181
+         mode_name ="IUF+HD"
1182
+      }
1183
+      if(mode_id == 20){
1184
+         mode_name ="UF"
1185
+      }
1186
+      if(mode_id == 21){
1187
+         mode_name ="HD+"
1188
+      }
1189
+      if(mode_id == 22){
1190
+         mode_name ="血浆胆红素吸附+HDF"
1191
+      }
1192
+      if(mode_id == 23){
1193
+         mode_name ="血浆胆红素吸附"
1194
+      }
1195
+      if(mode_id == 24){
1196
+         mode_name ="I-HDF"
1197
+      }
1198
+      if(mode_id == 25){
1199
+         mode_name ="HD高通"
1200
+      }
1201
+      if(mode_id == 26){
1202
+         mode_name ="CVVH"
1203
+      }
1204
+      if(mode_id == 27){
1205
+         mode_name ="CVVHD"
1206
+      }
1207
+      if(mode_id == 28){
1208
+         mode_name ="CVVHDF"
1209
+      }
1210
+      if(mode_id == 29){
1211
+         mode_name ="PE"
1212
+      }
1213
+      if(mode_id == 30){
1214
+         mode_name ="血浆胆红素吸附+HP"
1215
+      }
1216
+      if(mode_id == 31){
1217
+         mode_name ="HPD"
1218
+      }
1219
+      if(mode_id == 32){
1220
+         mode_name ="HDP"
1221
+      }
1222
+      return mode_name
1223
+    },
1224
+    GetAnticoagulant(id){
1225
+      var  anticoagulant_name = ""
1226
+      if(id == 1){
1227
+       anticoagulant_name = "无肝素"
1228
+      }
1229
+      if(id == 2){
1230
+         anticoagulant_name = "普通肝素"
1231
+      }
1232
+      if(id == 3){
1233
+        anticoagulant_name = "低分子肝素"
1234
+      } 
1235
+      if(id == 4){
1236
+        anticoagulant_name = "阿加曲班"
1237
+      } 
1238
+
1239
+      if(id == 5){
1240
+       anticoagulant_name = "枸橼酸钠"
1241
+      }
1242
+      if(id == 6){
1243
+         anticoagulant_name = "低分子肝素钙"
1244
+      }
1245
+      if(id == 7){
1246
+        anticoagulant_name = "低分子肝素钠"
1247
+      } 
1248
+      if(id == 8){
1249
+        anticoagulant_name = "依诺肝素"
1250
+      } 
1251
+
1252
+      if(id == 9){
1253
+        anticoagulant_name = "达肝素"
1254
+      } 
1255
+      if(id == 10){
1256
+        anticoagulant_name = "体外抗凝"
1257
+      } 
1258
+
1259
+      if(id == 11){
1260
+        anticoagulant_name = "那屈肝素"
1261
+      } 
1262
+      if(id == 12){
1263
+        anticoagulant_name = "无抗凝剂"
1264
+      } 
1265
+
1266
+      if(id == 13){
1267
+        anticoagulant_name = "那屈肝素钙"
1268
+      } 
1269
+      if(id == 14){
1270
+        anticoagulant_name = "肝素钙注射液"
1271
+      } 
1272
+      if(id == 15){
1273
+        anticoagulant_name = "甲磺酸萘莫司他"
1274
+      } 
1275
+
1276
+      return anticoagulant_name
1277
+    },
1278
+    getTime (time) {
1279
+     return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
1280
+    },
1045 1281
     }
1046 1282
   }
1047 1283
 </script>

+ 16 - 1
src/xt_pages/user/dialysisSolution.vue 查看文件

@@ -527,6 +527,12 @@
527 527
             </el-form-item>
528 528
           </el-col>
529 529
 
530
+          <el-col :span="8" v-if="isShows('加糖')">
531
+            <el-form-item label="加糖:">
532
+              <el-input v-model="addPlan.chaptalization"></el-input>
533
+            </el-form-item>
534
+          </el-col>
535
+
530 536
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
531 537
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
532 538
               <el-input v-model="addPlan.bicarbonate"></el-input>
@@ -1084,6 +1090,7 @@
1084 1090
           max_ultrafiltration_rate:"",
1085 1091
           amylaceum:"",
1086 1092
           dialysis_strainer:"",
1093
+          chaptalization:"",
1087 1094
         },
1088 1095
         childPlan: {
1089 1096
           mode: '',
@@ -1214,6 +1221,7 @@
1214 1221
         dialysis_dialyszers:'',
1215 1222
         dialysis_irrigation:"",
1216 1223
         dialysis_strainer:"",
1224
+        chaptalization:"",
1217 1225
         dialysisStrainerList:[],
1218 1226
         plasmaSeparatorList:[],
1219 1227
         bilirubinAdsorptionColumn:[],
@@ -1756,6 +1764,8 @@
1756 1764
                 this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1757 1765
                 this.current_solution.remark = response.data.data.solution.remark
1758 1766
                 this.current_solution.dialysis_strainer = response.data.data.dialysis_strainer
1767
+
1768
+                this.current_solution.chaptalization = response.data.data.chaptalization
1759 1769
                 this.FindePatientDialysisLongSolutions()
1760 1770
                 return false
1761 1771
               }
@@ -1776,6 +1786,7 @@
1776 1786
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1777 1787
             this.addPlan.dialysis_strainer = this.dialysis_strainer
1778 1788
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1789
+         
1779 1790
             console.log("add",this.addPlan)
1780 1791
             createPatientDialysisSolution(
1781 1792
               this.patientID,
@@ -1826,7 +1837,7 @@
1826 1837
         this.getDialysisSolutionDetailList()
1827 1838
       },
1828 1839
       openEdit(index, row) {
1829
-        console.log("row-------",row)
1840
+       
1830 1841
         this.current_index = index
1831 1842
         this.addPlan.id = row.id
1832 1843
         this.addPlan.mode = row.mode_id
@@ -2006,6 +2017,9 @@
2006 2017
         }
2007 2018
         this.addPlan.dialysate_formulation = row.dialysate_formulation
2008 2019
         this.dialysisTimeShow = new Date(2018,1,1,this.addPlan.dialysis_duration_hour,this.addPlan.dialysis_duration_minute)
2020
+
2021
+        this.addPlan.amylaceum = row.amylaceum
2022
+        this.addPlan.chaptalization = row.chaptalization
2009 2023
       },
2010 2024
       isShows(name) {
2011 2025
         var filedList = store.getters.xt_user.fileds
@@ -2086,6 +2100,7 @@
2086 2100
           created_time:"",
2087 2101
           plasma_separator:"",
2088 2102
           bilirubin_adsorption_column:"",
2103
+          chaptalization:"",
2089 2104
         }
2090 2105
         this.addPlanTypeChange()
2091 2106
 

+ 12 - 0
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -2050,6 +2050,7 @@
2050 2050
 import PatientSidebar from "./components/PatientSidebar";
2051 2051
 import EditGroupAdvice from "./components/EditGroupAdvice";
2052 2052
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
2053
+import printJS from "print-js";
2053 2054
 import {
2054 2055
   CheckGroupAdvice,
2055 2056
   CreateNewDoctorAdvice,
@@ -3519,6 +3520,17 @@ export default {
3519 3520
           this.adviceTableData = response.data.data.advices;
3520 3521
           console.log("数据是什么", this.adviceTableData);
3521 3522
           var advice = response.data.data.advices;
3523
+          var is_open = response.data.data.is_open
3524
+          if(is_open == 1){
3525
+            var longAdvice =  response.data.data.longAdvice
3526
+            console.log("longAdvice--------------",longAdvice)
3527
+            if(longAdvice!=null && longAdvice.length > 0){
3528
+              for(let i=0;i<longAdvice.length;i++){
3529
+                advice.push(longAdvice[i])
3530
+              }
3531
+            }
3532
+          }
3533
+         
3522 3534
           var one = response.data.data.advicetwo;
3523 3535
           let dataInfo = {};
3524 3536
           one.forEach((item, index) => {

+ 20 - 2
src/xt_pages/workforce/appointment.vue 查看文件

@@ -67,7 +67,8 @@
67 67
     <div class="position">
68 68
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69 69
       <div style="display:flex;align-items:center">
70
-        <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
70
+        <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction" v-if="activeName !='historyWeek'">打印排班</el-button>
71
+        <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleActionOne" v-if="activeName == 'historyWeek'">打印排班</el-button>
71 72
         <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
72 73
         <!-- <el-button @click="printTable" type="primary" size="small">打印排班</el-button> -->
73 74
         <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
@@ -899,7 +900,9 @@ export default {
899 900
       } else if (this.activeName == 'nextTwoWeek') {
900 901
         date = date + 14 * 24 * 60 * 60 * 1000
901 902
       }
902
-      console.log("whhwhwhwhwhwh",this.templateObj.template_id)
903
+      console.log("whhwhwhwhwhwh",date)
904
+      console.log("this.templateObj.template_id == 1",this.templateObj.template_id)
905
+      console.log("week2333333333333333",this.week_date)
903 906
       if (this.templateObj.template_id == 1) {
904 907
         this.$router.push({path: '/workforce/schedule/print', query: {date: date}})
905 908
       }
@@ -914,6 +917,21 @@ export default {
914 917
       }
915 918
 
916 919
     },
920
+    printScheduleActionOne:function(){
921
+       
922
+      var start_time = this.$refs.tableDataZero.start_time
923
+
924
+      var end_time =  this.$refs.tableDataZero.end_time
925
+
926
+      var partition_id = this.$refs.tableDataZero.partition_id
927
+
928
+      var nextTwoWeek = "nextTwoWeek"
929
+
930
+      var week_date = []
931
+
932
+    
933
+      this.$router.push({path:'/scheduleTablePrintThree?partition_id='+partition_id+"&weekTime="+nextTwoWeek+"&week_date="+week_date+"&start_time="+start_time+"&end_time="+end_time})
934
+    },
917 935
     isShow() {
918 936
       let isShow = false
919 937
       if (Object.keys(this.partitions).length != 0) {

+ 7 - 3
src/xt_pages/workforce/components/historyWeekTable.vue 查看文件

@@ -2829,7 +2829,7 @@ export default {
2829 2829
       return uParseTime(val, '{y}-{m}-{d}')
2830 2830
     },
2831 2831
     changeWeek(val) {
2832
-      console.log('11111',val)
2832
+      console.log('效果国233232',val)
2833 2833
       this.newDay = []
2834 2834
       var start = this.getTimestamp(val) - 86400
2835 2835
       var end = start + 518400
@@ -2839,6 +2839,9 @@ export default {
2839 2839
 
2840 2840
       this.newDay.push(this.start_time)
2841 2841
       this.newDay.push(this.end_time)
2842
+
2843
+      console.log("sart323232我的",this.start_time)
2844
+      console.log("end_timewowowo",this.end_time)
2842 2845
       this.scheduleZone=[]
2843 2846
       // this.$nextTick(() => {
2844 2847
         this.getAllZones()
@@ -2894,15 +2897,16 @@ export default {
2894 2897
         patitionid: str,
2895 2898
         schedule_type: this.schedule_type,
2896 2899
       }
2897
-    //  console.log("str--------",str)
2900
+     console.log("params232323232",params)
2898 2901
       getSchedulesOne(params).then(response => {
2899 2902
         // console.log('getSchedulesOne',response.data.data);
2900 2903
         if (response.data.state == 1) {
2901 2904
           this.weekTitle = response.data.data.weekTitle;
2902 2905
           this.weekTitle = []
2903
-
2906
+          console.log("first_day23333333333333",this.start_time)
2904 2907
           var first = this.getTimestamp(this.start_time)
2905 2908
           var first_day =  this.getTime(first, "{y}-{m}-{d}")
2909
+          console.log("first_day23333333333333",first_day)
2906 2910
           this.weekTitle.push(first_day)
2907 2911
 
2908 2912
           var second = this.getTimestamp(this.start_time) + 86400