瀏覽代碼

合并带嘛

csx 2 年之前
父節點
當前提交
108264c271
共有 41 個文件被更改,包括 31741 次插入4029 次删除
  1. 17 8
      src/api/his/his.js
  2. 0 53
      src/api/schedule_template/patient.js
  3. 127 0
      src/api/schedule_template/sch_template.js
  4. 1 1
      src/xt_pages/hospitalStation/chargeDetailManagement.vue
  5. 1 1
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  6. 14 14
      src/xt_pages/hospitalStation/doctorDesk.vue
  7. 1 1
      src/xt_pages/hospitalStation/index.vue
  8. 2 2
      src/xt_pages/hospitalStation/invoicePrint.vue
  9. 6 1
      src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue
  10. 5 5
      src/xt_pages/outpatientCharges/allListPrint.vue
  11. 1 1
      src/xt_pages/outpatientCharges/costComparison.vue
  12. 7 2
      src/xt_pages/outpatientCharges/invoicePrint.vue
  13. 238 0
      src/xt_pages/outpatientCharges/invoiceTemplate/printEight.vue
  14. 2 2
      src/xt_pages/outpatientCharges/listPrint.vue
  15. 7 3
      src/xt_pages/outpatientCharges/listTemplate/printThree.vue
  16. 10 6
      src/xt_pages/outpatientCharges/listTemplate/printTwo.vue
  17. 4 15
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  18. 370 194
      src/xt_pages/outpatientCharges/statementPrint.vue
  19. 7 3
      src/xt_pages/outpatientCharges/statementTemplate/printOne.vue
  20. 4 4
      src/xt_pages/outpatientCharges/statementTemplate/printThree.vue
  21. 147 66
      src/xt_pages/outpatientCharges/summary.vue
  22. 2 3
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  23. 12 12
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  24. 10 2
      src/xt_pages/outpatientDoctorStation/template/printThree.vue
  25. 950 533
      src/xt_pages/workforce/appointment.vue
  26. 2934 0
      src/xt_pages/workforce/appointment3.vue
  27. 5 0
      src/xt_pages/workforce/components/ScheduleItem.vue
  28. 3859 0
      src/xt_pages/workforce/components/editSchedule.vue
  29. 5005 0
      src/xt_pages/workforce/components/editTableData.vue
  30. 4 4
      src/xt_pages/workforce/components/scheduleTemplateUploadExcel/index.vue
  31. 11 11
      src/xt_pages/workforce/components/scheduleUploadExcel/index.vue
  32. 108 30
      src/xt_pages/workforce/components/setup_template_dialog.vue
  33. 389 132
      src/xt_pages/workforce/components/tableData.vue
  34. 2474 0
      src/xt_pages/workforce/components/tableDataModeTwo.vue
  35. 18 18
      src/xt_pages/workforce/components/template_schedule_selector_dialog.vue
  36. 2820 759
      src/xt_pages/workforce/components/template_table.vue
  37. 2889 0
      src/xt_pages/workforce/components/template_table_four.vue
  38. 2656 0
      src/xt_pages/workforce/components/template_table_three.vue
  39. 2893 0
      src/xt_pages/workforce/components/template_table_two.vue
  40. 153 67
      src/xt_pages/workforce/scheduleTablePrintOne.vue
  41. 3578 2076
      src/xt_pages/workforce/template.vue

+ 17 - 8
src/api/his/his.js 查看文件

@@ -436,14 +436,14 @@ export function getMonthHisPateintInfo(params) {
436 436
     params: params
437 437
   })
438 438
 }
439
-
440
-export function getAllOrders(params) {
441
-  return request({
442
-    url: '/api/orders',
443
-    method: 'get',
444
-    params: params
445
-  })
446
-}
439
+//
440
+// export function getAllOrders(params) {
441
+//   return request({
442
+//     url: '/api/orders',
443
+//     method: 'get',
444
+//     params: params
445
+//   })
446
+// }
447 447
 
448 448
 export function Inhopitalcheck(params) {
449 449
   return request({
@@ -719,4 +719,13 @@ export function getHisDataSix(params) {
719 719
 
720 720
 
721 721
 
722
+export function getAllOrders(params) {
723
+  return request({
724
+    url: '/handleData10106',
725
+    method: 'get',
726
+    params: params
727
+  })
728
+}
729
+
730
+
722 731
 

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

@@ -1,53 +0,0 @@
1
-import request from '@/utils/request'
2
-
3
-export function getTemplateInitData() {
4
-  return request({
5
-    url: '/api/schtemp/p/initdata',
6
-    method: 'get',
7
-  })
8
-}
9
-
10
-export function setTemplateMode(mode) {
11
-  var params = {
12
-    mode: mode,
13
-  }
14
-  return request({
15
-    url: '/api/schtemp/p/setmode',
16
-    method: 'post',
17
-    params: params,
18
-  })
19
-}
20
-
21
-export function updateSchedules(template_id, add_schs, del_schs, change_schs) {
22
-  var params = {
23
-    template_id: template_id,
24
-    add_schs: add_schs,
25
-    del_schs: del_schs,
26
-    change_schs: change_schs,
27
-  }
28
-  return request({
29
-    url: '/api/schtemp/p/update_sch',
30
-    method: 'post',
31
-    params: params,
32
-  })
33
-}
34
-
35
-export function getTemplateScheduleSearchResult(params) {
36
-  return request({
37
-    url: '/api/schedule_template/search',
38
-    method: 'Get',
39
-    params: params
40
-  })
41
-}
42
-
43
-
44
-export function cancelScheduleTemplate(params) {
45
-  return request({
46
-    url: '/api/schedule_template/cancel',
47
-    method: 'Post',
48
-    params: params
49
-  })
50
-}
51
-
52
-
53
-

+ 127 - 0
src/api/schedule_template/sch_template.js 查看文件

@@ -0,0 +1,127 @@
1
+import request from '@/utils/request'
2
+
3
+export function getTemplateInitData(obj) {
4
+  return request({
5
+    url: '/api/schtemp/p/initdata',
6
+    method: 'get',
7
+    params: obj,
8
+
9
+  })
10
+}
11
+
12
+export function getTemplateInitDataTwo(obj) {
13
+  return request({
14
+    url: '/api/schtemp/p/initdata',
15
+    method: 'get',
16
+    params: obj,
17
+  })
18
+}
19
+
20
+export function setTemplateMode(mode,week_time) {
21
+  var params = {
22
+    mode: mode,
23
+    week_time:week_time,
24
+
25
+  }
26
+  return request({
27
+    url: '/api/schtemp/p/setmode',
28
+    method: 'post',
29
+    params: params,
30
+  })
31
+}
32
+
33
+export function updateSchedules(template_id, add_schs, del_schs, change_schs) {
34
+  var params = {
35
+    template_id: template_id,
36
+    add_schs: add_schs,
37
+    del_schs: del_schs,
38
+    change_schs: change_schs,
39
+  }
40
+  return request({
41
+    url: '/api/schtemp/p/update_sch',
42
+    method: 'post',
43
+    params: params,
44
+  })
45
+}
46
+
47
+export function getTemplateScheduleSearchResult(params) {
48
+  return request({
49
+    url: '/api/schedule_template/search',
50
+    method: 'Get',
51
+    params: params
52
+  })
53
+}
54
+
55
+
56
+export function cancelScheduleTemplate(params) {
57
+  return request({
58
+    url: '/api/schedule_template/cancel',
59
+    method: 'Post',
60
+    params: params
61
+  })
62
+}
63
+
64
+
65
+
66
+export function patientLists(params) {
67
+  return request({
68
+    url: '/api/patients/list',
69
+    method: 'get',
70
+    params: params
71
+  })
72
+}
73
+
74
+
75
+export function PostSearchSmartSchPatient(params) {
76
+  return request({
77
+    url: '/api/schedule/smartpatientsch',
78
+    method: 'get',
79
+    params: params
80
+  })
81
+}
82
+
83
+
84
+export function getPatientSmartSch(params) {
85
+  return request({
86
+    url: '/api/patient/smartpatientsch',
87
+    method: 'get',
88
+    params: params
89
+  })
90
+}
91
+
92
+
93
+export function getSmartDevices(params) {
94
+  return request({
95
+    url: '/api/device/get',
96
+    method: 'get',
97
+    params: params
98
+  })
99
+}
100
+
101
+
102
+export function getPatientSmartSchTemplate(params) {
103
+  return request({
104
+    url: '/api/patient/smartpatientschtemplate',
105
+    method: 'get',
106
+    params: params
107
+  })
108
+}
109
+
110
+
111
+
112
+export function PostSearchSmartSchTemplatePatient(params) {
113
+  return request({
114
+    url: '/api/schedule/smartpatientschtemplate',
115
+    method: 'get',
116
+    params: params
117
+  })
118
+}
119
+
120
+
121
+export function BatchSmartSch(params,patient_id) {
122
+  return request({
123
+    url: '/api/smartsch/batch?patient_id='+patient_id,
124
+    method: 'post',
125
+    data: params
126
+  })
127
+}

+ 1 - 1
src/xt_pages/hospitalStation/chargeDetailManagement.vue 查看文件

@@ -1345,7 +1345,7 @@ export default {
1345 1345
                 price: prescription.project[b].price,
1346 1346
                 remark: prescription.project[b].remark,
1347 1347
                 // medical_code: prescription.project[b].project.medical_code,
1348
-                unit: prescription.project[b].project.unit,
1348
+                unit: prescription.project[b].unit,
1349 1349
                 type: prescription.project[b].type,
1350 1350
                 det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
1351 1351
                 fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,

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

@@ -3277,7 +3277,7 @@ export default {
3277 3277
           return
3278 3278
         }
3279 3279
        }
3280
-      this.teamList.push(row)
3280
+      this.teamList = selection
3281 3281
     },
3282 3282
     getlist() {
3283 3283
       this.tabProject = []

+ 14 - 14
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

@@ -72,9 +72,9 @@
72 72
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
73 73
                         <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
74 74
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
75
-                       
75
+
76 76
                     </el-tabs>
77
-                   
77
+
78 78
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
79 79
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
80 80
                                    v-loading="saveLoading">保存
@@ -1231,7 +1231,7 @@
1231 1231
                     price: prescription.project[b].price,
1232 1232
                     remark: prescription.project[b].remark,
1233 1233
                     medical_code: prescription.project[b].project.medical_code,
1234
-                    unit: prescription.project[b].project.unit,
1234
+                    unit: prescription.project[b].unit,
1235 1235
                     type: prescription.project[b].type
1236 1236
 
1237 1237
                   }
@@ -1371,7 +1371,7 @@
1371 1371
                       total: prescription.project[b].count.toString(),
1372 1372
                       remark: prescription.project[b].remark,
1373 1373
                       medical_code: prescription.project[b].project.medical_code,
1374
-                      unit: prescription.project[b].project.unit,
1374
+                      unit: prescription.project[b].unit,
1375 1375
                       type: prescription.project[b].type
1376 1376
 
1377 1377
                     }
@@ -1644,7 +1644,7 @@
1644 1644
                           price: prescription.project[b].price,
1645 1645
                           remark: prescription.project[b].remark,
1646 1646
                           medical_code: prescription.project[b].project.medical_code,
1647
-                          unit: prescription.project[b].project.unit,
1647
+                          unit: prescription.project[b].unit,
1648 1648
                           type: prescription.project[b].type
1649 1649
                         }
1650 1650
 
@@ -1783,7 +1783,7 @@
1783 1783
                             total: prescription.project[b].count.toString(),
1784 1784
                             remark: prescription.project[b].remark,
1785 1785
                             medical_code: prescription.project[b].project.medical_code,
1786
-                            unit: prescription.project[b].project.unit,
1786
+                            unit: prescription.project[b].unit,
1787 1787
                             type: prescription.project[b].type
1788 1788
 
1789 1789
                           }
@@ -2135,7 +2135,7 @@
2135 2135
                           price: prescription.project[b].price,
2136 2136
                           remark: prescription.project[b].remark,
2137 2137
                           medical_code: prescription.project[b].project.medical_code,
2138
-                          unit: prescription.project[b].project.unit,
2138
+                          unit: prescription.project[b].unit,
2139 2139
                           type: prescription.project[b].type
2140 2140
                         }
2141 2141
 
@@ -2265,7 +2265,7 @@
2265 2265
                             total: prescription.project[b].count.toString(),
2266 2266
                             remark: prescription.project[b].remark,
2267 2267
                             medical_code: prescription.project[b].project.medical_code,
2268
-                            unit: prescription.project[b].project.unit,
2268
+                            unit: prescription.project[b].unit,
2269 2269
                             type: prescription.project[b].type
2270 2270
                           }
2271 2271
 
@@ -2607,7 +2607,7 @@
2607 2607
                         price: prescription.project[b].price,
2608 2608
                         remark: prescription.project[b].remark,
2609 2609
                         medical_code: prescription.project[b].project.medical_code,
2610
-                        unit: prescription.project[b].project.unit,
2610
+                        unit: prescription.project[b].unit,
2611 2611
                         type: prescription.project[b].type
2612 2612
                       }
2613 2613
 
@@ -2736,7 +2736,7 @@
2736 2736
                           total: prescription.project[b].count.toString(),
2737 2737
                           remark: prescription.project[b].remark,
2738 2738
                           medical_code: prescription.project[b].project.medical_code,
2739
-                          unit: prescription.project[b].project.unit,
2739
+                          unit: prescription.project[b].unit,
2740 2740
                           type: prescription.project[b].type
2741 2741
                         }
2742 2742
 
@@ -3138,7 +3138,7 @@
3138 3138
                           price: prescription.project[b].price,
3139 3139
                           remark: prescription.project[b].remark,
3140 3140
                           medical_code: prescription.project[b].project.medical_code,
3141
-                          unit: prescription.project[b].project.unit,
3141
+                          unit: prescription.project[b].unit,
3142 3142
                           type: prescription.project[b].type
3143 3143
                         }
3144 3144
 
@@ -3274,7 +3274,7 @@
3274 3274
                             total: prescription.project[b].count.toString(),
3275 3275
                             remark: prescription.project[b].remark,
3276 3276
                             medical_code: prescription.project[b].project.medical_code,
3277
-                            unit: prescription.project[b].project.unit,
3277
+                            unit: prescription.project[b].unit,
3278 3278
                             type: prescription.project[b].type
3279 3279
                           }
3280 3280
 
@@ -3593,7 +3593,7 @@
3593 3593
                           price: prescription.project[b].price,
3594 3594
                           remark: prescription.project[b].remark,
3595 3595
                           medical_code: prescription.project[b].project.medical_code,
3596
-                          unit: prescription.project[b].project.unit,
3596
+                          unit: prescription.project[b].unit,
3597 3597
                           type: prescription.project[b].type
3598 3598
                         }
3599 3599
 
@@ -3730,7 +3730,7 @@
3730 3730
                             total: prescription.project[b].count.toString(),
3731 3731
                             remark: prescription.project[b].remark,
3732 3732
                             medical_code: prescription.project[b].project.medical_code,
3733
-                            unit: prescription.project[b].project.unit,
3733
+                            unit: prescription.project[b].unit,
3734 3734
                             type: prescription.project[b].type
3735 3735
                           }
3736 3736
 

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

@@ -84,7 +84,7 @@
84 84
             </el-select>
85 85
           </el-form-item>
86 86
 
87
-          <el-form-item class="specialFormItem" label="医保卡号:" v-if="this.$store.getters.xt_user.org_id == 10265">
87
+          <el-form-item class="specialFormItem" label="医保卡号:">
88 88
             <div style="display:flex;">
89 89
               <el-input v-model="form.medicalInsuranceCard"></el-input>
90 90
               <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue 查看文件

@@ -24,11 +24,11 @@
24 24
           :paramsObj="invoiceParams"
25 25
         ></printOne>
26 26
         <printTwo
27
-          v-if="org_id == 10215 || org_id == 0"
27
+          v-if="org_id == 10215 "
28 28
           :paramsObj="invoiceParams"
29 29
         ></printTwo>
30 30
         <printThree
31
-          v-if="org_id == 10265 || org_id == 4 || org_id == 9675"
31
+          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 || org_id == 0"
32 32
           :paramsObj="invoiceParams"
33 33
         ></printThree>
34 34
       </div>

+ 6 - 1
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue 查看文件

@@ -167,10 +167,15 @@
167 167
             <!-- 统筹支付 -->
168 168
           统筹支付:{{list.order.hifp_pay?list.order.hifp_pay:'0.00'}}
169 169
         </div>
170
-        <div style="position: absolute;top:310px;left:480px">
170
+
171
+        <div style="position: absolute;top:310px;left:400px">
171 172
           现金支付:{{list.order.psn_cash_pay?list.order.psn_cash_pay:'0.00'}}
172 173
           <!-- 现金支付 -->
173 174
         </div>
175
+        <div style="position: absolute;top:310px;left:560px">
176
+          职工大额补助:{{list.order.hifob_pay?list.order.hifob_pay:'0.00'}}
177
+        </div>
178
+
174 179
         <div style="position: absolute;top:340px;left:40px">
175 180
           公务员补助:{{list.order.cvlserv_pay?list.order.cvlserv_pay:'0.00'}}
176 181
           <!-- 公务员补助 -->

+ 5 - 5
src/xt_pages/outpatientCharges/allListPrint.vue 查看文件

@@ -82,7 +82,7 @@
82 82
             this.admin = response.data.data.admin_info
83 83
             this.his_hospital = response.data.data.his_hospital
84 84
             var order_info = response.data.data.order_info
85
-            
85
+
86 86
             if(this.$store.getters.xt_user.org_id == 10215 || this.$store.getters.xt_user.org_id == 0){
87 87
               //获取所有项目类型进行去重
88 88
               let med_chrgitm_types = []
@@ -209,7 +209,7 @@
209 209
                 obj['name'] = details[a].advice.advice_name
210 210
                 // obj['spec'] = details[a].advice.drug.drug_spec
211 211
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
212
-                obj['unit'] = details[a].advice.drug.min_unit
212
+                obj['unit'] = details[a].advice.prescribing_number_unit
213 213
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
214 214
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
215 215
                 obj['price'] = parseFloat(details[a].pric)
@@ -362,7 +362,7 @@
362 362
           '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
363 363
          const style1 =
364 364
           '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable tr td {padding: 0 5px;} .allListTable .allListTable_1{border: none;width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable_1 tr{page-break-inside:avoid;} .allListTable_1 tr td {padding: 0 5px;border: 1px solid #000;} .tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
365
-        
365
+
366 366
         if(this.org_id == 10215 || this.org_id == 0 ||this.org_id == 9675){
367 367
           printJS({
368 368
           printable: 'allList-print',
@@ -379,8 +379,8 @@
379 379
         })
380 380
         }
381 381
 
382
-        
383
-        
382
+
383
+
384 384
 
385 385
         // if (this.org_template_info.template_id == 1) {
386 386
         //   printJS({

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

@@ -208,7 +208,7 @@ c<template>
208 208
                     </el-select>
209 209
                   </el-form-item>
210 210
 
211
-                  <el-form-item label="清算类别" :label-width="formLabelWidth" v-if="this.$store.getters.xt_user.org.id == 9919">
211
+                  <el-form-item label="清算类别" :label-width="formLabelWidth" >
212 212
                     <el-select v-model="clr_type" placeholder="请选择" style="width: 200px;">
213 213
                       <el-option
214 214
                           v-for="item in clrOptions"

+ 7 - 2
src/xt_pages/outpatientCharges/invoicePrint.vue 查看文件

@@ -13,14 +13,16 @@
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15 15
         <div class='dialysisPage'>
16
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0" >
16
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387" >
17 17
             <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
18 18
             <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
19 19
           </div>
20 20
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21
-          <printFour v-if="org_id == 10215 || org_id == 4 || org_id == 0" :paramsObj="invoiceParams"></printFour>
21
+          <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
22 22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23 23
           <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
24
+<!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
25
+          <print-eight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></print-eight>
24 26
         </div>
25 27
     </div>
26 28
   </div>
@@ -34,9 +36,12 @@ import printFour from './invoiceTemplate/printFour'
34 36
 import printFive from './invoiceTemplate/printFive'
35 37
 import printSix from './invoiceTemplate/printSix'
36 38
 import printSeven from './invoiceTemplate/printSeven'
39
+import printEight from './invoiceTemplate/printEight'
40
+import PrintEight from "./invoiceTemplate/printEight";
37 41
 export default {
38 42
    name: "invoicePrint",
39 43
   components: {
44
+    PrintEight,
40 45
     printOne,
41 46
     printTwo,
42 47
     printThree,

+ 238 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printEight.vue 查看文件

@@ -0,0 +1,238 @@
1
+<template>
2
+    <div id='invoice-print'>
3
+        <div style="display:flex;">
4
+            <!-- <div style="position: absolute;top:70px;left:70px;">{{ list.order_number }}</div> -->
5
+            <!-- <div>{{ list.id_card_no }}</div> -->
6
+        </div>
7
+        <!-- <div style="display:flex;justify-content: space-between;">
8
+            <div>{{ list.department_name }}</div>
9
+            <div  style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
10
+            <div></div>
11
+            <div  style="position: absolute;left:560px;top:70px;">
12
+                <span>{{ printDate.slice(0,4) }}</span>
13
+                <span>{{ printDate.slice(5,7) }}</span>
14
+                <span>{{ printDate.slice(8,11) }}</span>
15
+            </div>
16
+        </div> -->
17
+        <div style="display:flex;justify-content: space-between;">
18
+            <div style="position: absolute;top:90px;left:40px;"> {{ paramsObj.name }}</div>
19
+            <div  style="position: absolute;top:90px;left:340px">{{ list.number }}</div>
20
+            <!-- <div style="position: absolute;top:90px;left:240px;">√</div> -->
21
+            <!-- <div>{{ list.pay_way }}</div> -->
22
+            <!-- <div style="position: absolute;top:70px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
23
+            <div style="position: absolute;top:70px;left:560px;">{{ paramsObj.setl_time.split(' ')[0] }}</div> -->
24
+        </div>
25
+        <!-- <div style="display:flex;justify-content: space-between;">
26
+
27
+            <div style="position: absolute;top:110px;left:260px;">{{ totalPrice - list.psn_cash_money }}</div>
28
+            <div style="position: absolute;top:110px;left:440px;">{{ list.psn_cash_money }}</div>
29
+            <div style="position: absolute;top:110px;left:580px;">门慢结算</div>
30
+        </div> -->
31
+        <div style="display:flex;justify-content: space-between;">
32
+            <div style="position: absolute;top:160px;left:40px">西药</div>
33
+            <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
34
+            <div style="position: absolute;top:160px;left:180px">检查费</div>
35
+            <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
36
+            <div style="position: absolute;top:160px;left:340px">治疗费</div>
37
+            <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>
38
+            <div style="position: absolute;top:160px;left:500px">床位费</div>
39
+            <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>
40
+        </div>
41
+        <div style="display:flex;justify-content: space-between;">
42
+            <div style="position: absolute;top:190px;left:40px">中成药</div>
43
+            <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
44
+            <div style="position: absolute;top:190px;left:180px">化验费</div>
45
+            <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>
46
+            <div style="position: absolute;top:190px;left:340px">手术费</div>
47
+            <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>
48
+            <div style="position: absolute;top:190px;left:500px">其他费</div>
49
+            <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>
50
+        </div>
51
+        <div style="display:flex;justify-content: space-between;">
52
+            <div style="position: absolute;top:210px;left:40px"></div>
53
+            <div style="position: absolute;top:210px;left:110px"></div>
54
+            <div style="position: absolute;top:210px;left:180px"></div>
55
+            <div style="position: absolute;top:210px;left:260px"></div>
56
+            <div style="position: absolute;top:210px;left:340px">材料费</div>
57
+            <div style="position: absolute;top:210px;left:420px">{{ list.materialCostTotal }}</div>
58
+            <div style="position: absolute;top:210px;left:500px"></div>
59
+            <div style="position: absolute;top:210px;left:580px"></div>
60
+        </div>
61
+        <div>
62
+            <span style="position: absolute;top:240px;left:180px">{{ totalPrice.toFixed(2) }}</span>
63
+            <span>
64
+            <span  style="position: absolute;top:260px;left:180px">
65
+                <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
66
+                    {{ zhongwen.substring(0,1) }}
67
+                </span>
68
+                <span v-else>零</span>
69
+            </span>
70
+            <span  style="position: absolute;top:260px;left:220px">
71
+                <span v-if="zhongwen.indexOf('万') > -1">
72
+                    {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
73
+                </span>
74
+                <span v-else>零</span>
75
+            </span>
76
+            <span  style="position: absolute;top:260px;left:260px">
77
+                <span v-if="zhongwen.indexOf('仟') > -1">
78
+                    {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
79
+                </span>
80
+                <span v-else>零</span>
81
+            </span>
82
+            <span  style="position: absolute;top:260px;left:300px">
83
+                <span v-if="zhongwen.indexOf('佰') > -1">
84
+                    {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
85
+                </span>
86
+                <span v-else>零</span>
87
+            </span>
88
+            <span style="position: absolute;top:260px;left:340px">
89
+                <span v-if="zhongwen.indexOf('拾') > -1">
90
+                    {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
91
+                </span>
92
+                <span v-else>零</span>
93
+            </span>
94
+            <span  style="position: absolute;top:260px;left:380px">
95
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
96
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
97
+                </span>
98
+                <span v-else>零</span>
99
+            </span>
100
+            <span  style="position: absolute;top:260px;left:420px">
101
+                <span v-if="zhongwen.indexOf('角') > -1">
102
+                    {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
103
+                </span>
104
+                <span v-else>零</span>
105
+            </span>
106
+            <span  style="position: absolute;top:260px;left:460px">
107
+                <span v-if="zhongwen.indexOf('分') > -1">
108
+                    {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
109
+                </span>
110
+                <span v-else>零</span>
111
+            </span>
112
+            </span>
113
+        </div>
114
+        <!-- <div style="position: absolute;top:300px;left:460px">现金:{{ list.psn_cash_money }}</div> -->
115
+        <!-- <div>
116
+            <div style="position: absolute;top:340px;left:120px">{{ org_name }}</div>
117
+            <div v-if="org_id == 9990" style="position: absolute;top:340px;left:300px">钱玉玲</div>
118
+            <div v-if="org_id == 9990" style="position: absolute;top:340px;left:420px">陈国杰</div>
119
+        </div> -->
120
+
121
+           <div style="position: absolute;left:60px;top:300px;">
122
+                <span style="padding-right:20px;">{{ printDate.slice(0,4) }}</span>
123
+                <span style="padding-right:20px;">{{ printDate.slice(5,7) }}</span>
124
+                <span>{{ printDate.slice(8,11) }}</span>
125
+            </div>
126
+            <div style="position: absolute;top:300px;left:300px">{{'罗佳菊'}}</div>
127
+    </div>
128
+</template>
129
+
130
+
131
+<script>
132
+import { getInvoice } from '@/api/project/project'
133
+export default {
134
+    props:{
135
+        paramsObj:Object
136
+    },
137
+    data(){
138
+        return{
139
+            list:{},
140
+            printDate:'',
141
+            zhongwen:'',
142
+            totalPrice:0.0,
143
+            org_id:'',
144
+            org_name:''
145
+        }
146
+    },
147
+    created(){
148
+        console.log('paramsObj',this.paramsObj)
149
+        let params = {
150
+            order_id: this.paramsObj.order_id,
151
+            patient_id: this.paramsObj.patient_id,
152
+            number: this.paramsObj.number,
153
+        }
154
+        this.getInvoice(params)
155
+        // var data = new Date();
156
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
157
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
158
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
159
+        // this.smalltoBIG(982732.21)
160
+        this.org_id = this.$store.getters.xt_user.org_id
161
+        this.org_name = this.$store.getters.xt_user.org.org_name
162
+    },
163
+    methods:{
164
+        getInvoice(params){
165
+            getInvoice(params).then((res) => {
166
+                console.log('res',res)
167
+                this.list = res.data.data
168
+                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
169
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
170
+                this.smalltoBIG(this.totalPrice)
171
+                var data = new Date(res.data.data.date * 1000);
172
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
173
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
174
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
175
+            })
176
+        },
177
+        smalltoBIG(n) {
178
+            // let fraction = ['角', '分'];
179
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
180
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
181
+            // let head = price < 0 ? '欠' : '';
182
+            // price = Math.abs(price);
183
+            // let upper = '';
184
+            // for (let i = 0; i < fraction.length; i++) {
185
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
186
+            // }
187
+            // upper = upper || '整';
188
+            // price = Math.floor(price);
189
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
190
+            // let p = '';
191
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
192
+            //     p = digit[price % 10] + unit[1][j] + p;
193
+            //     price = Math.floor(price / 10);
194
+            // }
195
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
196
+            // }
197
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
198
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
199
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
200
+                return "数据非法";  //判断数据是否大于0
201
+            }
202
+
203
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
204
+            n += "00";
205
+
206
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
207
+
208
+            if (indexpoint >= 0){
209
+
210
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
211
+            }
212
+
213
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
214
+            for (var i=0; i < n.length; i++){
215
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
216
+            }
217
+
218
+            this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
219
+            console.log(this.zhongwen)
220
+        },
221
+
222
+    },
223
+    watch:{
224
+        paramsObj:{//深度监听,可监听到对象、数组的变化
225
+            handler(val, oldVal){
226
+                let params = {
227
+                    order_id: val.order_id,
228
+                    patient_id: val.patient_id,
229
+                    number: val.number,
230
+                }
231
+                this.getInvoice(params)
232
+
233
+            },
234
+            deep:true
235
+        }
236
+    }
237
+}
238
+</script>

+ 2 - 2
src/xt_pages/outpatientCharges/listPrint.vue 查看文件

@@ -16,9 +16,9 @@
16 16
     <div class='dialysisPage' style="padding-top:40px;">
17 17
       <printOne v-if="org_id != 10106&&org_id != 10215&&org_id != 10265 && org_id != 0 && org_id!=9675" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18 18
       <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
19
-      <print-three v-if="org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
19
+      <print-three v-if="  org_id == 0 || org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
20 20
       <list-print-two v-if="org_id == 10215 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
21
-      <print-two10265  v-if="org_id == 10265 || org_id == 0 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
21
+      <print-two10265  v-if="org_id == 10265  " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
22 22
     </div>
23 23
   </div>
24 24
 </template>

+ 7 - 3
src/xt_pages/outpatientCharges/listTemplate/printThree.vue 查看文件

@@ -63,11 +63,13 @@
63 63
             <div style="width:20%;text-align:center;">医保编码</div>
64 64
             <div style="width:20%;text-align:center;">项目名称</div>
65 65
             <div style="width:10%;text-align:center;">单价</div>
66
-            <div style="width:10%;text-align:center;">数量</div>
66
+            <div style="width:8%;text-align:center;">数量</div>
67 67
             <div style="width:10%;text-align:center;">金额</div>
68 68
             <div style="width:10%;text-align:center;">先行自付金额</div>
69
-            <div style="width:10%;text-align:center;">自费</div>
70
-            <div style="width:10%;text-align:center;">自费比例</div>
69
+            <div style="width:5%;text-align:center;">全自费</div>
70
+            <div style="width:7%;text-align:center;">自费比例</div>
71
+            <div style="width:10%;text-align:center;">超限价自费金额</div>
72
+
71 73
         </div>
72 74
         <div v-for="(newItem,index) in Object.keys(obj)" :key="index">
73 75
             <div v-if="Object.values(obj)[index].length > 0"  style="border-bottom:1px solid #000;padding:10px 0;">
@@ -94,6 +96,8 @@
94 96
                     <div style="width:10%;text-align:center;">{{item.preselfpay_amt}}</div>
95 97
                     <div style="width:10%;text-align:center;">{{item.fulamt_ownpay_amt}}</div>
96 98
                     <div style="width:10%;text-align:center;">{{item.selfpay_prop}}</div>
99
+                    <div style="width:10%;text-align:center;">{{item.overlmt_amt}}</div>
100
+
97 101
                 </div>
98 102
             </div>
99 103
         </div>

+ 10 - 6
src/xt_pages/outpatientCharges/listTemplate/printTwo.vue 查看文件

@@ -63,11 +63,13 @@
63 63
       <div style="width:20%;text-align:center;">医保编码</div>
64 64
       <div style="width:20%;text-align:center;">项目名称</div>
65 65
       <div style="width:10%;text-align:center;">单价</div>
66
-      <div style="width:10%;text-align:center;">数量</div>
66
+      <div style="width:8%;text-align:center;">数量</div>
67 67
       <div style="width:10%;text-align:center;">金额</div>
68 68
       <div style="width:10%;text-align:center;">先行自付金额</div>
69
-      <div style="width:10%;text-align:center;">自费</div>
70
-      <div style="width:10%;text-align:center;">自费比例</div>
69
+      <div style="width:5%;text-align:center;">全自费</div>
70
+      <div style="width:7%;text-align:center;">自费比例</div>
71
+      <div style="width:10%;text-align:center;">超限价自费金额</div>
72
+
71 73
     </div>
72 74
     <div v-for="(newItem,index) in Object.keys(obj)" :key="index">
73 75
         <div v-if="Object.values(obj)[index].length > 0"  style="border-bottom:1px solid #000;padding:10px 0;">
@@ -89,11 +91,13 @@
89 91
                 <div style="width:20%;text-align:center;" v-if="item.project_id > 0">{{item.project.type == 2?item.project.project.project_name:item.project.good_info.good_name}}</div>
90 92
 
91 93
                 <div style="width:10%;text-align:center;">{{item.pric}}</div>
92
-                <div style="width:10%;text-align:center;">{{item.cnt}}</div>
94
+                <div style="width:8%;text-align:center;">{{item.cnt}}</div>
93 95
                 <div style="width:10%;text-align:center;">{{item.det_item_fee_sumamt}}</div>
94 96
                 <div style="width:10%;text-align:center;">{{item.preselfpay_amt}}</div>
95
-                <div style="width:10%;text-align:center;">{{item.fulamt_ownpay_amt}}</div>
96
-                <div style="width:10%;text-align:center;">{{item.selfpay_prop}}</div>
97
+                <div style="width:5%;text-align:center;">{{item.fulamt_ownpay_amt}}</div>
98
+                <div style="width:7%;text-align:center;">{{item.selfpay_prop}}</div>
99
+              <div style="width:10%;text-align:center;">{{item.overlmt_amt}}</div>
100
+
97 101
             </div>
98 102
         </div>
99 103
     </div>

+ 4 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -84,25 +84,14 @@
84 84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
85 85
 
86 86
           <div v-if="org_id == 10340 || org_id == 0">
87
-<!--                        <el-button size="small"-->
88
-<!--                                   @click="openZb(1)"-->
89
-<!--                                   type="primary">登记-->
90
-<!--                        </el-button>-->
91
-
92 87
                         <el-button  size="small"
93 88
                                    @click="openZb(4)"
94
-                                   type="primary">记账
89
+                                   v-if=" this.order.id == 0"
90
+                          type="primary">记账
95 91
                         </el-button>
96
-
97
-<!--                        <el-button   size="small"-->
98
-<!--                                   @click="openZb(3)"-->
99
-<!--                                   type="primary">撤销记账-->
100
-<!--                        </el-button>-->
101
-
102 92
           </div>
103 93
 
104
-
105
-          <div  v-if="org_id != 10340 || org_id != 0">
94
+          <div  v-if="org_id != 10340 && org_id != 0">
106 95
 <!--            <el-button size="small"-->
107 96
 <!--                       @click="openZb(1)"-->
108 97
 <!--                       type="primary">登记-->
@@ -2894,7 +2883,7 @@ export default {
2894 2883
             obj['settle_accounts_type'] = 2
2895 2884
           }
2896 2885
           var that = this
2897
-          axios.get(process.env.BASE_API  + '/coordinate/settleAccount', {
2886
+          axios.get("http://127.0.0.1:9532"  + '/coordinate/settleAccount', {
2898 2887
             params: obj
2899 2888
           })
2900 2889
               .then(function(response) {

+ 370 - 194
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

@@ -47,7 +47,21 @@
47 47
           :paramsObj="paramsObj"
48 48
           :balanceAccounts="balanceAccounts"
49 49
       ></printFive>
50
-      <printOne :info="info" v-else></printOne>
50
+
51
+     <printSeven
52
+         v-if="org_id == 10387"
53
+         :info="info"
54
+         :paramsObj="paramsObj"
55
+         :balanceAccounts="balanceAccounts"
56
+     >
57
+     </printSeven>
58
+
59
+      <printOne :info="info" v-if="org_id != 9990 &&
60
+          org_id != 10138 &&
61
+          org_id != 9504 &&
62
+          org_id != 10028 &&
63
+          org_id != 4 &&
64
+          org_id != 10278 && org_id != 10191 && org_id != 10387"></printOne>
51 65
       <!-- 测试医保环境下表格样式放开以下这条 -->
52 66
       <!-- <testVue :info="info" v-else></testVue> -->
53 67
     </div>
@@ -57,6 +71,7 @@
57 71
 <script>
58 72
 import {uParseTime} from "@/utils/tools";
59 73
 import axios from "axios";
74
+import print from "print-js";
60 75
 
61 76
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
62 77
 import printOne from "./statementTemplate/printOne";
@@ -69,10 +84,12 @@ import printFive from "./statementTemplate/printFive";
69 84
 import testVue from "./statementTemplate/test";
70 85
 import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
71 86
 import {getPrivateExpenses, getPrivateExpensesOrder} from "@/api/his/his";
87
+import printSeven from "./statementTemplate/printSeven";
72 88
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
73 89
 export default {
74 90
   name: "dialysisPrintOrder",
75 91
   components: {
92
+    printSeven,
76 93
     BreadCrumb,
77 94
     printOne,
78 95
     privateChargePrint,
@@ -656,7 +673,7 @@ export default {
656 673
 
657 674
             }
658 675
           });
659
-        } else if (this.org_id == 10191 || this.org_id == 0) {
676
+        } else if (this.org_id == 0) {
660 677
 
661 678
           getPrivateExpensesOrder(params).then((response) => {
662 679
             if (response.data.state == 0) {
@@ -782,16 +799,22 @@ export default {
782 799
                 }
783 800
 
784 801
               }
802
+              console.log(list)
785 803
               let len = list.length / 2
786 804
               let L_list = []
787 805
               let R_list = []
788
-
806
+              len = Math.trunc(len)
789 807
               for(let i = 0; i < len; i++){
790 808
                 L_list.push(list[i])
791 809
               }
810
+              console.log(len)
792 811
               for(let i = len; i < list.length; i++){
812
+                console.log(list[i])
793 813
                 R_list.push(list[i])
794 814
               }
815
+              console.log(L_list)
816
+              console.log(R_list)
817
+
795 818
               that.info["L_list"] = L_list
796 819
               that.info["R_list"] = R_list
797 820
 
@@ -805,216 +828,369 @@ export default {
805 828
         }
806 829
 
807 830
       } else {
808
-        var that = this;
809
-        axios
810
-            .get("http://127.0.0.1:9532/api/settle/query", {
811
-              params: {
812
-                order_id: order_id,
813
-                admin_user_id: this.$store.getters.xt_user.user.id,
814
-              },
815
-            })
816
-            .then(function (response) {
817
-              if (response.data.state == 0) {
818
-                this.$message.error(response.data.msg);
819
-                return false;
820
-              } else {
821
-                console.log(response.data.data.info);
822
-                that.info = response.data.data.info;
823
-                that.p_admin = response.data.data.printor_admin;
824
-                that.charge_admin = response.data.data.charge_admin;
825
-
826
-                that.info["p_admin"] = that.p_admin;
827
-                that.info["charge_admin"] = that.charge_admin;
828
-
829
-                that.info["order_number"] = response.data.data.order_number;
830
-                that.info["patient"] = response.data.data.patient;
831
-                that.info["date"] = response.data.data.date;
832
-                that.info["number"] = response.data.data.number;
833
-                that.info["order_infos"] = response.data.data.order_infos;
834
-                that.info["diagnosis"] = response.data.data.diagnosis;
835
-                that.info["org_code"] = response.data.data.org_code;
836
-                that.info["org_name"] = response.data.data.org_name;
837
-                that.info["doctor_code"] = response.data.data.doctor_code;
838
-                that.info["department"] = response.data.data.department;
839
-                that.info["health_card_no"] = response.data.data.health_card_no;
840
-
841
-                that.info["bed_cost_total"] = response.data.data.bedCostTotal;
842
-                that.info["bed_cost_self_total"] =
843
-                    response.data.data.bedCostSelfTotal;
844
-                that.info["bed_cost_part_self_total"] =
845
-                    response.data.data.bedCostPartSelfTotal;
846
-
847
-                that.info["operation_cost_total"] =
848
-                    response.data.data.operationCostTotal;
849
-                that.info["operation_cost_self_total"] =
850
-                    response.data.data.operationCostSelfTotal;
851
-                that.info["operation_cost_part_self_total"] =
852
-                    response.data.data.operationCostPartSelfTotal;
853
-
854
-                that.info["other_cost_total"] = response.data.data.otherCostTotal;
855
-                that.info["other_cost_self_total"] =
856
-                    response.data.data.otherCostSelfTotal;
857
-                that.info["other_cost_part_self_total"] =
858
-                    response.data.data.otherCostPartSelfTotal;
859
-
860
-                that.info["material_cost_total"] =
861
-                    response.data.data.materialCostTotal;
862
-                that.info["material_cost_self_total"] =
863
-                    response.data.data.materialCostSelfTotal;
864
-                that.info["material_cost_part_self_total"] =
865
-                    response.data.data.materialCostPartSelfTotal;
866
-
867
-                that.info["western_medicine_cost_total"] =
868
-                    response.data.data.westernMedicineCostTotal;
869
-                that.info["western_medicine_cost_self_total"] =
870
-                    response.data.data.westernMedicineCostSelfTotal;
871
-                that.info["western_medicine_cost_part_self_total"] =
872
-                    response.data.data.westernMedicineCostPartSelfTotal;
873
-
874
-                that.info["chinese_traditional_medicine_cost_total"] =
875
-                    response.data.data.chineseTraditionalMedicineCostTotal;
876
-                that.info["chinese_traditional_medicine_cost_self_total"] =
877
-                    response.data.data.chineseTraditionalMedicineCostSelfTotal;
878
-                that.info["chinese_traditional_medicine_cost_part_self_total"] =
879
-                    response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
880
-
881
-                that.info["check_cost_total"] = response.data.data.checkCostTotal;
882
-                that.info["check_cost_self_total"] =
883
-                    response.data.data.checkCostSelfTotal;
884
-                that.info["check_cost_part_self_total"] =
885
-                    response.data.data.checkCostPartSelfTotal;
886
-
887
-                that.info["laboratory_cost_total"] =
888
-                    response.data.data.laboratoryCostTotal;
889
-                that.info["laboratory_cost_self_total"] =
890
-                    response.data.data.laboratoryCostSelfTotal;
891
-                that.info["laboratory_cost_part_self_total"] =
892
-                    response.data.data.laboratoryCostPartSelfTotal;
893
-
894
-                that.info["treat_cost_total"] = response.data.data.treatCostTotal;
895
-                that.info["treat_cost_self_total"] =
896
-                    response.data.data.treatCostSelfTotal;
897
-                that.info["treat_cost_part_self_total"] =
898
-                    response.data.data.treatCostPartSelfTotal;
899
-                that.info["date"] = response.data.data.date;
900
-                that.info["number"] = response.data.data.number;
901
-                that.info["order_infos"] = response.data.data.order_infos;
902
-                that.info["diagnosis"] = response.data.data.diagnosis;
831
+        if (this.org_id == 10191) {
832
+          let params = {
833
+            his_patient_id: obj.his_patient_id,
834
+            id: obj.order_id,
835
+            order_id: obj.order_id,
836
+            admin_user_id: this.$store.getters.xt_user.user.id,
837
+          };
838
+          getPrivateExpensesOrder(params).then((response) => {
839
+            if (response.data.state == 0) {
840
+              // this.$message.error(response.data.msg)
903 841
 
904
-                let obj = {
905
-                  type: 1,
906
-                  details: [],
907
-                  total: 0,
908
-                };
909
-                let obj2 = {
910
-                  type: 2,
911
-                  details: [],
912
-                  total: 0,
913
-                };
914
-                let obj3 = {
915
-                  type: 3,
916
-                  details: [],
917
-                  total: 0,
918
-                };
919
-
920
-                let obj4 = {
921
-                  type: 4,
922
-                  details: [],
923
-                  total: 0,
924
-                };
925
-                let num = 0;
926
-                that.info.order_infos.map((item) => {
927
-                  if (item.advice_id > 0) {
928
-                    obj.details.push(item);
929
-                    obj.total += item.pric * item.advice.prescribing_number;
930
-                    num++;
931
-                  } else {
932
-                    if (item.project.type == 2) {
933
-                      obj2.details.push(item);
934
-                      obj2.total += item.pric * item.project.count;
935
-                      num++;
936
-                    } else {
937
-                      obj3.details.push(item);
938
-                      obj3.total += item.pric * item.project.count;
939
-                      num++;
940
-                    }
941
-                  }
942
-                });
842
+              return false;
843
+            } else {
844
+              var that = this;
845
+              that.info = response.data.data.info;
846
+              that.p_admin = response.data.data.printor_admin;
847
+              that.charge_admin = response.data.data.charge_admin;
848
+
849
+              that.info["p_admin"] = that.p_admin;
850
+              that.info["charge_admin"] = that.charge_admin;
851
+              that.info["order_number"] = response.data.data.order_number;
852
+              that.info["patient"] = response.data.data.patient;
853
+              that.info["date"] = response.data.data.date;
854
+              that.info["number"] = response.data.data.number;
855
+              that.info["order_infos"] = response.data.data.order_infos;
856
+              that.info["diagnosis"] = response.data.data.diagnosis;
857
+              that.info["fixmedins_name"] = response.data.data.org_name;
858
+              that.info["fixmedins_code"] = response.data.data.org_code;
859
+              // that.info["doctor_code"] = response.data.data.doctor_code;
860
+              // that.info["department"] = response.data.data.department;
861
+              // that.info["health_card_no"] = response.data.data.health_card_no;
862
+
863
+              that.info["bed_cost_total"] = response.data.data.bedCostTotal;
864
+              that.info["bed_cost_self_total"] =
865
+                  response.data.data.bedCostSelfTotal;
866
+              that.info["bed_cost_part_self_total"] =
867
+                  response.data.data.bedCostPartSelfTotal;
868
+
869
+              that.info["operation_cost_total"] =
870
+                  response.data.data.operationCostTotal;
871
+              that.info["operation_cost_self_total"] =
872
+                  response.data.data.operationCostSelfTotal;
873
+              that.info["operation_cost_part_self_total"] =
874
+                  response.data.data.operationCostPartSelfTotal;
875
+
876
+              that.info["other_cost_total"] = response.data.data.otherCostTotal;
877
+              that.info["other_cost_self_total"] =
878
+                  response.data.data.otherCostSelfTotal;
879
+              that.info["other_cost_part_self_total"] =
880
+                  response.data.data.otherCostPartSelfTotal;
881
+
882
+              that.info["material_cost_total"] =
883
+                  response.data.data.materialCostTotal;
884
+              that.info["material_cost_self_total"] =
885
+                  response.data.data.materialCostSelfTotal;
886
+              that.info["material_cost_part_self_total"] =
887
+                  response.data.data.materialCostPartSelfTotal;
888
+
889
+              that.info["western_medicine_cost_total"] =
890
+                  response.data.data.westernMedicineCostTotal;
891
+              that.info["western_medicine_cost_self_total"] =
892
+                  response.data.data.westernMedicineCostSelfTotal;
893
+              that.info["western_medicine_cost_part_self_total"] =
894
+                  response.data.data.westernMedicineCostPartSelfTotal;
895
+
896
+              that.info["chinese_traditional_medicine_cost_total"] =
897
+                  response.data.data.chineseTraditionalMedicineCostTotal;
898
+              that.info["chinese_traditional_medicine_cost_self_total"] =
899
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
900
+              that.info["chinese_traditional_medicine_cost_part_self_total"] =
901
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
902
+
903
+              that.info["check_cost_total"] = response.data.data.checkCostTotal;
904
+              that.info["check_cost_self_total"] =
905
+                  response.data.data.checkCostSelfTotal;
906
+              that.info["check_cost_part_self_total"] =
907
+                  response.data.data.checkCostPartSelfTotal;
908
+
909
+              that.info["laboratory_cost_total"] =
910
+                  response.data.data.laboratoryCostTotal;
911
+              that.info["laboratory_cost_self_total"] =
912
+                  response.data.data.laboratoryCostSelfTotal;
913
+              that.info["laboratory_cost_part_self_total"] =
914
+                  response.data.data.laboratoryCostPartSelfTotal;
915
+
916
+              that.info["treat_cost_total"] = response.data.data.treatCostTotal;
917
+              that.info["treat_cost_self_total"] =
918
+                  response.data.data.treatCostSelfTotal;
919
+              that.info["treat_cost_part_self_total"] =
920
+                  response.data.data.treatCostPartSelfTotal;
921
+              that.info["date"] = response.data.data.date;
922
+              // that.info["number"] = response.data.data.number;
923
+              that.info["order_infos"] = response.data.data.order_infos;
924
+              that.info["diagnosis"] = response.data.data.diagnosis;
943 925
 
944
-                // this.info.order_infos.map(item => {
945
-                //   obj4.total = item.Total
946
-                //   obj4.details.push(item)
947
-                //   num++
948
-                //
949
-                // })
926
+              let list = []
927
+              for (let i = 0; i < response.data.data.order_infos.length; i++) {
928
+                let order = response.data.data.order_infos[i]
929
+                let obj = {
930
+                  name: "",
931
+                  spec: "",
932
+                  cnt: "",
933
+                  det_item_fee_sumamt: "",
934
+                }
950 935
 
951
-                that.info.new_detail_list = [];
952
-                that.info.new_detail_list.push(obj);
953
-                that.info.new_detail_list.push(obj2);
954
-                that.info.new_detail_list.push(obj3);
955
-                // that.info.new_detail_list.push(obj4)
936
+                if (order.advice_id > 0 && order.project_id == 0) {
937
+                  obj.name = order.advice.advice_name
938
+                  let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
939
+                  obj.spec = spec
940
+                  obj.cnt = order.cnt
941
+                  obj.det_item_fee_sumamt = order.det_item_fee_sumamt
942
+                  list.push(obj)
956 943
 
957
-                that.num = num;
944
+                } else if (order.advice_id == 0 && order.project_id > 0) {
945
+                  if (order.project.type == 2) {
946
+                    obj.name = order.project.project.project_name
947
+                    obj.spec = ""
948
+                    obj.cnt = order.cnt
949
+                    obj.det_item_fee_sumamt = order.det_item_fee_sumamt
958 950
 
959
-                if (that.paramsObj.settle_type != 1) {
960
-                  that.info.begndate = that.getTimes(that.paramsObj.start_time);
961
-                  that.info.enddate = that.getTimes(that.paramsObj.end_time);
951
+                  } else {
952
+                    obj.name = order.project.good_info.good_name
953
+                    obj.spec = order.project.good_info.specification_name
954
+                    obj.cnt = order.cnt
955
+                    obj.det_item_fee_sumamt = order.det_item_fee_sumamt
956
+                  }
957
+                  list.push(obj)
962 958
                 }
963 959
 
960
+              }
961
+              console.log(list)
962
+              let len = list.length / 2
963
+              let L_list = []
964
+              let R_list = []
965
+              len = Math.trunc(len)
966
+              for (let i = 0; i < len; i++) {
967
+                L_list.push(list[i])
968
+              }
969
+              console.log(len)
970
+              for (let i = len; i < list.length; i++) {
971
+                console.log(list[i])
972
+                R_list.push(list[i])
973
+              }
974
+              console.log(L_list)
975
+              console.log(R_list)
976
+
977
+              that.info["L_list"] = L_list
978
+              that.info["R_list"] = R_list
964 979
 
980
+            }
981
+          });
982
+        } else {
983
+          var that = this;
984
+          axios
985
+              .get("http://127.0.0.1:9532/api/settle/query", {
986
+                params: {
987
+                  order_id: order_id,
988
+                  admin_user_id: this.$store.getters.xt_user.user.id,
989
+                },
990
+              })
991
+              .then(function (response) {
992
+                if (response.data.state == 0) {
993
+                  this.$message.error(response.data.msg);
994
+                  return false;
995
+                } else {
996
+                  console.log(response.data.data.info);
997
+                  that.info = response.data.data.info;
998
+                  that.p_admin = response.data.data.printor_admin;
999
+                  that.charge_admin = response.data.data.charge_admin;
1000
+
1001
+                  that.info["p_admin"] = that.p_admin;
1002
+                  that.info["charge_admin"] = that.charge_admin;
1003
+
1004
+                  that.info["order_number"] = response.data.data.order_number;
1005
+                  that.info["patient"] = response.data.data.patient;
1006
+                  that.info["date"] = response.data.data.date;
1007
+                  that.info["number"] = response.data.data.number;
1008
+                  that.info["order_infos"] = response.data.data.order_infos;
1009
+                  that.info["diagnosis"] = response.data.data.diagnosis;
1010
+                  that.info["org_code"] = response.data.data.org_code;
1011
+                  that.info["org_name"] = response.data.data.org_name;
1012
+                  that.info["doctor_code"] = response.data.data.doctor_code;
1013
+                  that.info["department"] = response.data.data.department;
1014
+                  that.info["health_card_no"] = response.data.data.health_card_no;
1015
+
1016
+                  that.info["bed_cost_total"] = response.data.data.bedCostTotal;
1017
+                  that.info["bed_cost_self_total"] =
1018
+                      response.data.data.bedCostSelfTotal;
1019
+                  that.info["bed_cost_part_self_total"] =
1020
+                      response.data.data.bedCostPartSelfTotal;
1021
+
1022
+                  that.info["operation_cost_total"] =
1023
+                      response.data.data.operationCostTotal;
1024
+                  that.info["operation_cost_self_total"] =
1025
+                      response.data.data.operationCostSelfTotal;
1026
+                  that.info["operation_cost_part_self_total"] =
1027
+                      response.data.data.operationCostPartSelfTotal;
1028
+
1029
+                  that.info["other_cost_total"] = response.data.data.otherCostTotal;
1030
+                  that.info["other_cost_self_total"] =
1031
+                      response.data.data.otherCostSelfTotal;
1032
+                  that.info["other_cost_part_self_total"] =
1033
+                      response.data.data.otherCostPartSelfTotal;
1034
+
1035
+                  that.info["material_cost_total"] =
1036
+                      response.data.data.materialCostTotal;
1037
+                  that.info["material_cost_self_total"] =
1038
+                      response.data.data.materialCostSelfTotal;
1039
+                  that.info["material_cost_part_self_total"] =
1040
+                      response.data.data.materialCostPartSelfTotal;
1041
+
1042
+                  that.info["western_medicine_cost_total"] =
1043
+                      response.data.data.westernMedicineCostTotal;
1044
+                  that.info["western_medicine_cost_self_total"] =
1045
+                      response.data.data.westernMedicineCostSelfTotal;
1046
+                  that.info["western_medicine_cost_part_self_total"] =
1047
+                      response.data.data.westernMedicineCostPartSelfTotal;
1048
+
1049
+                  that.info["chinese_traditional_medicine_cost_total"] =
1050
+                      response.data.data.chineseTraditionalMedicineCostTotal;
1051
+                  that.info["chinese_traditional_medicine_cost_self_total"] =
1052
+                      response.data.data.chineseTraditionalMedicineCostSelfTotal;
1053
+                  that.info["chinese_traditional_medicine_cost_part_self_total"] =
1054
+                      response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
1055
+
1056
+                  that.info["check_cost_total"] = response.data.data.checkCostTotal;
1057
+                  that.info["check_cost_self_total"] =
1058
+                      response.data.data.checkCostSelfTotal;
1059
+                  that.info["check_cost_part_self_total"] =
1060
+                      response.data.data.checkCostPartSelfTotal;
1061
+
1062
+                  that.info["laboratory_cost_total"] =
1063
+                      response.data.data.laboratoryCostTotal;
1064
+                  that.info["laboratory_cost_self_total"] =
1065
+                      response.data.data.laboratoryCostSelfTotal;
1066
+                  that.info["laboratory_cost_part_self_total"] =
1067
+                      response.data.data.laboratoryCostPartSelfTotal;
1068
+
1069
+                  that.info["treat_cost_total"] = response.data.data.treatCostTotal;
1070
+                  that.info["treat_cost_self_total"] =
1071
+                      response.data.data.treatCostSelfTotal;
1072
+                  that.info["treat_cost_part_self_total"] =
1073
+                      response.data.data.treatCostPartSelfTotal;
1074
+                  that.info["date"] = response.data.data.date;
1075
+                  that.info["number"] = response.data.data.number;
1076
+                  that.info["order_infos"] = response.data.data.order_infos;
1077
+                  that.info["diagnosis"] = response.data.data.diagnosis;
965 1078
 
966
-                let list = []
967
-                for (let i = 0; i < response.data.data.order_infos.length; i++) {
968
-                  let order = response.data.data.order_infos[i]
969 1079
                   let obj = {
970
-                    name: "",
971
-                    spec: "",
972
-                    cnt: "",
973
-                    det_item_fee_sumamt: "",
974
-                  }
1080
+                    type: 1,
1081
+                    details: [],
1082
+                    total: 0,
1083
+                  };
1084
+                  let obj2 = {
1085
+                    type: 2,
1086
+                    details: [],
1087
+                    total: 0,
1088
+                  };
1089
+                  let obj3 = {
1090
+                    type: 3,
1091
+                    details: [],
1092
+                    total: 0,
1093
+                  };
975 1094
 
976
-                  if (order.advice_id > 0 && order.project_id == 0) {
977
-                    obj.name = order.advice.advice_name
978
-                    let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
979
-                    obj.spec = spec
980
-                    obj.cnt = order.cnt
981
-                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
982
-                    list.push(obj)
1095
+                  let obj4 = {
1096
+                    type: 4,
1097
+                    details: [],
1098
+                    total: 0,
1099
+                  };
1100
+                  let num = 0;
1101
+                  that.info.order_infos.map((item) => {
1102
+                    if (item.advice_id > 0) {
1103
+                      obj.details.push(item);
1104
+                      obj.total += item.pric * item.advice.prescribing_number;
1105
+                      num++;
1106
+                    } else {
1107
+                      if (item.project.type == 2) {
1108
+                        obj2.details.push(item);
1109
+                        obj2.total += item.pric * item.project.count;
1110
+                        num++;
1111
+                      } else {
1112
+                        obj3.details.push(item);
1113
+                        obj3.total += item.pric * item.project.count;
1114
+                        num++;
1115
+                      }
1116
+                    }
1117
+                  });
1118
+
1119
+                  // this.info.order_infos.map(item => {
1120
+                  //   obj4.total = item.Total
1121
+                  //   obj4.details.push(item)
1122
+                  //   num++
1123
+                  //
1124
+                  // })
1125
+
1126
+                  that.info.new_detail_list = [];
1127
+                  that.info.new_detail_list.push(obj);
1128
+                  that.info.new_detail_list.push(obj2);
1129
+                  that.info.new_detail_list.push(obj3);
1130
+                  // that.info.new_detail_list.push(obj4)
1131
+
1132
+                  that.num = num;
1133
+
1134
+                  if (that.paramsObj.settle_type != 1) {
1135
+                    that.info.begndate = that.getTimes(that.paramsObj.start_time);
1136
+                    that.info.enddate = that.getTimes(that.paramsObj.end_time);
1137
+                  }
983 1138
 
984
-                  }else if (order.advice_id == 0 && order.project_id > 0) {
985
-                    if(order.project.type == 2){
986
-                      obj.name = order.project.project.project_name
987
-                      obj.spec = ""
988
-                      obj.cnt = order.cnt
989
-                      obj.det_item_fee_sumamt =order.det_item_fee_sumamt
1139
+                  let list = []
1140
+                  for (let i = 0; i < response.data.data.order_infos.length; i++) {
1141
+                    let order = response.data.data.order_infos[i]
1142
+                    let obj = {
1143
+                      name: "",
1144
+                      spec: "",
1145
+                      cnt: "",
1146
+                      det_item_fee_sumamt: "",
1147
+                    }
990 1148
 
991
-                    }else{
992
-                      obj.name = order.project.good_info.good_name
993
-                      obj.spec = order.project.good_info.specification_name
1149
+                    if (order.advice_id > 0 && order.project_id == 0) {
1150
+                      obj.name = order.advice.advice_name
1151
+                      let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
1152
+                      obj.spec = spec
994 1153
                       obj.cnt = order.cnt
995
-                      obj.det_item_fee_sumamt =order.det_item_fee_sumamt
1154
+                      obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1155
+                      list.push(obj)
1156
+
1157
+                    } else if (order.advice_id == 0 && order.project_id > 0) {
1158
+                      if (order.project.type == 2) {
1159
+                        obj.name = order.project.project.project_name
1160
+                        obj.spec = ""
1161
+                        obj.cnt = order.cnt
1162
+                        obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1163
+                        list.push(obj)
1164
+
1165
+                      } else {
1166
+                        obj.name = order.project.good_info.good_name
1167
+                        obj.spec = order.project.good_info.specification_name
1168
+                        obj.cnt = order.cnt
1169
+                        obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1170
+                        list.push(obj)
1171
+                      }
996 1172
                     }
997
-                    list.push(obj)
998 1173
                   }
999 1174
 
1000
-                }
1001
-                let len = list.length / 2
1002
-                let L_list = []
1003
-                let R_list = []
1175
+                  let len = list.length / 2
1176
+                  let L_list = []
1177
+                  let R_list = []
1178
+                  len = Math.trunc(len)
1004 1179
 
1005
-                for(let i = 0; i < len; i++){
1006
-                  L_list.push(list[i])
1007
-                }
1008
-                for(let i = len; i < list.length; i++){
1009
-                  R_list.push(list[i])
1010
-                }
1011
-                that.info["L_list"] = L_list
1012
-                that.info["R_list"] = R_list
1180
+                  for (let i = 0; i < len; i++) {
1181
+                    L_list.push(list[i])
1182
+                  }
1183
+                  for (let i = len; i < list.length; i++) {
1184
+                    R_list.push(list[i])
1185
+                  }
1186
+                  that.info["L_list"] = L_list
1187
+                  that.info["R_list"] = R_list
1013 1188
 
1014
-              }
1015
-            })
1016
-            .catch(function (error) {
1017
-            });
1189
+                }
1190
+              })
1191
+              .catch(function (error) {
1192
+              });
1193
+        }
1018 1194
       }
1019 1195
     },
1020 1196
   },

+ 7 - 3
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue 查看文件

@@ -1,9 +1,11 @@
1 1
 <template>
2 2
   <div id="statement-print" class="statement-print">
3 3
     <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217">江苏省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10387">湖南省社会医疗保险医疗费用结算单</div>
5
+
4 6
     <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10191">福建省社会医疗保险医疗费用结算单</div>
5 7
     <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10088">广水源生堂社会医疗保险医疗费用结算单</div>
6
-    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
8
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10387 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
7 9
 
8 10
     <table class="statementTable" border="1">
9 11
       <tr>
@@ -27,8 +29,10 @@
27 29
 
28 30
       </tr>
29 31
       <tr>
30
-        <td width="90">就医登记号</td>
32
+        <td width="70">就医登记号</td>
31 33
         <td colspan="11">{{info.psn_no}}</td>
34
+        <td width="80">门诊号</td>
35
+        <td colspan="3">{{info.number}}</td>
32 36
       </tr>
33 37
       <tr>
34 38
         <td width="80">姓名</td>
@@ -85,7 +89,7 @@
85 89
         <td width="80">身份证号</td>
86 90
         <td colspan="3">{{info.certno}}</td>
87 91
       </tr>
88
-      <tr>
92
+      <tr v-if="this.$store.getters.xt_user.org_id != 10387">
89 93
         <td>住院号</td>
90 94
         <td>{{info.number}}</td>
91 95
         <td>科别</td>

+ 4 - 4
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue 查看文件

@@ -82,9 +82,9 @@
82 82
 
83 83
                             </td>
84 84
                             <td>
85
-                                <span v-if="item.type == 1">{{ subItem.pric }}</span>
86
-                                <span v-if="item.type == 2">{{ subItem.pric }}</span>
87
-                                <span v-if="item.type == 3">{{ subItem.pric }}</span>
85
+                                <span v-if="item.type == 1">{{ subItem.pric.toFixed(2) }}</span>
86
+                                <span v-if="item.type == 2">{{ subItem.pric.toFixed(2) }}</span>
87
+                                <span v-if="item.type == 3">{{ subItem.pric.toFixed(2) }}</span>
88 88
                                 <span v-if="item.type == 4">{{subItem.Total}}</span>
89 89
 
90 90
 
@@ -236,7 +236,7 @@
236 236
                             <td>
237 237
                                 <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
238 238
                                 <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
239
-                                <span v-if="item.type == 3">{{ subItem.Total }}</span>
239
+                                <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
240 240
 <!--                                <span v-if="item.type == 4">{{subItem.Total}}</span>-->
241 241
 
242 242
                             </td>

+ 147 - 66
src/xt_pages/outpatientCharges/summary.vue 查看文件

@@ -108,7 +108,7 @@
108 108
           >报表下载
109 109
           </el-button
110 110
           >
111
-          <el-button v-if="$store.getters.xt_user.org_id == 10106" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
111
+          <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112 112
 
113 113
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
114 114
           <!--          >报表下载2-->
@@ -119,7 +119,7 @@
119 119
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
120 120
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
121 121
           <!--          <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
122
-          <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
122
+                    <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>
123 123
 
124 124
 
125 125
         </div>
@@ -353,7 +353,7 @@ import invoicePrint from "./invoicePrint";
353 353
 import settlementPrint from "./settlementPrint";
354 354
 import {jsGetAge, uParseTime} from "@/utils/tools";
355 355
 
356
-import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo} from "../../api/his/his";
356
+import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders} from "../../api/his/his";
357 357
 
358 358
 import {handleData10106} from "../../api/his/his_export";
359 359
 
@@ -1272,10 +1272,25 @@ export default {
1272 1272
           this.$message.error(response.data.msg);
1273 1273
           return false;
1274 1274
         } else {
1275
-          let list = [];
1275
+          let new_orders = []
1276 1276
           for (let i = 0; i < response.data.data.order.length; i++) {
1277 1277
             let order = response.data.data.order[i];
1278
-            console.log(order)
1278
+            let islvguo = false
1279
+            for (let b = 0; b < order.info.length; b++) {
1280
+              if (order.info[b].project.project.id == 372) {
1281
+                islvguo = true
1282
+              }
1283
+
1284
+            }
1285
+            if(islvguo){
1286
+              new_orders.push(order)
1287
+            }
1288
+          }
1289
+          console.log(new_orders.length)
1290
+
1291
+          let list = [];
1292
+          for (let i = 0; i < new_orders.length; i++) {
1293
+            let order = response.data.data.order[i];
1279 1294
             let obj = {
1280 1295
               md: order.mdtrt_id,
1281 1296
               name: order.patient.name,
@@ -1306,21 +1321,13 @@ export default {
1306 1321
 
1307 1322
             for (let b = 0; b < order.info.length; b++) {
1308 1323
               if (order.info[b].advice_id == 0 && order.info[b].project_id > 0) {
1309
-                console.log("11111")
1310
-
1311 1324
                 if (order.info[b].project.type == 2) {
1312
-                  console.log("22222222")
1313
-
1314 1325
                   if (order.info[b].project.project.id == 254 || order.info[b].project.project.id == 253 || order.info[b].project.project.id == 250 || order.info[b].project.project.id == 249) {
1315 1326
                     obj.good_name = this.GetGoodName(order.info[b].project.project.id)
1316 1327
                   }
1317 1328
                 } else if (order.info[b].project.type == 3) {
1318
-                  console.log("3333333")
1319
-
1320 1329
                   if (order.info[b].project.project.id == 1478 || order.info[b].project.project.id == 1479 || order.info[b].project.project.id == 1482 || order.info[b].project.project.id == 1483 || order.info[b].project.project.id == 2577 || order.info[b].project.project.id == 2578 || order.info[b].project.project.id == 2058 || order.info[b].project.project.id == 2059) {
1321 1330
                     obj.good_name = this.GetGoodName(order.info[b].project.good_info.id)
1322
-                    console.log(obj.good_name)
1323
-
1324 1331
                   }
1325 1332
                 }
1326 1333
               }
@@ -1499,16 +1506,20 @@ export default {
1499 1506
             for (let i = 0; i < med_chrgitm_types.length; i++) {
1500 1507
               let price = 0
1501 1508
               let obj = {
1509
+
1510
+                number:"440722196501072316",
1502 1511
                 name: order.patient.name,
1503
-                idNo: order.patient.id_card_no,
1512
+                idNo: "",
1504 1513
                 med_chrgitm_name:this.getType(med_chrgitm_types[i]),
1505 1514
                 price:"",
1506 1515
                 remark:"",
1507 1516
               }
1508 1517
               if(i == 0){
1509 1518
                 obj.remark = "就诊日期:" + this.getTimes(order.settle_accounts_date) + " 医保报销: "+order.fund_pay_sumamt + " 现金:"+order.psn_cash_pay
1519
+                obj.idNo = order.patient.id_card_no
1510 1520
               }else{
1511 1521
                 obj.remark = ""
1522
+                obj.idNo = ""
1512 1523
               }
1513 1524
               for (let b = 0; b < order.info.length; b++) {
1514 1525
                 if(med_chrgitm_types[i] ==  order.info[b].med_chrgitm_type){
@@ -1519,17 +1530,48 @@ export default {
1519 1530
               obj.price = price
1520 1531
               list.push(obj)
1521 1532
             }
1533
+          }
1534
+          let list_two = []
1535
+          const obj = {}
1536
+          for(let i = 0; i < list.length; i++){
1537
+            console.log(list[i])
1538
+            list_two.push(list[i].name)
1539
+          }
1522 1540
 
1541
+          list_two = list_two.reduce((cur, next) => {
1542
+            obj[next] ? '' : obj[next] = true && cur.push(next)
1543
+            return cur
1544
+          }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1545
+
1546
+          for(let i = 0; i < list_two.length; i++){
1547
+            for(let b = 0; b < list.length; b++){
1548
+              if(list_two[i] == list[b].name){
1549
+                list[b]['index'] = i+1
1550
+              }
1551
+            }
1523 1552
           }
1524 1553
 
1525 1554
           var tarList = []
1526 1555
           for (let i = 0; i < list.length; i++) {
1527 1556
             let obj = {
1528
-              "姓名": list[i].name,
1529
-              "身份证":  list[i].idNo,
1530
-              "收费项目": list[i].med_chrgitm_name,
1531
-              "金额": list[i].price,
1557
+              "订单序号(必填)":list[i].index,
1558
+              "订单号码":"",
1559
+              "购方名称(必填)": list[i].name,
1560
+              "购方纳税人识别号":list[i].idNo,
1561
+              "开户行及账号":"",
1562
+              "地址电话":"",
1563
+              "税收编码(必填)":"3070202000000000000",
1564
+              "商品名称(必填)": list[i].med_chrgitm_name,
1565
+              "规格型号":"",
1566
+              "计量单位":"",
1567
+              "数量":"",
1568
+              "单价":"",
1569
+              "金额(必填)": list[i].price,
1570
+              "税率(必填)":"0%",
1571
+              "优惠政策":"普通零税率",
1572
+              "税额":"0",
1532 1573
               "备注": list[i].remark,
1574
+              "电子邮箱":"",
1533 1575
 
1534 1576
             }
1535 1577
             tarList.push(obj)
@@ -1537,18 +1579,44 @@ export default {
1537 1579
 
1538 1580
           import("@/vendor/Export2Excel").then((excel) => {
1539 1581
             const tHeader = [
1540
-              "姓名",
1541
-              "身份证",
1542
-              "收费项目",
1543
-              "金额",
1544
-              "备注",
1582
+              "订单序号(必填)",
1583
+                "订单号码",
1584
+                "购方名称(必填)",
1585
+                "购方纳税人识别号",
1586
+                "开户行及账号",
1587
+                "地址电话",
1588
+                "税收编码(必填)",
1589
+                "商品名称(必填)",
1590
+                "规格型号",
1591
+                "计量单位",
1592
+                "数量",
1593
+                "单价",
1594
+                "金额(必填)",
1595
+                "税率(必填)",
1596
+                "优惠政策",
1597
+                "税额",
1598
+                "备注",
1599
+                "电子邮箱",
1545 1600
             ];
1546 1601
             const filterVal = [
1547
-              "姓名",
1548
-              "身份证",
1549
-              "收费项目",
1550
-              "金额",
1602
+              "订单序号(必填)",
1603
+              "订单号码",
1604
+              "购方名称(必填)",
1605
+              "购方纳税人识别号",
1606
+              "开户行及账号",
1607
+              "地址电话",
1608
+              "税收编码(必填)",
1609
+              "商品名称(必填)",
1610
+              "规格型号",
1611
+              "计量单位",
1612
+              "数量",
1613
+              "单价",
1614
+              "金额(必填)",
1615
+              "税率(必填)",
1616
+              "优惠政策",
1617
+              "税额",
1551 1618
               "备注",
1619
+              "电子邮箱",
1552 1620
             ];
1553 1621
             const data = this.formatJson(filterVal, tarList);
1554 1622
             excel.export_json_to_excel({
@@ -2032,46 +2100,63 @@ export default {
2032 2100
         } else {
2033 2101
           let list = [];
2034 2102
           for (let i = 0; i < response.data.data.order.length; i++) {
2035
-            var hifmi_pay = 0.0;
2036
-            for (let b = 0; b < order.order_info.length; b++) {
2103
+            let order = response.data.data.order[i]
2104
+            for (let b = 0; b < order.info.length; b++) {
2037 2105
               let item_name = "";
2038 2106
               let item_code = "";
2039 2107
               let price = "";
2040 2108
               let unit = "";
2041 2109
               let spec = "";
2042 2110
               let time = "";
2043
-              let name = "";
2044
-              let selfpay_prop = "";
2111
+              let cnt = "";
2112
+
2045 2113
               if (
2046
-                  order.order_info[b].advice.id == 0 &&
2047
-                  order.order_info[b].project.id > 0
2114
+                  order.info[b].advices.id == 0 &&
2115
+                  order.info[b].project.id > 0
2048 2116
               ) {
2049
-                item_name = order.order_info[b].project.project.project_name;
2050
-                item_code = order.order_info[b].project.project.medical_code;
2051
-                price = order.order_info[b].pric;
2052
-                unit = order.order_info[b].project.project.unit;
2117
+
2118
+                if (order.info[b].project.type == 2){
2119
+                  item_name = order.info[b].project.project.project_name;
2120
+                  item_code = order.info[b].project.project.medical_code;
2121
+                  price = order.info[b].pric;
2122
+                  unit = order.info[b].project.project.unit;
2123
+                  cnt=order.info[b].cnt;
2124
+                  time = order.setl_time;
2125
+
2126
+                }else{
2127
+
2128
+                  item_name = order.info[b].project.good_info.good_name;
2129
+                  item_code = order.info[b].project.good_info.medical_insurance_number;
2130
+                  price = order.info[b].pric;
2131
+                  unit = order.info[b].project.good_info.packing_unit;
2132
+                  cnt=order.info[b].cnt;
2133
+                  time = order.setl_time;
2134
+
2135
+
2136
+                }
2137
+
2053 2138
               } else if (
2054
-                  order.order_info[b].advice.id > 0 &&
2055
-                  order.order_info[b].project.id == 0
2139
+                  order.info[b].advices.id > 0 &&
2140
+                  order.info[b].project.id == 0
2056 2141
               ) {
2057
-                item_name = order.order_info[b].advice.advice_name;
2142
+                item_name = order.info[b].advices.advice_name;
2058 2143
                 item_code =
2059
-                    order.order_info[b].advice.drug.medical_insurance_number;
2060
-                price = order.order_info[b].pric;
2061
-                unit = order.order_info[b].advice.prescribing_number_unit;
2062
-              }
2063
-              selfpay_prop = order.order_info[b].selfpay_prop;
2144
+                    order.info[b].advices.drug.medical_insurance_number;
2145
+                price = order.info[b].pric;
2146
+                unit = order.info[b].advices.prescribing_number_unit;
2147
+                spec = order.info[b].advices.drug.dose +  order.info[b].advices.drug.dose_unit+"*" + order.info[b].advices.drug.min_number +  order.info[b].advices.drug.min_unit+"/"+order.info[b].advices.drug.max_unit
2148
+                cnt=order.info[b].cnt;
2149
+                time = order.setl_time;
2064 2150
 
2151
+              }
2065 2152
               let obj = {
2153
+                项目编码: item_code,
2066 2154
                 项目名称: item_name,
2067
-                项目编码: "",
2068
-                医保编码: item_code,
2069
-                零售价: price,
2155
+                规格: spec,
2156
+                厂家:"",
2070 2157
                 单位: unit,
2071
-                规格: "",
2072
-                收费时间: time,
2073
-                报销比例: selfpay_prop,
2074
-                患者名称: name,
2158
+                数量: cnt,
2159
+                时间: time,
2075 2160
               };
2076 2161
 
2077 2162
               list.push(obj);
@@ -2079,26 +2164,22 @@ export default {
2079 2164
           }
2080 2165
           import("@/vendor/Export2Excel").then((excel) => {
2081 2166
             const tHeader = [
2082
-              "项目名称",
2083 2167
               "项目编码",
2084
-              "医保编码",
2085
-              "零售价",
2086
-              "单位",
2168
+              "项目名称",
2087 2169
               "规格",
2088
-              "收费时间",
2089
-              "报销比例",
2090
-              "患者名称",
2170
+              "厂家",
2171
+              "单位",
2172
+              "数量",
2173
+              "时间",
2091 2174
             ];
2092 2175
             const filterVal = [
2093
-              "项目名称",
2094 2176
               "项目编码",
2095
-              "医保编码",
2096
-              "零售价",
2097
-              "单位",
2177
+              "项目名称",
2098 2178
               "规格",
2099
-              "收费时间",
2100
-              "报销比例",
2101
-              "患者名称",
2179
+              "厂家",
2180
+              "单位",
2181
+              "数量",
2182
+              "时间",
2102 2183
             ];
2103 2184
             const data = this.formatJson(filterVal, list);
2104 2185
             excel.export_json_to_excel({

+ 2 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -3227,7 +3227,7 @@
3227 3227
         this.teamList = row
3228 3228
       },
3229 3229
       selectChange(selection, row) {
3230
-        console.log('row', row)
3230
+        console.log('row', selection)
3231 3231
         // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3232 3232
         //    if (row.stock_count <= 0) {
3233 3233
         //     if (row.type == 3) {
@@ -3278,8 +3278,7 @@
3278 3278
               return
3279 3279
           }
3280 3280
          }
3281
-
3282
-        this.teamList.push(row)
3281
+        this.teamList = selection
3283 3282
       },
3284 3283
       getlist() {
3285 3284
         this.tabProject = []

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

@@ -1701,7 +1701,7 @@ export default {
1701 1701
                   price: prescription.project[b].price,
1702 1702
                   remark: prescription.project[b].remark,
1703 1703
                   medical_code: prescription.project[b].project.medical_code,
1704
-                  unit: prescription.project[b].project.unit,
1704
+                  unit: prescription.project[b].unit,
1705 1705
                   type: prescription.project[b].type,
1706 1706
                   execution_state: prescription.project[b].execution_state,
1707 1707
 
@@ -1861,7 +1861,7 @@ export default {
1861 1861
                     total: prescription.project[b].count.toString(),
1862 1862
                     remark: prescription.project[b].remark,
1863 1863
                     medical_code: prescription.project[b].project.medical_code,
1864
-                    unit: prescription.project[b].project.unit,
1864
+                    unit: prescription.project[b].unit,
1865 1865
                     type: prescription.project[b].type,
1866 1866
                     execution_state: 2,
1867 1867
 
@@ -2158,7 +2158,7 @@ export default {
2158 2158
                         price: prescription.project[b].price,
2159 2159
                         remark: prescription.project[b].remark,
2160 2160
                         medical_code: prescription.project[b].project.medical_code,
2161
-                        unit: prescription.project[b].project.unit,
2161
+                        unit: prescription.project[b].unit,
2162 2162
                         type: prescription.project[b].type,
2163 2163
                         execution_state: prescription.project[b].execution_state,
2164 2164
                       }
@@ -2316,7 +2316,7 @@ export default {
2316 2316
                           total: prescription.project[b].count.toString(),
2317 2317
                           remark: prescription.project[b].remark,
2318 2318
                           medical_code: prescription.project[b].project.medical_code,
2319
-                          unit: prescription.project[b].project.unit,
2319
+                          unit: prescription.project[b].unit,
2320 2320
                           type: prescription.project[b].type,
2321 2321
                           execution_state: 2,
2322 2322
 
@@ -2700,7 +2700,7 @@ export default {
2700 2700
                         price: prescription.project[b].price,
2701 2701
                         remark: prescription.project[b].remark,
2702 2702
                         medical_code: prescription.project[b].project.medical_code,
2703
-                        unit: prescription.project[b].project.unit,
2703
+                        unit: prescription.project[b].unit,
2704 2704
                         type: prescription.project[b].type,
2705 2705
                         execution_state: prescription.project[b].execution_state,
2706 2706
 
@@ -2850,7 +2850,7 @@ export default {
2850 2850
                           total: prescription.project[b].count.toString(),
2851 2851
                           remark: prescription.project[b].remark,
2852 2852
                           medical_code: prescription.project[b].project.medical_code,
2853
-                          unit: prescription.project[b].project.unit,
2853
+                          unit: prescription.project[b].unit,
2854 2854
                           type: prescription.project[b].type,
2855 2855
                           execution_state: 2,
2856 2856
 
@@ -3214,7 +3214,7 @@ export default {
3214 3214
                       price: prescription.project[b].price,
3215 3215
                       remark: prescription.project[b].remark,
3216 3216
                       medical_code: prescription.project[b].project.medical_code,
3217
-                      unit: prescription.project[b].project.unit,
3217
+                      unit: prescription.project[b].unit,
3218 3218
                       type: prescription.project[b].type,
3219 3219
                       execution_state: prescription.project[b].execution_state
3220 3220
 
@@ -3364,7 +3364,7 @@ export default {
3364 3364
                         total: prescription.project[b].count.toString(),
3365 3365
                         remark: prescription.project[b].remark,
3366 3366
                         medical_code: prescription.project[b].project.medical_code,
3367
-                        unit: prescription.project[b].project.unit,
3367
+                        unit: prescription.project[b].unit,
3368 3368
                         type: prescription.project[b].type,
3369 3369
                         execution_state: 2
3370 3370
 
@@ -3807,7 +3807,7 @@ export default {
3807 3807
                         price: prescription.project[b].price,
3808 3808
                         remark: prescription.project[b].remark,
3809 3809
                         medical_code: prescription.project[b].project.medical_code,
3810
-                        unit: prescription.project[b].project.unit,
3810
+                        unit: prescription.project[b].unit,
3811 3811
                         type: prescription.project[b].type,
3812 3812
                         execution_state: prescription.project[b].execution_state
3813 3813
 
@@ -3966,7 +3966,7 @@ export default {
3966 3966
                           total: prescription.project[b].count.toString(),
3967 3967
                           remark: prescription.project[b].remark,
3968 3968
                           medical_code: prescription.project[b].project.medical_code,
3969
-                          unit: prescription.project[b].project.unit,
3969
+                          unit: prescription.project[b].unit,
3970 3970
                           type: prescription.project[b].type,
3971 3971
                           execution_state: 2,
3972 3972
                         }
@@ -4434,7 +4434,7 @@ export default {
4434 4434
                         price: prescription.project[b].price,
4435 4435
                         remark: prescription.project[b].remark,
4436 4436
                         medical_code: prescription.project[b].project.medical_code,
4437
-                        unit: prescription.project[b].project.unit,
4437
+                        unit: prescription.project[b].unit,
4438 4438
                         type: prescription.project[b].type,
4439 4439
                         execution_state: prescription.project[b].execution_state
4440 4440
 
@@ -4594,7 +4594,7 @@ export default {
4594 4594
                           total: prescription.project[b].count.toString(),
4595 4595
                           remark: prescription.project[b].remark,
4596 4596
                           medical_code: prescription.project[b].project.medical_code,
4597
-                          unit: prescription.project[b].project.unit,
4597
+                          unit: prescription.project[b].unit,
4598 4598
                           type: prescription.project[b].type,
4599 4599
                           execution_state: 2
4600 4600
 

+ 10 - 2
src/xt_pages/outpatientDoctorStation/template/printThree.vue 查看文件

@@ -49,8 +49,16 @@
49 49
             <div style="width: 20%;"></div>
50 50
             <div style="width: 33%; display: flex">
51 51
               医保类型:
52
-              <span class="under_line">
53
-               
52
+              <span class="under_line" v-if="item.patient.reimbursement_way_id == 20">
53
+               {{'医保一档'}}
54
+              </span>
55
+              <span class="under_line" v-if="item.patient.reimbursement_way_id == 21">
56
+               {{'医保二档'}}
57
+              </span>
58
+              <span class="under_line" v-if="item.patient.reimbursement_way_id == 22">
59
+               {{'医保三档'}}
60
+              </span>
61
+              <span class="under_line" v-if="item.patient.reimbursement_way_id != 20 && item.patient.reimbursement_way_id != 21 && item.patient.reimbursement_way_id != 22">
54 62
               </span>
55 63
             </div>
56 64
           </div>

文件差異過大導致無法顯示
+ 950 - 533
src/xt_pages/workforce/appointment.vue


文件差異過大導致無法顯示
+ 2934 - 0
src/xt_pages/workforce/appointment3.vue


+ 5 - 0
src/xt_pages/workforce/components/ScheduleItem.vue 查看文件

@@ -5,10 +5,14 @@
5 5
                 {{scheduleDetail.patient}}
6 6
                 <br/>
7 7
                 <span v-if="scheduleDetail.mode_name.length>0">({{scheduleDetail.mode_name}})</span>
8
+              <span >{{scheduleDetail.dialysis_machine_name}}</span>
9
+
8 10
             </div>
9 11
             <div>
10 12
                 <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
11 13
                 <span v-if="scheduleDetail.mode_name.length>0" :class='modeColor(scheduleDetail.mode_name)'>({{scheduleDetail.mode_name}})</span>
14
+              <span >{{scheduleDetail.dialysis_machine_name}}</span>
15
+
12 16
             </div>
13 17
         </el-tooltip>
14 18
     </div>
@@ -26,6 +30,7 @@ export default {
26 30
                 mode_name:'',
27 31
                 patient_id:0,
28 32
                 patient:"",
33
+                dialysis_machine_name:"",
29 34
               }
30 35
           },
31 36
       },

文件差異過大導致無法顯示
+ 3859 - 0
src/xt_pages/workforce/components/editSchedule.vue


文件差異過大導致無法顯示
+ 5005 - 0
src/xt_pages/workforce/components/editTableData.vue


+ 4 - 4
src/xt_pages/workforce/components/scheduleTemplateUploadExcel/index.vue 查看文件

@@ -23,7 +23,7 @@
23 23
   </span>
24 24
     </el-dialog>
25 25
     <input id="excel-upload-input" ref="excel-upload-input" type="file" accept=".xlsx, .xls, .xltx" @change="handleClick">
26
-    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">点击导入
26
+    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">导入数据
27 27
     </el-button>
28 28
   </div>
29 29
 </template>
@@ -96,7 +96,7 @@
96 96
       },
97 97
       upload(rawFile) {
98 98
         this.$refs['excel-upload-input'].value = null // fix can't select the same excel
99
-       
99
+
100 100
         if (!this.beforeUpload) {
101 101
           this.readerData(rawFile)
102 102
           return
@@ -107,7 +107,7 @@
107 107
         }
108 108
       },
109 109
       readerData(rawFile) {
110
-      
110
+
111 111
 
112 112
         this.loading = true
113 113
         return new Promise((resolve, reject) => {
@@ -148,7 +148,7 @@
148 148
         return o
149 149
       },
150 150
       get_header_row(sheet) {
151
-      
151
+
152 152
         if(sheet['!ref'] == undefined){
153 153
           this.loading = false
154 154
           return

+ 11 - 11
src/xt_pages/workforce/components/scheduleUploadExcel/index.vue 查看文件

@@ -11,7 +11,7 @@
11 11
   </span>
12 12
     </el-dialog>
13 13
      <input id="excel-upload-input" ref="excel-upload-input" type="file"  accept=".xlsx,.xls,.xltx," @change="handleClick" >
14
-    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">点击导入
14
+    <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">导入排班
15 15
     </el-button>
16 16
   </div>
17 17
 </template>
@@ -70,21 +70,21 @@
70 70
       },
71 71
       handleUpload() {
72 72
         this.msgTipVisible = false
73
-       
73
+
74 74
         document.getElementById('excel-upload-input').click()
75 75
       },
76 76
       handleClick(e) {
77
-       
77
+
78 78
         const files = e.target.files
79 79
         const rawFile = files[0] // only use files[0]
80 80
         console.log("rawfiel",rawFile)
81
-        if (!rawFile) 
81
+        if (!rawFile)
82 82
         return
83 83
         this.upload(rawFile)
84 84
 
85 85
       },
86 86
       upload(rawFile) {
87
-        
87
+
88 88
         this.$refs['excel-upload-input'].value = null // fix can't select the same excel
89 89
         console.log("3333",this.beforeUpload)
90 90
         if (!this.beforeUpload) {
@@ -103,16 +103,16 @@
103 103
         return new Promise((resolve, reject) => {
104 104
           const reader = new FileReader()
105 105
           reader.onload = e => {
106
-           
106
+
107 107
             const data = e.target.result
108 108
             console.log("data22222",data)
109 109
             const fixedData = this.fixdata(data)
110 110
             const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
111 111
             const firstSheetName = workbook.SheetNames[0]
112 112
             const worksheet = workbook.Sheets[firstSheetName]
113
-           
113
+
114 114
             const header = this.get_header_row(worksheet)
115
-            
115
+
116 116
             const results = XLSX.utils.sheet_to_json(worksheet)
117 117
             this.generateDate({ header, results })
118 118
             this.loading = false
@@ -148,12 +148,12 @@
148 148
         }
149 149
         return headers
150 150
 
151
-    
151
+
152 152
 
153 153
       },
154 154
       isExcel(file) {
155
-        
156
-        return /\.(xlsx|xls|csv)$/.test(file.name)       
155
+
156
+        return /\.(xlsx|xls|csv)$/.test(file.name)
157 157
       }
158 158
     }
159 159
   }

+ 108 - 30
src/xt_pages/workforce/components/setup_template_dialog.vue 查看文件

@@ -1,32 +1,71 @@
1 1
 <template>
2
- <!-- top="5vh" -->
3
-    <el-dialog title="设置模板" width="400px" :visible.sync="visible" :before-close="_close">
4
-        <el-form :model="form" label-width="100px">
5
-            <el-form-item label="选择排班模板">
6
-                <el-select v-model="form.mode" placeholder="">
7
-                    <el-option label="不启用模板" :value="0"></el-option>
8
-                    <el-option label="启用单周模板" :value="1"></el-option>
9
-                    <el-option label="启用双周模板" :value="2"></el-option>
10
-                </el-select>
11
-            </el-form-item>
12
-        </el-form>
13
-        <div slot="footer" class="dialog-footer">
14
-            <el-button @click="hide">取 消</el-button>
15
-            <el-button :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false" type="primary" @click="saveAction">保 存</el-button>
16
-        </div>
17
-    </el-dialog>
2
+  <!-- top="5vh" -->
3
+  <el-dialog title="设置模板" width="500px" :visible.sync="visible" :before-close="_close">
4
+    <el-form :model="form" label-width="150px">
5
+      <el-form-item label="选择排班模板">
6
+        <el-select v-model="form.mode" placeholder="">
7
+          <el-option label="不启用模板" :value="0"></el-option>
8
+          <el-option label="启用单周模板" :value="1"></el-option>
9
+          <el-option label="启用双周模板" :value="2"></el-option>
10
+          <el-option label="启用三周模板" :value="3"></el-option>
11
+          <el-option label="启用四周模板" :value="4"></el-option>
12
+        </el-select>
13
+      </el-form-item>
14
+
15
+      <el-form-item label="模版自动生成起始周" v-if="form.mode > 0">
16
+        <el-date-picker
17
+            v-model="week_time"
18
+            type="week"
19
+            format="yyyy 第 WW 周"
20
+            placeholder="选择周"
21
+            :picker-options="pickerOptions0"
22
+            @change="changeWeek"
23
+        >
24
+        </el-date-picker>
25
+      </el-form-item>
26
+    </el-form>
27
+    <div slot="footer" class="dialog-footer">
28
+      <el-button @click="hide">取 消</el-button>
29
+      <el-button :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false" type="primary"
30
+                 @click="saveAction">保 存
31
+      </el-button>
32
+    </div>
33
+  </el-dialog>
18 34
 </template>
19 35
 
20 36
 <script>
21
-import { setTemplateMode } from '@/api/schedule_template/patient'
37
+import {setTemplateMode} from '@/api/schedule_template/sch_template'
22 38
 
23 39
 export default {
24 40
   name: 'SetUpTemplateDialog',
25 41
   data() {
26 42
     return {
43
+      pickerOptions0: {
44
+        'firstDayOfWeek': 1,
45
+        disabledDate(time) {
46
+          var nowDate = new Date();
47
+          var nowYear = nowDate.getFullYear();
48
+          var nowMonth = nowDate.getMonth() + 1;
49
+          var nowDay = nowDate.getDate()+7;
50
+          let time_temp =
51
+              nowYear +
52
+              "-" +
53
+              (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
54
+              "-" +
55
+              (nowDay < 10 ? "0" + nowDay : nowDay);
56
+
57
+          time_temp = time_temp.replace(/-/g,'/'); // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串
58
+
59
+          var date = new Date(time_temp)
60
+
61
+          return time.getTime() < date.getTime() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
62
+        }
63
+      },
27 64
       visible: false,
65
+      week_time:"",
28 66
       form: {
29
-        mode: 0
67
+        mode: 0,
68
+        week_time:"",
30 69
       }
31 70
     }
32 71
   },
@@ -39,16 +78,37 @@ export default {
39 78
     }
40 79
   },
41 80
   watch: {
42
-    'template_mode.mode': function() {
81
+    'template_mode.mode': function () {
43 82
       this.form.mode = this.template_mode.mode
44 83
     }
45 84
   },
46 85
   methods: {
47
-    _close: function(done) {
86
+    getYearWeek(endDate) {
87
+      //本年的第一天
88
+      var beginDate = new Date(endDate.getFullYear(), 0, 1);
89
+      //星期从0-6,0代表星期天,6代表星期六
90
+      var endWeek = endDate.getDay();
91
+      if (endWeek == 0) endWeek = 7;
92
+      var beginWeek = beginDate.getDay();
93
+      if (beginWeek == 0) beginWeek = 7;
94
+      //计算两个日期的天数差
95
+      var millisDiff = endDate.getTime() - beginDate.getTime();
96
+      var dayDiff = Math.floor((millisDiff + (beginWeek - endWeek) * (24 * 60 * 60 * 1000)) / 86400000);
97
+      return Math.ceil(dayDiff / 7) + 1;
98
+    },
99
+
100
+    changeWeek(val) {
101
+      this.form.week_time = this.getYearWeek(val) -1
102
+
103
+
104
+
105
+
106
+    },
107
+    _close: function (done) {
48 108
       this.clear()
49 109
       done()
50 110
     },
51
-    clear: function() {
111
+    clear: function () {
52 112
 
53 113
     },
54 114
     show() {
@@ -59,28 +119,46 @@ export default {
59 119
       this.clear()
60 120
       this.visible = false
61 121
     },
62
-    saveAction: function() {
122
+    saveAction: function () {
123
+      console.log(this.form.week_time)
124
+      if(this.form.mode > 0 && this.form.week_time.length == 0){
125
+        this.$message.error("请选择模版自动生成起始周")
126
+        return
127
+      }
128
+
129
+
130
+
63 131
       var msg = ''
64 132
       if (this.origin_mode == 0) { // 0 -> 1 或 0 -> 2 直接清除下两周的排班
65
-        msg = '开启模板将清除下两周已设置的排班!是否继续开启?'
133
+        msg = '开启模板将清除周已设置的排班!是否继续开启?'
66 134
       } else if (this.form.mode == 0) { // 1 -> 0 或 2 -> 0 则不处理排班,但清除所有模板item
67 135
 
68 136
       } else if (this.origin_mode == 1 && this.form.mode == 2) { // 1 -> 2 清除第二周排班
69 137
         msg = '开启双周模板将清除下第二周已设置的排班!是否继续开启?'
70 138
       } else if (this.origin_mode == 2 && this.form.mode == 1) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
71
-        msg = '双周模板调整为单周模板时,下第二周排班将被清除,并用单周模板生成下第二周的排班!是否继续调整?'
139
+        msg = '双周模板调整为单周模板时,下第二周排班将被清除,是否继续调整?'
140
+      } else if (this.origin_mode == 3 && this.form.mode == 1) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
141
+        msg = '三周模板调整为单周模板时,下第二,三周排班将被清除,是否继续调整?'
142
+      } else if (this.origin_mode == 3 && this.form.mode == 2) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
143
+        msg = '三周模板调整为双周模板时,下第三周排班将被清除,是否继续调整?'
144
+      } else if (this.origin_mode == 4 && this.form.mode == 1) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
145
+        msg = '四周模板调整为单周模板时,下第二,三,四周排班将被清除,是否继续调整?'
146
+      }else if (this.origin_mode == 4 && this.form.mode == 2) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
147
+        msg = '四周模板调整为双周模板时,下第三,四周排班将被清除,是否继续调整?'
148
+      }else if (this.origin_mode == 4 && this.form.mode == 3) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
149
+        msg = '四周模板调整为三周模板时,下第四周排班将被清除,是否继续调整?'
72 150
       }
73 151
       if (msg.length == 0) {
74 152
         this.submit()
75 153
       } else {
76
-        this.$confirm(msg, '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
77
-          .then(() => {
78
-            this.submit()
79
-          })
154
+        this.$confirm(msg, '提示', {confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning'})
155
+            .then(() => {
156
+              this.submit()
157
+            })
80 158
       }
81 159
     },
82
-    submit: function() {
83
-      setTemplateMode(this.form.mode).then(rs => {
160
+    submit: function () {
161
+      setTemplateMode(this.form.mode,this.form.week_time).then(rs => {
84 162
         var resp = rs.data
85 163
         if (resp.state == 1) {
86 164
           this.template_mode.mode = this.form.mode

文件差異過大導致無法顯示
+ 389 - 132
src/xt_pages/workforce/components/tableData.vue


文件差異過大導致無法顯示
+ 2474 - 0
src/xt_pages/workforce/components/tableDataModeTwo.vue


+ 18 - 18
src/xt_pages/workforce/components/template_schedule_selector_dialog.vue 查看文件

@@ -1,27 +1,27 @@
1 1
 <template>
2 2
   <el-dialog
3
-    title="选择患者"
3
+    title="修改透析模式"
4 4
     width="40%"
5 5
     :visible.sync="visible"
6 6
     :before-close="_close"
7 7
   >
8 8
     <el-form :model="form" label-width="80px" :rules="rules">
9
-      <el-form-item label="患者" required prop="patient_id">
10
-        <el-select
11
-          v-model="form.patient_id"
12
-          placeholder="选择患者"
13
-          filterable
14
-          clearable
15
-        >
16
-          <el-option
17
-            v-for="patient in patients"
18
-            :key="patient.id"
19
-            :value="patient.id"
20
-            :label="patient.name"
21
-          >
22
-          </el-option>
23
-        </el-select>
24
-      </el-form-item>
9
+<!--      <el-form-item label="患者" required prop="patient_id">-->
10
+<!--        <el-select-->
11
+<!--          v-model="form.patient_id"-->
12
+<!--          placeholder="选择患者"-->
13
+<!--          filterable-->
14
+<!--          clearable-->
15
+<!--        >-->
16
+<!--          <el-option-->
17
+<!--            v-for="patient in patients"-->
18
+<!--            :key="patient.id"-->
19
+<!--            :value="patient.id"-->
20
+<!--            :label="patient.name"-->
21
+<!--          >-->
22
+<!--          </el-option>-->
23
+<!--        </el-select>-->
24
+<!--      </el-form-item>-->
25 25
       <el-form-item label="透析模式" required prop="treat_mode">
26 26
         <el-select
27 27
           v-model="form.treat_mode"
@@ -39,7 +39,7 @@
39 39
       </el-form-item>
40 40
     </el-form>
41 41
     <div slot="footer" class="dialog-footer">
42
-      <el-button @click="cancelScheduleAction">取消排班</el-button>
42
+<!--      <el-button @click="cancelScheduleAction">取消排班</el-button>-->
43 43
       <el-button type="primary" @click="saveAction">保 存</el-button>
44 44
     </div>
45 45
   </el-dialog>

文件差異過大導致無法顯示
+ 2820 - 759
src/xt_pages/workforce/components/template_table.vue


文件差異過大導致無法顯示
+ 2889 - 0
src/xt_pages/workforce/components/template_table_four.vue


文件差異過大導致無法顯示
+ 2656 - 0
src/xt_pages/workforce/components/template_table_three.vue


文件差異過大導致無法顯示
+ 2893 - 0
src/xt_pages/workforce/components/template_table_two.vue


+ 153 - 67
src/xt_pages/workforce/scheduleTablePrintOne.vue 查看文件

@@ -46,35 +46,35 @@
46 46
                         <div v-if="item.Mon_M.mode_name != 'HD'">
47 47
                             {{ item.Mon_M.mode_name }}
48 48
                        </div>
49
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Mon_M.patient_id,item.Mon_M.mode_name)}}</div>
49
+                        <div v-if="item.zone_id>0">{{item.Mon_M.dialysis_machine_name}}</div>
50 50
                     </span>
51 51
                 </td>
52 52
                 <td style="min-width:50px;">
53 53
                     <span v-if="item.Mon_A.patient_id">
54 54
                         <div>{{ item.Mon_A.patient }} </div>
55 55
                         <div v-if="item.Mon_A.mode_name != 'HD'">{{ item.Mon_A.mode_name }}</div>
56
-                       <div v-if="item.zone_id>0">{{getDialyzer(item.Mon_A.patient_id,item.Mon_A.mode_name)}}</div>
56
+                       <div v-if="item.zone_id>0">{{item.Mon_A.dialysis_machine_name}}</div>
57 57
                     </span>
58 58
                 </td>
59 59
                 <td style="min-width:50px;">
60 60
                     <span v-if="item.Mon_N.patient_id">
61 61
                         <div>{{ item.Mon_N.patient }}</div>
62 62
                         <div v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</div>
63
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Mon_N.patient_id,item.Mon_N.mode_name)}}</div>
63
+                        <div v-if="item.zone_id>0">{{item.Mon_N.dialysis_machine_name}}</div>
64 64
                     </span>
65 65
                 </td>
66 66
                 <td style="min-width:50px;">
67 67
                     <span v-if="item.Tue_M.patient_id">
68 68
                         <div>{{ item.Tue_M.patient }}</div>
69 69
                         <div v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</div>
70
-                         <div v-if="item.zone_id>0">{{getDialyzer(item.Tue_M.patient_id,item.Tue_M.mode_name)}}</div>
70
+                         <div v-if="item.zone_id>0">{{item.Tue_M.dialysis_machine_name}}</div>
71 71
                     </span>
72 72
                 </td>
73 73
                 <td style="min-width:50px;">
74 74
                     <span v-if="item.Tue_A.patient_id">
75 75
                         <div>{{ item.Tue_A.patient }}</div>
76 76
                         <div v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</div>
77
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Tue_A.patient_id,item.Tue_A.mode_name)}}</div>
77
+                        <div v-if="item.zone_id>0">{{item.Tue_A.dialysis_machine_name}}</div>
78 78
 
79 79
                     </span>
80 80
                 </td>
@@ -82,105 +82,105 @@
82 82
                     <span v-if="item.Tue_N.patient_id">
83 83
                         <div>{{ item.Tue_N.patient }}</div>
84 84
                         <div v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</div>
85
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Tue_N.patient_id,item.Tue_N.mode_name)}}</div>
85
+                        <div v-if="item.zone_id>0">{{item.Tue_N.dialysis_machine_name}}</div>
86 86
                     </span>
87 87
                 </td>
88 88
                 <td style="min-width:50px;">
89 89
                     <span v-if="item.Wed_M.patient_id">
90 90
                         <div>{{ item.Wed_M.patient }}</div>
91 91
                         <div v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</div>
92
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Wed_M.patient_id,item.Wed_M.mode_name)}}</div>
92
+                        <div v-if="item.zone_id>0">{{item.Wed_M.dialysis_machine_name}}</div>
93 93
                     </span>
94 94
                 </td>
95 95
                 <td style="min-width:50px;">
96 96
                     <span v-if="item.Wed_A.patient_id">
97 97
                         <div>{{ item.Wed_A.patient }}</div>
98 98
                         <div v-if="item.Wed_A.mode_name != 'HD'">{{ item.Wed_A.mode_name }}</div>
99
-                       <div v-if="item.zone_id>0">{{getDialyzer(item.Wed_A.patient_id,item.Wed_A.mode_name)}}</div>
99
+                       <div v-if="item.zone_id>0">{{item.Wed_A.dialysis_machine_name}}</div>
100 100
                     </span>
101 101
                 </td>
102 102
                 <td style="min-width:50px;">
103 103
                     <span v-if="item.Wed_N.patient_id">
104 104
                         <div>{{ item.Wed_N.patient }}</div>
105 105
                         <div v-if="item.Wed_N.mode_name != 'HD'">{{ item.Wed_N.mode_name }}</div>
106
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Wed_N.patient_id,item.Wed_N.mode_name)}}</div>
106
+                        <div v-if="item.zone_id>0">{{item.Wed_N.dialysis_machine_name}}</div>
107 107
                     </span>
108 108
                 </td>
109 109
                 <td style="min-width:50px;">
110 110
                     <span v-if="item.Thurs_M.patient_id">
111 111
                         <div>{{ item.Thurs_M.patient }}</div>
112 112
                         <div v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</div>
113
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Thurs_M.patient_id,item.Thurs_M.mode_name)}}</div>
113
+                        <div v-if="item.zone_id>0">{{item.Thurs_M.dialysis_machine_name}}</div>
114 114
                     </span>
115 115
                 </td>
116 116
                 <td style="min-width:50px;">
117 117
                     <span v-if="item.Thurs_A.patient_id">
118 118
                         <div>{{ item.Thurs_A.patient }}</div>
119 119
                         <div v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</div>
120
-                       <div v-if="item.zone_id>0">{{getDialyzer(item.Thurs_A.patient_id,item.Thurs_A.mode_name)}}</div>
120
+                       <div v-if="item.zone_id>0">{{item.Thurs_A.dialysis_machine_name}}</div>
121 121
                     </span>
122 122
                 </td>
123 123
                 <td style="min-width:50px;">
124 124
                     <span v-if="item.Thurs_N.patient_id">
125 125
                         <div>{{ item.Thurs_N.patient }}</div>
126 126
                         <div v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</div>
127
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Thurs_N.patient_id,item.Thurs_N.mode_name)}}</div>
127
+                        <div v-if="item.zone_id>0">{{item.Thurs_N.dialysis_machine_name}}</div>
128 128
                     </span>
129 129
                 </td>
130 130
                 <td style="min-width:50px;">
131 131
                     <span v-if="item.Fri_M.patient_id">
132 132
                         <div>{{ item.Fri_M.patient }}</div>
133 133
                         <div v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</div>
134
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Fri_M.patient_id,item.Fri_M.mode_name)}}</div>
134
+                        <div v-if="item.zone_id>0">{{item.Fri_M.dialysis_machine_name}}</div>
135 135
                     </span>
136 136
                 </td>
137 137
                 <td style="min-width:50px;">
138 138
                     <span v-if="item.Fri_A.patient_id">
139 139
                         <div>{{ item.Fri_A.patient }}</div>
140 140
                         <div v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</div>
141
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Fri_A.patient_id,item.Fri_A.mode_name)}}</div>
141
+                        <div v-if="item.zone_id>0">{{item.Fri_A.dialysis_machine_name}}</div>
142 142
                     </span>
143 143
                 </td>
144 144
                 <td style="min-width:50px;">
145 145
                     <span v-if="item.Fri_N.patient_id">
146 146
                         <div>{{ item.Fri_N.patient }}</div>
147 147
                         <div v-if="item.Fri_N.mode_name != 'HD'">{{ item.Fri_N.mode_name }}</div>
148
-                       <div v-if="item.zone_id>0">{{getDialyzer(item.Fri_N.patient_id,item.Fri_N.mode_name)}}</div>
148
+                       <div v-if="item.zone_id>0">{{item.Fri_N.dialysis_machine_name}}</div>
149 149
                     </span>
150 150
                 </td>
151 151
                 <td style="min-width:50px;">
152 152
                     <span v-if="item.Sat_M.patient_id">
153 153
                         <div>{{ item.Sat_M.patient }}</div>
154 154
                         <div v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</div>
155
-                       <div v-if="item.zone_id>0">{{getDialyzer(item.Sat_M.patient_id,item.Sat_M.mode_name)}}</div>
155
+                       <div v-if="item.zone_id>0">{{item.Sat_M.dialysis_machine_name}}</div>
156 156
                     </span>
157 157
                 </td>
158 158
                 <td style="min-width:50px;">
159 159
                     <span v-if="item.Sat_A.patient_id">
160 160
                         <div>{{ item.Sat_A.patient }}</div>
161 161
                         <div v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</div>
162
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sat_A.patient_id,item.Sat_A.mode_name)}}</div>
162
+                        <div v-if="item.zone_id>0">{{item.Sat_A.dialysis_machine_name}}</div>
163 163
                     </span>
164 164
                 </td>
165 165
                 <td style="min-width:50px;">
166 166
                     <span v-if="item.Sat_N.patient_id">
167 167
                         <div>{{ item.Sat_N.patient }}</div>
168 168
                         <div v-if="item.Sat_N.mode_name != 'HD'">{{ item.Sat_N.mode_name }}</div>
169
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sat_N.patient_id,item.Sat_N.mode_name)}}</div>
169
+                        <div v-if="item.zone_id>0">{{item.Sat_N.dialysis_machine_name}}</div>
170 170
                     </span>
171 171
                 </td>
172 172
                 <td style="min-width:50px;">
173 173
                     <span v-if="item.Sun_M.patient_id">
174 174
                         <div>{{ item.Sun_M.patient }}</div>
175 175
                         <div v-if="item.Sun_M.mode_name != 'HD'">{{ item.Sun_M.mode_name }} </div>
176
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sun_M.patient_id,item.Sun_M.mode_name)}}</div>
176
+                        <div v-if="item.zone_id>0">{{item.Sun_M.dialysis_machine_name}}</div>
177 177
                     </span>
178 178
                 </td>
179 179
                 <td style="min-width:50px;">
180 180
                     <span v-if="item.Sun_A.patient_id">
181 181
                         <div>{{ item.Sun_A.patient }}</div>
182 182
                         <div v-if="item.Sun_A.mode_name != 'HD'">{{ item.Sun_A.mode_name }} </div>
183
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sun_A.patient_id, item.Sun_A.mode_name)}}</div>
183
+                        <div v-if="item.zone_id>0">{{item.Sun_A.dialysis_machine_name}}</div>
184 184
 
185 185
                     </span>
186 186
                 </td>
@@ -188,7 +188,7 @@
188 188
                     <span v-if="item.Sun_N.patient_id">
189 189
                         <div>{{ item.Sun_N.patient }}</div>
190 190
                         <div v-if="item.Sun_N.mode_name != 'HD'">{{ item.Sun_N.mode_name }} </div>
191
-                        <div v-if="item.zone_id>0">{{getDialyzer(item.Sun_N.patient_id,item.Sun_N.mode_name)}}</div>
191
+                        <div v-if="item.zone_id>0">{{item.Sun_N.dialysis_machine_name}}</div>
192 192
                     </span>
193 193
                 </td>
194 194
                 <td>{{item.total}}</td>
@@ -298,7 +298,8 @@ export default {
298 298
                                 mode_name: '',
299 299
                                 patient_id: 0,
300 300
                                 patient: '',
301
-                                type:1
301
+                                type:1,
302
+                              dialysis_machine_name:"",
302 303
                             },
303 304
                             Mon_A: {
304 305
                                 schedule_id: 0,
@@ -306,7 +307,9 @@ export default {
306 307
                                 mode_name: '',
307 308
                                 patient_id: 0,
308 309
                                 patient: '',
309
-                                type:1
310
+                                type:1,
311
+                              dialysis_machine_name:"",
312
+
310 313
                             },
311 314
                             Mon_N: {
312 315
                                 schedule_id: 0,
@@ -314,7 +317,9 @@ export default {
314 317
                                 mode_name: '',
315 318
                                 patient_id: 0,
316 319
                                 patient: '',
317
-                                type:1
320
+                                type:1,
321
+                              dialysis_machine_name:"",
322
+
318 323
                             },
319 324
                             Tue_M: {
320 325
                                 schedule_id: 0,
@@ -322,7 +327,9 @@ export default {
322 327
                                 mode_name: '',
323 328
                                 patient_id: 0,
324 329
                                 patient: '',
325
-                                type:1
330
+                                type:1,
331
+                              dialysis_machine_name:"",
332
+
326 333
                             },
327 334
                             Tue_A: {
328 335
                                 schedule_id: 0,
@@ -330,7 +337,10 @@ export default {
330 337
                                 mode_name: '',
331 338
                                 patient_id: 0,
332 339
                                 patient: '',
333
-                                type:1
340
+                                type:1,
341
+                              dialysis_machine_name:"",
342
+
343
+
334 344
                             },
335 345
                             Tue_N: {
336 346
                                 schedule_id: 0,
@@ -338,7 +348,9 @@ export default {
338 348
                                 mode_name: '',
339 349
                                 patient_id: 0,
340 350
                                 patient: '',
341
-                                type:1
351
+                                type:1,
352
+                              dialysis_machine_name:"",
353
+
342 354
                             },
343 355
                             Wed_M: {
344 356
                                 schedule_id: 0,
@@ -346,7 +358,9 @@ export default {
346 358
                                 mode_name: '',
347 359
                                 patient_id: 0,
348 360
                                 patient: '',
349
-                                type:1
361
+                                type:1,
362
+                              dialysis_machine_name:"",
363
+
350 364
                             },
351 365
                             Wed_A: {
352 366
                                 schedule_id: 0,
@@ -354,7 +368,9 @@ export default {
354 368
                                 mode_name: '',
355 369
                                 patient_id: 0,
356 370
                                 patient: '',
357
-                                type:1
371
+                                type:1,
372
+                              dialysis_machine_name:"",
373
+
358 374
                             },
359 375
                             Wed_N: {
360 376
                                 schedule_id: 0,
@@ -362,7 +378,9 @@ export default {
362 378
                                 mode_name: '',
363 379
                                 patient_id: 0,
364 380
                                 patient: '',
365
-                                type:1
381
+                                type:1,
382
+                              dialysis_machine_name:"",
383
+
366 384
                             },
367 385
                             Thurs_M: {
368 386
                                 schedule_id: 0,
@@ -370,7 +388,9 @@ export default {
370 388
                                 mode_name: '',
371 389
                                 patient_id: 0,
372 390
                                 patient: '',
373
-                                type:1
391
+                                type:1,
392
+                              dialysis_machine_name:"",
393
+
374 394
                             },
375 395
                             Thurs_A: {
376 396
                                 schedule_id: 0,
@@ -378,7 +398,9 @@ export default {
378 398
                                 mode_name: '',
379 399
                                 patient_id: 0,
380 400
                                 patient: '',
381
-                                type:1
401
+                                type:1,
402
+                              dialysis_machine_name:"",
403
+
382 404
                             },
383 405
                             Thurs_N: {
384 406
                                 schedule_id: 0,
@@ -386,7 +408,9 @@ export default {
386 408
                                 mode_name: '',
387 409
                                 patient_id: 0,
388 410
                                 patient: '',
389
-                                type:1
411
+                                type:1,
412
+                              dialysis_machine_name:"",
413
+
390 414
                             },
391 415
                             Fri_M: {
392 416
                                 schedule_id: 0,
@@ -394,7 +418,9 @@ export default {
394 418
                                 mode_name: '',
395 419
                                 patient_id: 0,
396 420
                                 patient: '',
397
-                                type:1
421
+                                type:1,
422
+                              dialysis_machine_name:"",
423
+
398 424
                             },
399 425
                             Fri_A: {
400 426
                                 schedule_id: 0,
@@ -402,7 +428,9 @@ export default {
402 428
                                 mode_name: '',
403 429
                                 patient_id: 0,
404 430
                                 patient: '',
405
-                                type:1
431
+                                type:1,
432
+                              dialysis_machine_name:"",
433
+
406 434
                             },
407 435
                             Fri_N: {
408 436
                                 schedule_id: 0,
@@ -410,7 +438,9 @@ export default {
410 438
                                 mode_name: '',
411 439
                                 patient_id: 0,
412 440
                                 patient: '',
413
-                                type:1
441
+                                type:1,
442
+                              dialysis_machine_name:"",
443
+
414 444
                             },
415 445
                             Sat_M: {
416 446
                                 schedule_id: 0,
@@ -418,7 +448,9 @@ export default {
418 448
                                 mode_name: '',
419 449
                                 patient_id: 0,
420 450
                                 patient: '',
421
-                                type:1
451
+                                type:1,
452
+                              dialysis_machine_name:"",
453
+
422 454
                             },
423 455
                             Sat_A: {
424 456
                                 schedule_id: 0,
@@ -426,7 +458,9 @@ export default {
426 458
                                 mode_name: '',
427 459
                                 patient_id: 0,
428 460
                                 patient: '',
429
-                                type:1
461
+                                type:1,
462
+                              dialysis_machine_name:"",
463
+
430 464
                             },
431 465
                             Sat_N: {
432 466
                                 schedule_id: 0,
@@ -434,7 +468,9 @@ export default {
434 468
                                 mode_name: '',
435 469
                                 patient_id: 0,
436 470
                                 patient: '',
437
-                                type:1
471
+                                type:1,
472
+                              dialysis_machine_name:"",
473
+
438 474
                             },
439 475
                             Sun_A: {
440 476
                                 schedule_id: 0,
@@ -442,7 +478,9 @@ export default {
442 478
                                 mode_name: '',
443 479
                                 patient_id: 0,
444 480
                                 patient: '',
445
-                                type:1
481
+                                type:1,
482
+                              dialysis_machine_name:"",
483
+
446 484
                             },
447 485
                             Sun_N: {
448 486
                                 schedule_id: 0,
@@ -450,7 +488,9 @@ export default {
450 488
                                 mode_name: '',
451 489
                                 patient_id: 0,
452 490
                                 patient: '',
453
-                                type:1
491
+                                type:1,
492
+                              dialysis_machine_name:"",
493
+
454 494
                             },
455 495
                             Sun_M: {
456 496
                                 schedule_id: 0,
@@ -458,7 +498,9 @@ export default {
458 498
                                 mode_name: '',
459 499
                                 patient_id: 0,
460 500
                                 patient: '',
461
-                                type:1
501
+                                type:1,
502
+                              dialysis_machine_name:"",
503
+
462 504
                             },
463 505
                             total: 0
464 506
                             }
@@ -512,147 +554,190 @@ export default {
512 554
                             mode_name: "",
513 555
                             patient_id: 0,
514 556
                             patient: "",
515
-                            type:1
557
+                            type:1,
558
+                          dialysis_machine_name:"",
559
+
516 560
                         };
517 561
                         that.scheduleZone[index].Mon_A = {
518 562
                             mode_id: 0,
519 563
                             mode_name: "",
520 564
                             patient_id: 0,
521 565
                             patient: "",
522
-                            type:1
566
+                            type:1,
567
+                          dialysis_machine_name:"",
568
+
523 569
                         };
524 570
                         that.scheduleZone[index].Mon_N = {
525 571
                             mode_id: 0,
526 572
                             mode_name: "",
527 573
                             patient_id: 0,
528 574
                             patient: "",
529
-                            type:1
575
+                            type:1,
576
+                          dialysis_machine_name:"",
577
+
530 578
                         };
531 579
                         that.scheduleZone[index].Tue_M = {
532 580
                             mode_id: 0,
533 581
                             mode_name: "",
534 582
                             patient_id: 0,
535 583
                             patient: "",
536
-                            type:1
584
+                            type:1,
585
+                          dialysis_machine_name:"",
586
+
537 587
                         };
538 588
                         that.scheduleZone[index].Tue_A = {
539 589
                             mode_id: 0,
540 590
                             mode_name: "",
541 591
                             patient_id: 0,
542 592
                             patient: "",
543
-                            type:1
593
+                            type:1,
594
+                          dialysis_machine_name:"",
595
+
544 596
                         };
545 597
                         that.scheduleZone[index].Tue_N = {
546 598
                             mode_id: 0,
547 599
                             mode_name: "",
548 600
                             patient_id: 0,
549 601
                             patient: "",
550
-                            type:1
602
+                            type:1,
603
+                          dialysis_machine_name:"",
604
+
551 605
                         };
552 606
                         that.scheduleZone[index].Wed_M = {
553 607
                             mode_id: 0,
554 608
                             mode_name: "",
555 609
                             patient_id: 0,
556 610
                             patient: "",
557
-                            type:1
611
+                            type:1,
612
+                          dialysis_machine_name:"",
613
+
558 614
                         };
559 615
                         that.scheduleZone[index].Wed_A = {
560 616
                             mode_id: 0,
561 617
                             mode_name: "",
562 618
                             patient_id: 0,
563 619
                             patient: "",
564
-                            type:1
620
+                            type:1,
621
+                          dialysis_machine_name:"",
622
+
565 623
                         };
566 624
                         that.scheduleZone[index].Wed_N = {
567 625
                             mode_id: 0,
568 626
                             mode_name: "",
569 627
                             patient_id: 0,
570 628
                             patient: "",
571
-                            type:1
629
+                            type:1,
630
+                          dialysis_machine_name:"",
631
+
572 632
                         };
573 633
                         that.scheduleZone[index].Thurs_M = {
574 634
                             mode_id: 0,
575 635
                             mode_name: "",
576 636
                             patient_id: 0,
577 637
                             patient: "",
578
-                            type:1
638
+                            type:1,
639
+                          dialysis_machine_name:"",
640
+
579 641
                         };
580 642
                         that.scheduleZone[index].Thurs_A = {
581 643
                             mode_id: 0,
582 644
                             mode_name: "",
583 645
                             patient_id: 0,
584 646
                             patient: "",
585
-                            type:1
647
+                            type:1,
648
+                          dialysis_machine_name:"",
649
+
586 650
                         };
587 651
                         that.scheduleZone[index].Thurs_N = {
588 652
                             mode_id: 0,
589 653
                             mode_name: "",
590 654
                             patient_id: 0,
591 655
                             patient: "",
592
-                            type:1
656
+                            type:1,
657
+                          dialysis_machine_name:"",
658
+
593 659
                         };
594 660
                         that.scheduleZone[index].Fri_M = {
595 661
                             mode_id: 0,
596 662
                             mode_name: "",
597 663
                             patient_id: 0,
598 664
                             patient: "",
599
-                            type:1
665
+                            type:1,
666
+                          dialysis_machine_name:"",
667
+
600 668
                         };
601 669
                         that.scheduleZone[index].Fri_A = {
602 670
                             mode_id: 0,
603 671
                             mode_name: "",
604 672
                             patient_id: 0,
605 673
                             patient: "",
606
-                            type:1
674
+                            type:1,
675
+                          dialysis_machine_name:"",
676
+
607 677
                         };
608 678
                         that.scheduleZone[index].Fri_N = {
609 679
                             mode_id: 0,
610 680
                             mode_name: "",
611 681
                             patient_id: 0,
612 682
                             patient: "",
613
-                            type:1
683
+                            type:1,
684
+                          dialysis_machine_name:"",
685
+
614 686
                         };
615 687
                         that.scheduleZone[index].Sat_M = {
616 688
                             mode_id: 0,
617 689
                             mode_name: "",
618 690
                             patient_id: 0,
619 691
                             patient: "",
620
-                            type:1
692
+                            type:1,
693
+                          dialysis_machine_name:"",
694
+
621 695
                         };
622 696
                         that.scheduleZone[index].Sat_A = {
623 697
                             mode_id: 0,
624 698
                             mode_name: "",
625 699
                             patient_id: 0,
626 700
                             patient: "",
627
-                            type:1
701
+                            type:1,
702
+                          dialysis_machine_name:"",
703
+
628 704
                         };
629 705
                         that.scheduleZone[index].Sat_N = {
630 706
                             mode_id: 0,
631 707
                             mode_name: "",
632 708
                             patient_id: 0,
633 709
                             patient: "",
634
-                            type:1
710
+                            type:1,
711
+                          dialysis_machine_name:"",
712
+
635 713
                         };
636 714
                         that.scheduleZone[index].Sun_A = {
637 715
                             mode_id: 0,
638 716
                             mode_name: "",
639 717
                             patient_id: 0,
640 718
                             patient: "",
641
-                            type:1
719
+                            type:1,
720
+                          dialysis_machine_name:"",
721
+
642 722
                         };
643 723
                         that.scheduleZone[index].Sun_N = {
644 724
                             mode_id: 0,
645 725
                             mode_name: "",
646 726
                             patient_id: 0,
647 727
                             patient: "",
648
-                            type:1
728
+                            type:1,
729
+                          dialysis_machine_name:"",
730
+
649 731
                         };
650 732
                         that.scheduleZone[index].Sun_M = {
651 733
                             mode_id: 0,
652 734
                             mode_name: "",
653 735
                             patient_id: 0,
654 736
                             patient: "",
655
-                            type:1
737
+                            type:1,
738
+                          dialysis_machine_name:"",
739
+
740
+
656 741
                         };
657 742
                         that.scheduleZone[index].total = 0;
658 743
 
@@ -676,7 +761,8 @@ export default {
676 761
                                         patient_id: schedule.patient_id,
677 762
                                         patient: schedule.patient,
678 763
                                         patient_contagions: schedule.patient_contagions,
679
-                                        mode_name:typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name
764
+                                          dialysis_machine_name: schedule.dialysis_machine_name,
765
+                                          mode_name:typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name
680 766
                                         };
681 767
                                         that.scheduleZone[index].total += 1;
682 768
 
@@ -1020,7 +1106,7 @@ export default {
1020 1106
           for(let i=0;i<this.solutionList.length;i++){
1021 1107
             if(patient_id == 0){
1022 1108
               return ""
1023
-            }  
1109
+            }
1024 1110
             if(patient_id == this.solutionList[i].patient_id && mode == this.solutionList[i].mode_name){
1025 1111
                if(this.solutionList[i].dialyzer_perfusion_apparatus!=""){
1026 1112
                  diazers = this.solutionList[i].dialyzer_perfusion_apparatus
@@ -1028,7 +1114,7 @@ export default {
1028 1114
                }else{
1029 1115
                  diazers = this.solutionList[i].dialysis_dialyszers
1030 1116
                  irrigation = this.solutionList[i].dialysis_irrigation
1031
-               
1117
+
1032 1118
                }
1033 1119
 
1034 1120
             }
@@ -1036,7 +1122,7 @@ export default {
1036 1122
           if(irrigation!=""){
1037 1123
              return diazers + "/" + irrigation
1038 1124
           }else{
1039
-            return diazers 
1125
+            return diazers
1040 1126
           }
1041 1127
         }
1042 1128
     }

文件差異過大導致無法顯示
+ 3578 - 2076
src/xt_pages/workforce/template.vue