Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

杨青 1 year ago
parent
commit
d26beed224
39 changed files with 852 additions and 228 deletions
  1. 1 0
      package.json
  2. 53 0
      src/api/dialysis.js
  3. 29 2
      src/api/patient.js
  4. 4 4
      src/api/role/admin.js
  5. 1 0
      src/lang/en.js
  6. 1 0
      src/lang/zh.js
  7. 2 0
      src/router/index.js
  8. 1 1
      src/views/layout/Layout.vue
  9. 2 2
      src/views/layout/components/Sidebar/index.vue
  10. 4 4
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  11. 2 4
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyseven.vue
  12. 14 18
      src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue
  13. 7 1
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  14. 13 2
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  15. 6 2
      src/xt_pages/dialysis/details/dialysisOff.vue
  16. 9 44
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  17. 77 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue
  18. 10 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  19. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue
  20. 2 0
      src/xt_pages/medicalScheduling/schedulingStatistics.vue
  21. 8 8
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  22. 188 1
      src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue
  23. 7 5
      src/xt_pages/role/admin.vue
  24. 2 1
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  25. 1 0
      src/xt_pages/stock/drugs/inventoryPrint.vue
  26. 1 0
      src/xt_pages/stock/inventoryPrint.vue
  27. 38 2
      src/xt_pages/stock/query/goodNewQuery.vue
  28. 2 0
      src/xt_pages/stock/query/goodNewQueryPrint.vue
  29. 36 0
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  30. 2 0
      src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue
  31. 33 37
      src/xt_pages/user/Sitemap.vue
  32. 8 10
      src/xt_pages/user/components/PatientDetail.vue
  33. 10 12
      src/xt_pages/user/components/PatientForm.vue
  34. 15 0
      src/xt_pages/user/dialysisRecord.vue
  35. 128 32
      src/xt_pages/user/patients.vue
  36. 1 1
      src/xt_pages/workforce/components/tableWeeks.vue
  37. 20 1
      src/xt_pages/workforce/next_remind_print.vue
  38. 23 13
      src/xt_pages/workforce/remind_print.vue
  39. 90 17
      src/xt_pages/workforce/remind_print_setting_one.vue

+ 1 - 0
package.json View File

55
     "js-cookie": "2.2.0",
55
     "js-cookie": "2.2.0",
56
     "jsbarcode": "^3.11.5",
56
     "jsbarcode": "^3.11.5",
57
     "jsonlint": "1.6.3",
57
     "jsonlint": "1.6.3",
58
+    "jspdf": "^2.5.1",
58
     "jszip": "3.1.5",
59
     "jszip": "3.1.5",
59
     "mockjs": "1.0.1-beta3",
60
     "mockjs": "1.0.1-beta3",
60
     "moment": "^2.24.0",
61
     "moment": "^2.24.0",

+ 53 - 0
src/api/dialysis.js View File

457
     params:params
457
     params:params
458
   })
458
   })
459
 }
459
 }
460
+
461
+
462
+export function getPatientList(keyword,params){
463
+   console.log("paramswoowwo",params)
464
+  return request({
465
+    url:"/api/patient/getpatientlist?keyword="+keyword,
466
+    method:"get",
467
+    params:params
468
+  })
469
+}
470
+
471
+export function getPrescriptionLogList(params){
472
+  
473
+  return request({
474
+    url:"/api/patient/getprescriptionloglist",
475
+    method:"get",
476
+    params:params
477
+  })
478
+}
479
+
480
+export function getBeforLogList(params){
481
+ 
482
+  return request({
483
+    url:"/api/patient/getbeforloglist",
484
+    method:"get",
485
+    params:params
486
+  })
487
+}
488
+
489
+export function getDocLogLogList(params){
490
+  return request({
491
+    url:"/api/patient/getdocloglist",
492
+    method:"get",
493
+    params:params
494
+  })
495
+}
496
+
497
+export function getMonitorLogList(params){
498
+  return request({
499
+    url:"/api/patient/getmonitorloglist",
500
+    method:"get",
501
+    params:params
502
+  })
503
+}
504
+
505
+export function getAferLogList(params){
506
+
507
+  return request({
508
+    url:"/api/patient/getafterloglist",
509
+    method:"get",
510
+    params:params,
511
+  })
512
+}

+ 29 - 2
src/api/patient.js View File

246
   })
246
   })
247
 }
247
 }
248
 
248
 
249
-export function EditLapseto(patient_id, data) {
249
+export function EditLapseto(patient_id, data,start_time,end_time,address) {
250
   return request({
250
   return request({
251
-    url: '/api/patients/lapseto/edit?id=' + patient_id,
251
+    url: '/api/patients/lapseto/edit?id=' + patient_id+"&start_time="+start_time+"&end_time="+end_time+"&patient_address="+address,
252
     method: 'post',
252
     method: 'post',
253
     data: data
253
     data: data
254
   })
254
   })
767
     method:"get",
767
     method:"get",
768
     params:params
768
     params:params
769
   })
769
   })
770
+}
771
+
772
+export function saveSitemap(data){
773
+  
774
+  return request({
775
+    url:"/api/patient/savesitemap",
776
+    method:"Post",
777
+    data:data,
778
+  })
779
+}
780
+
781
+export function getPatientSitemap(patient_id,params){
782
+  
783
+  return request({
784
+    url:"/api/patient/getpatientsitemap?patient_id="+patient_id,
785
+    method:"Get",
786
+    params:params
787
+  })
788
+}
789
+
790
+export function updateSiteMap(data){
791
+   
792
+  return request({
793
+    url:"/api/patient/updatesitemap",
794
+    method:"Post",
795
+    data:data,
796
+  })
770
 }
797
 }

+ 4 - 4
src/api/role/admin.js View File

275
   })
275
   })
276
 }
276
 }
277
 
277
 
278
-export function UploadPrintOrder(str,params){
278
+export function UploadPrintOrder(data){
279
   
279
   
280
   return request({
280
   return request({
281
-    url:"/api/device/uploadprintorder?name="+str,
282
-    method:"Get",
283
-    params:params,
281
+    url:"/api/device/uploadprintorder",
282
+    method:"Post",
283
+    data:data,
284
   })
284
   })
285
 }
285
 }

+ 1 - 0
src/lang/en.js View File

83
     dialysisRecord: 'dialysisRecord',
83
     dialysisRecord: 'dialysisRecord',
84
     dialysisInfo:'dialysisInfo',
84
     dialysisInfo:'dialysisInfo',
85
     dialysis_index:'dialysis_index',
85
     dialysis_index:'dialysis_index',
86
+    log_index:'log_index',
86
     scheduling: 'scheduling',
87
     scheduling: 'scheduling',
87
     device: 'Device',
88
     device: 'Device',
88
     deviceManage: 'Device Manage',
89
     deviceManage: 'Device Manage',

+ 1 - 0
src/lang/zh.js View File

297
     zeroSummary: '零用明细汇总',
297
     zeroSummary: '零用明细汇总',
298
     hospitalhistory: '住院历史',
298
     hospitalhistory: '住院历史',
299
     dialysis_index:'信息归档',
299
     dialysis_index:'信息归档',
300
+    log_index:"日志查询",
300
     objectRegistration:"医疗器械登记",
301
     objectRegistration:"医疗器械登记",
301
     Dialysisanalysis: '专业质控'
302
     Dialysisanalysis: '专业质控'
302
   },
303
   },

+ 2 - 0
src/router/index.js View File

10
 import qcd from './modules/qcd'
10
 import qcd from './modules/qcd'
11
 import Dialysisanalysis from './modules/Dialysisanalysis'
11
 import Dialysisanalysis from './modules/Dialysisanalysis'
12
 import DialysisIndex from './modules/dialysisIndex'
12
 import DialysisIndex from './modules/dialysisIndex'
13
+import DialysisLogIndex from './modules/logIndex'
13
 import stock from './modules/stock'
14
 import stock from './modules/stock'
14
 import weight_sign from './modules/weight_sign'
15
 import weight_sign from './modules/weight_sign'
15
 import workforce from './modules/workforce'
16
 import workforce from './modules/workforce'
206
   supply,
207
   supply,
207
   Dialysisanalysis,// 新菜单6.1
208
   Dialysisanalysis,// 新菜单6.1
208
   DialysisIndex,
209
   DialysisIndex,
210
+  DialysisLogIndex,
209
 ]
211
 ]
210
 
212
 
211
 var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证
213
 var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证

+ 1 - 1
src/views/layout/Layout.vue View File

134
   created(){
134
   created(){
135
     let menzhen = ['hospitalStation',"hospitalRecord","hospitalCharges","DepositManagement","hisTool",'outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord'];
135
     let menzhen = ['hospitalStation',"hospitalRecord","hospitalCharges","DepositManagement","hisTool",'outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord'];
136
     let bingli = ['User','createPatient'];
136
     let bingli = ['User','createPatient'];
137
-    let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index'];
137
+    let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','log_index'];
138
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','inventoryTransfer','wareHouseManage','otherManagement'];
138
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','inventoryTransfer','wareHouseManage','otherManagement'];
139
     let caigou = ['supplyManage','supplyList'];
139
     let caigou = ['supplyManage','supplyList'];
140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];
140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];

+ 2 - 2
src/views/layout/components/Sidebar/index.vue View File

48
   },
48
   },
49
   created(){
49
   created(){
50
     if(this.navTitle == '透析管理'){
50
     if(this.navTitle == '透析管理'){
51
-      let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis'];
51
+      let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis','log_index'];
52
       // console.log('permission_routers',this.permission_routers)
52
       // console.log('permission_routers',this.permission_routers)
53
       let routerArr = [];
53
       let routerArr = [];
54
       this.permission_routers.map(item => {
54
       this.permission_routers.map(item => {
120
             this.$emit('func',a)
120
             this.$emit('func',a)
121
           }
121
           }
122
         }else if(newVal == '透析管理'){
122
         }else if(newVal == '透析管理'){
123
-          let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis'];
123
+          let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis','log_index'];
124
           // console.log('permission_routers',this.permission_routers)
124
           // console.log('permission_routers',this.permission_routers)
125
           let routerArr = [];
125
           let routerArr = [];
126
           this.permission_routers.map(item => {
126
           this.permission_routers.map(item => {

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

915
                       style="padding: 2px 0; line-height: 23px; display: flex"
915
                       style="padding: 2px 0; line-height: 23px; display: flex"
916
                     >
916
                     >
917
                       <div class="inline_block" style="flex: 1"
917
                       <div class="inline_block" style="flex: 1"
918
-                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510">
918
+                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460">
919
                         上次透后体重:
919
                         上次透后体重:
920
                         <div
920
                         <div
921
                           class="under_line"
921
                           class="under_line"
941
                       </div>
941
                       </div>
942
 
942
 
943
                       <div class="inline_block" style="flex: 1"
943
                       <div class="inline_block" style="flex: 1"
944
-                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495)&& org_id!=10510">
944
+                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460)&& org_id!=10510">
945
                         上次透后体重:
945
                         上次透后体重:
946
                         <div
946
                         <div
947
                           class="under_line"
947
                           class="under_line"
1349
                           <td width="60">时间</td>
1349
                           <td width="60">时间</td>
1350
                           <td width="60">血压<br />(mmHg)</td>
1350
                           <td width="60">血压<br />(mmHg)</td>
1351
                           <td width="50">脉搏<br />(次/分)</td>
1351
                           <td width="50">脉搏<br />(次/分)</td>
1352
-                          <td width="50">呼吸<br />(次/分)</td>
1352
+                          <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1353
                           <td width="50">血流量<br />(ml/min)</td>
1353
                           <td width="50">血流量<br />(ml/min)</td>
1354
                           <td width="50" v-if="org_id == 10478">动脉压<br />(mmHg)</td>
1354
                           <td width="50" v-if="org_id == 10478">动脉压<br />(mmHg)</td>
1355
                           <td width="50">静脉压<br />(mmHg)</td>
1355
                           <td width="50">静脉压<br />(mmHg)</td>
1467
                                 : ""
1467
                                 : ""
1468
                             }}
1468
                             }}
1469
                           </td>
1469
                           </td>
1470
-                          <td>
1470
+                          <td v-if="org_id!=10489">
1471
                             {{
1471
                             {{
1472
                               monitor_record.breathing_rate
1472
                               monitor_record.breathing_rate
1473
                                 ? monitor_record.breathing_rate
1473
                                 ? monitor_record.breathing_rate

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

88
                   <span style="width: 14%;">震颤:</span>
88
                   <span style="width: 14%;">震颤:</span>
89
                   <span style="width: 14%;">外观:</span>
89
                   <span style="width: 14%;">外观:</span>
90
                   <span style="width: 14%;">置换方式:
90
                   <span style="width: 14%;">置换方式:
91
-                    {{
92
-                          getDisplaceLiquiPart(record.prescription.displace_liqui_part)
93
-                        }}
91
+                    {{getDisplaceLiquiPart(record.prescription.displace_liqui_part)}}
94
                   </span>
92
                   </span>
95
                   <span style="width: 14%;">置换总量:
93
                   <span style="width: 14%;">置换总量:
96
-                    {{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : "/" }}
94
+                    {{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : "/" }}L
97
                   </span>
95
                   </span>
98
                 </td>
96
                 </td>
99
               </tr>
97
               </tr>

+ 14 - 18
src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue View File

97
                       </td>
97
                       </td>
98
                       <td width="120">
98
                       <td width="120">
99
                         <div class="under-line">&nbsp;
99
                         <div class="under-line">&nbsp;
100
-                          <span style="width:30px;text-align:left;">
101
-                          {{ record.assessment_after_dislysis.actual_treatment_hour ? 
102
-                          record.assessment_after_dislysis.actual_treatment_hour : '' }}
103
-                        </span>h
104
-                        <span style="width:30px;text-align:left;" v-if="record.assessment_after_dislysis.actual_treatment_minute>0">
105
-                          {{ record.assessment_after_dislysis.actual_treatment_minute ? 
106
-                          record.assessment_after_dislysis.actual_treatment_minute : '0' }}
107
-                        </span>min
100
+                          {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
108
                       </div>
101
                       </div>
109
                       </td>
102
                       </td>
110
                       <td width="10"></td>
103
                       <td width="10"></td>
113
                       <td width="120">
106
                       <td width="120">
114
                         <div class="under-line">&nbsp;
107
                         <div class="under-line">&nbsp;
115
                           {{
108
                           {{
116
-                            record.patient.total_dialysis +
109
+                            record.Count +
117
                             record.patient.user_sys_before_count
110
                             record.patient.user_sys_before_count
118
-                              ? record.patient.total_dialysis +
111
+                              ? record.Count +
119
                                 record.patient.user_sys_before_count
112
                                 record.patient.user_sys_before_count
120
                               : "/"
113
                               : "/"
121
                           }}
114
                           }}
1558
                               <td width="70">抗凝方式:</td>
1551
                               <td width="70">抗凝方式:</td>
1559
                               <td width="120">
1552
                               <td width="120">
1560
                                 <label-box
1553
                                 <label-box
1561
-                                  :isChecked="
1562
-                                    record.prescription.anticoagulant == 6
1554
+                                  :isChecked="(record.prescription.anticoagulant == 6 || record.prescription.anticoagulant == 7 || record.prescription.anticoagulant == 3)
1563
                                       ? true
1555
                                       ? true
1564
                                       : false
1556
                                       : false
1565
                                   "
1557
                                   "
1566
-                                  showValue="低分子肝素"
1558
+                                  showValue="低分子肝素"
1567
                                 ></label-box>
1559
                                 ></label-box>
1568
                               </td>
1560
                               </td>
1569
 
1561
 
1572
                                   &nbsp;
1564
                                   &nbsp;
1573
                                   <span
1565
                                   <span
1574
                                     v-if="
1566
                                     v-if="
1575
-                                      record.prescription.anticoagulant == 6
1567
+                                      record.prescription.anticoagulant == 6 || record.prescription.anticoagulant == 7 || record.prescription.anticoagulant == 3
1576
                                     "
1568
                                     "
1577
                                     >{{
1569
                                     >{{
1578
                                       record.prescription
1570
                                       record.prescription
1880
                                 </div>
1872
                                 </div>
1881
                               </td>
1873
                               </td>
1882
                               <td width="10">ml</td>
1874
                               <td width="10">ml</td>
1883
-                              <td></td>
1875
+                              <td style="padding-left:5px;width:20%;">
1876
+                                 置换液总量:
1877
+                               <span style="width:50px;display: inline-block;">&nbsp;{{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : '' }}</span>L
1878
+                             </td>
1879
+                              
1884
                             </tr>
1880
                             </tr>
1885
                           </tbody>
1881
                           </tbody>
1886
                         </table>
1882
                         </table>
2911
                           v-if="
2907
                           v-if="
2912
                             setAdminUserES(
2908
                             setAdminUserES(
2913
                               advice[0],
2909
                               advice[0],
2914
-                              'execution_staff'
2910
+                              'advice_doctor'
2915
                             ) == ''
2911
                             ) == ''
2916
                           "
2912
                           "
2917
                           >{{
2913
                           >{{
2918
-                            getAdminUser(advice[0], "execution_staff")
2914
+                            getAdminUser(advice[0], "advice_doctor")
2919
                           }}</span
2915
                           }}</span
2920
                         >
2916
                         >
2921
                         <img
2917
                         <img
2922
                           class="es-img"
2918
                           class="es-img"
2923
                           :src="
2919
                           :src="
2924
-                            setAdminUserES(advice[0], 'execution_staff')
2920
+                            setAdminUserES(advice[0], 'advice_doctor')
2925
                           "
2921
                           "
2926
                           alt=""
2922
                           alt=""
2927
                           srcset=""
2923
                           srcset=""

+ 7 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

20
 
20
 
21
         </li>
21
         </li>
22
 
22
 
23
-         <li v-if="isShow('置换速度')">
23
+         <li v-if="isShow('置换速度')&& this.$store.getters.xt_user.template_info.org_id!=10375">
24
           <label>置换速度 : </label>
24
           <label>置换速度 : </label>
25
           <span class="content">{{displace_speed }}</span>
25
           <span class="content">{{displace_speed }}</span>
26
             <span class="unit">ml/min</span>
26
             <span class="unit">ml/min</span>
27
         </li>
27
         </li>
28
 
28
 
29
+        <li v-if="isShow('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375">
30
+          <label>置换速度 : </label>
31
+          <span class="content">{{displace_speed }}</span>
32
+            <span class="unit">ml/L</span>
33
+        </li>
34
+
29
 
35
 
30
         <li v-if="isShow('透析液配方')">
36
         <li v-if="isShow('透析液配方')">
31
           <label>透析液配方 : </label>
37
           <label>透析液配方 : </label>

+ 13 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

604
                     </el-col>
604
                     </el-col>
605
 
605
 
606
 
606
 
607
-                    <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
607
+                    <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id != 10375" v-show="totalShow">
608
                         <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
608
                         <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
609
                             <el-input
609
                             <el-input
610
                                     v-model="dialysisPrescription.displace_speed"
610
                                     v-model="dialysisPrescription.displace_speed"
612
                         </el-form-item>
612
                         </el-form-item>
613
                     </el-col>
613
                     </el-col>
614
 
614
 
615
+                    <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375" v-show="totalShow">
616
+                        <el-form-item label="置换速度(L/h)" prop="displace_speed" :rules="isCheckmust('置换速度')">
617
+                            <el-input
618
+                                    v-model="dialysisPrescription.displace_speed"
619
+                            ></el-input>
620
+                        </el-form-item>
621
+                    </el-col>
622
+
615
                     <el-col
623
                     <el-col
616
                             :span="8"
624
                             :span="8"
617
                             v-if="isShows('钙名称')"
625
                             v-if="isShows('钙名称')"
3333
         this.hide()
3341
         this.hide()
3334
       },
3342
       },
3335
       handleSolution: function(formName) {
3343
       handleSolution: function(formName) {
3344
+        if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
3345
+          this.dialysisPrescription.anticoagulant = 3
3346
+        }
3336
         this.$refs[formName].validate((valid)=>{
3347
         this.$refs[formName].validate((valid)=>{
3337
           if(valid){
3348
           if(valid){
3338
             if(!this.isLoading){
3349
             if(!this.isLoading){
3387
                   ParamsQuery['patient'] = this.patient.id
3398
                   ParamsQuery['patient'] = this.patient.id
3388
                   ParamsQuery['record_date'] = this.record_date
3399
                   ParamsQuery['record_date'] = this.record_date
3389
                   ParamsQuery['mode'] = '1'
3400
                   ParamsQuery['mode'] = '1'
3390
-
3401
+               
3391
                   postSoulution(ParamsQuery).then(response => {
3402
                   postSoulution(ParamsQuery).then(response => {
3392
                     if (response.data.state == 0) {
3403
                     if (response.data.state == 0) {
3393
                       this.$message.error(response.data.msg)
3404
                       this.$message.error(response.data.msg)

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

20
           <span class="content">{{end_time}}</span>
20
           <span class="content">{{end_time}}</span>
21
         </li>
21
         </li>
22
       </ul>
22
       </ul>
23
-      <ul>
23
+      <ul v-if="org_id!=0&&org_id!=10460">
24
         <li>
24
         <li>
25
           <label>宣教知识 : </label>
25
           <label>宣教知识 : </label>
26
           <span class="content">{{this.record.mission}}</span>
26
           <span class="content">{{this.record.mission}}</span>
38
   name: 'DialysisComputer',
38
   name: 'DialysisComputer',
39
   data() {
39
   data() {
40
       return {
40
       return {
41
-        title: '透析下机 '
41
+        title: '透析下机 ',
42
+        org_id:0,
42
       }
43
       }
43
   },
44
   },
44
   props: {
45
   props: {
76
   },
77
   },
77
   methods: {
78
   methods: {
78
 
79
 
80
+  },
81
+  created(){
82
+    this.org_id = this.$store.getters.xt_user.org.id
79
   }
83
   }
80
 }
84
 }
81
 </script>
85
 </script>

+ 9 - 44
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
-    <!-- <el-button type="primary" @click="toUpload">一键上传</el-button> -->
5
-    <div id="dialysis-print-box-1" ref="pdfContent">
4
+    
5
+    <div id="dialysis-print-box-1"  ref="pdfContent">
6
       <div
6
       <div
7
         id="dialysis-print-box-1-1"
7
         id="dialysis-print-box-1-1"
8
         class="dialysis-print-order print-template-two print_page_main_content"
8
         class="dialysis-print-order print-template-two print_page_main_content"
828
                             ? prescription.dialyzer_perfusion_apparatus
828
                             ? prescription.dialyzer_perfusion_apparatus
829
                             : ""
829
                             : ""
830
                         }}
830
                         }}
831
-                        <span v-if="prescription.dialysis_dialyszers&&prescription.dialysis_dialyszers!=''">/</span>
831
+                        <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span>
832
                         {{
832
                         {{
833
                           prescription.dialysis_dialyszers
833
                           prescription.dialysis_dialyszers
834
                             ? prescription.dialysis_dialyszers
834
                             ? prescription.dialysis_dialyszers
951
                         class="under_line"
951
                         class="under_line"
952
                         style="width: 100px; text-align: center"
952
                         style="width: 100px; text-align: center"
953
                       >
953
                       >
954
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495">{{
954
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460">{{
955
                           lastafterdialysis.weight_after
955
                           lastafterdialysis.weight_after
956
                         }}</span>
956
                         }}</span>
957
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495">{{
957
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460">{{
958
                           predialysis.weight_after_last_transparency
958
                           predialysis.weight_after_last_transparency
959
                             ? predialysis.weight_after_last_transparency
959
                             ? predialysis.weight_after_last_transparency
960
                             : "未称重"
960
                             : "未称重"
1431
                         <td width="50">时间</td>
1431
                         <td width="50">时间</td>
1432
                         <td width="65">血压<br />(mmHg)</td>
1432
                         <td width="65">血压<br />(mmHg)</td>
1433
                         <td width="50">脉搏<br />(次/分)</td>
1433
                         <td width="50">脉搏<br />(次/分)</td>
1434
-                        <td width="50">呼吸<br />(次/分)</td>
1434
+                        <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1435
                         <td width="50">血流量<br />(ml/min)</td>
1435
                         <td width="50">血流量<br />(ml/min)</td>
1436
                         <td width="50" v-if="org_id==10478 || org_id == 0">
1436
                         <td width="50" v-if="org_id==10478 || org_id == 0">
1437
                           动脉压<br />({{
1437
                           动脉压<br />({{
1488
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1488
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1489
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1489
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1490
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1490
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1491
-                        <td>{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1491
+                        <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1492
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1492
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1493
                         <td v-if="org_id ==10478">
1493
                         <td v-if="org_id ==10478">
1494
                           {{
1494
                           {{
3122
 import html2pdf from 'html2pdf.js'
3122
 import html2pdf from 'html2pdf.js'
3123
 import { UploadPrintOrder } from "@/api/role/admin"
3123
 import { UploadPrintOrder } from "@/api/role/admin"
3124
 import { HTML5_FMT } from "moment";
3124
 import { HTML5_FMT } from "moment";
3125
+import html2canvas from 'html2canvas'
3126
+import { jsPDF } from 'jspdf';
3125
 export default {
3127
 export default {
3126
   name: "dialysisPrintOrderSix",
3128
   name: "dialysisPrintOrderSix",
3127
   props: ["childResponse"],
3129
   props: ["childResponse"],
4082
       }
4084
       }
4083
     },
4085
     },
4084
 
4086
 
4085
-    toUpload(){
4086
-      const content = this.$refs.pdfContent;
4087
-      console.log("contentwowowowow",content)
4088
-      // Convert HTML to PDF
4089
-      const pdfOptions = {
4090
-        margin: 10,
4091
-        filename: 'sample.pdf',
4092
-        image: { type: 'jpeg', quality: 0.98 },
4093
-        html2canvas: { scale: 2 },
4094
-        jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' },
4095
-      };
4096
-      
4097
-      const pdf =  html2pdf().from(content).set(pdfOptions).outputPdf();
4098
-      
4099
-      console.log("pdfwowowoow",pdf)
4100
-      // Convert PDF to Base64
4101
-      const pdfBlob = new Blob([pdf], { type: 'application/pdf' });
4102
-      const reader = new FileReader();
4103
-      
4104
-      reader.onload = () => {
4105
-      const base64Data = reader.result.split(',')[1]; // Base64 string
4106
-      console.log('Base64 PDF:', base64Data);
4107
-
4108
-        UploadPrintOrder(base64Data).then(response=>{
4109
-           if(response.data.state == 1){
4110
-             var sign =  response.data.data.sign
4111
-             console.log("paramwowowo",sign)
4112
-             this.$message.success("上传成功")
4113
-           }
4114
-        })
4115
-        
4116
-        // Here, you can use the base64Data as needed, like sending it to the server, etc.
4117
-      };
4118
-      
4119
-      reader.readAsDataURL(pdfBlob);
4120
-    
4121
-    }
4122
   },
4087
   },
4123
   watch: {
4088
   watch: {
4124
     "patientInfo.gender": function () {
4089
     "patientInfo.gender": function () {

+ 77 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

1
 <template>
1
 <template>
2
   <div >
2
   <div >
3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4
+    <el-button type="primary" @click="toUpload">一键上传</el-button>
4
     <div id="dialysis-print-box-64">
5
     <div id="dialysis-print-box-64">
5
       <div
6
       <div
6
         id="dialysis-print-box-64-1"
7
         id="dialysis-print-box-64-1"
721
 import { getDialysisRecord } from "@/api/dialysis";
722
 import { getDialysisRecord } from "@/api/dialysis";
722
 import { jsGetAge, uParseTime } from "@/utils/tools";
723
 import { jsGetAge, uParseTime } from "@/utils/tools";
723
 import { getDataConfig } from "@/utils/data";
724
 import { getDataConfig } from "@/utils/data";
725
+import print from "print-js";
726
+import html2pdf from 'html2pdf.js'
727
+import { UploadPrintOrder } from "@/api/role/admin"
728
+import { HTML5_FMT } from "moment";
729
+import html2canvas from 'html2canvas'
730
+import { jsPDF } from 'jspdf';
724
 export default {
731
 export default {
725
   data() {
732
   data() {
726
     return {
733
     return {
1221
         }
1228
         }
1222
       }
1229
       }
1223
       return name
1230
       return name
1224
-    }
1231
+    },
1232
+
1233
+    toUpload() {
1234
+        let dom = document.getElementById("dialysis-print-box-64");
1235
+        //调用方法下载
1236
+        html2canvas(dom, {
1237
+          useCORS: true, //允许跨域
1238
+          allowTaint: false,
1239
+          logging: false,
1240
+          letterRendering: true,
1241
+          ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1242
+          scale: 4, //按比例增加分辨率
1243
+          background: '#fff',//pdf背景色为白色,默认是黑色的
1244
+       
1245
+        }).then((canvas) => {
1246
+          //返回图片dataURL,参数:图片格式和清晰度(0-1)
1247
+          var pageData = canvas.toDataURL('image/jpeg', 1.0);
1248
+
1249
+          //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
1250
+          var pdf = new jsPDF('', 'pt', 'a4');
1251
+
1252
+          //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1253
+          pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1254
+
1255
+          var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1256
+          console.log("base63",newBase64Data)
1257
+          this.viewPdf(newBase64Data)
1258
+
1259
+          var data = {
1260
+            name:newBase64Data,
1261
+          }
1262
+          UploadPrintOrder(data).then(response=>{
1263
+            if(response.data.state == 1){
1264
+              var sign =  response.data.data.sign
1265
+              console.log("SIGNWWOOWWO")
1266
+              this.$message.success("保存成功!")
1267
+            }
1268
+          })
1269
+          
1270
+          // this.viewPdf(newBase64Data)
1271
+          //保存到pdf,名字是stone
1272
+          // pdf.save('stone.pdf');
1273
+         
1274
+        });
1275
+      },
1276
+   
1277
+    viewPdf(content) {
1278
+      console.log("content",content);
1279
+      const blob = this.base64ToBlob(content);
1280
+      if (window.navigator && window.navigator.msSaveOrOpenBlob) {
1281
+        window.navigator.msSaveOrOpenBlob(blob);
1282
+      } else {
1283
+        const fileURL = URL.createObjectURL(blob);
1284
+        console.log("fileUlrwowowoow",fileURL)
1285
+        window.open(fileURL);//打开ppf文件
1286
+      }
1287
+    },
1288
+    base64ToBlob(code) {
1289
+      code = code.replace(/[\n\r]/g, '');// 检查base64字符串是否符合base64编码
1290
+      // atob() 方法用于解码使用 base-64 编码的字符串。
1291
+      const raw = window.atob(code);
1292
+      const rawLength = raw.length;
1293
+      const uInt8Array = new Uint8Array(rawLength);
1294
+      for (let i = 0; i < rawLength; ++i) {
1295
+      // 将解码后的逐个字符转换成Unicode序号,放入Unit8Array数组
1296
+        uInt8Array[i] = raw.charCodeAt(i);
1297
+      }
1298
+      // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1299
+      return new Blob([uInt8Array], { type: 'application/pdf' });
1300
+    },
1225
   },
1301
   },
1226
   created() {
1302
   created() {
1227
     var bloodAccessParOpera = getDataConfig(
1303
     var bloodAccessParOpera = getDataConfig(

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

63
               <td width="10"></td>
63
               <td width="10"></td>
64
               <td width="80">透析次数:</td>
64
               <td width="80">透析次数:</td>
65
               <td width="120">
65
               <td width="120">
66
-                <div class="under-line">&nbsp;{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }}</div>
66
+                <div class="under-line">&nbsp;
67
+                  {{
68
+                          patientInfo.total_dialysis +
69
+                          patientInfo.user_sys_before_count
70
+                            ? patientInfo.total_dialysis +
71
+                              patientInfo.user_sys_before_count
72
+                            : "/"
73
+                        }}
74
+                </div>
67
               </td>
75
               </td>
68
               <td></td>
76
               <td></td>
69
             </tr>
77
             </tr>
593
                           &nbsp;{{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
601
                           &nbsp;{{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
594
                         </div>
602
                         </div>
595
                       </td>
603
                       </td>
596
-                      <td width="35">min</td>
604
+                      <td width="35" v-if="afterdialysis.actual_treatment_minute>0">min</td>
597
                       <td></td>
605
                       <td></td>
598
                     </tr>
606
                     </tr>
599
                   </tbody>
607
                   </tbody>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue View File

103
                     }}
103
                     }}
104
                   </span>
104
                   </span>
105
                   <span style="width: 14%;">置换总量:
105
                   <span style="width: 14%;">置换总量:
106
-                    {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
106
+                    {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}L
107
                   </span>
107
                   </span>
108
                 </td>
108
                 </td>
109
               </tr>
109
               </tr>

+ 2 - 0
src/xt_pages/medicalScheduling/schedulingStatistics.vue View File

745
         changeTime(val){
745
         changeTime(val){
746
             this.start_time = val.getTime()/1000
746
             this.start_time = val.getTime()/1000
747
             this.getlist()
747
             this.getlist()
748
+            this.getchartlist()
748
         },
749
         },
749
         changeTimeTwo(val){
750
         changeTimeTwo(val){
750
             this.end_time = val.getTime()/1000
751
             this.end_time = val.getTime()/1000
751
             this.getlist()
752
             this.getlist()
753
+            this.getchartlist()
752
         },
754
         },
753
         compare(property){
755
         compare(property){
754
             return function(a,b){
756
             return function(a,b){

+ 8 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1774
               // }
1774
               // }
1775
 
1775
 
1776
               var preTime = nowTime
1776
               var preTime = nowTime
1777
-              if ( this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191){
1777
+              if ( this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191  && this.$store.getters.xt_user.org.id != 10375){
1778
                 if (prescription.pre_time == 0) {
1778
                 if (prescription.pre_time == 0) {
1779
                   if (this.schedule.schedule_type == 1) {
1779
                   if (this.schedule.schedule_type == 1) {
1780
                     if(this.org_id == 10028){
1780
                     if(this.org_id == 10028){
1936
                   tempProject.push(obj)
1936
                   tempProject.push(obj)
1937
                 }
1937
                 }
1938
                 var preTime = nowTime
1938
                 var preTime = nowTime
1939
-                if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191) {
1939
+                if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
1940
                   if (this.schedule.schedule_type == 1) {
1940
                   if (this.schedule.schedule_type == 1) {
1941
                     if(this.org_id == 10028){
1941
                     if(this.org_id == 10028){
1942
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
1942
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2252
                     // }
2252
                     // }
2253
 
2253
 
2254
                     var preTime = nowTime
2254
                     var preTime = nowTime
2255
-                    if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 ) {
2255
+                    if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
2256
                       if (prescription.pre_time == 0) {
2256
                       if (prescription.pre_time == 0) {
2257
                         if (this.schedule.schedule_type == 1) {
2257
                         if (this.schedule.schedule_type == 1) {
2258
                           if(this.org_id == 10028){
2258
                           if(this.org_id == 10028){
2416
 
2416
 
2417
                       var preTime = nowTime
2417
                       var preTime = nowTime
2418
                       // var preTime = ''
2418
                       // var preTime = ''
2419
-                      if(this.org_id != 0 && this.org_id !=  9919 && this.org_id !=  10485 && this.org_id !=  10191) {
2419
+                      if(this.org_id != 0 && this.org_id !=  9919 && this.org_id !=  10485 && this.org_id !=  10191 && this.$store.getters.xt_user.org.id != 10375) {
2420
                         if (this.schedule.schedule_type == 1) {
2420
                         if (this.schedule.schedule_type == 1) {
2421
                           if(this.org_id == 10028){
2421
                           if(this.org_id == 10028){
2422
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2422
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
3928
 
3928
 
3929
                     var preTime = nowTime
3929
                     var preTime = nowTime
3930
 
3930
 
3931
-                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id  != 10485 && this.org_id  != 10191 ) {
3931
+                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id  != 10485 && this.org_id  != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
3932
                       if (prescription.pre_time == 0) {
3932
                       if (prescription.pre_time == 0) {
3933
                         if (this.schedule.schedule_type == 1) {
3933
                         if (this.schedule.schedule_type == 1) {
3934
                           if(this.org_id == 10028){
3934
                           if(this.org_id == 10028){
4088
 
4088
 
4089
                       // var preTime = nowTime
4089
                       // var preTime = nowTime
4090
                       var preTime = nowTime
4090
                       var preTime = nowTime
4091
-                      if( this.org_id != 0 && this.org_id != 9919 &&  this.org_id != 10485 &&  this.org_id != 10191) {
4091
+                      if( this.org_id != 0 && this.org_id != 9919 &&  this.org_id != 10485 &&  this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4092
                         if (this.schedule.schedule_type == 1) {
4092
                         if (this.schedule.schedule_type == 1) {
4093
                           if(this.org_id == 10028){
4093
                           if(this.org_id == 10028){
4094
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4094
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4577
 
4577
 
4578
                     var preTime = nowTime
4578
                     var preTime = nowTime
4579
 
4579
 
4580
-                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191) {
4580
+                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4581
                       if (prescription.pre_time == 0) {
4581
                       if (prescription.pre_time == 0) {
4582
                         // preTime = nowTime
4582
                         // preTime = nowTime
4583
                         if (this.schedule.schedule_type == 1) {
4583
                         if (this.schedule.schedule_type == 1) {
4740
 
4740
 
4741
                       var preTime = nowTime
4741
                       var preTime = nowTime
4742
                       // var preTime = ''
4742
                       // var preTime = ''
4743
-                      if(this.org_id != 0 && this.org_id != 9919  && this.org_id != 10485 && this.org_id != 10191 ) {
4743
+                      if(this.org_id != 0 && this.org_id != 9919  && this.org_id != 10485 && this.org_id != 10191  && this.$store.getters.xt_user.org.id != 10375) {
4744
                         if (this.schedule.schedule_type == 1) {
4744
                         if (this.schedule.schedule_type == 1) {
4745
                           if(this.org_id == 10028){
4745
                           if(this.org_id == 10028){
4746
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4746
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'

+ 188 - 1
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue View File

67
       </div>
67
       </div>
68
       <div style="padding-left:10px;flex:1">
68
       <div style="padding-left:10px;flex:1">
69
         <div class="tableTitle">统计表</div>
69
         <div class="tableTitle">统计表</div>
70
-        <div><el-button type="primary" @click="exportList">导出</el-button></div>
70
+        <div>
71
+          <el-button type="primary" @click="exportList">按透析记录导出</el-button>
72
+          <el-button type="primary" @click="exportListOne">按排班导出</el-button>
73
+        </div>
74
+       
71
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
75
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
72
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
76
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
73
         >
77
         >
142
       },
146
       },
143
       patient_id:0,
147
       patient_id:0,
144
       modeIdCount:[],
148
       modeIdCount:[],
149
+      scheduleCount:[],
145
     };
150
     };
146
   },
151
   },
147
   methods: {
152
   methods: {
202
 
207
 
203
           var modeIdCount = response.data.data.modeIdCount
208
           var modeIdCount = response.data.data.modeIdCount
204
           console.log("modeidcount=====",modeIdCount)
209
           console.log("modeidcount=====",modeIdCount)
210
+
211
+        
212
+         
213
+
205
           for(let i=0;i<modeIdCount.length;i++){
214
           for(let i=0;i<modeIdCount.length;i++){
206
             if(modeIdCount[i].mode_id == 1){
215
             if(modeIdCount[i].mode_id == 1){
207
                modeIdCount[i].mode_id = "HD"
216
                modeIdCount[i].mode_id = "HD"
302
             }
311
             }
303
           }
312
           }
304
           this.modeIdCount = modeIdCount
313
           this.modeIdCount = modeIdCount
314
+
315
+          var scheduleCount =  response.data.data.scheduleCount
316
+          console.log("scheduleCount",scheduleCount)
317
+          for(let i=0;i<scheduleCount.length;i++){
318
+            if(scheduleCount[i].mode_id == 1){
319
+              scheduleCount[i].mode_id = "HD"
320
+            }
321
+            if(scheduleCount[i].mode_id == 2){
322
+              scheduleCount[i].mode_id = "HDF"
323
+            }
324
+            if(scheduleCount[i].mode_id == 3){
325
+              scheduleCount[i].mode_id = "HD+HP"
326
+            }
327
+            if(scheduleCount[i].mode_id == 4){
328
+              scheduleCount[i].mode_id = "HP"
329
+            }
330
+            if(scheduleCount[i].mode_id == 5){
331
+              scheduleCount[i].mode_id = "HF"
332
+            }
333
+            if(scheduleCount[i].mode_id == 6){
334
+              scheduleCount[i].mode_id = "SCUF"
335
+            }
336
+            if(scheduleCount[i].mode_id == 7){
337
+              scheduleCount[i].mode_id = "IUF"
338
+            }
339
+            if(scheduleCount[i].mode_id == 8){
340
+              scheduleCount[i].mode_id = "HFHD"
341
+            }
342
+            if(scheduleCount[i].mode_id == 9){
343
+              scheduleCount[i].mode_id = "HFHD+HP"
344
+            }
345
+            if(scheduleCount[i].mode_id == 10){
346
+              scheduleCount[i].mode_id = "PHF"
347
+            }
348
+            if(scheduleCount[i].mode_id == 11){
349
+              scheduleCount[i].mode_id = "HFR"
350
+            }
351
+            if(scheduleCount[i].mode_id == 12){
352
+              scheduleCount[i].mode_id = "HDF+HP"
353
+            }
354
+            if(scheduleCount[i].mode_id == 13){
355
+              scheduleCount[i].mode_id = "CRRT"
356
+            }
357
+             if(scheduleCount[i].mode_id == 14){
358
+              scheduleCount[i].mode_id = "腹水回输"
359
+            }
360
+             if(scheduleCount[i].mode_id == 15){
361
+              scheduleCount[i].mode_id = "HD前置换"
362
+            }
363
+             if(scheduleCount[i].mode_id == 16){
364
+              scheduleCount[i].mode_id = "HD后置换"
365
+            }
366
+             if(scheduleCount[i].mode_id == 17){
367
+              scheduleCount[i].mode_id = "HDF前置换"
368
+            }
369
+             if(scheduleCount[i].mode_id == 18){
370
+              scheduleCount[i].mode_id = "HDF后置换"
371
+            }
372
+              if(scheduleCount[i].mode_id == 19){
373
+                scheduleCount[i].mode_id = "IUF+HD"
374
+            }
375
+            if(scheduleCount[i].mode_id == 20){
376
+              scheduleCount[i].mode_id = "UF"
377
+            }
378
+            if(scheduleCount[i].mode_id == 21){
379
+              scheduleCount[i].mode_id = "HD+"
380
+            }
381
+            if(scheduleCount[i].mode_id == 22){
382
+              scheduleCount[i].mode_id = "血浆胆红素吸附+HDF"
383
+            }
384
+            if(scheduleCount[i].mode_id == 23){
385
+              scheduleCount[i].mode_id = "血浆胆红素吸附"
386
+            }
387
+            if(scheduleCount[i].mode_id == 24){
388
+              scheduleCount[i].mode_id = "I-HDF"
389
+            }
390
+            if(scheduleCount[i].mode_id == 25){
391
+              scheduleCount[i].mode_id = "HD高通"
392
+            }
393
+
394
+            if(scheduleCount[i].mode_id == 26){
395
+              scheduleCount[i].mode_id = "CVVH"
396
+            }
397
+            if(scheduleCount[i].mode_id == 27){
398
+              scheduleCount[i].mode_id = "CVVHD"
399
+            }
400
+             if(scheduleCount[i].mode_id == 28){
401
+              scheduleCount[i].mode_id = "CVVHDF"
402
+            }
403
+            if(scheduleCount[i].mode_id == 29){
404
+              scheduleCount[i].mode_id = "PE"
405
+            }
406
+            if(scheduleCount[i].mode_id == 30){
407
+              scheduleCount[i].mode_id = "血浆胆红素吸附+HP"
408
+            }
409
+           if(scheduleCount[i].mode_id == 31){
410
+            scheduleCount[i].mode_id = "HPD"
411
+            }
412
+            if(scheduleCount[i].mode_id == 32){
413
+              scheduleCount[i].mode_id = "HDP"
414
+            }
415
+          }
416
+          this.scheduleCount = scheduleCount
305
           let dataInfo = {}
417
           let dataInfo = {}
306
           list.forEach((item, index) => {
418
           list.forEach((item, index) => {
307
             let { patient_id } = item
419
             let { patient_id } = item
353
        }
465
        }
354
        return count
466
        return count
355
     },
467
     },
468
+    getScheduleDialysisCount(id){
469
+       var count = 0
470
+       for(let i=0;i<this.scheduleCount.length;i++){
471
+           if(id == this.scheduleCount[i].patient_id){
472
+              count += this.scheduleCount[i].Count
473
+           }
474
+       }
475
+       return count
476
+    },
356
     onSearch(){
477
     onSearch(){
357
       if(this.listQuery.search == "" || this.listQuery.search == null){
478
       if(this.listQuery.search == "" || this.listQuery.search == null){
358
          this.getDialysisList()
479
          this.getDialysisList()
576
           this.downloadLoading = false
697
           this.downloadLoading = false
577
         })
698
         })
578
       },
699
       },
700
+
701
+      exportListOne(){
702
+       for(let i=0;i<this.DialysisData.length;i++){
703
+         this.DialysisData[i].index = i+1
704
+         this.DialysisData[i].HD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD")
705
+         this.DialysisData[i].HDF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HDF")
706
+         this.DialysisData[i].HDHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD+HP")
707
+         this.DialysisData[i].HP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HP")
708
+         this.DialysisData[i].HF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HF")
709
+         this.DialysisData[i].SCUF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"SCUF")
710
+         this.DialysisData[i].IUF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"IUF")
711
+         this.DialysisData[i].HFHD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HFHD")
712
+         this.DialysisData[i].HFHDHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HFHD+HP")
713
+         this.DialysisData[i].HDFHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HDF+HP")
714
+         this.DialysisData[i].CRRT = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CRRT")
715
+         this.DialysisData[i].OTR = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"腹水回输")
716
+
717
+         this.DialysisData[i].IUFHD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"IUF+HD")
718
+         this.DialysisData[i].UF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"UF")
719
+         this.DialysisData[i].HDPlus = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD+")
720
+         this.DialysisData[i].IHDF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"I-HDF")
721
+         this.DialysisData[i].HDGT = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD高通")
722
+         this.DialysisData[i].CVVH = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CVVH")
723
+         this.DialysisData[i].CVVHD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CVVHD")
724
+         this.DialysisData[i].CVVHDF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CVVHDF")
725
+         this.DialysisData[i].PE = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"PE")
726
+         this.DialysisData[i].XUEHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"血浆胆红素吸附+HP")
727
+         this.DialysisData[i].HPD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HPD")
728
+         this.DialysisData[i].HDP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HDP")
729
+
730
+         this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
731
+         this.DialysisData[i].total_count = this.getScheduleDialysisCount(this.DialysisData[i].patient_id)
732
+       }
733
+       console.log("hhh2323323232",this.DialysisData)
734
+       import('@/vendor/Export2Excel').then(excel => {
735
+        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','总数']
736
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HDGT','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
737
+
738
+        const data = this.formatJson(filterVal, this.DialysisData)
739
+
740
+        excel.export_json_to_excel({
741
+           header: tHeader,
742
+           data,
743
+           filename: '透析详情'
744
+         })
745
+          this.downloadLoading = false
746
+        })
747
+      },
748
+
579
       formatJson(filterVal, jsonData) {
749
       formatJson(filterVal, jsonData) {
580
         return jsonData.map(v =>
750
         return jsonData.map(v =>
581
           filterVal.map(j => {
751
           filterVal.map(j => {
601
           }
771
           }
602
         }
772
         }
603
 
773
 
774
+        return count
775
+     },
776
+
777
+     getScheduleHdModeIdCount(id,mode_name){
778
+        var count = 0
779
+        var arr = []
780
+        for(let i = 0;i<this.scheduleCount.length;i++){
781
+           if(id == this.scheduleCount[i].patient_id && this.scheduleCount[i].mode_id == mode_name){
782
+             arr.push(this.scheduleCount[i])
783
+           }
784
+        }
785
+        if(arr.length > 0){
786
+          for(let i=0;i<arr.length;i++){
787
+            count += arr[i].Count
788
+          }
789
+        }
790
+
604
         return count
791
         return count
605
      }
792
      }
606
 
793
 

+ 7 - 5
src/xt_pages/role/admin.vue View File

162
           style="float:left"
162
           style="float:left"
163
           @click="toTestThrity">合同详情查询</el-button>
163
           @click="toTestThrity">合同详情查询</el-button>
164
 
164
 
165
-          <el-button
165
+
166
+         <el-button
166
           type="primary"
167
           type="primary"
167
           size="small"
168
           size="small"
168
           icon="el-icon-circle-plus-outline"
169
           icon="el-icon-circle-plus-outline"
169
           style="float:left"
170
           style="float:left"
170
-          @click="toEnd">结束签署</el-button> -->
171
+          @click="toWatch">合同在线预览</el-button>
171
 
172
 
172
-
173
-          <!-- <el-button
173
+          <el-button
174
           type="primary"
174
           type="primary"
175
           size="small"
175
           size="small"
176
           icon="el-icon-circle-plus-outline"
176
           icon="el-icon-circle-plus-outline"
177
           style="float:left"
177
           style="float:left"
178
-          @click="toWatch">合同在线预览</el-button> -->
178
+          @click="toEnd">结束签署</el-button> -->
179
+           
180
+         
179
           
181
           
180
      </div>
182
      </div>
181
     
183
     

+ 2 - 1
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

354
             <template slot-scope="scope">
354
             <template slot-scope="scope">
355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
357
-                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
357
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
358
                     <span v-if="is_sys == 0">
358
                     <span v-if="is_sys == 0">
359
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
359
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
360
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
360
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
1959
       if(max_unit == min_unit){
1959
       if(max_unit == min_unit){
1960
          all_price = max_str * price + min_str * price
1960
          all_price = max_str * price + min_str * price
1961
       }
1961
       }
1962
+      console.log("all_pricewowo",all_price)
1962
       if(all_price > 0){
1963
       if(all_price > 0){
1963
         return all_price.toFixed(2)
1964
         return all_price.toFixed(2)
1964
       }else{
1965
       }else{

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

46
 <script>
46
 <script>
47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
48
 const moment = require('moment');
48
 const moment = require('moment');
49
+import print from "print-js";
49
 import { uParseTime } from '@/utils/tools'
50
 import { uParseTime } from '@/utils/tools'
50
 import { getInventoryModeList } from "@/api/drug/drug"
51
 import { getInventoryModeList } from "@/api/drug/drug"
51
 export default {
52
 export default {

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

45
 
45
 
46
 <script>
46
 <script>
47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
48
+import print from "print-js";
48
 const moment = require('moment');
49
 const moment = require('moment');
49
 import { uParseTime } from '@/utils/tools'
50
 import { uParseTime } from '@/utils/tools'
50
 import { getInventoryExportList } from "@/api/stock"
51
 import { getInventoryExportList } from "@/api/stock"

+ 38 - 2
src/xt_pages/stock/query/goodNewQuery.vue View File

797
    exportList(){
797
    exportList(){
798
       import('@/vendor/Export2Excel').then(excel => {
798
       import('@/vendor/Export2Excel').then(excel => {
799
       
799
       
800
-         if(this.tableList!=null && this.tableList.length > 0){
800
+        if(this.org_id!=0 && this.org_id!=9956){
801
+          if(this.tableList!=null && this.tableList.length > 0){
801
           for(let i=0;i<this.tableList.length;i++){
802
           for(let i=0;i<this.tableList.length;i++){
802
             this.tableList[i].index = i+1
803
             this.tableList[i].index = i+1
803
             this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
804
             this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
826
            filename: '库存查询'
827
            filename: '库存查询'
827
          })
828
          })
828
           this.downloadLoading = false
829
           this.downloadLoading = false
829
-        })
830
+        }
831
+
832
+        if(this.org_id == 0 || this.org_id == 9956){
833
+         
834
+          if(this.tableList!=null && this.tableList.length > 0){
835
+          for(let i=0;i<this.tableList.length;i++){
836
+            this.tableList[i].index = i+1
837
+            this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
838
+            this.tableList[i].spec = this.tableList[i].specification_name +"/"+ this.tableList[i].packing_unit
839
+            this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
840
+            this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
841
+            this.tableList[i].stock_in_count = this.GetExportStockInCount(this.tableList[i].xt_good_stock,this.tableList[i].id)
842
+            this.tableList[i].stock_out_count =this.getExportStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
843
+            this.tableList[i].stock_cancel_count = this.getExportCancelStockInfo(this.tableList[i].xt_good_stock,this.tableList[i].id)
844
+            this.tableList[i].act_out_count  = this.getExportActStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
845
+            this.tableList[i].over_count = this.getExportOverCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
846
+            this.tableList[i].sum_count =  this.getOverCount(this.tableList[i].xt_warehouse_info) 
847
+
848
+          }
849
+         }
850
+         
851
+
852
+         const tHeader = ['序号','耗材编码','耗材类型', '耗材名称', '规格&单位','生产厂商','经销商','批准文号','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
853
+         const filterVal = ['index','good_number','type_name', 'good_name', 'spec','manufacturer_name','dealer_name','number','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
854
+        
855
+         const data = this.formatJson(filterVal, this.tableList)
856
+         
857
+         excel.export_json_to_excel({
858
+           header: tHeader,
859
+           data,
860
+           filename: '库存查询'
861
+         })
862
+          this.downloadLoading = false
863
+        }
864
+   
865
+       })
830
       },
866
       },
831
       formatJson(filterVal, jsonData) {
867
       formatJson(filterVal, jsonData) {
832
         return jsonData.map(v => filterVal.map(j => v[j]));
868
         return jsonData.map(v => filterVal.map(j => v[j]));

+ 2 - 0
src/xt_pages/stock/query/goodNewQueryPrint.vue View File

33
               <thead>
33
               <thead>
34
                 <tr>
34
                 <tr>
35
                   <td width="5%">序号</td>
35
                   <td width="5%">序号</td>
36
+                  <td width="5%" v-if="org_id ==0 || org_id ==9956">耗材编码</td>
36
                   <td width="6%">耗材类型</td>
37
                   <td width="6%">耗材类型</td>
37
                   <td width="10%">耗材名称</td>
38
                   <td width="10%">耗材名称</td>
38
                   <td width="10%">规格&单位</td>
39
                   <td width="10%">规格&单位</td>
53
                 <tr v-for="(item, index) in tableList" :key="index">
54
                 <tr v-for="(item, index) in tableList" :key="index">
54
                   <!-- 序号 -->
55
                   <!-- 序号 -->
55
                   <td>{{ index + 1 }}</td>
56
                   <td>{{ index + 1 }}</td>
57
+                  <td width="5%" v-if="org_id ==0 || org_id ==9956">{{item.good_number }}</td>
56
                   <!-- 耗材类型 -->
58
                   <!-- 耗材类型 -->
57
                   <td>{{ getGoodTypeName(item.good_type_id) }}</td>
59
                   <td>{{ getGoodTypeName(item.good_type_id) }}</td>
58
                   <!-- 耗材名称 -->
60
                   <!-- 耗材名称 -->

+ 36 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

1001
     this.$router.push({path:"/purchase/new/stock/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&page="+this.page+"&limit="+this.limit+"&keyword="+this.keyword+"&good_type="+this.good_type})
1001
     this.$router.push({path:"/purchase/new/stock/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&page="+this.page+"&limit="+this.limit+"&keyword="+this.keyword+"&good_type="+this.good_type})
1002
    },
1002
    },
1003
    exportList: function() {
1003
    exportList: function() {
1004
+
1005
+       if(this.org_id!=0&& this.org_id!=9956){
1006
+         
1004
         for(let i=0;i<this.tableList.length;i++){
1007
         for(let i=0;i<this.tableList.length;i++){
1005
           this.tableList[i].index = i+1
1008
           this.tableList[i].index = i+1
1006
           this.tableList[i].query_date = this.start_time+"~"+this.end_time
1009
           this.tableList[i].query_date = this.start_time+"~"+this.end_time
1028
               filename
1031
               filename
1029
             })
1032
             })
1030
         })
1033
         })
1034
+       }
1035
+
1036
+       if(this.org_id == 0 || this.org_id == 9956){
1037
+        
1038
+        for(let i=0;i<this.tableList.length;i++){
1039
+          this.tableList[i].index = i+1
1040
+          this.tableList[i].query_date = this.start_time+"~"+this.end_time
1041
+          this.tableList[i].good_type = this.getGoodTypeName(this.tableList[i].good_type_id)
1042
+          this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1043
+          this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
1044
+          this.tableList[i].specification_name_one = this.tableList[i].specification_name + "/"+this.tableList[i].packing_unit
1045
+        }
1046
+        import('@/vendor/Export2Excel').then(excel => {
1047
+           const multiHeader = [['序号','耗材编码', '查询日期',' 耗材类型','耗材名称','规格&单位','生产产商','经销商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
1048
+           const header = ['','', '','','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
1049
+           const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:G2','H1:H2','I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1']
1050
+           const filterVal = ['index','good_number', 'query_date', 'good_type','good_name','specification_name_one','manufacturer_name','dealer_name','stockIn','stock_in_price','stockMoney','stockAdd','addStockMoney','saleStockMoney','outStock','stockOutprice','saleOutMoney','overStock','overPrice','overMoney']
1051
+    
1052
+           const data = this.formatJson(filterVal, this.tableList)
1053
+           
1054
+           const filename = '进销存查询'
1055
+     
1056
+          
1057
+            excel.export_json_to_excel({
1058
+              multiHeader,
1059
+              header,
1060
+              merges,
1061
+              data,
1062
+              filename
1063
+            })
1064
+        })
1065
+       }
1066
+   
1031
       },
1067
       },
1032
       formatJson(filterVal, jsonData) {
1068
       formatJson(filterVal, jsonData) {
1033
         return jsonData.map(v => filterVal.map(j => v[j]));
1069
         return jsonData.map(v => filterVal.map(j => v[j]));

+ 2 - 0
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

25
                             <thead>
25
                             <thead>
26
                                 <tr>
26
                                 <tr>
27
                                   <td rowspan="2" width="80">序号</td>
27
                                   <td rowspan="2" width="80">序号</td>
28
+                                  <td rowspan="2" width="80" v-if="org_id==9956">耗材编码</td>
28
                                   <td rowspan="2" width="80">耗材名称</td>
29
                                   <td rowspan="2" width="80">耗材名称</td>
29
                                   <td rowspan="2" width="80">耗材类型</td>
30
                                   <td rowspan="2" width="80">耗材类型</td>
30
                                   <td rowspan="2" width="80">规格&单位</td>
31
                                   <td rowspan="2" width="80">规格&单位</td>
54
                             <tbody>
55
                             <tbody>
55
                                 <tr v-for="(item,index) in this.tableList" :key="index">
56
                                 <tr v-for="(item,index) in this.tableList" :key="index">
56
                                  <td>{{index + 1}}</td>
57
                                  <td>{{index + 1}}</td>
58
+                                 <td v-if="org_id==9956">{{item.good_number}}</td>
57
                                  <td>{{item.good_name}}</td>
59
                                  <td>{{item.good_name}}</td>
58
                                  <td>{{getGoodTypeName(item.good_type_id)}}</td>
60
                                  <td>{{getGoodTypeName(item.good_type_id)}}</td>
59
                                  <td>{{item.specification_name}}</td>
61
                                  <td>{{item.specification_name}}</td>

+ 33 - 37
src/xt_pages/user/Sitemap.vue View File

20
       <div style="margin-top:6px;display:flex;flex-wrap: wrap;position:relative;min-height:480px;">
20
       <div style="margin-top:6px;display:flex;flex-wrap: wrap;position:relative;min-height:480px;">
21
         <div style="width:47%;border:1px solid #ddd;padding: 5px;" id="print_mark_img" ref="imageWrapper">
21
         <div style="width:47%;border:1px solid #ddd;padding: 5px;" id="print_mark_img" ref="imageWrapper">
22
           <div id="point_mark_img_wrap1" class="print_main_content" style="width: 520px;padding: 0;border: 0;" >
22
           <div id="point_mark_img_wrap1" class="print_main_content" style="width: 520px;padding: 0;border: 0;" >
23
-            
23
+
24
             <img v-if="fileList.length==0" id="ossPointMarkImg" src="@/assets/evaluate/xgtl_default.png" alt="" srcset="">
24
             <img v-if="fileList.length==0" id="ossPointMarkImg" src="@/assets/evaluate/xgtl_default.png" alt="" srcset="">
25
             <img v-if="fileList.length>0" id="ossPointMarkImg" :src="fileList[0].img_url" alt="" srcset="">
25
             <img v-if="fileList.length>0" id="ossPointMarkImg" :src="fileList[0].img_url" alt="" srcset="">
26
 
26
 
27
             <!-- A端/V端 v-if="a_num==2" -->
27
             <!-- A端/V端 v-if="a_num==2" -->
28
             <div v-for="(item,index) in A_arr" :key="index">
28
             <div v-for="(item,index) in A_arr" :key="index">
29
-              <div v-if="a_num==2" title="长按右键调整线条角度" class="mark-target mark-target-a mark-target-a1" data-num="1" 
30
-                  :style="{left:A_left+'px', top: (A_top+(index*30))+'px', cursor: 'move',position: 'absolute'}" 
29
+              <div v-if="a_num==2" title="长按右键调整线条角度" class="mark-target mark-target-a mark-target-a1" data-num="1"
30
+                  :style="{left:A_left+'px', top: (A_top+(index*30))+'px', cursor: 'move',position: 'absolute'}"
31
                   @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">{{item.markNum}}
31
                   @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">{{item.markNum}}
32
                 <span class="mark-line mark-line-a" style="transform: rotate(160deg);" data-rotate="160"></span>
32
                 <span class="mark-line mark-line-a" style="transform: rotate(160deg);" data-rotate="160"></span>
33
               </div>
33
               </div>
34
             </div>
34
             </div>
35
             <div v-for="(item,index) in V_arr" :key="index">
35
             <div v-for="(item,index) in V_arr" :key="index">
36
-              <div v-if="v_num==2" title="长按右键调整线条角度" class="mark-target mark-target-v mark-target-v1" data-num="1" 
37
-                    :style="{left: V_left+'px', top: (V_top+(index*30))+'px', cursor: 'move', position: 'absolute'}" 
36
+              <div v-if="v_num==2" title="长按右键调整线条角度" class="mark-target mark-target-v mark-target-v1" data-num="1"
37
+                    :style="{left: V_left+'px', top: (V_top+(index*30))+'px', cursor: 'move', position: 'absolute'}"
38
                     @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)">{{item.markNum}}
38
                     @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)">{{item.markNum}}
39
                 <span class="mark-line mark-line-v" style="transform: rotate(20deg);" data-rotate="20"></span>
39
                 <span class="mark-line mark-line-v" style="transform: rotate(20deg);" data-rotate="20"></span>
40
               </div>
40
               </div>
41
             </div>
41
             </div>
42
             <!-- 穿刺文字 active  @mousedown="startDrag"   @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)"-->
42
             <!-- 穿刺文字 active  @mousedown="startDrag"   @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)"-->
43
             <div v-for="(item,index) in text_arr" :key="index" >
43
             <div v-for="(item,index) in text_arr" :key="index" >
44
-              <div ref="text_cc" class="add-mark-text-wrap active" 
45
-              :style="{width:(item.width + 10)+'px',left:text_left+'%',top:(text_top+(index*4))+'%','font-size':14+'px', position: 'absolute'}" 
44
+              <div ref="text_cc" class="add-mark-text-wrap active"
45
+              :style="{width:(item.width + 10)+'px',left:text_left+'%',top:(text_top+(index*4))+'%','font-size':14+'px', position: 'absolute'}"
46
               @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">
46
               @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">
47
                 <!-- <div  style="width:82px;left:62.17%;top:39.00%;display: inline-block;" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)">position: 'absolute',top: 36+'%',left: 48+'%' -->
47
                 <!-- <div  style="width:82px;left:62.17%;top:39.00%;display: inline-block;" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)">position: 'absolute',top: 36+'%',left: 48+'%' -->
48
                   <!-- {{ item }} -->
48
                   <!-- {{ item }} -->
54
               </div>
54
               </div>
55
             </div>
55
             </div>
56
             <!-- 穿刺方向 -->
56
             <!-- 穿刺方向 -->
57
-            <div v-if="fangxiangA_num==2" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)" 
58
-              title="长按右键调整线条角度" id="jinzhen_fangxiang_A" class="mark-target mark-target-a mark-target-adccz" 
57
+            <div v-if="fangxiangA_num==2" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)"
58
+              title="长按右键调整线条角度" id="jinzhen_fangxiang_A" class="mark-target mark-target-a mark-target-adccz"
59
               :style="{left: fangxiangA_left+'px', top: fangxiangA_top+'px', width: 14+'px', height: 14+'px', background: 'rgb(231, 53, 53)', 'border-radius': 50+'%', position: 'absolute', cursor: 'move',}">
59
               :style="{left: fangxiangA_left+'px', top: fangxiangA_top+'px', width: 14+'px', height: 14+'px', background: 'rgb(231, 53, 53)', 'border-radius': 50+'%', position: 'absolute', cursor: 'move',}">
60
               <span class="mark-line mark-line-ccza" data-rotate="160" style="width:50px;transform:rotate(160deg);">
60
               <span class="mark-line mark-line-ccza" data-rotate="160" style="width:50px;transform:rotate(160deg);">
61
-              <b class="xtgl-ccz-arrow xtgl-ccz-arrow-a" 
61
+              <b class="xtgl-ccz-arrow xtgl-ccz-arrow-a"
62
                 style="position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);">
62
                 style="position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);">
63
               </b></span></div>
63
               </b></span></div>
64
 
64
 
65
-            <div v-if="fangxiangV_num==2" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)" 
66
-            title="长按右键调整线条角度" id="jinzhen_fangxiang_V" class="mark-target mark-target-v mark-target-vdccz" 
65
+            <div v-if="fangxiangV_num==2" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)"
66
+            title="长按右键调整线条角度" id="jinzhen_fangxiang_V" class="mark-target mark-target-v mark-target-vdccz"
67
             :style="{left: fangxiangV_left+'px', top: fangxiangV_top+'px', width: 14+'px', height: 14+'px', background: 'rgb(53, 162, 231)', 'border-radius': 50+'%', position: 'absolute', cursor: 'move',}">
67
             :style="{left: fangxiangV_left+'px', top: fangxiangV_top+'px', width: 14+'px', height: 14+'px', background: 'rgb(53, 162, 231)', 'border-radius': 50+'%', position: 'absolute', cursor: 'move',}">
68
             <span class="mark-line mark-line-cczv" data-rotate="20" style="width:50px;transform:rotate(20deg);">
68
             <span class="mark-line mark-line-cczv" data-rotate="20" style="width:50px;transform:rotate(20deg);">
69
               <b class="xtgl-ccz-arrow xtgl-ccz-arrow-v"
69
               <b class="xtgl-ccz-arrow xtgl-ccz-arrow-v"
70
               style="position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);">
70
               style="position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);">
71
               </b></span></div>
71
               </b></span></div>
72
             <!-- 辅助工具 :style="{transform: rotate(30deg)}"  ,'background-img': 'url(' + require('../../assets/evaluate/tool-a.png') + ')'  -->
72
             <!-- 辅助工具 :style="{transform: rotate(30deg)}"  ,'background-img': 'url(' + require('../../assets/evaluate/tool-a.png') + ')'  -->
73
-            <div v-if="fuzhuA_num==2"  
73
+            <div v-if="fuzhuA_num==2"
74
              class="jinzhen-jiaodu-target jinzhen-jiaodu-target-A" id="jinzhen-jiaodu-target-A" style="position: absolute;top: 56px;left: 360px;">
74
              class="jinzhen-jiaodu-target jinzhen-jiaodu-target-A" id="jinzhen-jiaodu-target-A" style="position: absolute;top: 56px;left: 360px;">
75
               <div class="frame-box  actives" :style="{'transform': `scale(${scalea_num})`,top:fuzhuA_top+'px',left:fuzhuA_left+'px'}" @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">
75
               <div class="frame-box  actives" :style="{'transform': `scale(${scalea_num})`,top:fuzhuA_top+'px',left:fuzhuA_left+'px'}" @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">
76
                 <div class="frame-image" data-rotate="0" :style="{transform: `rotate(${xuanzhuan_a}deg)`}">
76
                 <div class="frame-image" data-rotate="0" :style="{transform: `rotate(${xuanzhuan_a}deg)`}">
79
                 <div class="drag-elem bottom right" @click="imga_click"></div>
79
                 <div class="drag-elem bottom right" @click="imga_click"></div>
80
                 <div class="frame-image-toolbar-btn frame-image-toolbar-btn-reset" data-tooltip="" title="调整方向" @click="fuzhuaclick"></div>
80
                 <div class="frame-image-toolbar-btn frame-image-toolbar-btn-reset" data-tooltip="" title="调整方向" @click="fuzhuaclick"></div>
81
               </div>
81
               </div>
82
-            </div> 
82
+            </div>
83
             <div v-if="fuzhuV_num==2" style="position: absolute;top: 56px;left: 56px;"
83
             <div v-if="fuzhuV_num==2" style="position: absolute;top: 56px;left: 56px;"
84
              class="jinzhen-jiaodu-target jinzhen-jiaodu-target-V" id="jinzhen-jiaodu-target-V">
84
              class="jinzhen-jiaodu-target jinzhen-jiaodu-target-V" id="jinzhen-jiaodu-target-V">
85
               <div class="frame-box actives" :style="{'transform': `scale(${scalev_num})`,top:fuzhuV_top+'px',left:fuzhuV_left+'px'}" @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">
85
               <div class="frame-box actives" :style="{'transform': `scale(${scalev_num})`,top:fuzhuV_top+'px',left:fuzhuV_left+'px'}" @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)">
89
                 <div class="drag-elem bottom right" @click="imgv_click"></div>
89
                 <div class="drag-elem bottom right" @click="imgv_click"></div>
90
                 <div class="frame-image-toolbar-btn frame-image-toolbar-btn-reset" data-tooltip="" title="调整方向" @click="fuzhu_click"></div>
90
                 <div class="frame-image-toolbar-btn frame-image-toolbar-btn-reset" data-tooltip="" title="调整方向" @click="fuzhu_click"></div>
91
               </div>
91
               </div>
92
-            </div> 
92
+            </div>
93
           </div>
93
           </div>
94
         </div>
94
         </div>
95
         <div style="width:25px;"></div>
95
         <div style="width:25px;"></div>
97
           <div>
97
           <div>
98
             <p class="point-mark-title">A端:</p>
98
             <p class="point-mark-title">A端:</p>
99
             <div :class="append == false ? 'point-mark-items' : 'mark-a-items'"> <!-- v-for="(item,index) in 12" :key="index" -->
99
             <div :class="append == false ? 'point-mark-items' : 'mark-a-items'"> <!-- v-for="(item,index) in 12" :key="index" -->
100
-              <div class="point-mark-a-item not-able" 
100
+              <div class="point-mark-a-item not-able"
101
                 data-tag="-a" data-mark="A" title="点击移除标记" v-for="(item,index) in 12" :key="index" @click="a_item($event,item)">{{item}}</div>
101
                 data-tag="-a" data-mark="A" title="点击移除标记" v-for="(item,index) in 12" :key="index" @click="a_item($event,item)">{{item}}</div>
102
             </div>
102
             </div>
103
             <p class="point-mark-title">V端:</p>
103
             <p class="point-mark-title">V端:</p>
104
             <div :class="append == false ? 'point-mark-items' : 'mark-v-items'" style="border-bottom: 1px solid #ddd;">
104
             <div :class="append == false ? 'point-mark-items' : 'mark-v-items'" style="border-bottom: 1px solid #ddd;">
105
-              <div class="point-mark-v-item not-able" 
105
+              <div class="point-mark-v-item not-able"
106
                 data-tag="-v" data-mark="V" title="点击移除标记" v-for="(item,index) in 12" :key="index" @click="v_item($event,item)">{{item}}</div>
106
                 data-tag="-v" data-mark="V" title="点击移除标记" v-for="(item,index) in 12" :key="index" @click="v_item($event,item)">{{item}}</div>
107
             </div>
107
             </div>
108
             <div><span class="active-addtext-btn">添加文本框:</span></div>
108
             <div><span class="active-addtext-btn">添加文本框:</span></div>
109
             <div id="default-marktext-wrap" style="display:flex;flex-wrap:wrap;">
109
             <div id="default-marktext-wrap" style="display:flex;flex-wrap:wrap;">
110
-              <span :class="append == true ?'default-mark-text chuanci' : 'disabled'" data-index="0" 
110
+              <span :class="append == true ?'default-mark-text chuanci' : 'disabled'" data-index="0"
111
                   v-for="(item,index) in puncture_text" :key="index" @click="punctureclick($event,item)">{{ item.text }}</span>
111
                   v-for="(item,index) in puncture_text" :key="index" @click="punctureclick($event,item)">{{ item.text }}</span>
112
                 <!-- <span :class="append == true ?'default-mark-text chuanci' : 'disabled'" data-index="0">穿刺角度</span>
112
                 <!-- <span :class="append == true ?'default-mark-text chuanci' : 'disabled'" data-index="0">穿刺角度</span>
113
                 <span :class="append == true ?'default-mark-text chuanci' : 'disabled'" data-index="1">卡夫距导管出口距离cm</span>
113
                 <span :class="append == true ?'default-mark-text chuanci' : 'disabled'" data-index="1">卡夫距导管出口距离cm</span>
154
         </div>
154
         </div>
155
       </div>
155
       </div>
156
     </div>
156
     </div>
157
-    
157
+
158
     <div style="width:50%; margin-top:20px">
158
     <div style="width:50%; margin-top:20px">
159
       <div class='content_top' style="width: 100%;margin-bottom: 20px;border-bottom:1px solid #DCDFE6;padding-bottom:10px">
159
       <div class='content_top' style="width: 100%;margin-bottom: 20px;border-bottom:1px solid #DCDFE6;padding-bottom:10px">
160
         <div style="font-size: 20px;">位点记录列表</div>
160
         <div style="font-size: 20px;">位点记录列表</div>
245
       centerDialogVisible: false,
245
       centerDialogVisible: false,
246
       imgDialogVisible:false,
246
       imgDialogVisible:false,
247
       shiyituDialogVisible:false,
247
       shiyituDialogVisible:false,
248
-      hidd:false,
249
       imgUrl:[],
248
       imgUrl:[],
250
       a_num:1,//控制a端是否显示和高亮
249
       a_num:1,//控制a端是否显示和高亮
251
       v_num:1,//控制v端是否显示和高亮
250
       v_num:1,//控制v端是否显示和高亮
284
       qiniuDomain: 'https://images.shengws.com/',
283
       qiniuDomain: 'https://images.shengws.com/',
285
       puncture_text:[{text:'穿刺角度',width:70},{text:'卡夫距导管出口距离cm',width:158},{text:'动脉端向心穿刺',width:116},{text:'动脉端离心穿刺',width:116},
284
       puncture_text:[{text:'穿刺角度',width:70},{text:'卡夫距导管出口距离cm',width:158},{text:'动脉端向心穿刺',width:116},{text:'动脉端离心穿刺',width:116},
286
                       {text:'静脉端向心穿刺',width:116},{text:'手背朝上',width:70},{text:'手掌朝上',width:70},{text:'虎口朝上',width:70},{text:'A端',width:70},{text:'V端',width:70},{text:'自定义',width:70}],
285
                       {text:'静脉端向心穿刺',width:116},{text:'手背朝上',width:70},{text:'手掌朝上',width:70},{text:'虎口朝上',width:70},{text:'A端',width:70},{text:'V端',width:70},{text:'自定义',width:70}],
287
-      // picture:'@/assets/evaluate/tool-a.png',   
286
+      // picture:'@/assets/evaluate/tool-a.png',
288
       // url:'',//图片路径
287
       // url:'',//图片路径
289
 
288
 
290
       value:'',//获取文本框文字
289
       value:'',//获取文本框文字
330
               }
329
               }
331
             }
330
             }
332
           }
331
           }
333
-            
332
+
334
         }
333
         }
335
       }
334
       }
336
       console.log('333',this.A_arr)
335
       console.log('333',this.A_arr)
353
               }
352
               }
354
             }
353
             }
355
           }
354
           }
356
-            
355
+
357
         }
356
         }
358
       }
357
       }
359
     },
358
     },
384
         _target.style.top = endy+'px'
383
         _target.style.top = endy+'px'
385
         // console.log('x',this.endx,'y',this.endy);
384
         // console.log('x',this.endx,'y',this.endy);
386
       }
385
       }
387
-      
386
+
388
       // inpu.addEventListener('mousedown',this.A_mousedow)
387
       // inpu.addEventListener('mousedown',this.A_mousedow)
389
     },
388
     },
390
     A_moouseup(e){
389
     A_moouseup(e){
454
       // if(this.fuzhuV_num ==1 || this.append ==false){
453
       // if(this.fuzhuV_num ==1 || this.append ==false){
455
       //  return this.xuanzhuan_v =0
454
       //  return this.xuanzhuan_v =0
456
       // }
455
       // }
457
-      
456
+
458
     },
457
     },
459
     fuzhuaclick(){
458
     fuzhuaclick(){
460
       if(this.append ==true && this.fuzhuA_num ==2){
459
       if(this.append ==true && this.fuzhuA_num ==2){
466
       }
465
       }
467
     },
466
     },
468
     printtup(){
467
     printtup(){
469
-      if(this.hidd==false){
470
-        this.hidd =true
471
-      }
472
-      const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;} div.add-mark-text-wrap {border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} .remove-mark-text{color: transparent;opacity: 0;} b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;} b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}div.frame-image {position: absolute;overflow: hidden;top: 0px;left: 0px;width: 100%;height: 100%;background-image: url('+'../../assets/evaluate/tool-a.png'+')!important;background-position: center center;background-size: 100%; background-repeat: no-repeat;}}}'
473
-      // const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;}  b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;} 
474
-      // b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;} 
468
+      const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} .remove-mark-text{overflow: hidden;} b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;} b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}div.frame-image {position: absolute;overflow: hidden;top: 0px;left: 0px;width: 100%;height: 100%;background-image: url('+'../../assets/evaluate/tool-a.png'+');background-position: center center;background-size: 100%; background-repeat: no-repeat;}}}'
469
+      // const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;}  b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;}
470
+      // b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}
475
       // .mark-target-a{background: #E73535;top: 40px;left: 40px;} .mark-line{background: #E73535;}}}'
471
       // .mark-target-a{background: #E73535;top: 40px;left: 40px;} .mark-line{background: #E73535;}}}'
476
       // const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} input {width: 100px;width: 60px;max-width: 400px;border: 1px solid transparent;padding: 4px;color: #333;height: 24px;cursor: pointer;background-color: #fcfcfc;position: absolute;left: 0;top: 0;font-size: 13px;z-index: 1002;border-radius: 2px !important;outline: none;}.mark-text-ipt {cursor: default;}}}}'
472
       // const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} input {width: 100px;width: 60px;max-width: 400px;border: 1px solid transparent;padding: 4px;color: #333;height: 24px;cursor: pointer;background-color: #fcfcfc;position: absolute;left: 0;top: 0;font-size: 13px;z-index: 1002;border-radius: 2px !important;outline: none;}.mark-text-ipt {cursor: default;}}}}'
477
 
473
 
579
       this.imgDialogVisible=false
575
       this.imgDialogVisible=false
580
     },
576
     },
581
     saveimg(){
577
     saveimg(){
582
-      
578
+
583
       // html2canvas(this.$refs.imageWrapper).then(canvas  =>{
579
       // html2canvas(this.$refs.imageWrapper).then(canvas  =>{
584
       //   // const imageSrc = canvas.toDataURL();
580
       //   // const imageSrc = canvas.toDataURL();
585
       //   const imageUrl = canvas.toDataURL("image/png");
581
       //   const imageUrl = canvas.toDataURL("image/png");
592
       //   console.log('1111',urls);
588
       //   console.log('1111',urls);
593
         // var link= document.createElement("a");
589
         // var link= document.createElement("a");
594
         // //将生成的图片url赋值给a标签的href属性
590
         // //将生成的图片url赋值给a标签的href属性
595
-        // link.href = this.url; 
591
+        // link.href = this.url;
596
         // //设置下载的文件名
592
         // //设置下载的文件名
597
         // link.download = "页面截图";
593
         // link.download = "页面截图";
598
         // // 将a标签插入dom中
594
         // // 将a标签插入dom中
667
   background-color: #fff;
663
   background-color: #fff;
668
   border: 1px solid #ddd;
664
   border: 1px solid #ddd;
669
   border-radius: 4px;
665
   border-radius: 4px;
670
-  
666
+
671
   .mark-target-a{
667
   .mark-target-a{
672
     background: #E73535;
668
     background: #E73535;
673
     top: 40px;
669
     top: 40px;
764
   //     opacity: 0;
760
   //     opacity: 0;
765
   //     cursor: pointer;
761
   //     cursor: pointer;
766
   //     border-radius: 50%;
762
   //     border-radius: 50%;
767
-      
763
+
768
   // }
764
   // }
769
   // div.add-mark-text-wrap:hover .remove-mark-text {
765
   // div.add-mark-text-wrap:hover .remove-mark-text {
770
   //   background: red;
766
   //   background: red;
879
     box-shadow: 1px 1px 5px rgba(0,0,0,.1);
875
     box-shadow: 1px 1px 5px rgba(0,0,0,.1);
880
     background: url('../../assets/evaluate/xgtl_tool_rotate.png')no-repeat center center / 20px;
876
     background: url('../../assets/evaluate/xgtl_tool_rotate.png')no-repeat center center / 20px;
881
   }
877
   }
882
- 
878
+
883
   .frame-box .drag-elem.bottom.right {
879
   .frame-box .drag-elem.bottom.right {
884
     cursor: nwse-resize;
880
     cursor: nwse-resize;
885
     z-index: 3;
881
     z-index: 3;
1078
 .ql-snow .ql-tooltip[data-mode="link"]::before {
1074
 .ql-snow .ql-tooltip[data-mode="link"]::before {
1079
   content: "../../assets/evaluate/tool-a.png";
1075
   content: "../../assets/evaluate/tool-a.png";
1080
 }
1076
 }
1081
-</style>
1077
+</style>

+ 8 - 10
src/xt_pages/user/components/PatientDetail.vue View File

366
               </el-col>
366
               </el-col>
367
 
367
 
368
 
368
 
369
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
369
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
370
                 <el-form-item
370
                 <el-form-item
371
                   label="流转地: "
371
                   label="流转地: "
372
                 >
372
                 >
380
                  </el-select>
380
                  </el-select>
381
                 </el-form-item>
381
                 </el-form-item>
382
               </el-col>
382
               </el-col>
383
-           
383
+            -->
384
 
384
 
385
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
385
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
386
                 <el-form-item
386
                 <el-form-item
387
                   label="流转开始时间 : "
387
                   label="流转开始时间 : "
388
                 >
388
                 >
400
                   @change="startTimeChange"
400
                   @change="startTimeChange"
401
                  ></el-date-picker>
401
                  ></el-date-picker>
402
                 </el-form-item>
402
                 </el-form-item>
403
-              </el-col>
403
+              </el-col> -->
404
 
404
 
405
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
405
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
406
                 <el-form-item
406
                 <el-form-item
407
                   label="流转结束时间 : "
407
                   label="流转结束时间 : "
408
                 >
408
                 >
420
                   @change="startTimeChange"
420
                   @change="startTimeChange"
421
                  ></el-date-picker>
421
                  ></el-date-picker>
422
                 </el-form-item>
422
                 </el-form-item>
423
-              </el-col> 
423
+              </el-col>  -->
424
 
424
 
425
-                <el-col :span="8" style="margin-bottom: 20px;">
425
+                <!-- <el-col :span="8" style="margin-bottom: 20px;">
426
                 <el-form-item
426
                 <el-form-item
427
                   label="备注 : "
427
                   label="备注 : "
428
                   prop="sch_remark">
428
                   prop="sch_remark">
435
                     placeholder
435
                     placeholder
436
                   ></el-input>
436
                   ></el-input>
437
                 </el-form-item>
437
                 </el-form-item>
438
-              </el-col>
438
+              </el-col> -->
439
 
439
 
440
             <el-col :span="8" style="height: 59px">
440
             <el-col :span="8" style="height: 59px">
441
               <el-form-item
441
               <el-form-item
1374
       patientSourceList:[
1374
       patientSourceList:[
1375
         {value:1,label:"门诊"},
1375
         {value:1,label:"门诊"},
1376
         {value:2,label:"住院"},
1376
         {value:2,label:"住院"},
1377
-        {value:3,label:"请假"},
1378
-        {value:4,label:"流转"}
1379
       ],
1377
       ],
1380
       generic_info_fold: true,
1378
       generic_info_fold: true,
1381
       treat_info_fold: true,
1379
       treat_info_fold: true,

+ 10 - 12
src/xt_pages/user/components/PatientForm.vue View File

394
                 </el-form-item>
394
                 </el-form-item>
395
               </el-col>
395
               </el-col>
396
       
396
       
397
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
397
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
398
                 <el-form-item
398
                 <el-form-item
399
                   label="患者去向 : "
399
                   label="患者去向 : "
400
                 >
400
                 >
408
                     >
408
                     >
409
                   </el-radio-group>
409
                   </el-radio-group>
410
                 </el-form-item>
410
                 </el-form-item>
411
-              </el-col>
411
+              </el-col> -->
412
            
412
            
413
 
413
 
414
             
414
             
415
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
415
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
416
                 <el-form-item
416
                 <el-form-item
417
                   label="流转地: "
417
                   label="流转地: "
418
                 >
418
                 >
425
                     </el-option>
425
                     </el-option>
426
                  </el-select>
426
                  </el-select>
427
                 </el-form-item>
427
                 </el-form-item>
428
-              </el-col>
428
+              </el-col> -->
429
            
429
            
430
  
430
  
431
              
431
              
432
-                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
432
+                <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
433
                 <el-form-item
433
                 <el-form-item
434
                   label="流转开始时间 : "
434
                   label="流转开始时间 : "
435
                 >
435
                 >
447
                   @change="startTimeChange"
447
                   @change="startTimeChange"
448
                  ></el-date-picker>
448
                  ></el-date-picker>
449
                 </el-form-item>
449
                 </el-form-item>
450
-              </el-col>
450
+              </el-col> -->
451
 
451
 
452
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
452
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
453
                 <el-form-item
453
                 <el-form-item
454
                   label="流转结束时间 : "
454
                   label="流转结束时间 : "
455
                 >
455
                 >
467
                   @change="startTimeChange"
467
                   @change="startTimeChange"
468
                  ></el-date-picker>
468
                  ></el-date-picker>
469
                 </el-form-item>
469
                 </el-form-item>
470
-              </el-col> 
470
+              </el-col>  -->
471
            
471
            
472
              
472
              
473
 
473
 
474
-              <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
474
+              <!-- <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
475
                 <el-form-item
475
                 <el-form-item
476
                   label="备注 : "
476
                   label="备注 : "
477
                   prop="sch_remark">
477
                   prop="sch_remark">
483
                     placeholder
483
                     placeholder
484
                   ></el-input>
484
                   ></el-input>
485
                 </el-form-item>
485
                 </el-form-item>
486
-              </el-col>
486
+              </el-col> -->
487
 
487
 
488
 
488
 
489
               <el-col :span="24" :style="isEdit ? 'width:360px' : ''" v-show="showLapseto">
489
               <el-col :span="24" :style="isEdit ? 'width:360px' : ''" v-show="showLapseto">
1411
       patientSourceList:[
1411
       patientSourceList:[
1412
         {value:1,label:"门诊"},
1412
         {value:1,label:"门诊"},
1413
         {value:2,label:"住院"},
1413
         {value:2,label:"住院"},
1414
-        {value:3,label:"请假"},
1415
-        {value:4,label:"流转"}
1416
       ],
1414
       ],
1417
       lapsetoOptions: [
1415
       lapsetoOptions: [
1418
         { value: 1, label: "留治" },
1416
         { value: 1, label: "留治" },

+ 15 - 0
src/xt_pages/user/dialysisRecord.vue View File

153
               <span>{{getTime(scope.row.assessment_after_dislysis)}}</span>
153
               <span>{{getTime(scope.row.assessment_after_dislysis)}}</span>
154
             </template>
154
             </template>
155
           </el-table-column>
155
           </el-table-column>
156
+
157
+          <el-table-column  width="96" align="center" label="透析器/灌流器">
158
+             <template slot-scope="scope">
159
+                 {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
160
+                 {{ scope.row.prescription.dialysis_dialyszers }}
161
+              <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{ scope.row.prescription.dialysis_irrigation }}</span>    
162
+             </template>
163
+          </el-table-column>
164
+
156
           <el-table-column
165
           <el-table-column
157
             prop="predialysis_evaluation.dry_weight"
166
             prop="predialysis_evaluation.dry_weight"
158
             width="96"
167
             width="96"
337
               <th>分区机号</th>
346
               <th>分区机号</th>
338
               <th>透析模式</th>
347
               <th>透析模式</th>
339
               <th>透析时长(h)</th>
348
               <th>透析时长(h)</th>
349
+              <th>透析器/灌流器</th>
340
               <th>干体重(kg)</th>
350
               <th>干体重(kg)</th>
341
               <th>透前称重(kg)</th>
351
               <th>透前称重(kg)</th>
342
               <th>透后称重(kg)</th>
352
               <th>透后称重(kg)</th>
356
                 <td>{{ item.partition_name }}-{{ item.device.number }}</td>
366
                 <td>{{ item.partition_name }}-{{ item.device.number }}</td>
357
                 <td>{{ modeName(item.prescription.mode_id) }}</td>
367
                 <td>{{ modeName(item.prescription.mode_id) }}</td>
358
                 <td>{{getTime(item.assessment_after_dislysis)}}</td>
368
                 <td>{{getTime(item.assessment_after_dislysis)}}</td>
369
+                <td>
370
+                   <span v-if="item.prescription.dialyzer_perfusion_apparatus"></span>
371
+                   <span v-if="item.prescription.dialysis_dialyszers!=''">{{ item.prescription.dialysis_dialyszers }} </span>
372
+                   <span v-if="item.prescription.dialysis_irrigation!=''">/{{ item.prescription.dialysis_irrigation }} </span> 
373
+                </td>
359
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
374
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
360
                 <td>{{ item.predialysis_evaluation.weight_before }}</td>
375
                 <td>{{ item.predialysis_evaluation.weight_before }}</td>
361
                 <td>{{ item.assessment_after_dislysis.weight_after }}</td>
376
                 <td>{{ item.assessment_after_dislysis.weight_after }}</td>

+ 128 - 32
src/xt_pages/user/patients.vue View File

253
           </ul>
253
           </ul>
254
         </div>
254
         </div>
255
       </div>
255
       </div>
256
-      <div class="cell clearfix">
256
+      <!-- <div class="cell clearfix">
257
         <label class="title"><span class="name">患者去向</span> : </label>
257
         <label class="title"><span class="name">患者去向</span> : </label>
258
         <div class="time ">
258
         <div class="time ">
259
           <ul class="">
259
           <ul class="">
267
             </li>
267
             </li>
268
           </ul>
268
           </ul>
269
         </div>
269
         </div>
270
-      </div>
270
+      </div> -->
271
       <div class="cell clearfix">
271
       <div class="cell clearfix">
272
         <label class="title"><span class="name">其它查询</span> : </label>
272
         <label class="title"><span class="name">其它查询</span> : </label>
273
         <el-select
273
         <el-select
525
             </el-radio-group>
525
             </el-radio-group>
526
           </el-form-item>
526
           </el-form-item>
527
 
527
 
528
-          <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
528
+          <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3"> 
529
             <el-date-picker
529
             <el-date-picker
530
               v-model="lapsetoForm.lapseto_time"
530
               v-model="lapsetoForm.lapseto_time"
531
               type="datetime"
531
               type="datetime"
539
           <el-form-item label="转出(死亡)原因:" v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3">
539
           <el-form-item label="转出(死亡)原因:" v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3">
540
               <el-input v-model="lapsetoForm.out_reason"></el-input>
540
               <el-input v-model="lapsetoForm.out_reason"></el-input>
541
           </el-form-item>
541
           </el-form-item>
542
+
543
+          <el-form-item label="开始时间:" v-if="lapsetoForm.lapseto_type != 2 && lapsetoForm.lapsetoType !=3">
544
+            <el-date-picker
545
+                  size="small"
546
+                  v-model="form.patient_start_time"
547
+                  prefix-icon="el-icon-date"
548
+                  :editable="false"
549
+                  style="width: 150px;"
550
+                  type="date"
551
+                  placeholder="选择日期时间"
552
+                  align="right"
553
+                  format="yyyy-MM-dd"
554
+                  value-format="yyyy-MM-dd"
555
+                ></el-date-picker>
556
+         </el-form-item>
557
+
558
+         <el-form-item label="结束时间:" v-if="lapsetoForm.lapseto_type != 2 && lapsetoForm.lapsetoType !=3">
559
+            <el-date-picker
560
+                  size="small"
561
+                  v-model="form.patient_end_time"
562
+                  prefix-icon="el-icon-date"
563
+                  :editable="false"
564
+                  style="width: 150px;"
565
+                  type="date"
566
+                  placeholder="选择日期时间"
567
+                  align="right"
568
+                  format="yyyy-MM-dd"
569
+                  value-format="yyyy-MM-dd"
570
+                ></el-date-picker>
571
+         </el-form-item>
572
+
573
+        <el-form-item label="转院地区:" v-if="lapsetoForm.lapseto_type == 4">
574
+          <el-select v-model="form.patient_address" placeholder="请选择">
575
+              <el-option
576
+                v-for="item in liuAddresslist"
577
+                :key="item.id"
578
+                :label="item.name"
579
+                :value="item.name">
580
+              </el-option>
581
+           </el-select>
582
+        </el-form-item>
542
         </el-form>
583
         </el-form>
543
         <div slot="footer" class="dialog-footer">
584
         <div slot="footer" class="dialog-footer">
544
           <el-button @click="LapsetoDialogVisible = false">取 消</el-button>
585
           <el-button @click="LapsetoDialogVisible = false">取 消</el-button>
638
             :data="patientAllgicList"
679
             :data="patientAllgicList"
639
             border
680
             border
640
             style="width: 100%">
681
             style="width: 100%">
641
-            <el-table-column  prop="date" label="流转地"  width="180"  align="center">
682
+            <el-table-column  prop="date" label="序号"  width="100"  align="center">
642
               <template  slot-scope="scope">
683
               <template  slot-scope="scope">
643
-                 {{ scope.row.patient_address }}
644
-
684
+                {{ scope.$index + 1 }}
645
               </template>
685
               </template>
646
             </el-table-column>
686
             </el-table-column>
647
-            <el-table-column  prop="name" label="流转开始时间"  width="180"   align="center">
687
+            <el-table-column  prop="date" label="转归方式"  width="100"  align="center">
688
+              <template  slot-scope="scope">
689
+                 {{getPatientSource(scope.row.patient_source) }}
690
+              </template>
691
+            </el-table-column>
692
+            
693
+            <el-table-column  prop="name" label="开始时间"  width="180"   align="center">
648
               <template  slot-scope="scope"  >
694
               <template  slot-scope="scope"  >
649
                  {{ getTime(scope.row.start_time) }}
695
                  {{ getTime(scope.row.start_time) }}
650
-
651
               </template>
696
               </template>
652
             </el-table-column>
697
             </el-table-column>
653
 
698
 
654
-            <el-table-column  prop="name" label="开始流转结束时间"  width="180"   align="center">
699
+            <el-table-column  prop="name" label="结束时间"  width="180"   align="center">
655
               <template  slot-scope="scope"  >
700
               <template  slot-scope="scope"  >
656
                 {{ getTime(scope.row.end_time) }}
701
                 {{ getTime(scope.row.end_time) }}
657
-
658
-              </template>
659
-            </el-table-column>
660
-            <el-table-column  prop="address"  label="流转地址"   align="center">
661
-              <template  slot-scope="scope" >
662
-                {{ scope.row.patient_address }}
663
               </template>
702
               </template>
664
             </el-table-column>
703
             </el-table-column>
665
-
666
-            <el-table-column  prop="address"  label="备注"   align="center">
704
+            
705
+            <el-table-column  prop="date" label="转院地区"  width="180"  align="center">
667
               <template  slot-scope="scope">
706
               <template  slot-scope="scope">
668
-                {{ scope.row.remake }}
707
+                 {{ scope.row.patient_address }}
669
               </template>
708
               </template>
670
             </el-table-column>
709
             </el-table-column>
671
           </el-table>
710
           </el-table>
689
   import { log } from 'util'
728
   import { log } from 'util'
690
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
729
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
691
   import UploadExcel from '@/xt_pages/components/UploadExcel'
730
   import UploadExcel from '@/xt_pages/components/UploadExcel'
692
-
731
+  import { getDataConfig } from "@/utils/data";
693
   export default {
732
   export default {
694
     name: 'Patient',
733
     name: 'Patient',
695
     components: {
734
     components: {
738
         lapsetoOptions: [
777
         lapsetoOptions: [
739
           { value: 1, label: '留治' },
778
           { value: 1, label: '留治' },
740
           { value: 2, label: '转出' },
779
           { value: 2, label: '转出' },
741
-          { value: 3,  label: "死亡" },
780
+          { value: 3, label: "死亡" },
781
+          { value: 4, label: "转院" },
782
+          { value: 5, label:"肾移植"},
783
+          { value: 6, label:"转腹透"},
784
+          { value:7,  label:"出院"},
785
+          { value:8,  label:"好转"},
786
+          { value:9,  label:"放弃治疗"},
787
+          { value:10, label:"其他状态"},
742
         ],
788
         ],
743
         systemType: 0,
789
         systemType: 0,
744
         systemArr: [
790
         systemArr: [
761
           {value:0,label:"全部",source:0,lapeseto:0},
807
           {value:0,label:"全部",source:0,lapeseto:0},
762
           {value:1,label:"门诊",source:1,lapeseto:1},
808
           {value:1,label:"门诊",source:1,lapeseto:1},
763
           {value:2,label:"住院",source:2,lapeseto:2},
809
           {value:2,label:"住院",source:2,lapeseto:2},
764
-          {value:3,label:"请假",source:3,lapeseto:3},
765
-          {value:4,label:"流转",source:4,lapeseto:4}
810
+         
766
        ],
811
        ],
767
         lapsetoArr: [
812
         lapsetoArr: [
768
           { value: 0, label: '全部', source: 0, lapseto: 0 },
813
           { value: 0, label: '全部', source: 0, lapseto: 0 },
769
           { value: 1, label: '转出', source: 0, lapseto: 2 },
814
           { value: 1, label: '转出', source: 0, lapseto: 2 },
770
           { value: 2, label: '留治', source: 0, lapseto: 1 },
815
           { value: 2, label: '留治', source: 0, lapseto: 1 },
771
           { value: 3, label: '死亡', source:0,  lapseto: 3 },
816
           { value: 3, label: '死亡', source:0,  lapseto: 3 },
772
-          // { value: 3, label: "门诊", source: 1, lapseto: 1 },
773
-          // { value: 4, label: "住院", source: 2, lapseto: 1 }
817
+          { value: 4, label: "转院", source: 0, lapseto: 4 },
818
+          { value: 5, label: "肾移植", source: 0, lapseto: 5 },
819
+          { value: 6, label: "转腹透", source: 0, lapseto: 6 },
820
+          { value: 7, label: "出院", source: 0, lapseto: 7 },
821
+          { value: 8, label: "好转", source: 0, lapseto: 8 },
822
+          { value: 9, label: "放弃治疗", source: 0, lapseto: 9 },
823
+          { value: 10, label: "其他状态", source: 0, lapseto: 10 },
774
         ],
824
         ],
775
         scheduling: [
825
         scheduling: [
776
           {
826
           {
839
         totalOne: 0,
889
         totalOne: 0,
840
         page: 1,
890
         page: 1,
841
         limit: 5,
891
         limit: 5,
842
-        patientAllgicList:[]
892
+        patientAllgicList:[],
893
+        liuAddresslist:[],
894
+        form:{
895
+          patient_address:"",
896
+          patient_start_time:"",
897
+          patient_end_time:"",
898
+        }
843
       }
899
       }
844
     },
900
     },
845
     created() {
901
     created() {
902
+      this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
846
       if(sessionStorage.getItem('patientPageSize')){
903
       if(sessionStorage.getItem('patientPageSize')){
847
         this.listQuery.limit = parseInt(sessionStorage.getItem('patientPageSize'))
904
         this.listQuery.limit = parseInt(sessionStorage.getItem('patientPageSize'))
848
       }
905
       }
1272
         return row.total_dialysis + row.user_sys_before_count
1329
         return row.total_dialysis + row.user_sys_before_count
1273
       },
1330
       },
1274
       EditLapseto() {
1331
       EditLapseto() {
1275
-        if (this.lapsetoForm.lapseto_time == '') {
1276
-          this.$message.error('请选择时间')
1277
-          return
1332
+
1333
+        if(this.lapsetoForm.lapeseto ==2 || this.lapsetoForm.lapeseto == 3 ){
1334
+          if (this.lapsetoForm.lapseto_time == '') {
1335
+            this.$message.error('请选择时间')
1336
+            return
1337
+          }
1278
         }
1338
         }
1339
+      
1279
         //  if(this.lapeseto == "留治"){
1340
         //  if(this.lapeseto == "留治"){
1280
         //    this.lapsetoForm.lapseto_type = 1
1341
         //    this.lapsetoForm.lapseto_type = 1
1281
         //  }
1342
         //  }
1286
         //   this.lapsetoForm.lapseto_type = 3
1347
         //   this.lapsetoForm.lapseto_type = 3
1287
         //  }
1348
         //  }
1288
         console.log("22222",this.lapsetoForm)
1349
         console.log("22222",this.lapsetoForm)
1289
-        EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(
1350
+        EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm,this.form.patient_start_time,this.form.patient_end_time,this.form.patient_address).then(
1290
           response => {
1351
           response => {
1291
             if (response.data.state === 1) {
1352
             if (response.data.state === 1) {
1292
               this.$notify({
1353
               this.$notify({
1325
       },
1386
       },
1326
       LapsetoInfo(row) {
1387
       LapsetoInfo(row) {
1327
         console.log("row",row)
1388
         console.log("row",row)
1328
-        if (typeof row.lapseto === 'undefined' ||(row.lapseto !== 1 && row.lapseto !== 2 && row.lapseto !==3)) {
1329
-          return '未设置'
1330
-        } else if (row.lapseto === 1) {
1389
+        if (row.lapseto === 1) {
1331
           return '留治'
1390
           return '留治'
1332
         } else if(row.lapseto === 2) {
1391
         } else if(row.lapseto === 2) {
1333
           return '转出'
1392
           return '转出'
1334
         }else if(row.lapseto === 3){
1393
         }else if(row.lapseto === 3){
1335
           return '死亡'
1394
           return '死亡'
1395
+        }else if(row.lapseto == 4){
1396
+          return "转院"
1397
+        }else if(row.lapseto == 5){
1398
+          return "肾移植"
1399
+        }else if(row.lapseto == 6){
1400
+           return "转腹透"
1401
+        }else if(row.lapseto == 7){
1402
+           return "出院"
1403
+        }else if(row.lapseto == 8){
1404
+           return "好转"
1405
+        }else if (row.lapseto == 9){
1406
+           return "放弃治疗"
1407
+        }else if (row.lapseto == 10){
1408
+           return "其他状态"
1409
+        }
1410
+      },
1411
+      getPatientSource(val){
1412
+        if(val === 1) {
1413
+          return '留治'
1414
+        }else if(val === 2) {
1415
+          return '转出'
1416
+        }else if(val === 3){
1417
+          return '死亡'
1418
+        }else if(val == 4){
1419
+          return "转院"
1420
+        }else if(val == 5){
1421
+          return "肾移植"
1422
+        }else if(val == 6){
1423
+           return "转腹透"
1424
+        }else if(val == 7){
1425
+           return "出院"
1426
+        }else if(val== 8){
1427
+           return "好转"
1428
+        }else if (val == 9){
1429
+           return "放弃治疗"
1430
+        }else if (val == 10){
1431
+           return "其他状态"
1336
         }
1432
         }
1337
       },
1433
       },
1338
       openWechatBindDialog() {
1434
       openWechatBindDialog() {

+ 1 - 1
src/xt_pages/workforce/components/tableWeeks.vue View File

907
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
907
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
908
           })
908
           })
909
         }
909
         }
910
-        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0){
910
+        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0 && this.org_id!=10375){
911
           var zone = this.zone
911
           var zone = this.zone
912
           console.log("zone23232",zone)
912
           console.log("zone23232",zone)
913
           var newArr = []
913
           var newArr = []

+ 20 - 1
src/xt_pages/workforce/next_remind_print.vue View File

35
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
35
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38
+                  <td width="100" >血管通路</td>
38
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
39
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
39
                 </tr>
40
                 </tr>
40
               </thead>
41
               </thead>
94
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
96
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
96
                 </td>
97
                 </td>
98
+                <td :width="td_1_width">
99
+                  <span>{{getBloodName(main_collection.dialysissolution.blood_access)  }}</span>
100
+                </td>
97
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
101
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
98
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
102
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
99
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
103
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
110
 
114
 
111
 <script>
115
 <script>
112
   import { getNextScheduleWeekDay,getPrintList } from '@/api/schedule'
116
   import { getNextScheduleWeekDay,getPrintList } from '@/api/schedule'
117
+  import { getDataConfig } from '@/utils/data'
113
   import { parseTime } from '@/utils'
118
   import { parseTime } from '@/utils'
114
   import { uParseTime } from '@/utils/tools'
119
   import { uParseTime } from '@/utils/tools'
115
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
120
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
141
         pre_status:0,
146
         pre_status:0,
142
         printObj:{},
147
         printObj:{},
143
         loading: false,
148
         loading: false,
149
+        blood_access_option:[],
144
       }
150
       }
145
     },
151
     },
146
     components: {
152
     components: {
147
       BreadCrumb
153
       BreadCrumb
148
     },
154
     },
149
     created() {
155
     created() {
150
-   
156
+      
157
+      this.blood_access_option = getDataConfig(
158
+          'hemodialysis',
159
+          'vascular_access_desc'
160
+       )
151
       this.getPrintList()
161
       this.getPrintList()
152
       this.org_id = this.$store.getters.xt_user.org.id
162
       this.org_id = this.$store.getters.xt_user.org.id
153
       this.currentDate = this.getCurrentDate()
163
       this.currentDate = this.getCurrentDate()
168
     
178
     
169
     },
179
     },
170
     methods: {
180
     methods: {
181
+      getBloodName(id){
182
+         var name= ""
183
+         for(let i=0;i<this.blood_access_option.length;i++){
184
+           if(id == this.blood_access_option[i].id){
185
+              name = this.blood_access_option[i].name
186
+           }
187
+         }
188
+         return name
189
+      },
171
       getTimestamp(time) { //把时间日期转成时间戳
190
       getTimestamp(time) { //把时间日期转成时间戳
172
         return (new Date(time)).getTime()
191
         return (new Date(time)).getTime()
173
       },
192
       },

+ 23 - 13
src/xt_pages/workforce/remind_print.vue View File

32
                   <td width="70" v-if="printObj.number == 1">机号</td>
32
                   <td width="70" v-if="printObj.number == 1">机号</td>
33
                   <td width="120" v-if="printObj.mode == 1">透析模式</td>
33
                   <td width="120" v-if="printObj.mode == 1">透析模式</td>
34
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
34
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
35
-                  <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
35
+                  <td width="100" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
36
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
36
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
37
+                  <td width="200">血管通路</td>
37
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
38
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
38
                 </tr>
39
                 </tr>
39
               </thead>
40
               </thead>
63
                 </td>
64
                 </td>
64
 
65
 
65
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
66
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
66
-                  <!-- <span v-if="org_id!=9987">
67
-                     <span > 
68
-                       <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
69
-                     
70
-                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
71
-                      </span>
72
-                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> 
73
-                  </span>
74
-                    {{main_collection.prescription.dialysis_dialyszers}}
75
-                  <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
76
-                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span> -->
77
-                  
67
+                 
78
                   <span v-if="main_collection.prescription.dialysis_dialyszers == ''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
68
                   <span v-if="main_collection.prescription.dialysis_dialyszers == ''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
79
                   <span v-if="main_collection.prescription.dialysis_dialyszers != ''">{{main_collection.prescription.dialysis_dialyszers}}</span>
69
                   <span v-if="main_collection.prescription.dialysis_dialyszers != ''">{{main_collection.prescription.dialysis_dialyszers}}</span>
80
 
70
 
104
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
94
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
105
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
106
                 </td>
96
                 </td>
97
+                <td :width="td_1_width">
98
+                   <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
99
+                </td>
107
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
100
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
108
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
101
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
109
                    <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
102
                    <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
120
 
113
 
121
 <script>
114
 <script>
122
   import { getScheduleList,getPrintList } from '@/api/schedule'
115
   import { getScheduleList,getPrintList } from '@/api/schedule'
116
+  import { getDataConfig } from '@/utils/data'
123
   import { parseTime } from '@/utils'
117
   import { parseTime } from '@/utils'
124
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
118
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
125
   import print from 'print-js'
119
   import print from 'print-js'
146
         printObj:{},
140
         printObj:{},
147
         week_time:0,
141
         week_time:0,
148
         zone:0,
142
         zone:0,
143
+        blood_access_option:[]
149
       }
144
       }
150
     },
145
     },
151
     components: {
146
     components: {
154
     created() {
149
     created() {
155
       this.getPrintList()
150
       this.getPrintList()
156
       this.org_id = this.$store.getters.xt_user.org.id
151
       this.org_id = this.$store.getters.xt_user.org.id
152
+
153
+      this.blood_access_option = getDataConfig(
154
+          'hemodialysis',
155
+          'vascular_access_desc'
156
+       )
157
+      
157
      //console.log("org_id23322323",this.org_id)
158
      //console.log("org_id23322323",this.org_id)
158
     //  this.currentDate = this.getCurrentDate()
159
     //  this.currentDate = this.getCurrentDate()
159
       this.modeOptions = this.$store.getters.treatment_mode
160
       this.modeOptions = this.$store.getters.treatment_mode
414
         console.log('name', name)
415
         console.log('name', name)
415
         return name
416
         return name
416
       },
417
       },
418
+      getBloodName(id){
419
+         var name= ""
420
+         for(let i=0;i<this.blood_access_option.length;i++){
421
+           if(id == this.blood_access_option[i].id){
422
+              name = this.blood_access_option[i].name
423
+           }
424
+         }
425
+         return name
426
+      }
417
     },
427
     },
418
   }
428
   }
419
 </script>
429
 </script>

+ 90 - 17
src/xt_pages/workforce/remind_print_setting_one.vue View File

42
                     <span>{{getModeId(main_collection.mode_id)}}</span>
42
                     <span>{{getModeId(main_collection.mode_id)}}</span>
43
                   
43
                   
44
                 </div>
44
                 </div>
45
-                <div class="printCell">
46
-                  <span v-if="org_id!=0&&org_id!=10375">抗凝剂:
47
-                    {{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}
48
-                  </span>
49
-                  <span v-if="org_id==0||org_id==10375">抗凝剂:
50
-                    {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
51
-                  </span>
45
+                <div class="printCell" v-if="org_id!=10375">
46
+                  <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
52
                 </div>
47
                 </div>
53
-                <div class="printCell">
54
-                 <span v-if="org_id !=0&&org_id!=10375">首剂:
55
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
48
+                <div class="printCell" v-if="org_id==10375">
49
+                  <span>抗凝剂:{{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}</span>
50
+                </div>
51
+                <div class="printCell" v-if="org_id!=10375">
52
+                 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
56
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
53
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
57
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
54
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
58
                   </span>
55
                   </span>
83
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
80
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
84
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
81
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
85
                    </span>
82
                    </span>
86
-                  </span> 
87
-
88
-                  <span v-if="org_id ==0||org_id==10375">首剂:
89
-                  <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_shouji}} mg</span>
83
+                 
84
+                </div>
85
+                <div class="printCell" v-if="org_id ==10375">
86
+                 首剂:<span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_shouji}} mg</span>
90
                   <span v-if="main_collection.prescription.anticoagulant == 2">
87
                   <span v-if="main_collection.prescription.anticoagulant == 2">
91
                     {{main_collection.prescription.anticoagulant_shouji}}mg
88
                     {{main_collection.prescription.anticoagulant_shouji}}mg
92
                   </span>
89
                   </span>
117
                   <span v-if="main_collection.prescription.anticoagulant == 11">
114
                   <span v-if="main_collection.prescription.anticoagulant == 11">
118
                     {{main_collection.prescription.anticoagulant_shouji}}iu
115
                     {{main_collection.prescription.anticoagulant_shouji}}iu
119
                    </span>
116
                    </span>
120
-                  </span> 
117
+                 
121
                 </div>
118
                 </div>
122
-                <div class="printCell">
119
+                <div class="printCell" v-if="org_id!=10375">
123
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
120
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
124
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
121
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
125
                     mg/h
122
                     mg/h
156
                    </span>
153
                    </span>
157
               
154
               
158
                 </div>
155
                 </div>
156
+
157
+                <div class="printCell" v-if="org_id!=10375">
158
+                  维持:{{main_collection.prescription.anticoagulant_weichi}}
159
+                   <span v-if="main_collection.prescription.anticoagulant == 1">
160
+                    mg/h
161
+                  </span>
162
+                  <span v-if="main_collection.prescription.anticoagulant == 2">
163
+                    mg/h
164
+                  </span>
165
+                  <span v-if="main_collection.prescription.anticoagulant == 3">
166
+                   iu/h
167
+                  </span>
168
+                  <span v-if="main_collection.prescription.anticoagulant == 4">
169
+                    mg/h
170
+                  </span>
171
+                  <span v-if="main_collection.prescription.anticoagulant == 5">
172
+                    mg/h
173
+                   </span>
174
+                  <span v-if="main_collection.prescription.anticoagulant == 6">
175
+                   iu/h
176
+                  </span>
177
+                  <span v-if="main_collection.prescription.anticoagulant == 7">
178
+                   iu/h
179
+                   </span>
180
+                  <span v-if="main_collection.prescription.anticoagulant == 8">
181
+                    iu/h
182
+                  </span>
183
+                  <span v-if="main_collection.prescription.anticoagulant == 9">
184
+                    iu/h
185
+                  </span>
186
+                  <span v-if="main_collection.prescription.anticoagulant == 10">
187
+                    iu/h
188
+                    </span>
189
+                  <span v-if="main_collection.prescription.anticoagulant == 11">
190
+                    iu/h
191
+                   </span>
192
+              
193
+                </div>
159
                
194
                
160
-                <div class="printCell">
195
+                <div class="printCell" v-if="org_id!=10375">
161
                   总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
196
                   总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
162
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
197
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
163
                     mg
198
                     mg
193
                    iu
228
                    iu
194
                    </span>
229
                    </span>
195
           
230
           
231
+                </div>
232
+
233
+                <div class="printCell" v-if="org_id==10375">
234
+                  总量:{{main_collection.prescription.anticoagulant_zongliang}}
235
+                  <span v-if="main_collection.prescription.anticoagulant == 1">
236
+                    mg
237
+                  </span>
238
+                  <span v-if="main_collection.prescription.anticoagulant == 2">
239
+                    mg
240
+                  </span>
241
+                  <span v-if="main_collection.prescription.anticoagulant == 3">
242
+                    iu
243
+                  </span>
244
+                  <span v-if="main_collection.prescription.anticoagulant == 4">
245
+                   mg
246
+                  </span>
247
+                  <span v-if="main_collection.prescription.anticoagulant == 5">
248
+                    mg
249
+                   </span>
250
+                  <span v-if="main_collection.prescription.anticoagulant == 6">
251
+                   iu
252
+                  </span>
253
+                  <span v-if="main_collection.prescription.anticoagulant == 7">
254
+                    iu
255
+                   </span>
256
+                  <span v-if="main_collection.prescription.anticoagulant == 8">
257
+                     iu
258
+                  </span>
259
+                  <span v-if="main_collection.prescription.anticoagulant == 9">
260
+                   iu
261
+                  </span>
262
+                  <span v-if="main_collection.prescription.anticoagulant == 10">
263
+                    iu
264
+                    </span>
265
+                  <span v-if="main_collection.prescription.anticoagulant == 11">
266
+                   iu
267
+                   </span>
268
+          
196
                 </div>
269
                 </div>
197
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
270
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
198
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
271
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>