Przeglądaj źródła

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

csx 3 lat temu
rodzic
commit
7e7b69cc21
73 zmienionych plików z 5888 dodań i 575 usunięć
  1. 3 2
      src/api/advice.js
  2. 31 3
      src/api/config.js
  3. 1 0
      src/api/dialysis.js
  4. 82 0
      src/api/his/his_config.js
  5. 18 0
      src/api/schedule.js
  6. BIN
      src/assets/home/111.jpg
  7. BIN
      src/assets/home/222.jpg
  8. 2 0
      src/lang/zh.js
  9. 12 0
      src/router/modules/dialysis.js
  10. 18 0
      src/router/modules/outpatientDoctorStation.js
  11. 15 0
      src/store/modules/globalConfig.js
  12. 95 7
      src/xt_pages/data/basicConfig.vue
  13. 30 9
      src/xt_pages/data/components/addInspection.vue
  14. 47 19
      src/xt_pages/data/druguseTemplate.vue
  15. 3 3
      src/xt_pages/data/prescription.vue
  16. 5 3
      src/xt_pages/data/printTemplate.vue
  17. 165 0
      src/xt_pages/data/printTemplate/schedulePrint.vue
  18. 1 0
      src/xt_pages/dialysis/PatientBox.vue
  19. 9 1
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  20. 42 14
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  21. 1516 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyNine.vue
  22. 12 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  23. 10 0
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  24. 6 0
      src/xt_pages/dialysis/details/assessmentBefore.vue
  25. 2 2
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  26. 7 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  27. 55 6
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  28. 4 1
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  29. 4 2
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  30. 1 0
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  31. 10 0
      src/xt_pages/dialysis/details/index.vue
  32. 3 2
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  33. 24 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  34. 2523 0
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  35. 29 10
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  36. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  37. 10 2
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  38. 8 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  39. 2 1
      src/xt_pages/hospitalStation/components/callPrescription.vue
  40. 20 13
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  41. 2 1
      src/xt_pages/hospitalStation/components/nextOrLastPrescription.vue
  42. 18 6
      src/xt_pages/hospitalStation/doctorDesk.vue
  43. 1 3
      src/xt_pages/outpatientCharges/components/prescriptionTable.vue
  44. 16 33
      src/xt_pages/outpatientCharges/newStatementPrint.vue
  45. 133 133
      src/xt_pages/outpatientCharges/statementPrint.vue
  46. 12 9
      src/xt_pages/outpatientCharges/summary.vue
  47. 3 1
      src/xt_pages/outpatientDoctorStation/components/callPrescription.vue
  48. 206 155
      src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue
  49. 2 1
      src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue
  50. 108 25
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  51. 2 2
      src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue
  52. 61 20
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  53. 8 3
      src/xt_pages/outpatientDoctorStation/print.vue
  54. 330 0
      src/xt_pages/outpatientDoctorStation/template/printFour.vue
  55. 1 1
      src/xt_pages/qcd/basicInformationAnalysis.vue
  56. 3 1
      src/xt_pages/role/components/AdminInfoForm.vue
  57. 3 1
      src/xt_pages/stock/detail/print.vue
  58. 8 5
      src/xt_pages/stock/detail/stockOutDetail.vue
  59. 1 0
      src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue
  60. 7 10
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  61. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  62. 1 0
      src/xt_pages/stock/drugs/drugStockInOrderEdit.vue
  63. 3 5
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  64. 2 1
      src/xt_pages/stock/stockOutOrderDetailPrint.vue
  65. 1 6
      src/xt_pages/stock/stockQuery.vue
  66. 54 6
      src/xt_pages/user/dialysisSolution.vue
  67. 28 13
      src/xt_pages/workforce/appointment.vue
  68. 4 1
      src/xt_pages/workforce/components/nextTableWeeks.vue
  69. 3 0
      src/xt_pages/workforce/components/tableData.vue
  70. 5 2
      src/xt_pages/workforce/components/tableWeeks.vue
  71. 4 1
      src/xt_pages/workforce/next_remind_print.vue
  72. 5 2
      src/xt_pages/workforce/remind_print.vue
  73. 25 24
      src/xt_pages/workforce/scheduleTablePrint.vue

+ 3 - 2
src/api/advice.js Wyświetl plik

212
   });
212
   });
213
 }
213
 }
214
 
214
 
215
-export function postAdviceTemplate(params, name, advice_type) {
215
+export function postAdviceTemplate(params, name,sort, advice_type) {
216
   return request({
216
   return request({
217
     url:
217
     url:
218
       "/api/advicetemplate/create?template_name=" +
218
       "/api/advicetemplate/create?template_name=" +
219
       name +
219
       name +
220
       "&advice_type=" +
220
       "&advice_type=" +
221
-      advice_type,
221
+      advice_type
222
+      +"&sort="+sort,
222
     method: "post",
223
     method: "post",
223
     data: params
224
     data: params
224
   });
225
   });

+ 31 - 3
src/api/config.js Wyświetl plik

148
 
148
 
149
 
149
 
150
 export function getMonitorConfig(params){
150
 export function getMonitorConfig(params){
151
-  
151
+
152
   return request({
152
   return request({
153
     url:"/api/monitor/getmonitorconfig",
153
     url:"/api/monitor/getmonitorconfig",
154
     method:"Get",
154
     method:"Get",
158
 
158
 
159
 
159
 
160
 export function addOrderConfig(params){
160
 export function addOrderConfig(params){
161
-  
161
+
162
   return request({
162
   return request({
163
     url:"/api/order/addorderconfig",
163
     url:"/api/order/addorderconfig",
164
     method:"Get",
164
     method:"Get",
168
 }
168
 }
169
 
169
 
170
 export function getOrderConfig(params){
170
 export function getOrderConfig(params){
171
-  
171
+
172
   return request({
172
   return request({
173
     url:"/api/order/getorderconfig",
173
     url:"/api/order/getorderconfig",
174
     method:"get",
174
     method:"get",
176
   })
176
   })
177
 }
177
 }
178
 
178
 
179
+export function changeFuncPrint(params){
180
+
181
+  return request({
182
+    url:"/api/order/changefuncprint",
183
+    method:"get",
184
+    params:params
185
+  })
186
+}
187
+
188
+export function getDataPrintList(params){
189
+
190
+  return request({
191
+    url:"/api/order/getdataprint",
192
+    method:"get",
193
+    params:params
194
+  })
195
+}
196
+
197
+
198
+
199
+export function postXtHisProjectIsOpen(params){
200
+
201
+  return request({
202
+    url:"/api/xtconfigproject/isopen",
203
+    method:"post",
204
+    params:params
205
+  })
206
+}

+ 1 - 0
src/api/dialysis.js Wyświetl plik

157
 }
157
 }
158
 
158
 
159
 export function postSoulution(params) {
159
 export function postSoulution(params) {
160
+  console.log("params",params)
160
   return request({
161
   return request({
161
     url: '/api/dialysis/soulution',
162
     url: '/api/dialysis/soulution',
162
     method: 'Post',
163
     method: 'Post',

+ 82 - 0
src/api/his/his_config.js Wyświetl plik

1
+import request from "@/utils/request";
2
+
3
+
4
+
5
+export function getPatientList(params) {
6
+  return request({
7
+    url: "/api/his/patient/list",
8
+    method: "get",
9
+    params:params
10
+  });
11
+}
12
+
13
+
14
+export function getPrescriptionTemplateList(params) {
15
+  return request({
16
+    url: "/api/his/prescriptiontemplate/list",
17
+    method: "get",
18
+    params:params
19
+  });
20
+}
21
+
22
+
23
+export function getPrescriptionTemplateInfo(params) {
24
+  return request({
25
+    url: "/api/his/prescriptiontemplate/info",
26
+    method: "get",
27
+    params:params
28
+  });
29
+}
30
+
31
+
32
+
33
+export function createdTemplate(params,data) {
34
+  return request({
35
+    url: "/api/his/prescriptiontemplate/create",
36
+    method: "post",
37
+    data:data,
38
+    params:params,
39
+  });
40
+}
41
+
42
+
43
+
44
+
45
+export function delHisPrescriptionTemplate(params) {
46
+  return request({
47
+    url: "/api/his/prescriptiontemplate/delete",
48
+    method: "post",
49
+    params:params,
50
+  });
51
+}
52
+
53
+
54
+
55
+export function delHisPrescriptionInfoTemplate(params) {
56
+  return request({
57
+    url: "/api/his/prescriptioninfotemplate/delete",
58
+    method: "post",
59
+    params:params,
60
+  });
61
+}
62
+
63
+
64
+
65
+
66
+export function delHisPrescriptionAdviceTemplate(params) {
67
+  return request({
68
+    url: "/api/his/advicetemplate/delete",
69
+    method: "post",
70
+    params:params,
71
+  });
72
+}
73
+
74
+
75
+
76
+export function delHisPrescriptionProjectTemplate(params) {
77
+  return request({
78
+    url: "/api/his/projecttemplate/delete",
79
+    method: "post",
80
+    params:params,
81
+  });
82
+}

+ 18 - 0
src/api/schedule.js Wyświetl plik

220
     method:"get",
220
     method:"get",
221
     params:params
221
     params:params
222
   })
222
   })
223
+}
224
+
225
+export function postScheduleTemplate(params){
226
+   
227
+  return request({
228
+    url:"/api/schedule/postscheduletemplate",
229
+    method:"get",
230
+    params:params
231
+  })
232
+}
233
+
234
+export function getScheduleTemplate(params){
235
+  
236
+  return request({
237
+    url:"/api/schedule/getscheduletemplate",
238
+    method:"get",
239
+    params:params,
240
+  })
223
 }
241
 }

BIN
src/assets/home/111.jpg Wyświetl plik


BIN
src/assets/home/222.jpg Wyświetl plik


+ 2 - 0
src/lang/zh.js Wyświetl plik

247
     hospitalStation:"住院工作站",
247
     hospitalStation:"住院工作站",
248
     pastInquiries:"既往查询",
248
     pastInquiries:"既往查询",
249
 
249
 
250
+    prescriptionTemplate:"处方模版",
251
+
250
   },
252
   },
251
   navbar: {
253
   navbar: {
252
     logOut: '退出登录',
254
     logOut: '退出登录',

+ 12 - 0
src/router/modules/dialysis.js Wyświetl plik

399
         noCache: true
399
         noCache: true
400
       }
400
       }
401
     },
401
     },
402
+    {
403
+      path: '/dialysis/print/batch/thirtyNine',
404
+      component: () =>
405
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_thirtyNine'),
406
+      hidden: true,
407
+      is_menu: false,
408
+      name: 'batch_print_order_thirtyNine',
409
+      meta: {
410
+        title: '批量打印',
411
+        noCache: true
412
+      }
413
+    },
402
     {
414
     {
403
       path: '/dialysis/print/batch/thirtyThree_one',
415
       path: '/dialysis/print/batch/thirtyThree_one',
404
       component: () =>
416
       component: () =>

+ 18 - 0
src/router/modules/outpatientDoctorStation.js Wyświetl plik

24
         name: 'outpatientDoctorStationPastInquiries',
24
         name: 'outpatientDoctorStationPastInquiries',
25
         meta: { title: 'outpatientDoctorStationPastInquiries', noCache: true }
25
         meta: { title: 'outpatientDoctorStationPastInquiries', noCache: true }
26
     },
26
     },
27
+    {
28
+      path: '/outpatientDoctorStation/prescriptionTemplate',
29
+      component: () => import('@/xt_pages/outpatientDoctorStation/prescriptionTemplate'),
30
+      name: 'prescriptionTemplate',
31
+      meta: { title: 'prescriptionTemplate', noCache: true }
32
+    },
33
+
34
+    {
35
+      path: '/outpatientDoctorStation/prescriptionTemplatedetail',
36
+      component: () => import('@/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail'),
37
+      name: 'prescriptionTemplatedetail',
38
+      hidden: true,
39
+      is_menu: false,
40
+      meta: { title: 'prescriptionTemplatedetail', noCache: true }
41
+    },
42
+
43
+
44
+
27
     {
45
     {
28
         path: '/outpatientDoctorStation/templateManagement',
46
         path: '/outpatientDoctorStation/templateManagement',
29
         component: () => import('@/xt_pages/outpatientDoctorStation/templateManagement'),
47
         component: () => import('@/xt_pages/outpatientDoctorStation/templateManagement'),

+ 15 - 0
src/store/modules/globalConfig.js Wyświetl plik

524
         sodium: 1,
524
         sodium: 1,
525
         calcium: 1,
525
         calcium: 1,
526
         bicarbonate: 1
526
         bicarbonate: 1
527
+      },
528
+      22: {
529
+        id: 22,
530
+        name: '血浆胆红素吸附+HDF',
531
+        dialysis_duration: 1,
532
+        replacement_way: 1,
533
+        hemodialysis_machine: 2,
534
+        blood_filter: 1,
535
+        perfusion_apparatus: 2,
536
+        blood_flow_volume: 1,
537
+        dialysate_flow: 1,
538
+        kalium: 1,
539
+        sodium: 1,
540
+        calcium: 1,
541
+        bicarbonate: 1
527
       }
542
       }
528
     },
543
     },
529
     anticoagulants_confit: { // 抗凝剂
544
     anticoagulants_confit: { // 抗凝剂

+ 95 - 7
src/xt_pages/data/basicConfig.vue Wyświetl plik

15
             <p style="font-size:18px;font-weight:bold">门诊打印</p>
15
             <p style="font-size:18px;font-weight:bold">门诊打印</p>
16
             <p style="font-size:14px;margin-top:5px;color:#333;">开启直接打印后,门诊病历、处方、治疗单、处置单、收费清单等打印时跳过打印预览,直接连接打印机打印。</p>
16
             <p style="font-size:14px;margin-top:5px;color:#333;">开启直接打印后,门诊病历、处方、治疗单、处置单、收费清单等打印时跳过打印预览,直接连接打印机打印。</p>
17
             <p style="margin-top:20px;">直接打印:
17
             <p style="margin-top:20px;">直接打印:
18
-                <el-switch v-model="value"></el-switch>
18
+                <el-switch v-model="is_open_print" @change="changeFuncPrint"></el-switch>
19
             </p>
19
             </p>
20
         </div>
20
         </div>
21
         <div class="configBox">
21
         <div class="configBox">
26
           </p>
26
           </p>
27
         </div>
27
         </div>
28
 
28
 
29
+        <div class="configBox">
30
+            <p style="font-size:18px;font-weight:bold">处方项目同步到临时医嘱</p>
31
+            <p style="font-size:14px;margin-top:5px;color:#333;">开启门诊处方的项目同步后,护士则在血透的临时医嘱中可以看到相关的耗材/检验检查数据</p>
32
+            <p style="margin-top:20px;">门诊处方项目同步到透析医嘱:
33
+                <el-switch v-model="is_open_xt_his_project" @change="changeFuncProject"></el-switch>
34
+            </p>
35
+        </div>
36
+
37
+
29
         <!-- <div class="configBox">
38
         <!-- <div class="configBox">
30
           <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
39
           <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
31
           <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
40
           <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
71
                 <!--<el-switch v-model="value"></el-switch>-->
80
                 <!--<el-switch v-model="value"></el-switch>-->
72
             <!--</p>-->
81
             <!--</p>-->
73
         <!--</div>-->
82
         <!--</div>-->
74
-        
83
+
75
     </div>
84
     </div>
76
   </div>
85
   </div>
77
 </template>
86
 </template>
78
 
87
 
79
 <script>
88
 <script>
80
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
89
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
81
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen} from '@/api/config'
90
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen} from '@/api/config'
82
 
91
 
83
 export default {
92
 export default {
84
   name: "printTemplate",
93
   name: "printTemplate",
94
       is_open_xt_his:false,
103
       is_open_xt_his:false,
95
       is_open_monitor:false,
104
       is_open_monitor:false,
96
       is_open_order:false,
105
       is_open_order:false,
106
+      is_open_print:false,
107
+      is_open_xt_his_project: false,
97
     };
108
     };
98
   },
109
   },
99
   methods: {
110
   methods: {
103
           if (response.data.state === 1) {
114
           if (response.data.state === 1) {
104
             if(response.data.data.is_open_xt_his == 1) {
115
             if(response.data.data.is_open_xt_his == 1) {
105
               this.is_open_xt_his = true
116
               this.is_open_xt_his = true
117
+
106
             }else{
118
             }else{
107
               this.is_open_xt_his = false
119
               this.is_open_xt_his = false
108
             }
120
             }
109
 
121
 
122
+            if(response.data.data.is_open_xt_his_project == 1) {
123
+              this.is_open_xt_his_project = true
124
+
125
+            }else{
126
+              this.is_open_xt_his_project = false
127
+            }
128
+
110
           } else {
129
           } else {
111
             this.$message.error(response.data.msg)
130
             this.$message.error(response.data.msg)
112
           }
131
           }
145
         )
164
         )
146
       }
165
       }
147
     },
166
     },
167
+    changeFuncProject(val){
168
+      if(this.is_open_xt_his_project){
169
+        let params={
170
+          is_open:this.is_open_xt_his_project
171
+        }
172
+        postXtHisProjectIsOpen(params).then(
173
+          response => {
174
+            if (response.data.state === 1) {
175
+              this.is_open_xt_his_project = response.data.data.is_open
176
+
177
+            } else {
178
+              this.$message.error(response.data.msg)
179
+            }
180
+          }
181
+        )
182
+      }else{
183
+        let params={
184
+          is_open:this.is_open_xt_his_project
185
+        }
186
+        postXtHisProjectIsOpen(params).then(
187
+          response => {
188
+            if (response.data.state === 1) {
189
+              this.is_open_xt_his_project = response.data.data.is_open
190
+
191
+            } else {
192
+              this.$message.error(response.data.msg)
193
+            }
194
+          }
195
+        )
196
+      }
197
+    },
198
+
148
 
199
 
149
     changeFuncTwo(){
200
     changeFuncTwo(){
150
       console.log("3333333",this.is_open_monitor)
201
       console.log("3333333",this.is_open_monitor)
192
        }
243
        }
193
       let params = {
244
       let params = {
194
          is_open:is_open,
245
          is_open:is_open,
195
-       } 
246
+       }
196
       addOrderConfig(params).then(response=>{
247
       addOrderConfig(params).then(response=>{
197
          if(response.data.state == 1){
248
          if(response.data.state == 1){
198
            var config = response.data.data.config
249
            var config = response.data.data.config
213
            }
264
            }
214
         }
265
         }
215
       })
266
       })
267
+    },
268
+
269
+    changeFuncPrint(val){
270
+      console.log("val22222",val)
271
+      var is_open  = 0
272
+      if(val == true){
273
+         is_open = 1
274
+      }
275
+      if(val == false){
276
+        is_open = 0
277
+      }
278
+      var params = {
279
+        is_open:is_open,
280
+      }
281
+
282
+      changeFuncPrint(params).then(response=>{
283
+         if(response.data.state == 1){
284
+           var dataPrint =  response.data.data.dataPrint
285
+           this.$message.success("保存成功")
286
+           this.getDataPrintList()
287
+         }
288
+      })
289
+    },
290
+
291
+    getDataPrintList(){
292
+      getDataPrintList().then(response=>{
293
+         if(response.data.state ==1){
294
+           var dataPrint = response.data.data.dataPrint
295
+           console.log("列表数据",dataPrint)
296
+           if(dataPrint.is_open == 1){
297
+              this.is_open_print = true
298
+           }
299
+           if(dataPrint.is_open == 0){
300
+              this.is_open_print = false
301
+           }
302
+         }
303
+      })
216
     }
304
     }
217
 
305
 
218
   },
306
   },
219
   created() {
307
   created() {
220
     this.getInitIsOpenConfig()
308
     this.getInitIsOpenConfig()
221
-    this.getMonitorConfig()
222
-    this.getOrderConfig()
223
-
309
+    // this.getMonitorConfig()
310
+    // this.getOrderConfig()
311
+    this.getDataPrintList()
224
   }
312
   }
225
 };
313
 };
226
 </script>
314
 </script>

+ 30 - 9
src/xt_pages/data/components/addInspection.vue Wyświetl plik

46
                 </el-form-item>
46
                 </el-form-item>
47
 
47
 
48
                 <el-form-item label="组套明细" style="width:50%;">
48
                 <el-form-item label="组套明细" style="width:50%;">
49
-                    <el-select v-model="form.project_detail" placeholder="请选择">
50
-                        <el-option
51
-                                v-for="item in projectList"
52
-                                :key="item.id"
53
-                                :label="item.project_name"
54
-                                :value="item.id">
55
-                        </el-option>
56
-                    </el-select>
49
+                    <el-autocomplete
50
+                            class="inline-input"
51
+                            v-model="form.project_detail"
52
+                            :fetch-suggestions="querySearch"
53
+                            placeholder="请输入内容"
54
+                            @select="handleSelect"
55
+                    ></el-autocomplete>
57
 
56
 
58
                 </el-form-item>
57
                 </el-form-item>
58
+
59
+
59
                 <el-form-item label="数量" style="width:50%;">
60
                 <el-form-item label="数量" style="width:50%;">
60
                     <div style="display:flex;">
61
                     <div style="display:flex;">
61
                         <el-input v-model="form.number" style="margin-right:10px;"></el-input>
62
                         <el-input v-model="form.number" style="margin-right:10px;"></el-input>
131
   export default {
132
   export default {
132
     data() {
133
     data() {
133
       return {
134
       return {
135
+        project_name:"",
134
         visible: false,
136
         visible: false,
135
         formTitle: '',
137
         formTitle: '',
136
         activeName: 'first',
138
         activeName: 'first',
165
       }
167
       }
166
     },
168
     },
167
     methods: {
169
     methods: {
170
+      querySearch(queryString, cb) {
171
+        var restaurants = this.projectList;
172
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
173
+        // 调用 callback 返回建议列表的数据
174
+        cb(results);
175
+
176
+      }, createFilter(queryString) {
177
+        return (restaurant) => {
178
+          return (restaurant.project_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
179
+        };
180
+      },
181
+      handleSelect(val){
182
+        this.project_name = val.project_name
183
+        this.form.project_detail = val.id
184
+      },
168
       getDataConfig(module, filed_name) {
185
       getDataConfig(module, filed_name) {
169
         return getDataConfig(module, filed_name)
186
         return getDataConfig(module, filed_name)
170
       },
187
       },
223
         })
240
         })
224
       },
241
       },
225
       getlist() {
242
       getlist() {
226
-        getAllProjectList().then(response => {
243
+        let params = {
244
+          keyword: ""
245
+
246
+        }
247
+        getAllProjectList(params).then(response => {
227
           if (response.data.state == 1) {
248
           if (response.data.state == 1) {
228
             var projectList = response.data.data.projectList
249
             var projectList = response.data.data.projectList
229
             var goodInfos = response.data.data.good_info
250
             var goodInfos = response.data.data.good_info

+ 47 - 19
src/xt_pages/data/druguseTemplate.vue Wyświetl plik

129
                 prop="amount1"
129
                 prop="amount1"
130
                 align="center"
130
                 align="center"
131
                 label="药品规格">
131
                 label="药品规格">
132
-                <!-- {{drugDesc(scope.row)}} -->
133
                 <template slot-scope="scope">
132
                 <template slot-scope="scope">
134
                   <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
133
                   <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
135
                 </template>
134
                 </template>
189
                 </template>
188
                 </template>
190
               </el-table-column>
189
               </el-table-column>
191
 
190
 
191
+             <el-table-column prop="blood_flow_volume" align="center" label="排序">
192
+                <template slot-scope="scope">
193
+                  <span v-if="scope.row.sort == 0"></span>
194
+                  <span v-if="scope.row.sort!=0">{{scope.row.sort}}</span>
195
+                </template>
196
+              </el-table-column>
197
+
192
               <el-table-column
198
               <el-table-column
193
                 align="center"
199
                 align="center"
194
                 label="操作"
200
                 label="操作"
228
                   <el-form-item label="模版名称" style="width: 300px" prop="name">
234
                   <el-form-item label="模版名称" style="width: 300px" prop="name">
229
                     <el-input v-model="form.name"></el-input>
235
                     <el-input v-model="form.name"></el-input>
230
                   </el-form-item>
236
                   </el-form-item>
231
-
237
+                 <el-form-item label="排序" style="width: 300px" prop="name">
238
+                    <el-input v-model="form.sort" v-type="number"></el-input>
239
+                  </el-form-item>
232
                   <el-form-item label="模版类型" prop="advice_type">
240
                   <el-form-item label="模版类型" prop="advice_type">
233
                     <el-radio-group v-model="form.advice_type">
241
                     <el-radio-group v-model="form.advice_type">
234
                       <el-radio :label="0">临时</el-radio>
242
                       <el-radio :label="0">临时</el-radio>
711
             <!--增删改查都请求网络类型的dialog-->
719
             <!--增删改查都请求网络类型的dialog-->
712
             <el-dialog title="编辑医嘱模版" :visible.sync="templateTableTwoVisible" width="800px">
720
             <el-dialog title="编辑医嘱模版" :visible.sync="templateTableTwoVisible" width="800px">
713
               <div>
721
               <div>
714
-                <!--<el-form ref="form" :model="form" :rule="formRules" label-width="100px">-->
715
-                <!--<el-form-item label="模版名称" style="width: 300px" prop="name">-->
716
-                <!--<el-input v-model="form.name" ></el-input>-->
717
-                <!--</el-form-item>-->
718
-                <!--</el-form>-->
722
+                <el-form ref="form" :model="form" :rule="formRules" label-width="100px">
723
+                  <el-form-item label="模版名称" style="width: 300px" prop="name">
724
+                    <el-input v-model="form.name" ></el-input>
725
+                  </el-form-item>
726
+
727
+                   <el-form-item label="排序" style="width: 300px" prop="name">
728
+                    <el-input v-model="form.sort" ></el-input>
729
+                   </el-form-item>
730
+                </el-form>
719
 
731
 
720
 
732
 
721
                 <div class="txsj" style="text-align: center;margin-bottom: 30px">
733
                 <div class="txsj" style="text-align: center;margin-bottom: 30px">
1448
         },
1460
         },
1449
         form: {
1461
         form: {
1450
           name: '',
1462
           name: '',
1451
-          advice_type: 0
1452
-
1463
+          advice_type: 0,
1464
+          sort:"",
1453
         },
1465
         },
1454
         drugwayForm: {
1466
         drugwayForm: {
1455
           name: '',
1467
           name: '',
1669
         const params = {
1681
         const params = {
1670
           'data': this.adviceTableData
1682
           'data': this.adviceTableData
1671
         }
1683
         }
1672
-
1684
+       
1673
         let name = encodeURIComponent(this.form.name)
1685
         let name = encodeURIComponent(this.form.name)
1674
         console.log("params",params)
1686
         console.log("params",params)
1675
-
1676
-        postAdviceTemplate(params, name, this.form.advice_type).then(response => {
1687
+        let sort = this.form.sort
1688
+        postAdviceTemplate(params, name,sort, this.form.advice_type).then(response => {
1677
 
1689
 
1678
           if (response.data.state == 0) {
1690
           if (response.data.state == 0) {
1679
             this.$message.error(response.data.msg)
1691
             this.$message.error(response.data.msg)
1691
                 }
1703
                 }
1692
                 object['name'] = template.name
1704
                 object['name'] = template.name
1693
                 object['isNoSub'] = 2
1705
                 object['isNoSub'] = 2
1706
+                object['sort'] = template.sort
1694
                 this.adviceTemplates.unshift(object)
1707
                 this.adviceTemplates.unshift(object)
1695
               }
1708
               }
1696
             }
1709
             }
2145
                 object['name'] = response.data.data.advice_templates[i].name
2158
                 object['name'] = response.data.data.advice_templates[i].name
2146
                 object['isNoSub'] = 1
2159
                 object['isNoSub'] = 1
2147
                 object['template_id'] = response.data.data.advice_templates[i].id
2160
                 object['template_id'] = response.data.data.advice_templates[i].id
2161
+                object['sort'] = response.data.data.advice_templates[i].sort
2148
                 this.adviceTemplates.push(object)
2162
                 this.adviceTemplates.push(object)
2149
               }
2163
               }
2150
 
2164
 
2158
                   }
2172
                   }
2159
                   object['isNoSub'] = 2
2173
                   object['isNoSub'] = 2
2160
                   object['name'] = response.data.data.advice_templates[i].name
2174
                   object['name'] = response.data.data.advice_templates[i].name
2175
+                  object['sort'] = response.data.data.advice_templates[i].sort
2161
                   this.adviceTemplates.push(object)
2176
                   this.adviceTemplates.push(object)
2177
+
2178
+
2162
                 }
2179
                 }
2163
               }
2180
               }
2164
             }
2181
             }
2165
-
2166
-            console.log(this.adviceTemplates)
2167
-
2182
+             this.adviceTemplates.sort(this.sortData)
2183
+             console.log("列表",this.adviceTemplates)
2168
             // 处理单元格合并的数据
2184
             // 处理单元格合并的数据
2169
             this.handleSpanTempArr()
2185
             this.handleSpanTempArr()
2170
           }
2186
           }
2462
             return 'success-row'
2478
             return 'success-row'
2463
           }
2479
           }
2464
         }
2480
         }
2465
-      }, cellMouseEnter: function(row, column, cell, event) {
2481
+      }, 
2482
+      cellMouseEnter: function(row, column, cell, event) {
2466
         if (column.label == '模版名称') {
2483
         if (column.label == '模版名称') {
2467
           this.sameRowArr.forEach((arr, i) => {
2484
           this.sameRowArr.forEach((arr, i) => {
2468
             if (arr.indexOf(row.index) != -1) {
2485
             if (arr.indexOf(row.index) != -1) {
2678
         this.sameRowArr = sameRowArr
2695
         this.sameRowArr = sameRowArr
2679
       },
2696
       },
2680
        handleUpdateAdviceTemplate(row, index) {
2697
        handleUpdateAdviceTemplate(row, index) {
2698
+       
2681
         this.current_template_id = row.template_id
2699
         this.current_template_id = row.template_id
2682
         this.current_template_name = row.name
2700
         this.current_template_name = row.name
2683
         this.form.name = row.name
2701
         this.form.name = row.name
2684
         this.form.advice_type = row.advice_type
2702
         this.form.advice_type = row.advice_type
2703
+        if(row.sort == 0){
2704
+          row.sort = ""
2705
+        }else{
2706
+          this.form.sort = row.sort
2707
+        }
2685
         this.templateTableTwoVisible = true
2708
         this.templateTableTwoVisible = true
2686
         this.adviceTableDataTwo = []
2709
         this.adviceTableDataTwo = []
2710
+      
2687
         for (let i = 0; i < this.adviceTemplates.length; i++) {
2711
         for (let i = 0; i < this.adviceTemplates.length; i++) {
2688
           if (this.adviceTemplates[i].template_id == row.template_id) {
2712
           if (this.adviceTemplates[i].template_id == row.template_id) {
2689
             this.adviceTableDataTwo.push(this.adviceTemplates[i])
2713
             this.adviceTableDataTwo.push(this.adviceTemplates[i])
2690
           }
2714
           }
2691
         }
2715
         }
2716
+        this.getAdviceConfig()
2692
       },
2717
       },
2693
       modifyTemplateName() {
2718
       modifyTemplateName() {
2694
         const params = {
2719
         const params = {
2695
           template_name: this.form.name,
2720
           template_name: this.form.name,
2696
-          template_id: this.current_template_id
2721
+          template_id: this.current_template_id,
2722
+          sort:this.form.sort,
2697
         }
2723
         }
2698
-        console.log("params---",params)
2699
-
2724
+      
2700
         updateTemplateName(params).then(response => {
2725
         updateTemplateName(params).then(response => {
2701
           if (response.data.state == 0) {
2726
           if (response.data.state == 0) {
2702
             this.$message.error(response.data.msg)
2727
             this.$message.error(response.data.msg)
2918
         console.log('results',results)
2943
         console.log('results',results)
2919
         cb(results);
2944
         cb(results);
2920
       },
2945
       },
2946
+     sortData(a, b) {
2947
+       return a.sort - b.sort
2948
+     }
2921
     }
2949
     }
2922
   }
2950
   }
2923
 </script>
2951
 </script>

+ 3 - 3
src/xt_pages/data/prescription.vue Wyświetl plik

229
                     </el-form-item>
229
                     </el-form-item>
230
                   </el-col>
230
                   </el-col>
231
 
231
 
232
-                  <el-col :span="8">
232
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id != 3877 && this.$store.getters.xt_user.template_info.org_id != 10090">
233
                     <el-form-item label="透析器/灌流器:">
233
                     <el-form-item label="透析器/灌流器:">
234
                       <el-input
234
                       <el-input
235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
237
                   </el-col>
237
                   </el-col>
238
 
238
 
239
 
239
 
240
-                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877">
240
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10090">
241
                     <el-form-item label="透析器:">
241
                     <el-form-item label="透析器:">
242
                       <el-input
242
                       <el-input
243
                         v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
243
                         v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
244
                     </el-form-item>
244
                     </el-form-item>
245
                   </el-col>
245
                   </el-col>
246
 
246
 
247
-                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877">
247
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10090">
248
                     <el-form-item label="灌流器:">
248
                     <el-form-item label="灌流器:">
249
                       <el-input
249
                       <el-input
250
                         v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
250
                         v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>

+ 5 - 3
src/xt_pages/data/printTemplate.vue Wyświetl plik

20
         <el-tab-pane label="透析记录单模板" name="4">
20
         <el-tab-pane label="透析记录单模板" name="4">
21
           <dialysis-print></dialysis-print>
21
           <dialysis-print></dialysis-print>
22
         </el-tab-pane>
22
         </el-tab-pane>
23
-       
23
+        <el-tab-pane label="排班打印模板" name="6">
24
+          <schedule-print></schedule-print>
25
+        </el-tab-pane>
24
       </el-tabs>
26
       </el-tabs>
25
     </div>
27
     </div>
26
   </div>
28
   </div>
33
 import treatPrint from './printTemplate/treatPrint'
35
 import treatPrint from './printTemplate/treatPrint'
34
 import dialysisPrint from './printTemplate/dialysisPrint'
36
 import dialysisPrint from './printTemplate/dialysisPrint'
35
 import chargePrint from './printTemplate/chargePrint'
37
 import chargePrint from './printTemplate/chargePrint'
36
-
38
+import schedulePrint from './printTemplate/schedulePrint'
37
 export default {
39
 export default {
38
   name: "printTemplate",
40
   name: "printTemplate",
39
-  components: { BreadCrumb,recordPrint,prescriptionPrint,treatPrint,dialysisPrint,chargePrint },
41
+  components: { BreadCrumb,recordPrint,prescriptionPrint,treatPrint,dialysisPrint,chargePrint,schedulePrint },
40
   data() {
42
   data() {
41
     return {
43
     return {
42
       showViewer:false,
44
       showViewer:false,

+ 165 - 0
src/xt_pages/data/printTemplate/schedulePrint.vue Wyświetl plik

1
+<template>
2
+    <div
3
+      v-loading="loading"
4
+      element-loading-text="服务器处理数据中,请稍候......."
5
+      element-loading-spinner="el-icon-loading"
6
+      element-loading-background="rgba(0, 0, 0, 0.8)"
7
+    >
8
+    <p style="margin-top: 10px;margin-bottom: 30px">
9
+        请选择你需要打印的排班打印单样式
10
+    </p>
11
+    <el-row :gutter="20" type="flex" justify="center">
12
+        <el-col :span="6" style="text-align: center">
13
+        <div
14
+            @click="imgClick('https://kuyi.shengws.com/tempSchedule1.jpg')"
15
+        >
16
+            <el-tooltip
17
+            class="item"
18
+            effect="dark"
19
+            :hide-after="2000"
20
+            content="点击查看大图"
21
+            placement="top-start"
22
+            >
23
+         
24
+            <el-image
25
+                style="width: 200px; height: 200px"
26
+                :src="require('@/assets/home/111.jpg')"
27
+            ></el-image>
28
+
29
+            </el-tooltip>
30
+        </div>
31
+        <el-radio v-model="radio" label="1" @change="change">模版一</el-radio>
32
+        </el-col>
33
+        <el-col
34
+        :span="6"
35
+        style="margin-left: 100px;margin-right: 100px;text-align: center"
36
+        >
37
+        <div
38
+            @click="imgClick('https://kuyi.shengws.com/tempSchedule2.jpg')"
39
+
40
+        >
41
+            <el-tooltip
42
+            class="item"
43
+            effect="dark"
44
+            content="点击查看大图"
45
+            placement="top-start"
46
+            :hide-after="2000"
47
+            >
48
+          
49
+
50
+            <el-image
51
+                style="width: 200px; height: 200px"
52
+                :src="require('@/assets/home/222.jpg')"
53
+            ></el-image>
54
+            </el-tooltip>
55
+        </div>
56
+        <el-radio v-model="radio" label="2" @change="change">模版二</el-radio
57
+        >
58
+        </el-col>
59
+    </el-row>
60
+   
61
+
62
+
63
+      <el-image-viewer
64
+        v-if="showViewer"
65
+        :on-close="closeViewer"
66
+        :url-list="imgs"
67
+      ></el-image-viewer>
68
+
69
+    </div>
70
+  </div>
71
+</template>
72
+
73
+<script>
74
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
75
+import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
76
+import { getScheduleTemplate, postScheduleTemplate } from "@/api/schedule";
77
+import store from "@/store";
78
+
79
+export default {
80
+  name: "printTemplate",
81
+  components: { ElImageViewer, BreadCrumb },
82
+  data() {
83
+    return {
84
+      showViewer:false,
85
+      crumbs: [
86
+        { path: false, name: "管理中心" },
87
+        { path: "data/print", name: "打印模版" }
88
+      ],
89
+      imgUrl_One: require("@/assets/home/111.jpg"),
90
+      imgUrl_Two: require("@/assets/home/222.jpg"),
91
+   
92
+
93
+      imgs:[],
94
+
95
+      imgs_one: ["https://kuyi.shengws.com/template1.png"],
96
+      imgs_two: ["https://kuyi.shengws.com/template2.png"],
97
+      delay: 500,
98
+      radio: 0,
99
+      tempRadio: 0,
100
+      loading: false
101
+    };
102
+  },
103
+  methods: {
104
+    imgClick(val){
105
+      this.imgs = []
106
+      this.imgs.push(val)
107
+      this.showViewer = true
108
+
109
+    },
110
+    closeViewer() {
111
+      this.showViewer = false
112
+    },
113
+    change: function(val) {
114
+       var params = {
115
+            template_id:val
116
+        }
117
+     postScheduleTemplate(params).then(response=>{
118
+         if(response.data.state == 1){
119
+            var template = response.data.data.template
120
+            this.$message.success("保存成功!")
121
+            this.getlist()
122
+         }   
123
+      })
124
+    },
125
+    getlist(){
126
+       getScheduleTemplate().then(response=>{
127
+          if(response.data.state == 1){
128
+            var template = response.data.data.template
129
+            console.log("template222222",template)
130
+            if(template.template_id == 0){
131
+               this.radio = "1"
132
+            }
133
+            if(template.template_id!=0){
134
+               this.radio = template.template_id.toString()
135
+            }
136
+           
137
+          }
138
+       })
139
+    }
140
+  },
141
+  created() {
142
+    this.getlist()
143
+  }
144
+};
145
+</script>
146
+
147
+<style scoped>
148
+.el-row {
149
+  margin-bottom: 20px;
150
+
151
+  & :last-child {
152
+    margin-bottom: 0;
153
+  }
154
+}
155
+.el-col {
156
+  border-radius: 4px;
157
+}
158
+</style>
159
+<style lang="scss">
160
+.app-print {
161
+  .el-radio__label {
162
+    padding-left: 10px;
163
+  }
164
+}
165
+</style>

+ 1 - 0
src/xt_pages/dialysis/PatientBox.vue Wyświetl plik

551
           this.getLongAdvice()
551
           this.getLongAdvice()
552
         } else {
552
         } else {
553
           this.$message.error(resp.msg);
553
           this.$message.error(resp.msg);
554
+         
554
         }
555
         }
555
 
556
 
556
         if (this.lastDialysisPrescribe != null) {
557
         if (this.lastDialysisPrescribe != null) {

+ 9 - 1
src/xt_pages/dialysis/batch_print/batch_print_order.vue Wyświetl plik

2049
 
2049
 
2050
 
2050
 
2051
           for (const index in this.records) {
2051
           for (const index in this.records) {
2052
+            for(const index2 in this.records[index].his_project){
2053
+              if(this.records[index].his_project[index2].type == 2){
2054
+                this.records[index].his_project[index2]['advice_name'] = this.records[index].his_project[index2].project.project_name
2055
+              }else if(this.records[index].his_project[index2].type == 3){
2056
+                this.records[index].his_project[index2]['advice_name'] =this.records[index].his_project[index2].good_info.good_name
2057
+              }
2058
+              this.records[index].his_project[index2]['advice_doctor'] = this.records[index].his_project[index2].doctor
2059
+            }
2052
             this.records[index].advices = this.records[index].advices.concat(this.records[index].his_advices)
2060
             this.records[index].advices = this.records[index].advices.concat(this.records[index].his_advices)
2061
+            this.records[index].advices = this.records[index].advices.concat(this.records[index].his_project)
2053
           }
2062
           }
2054
 
2063
 
2055
-
2056
           for (const recordIndex in this.records) {
2064
           for (const recordIndex in this.records) {
2057
             var dlegh = 0;
2065
             var dlegh = 0;
2058
             if (
2066
             if (

+ 42 - 14
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Wyświetl plik

81
               <div
81
               <div
82
                 class="under_line"
82
                 class="under_line"
83
                 style="width: 70px;text-align: left"
83
                 style="width: 70px;text-align: left"
84
-                v-if="record.patient.admission_number"
84
+                v-if="record.receive_assessment.admission_number"
85
               >
85
               >
86
-                {{ record.patient.admission_number }}
86
+                {{ record.receive_assessment.admission_number }}
87
               </div>
87
               </div>
88
               <div
88
               <div
89
                 class="under_line"
89
                 class="under_line"
556
                           >
556
                           >
557
                             IUF+HD
557
                             IUF+HD
558
                           </div>
558
                           </div>
559
+                           <div
560
+                            class="under_line"
561
+                            style="width: 100px;text-align: center;font-weight:600;"
562
+                            v-if="record.prescription.mode_id == 22"
563
+                          >
564
+                            血浆胆红素吸附+HDF
565
+                          </div>
559
                         </div>
566
                         </div>
560
                       </div>
567
                       </div>
561
 
568
 
656
                           {{record.prescription && record.prescription.dialysis_irrigation?record.prescription.dialysis_irrigation:"/"}}
663
                           {{record.prescription && record.prescription.dialysis_irrigation?record.prescription.dialysis_irrigation:"/"}}
657
                         </div>
664
                         </div>
658
                       </div>
665
                       </div>
659
-                      <div class="inline_block" style="flex:1;">
660
-                        干体重
666
+                      <div class="inline_block" style="flex:1;" v-if="org_id == 9538">
667
+                        血浆分离器
661
                         <div
668
                         <div
662
                           class="under_line"
669
                           class="under_line"
663
-                          style="width: 150px;text-align: center"
670
+                          style="width: 70px;text-align: center"
664
                         >
671
                         >
665
-                          {{
666
-                            record.assessment_before_dislysis &&
667
-                            record.assessment_before_dislysis.dry_weight
668
-                              ? record.assessment_before_dislysis.dry_weight
669
-                              : "/"
670
-                          }}
672
+                          <span v-if="record.prescription.plasma_separator ? record.prescription.plasma_separator != 0 && record.prescription.plasma_separator != '0' : false">{{ record.prescription.plasma_separator }}</span>
673
+                          <span v-else>/</span>
674
+                        </div>
675
+                      </div>
676
+                      <div class="inline_block" style="flex:1;" v-if="org_id == 9538">
677
+                        胆红素吸附柱:
678
+                        <div
679
+                          class="under_line"
680
+                          style="width: 70px;text-align: center"
681
+                        >
682
+                          <span v-if="record.prescription.bilirubin_adsorption_column ? record.prescription.bilirubin_adsorption_column != 0 && record.prescription.bilirubin_adsorption_column != '0' : false">{{ record.prescription.bilirubin_adsorption_column }}</span>
683
+                          <span v-else>/</span>
671
                         </div>
684
                         </div>
672
-                        kg
673
                       </div>
685
                       </div>
686
+                      
674
                     </div>
687
                     </div>
675
 
688
 
676
                     <div
689
                     <div
722
                         计划超滤量:
735
                         计划超滤量:
723
                         <div
736
                         <div
724
                           class="under_line"
737
                           class="under_line"
725
-                          style="width: 150px;text-align: center"
738
+                          style="width: 100px;text-align: center"
726
                         >
739
                         >
727
                           {{
740
                           {{
728
                             record.prescription &&
741
                             record.prescription &&
733
                         </div>
746
                         </div>
734
                         ml
747
                         ml
735
                       </div>
748
                       </div>
749
+                      <div class="inline_block" style="flex:1;">
750
+                        干体重:
751
+                        <div
752
+                          class="under_line"
753
+                          style="width: 100px;text-align: center"
754
+                        >
755
+                          {{
756
+                            record.assessment_before_dislysis &&
757
+                            record.assessment_before_dislysis.dry_weight
758
+                              ? record.assessment_before_dislysis.dry_weight
759
+                              : "/"
760
+                          }}
761
+                        </div>
762
+                        kg
763
+                      </div>
736
                     </div>
764
                     </div>
737
 
765
 
738
                     <div class="row" style="padding: 2px 0;line-height:23px;">
766
                     <div class="row" style="padding: 2px 0;line-height:23px;">
1027
                           </td>
1055
                           </td>
1028
                           <td>
1056
                           <td>
1029
                             {{
1057
                             {{
1030
-                              monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}
1058
+                              monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: "0"}}
1031
                           </td>
1059
                           </td>
1032
                           <td v-if=" record.prescription.mode_id == 2 || record.prescription.mode_id == 5 ||(record.prescription.mode_id == 12 &&monitor_record.operate_time >record.dialysis_order.end_time) " style="width:50px">
1060
                           <td v-if=" record.prescription.mode_id == 2 || record.prescription.mode_id == 5 ||(record.prescription.mode_id == 12 &&monitor_record.operate_time >record.dialysis_order.end_time) " style="width:50px">
1033
                             {{
1061
                             {{

Plik diff jest za duży
+ 1516 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyNine.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Wyświetl plik

249
           >批量打印</el-button
249
           >批量打印</el-button
250
         >
250
         >
251
       </template>
251
       </template>
252
+      <template v-if="this.template_id == 39">
253
+        <el-button
254
+          size="small"
255
+          icon="el-icon-printer"
256
+          :disabled="selecting_schs.length == 0"
257
+          @click="batchPrintAction"
258
+          type="primary"
259
+          >批量打印</el-button
260
+        >
261
+      </template>
252
     </div>
262
     </div>
253
     <div class="app-container">
263
     <div class="app-container">
254
       <!-- <div class="filter-container">
264
       <!-- <div class="filter-container">
827
         this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
837
         this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
828
       } else if (this.template_id == 33) {
838
       } else if (this.template_id == 33) {
829
         this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
839
         this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
840
+      } else if (this.template_id == 39) {
841
+        this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
830
       }
842
       }
831
     },
843
     },
832
     batchPrintActionOne: function() {
844
     batchPrintActionOne: function() {

+ 10 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Wyświetl plik

339
           <span class="content">{{this.prescription.replacement_flow}}</span>
339
           <span class="content">{{this.prescription.replacement_flow}}</span>
340
         </li>
340
         </li>
341
 
341
 
342
+        <li v-if="isShow('血浆分离器')">
343
+          <label>血浆分离器: </label>
344
+          <span class="content">{{this.prescription.plasma_separator}}</span>
345
+        </li>
346
+
347
+       <li v-if="isShow('胆红素吸附柱')">
348
+          <label>胆红素吸附柱: </label>
349
+          <span class="content">{{this.prescription.bilirubin_adsorption_column}}</span>
350
+        </li>
351
+
342
       </ul>
352
       </ul>
343
     </div>
353
     </div>
344
     <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
354
     <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>

+ 6 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue Wyświetl plik

363
           <span class="content">{{this.record.estimated_food_intake}}</span>
363
           <span class="content">{{this.record.estimated_food_intake}}</span>
364
           <span class="unit"></span>
364
           <span class="unit"></span>
365
         </li>
365
         </li>
366
+
367
+       <li v-if="isShow('透析期间血压')">
368
+          <label>透析期间血压: </label>
369
+          <span class="content">{{this.record.blood_pressure_during_dialysis}}</span>
370
+          <span class="unit"></span>
371
+        </li>
366
        
372
        
367
       </ul>
373
       </ul>
368
     </div>
374
     </div>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Wyświetl plik

2430
                 obj.type = 2
2430
                 obj.type = 2
2431
                 obj.custom_id = this.rand(10000000, 99999999)
2431
                 obj.custom_id = this.rand(10000000, 99999999)
2432
                 obj.drug_specs = medicalList[i].drug_specs
2432
                 obj.drug_specs = medicalList[i].drug_specs
2433
-                console.log("222",this.all_drug)
2433
+                // console.log("222",this.all_drug)
2434
                 this.all_drug.push(obj)
2434
                 this.all_drug.push(obj)
2435
               }
2435
               }
2436
             }
2436
             }
2467
                 obj.custom_id = this.rand(10000000, 99999999)
2467
                 obj.custom_id = this.rand(10000000, 99999999)
2468
                 obj.drug_specs = base_drug_list[i].drug_specs
2468
                 obj.drug_specs = base_drug_list[i].drug_specs
2469
                 this.all_drug.push(obj)
2469
                 this.all_drug.push(obj)
2470
-                console.log("2222",this.all_drug)
2470
+                // console.log("2222",this.all_drug)
2471
               }
2471
               }
2472
             }
2472
             }
2473
         })
2473
         })

+ 7 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Wyświetl plik

570
              <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
570
              <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
571
             </el-form-item>
571
             </el-form-item>
572
           </el-col>
572
           </el-col>
573
+
574
+         <el-col :span="8">
575
+            <el-form-item label="透析期间血压:" v-if="isShow('透析期间血压')">
576
+             <el-input v-model="assessmentBeforeDislysis.blood_pressure_during_dialysis"></el-input>
577
+            </el-form-item>
578
+          </el-col>
573
          
579
          
574
           <el-col :span="24">
580
           <el-col :span="24">
575
             <el-form-item label="备注: ">
581
             <el-form-item label="备注: ">
738
           pre_dialysis_drugs:"",
744
           pre_dialysis_drugs:"",
739
           period:"",
745
           period:"",
740
           estimated_food_intake:"",
746
           estimated_food_intake:"",
747
+          blood_pressure_during_dialysis:"",
741
         },
748
         },
742
 
749
 
743
         InnerDialogProps: {
750
         InnerDialogProps: {

+ 55 - 6
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Wyświetl plik

396
              </el-form-item>
396
              </el-form-item>
397
           </el-col>
397
           </el-col>
398
 
398
 
399
+          <el-col :span="8" v-if="isShows('血浆分离器')">
400
+             <el-form-item label="血浆分离器:">
401
+                  <el-input v-model="dialysisPrescription.plasma_separator" @focus="showInnerDialog('9')"></el-input>
402
+             </el-form-item>
403
+          </el-col>
404
+
405
+         
406
+         <el-col :span="8" v-if="isShows('胆红素吸附柱')">
407
+             <el-form-item label="胆红素吸附柱:">
408
+                  <el-input v-model="dialysisPrescription.bilirubin_adsorption_column" @focus="showInnerDialog('10')"></el-input>
409
+             </el-form-item>
410
+         </el-col>
411
+
412
+
399
           <el-col :span="8" v-if="isShows('体液过多症状')">
413
           <el-col :span="8" v-if="isShows('体液过多症状')">
400
             <el-form-item label="体液过多症状:">
414
             <el-form-item label="体液过多症状:">
401
               <el-select
415
               <el-select
562
              </el-form-item>
576
              </el-form-item>
563
           </el-col>
577
           </el-col>
564
 
578
 
565
-         
566
-
567
-
579
+        
568
           <el-col :span="8" v-if="isShows('置换流量')">
580
           <el-col :span="8" v-if="isShows('置换流量')">
569
              <el-form-item label="置换流量(L/h):">
581
              <el-form-item label="置换流量(L/h):">
570
                 <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
582
                 <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
571
              </el-form-item>
583
              </el-form-item>
572
           </el-col>
584
           </el-col>
585
+         
573
 
586
 
587
+       
574
         </el-row>
588
         </el-row>
575
 
589
 
576
         <el-row :gutter="20">
590
         <el-row :gutter="20">
1069
           single_time:"",
1083
           single_time:"",
1070
           single_water:"",
1084
           single_water:"",
1071
           replacement_flow:"",
1085
           replacement_flow:"",
1086
+          plasma_separator:"",
1087
+          bilirubin_adsorption_column:"",
1072
         },
1088
         },
1073
 
1089
 
1074
         anticoagulant: {
1090
         anticoagulant: {
1092
         bloods:[],
1108
         bloods:[],
1093
         irrigations:[],
1109
         irrigations:[],
1094
         dialyzers:[],
1110
         dialyzers:[],
1095
-        illnessList:[]
1111
+        illnessList:[],
1112
+        plasmaSeparatorList:[],
1113
+        bilirubinAdsorptionColumn:[],
1096
       }
1114
       }
1097
     },
1115
     },
1098
     methods: {
1116
     methods: {
1177
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1195
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1178
             this.InnerDialogProps.isShowTextArea = false
1196
             this.InnerDialogProps.isShowTextArea = false
1179
             break
1197
             break
1198
+           case '9': // 血浆灌流器
1199
+
1200
+           
1201
+            this.InnerDialogProps.values = this.plasmaSeparatorList
1202
+            this.InnerDialogProps.titles = '血浆灌流器'
1203
+            this.InnerDialogProps.type = 'plasma_separator'
1204
+            this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
1205
+            this.InnerDialogProps.isShowTextArea = false
1206
+            break
1207
+
1208
+           case '10': // 胆红素吸附柱
1209
+
1210
+           
1211
+            this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
1212
+            this.InnerDialogProps.titles = '胆红素吸附柱'
1213
+            this.InnerDialogProps.type = 'bilirubin_adsorption_column'
1214
+            this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
1215
+            this.InnerDialogProps.isShowTextArea = false
1216
+            break
1180
         }
1217
         }
1181
       },
1218
       },
1182
       innerDialogComfirm: function(val) {
1219
       innerDialogComfirm: function(val) {
1194
           case 'irrigations':
1231
           case 'irrigations':
1195
            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1232
            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1196
           break
1233
           break
1234
+          case 'plasma_separator':
1235
+          this.dialysisPrescription.plasma_separator = val.value.join(',')
1236
+          break
1237
+          case 'bilirubin_adsorption_column':
1238
+          this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
1239
+          break
1197
         }
1240
         }
1198
       },
1241
       },
1199
       innerDialogCancle: function() {
1242
       innerDialogCancle: function() {
1645
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1688
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1646
       },
1689
       },
1647
       show(pre,schedual,last,his_is_open) {
1690
       show(pre,schedual,last,his_is_open) {
1648
-        
1691
+        console.log("pre222222",pre)
1692
+       
1649
         if(his_is_open == 1){
1693
         if(his_is_open == 1){
1650
           this.is_open = 0
1694
           this.is_open = 0
1651
         }
1695
         }
3582
       }
3626
       }
3583
     },
3627
     },
3584
     created(){
3628
     created(){
3629
+      
3585
       this.illnessList = getDataConfig('hemodialysis','illness')
3630
       this.illnessList = getDataConfig('hemodialysis','illness')
3586
-      console.log("列表22222222222",this.illnessList)
3631
+      
3632
+      this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
3633
+      
3634
+      this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
3635
+
3587
     }
3636
     }
3588
   }
3637
   }
3589
 </script>
3638
 </script>

+ 4 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Wyświetl plik

930
       isVisibility(val) {
930
       isVisibility(val) {
931
         
931
         
932
         if(this.prescription!=null && this.prescription.id!=0){
932
         if(this.prescription!=null && this.prescription.id!=0){
933
-
933
+          
934
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
934
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
935
+          this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
935
           this.prescription.dialyzer_perfusion_apparatus = ""
936
           this.prescription.dialyzer_perfusion_apparatus = ""
937
+          this.prescription.dialysis_dialyszers = ""
938
+          this.prescription.dialysis_irrigation = ""
936
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
939
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
937
           // this.prescription.dialysate_formulation = ""
940
           // this.prescription.dialysate_formulation = ""
938
           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
941
           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")

+ 4 - 2
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Wyświetl plik

126
           (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
126
           (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
127
           '-' +
127
           '-' +
128
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
128
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
129
-
130
-        this.patient_id = this.$route.query.patient_id
129
+        if(this.$route.query.patient_id){
130
+          this.patient_id = this.$route.query.patient_id
131
+        }
132
+        
131
         this.schedule_date = this.$route.query.date
133
         this.schedule_date = this.$route.query.date
132
 
134
 
133
         if (this.dialysis_order.id == 0) {
135
         if (this.dialysis_order.id == 0) {

+ 1 - 0
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Wyświetl plik

130
 import { uParseTime } from '@/utils/tools'
130
 import { uParseTime } from '@/utils/tools'
131
 import store from '@/store'
131
 import store from '@/store'
132
 import request from '@/utils/request'
132
 import request from '@/utils/request'
133
+import { parseTime } from '@/utils'
133
 
134
 
134
 export default {
135
 export default {
135
   name: 'treatmentSummaryDialog',
136
   name: 'treatmentSummaryDialog',

+ 10 - 0
src/xt_pages/dialysis/details/index.vue Wyświetl plik

985
             if (prescription.body_fluid == -2) {
985
             if (prescription.body_fluid == -2) {
986
               prescription.body_fluid = 0
986
               prescription.body_fluid = 0
987
             }
987
             }
988
+            if(prescription.bilirubin_adsorption_column == 0){
989
+               prescription.bilirubin_adsorption_column  = ""
990
+            }
991
+
992
+             if(prescription.plasma_separator == 0){
993
+               prescription.plasma_separator  = ""
994
+            }
988
           }
995
           }
989
 
996
 
990
           var solution = resp.data.solution // 透析方案
997
           var solution = resp.data.solution // 透析方案
997
             if (predialysis_evaluation.blood_access_part_id == -2) {
1004
             if (predialysis_evaluation.blood_access_part_id == -2) {
998
               predialysis_evaluation.blood_access_part_id = 0
1005
               predialysis_evaluation.blood_access_part_id = 0
999
             }
1006
             }
1007
+            if(predialysis_evaluation.blood_pressure_during_dialysis == 0){
1008
+              predialysis_evaluation.blood_pressure_during_dialysis = ""
1009
+            }
1000
           }
1010
           }
1001
           var doctor_advices = resp.data.doctor_advices // 临时医嘱
1011
           var doctor_advices = resp.data.doctor_advices // 临时医嘱
1002
 
1012
 

+ 3 - 2
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Wyświetl plik

2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <div>
5
        <el-button
6
        <el-button
6
           size="small"
7
           size="small"
7
           icon="el-icon-printer"
8
           icon="el-icon-printer"
8
           :disabled="selecting_schs.length == 0"
9
           :disabled="selecting_schs.length == 0"
9
           @click="signPrintAction"
10
           @click="signPrintAction"
10
           type="primary"
11
           type="primary"
11
-          style="float:right"
12
+          style="margin-right:10"
12
         >标签打印
13
         >标签打印
13
       </el-button>
14
       </el-button>
14
       <el-button
15
       <el-button
19
           type="primary"
20
           type="primary"
20
           >医嘱打印
21
           >医嘱打印
21
       </el-button>
22
       </el-button>
22
-   
23
+    </div>
23
     </div>
24
     </div>
24
     <div class="app-container">
25
     <div class="app-container">
25
       <!-- <div class="filter-container">
26
       <!-- <div class="filter-container">

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Wyświetl plik

553
           >打印</el-button
553
           >打印</el-button
554
         >
554
         >
555
       </template>
555
       </template>
556
+      <template v-if="org_template_info.template_id == 40">
557
+        <el-button
558
+          :loading="loading"
559
+          size="small"
560
+          icon="el-icon-printer"
561
+          @click="printThisPage"
562
+          type="primary"
563
+          >打印</el-button
564
+        >
565
+      </template>
556
     </div>
566
     </div>
557
     <div class="app-container" style="min-height:0;">
567
     <div class="app-container" style="min-height:0;">
558
       <!--<div class="order-print-btn"-->
568
       <!--<div class="order-print-btn"-->
828
             v-if="org_template_info.template_id == 39"
838
             v-if="org_template_info.template_id == 39"
829
           >
839
           >
830
           </DialysisPrintOrderThirtyNine>
840
           </DialysisPrintOrderThirtyNine>
841
+          <DialysisPrintOrderForty
842
+            v-bind:childResponse="childResponse"
843
+            v-if="org_template_info.template_id == 40"
844
+          >
845
+          </DialysisPrintOrderForty>
831
         </div>
846
         </div>
832
       </el-container>
847
       </el-container>
833
     </div>
848
     </div>
886
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
901
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
887
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
902
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
888
 import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
903
 import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
904
+import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
889
 export default {
905
 export default {
890
   name: "dialysisPrintOrder",
906
   name: "dialysisPrintOrder",
891
   components: {
907
   components: {
908
+    DialysisPrintOrderForty,
892
     DialysisPrintOrderThirtyNine,
909
     DialysisPrintOrderThirtyNine,
893
     DialysisPrintOrderThirtyEight,
910
     DialysisPrintOrderThirtyEight,
894
     DialysisPrintOrderThirtySeven,
911
     DialysisPrintOrderThirtySeven,
1366
           style: style3,
1383
           style: style3,
1367
           scanStyles: false
1384
           scanStyles: false
1368
         });
1385
         });
1386
+      } else if (this.org_template_info.template_id == 40) {
1387
+        printJS({
1388
+          printable: "dialysis-print-box",
1389
+          type: "html",
1390
+          style: style5,
1391
+          scanStyles: false
1392
+        });
1369
       }
1393
       }
1370
     },
1394
     },
1371
     printThisOnePage() {
1395
     printThisOnePage() {

Plik diff jest za duży
+ 2523 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue


+ 29 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Wyświetl plik

64
         </div>
64
         </div>
65
         <div class="inline_block" style="margin-left: 5px;">
65
         <div class="inline_block" style="margin-left: 5px;">
66
           住院号/门诊号:
66
           住院号/门诊号:
67
-          <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
68
-            {{ patientInfo.admission_number }}
67
+          <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
68
+            {{ receiverTreatmentAccess.admission_number }}
69
           </div>
69
           </div>
70
           <div class="under_line" style="width: 70px;text-align: left" v-else>
70
           <div class="under_line" style="width: 70px;text-align: left" v-else>
71
             {{ "/" }}
71
             {{ "/" }}
300
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
300
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
301
                       IUF+HD
301
                       IUF+HD
302
                     </div>
302
                     </div>
303
+                    <div class="under_line" style="width: 150px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 22">
304
+                      血浆胆红素吸附+HDF
305
+                    </div>
303
                   </div>
306
                   </div>
304
 
307
 
305
                   <div class="inline_block" style="margin-left:10px;flex:1;">
308
                   <div class="inline_block" style="margin-left:10px;flex:1;">
344
                      {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:'/'}}
347
                      {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:'/'}}
345
                     </div>
348
                     </div>
346
                   </div>
349
                   </div>
347
-                  <div class="inline_block" style="flex:1;">
348
-                    干体重:
349
-                    <div class="under_line" style="width: 150px;text-align: center">
350
-                      {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
350
+                  <div class="inline_block" style="flex:1;" v-if="org_id == 9538">
351
+                    血浆分离器:
352
+                    <div class="under_line" style="width: 70px;text-align: center">
353
+                      <span v-if="prescription.plasma_separator ? prescription.plasma_separator != 0 && prescription.plasma_separator != '0' : false">{{ prescription.plasma_separator }}</span>
354
+                      <span v-else>/</span>
355
+                    </div>
356
+                  </div>
357
+                  <div class="inline_block" style="flex:1;" v-if="org_id == 9538">
358
+                    胆红素吸附柱:
359
+                    <div class="under_line" style="width: 70px;text-align: center">
360
+                      <span v-if="prescription.bilirubin_adsorption_column ? prescription.bilirubin_adsorption_column != 0 && prescription.bilirubin_adsorption_column != '0' : false">{{ prescription.bilirubin_adsorption_column }}</span>
361
+                      <span v-else>/</span>
351
                     </div>
362
                     </div>
352
-                    kg
353
                   </div>
363
                   </div>
354
                 </div>
364
                 </div>
355
 
365
 
357
                   <div class="inline_block" style="flex:1;">
367
                   <div class="inline_block" style="flex:1;">
358
                     上次透后体重:
368
                     上次透后体重:
359
                     <div class="under_line" style="width: 100px;text-align: center">
369
                     <div class="under_line" style="width: 100px;text-align: center">
360
-                      {{ lastafterdialysis.weight_after_last_transparency ? parseFloat(lastafterdialysis.weight_after - lastafterdialysis.additional_weight).toFixed(1) : "未称重" }}
370
+                      {{predialysis.weight_after_last_transparency?predialysis.weight_after_last_transparency:'未称重'}}
371
+                      <!-- {{ predialysis.weight_after_last_transparency ? parseFloat(lastafterdialysis.weight_after - lastafterdialysis.additional_weight).toFixed(1) : "未称重" }} -->
361
                     </div>
372
                     </div>
362
                     kg
373
                     kg
363
                   </div>
374
                   </div>
370
                   </div>
381
                   </div>
371
                   <div class="inline_block" style="flex:1;">
382
                   <div class="inline_block" style="flex:1;">
372
                     计划超滤量:
383
                     计划超滤量:
373
-                    <div class="under_line" style="width: 150px;text-align: center">
384
+                    <div class="under_line" style="width: 100px;text-align: center">
374
                       {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
385
                       {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
375
                     </div>
386
                     </div>
376
                     L
387
                     L
377
                   </div>
388
                   </div>
389
+                  <div class="inline_block" style="flex:1;">
390
+                    干体重:
391
+                    <div class="under_line" style="width: 100px;text-align: center">
392
+                      {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
393
+                    </div>
394
+                    kg
395
+                  </div>
378
                 </div>
396
                 </div>
379
 
397
 
380
                 <div class="row" style="padding: 2px 0;line-height:23px;">
398
                 <div class="row" style="padding: 2px 0;line-height:23px;">
553
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
571
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
554
                       </td>
572
                       </td>
555
                       <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && ( dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
573
                       <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && ( dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
556
-                        {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
574
+                        {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}
557
                       </td>
575
                       </td>
558
                       <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))" style="width:50px">
576
                       <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))" style="width:50px">
559
                         {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
577
                         {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
1342
         this.check = response.data.data.check
1360
         this.check = response.data.data.check
1343
         this.xtdate = response.data.data.xtdate
1361
         this.xtdate = response.data.data.xtdate
1344
         this.predialysis = response.data.data.PredialysisEvaluation
1362
         this.predialysis = response.data.data.PredialysisEvaluation
1363
+        console.log("透前评估",this.predialysis)
1345
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1364
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1346
           this.predialysis.blood_access_part_opera_id
1365
           this.predialysis.blood_access_part_opera_id
1347
         )
1366
         )

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Wyświetl plik

35
             <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box>
35
             <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box>
36
           </div>
36
           </div>
37
         </div>
37
         </div>
38
-        
38
+
39
         <div class="inline_block" v-if="receiverTreatmentAccess.condition == 1">
39
         <div class="inline_block" v-if="receiverTreatmentAccess.condition == 1">
40
           住院:
40
           住院:
41
           <div class="under_line" style="width: 30px;text-align: center;">
41
           <div class="under_line" style="width: 30px;text-align: center;">
1657
           this.doctor_advices = doctor_advices_1;
1657
           this.doctor_advices = doctor_advices_1;
1658
           this.doctor_advices_2 = doctor_advices_2;
1658
           this.doctor_advices_2 = doctor_advices_2;
1659
         }
1659
         }
1660
-        console.log(this.advice_groups);
1660
+         // console.log(this.advice_groups);
1661
       } else {
1661
       } else {
1662
         this.loading = false;
1662
         this.loading = false;
1663
         this.$message.error("请求数据失败");
1663
         this.$message.error("请求数据失败");

+ 10 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Wyświetl plik

1061
             核对护士
1061
             核对护士
1062
             <span style="display: inline-block;width:100px;text-align: left;">
1062
             <span style="display: inline-block;width:100px;text-align: left;">
1063
               &nbsp;
1063
               &nbsp;
1064
-              <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
1064
+              <span v-if="doctor_advices[0].execution_staff != check.modifier">
1065
+                <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
1065
                 {{ getAdminUser(check == null ? 0 : check.modifier) }}
1066
                 {{ getAdminUser(check == null ? 0 : check.modifier) }}
1067
+                </span>
1068
+                <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
1069
+              </span>
1070
+              <span v-else>
1071
+                <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
1072
+                {{ getAdminUser(check == null ? 0 : check.creater) }}
1073
+                </span>
1074
+                <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt srcset v-else />
1066
               </span>
1075
               </span>
1067
-              <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
1068
             </span>
1076
             </span>
1069
             护士签名
1077
             护士签名
1070
             <span style="display: inline-block;width:100px;text-align: left;">
1078
             <span style="display: inline-block;width:100px;text-align: left;">

+ 8 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Wyświetl plik

2
   <div id="dialysis-print-box-1">
2
   <div id="dialysis-print-box-1">
3
     <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
3
     <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
4
       <div class="order-yy-name">{{ orgname }}</div>
4
       <div class="order-yy-name">{{ orgname }}</div>
5
-      <div class="order-title">血液净化专科护理记录单</div>
5
+      <div class="order-title">血液净化透析治疗记录单</div>
6
       <div class="row">
6
       <div class="row">
7
         <div class="inline_block">
7
         <div class="inline_block">
8
           科室:
8
           科室:
985
                   </div>
985
                   </div>
986
                   kg
986
                   kg
987
                 </div>
987
                 </div>
988
+                <div class="inline_block" v-if="orgid == 9566">
989
+                  碳酸氢根:
990
+                  <div class="under_line" style="width: 50px;text-align: left">
991
+                    {{ prescription.bicarbonate ? prescription.bicarbonate : '' }}
992
+                  </div>
993
+                  mmol/L
994
+                </div>
988
                 <div class="inline_block" v-if="orgid == 9566">
995
                 <div class="inline_block" v-if="orgid == 9566">
989
                   医生签名:
996
                   医生签名:
990
                   <div class="under_line" style="width: 70px;text-align: left">
997
                   <div class="under_line" style="width: 70px;text-align: left">

+ 2 - 1
src/xt_pages/hospitalStation/components/callPrescription.vue Wyświetl plik

260
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
260
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263
-                id:prescription.doctor_advice[b].drug_id
263
+                id:prescription.doctor_advice[b].drug_id,
264
+                drug:prescription.doctor_advice[b].drug,
264
               };
265
               };
265
               tempAdvice.push(obj)
266
               tempAdvice.push(obj)
266
 
267
 

+ 20 - 13
src/xt_pages/hospitalStation/components/deskPrescription.vue Wyświetl plik

264
                       <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
264
                       <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
265
                     </el-table-column>
265
                     </el-table-column>
266
                     <el-table-column label="库存" width="60">
266
                     <el-table-column label="库存" width="60">
267
-                      <template slot-scope="scope">{{
268
-                        stockInCount(scope.row) -
269
-                        salesReturnCount(scope.row) -
270
-                        stockOutCount(scope.row) +
271
-                        cancelStockCount(scope.row)
272
-                        }}
267
+                      <template slot-scope="scope">{{scope.row.total }}
273
                       </template>
268
                       </template>
274
                     </el-table-column>
269
                     </el-table-column>
275
                     <el-table-column label="单价" width="40">
270
                     <el-table-column label="单价" width="40">
279
                 </div>
274
                 </div>
280
 
275
 
281
               </el-tab-pane>
276
               </el-tab-pane>
277
+              <!--// stockInCount(scope.row) - -->
278
+              <!--// salesReturnCount(scope.row) - -->
279
+              <!--// stockOutCount(scope.row) +-->
280
+              <!--// cancelStockCount(scope.row)-->
282
               <!--<el-tab-pane label="医嘱模板" name="2">-->
281
               <!--<el-tab-pane label="医嘱模板" name="2">-->
283
               <!--<div style="margin-bottom:5px;">-->
282
               <!--<div style="margin-bottom:5px;">-->
284
               <!--&lt;!&ndash;<el-input style="width:50%;" v-model="input" placeholder=""></el-input>&ndash;&gt;-->
283
               <!--&lt;!&ndash;<el-input style="width:50%;" v-model="input" placeholder=""></el-input>&ndash;&gt;-->
685
               obj['id'] = drug_month_prescriptions.advices[a].drug_id;
684
               obj['id'] = drug_month_prescriptions.advices[a].drug_id;
686
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
685
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
687
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price);
686
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price);
688
-              count = count + drug_month_prescriptions.advices[a].prescribing_number
687
+              obj['drug'] = drug_month_prescriptions.advices[a].drug;
688
+
689
+
690
+                      count = count + drug_month_prescriptions.advices[a].prescribing_number
689
 
691
 
690
             }
692
             }
691
           }
693
           }
1017
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1019
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1018
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1020
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1019
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1021
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1020
-                      id: prescription.advices[b].drug_id
1022
+                      id: prescription.advices[b].drug_id,
1023
+                      drug:prescription.advices[b].drug,
1024
+
1025
+
1021
                     };
1026
                     };
1022
                     tempAdvice.push(obj)
1027
                     tempAdvice.push(obj)
1023
                   }
1028
                   }
1132
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1137
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1133
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1138
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1134
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1139
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1135
-                      id: prescription.advices[b].drug_id
1140
+                      id: prescription.advices[b].drug_id,
1141
+                      drug:prescription.advices[b].drug,
1142
+
1136
                     };
1143
                     };
1137
                     tempAdvice.push(obj)
1144
                     tempAdvice.push(obj)
1138
                   }
1145
                   }
2295
       },
2302
       },
2296
 
2303
 
2297
       comfirm() {
2304
       comfirm() {
2298
-        console.log("222222222222",this.curPrescriptions);
2299
-
2300
 
2305
 
2301
         if (this.curPrescriptions.order_status == 2) {
2306
         if (this.curPrescriptions.order_status == 2) {
2302
           this.$message.error('该处方已经结算,无法继续添加药品或者项目');
2307
           this.$message.error('该处方已经结算,无法继续添加药品或者项目');
2415
                   prescribing_number: temp[b].prescribing_number,
2420
                   prescribing_number: temp[b].prescribing_number,
2416
                   single_dose_unit: temp[b].min_unit,
2421
                   single_dose_unit: temp[b].min_unit,
2417
                   prescribing_number_unit: temp[b].max_unit,
2422
                   prescribing_number_unit: temp[b].max_unit,
2418
-                  medical_insurance_number: temp[b].medical_insurance_number
2423
+                  medical_insurance_number: temp[b].medical_insurance_number,
2424
+                  drug: temp[b],
2419
 
2425
 
2420
                 };
2426
                 };
2421
 
2427
 
2480
         this.preDrugs = [];
2486
         this.preDrugs = [];
2481
         this.teamList = []
2487
         this.teamList = []
2482
 
2488
 
2483
-      }, changeAllGoodInfoTableDataTwo(row) {
2489
+      },
2490
+      changeAllGoodInfoTableDataTwo(row) {
2484
         this.teamList = row
2491
         this.teamList = row
2485
       },
2492
       },
2486
       selectChange(row) {
2493
       selectChange(row) {

+ 2 - 1
src/xt_pages/hospitalStation/components/nextOrLastPrescription.vue Wyświetl plik

317
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
317
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
319
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
319
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
320
-                id:prescription.doctor_advice[b].drug_id
320
+                id:prescription.doctor_advice[b].drug_id,
321
+                drug:prescription.doctor_advice[b].drug,
321
               };
322
               };
322
               tempAdvice.push(obj)
323
               tempAdvice.push(obj)
323
 
324
 

+ 18 - 6
src/xt_pages/hospitalStation/doctorDesk.vue Wyświetl plik

463
               obj['id'] = drug_month_prescriptions.advices[a].drug_id;
463
               obj['id'] = drug_month_prescriptions.advices[a].drug_id;
464
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
464
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
465
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price);
465
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price);
466
+              obj['drug'] = drug_month_prescriptions.advices[a].drug
467
+
466
               count = count + drug_month_prescriptions.advices[a].prescribing_number
468
               count = count + drug_month_prescriptions.advices[a].prescribing_number
467
 
469
 
468
             }
470
             }
873
                     single_dose_unit: prescription.advices[b].single_dose_unit,
875
                     single_dose_unit: prescription.advices[b].single_dose_unit,
874
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
876
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
875
                     medical_insurance_number: prescription.advices[b].med_list_codg,
877
                     medical_insurance_number: prescription.advices[b].med_list_codg,
876
-                    id: prescription.advices[b].drug_id
878
+                    id: prescription.advices[b].drug_id,
879
+                    drug:prescription.advices[b].drug,
877
                   };
880
                   };
878
                   tempAdvice.push(obj)
881
                   tempAdvice.push(obj)
879
                 }
882
                 }
1078
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1081
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1079
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1082
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1080
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1083
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1081
-                          id: prescription.advices[b].drug_id
1084
+                          id: prescription.advices[b].drug_id,
1085
+                          drug:prescription.advices[b].drug,
1082
                         };
1086
                         };
1083
                         tempAdvice.push(obj)
1087
                         tempAdvice.push(obj)
1084
                       }
1088
                       }
1258
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1262
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1259
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1263
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1260
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1264
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1261
-                          id: prescription.advices[b].drug_id
1265
+                          id: prescription.advices[b].drug_id,
1266
+                          drug:prescription.advices[b].drug,
1267
+
1262
                         };
1268
                         };
1263
                         tempAdvice.push(obj)
1269
                         tempAdvice.push(obj)
1264
                       }
1270
                       }
1442
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1448
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1443
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1449
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1444
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1450
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1445
-                          id: prescription.advices[b].drug_id
1451
+                          id: prescription.advices[b].drug_id,
1452
+                          drug:prescription.advices[b].drug,
1453
+
1446
                         };
1454
                         };
1447
                         tempAdvice.push(obj)
1455
                         tempAdvice.push(obj)
1448
                       }
1456
                       }
1677
                         single_dose_unit: prescription.advices[b].single_dose_unit,
1685
                         single_dose_unit: prescription.advices[b].single_dose_unit,
1678
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1686
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1679
                         medical_insurance_number: prescription.advices[b].med_list_codg,
1687
                         medical_insurance_number: prescription.advices[b].med_list_codg,
1680
-                        id: prescription.advices[b].drug_id
1688
+                        id: prescription.advices[b].drug_id,
1689
+                        drug:prescription.advices[b].drug,
1690
+
1681
                       };
1691
                       };
1682
                       tempAdvice.push(obj)
1692
                       tempAdvice.push(obj)
1683
                     }
1693
                     }
1865
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1875
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1866
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1876
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1867
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1877
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1868
-                      id: prescription.advices[b].drug_id
1878
+                      id: prescription.advices[b].drug_id,
1879
+                      drug:prescription.advices[b].drug,
1880
+
1869
                     };
1881
                     };
1870
                     tempAdvice.push(obj)
1882
                     tempAdvice.push(obj)
1871
                   }
1883
                   }

+ 1 - 3
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Wyświetl plik

93
         <template slot-scope="scope">
93
         <template slot-scope="scope">
94
           <div style="display:flex;">
94
           <div style="display:flex;">
95
             <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
95
             <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
96
-            {{scope.row.total}}
97
-
98
-            <div>{{scope.row.unit}}</div>
96
+            {{scope.row.total}} {{scope.row.unit}}
99
 
97
 
100
           </div>
98
           </div>
101
         </template>
99
         </template>

+ 16 - 33
src/xt_pages/outpatientCharges/newStatementPrint.vue Wyświetl plik

13
     </template>
13
     </template>
14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne v-if="org_id != 9990" :info="info" :p_admin="p_admin" :charge_admin="charge_admin"></printOne>
17
-      <printTwo v-if="org_id == 9990" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
16
+      <printOne :info="info" :p_admin="p_admin" :charge_admin="charge_admin"></printOne>
18
     </div>
17
     </div>
19
   </div>
18
   </div>
20
 </template>
19
 </template>
31
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
30
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
32
   import print from "print-js";
31
   import print from "print-js";
33
   import printOne from "./statementTemplate/printOne"
32
   import printOne from "./statementTemplate/printOne"
34
-  import printTwo from "./statementTemplate/printTwo"
35
   import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
33
   import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
36
   export default {
34
   export default {
37
     name: "newStatementPrint",
35
     name: "newStatementPrint",
38
     components: {
36
     components: {
39
       BreadCrumb,
37
       BreadCrumb,
40
-      printOne,
41
-      printTwo
38
+      printOne
42
     },
39
     },
43
     props:{
40
     props:{
44
       paramsObj:Object
41
       paramsObj:Object
62
         info:null,
59
         info:null,
63
         p_admin:{},
60
         p_admin:{},
64
         charge_admin:{},
61
         charge_admin:{},
65
-        org_id:'',
66
-        order_infos:null
67
       };
62
       };
68
     },
63
     },
69
     methods:{
64
     methods:{
71
         var ptime = Math.round(new Date().getTime() / 1000);
66
         var ptime = Math.round(new Date().getTime() / 1000);
72
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
67
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
73
 
68
 
74
-        if(this.org_id != 9990){
75
-          const style =
69
+        const style =
76
           '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
70
           '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
77
-          printJS({
78
-            printable: "statement-print",
79
-            type: "html",
80
-            style: style,
81
-            scanStyles: false
82
-          });
83
-        }else {
84
-          const style =
85
-          '@media print {#statement-print{font-size:12px;width:600px;margin:0 auto;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
86
-          printJS({
87
-            printable: "statement-print",
88
-            type: "html",
89
-            style: style,
90
-            scanStyles: false
91
-          });
92
-        }
93
-
71
+        printJS({
72
+          printable: "statement-print",
73
+          type: "html",
74
+          style: style,
75
+          scanStyles: false
76
+        });
94
 
77
 
95
         // if (this.org_template_info.template_id == 1) {
78
         // if (this.org_template_info.template_id == 1) {
96
         //   printJS({
79
         //   printJS({
164
         //       console.log("doctorporject",doctorPorject)
147
         //       console.log("doctorporject",doctorPorject)
165
         //     }
148
         //     }
166
         // })
149
         // })
150
+      },  getTimes(time) {
151
+        return uParseTime(time, '{y}-{m}-{d}')
167
       },
152
       },
168
       searchAction(){
153
       searchAction(){
169
 
154
 
190
                 that.info = response.data.data.info;
175
                 that.info = response.data.data.info;
191
                 that.p_admin = response.data.data.printor_admin;
176
                 that.p_admin = response.data.data.printor_admin;
192
                 that.charge_admin = response.data.data.charge_admin;
177
                 that.charge_admin = response.data.data.charge_admin;
193
-                that.order_infos = response.data.data;
194
-
195
 
178
 
196
 
179
 
197
                 that.info['p_admin'] =  that.p_admin;
180
                 that.info['p_admin'] =  that.p_admin;
203
                 that.info['diagnosis'] =  response.data.data.diagnosis;
186
                 that.info['diagnosis'] =  response.data.data.diagnosis;
204
 
187
 
205
 
188
 
206
-                console.log(that.info);
207
-
208
                 that.info['bed_cost_total'] = response.data.data.bedCostTotal;
189
                 that.info['bed_cost_total'] = response.data.data.bedCostTotal;
209
                 that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
190
                 that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
210
                 that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
191
                 that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
242
                 that.info['treat_cost_total'] = response.data.data.treatCostTotal;
223
                 that.info['treat_cost_total'] = response.data.data.treatCostTotal;
243
                 that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
224
                 that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
244
                 that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
225
                 that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
245
-                console.log(this.info)
226
+
227
+                if(that.paramsObj.settle_type != 1){
228
+                  that.info.begndate = that.getTimes(that.paramsObj.start_time)
229
+                  that.info.enddate = that.getTimes(that.paramsObj.end_time)
230
+                }
246
               }
231
               }
247
             })
232
             })
248
             .catch(function (error) {
233
             .catch(function (error) {
254
     },
239
     },
255
 
240
 
256
     created() {
241
     created() {
257
-      this.org_id = this.$store.getters.xt_user.org_id;
258
       this.getInfo(this.paramsObj.order_id)
242
       this.getInfo(this.paramsObj.order_id)
259
-
260
     },
243
     },
261
     watch:{
244
     watch:{
262
       paramsObj:{//深度监听,可监听到对象、数组的变化
245
       paramsObj:{//深度监听,可监听到对象、数组的变化

+ 133 - 133
src/xt_pages/outpatientCharges/statementPrint.vue Wyświetl plik

278
   letter-spacing: 5px;
278
   letter-spacing: 5px;
279
 }
279
 }
280
 
280
 
281
-.dialysis-print-order .order-title {
282
-  margin: auto;
283
-  font-weight: 600;
284
-  text-align: center;
285
-  font-size: 22px;
286
-  padding: 10px;
287
-}
281
+  .dialysis-print-order .order-title {
282
+    margin: auto;
283
+    font-weight: 600;
284
+    text-align: center;
285
+    font-size: 22px;
286
+    padding: 10px;
287
+  }
288
 
288
 
289
-.dialysis-print-order .table-box {
290
-  width: 100%;
291
-  line-height: 23px;
292
-  font-size: 14px;
293
-}
289
+  .dialysis-print-order .table-box {
290
+    width: 100%;
291
+    line-height: 23px;
292
+    font-size: 14px;
293
+  }
294
 
294
 
295
-.dialysis-print-order .print-table {
296
-  width: 100%;
297
-  text-align: center;
298
-  border-collapse: collapse;
299
-  line-height: 40px;
300
-  font-size: 14px;
301
-  border-color: #000;
302
-}
295
+  .dialysis-print-order .print-table {
296
+    width: 100%;
297
+    text-align: center;
298
+    border-collapse: collapse;
299
+    line-height: 40px;
300
+    font-size: 14px;
301
+    border-color: #000;
302
+  }
303
 
303
 
304
-.dialysis-print-order .print-table-no {
305
-  width: 100%;
306
-  text-align: center;
307
-  border-collapse: collapse;
308
-  font-size: 14px;
309
-}
304
+  .dialysis-print-order .print-table-no {
305
+    width: 100%;
306
+    text-align: center;
307
+    border-collapse: collapse;
308
+    font-size: 14px;
309
+  }
310
 
310
 
311
-.dialysis-print-order .under-line {
312
-  border-bottom: 1px solid #999;
313
-  width: 95%;
314
-  text-align: center;
315
-  margin-left: 2px;
316
-}
311
+  .dialysis-print-order .under-line {
312
+    border-bottom: 1px solid #999;
313
+    width: 95%;
314
+    text-align: center;
315
+    margin-left: 2px;
316
+  }
317
 
317
 
318
-.dialysis-print-order .title-box {
319
-  text-align: center;
320
-  font-size: 16px;
321
-}
318
+  .dialysis-print-order .title-box {
319
+    text-align: center;
320
+    font-size: 16px;
321
+  }
322
 
322
 
323
-.dialysis-print-order .radio-lebel-box {
324
-  font-weight: 400;
325
-  cursor: pointer;
326
-}
323
+  .dialysis-print-order .radio-lebel-box {
324
+    font-weight: 400;
325
+    cursor: pointer;
326
+  }
327
 
327
 
328
-.dialysis-print-order .radio-no {
329
-  opacity: 0;
330
-  outline: none;
331
-  position: absolute;
332
-  margin: 0;
333
-  width: 0;
334
-  height: 0;
335
-  z-index: -1;
336
-}
328
+  .dialysis-print-order .radio-no {
329
+    opacity: 0;
330
+    outline: none;
331
+    position: absolute;
332
+    margin: 0;
333
+    width: 0;
334
+    height: 0;
335
+    z-index: -1;
336
+  }
337
 
337
 
338
-.dialysis-print-order .radio-inner {
339
-  white-space: nowrap;
340
-  cursor: pointer;
341
-  outline: none;
342
-  display: inline-block;
343
-  line-height: 1;
344
-  position: relative;
345
-  vertical-align: middle;
346
-}
338
+  .dialysis-print-order .radio-inner {
339
+    white-space: nowrap;
340
+    cursor: pointer;
341
+    outline: none;
342
+    display: inline-block;
343
+    line-height: 1;
344
+    position: relative;
345
+    vertical-align: middle;
346
+  }
347
 
347
 
348
-.dialysis-print-order .radio-fang {
349
-  display: inline-block;
350
-  position: relative;
351
-  border: 1px solid #000;
352
-  box-sizing: border-box;
353
-  width: 14px;
354
-  height: 14px;
355
-  background-color: #fff;
356
-  z-index: 1;
357
-  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
348
+  .dialysis-print-order .radio-fang {
349
+    display: inline-block;
350
+    position: relative;
351
+    border: 1px solid #000;
352
+    box-sizing: border-box;
353
+    width: 14px;
354
+    height: 14px;
355
+    background-color: #fff;
356
+    z-index: 1;
357
+    transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
358
     background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
358
     background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
359
-}
359
+  }
360
 
360
 
361
-.dialysis-print-order .is-checked-radio::after {
362
-  content: "√";
363
-  font-size: 15px;
364
-}
361
+  .dialysis-print-order .is-checked-radio::after {
362
+    content: "√";
363
+    font-size: 15px;
364
+  }
365
 
365
 
366
-.dialysis-print-order .print-table-no tr td {
367
-  padding: 8px 5px;
368
-  line-height: 25px;
369
-}
366
+  .dialysis-print-order .print-table-no tr td {
367
+    padding: 8px 5px;
368
+    line-height: 25px;
369
+  }
370
 
370
 
371
-.dialysis-print-order .print-table tr td {
372
-  padding: 1px 1px;
373
-  /*line-height: 25px;*/
374
-}
371
+  .dialysis-print-order .print-table tr td {
372
+    padding: 1px 1px;
373
+    /*line-height: 25px;*/
374
+  }
375
 
375
 
376
-.es-img {
377
-  height: 30px;
378
-}
376
+  .es-img {
377
+    height: 30px;
378
+  }
379
 
379
 
380
-.advice-name {
381
-  text-align: left;
382
-}
380
+  .advice-name {
381
+    text-align: left;
382
+  }
383
 
383
 
384
-.advice-children {
385
-  display: flex;
386
-}
384
+  .advice-children {
385
+    display: flex;
386
+  }
387
 
387
 
388
-.title-box-pro {
389
-  border: 0 #fff;
390
-  line-height: 25px;
391
-  height: 25px;
392
-  text-align: left;
393
-  padding-left: 10px !important;
394
-}
395
-.title-box-pro-tr {
396
-  border: 0 #fff;
397
-}
398
-.text-align-left {
399
-  text-align: left !important;
400
-  padding-left: 10px !important;
401
-  font-size: 14px !important;
402
-  line-height: 25px;
403
-}
404
-.print-table-tr-new td {
405
-  line-height: 20px !important;
406
-}
407
-.border-top-solid {
408
-  border: solid 1px #000;
409
-}
410
-.print-template-two tr {
411
-  line-height: 30px;
412
-}
388
+  .title-box-pro {
389
+    border: 0 #fff;
390
+    line-height: 25px;
391
+    height: 25px;
392
+    text-align: left;
393
+    padding-left: 10px !important;
394
+  }
395
+  .title-box-pro-tr {
396
+    border: 0 #fff;
397
+  }
398
+  .text-align-left {
399
+    text-align: left !important;
400
+    padding-left: 10px !important;
401
+    font-size: 14px !important;
402
+    line-height: 25px;
403
+  }
404
+  .print-table-tr-new td {
405
+    line-height: 20px !important;
406
+  }
407
+  .border-top-solid {
408
+    border: solid 1px #000;
409
+  }
410
+  .print-template-two tr {
411
+    line-height: 30px;
412
+  }
413
 
413
 
414
-.table-box1 {
415
-  border: 1px solid #000;
416
-  width: 100%;
417
-  line-height: 30px;
418
-  font-size: 14px;
419
-  border-collapse: collapse;
420
-}
421
-.table-box1 tr {
422
-  border-bottom: 1px solid #000;
423
-}
414
+  .table-box1 {
415
+    border: 1px solid #000;
416
+    width: 100%;
417
+    line-height: 30px;
418
+    font-size: 14px;
419
+    border-collapse: collapse;
420
+  }
421
+  .table-box1 tr {
422
+    border-bottom: 1px solid #000;
423
+  }
424
 </style>
424
 </style>
425
 
425
 
426
 <style lang="scss">
426
 <style lang="scss">
427
 
427
 
428
-.newContainer{
428
+  .newContainer{
429
   .dialysisPage::-webkit-scrollbar {
429
   .dialysisPage::-webkit-scrollbar {
430
     height: 15px;
430
     height: 15px;
431
   }
431
   }
432
 
432
 
433
   .el-date-editor{
433
   .el-date-editor{
434
-    .el-input__inner{
435
-      padding-right:0px;
436
-    }
434
+  .el-input__inner{
435
+    padding-right:0px;
436
+  }
437
   }
437
   }
438
   .el-table td, .el-table th{
438
   .el-table td, .el-table th{
439
     text-align: center;
439
     text-align: center;
440
   }
440
   }
441
-}
442
-.newContainer::-webkit-scrollbar{
443
-  height: 15px !important;
444
-}
441
+  }
442
+  .newContainer::-webkit-scrollbar{
443
+    height: 15px !important;
444
+  }
445
 </style>
445
 </style>

+ 12 - 9
src/xt_pages/outpatientCharges/summary.vue Wyświetl plik

65
           type="index"
65
           type="index"
66
         >
66
         >
67
         </el-table-column>
67
         </el-table-column>
68
-        <el-table-column align="center" prop="name" label="就诊号">
68
+        <el-table-column align="center" width="100" prop="name" label="就诊号">
69
           <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
69
           <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
70
         </el-table-column>
70
         </el-table-column>
71
-        <el-table-column align="center" prop="name" label="患者名字">
71
+        <el-table-column align="center" width="90" prop="name" label="患者名字">
72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
73
         </el-table-column>
73
         </el-table-column>
74
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
74
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
75
         <!--<template slot-scope="scope"></template>-->
75
         <!--<template slot-scope="scope"></template>-->
76
         <!--</el-table-column>-->
76
         <!--</el-table-column>-->
77
 
77
 
78
-        <el-table-column align="center" prop="name" label="应收金额">
78
+        <el-table-column align="center" width="90" prop="name" label="应收金额">
79
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
79
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
80
         </el-table-column>
80
         </el-table-column>
81
-        <el-table-column align="center" prop="name" label="实收金额">
81
+        <el-table-column align="center" width="90" prop="name" label="实收金额">
82
           <template slot-scope="scope">{{scope.row.reality_price}}</template>
82
           <template slot-scope="scope">{{scope.row.reality_price}}</template>
83
         </el-table-column>
83
         </el-table-column>
84
-        <el-table-column align="center" prop="name" label="科室">
84
+        <el-table-column align="center" width="90" prop="name" label="科室">
85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
86
         </el-table-column>
86
         </el-table-column>
87
-        <el-table-column align="center" prop="name" label="收费日期">
87
+        <el-table-column align="center" width="100" prop="name" label="收费日期">
88
           <template slot-scope="scope">
88
           <template slot-scope="scope">
89
             {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
89
             {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
90
           </template>
90
           </template>
91
         </el-table-column>
91
         </el-table-column>
92
-        <el-table-column align="center" prop="name" label="收费员">
92
+        <el-table-column align="center" width="90" prop="name" label="收费员">
93
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
93
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
94
         </el-table-column>
94
         </el-table-column>
95
-        <el-table-column align="center" prop="name" label="状态">
95
+        <el-table-column align="center" width="80" prop="name" label="状态">
96
           <template slot-scope="scope">
96
           <template slot-scope="scope">
97
             <div v-if="scope.row.order_status == 1">待结算</div>
97
             <div v-if="scope.row.order_status == 1">待结算</div>
98
             <div v-if="scope.row.order_status == 2">已结算</div>
98
             <div v-if="scope.row.order_status == 2">已结算</div>
371
         } else {
371
         } else {
372
           this.statementVisible = true;
372
           this.statementVisible = true;
373
           let obj = {
373
           let obj = {
374
-            order_id: row.id
374
+            order_id: row.id,
375
+            settle_type:row.settle_type,
376
+            start_time:row.settle_start_time,
377
+            end_time:row.settle_end_time,
375
           };
378
           };
376
           this.orderObj = obj
379
           this.orderObj = obj
377
         }
380
         }

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Wyświetl plik

260
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
260
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263
-                id:prescription.doctor_advice[b].drug_id
263
+                id:prescription.doctor_advice[b].drug_id,
264
+                drug:prescription.doctor_advice[b].drug,
265
+
264
               };
266
               };
265
               tempAdvice.push(obj)
267
               tempAdvice.push(obj)
266
 
268
 

+ 206 - 155
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue Wyświetl plik

7
       element-loading-text="拼命加载中"
7
       element-loading-text="拼命加载中"
8
       element-loading-spinner="el-icon-loading"
8
       element-loading-spinner="el-icon-loading"
9
       element-loading-background="rgba(0, 0, 0, 0.8)"
9
       element-loading-background="rgba(0, 0, 0, 0.8)"
10
+      v-if="dialysisShow"
10
     >
11
     >
11
-    <div style="padding-top: 56px;width:100%;">
12
-
13
-      <nav-igation
14
-        ref="nav"
15
-        title="弹窗导航"
16
-        @advice="adviceFunc"
17
-        :patient="patient"
18
-        :schedual="schedual"
19
-        :prescription="prescription"
20
-        :solution="solution"
21
-        :receiver_treatment_access="receiver_treatment_access"
22
-        :predialysis_evaluation="predialysis_evaluation"
23
-        :doctor_advices="doctor_advices"
24
-        :double_check="double_check"
25
-        :assessment_after_dislysis="assessment_after_dislysis"
26
-        :treatment_summary="treatment_summary"
27
-        :monitor_records="monitor_records"
28
-        :dialysis_order="dialysis_order"
29
-        :admin_users="admin_users"
30
-        :devices="devices"
31
-        :device_numbers="device_numbers"
32
-        :admin_user_map="admin_user_map"
33
-        :device_map="device_map"
34
-        :device_number_map="device_number_map"
35
-        :niprocart_info="niprocart_info"
36
-        :jms_info="jms_info"
37
-        :fistula_needle_set_info="fistula_needle_set_info"
38
-        :fistula_needle_set_16_info="fistula_needle_set_16_info"
39
-        :hemoperfusion_info="hemoperfusion_info"
40
-        :dialyser_sterilised_info="dialyser_sterilised_info"
41
-        :filtryzer_info="filtryzer_info"
42
-        :dialyzers_info="dialyzers_info"
43
-        :injector_info="injector_info"
44
-        :bloodlines_info="bloodlines_info"
45
-        :tubingHemodialysis_info="tubingHemodialysis_info"
46
-        :safe_package_info="safe_package_info"
47
-        :aliquid_info="aliquid_info"
48
-        :config="config"
49
-        :longAdvices="longAdvices"
50
-        :waitUploadAdvices="waitUploadAdvices"
51
-        :is_open="is_open"
52
-        :last_predialysis_evaluation="lastPredialysisEvaluation"
53
-        :last_monitor_record="lastMonitorRecord"
54
-        :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
55
-        :last_dialysis_prescribe="lastDialysisPrescribe"
56
-        :last_dryWeight_dislysis="lastDryWeightDislysis"
57
-        :special_premission="headNurses"
58
-        @assessmentAfterDislysis="assessmentAfterDislysisFunc"
59
-        :system_prescribe="system_prescribe"
60
-        :his_is_open="his_is_open"
61
-        :lastAssessment="lastAssessment"
62
-        :stockType="stockType"
63
-      >
64
-      </nav-igation>
65
-
66
-
67
-
68
-      <basic-infor
69
-        :patient="patient"
70
-        :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
71
-        :steps="steps"
72
-        title="基本信息"
73
-      ></basic-infor>
74
-
75
-      <dialysis-prescription
76
-        :prescription="prescription"
77
-        :solution="solution"
78
-        :device_map="device_map"
79
-        :preparestock="preparestock"
80
-        title="透析处方"
81
-      ></dialysis-prescription>
82
-
83
-
84
-
85
-    <!-- <past-data class="往期数据"></past-data> -->
86
-      <div style="height: 20px;background-color: #f6f8f9"></div>
87
-      <accepts-assessment
88
-        :record="receiver_treatment_access"
89
-        title="接诊评估"
90
-      ></accepts-assessment>
91
-
92
-      <assessment-before
93
-        :record="predialysis_evaluation"
94
-        ref="assessment_before"
95
-        title="透前评估"
96
-      ></assessment-before>
97
-
98
-      <stat-order
99
-        ref="stat_order"
100
-        :advices="doctor_advices"
101
-        :doctor_map="admin_user_map"
102
-        title="临时医嘱"
103
-      ></stat-order>
104
-
105
-      <double-check
106
-        ref="double_check"
107
-        :record="double_check"
108
-        :admin_map="admin_user_map"
109
-        title="双人核对 "
110
-      ></double-check>
111
-
112
-      <dialysis-computer
113
-        ref="dialysis_computer"
114
-        :record="dialysis_order"
115
-        :admin_map="admin_user_map"
116
-        :device_number_map="device_number_map"
117
-        title="透析上机 "
118
-      ></dialysis-computer>
119
-
120
-      <dialysis-monitoring
121
-        ref="monitoring"
122
-        :monitores="monitor_records"
123
-        title="透析监测"
124
-      ></dialysis-monitoring>
125
-
126
-
127
-      <dialysis-off
128
-        ref="dialysis_off"
129
-        :record="dialysis_order"
130
-        :admin_map="admin_user_map"
131
-        title="透析下机 "
132
-      ></dialysis-off>
133
-
134
-      <assessment-after
135
-        ref="assessment_after"
136
-        :record="assessment_after_dislysis"
137
-        title="透后评估"
138
-      ></assessment-after>
139
-
140
-      <treatment-of
141
-        ref="treatment_of"
142
-        :record="treatment_summary"
143
-        title="治疗小结"
144
-      ></treatment-of>
12
+      <div style="padding-top: 56px;width:100%;" >
13
+
14
+        <nav-igation
15
+          ref="nav"
16
+          title="弹窗导航"
17
+          @advice="adviceFunc"
18
+          :patient="patient"
19
+          :schedual="schedual"
20
+          :prescription="prescription"
21
+          :solution="solution"
22
+          :receiver_treatment_access="receiver_treatment_access"
23
+          :predialysis_evaluation="predialysis_evaluation"
24
+          :doctor_advices="doctor_advices"
25
+          :double_check="double_check"
26
+          :assessment_after_dislysis="assessment_after_dislysis"
27
+          :treatment_summary="treatment_summary"
28
+          :monitor_records="monitor_records"
29
+          :dialysis_order="dialysis_order"
30
+          :admin_users="admin_users"
31
+          :devices="devices"
32
+          :device_numbers="device_numbers"
33
+          :admin_user_map="admin_user_map"
34
+          :device_map="device_map"
35
+          :device_number_map="device_number_map"
36
+          :niprocart_info="niprocart_info"
37
+          :jms_info="jms_info"
38
+          :fistula_needle_set_info="fistula_needle_set_info"
39
+          :fistula_needle_set_16_info="fistula_needle_set_16_info"
40
+          :hemoperfusion_info="hemoperfusion_info"
41
+          :dialyser_sterilised_info="dialyser_sterilised_info"
42
+          :filtryzer_info="filtryzer_info"
43
+          :dialyzers_info="dialyzers_info"
44
+          :injector_info="injector_info"
45
+          :bloodlines_info="bloodlines_info"
46
+          :tubingHemodialysis_info="tubingHemodialysis_info"
47
+          :safe_package_info="safe_package_info"
48
+          :aliquid_info="aliquid_info"
49
+          :config="config"
50
+          :longAdvices="longAdvices"
51
+          :waitUploadAdvices="waitUploadAdvices"
52
+          :is_open="is_open"
53
+          :last_predialysis_evaluation="lastPredialysisEvaluation"
54
+          :last_monitor_record="lastMonitorRecord"
55
+          :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
56
+          :last_dialysis_prescribe="lastDialysisPrescribe"
57
+          :last_dryWeight_dislysis="lastDryWeightDislysis"
58
+          :special_premission="headNurses"
59
+          @assessmentAfterDislysis="assessmentAfterDislysisFunc"
60
+          :system_prescribe="system_prescribe"
61
+          :his_is_open="his_is_open"
62
+          :lastAssessment="lastAssessment"
63
+          :stockType="stockType"
64
+        >
65
+        </nav-igation>
66
+
67
+
68
+
69
+        <basic-infor
70
+          :patient="patient"
71
+          :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
72
+          :steps="steps"
73
+          title="基本信息"
74
+        ></basic-infor>
75
+
76
+        <dialysis-prescription
77
+          :prescription="prescription"
78
+          :solution="solution"
79
+          :device_map="device_map"
80
+          :preparestock="preparestock"
81
+          title="透析处方"
82
+        ></dialysis-prescription>
83
+
84
+
85
+
86
+      <!-- <past-data class="往期数据"></past-data> -->
87
+        <div style="height: 20px;background-color: #f6f8f9"></div>
88
+        <accepts-assessment
89
+          :record="receiver_treatment_access"
90
+          title="接诊评估"
91
+        ></accepts-assessment>
92
+
93
+        <assessment-before
94
+          :record="predialysis_evaluation"
95
+          ref="assessment_before"
96
+          title="透前评估"
97
+        ></assessment-before>
98
+
99
+        <stat-order
100
+          ref="stat_order"
101
+          :advices="doctor_advices"
102
+          :doctor_map="admin_user_map"
103
+          title="临时医嘱"
104
+        ></stat-order>
105
+
106
+        <double-check
107
+          ref="double_check"
108
+          :record="double_check"
109
+          :admin_map="admin_user_map"
110
+          title="双人核对 "
111
+        ></double-check>
112
+
113
+        <dialysis-computer
114
+          ref="dialysis_computer"
115
+          :record="dialysis_order"
116
+          :admin_map="admin_user_map"
117
+          :device_number_map="device_number_map"
118
+          title="透析上机 "
119
+        ></dialysis-computer>
120
+
121
+        <dialysis-monitoring
122
+          ref="monitoring"
123
+          :monitores="monitor_records"
124
+          title="透析监测"
125
+        ></dialysis-monitoring>
126
+
127
+
128
+        <dialysis-off
129
+          ref="dialysis_off"
130
+          :record="dialysis_order"
131
+          :admin_map="admin_user_map"
132
+          title="透析下机 "
133
+        ></dialysis-off>
134
+
135
+        <assessment-after
136
+          ref="assessment_after"
137
+          :record="assessment_after_dislysis"
138
+          title="透后评估"
139
+        ></assessment-after>
140
+
141
+        <treatment-of
142
+          ref="treatment_of"
143
+          :record="treatment_summary"
144
+          title="治疗小结"
145
+        ></treatment-of>
145
       </div>
146
       </div>
147
+      
146
     </div>
148
     </div>
149
+    <div style="padding-top: 56px;width:100%;text-align:center;font-size:22px;color:red;" v-else>该患者未排班,请先去排班</div>
147
   </div>
150
   </div>
148
 </template>
151
 </template>
149
 
152
 
194
   },
197
   },
195
   props:{
198
   props:{
196
     record_date:String,
199
     record_date:String,
197
-    patientid:String
200
+    patientid:Number,
201
+    dialysisShow:Boolean
198
   },
202
   },
199
   data() {
203
   data() {
200
     return {
204
     return {
304
 
308
 
305
       queueConfig:{},
309
       queueConfig:{},
306
       stockType:[],
310
       stockType:[],
307
-      preparestock:[]
311
+      preparestock:[],
312
+      dialysisShow:false
308
     }
313
     }
309
   },
314
   },
310
   created() {
315
   created() {
312
     var date = this.record_date
317
     var date = this.record_date
313
     this.patient_id = patient_id
318
     this.patient_id = patient_id
314
     this.date = date
319
     this.date = date
320
+    var ymd = parseTime(new Date(), '{y}-{m}-{d}')
321
+    getDialysisSchedules(ymd).then(rs => {
322
+      var resp = rs.data
323
+      if (resp.state == 1) {
324
+        var schedules = resp.data.schedules
325
+        let arr = []
326
+        schedules.map(item => {
327
+          if(item.patient_id == this.patient_id){
328
+            arr.push(item.patient_id)
329
+          }
330
+        })
331
+        if(arr.length > 0){
332
+          this.dialysisShow = true
333
+        }else{
334
+          this.dialysisShow = false
335
+        }
336
+        console.log('this.dialysisShowthis.dialysisShowthis.dialysisShow',this.dialysisShow)
337
+      } else {
338
+        this.$message.error(resp.msg)
339
+      }
340
+    })
315
 
341
 
316
     
342
     
317
 
343
 
318
   },
344
   },
319
   mounted() {
345
   mounted() {
320
-    this.getScheduleDetail()
321
-    this.getLongAdvice()
346
+    if(this.dialysisShow == true){
347
+      
348
+      this.getScheduleDetail()
349
+      this.getLongAdvice()
350
+    }
351
+    
322
   },
352
   },
323
   watch:{
353
   watch:{
324
         patientid:{
354
         patientid:{
325
             handler(newVal){
355
             handler(newVal){
356
+              var ymd = parseTime(new Date(), '{y}-{m}-{d}')
357
+              getDialysisSchedules(ymd).then(rs => {
358
+                var resp = rs.data
359
+                if (resp.state == 1) {
360
+                  var schedules = resp.data.schedules
361
+                  let arr = []
362
+                  schedules.map(item => {
363
+                    if(item.patient_id == this.patient_id){
364
+                      arr.push(item.patient_id)
365
+                    }
366
+                  })
367
+                  if(arr.length > 0){
368
+                    this.dialysisShow = true
369
+                  }else{
370
+                    this.dialysisShow = false
371
+                  }
372
+                  console.log('this.dialysisShowthis.dialysisShowthis.dialysisShow',this.dialysisShow)
373
+                } else {
374
+                  this.$message.error(resp.msg)
375
+                }
376
+              })
377
+              console.log('执行执行执行执行执行执行',this.dialysisShow)
378
+              if(this.dialysisShow == true){
379
+                console.log('执行')
326
                 this.patient_id = newVal
380
                 this.patient_id = newVal
327
                 this.getScheduleDetail()
381
                 this.getScheduleDetail()
328
                 this.getLongAdvice()
382
                 this.getLongAdvice()
329
-            }
330
-        }
383
+              }
384
+            },
385
+            deep:true
386
+        },
331
   },
387
   },
332
   computed: {
388
   computed: {
333
     websocket() {
389
     websocket() {
444
       // return schedules
500
       // return schedules
445
     }
501
     }
446
   },
502
   },
447
-  beforeDestroy(){
448
-
449
-    let unObj = {
450
-      cmd: "queue/unjoin",
451
-      data: {type:3},
452
-    };
453
-    this.websocketSend(unObj)
454
-  },
455
   methods: {
503
   methods: {
456
     adviceFunc() {
504
     adviceFunc() {
457
       this.getScheduleDetail()
505
       this.getScheduleDetail()
521
       }
569
       }
522
     },
570
     },
523
     getScheduleDetail: function() {
571
     getScheduleDetail: function() {
572
+      
524
       this.loading = true
573
       this.loading = true
525
     //   var dateStr = parseTime(this.date, '{y}-{m}-{d}')
574
     //   var dateStr = parseTime(this.date, '{y}-{m}-{d}')
526
-      if(this.$route.query.showView == true){
527
-        this.loading = false
528
-        return
529
-      }
575
+      // if(this.$route.query.showView == true){
576
+      //   this.loading = false
577
+      //   return
578
+      // }
530
         console.log('this.patient_id',this.patient_id)
579
         console.log('this.patient_id',this.patient_id)
531
         console.log('this.date',this.date)
580
         console.log('this.date',this.date)
532
       this.doctor_advices = []
581
       this.doctor_advices = []
536
         if (resp.state == 1) {
585
         if (resp.state == 1) {
537
           var patient = resp.data.patient // 患者信息
586
           var patient = resp.data.patient // 患者信息
538
           var schedual = resp.data.schedual // 患者排班信息
587
           var schedual = resp.data.schedual // 患者排班信息
539
-          console.log("排班22222222222",schedual)
588
+         
540
           var prescription = resp.data.prescription // 透析处方
589
           var prescription = resp.data.prescription // 透析处方
541
           if (prescription != null) {
590
           if (prescription != null) {
542
             if (prescription.body_fluid == -2) {
591
             if (prescription.body_fluid == -2) {
545
           }
594
           }
546
 
595
 
547
           var solution = resp.data.solution // 透析方案
596
           var solution = resp.data.solution // 透析方案
548
-          console.log("透析方案22223333333333",solution)
597
+         
549
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
598
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
550
 
599
 
551
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
600
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
739
           }
788
           }
740
           this.device_number_map = device_number_map
789
           this.device_number_map = device_number_map
741
         } else {
790
         } else {
742
-          this.$message.error(resp.msg)
791
+         // this.$message.error(resp.msg)
792
+          console.log("报错提示")
793
+          this.$message.error("该患者今日未排班,无法使用此模块,请先排班!")
743
         }
794
         }
744
 
795
 
745
         if (this.lastDialysisPrescribe != null) {
796
         if (this.lastDialysisPrescribe != null) {

+ 2 - 1
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Wyświetl plik

317
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
317
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
319
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
319
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
320
-                id:prescription.doctor_advice[b].drug_id
320
+                id:prescription.doctor_advice[b].drug_id,
321
+                drug:prescription.doctor_advice[b].drug,
321
               };
322
               };
322
               tempAdvice.push(obj)
323
               tempAdvice.push(obj)
323
 
324
 

+ 108 - 25
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Wyświetl plik

7
         <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
7
         <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8
       </el-table-column>
8
       </el-table-column>
9
 
9
 
10
-      <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
10
+      <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
11
         <template slot-scope="scope">
11
         <template slot-scope="scope">
12
           <div style="display:flex;align-items:center;">
12
           <div style="display:flex;align-items:center;">
13
-            <el-input v-model="scope.row.single_dose" @input="getSingleDose(scope)" style="width:65%;"></el-input>
14
-            <div>{{scope.row.single_dose_unit}}</div>
13
+            <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)" style="width:50%;"></el-input>
14
+            <!-- <div>{{scope.row.single_dose_unit}}</div> -->
15
+            <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;" @change="getAllChange(scope)">
16
+              <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
17
+              <el-option :label="scope.row.drug.dose_unit" :value="scope.row.drug.dose_unit"></el-option>
18
+            </el-select>
15
           </div>
19
           </div>
16
         </template>
20
         </template>
17
       </el-table-column>
21
       </el-table-column>
29
       </el-table-column>
33
       </el-table-column>
30
       <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
34
       <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
31
         <template slot-scope="scope">
35
         <template slot-scope="scope">
32
-          <el-select v-model="scope.row.execution_frequency" placehold er="请选择">
36
+          <el-select v-model="scope.row.execution_frequency" placeholder="请选择" @change="getAllChange(scope)">
33
             <el-option
37
             <el-option
34
               v-for="item,index in efs"
38
               v-for="item,index in efs"
35
               :key="index"
39
               :key="index"
44
       <el-table-column align="center" prop="day" width="70" label="天数">
48
       <el-table-column align="center" prop="day" width="70" label="天数">
45
         <template slot-scope="scope">
49
         <template slot-scope="scope">
46
           <div style="display:flex;align-items:center;">
50
           <div style="display:flex;align-items:center;">
47
-          <el-input v-model="scope.row.day" @input="getDay(scope)" placeholder=""></el-input>{{'天'}}
51
+          <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>{{'天'}}
48
           </div>
52
           </div>
49
         </template>
53
         </template>
50
       </el-table-column>
54
       </el-table-column>
51
 
55
 
52
-      <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
56
+      <el-table-column align="center" prop="prescribing_number" width="120" label="总量">
53
         <template slot-scope="scope">
57
         <template slot-scope="scope">
54
           <div style="display:flex;align-items:center;">
58
           <div style="display:flex;align-items:center;">
55
-            <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>
56
-            <div> {{scope.row.prescribing_number_unit}}</div>
59
+            <el-input v-model="scope.row.prescribing_number" @input="changePrescribingNumber(scope)" style="width:50%" placeholder=""></el-input>
60
+            <!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
61
+            <el-select v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;" @change="getAllChange(scope)">
62
+              <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
63
+              <el-option :label="scope.row.drug.max_unit" :value="scope.row.drug.max_unit"></el-option>
64
+            </el-select>
57
           </div>
65
           </div>
58
         </template>
66
         </template>
59
       </el-table-column>
67
       </el-table-column>
381
           .catch(() => {});
389
           .catch(() => {});
382
 
390
 
383
       },
391
       },
384
-      getSingleDose(scope){
385
-        this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
392
+      getAllChange(scope){
393
+        if(scope.row.drug.min_unit == scope.row.single_dose_unit){
394
+          if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
395
+            console.log(1)
396
+            scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
397
+          }else{
398
+            console.log(12)
399
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number) 
400
+          }
401
+        }else{
402
+          if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
403
+            console.log(123)
404
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose) 
405
+          }else{
406
+            console.log(1234)
407
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
408
+          }
409
+        }
410
+        if(scope.row.prescribing_number == 0){
411
+          scope.row.prescribing_number = 1
412
+        }
413
+        if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
414
+          scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
415
+          if(scope.row.prescribing_number > scope.row.drug.total){
416
+            this.$message.error(scope.row.drug_name + '库存不足')
417
+          }
418
+        }else{
419
+          if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
420
+            this.$message.error(scope.row.drug_name + '库存不足')
421
+          }
422
+          scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
423
+        }
424
+        
386
       },
425
       },
387
-      getDay(scope){
388
-        this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
426
+      changePrescribingNumber(scope){
427
+        if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
428
+          if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
429
+            this.$message.error(scope.row.drug_name + '库存不足')
430
+          }
431
+        }else{
432
+          if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
433
+            this.$message.error(scope.row.drug_name + '库存不足')
434
+          }
435
+        }
389
       },
436
       },
390
       getProjectSingleDose(scope){
437
       getProjectSingleDose(scope){
391
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
438
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
439
+        if(this.prescription.project[scope.$index].total == 0){
440
+          this.prescription.project[scope.$index].total = 1
441
+        }
392
       },
442
       },
393
       getProjectDay(scope){
443
       getProjectDay(scope){
394
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
444
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
445
+        if(this.prescription.project[scope.$index].total == 0){
446
+          this.prescription.project[scope.$index].total = 1
447
+        }
448
+        
449
+      },
450
+      getNum(execution_frequency){
451
+        let arr = [
452
+          {name:'立即执行',count:1},
453
+          {name:'透析时',count:1},
454
+          {name:'透析1h一次',count:1},
455
+          {name:'透析2h一次',count:1},
456
+          {name:'透析3h一次',count:1},
457
+          {name:'每日一次',count:1},
458
+          {name:'每日两次',count:2},
459
+          {name:'每日三次',count:1},
460
+          {name:'每晚一次',count:1},
461
+          {name:'每晚',count:1},
462
+          {name:'上机前',count:1},
463
+          {name:'下机前',count:1},
464
+          {name:'透析后立即',count:1},
465
+          {name:'持续使用',count:1},
466
+          {name:'临时开药',count:1},
467
+          {name:'临睡前',count:1},
468
+          {name:'隔日一次',count:1},
469
+          {name:'隔三日一次',count:1},
470
+          {name:'每二小时一次',count:12},
471
+          {name:'每四小时一次',count:6},
472
+          {name:'每六小时一次',count:4},
473
+          {name:'每八小时一次',count:3},
474
+        ]
475
+        let num = ''
476
+        arr.map(item => {
477
+          if(item.name == execution_frequency){
478
+            num = item.count
479
+          }
480
+        })
481
+        if(num == ''){
482
+          num = 1
483
+        }
484
+        return num
395
       }
485
       }
396
     },mounted(){
486
     },mounted(){
397
       this.getInitData()
487
       this.getInitData()
398
 
488
 
399
     },
489
     },
400
     watch:{
490
     watch:{
401
-      // "prescription.advices":{
402
-      //   handler(newVal,oldVal){
403
-      //     newVal.map(item => {
404
-      //       item.prescribing_number = item.single_dose * item.day
405
-      //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
406
-      //         item.total = item.single_dose * item.number_days
407
-      //       }
408
-
409
-
410
-      //     })
411
-      //   },
412
-      //   deep:true
413
-      // },
491
+      "prescription.advices":{
492
+        handler(newVal,oldVal){
493
+          
494
+        },
495
+        deep:true
496
+      },
414
       // "prescription.project":{
497
       // "prescription.project":{
415
       //   handler(newVal,oldVal){
498
       //   handler(newVal,oldVal){
416
       //     newVal.map((item,index) => {
499
       //     newVal.map((item,index) => {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue Wyświetl plik

13
                 <!--<el-radio v-model="radio" label="1">临时</el-radio>-->
13
                 <!--<el-radio v-model="radio" label="1">临时</el-radio>-->
14
                 <!--<el-radio v-model="radio" label="2">长期</el-radio>-->
14
                 <!--<el-radio v-model="radio" label="2">长期</el-radio>-->
15
                 <!--</el-form-item>-->
15
                 <!--</el-form-item>-->
16
-                <el-form-item label="处方模板名称:" style="width: 100%;margin-bottom:0;">
16
+                <el-form-item label="处方模板名称:" style="width: 60%;margin-bottom:0;">
17
                     <el-input v-model="form.name" placeholder=""></el-input>
17
                     <el-input v-model="form.name" placeholder=""></el-input>
18
                 </el-form-item>
18
                 </el-form-item>
19
-                <el-form-item label="透析模式 : " style="width: 100%;">
19
+                <el-form-item label="透析模式 : " style="width: 60%;">
20
                     <el-select v-model="form.mode" style="width:100%;" placeholder="请选择">
20
                     <el-select v-model="form.mode" style="width:100%;" placeholder="请选择">
21
                         <el-option
21
                         <el-option
22
                                 v-for="item in modeOptions"
22
                                 v-for="item in modeOptions"

+ 61 - 20
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Wyświetl plik

137
 
137
 
138
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
138
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
139
                 <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
139
                 <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
140
-                <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>
140
+                <!--<dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>-->
141
+                <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid' :dialysisShow="dialysisShow"></dialysis-index>
142
+
141
             </div>
143
             </div>
142
 
144
 
143
         </div>
145
         </div>
283
         recordVisible: false,
285
         recordVisible: false,
284
         recordObj: {},
286
         recordObj: {},
285
         additions: [],
287
         additions: [],
288
+        dialysisShow:true,
286
 
289
 
287
         all_data: [],
290
         all_data: [],
288
         all_data_two: [],
291
         all_data_two: [],
703
               obj['id'] = drug_month_prescriptions.advices[a].drug_id
706
               obj['id'] = drug_month_prescriptions.advices[a].drug_id
704
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
707
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
705
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
708
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
709
+              obj['drug'] = drug_month_prescriptions.advices[a].drug
710
+
706
               count = count + drug_month_prescriptions.advices[a].prescribing_number
711
               count = count + drug_month_prescriptions.advices[a].prescribing_number
707
 
712
 
708
             }
713
             }
1167
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1172
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1168
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1173
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1169
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1174
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1170
-                    id: prescription.advices[b].drug_id
1175
+                    id: prescription.advices[b].drug_id,
1176
+                    drug: prescription.advices[b].drug,
1177
+
1178
+
1171
                   };
1179
                   };
1172
                   tempAdvice.push(obj)
1180
                   tempAdvice.push(obj)
1173
                 }
1181
                 }
1263
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1271
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1264
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1272
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1265
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1273
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1266
-                      id: prescription.advices[b].drug_id
1274
+                      id: prescription.advices[b].drug_id,
1275
+                      drug:prescription.advices[b].drug
1267
                     };
1276
                     };
1268
                     tempAdvice.push(obj)
1277
                     tempAdvice.push(obj)
1269
                   }
1278
                   }
1355
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1364
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1356
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1365
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1357
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1366
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1358
-                          id: prescription.advices[b].drug_id
1367
+                          id: prescription.advices[b].drug_id,
1368
+                          drug:prescription.advices[b].drug
1369
+
1359
                         };
1370
                         };
1360
                         tempAdvice.push(obj)
1371
                         tempAdvice.push(obj)
1361
                       }
1372
                       }
1440
       },
1451
       },
1441
 
1452
 
1442
       choosePatient(val) {
1453
       choosePatient(val) {
1443
-        console.log(val);
1454
+        console.log(111111,val);
1444
         if(this.titleType == '电子病历'){
1455
         if(this.titleType == '电子病历'){
1445
           console.log('this.$refs.child.watchSign',this.$refs.child.watchSign);
1456
           console.log('this.$refs.child.watchSign',this.$refs.child.watchSign);
1446
           if(this.$refs.child.watchSign > 2){
1457
           if(this.$refs.child.watchSign > 2){
1553
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1564
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1554
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1565
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1555
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1566
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1556
-                          id: prescription.advices[b].drug_id
1567
+                          id: prescription.advices[b].drug_id,
1568
+                          drug:prescription.advices[b].drug
1569
+
1557
                         };
1570
                         };
1558
                         tempAdvice.push(obj)
1571
                         tempAdvice.push(obj)
1559
                       }
1572
                       }
1649
                             single_dose_unit: prescription.advices[b].single_dose_unit,
1662
                             single_dose_unit: prescription.advices[b].single_dose_unit,
1650
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1663
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1651
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1664
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1652
-                            id: prescription.advices[b].drug_id
1665
+                            id: prescription.advices[b].drug_id,
1666
+                            drug:prescription.advices[b].drug
1667
+
1653
                           };
1668
                           };
1654
                           tempAdvice.push(obj)
1669
                           tempAdvice.push(obj)
1655
                         }
1670
                         }
1741
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
1756
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
1742
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1757
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1743
                                 medical_insurance_number: prescription.advices[b].med_list_codg,
1758
                                 medical_insurance_number: prescription.advices[b].med_list_codg,
1744
-                                id: prescription.advices[b].drug_id
1759
+                                id: prescription.advices[b].drug_id,
1760
+                                drug:prescription.advices[b].drug
1761
+
1745
                               };
1762
                               };
1746
                               tempAdvice.push(obj)
1763
                               tempAdvice.push(obj)
1747
                             }
1764
                             }
1927
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1944
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1928
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1945
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1929
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1946
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1930
-                          id: prescription.advices[b].drug_id
1947
+                          id: prescription.advices[b].drug_id,
1948
+                          drug:prescription.advices[b].drug
1949
+
1931
                         };
1950
                         };
1932
                         tempAdvice.push(obj)
1951
                         tempAdvice.push(obj)
1933
                       }
1952
                       }
2023
                             single_dose_unit: prescription.advices[b].single_dose_unit,
2042
                             single_dose_unit: prescription.advices[b].single_dose_unit,
2024
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2043
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2025
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2044
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2026
-                            id: prescription.advices[b].drug_id
2045
+                            id: prescription.advices[b].drug_id,
2046
+                            drug:prescription.advices[b].drug
2047
+
2027
                           };
2048
                           };
2028
                           tempAdvice.push(obj)
2049
                           tempAdvice.push(obj)
2029
                         }
2050
                         }
2115
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
2136
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
2116
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2137
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2117
                                 medical_insurance_number: prescription.advices[b].med_list_codg,
2138
                                 medical_insurance_number: prescription.advices[b].med_list_codg,
2118
-                                id: prescription.advices[b].drug_id
2139
+                                id: prescription.advices[b].drug_id,
2140
+                                drug:prescription.advices[b].drug
2141
+
2119
                               };
2142
                               };
2120
                               tempAdvice.push(obj)
2143
                               tempAdvice.push(obj)
2121
                             }
2144
                             }
2302
                           single_dose_unit: prescription.advices[b].single_dose_unit,
2325
                           single_dose_unit: prescription.advices[b].single_dose_unit,
2303
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2326
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2304
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2327
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2305
-                          id: prescription.advices[b].drug_id
2328
+                          id: prescription.advices[b].drug_id,
2329
+                          drug:prescription.advices[b].drug
2330
+
2306
                         };
2331
                         };
2307
                         tempAdvice.push(obj)
2332
                         tempAdvice.push(obj)
2308
                       }
2333
                       }
2398
                             single_dose_unit: prescription.advices[b].single_dose_unit,
2423
                             single_dose_unit: prescription.advices[b].single_dose_unit,
2399
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2424
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2400
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2425
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2401
-                            id: prescription.advices[b].drug_id
2426
+                            id: prescription.advices[b].drug_id,
2427
+                            drug:prescription.advices[b].drug
2428
+
2402
                           };
2429
                           };
2403
                           tempAdvice.push(obj)
2430
                           tempAdvice.push(obj)
2404
                         }
2431
                         }
2490
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
2517
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
2491
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2518
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2492
                                 medical_insurance_number: prescription.advices[b].med_list_codg,
2519
                                 medical_insurance_number: prescription.advices[b].med_list_codg,
2493
-                                id: prescription.advices[b].drug_id
2520
+                                id: prescription.advices[b].drug_id,
2521
+                                drug:prescription.advices[b].drug
2522
+
2494
                               };
2523
                               };
2495
                               tempAdvice.push(obj)
2524
                               tempAdvice.push(obj)
2496
                             }
2525
                             }
2726
                         single_dose_unit: prescription.advices[b].single_dose_unit,
2755
                         single_dose_unit: prescription.advices[b].single_dose_unit,
2727
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2756
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2728
                         medical_insurance_number: prescription.advices[b].med_list_codg,
2757
                         medical_insurance_number: prescription.advices[b].med_list_codg,
2729
-                        id: prescription.advices[b].drug_id
2758
+                        id: prescription.advices[b].drug_id,
2759
+                        drug:prescription.advices[b].drug
2760
+
2730
                       };
2761
                       };
2731
                       tempAdvice.push(obj)
2762
                       tempAdvice.push(obj)
2732
                     }
2763
                     }
2822
                           single_dose_unit: prescription.advices[b].single_dose_unit,
2853
                           single_dose_unit: prescription.advices[b].single_dose_unit,
2823
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2854
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2824
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2855
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2825
-                          id: prescription.advices[b].drug_id
2856
+                          id: prescription.advices[b].drug_id,
2857
+                          drug:prescription.advices[b].drug
2858
+
2826
                         };
2859
                         };
2827
                         tempAdvice.push(obj)
2860
                         tempAdvice.push(obj)
2828
                       }
2861
                       }
2914
                               single_dose_unit: prescription.advices[b].single_dose_unit,
2947
                               single_dose_unit: prescription.advices[b].single_dose_unit,
2915
                               prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2948
                               prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2916
                               medical_insurance_number: prescription.advices[b].med_list_codg,
2949
                               medical_insurance_number: prescription.advices[b].med_list_codg,
2917
-                              id: prescription.advices[b].drug_id
2950
+                              id: prescription.advices[b].drug_id,
2951
+                              drug:prescription.advices[b].drug
2952
+
2918
                             };
2953
                             };
2919
                             tempAdvice.push(obj)
2954
                             tempAdvice.push(obj)
2920
                           }
2955
                           }
3100
                       single_dose_unit: prescription.advices[b].single_dose_unit,
3135
                       single_dose_unit: prescription.advices[b].single_dose_unit,
3101
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3136
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3102
                       medical_insurance_number: prescription.advices[b].med_list_codg,
3137
                       medical_insurance_number: prescription.advices[b].med_list_codg,
3103
-                      id: prescription.advices[b].drug_id
3138
+                      id: prescription.advices[b].drug_id,
3139
+                      drug:prescription.advices[b].drug
3140
+
3104
                     };
3141
                     };
3105
                     tempAdvice.push(obj)
3142
                     tempAdvice.push(obj)
3106
                   }
3143
                   }
3196
                         single_dose_unit: prescription.advices[b].single_dose_unit,
3233
                         single_dose_unit: prescription.advices[b].single_dose_unit,
3197
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3234
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3198
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3235
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3199
-                        id: prescription.advices[b].drug_id
3236
+                        id: prescription.advices[b].drug_id,
3237
+                        drug:prescription.advices[b].drug
3238
+
3200
                       };
3239
                       };
3201
                       tempAdvice.push(obj)
3240
                       tempAdvice.push(obj)
3202
                     }
3241
                     }
3288
                             single_dose_unit: prescription.advices[b].single_dose_unit,
3327
                             single_dose_unit: prescription.advices[b].single_dose_unit,
3289
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3328
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3290
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3329
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3291
-                            id: prescription.advices[b].drug_id
3330
+                            id: prescription.advices[b].drug_id,
3331
+                            drug:prescription.advices[b].drug
3332
+
3292
                           };
3333
                           };
3293
                           tempAdvice.push(obj)
3334
                           tempAdvice.push(obj)
3294
                         }
3335
                         }

+ 8 - 3
src/xt_pages/outpatientDoctorStation/print.vue Wyświetl plik

13
       </template>
13
       </template>
14
             
14
             
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
+      <printOne v-if="org_id != 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
+      <printFour v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
17
     </div>
18
     </div>
18
   </div>
19
   </div>
19
 </template>
20
 </template>
29
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
30
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
30
 import print from "print-js";
31
 import print from "print-js";
31
 import printOne from "./template/printOne"
32
 import printOne from "./template/printOne"
33
+import printFour from "./template/printFour"
32
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
34
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
33
 export default {
35
 export default {
34
   name: "dialysisPrintOrder",
36
   name: "dialysisPrintOrder",
35
   components: {
37
   components: {
36
     BreadCrumb,
38
     BreadCrumb,
37
-    printOne
39
+    printOne,
40
+    printFour
38
   },
41
   },
39
   props:{
42
   props:{
40
     paramsObj:Object
43
     paramsObj:Object
56
        patient_id:"",
59
        patient_id:"",
57
        prescription_id:"",
60
        prescription_id:"",
58
        ids:'',
61
        ids:'',
59
-       paramsObj:{}
62
+       paramsObj:{},
63
+       org_id:''
60
     };
64
     };
61
   },
65
   },
62
   methods:{
66
   methods:{
154
   },
158
   },
155
 
159
 
156
   created() {
160
   created() {
161
+    this.org_id = this.$store.getters.xt_user.org_id
157
     this.getAllDoctorList()
162
     this.getAllDoctorList()
158
     var record_date = this.paramsObj.record
163
     var record_date = this.paramsObj.record
159
     this.record_date = record_date
164
     this.record_date = record_date

+ 330 - 0
src/xt_pages/outpatientDoctorStation/template/printFour.vue Wyświetl plik

1
+<template>
2
+  <div id='prescriptionPrint'>
3
+    <div v-for="(item,index) in advicePrint" :key="index">
4
+      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
+          <div class="printTitle">{{orgname}}处方笺</div>
6
+          <div class="infoTitle">
7
+              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
+              <p>性别:
9
+                <span v-if="item.patient.gender == 1">男</span>
10
+                <span v-if="item.patient.gender == 2">女</span>
11
+              </p>
12
+              <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
13
+          </div>
14
+          <div class="infoMain">
15
+              <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
16
+              <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
17
+              <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18
+              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19
+              <div>地址:{{item.patient.home_address}}</div>
20
+              <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
21
+          </div>
22
+          <div class="prescriptionBox">
23
+              <div class="Rp">Rp:</div>
24
+              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
25
+                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
26
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
27
+                  <div style="margin-left:100px;"><span>{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</span></div>
28
+              </div>
29
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
30
+                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
31
+               </div>
32
+               
33
+              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
34
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{getProjectName(it.project_id)?getProjectName(it.project_id):""}}&nbsp;&nbsp;<span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
35
+                  <div style="margin-left:100px;"><span>{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</span></div>
36
+              </div>
37
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
38
+                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
39
+               </div>
40
+               <div style="text-align:center;" >(以下空白)</div>
41
+
42
+          </div>
43
+          <div class="doctorBox">
44
+              <p>医师:{{item.doctor?item.doctor:""}}</p>
45
+              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
46
+          </div>
47
+          <div class="actionBar">
48
+                 <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
49
+                 <p>配对:</p>
50
+                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
51
+                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
52
+                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
53
+
54
+                 <p>审核:</p>
55
+                 <p>配对:</p>
56
+                 <p>核对:</p>
57
+                 <p>发药:</p>
58
+                 <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
59
+          </div>
60
+          <div style="page-break-after:always"></div>
61
+      </div>
62
+    </div>
63
+    
64
+  </div>
65
+
66
+    
67
+</template>
68
+<script>
69
+import { jsGetAge, uParseTime } from '@/utils/tools'
70
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
71
+import {getInitData} from "@/api/his/his"
72
+export default {
73
+    props:{
74
+      patient_id:Number,
75
+      record_date:String,
76
+      prescription_id:Number,
77
+      ids:String
78
+    }, 
79
+    data(){
80
+      return {
81
+        doctorList:[],
82
+        advicePrint:{},
83
+        patient:{},
84
+        tableData:[],
85
+        prescriptionInfo:[],
86
+        hisPatient:{},
87
+        department:[],
88
+        prescriptions:[],
89
+        projectList:[],
90
+        orgname:"",
91
+        diagnoses:[],
92
+      }
93
+    },
94
+   methods:{
95
+     
96
+     getAllDoctorList(){
97
+      getAllDoctorList().then(response=>{
98
+        if(response.data.state == 1){
99
+               var doctor =  response.data.data.doctor
100
+               
101
+               this.doctorList = doctor
102
+             }
103
+         })   
104
+     },
105
+
106
+      getDoctor(id){
107
+        var name = ""
108
+        for(let i=0;i<this.doctorList.length;i++){
109
+          if(id == this.doctorList[i].admin_user_id){
110
+              name = this.doctorList[i].user_name
111
+          }
112
+        }
113
+        return name
114
+      },
115
+      getTime(value, temp) {
116
+        if (value != undefined) {
117
+            return uParseTime(value, temp)
118
+        }
119
+        return ''
120
+     },
121
+       getPrescriptionPrint(){
122
+         var params = {
123
+          // patient_id:this.patient_id,
124
+          // record_date:this.record_date,
125
+          // prescription_id:this.prescription_id,
126
+          patient_id:this.patient_id,
127
+          record_date:this.record_date,
128
+          prescription_id:this.prescription_id,
129
+          ids:this.ids
130
+        }
131
+        console.log("params",params)
132
+       getPrescriptionPrint(params).then(response=>{
133
+         if(response.data.state == 1){
134
+            var advicePrint =  response.data.data.advicePrint
135
+            console.log("adviceprint9999",advicePrint)
136
+            this.advicePrint = advicePrint
137
+            this.prescriptions = advicePrint
138
+            console.log("处方222222",this.prescriptions)
139
+            var hisPatient = response.data.data.hisPatient
140
+            console.log("hisPatient",hisPatient)
141
+            this.hisPatient = hisPatient
142
+            var projectlist =  response.data.data.projectlist
143
+            console.log("所有项目列表",projectlist)
144
+            this.projectList = projectlist
145
+          }
146
+       })
147
+     },
148
+     getHisPatientDetail(){
149
+          const params = {
150
+              patient_id:this.patient_id
151
+          }
152
+       getHisPatientDetail(params).then(response=>{
153
+          if(response.data.state == 1){
154
+             var hisPatient =  response.data.data.hisPatient
155
+             console.log("挂号病人",hisPatient)
156
+             this.hisPatient = hisPatient
157
+          }
158
+       })
159
+     },
160
+     getInitData(){
161
+       getInitData().then(response=>{
162
+          if(response.data.state == 1){
163
+            this.department = response.data.data.department
164
+            this.diagnoses = response.data.data.diagnose
165
+            console.log("争端",this.diagnoses)
166
+          }
167
+       })
168
+     },
169
+     getDepart(id){
170
+         var name = ""
171
+       for(let i=0;i<this.department.length;i++){
172
+           if(id == this.department[i].id){
173
+               name = this.department[i].name
174
+           }
175
+       }
176
+       return name
177
+     },
178
+    getTotalOne(id) {
179
+
180
+        var total = 0
181
+        var addtotal = 0
182
+        for (let i = 0; i < this.prescriptions.length; i++) {
183
+          if(id == this.prescriptions[i].id){
184
+            if (this.prescriptions[i].project != null) {
185
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
186
+                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
187
+              }
188
+            }
189
+
190
+            if (this.prescriptions[i].additionalcharge != null) {
191
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
192
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
193
+              }
194
+            }
195
+              addtotal =  Math.floor(addtotal * 100) / 100
196
+        }
197
+       
198
+       }
199
+
200
+      for (let i = 0; i < this.prescriptions.length; i++) {
201
+          if(id == this.prescriptions[i].id){
202
+            if (this.prescriptions[i].advices != null) {
203
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
204
+                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
205
+              }
206
+            }
207
+          
208
+            if (this.prescriptions[i].additionalcharge != null) {
209
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
210
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
211
+              }
212
+            }
213
+              addtotal =  Math.floor(addtotal * 100) / 100
214
+        }
215
+       }
216
+
217
+        return total + addtotal
218
+      },
219
+      
220
+     getProjectName(id){
221
+        var project_name = ""
222
+        for(let i=0;i<this.projectList.length;i++){
223
+           if(id == this.projectList[i].id){
224
+               project_name = this.projectList[i].project_name
225
+           }
226
+        }
227
+        return project_name
228
+     },
229
+
230
+     getDiagnosis(id){
231
+        var name = ""
232
+        for(let i=0;i<this.diagnoses.length;i++){
233
+          if(id == this.diagnoses[i].id){
234
+             name = this.diagnoses[i].class_name
235
+          }
236
+        }
237
+        return name
238
+     }
239
+
240
+   },
241
+   created(){
242
+      this.getAllDoctorList()
243
+      this.getInitData()
244
+      this.getPrescriptionPrint()
245
+      this.getHisPatientDetail()
246
+      var xtuser = this.$store.getters.xt_user;
247
+      this.orgname = xtuser.org.org_name;
248
+     
249
+   },
250
+   watch:{
251
+     ids:function(val){
252
+      this.ids = val
253
+      this.getPrescriptionPrint()
254
+    }
255
+   }
256
+}
257
+</script>
258
+
259
+
260
+<style lang="scss" scoped>
261
+.prescription-print{
262
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
263
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
264
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
265
+    margin-bottom: 20px;
266
+    padding:20px 10px;
267
+}
268
+.printTitle{
269
+    font-size: 22px;
270
+    text-align: center;
271
+    font-weight: bold;
272
+}
273
+.infoTitle{
274
+    display: flex;
275
+    border-bottom: 2px solid #000;
276
+    margin-top:10px;
277
+    line-height: 24px;
278
+    padding:0 10px;
279
+}
280
+.infoTitle p{
281
+    width: 200px;
282
+}
283
+.infoMain{
284
+    display: flex;
285
+    flex-wrap: wrap;
286
+    border-bottom: 2px solid #000;
287
+    padding:0 10px;
288
+}
289
+.infoMain div{
290
+    width: 50%;
291
+    line-height: 24px;
292
+}
293
+.prescriptionBox{
294
+    padding:0 10px;
295
+    min-height:450px;
296
+}
297
+.Rp{
298
+    font-size: 22px;
299
+    font-weight: bold;
300
+}
301
+.drugsBox{
302
+    padding-left: 40px;
303
+    margin-bottom: 10px;
304
+}
305
+.drugsBox div{
306
+    line-height: 20px;
307
+}
308
+.drugsOne{
309
+    line-height: 24px;
310
+}
311
+.drugsOne span{
312
+    margin-right: 20px;
313
+}
314
+.doctorBox{
315
+    display: flex;
316
+    justify-content: space-between;
317
+    padding:0 10px;
318
+    line-height: 24px;
319
+    border-bottom: 2px solid #000;
320
+}
321
+.actionBar{
322
+    display: flex;
323
+    justify-content: space-between; 
324
+    line-height: 24px;
325
+    padding:0 10px;
326
+}
327
+.actionBar p{
328
+    width:150px;
329
+}
330
+</style>

+ 1 - 1
src/xt_pages/qcd/basicInformationAnalysis.vue Wyświetl plik

720
       //本月的结束时间
720
       //本月的结束时间
721
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
721
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
722
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
722
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
723
-      // console.log("本月最后一天",timeEnd)
723
+       console.log("本月最后一天",timeEnd)
724
       //本月
724
       //本月
725
       if(state == 0){
725
       if(state == 0){
726
        //统计透析总量
726
        //统计透析总量

+ 3 - 1
src/xt_pages/role/components/AdminInfoForm.vue Wyświetl plik

440
 
440
 
441
         user_types: [
441
         user_types: [
442
           { index: 2, name: '医生' },
442
           { index: 2, name: '医生' },
443
-          { index: 3, name: '护士' }
443
+          { index: 3, name: '护士' },
444
+          { index:4,name:'行政'},
445
+          { index:5,name:'其他'}
444
         ],
446
         ],
445
         user_titles: [
447
         user_titles: [
446
           { index: 1, name: '医士' },
448
           { index: 1, name: '医士' },

+ 3 - 1
src/xt_pages/stock/detail/print.vue Wyświetl plik

184
       },
184
       },
185
       getDialysisRecord() {
185
       getDialysisRecord() {
186
         this.loading = true
186
         this.loading = true
187
+        
187
         getPrintStockGood(this.queryParams).then(response => {
188
         getPrintStockGood(this.queryParams).then(response => {
188
           if (response.data.state == 1) {
189
           if (response.data.state == 1) {
189
             var stockTotal = response.data.data.stockTotal
190
             var stockTotal = response.data.data.stockTotal
251
             return false
252
             return false
252
           }
253
           }
253
         })
254
         })
254
-      }, calCount(stock) {
255
+      }, 
256
+      calCount(stock) {
255
       
257
       
256
         let total = 0
258
         let total = 0
257
         var array = []
259
         var array = []

+ 8 - 5
src/xt_pages/stock/detail/stockOutDetail.vue Wyświetl plik

164
         </el-table-column>
164
         </el-table-column>
165
         <el-table-column label="数量" align="center">
165
         <el-table-column label="数量" align="center">
166
           <template slot-scope="scope">
166
           <template slot-scope="scope">
167
-            {{ scope.row.count }}
167
+            <span v-if="orgId!=9583">{{ scope.row.count }}</span>
168
+            <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
168
           </template>
169
           </template>
169
         </el-table-column>
170
         </el-table-column>
170
         <el-table-column label="总价" align="center">
171
         <el-table-column label="总价" align="center">
227
     this.goodUnit = this.$store.getters.good_unit
228
     this.goodUnit = this.$store.getters.good_unit
228
     this.getPrintStockGood()
229
     this.getPrintStockGood()
229
     this.getList()
230
     this.getList()
231
+    var org_id = this.$store.getters.xt_user.org.id
232
+    this.orgId = org_id
233
+    console.log("机构信息",org_id)
230
   },
234
   },
231
   data() {
235
   data() {
232
     return {
236
     return {
260
       goodUnit:[],
264
       goodUnit:[],
261
       tableList:[],
265
       tableList:[],
262
       stockTotal:[],
266
       stockTotal:[],
263
-      goodInfoData:[]
267
+      goodInfoData:[],
268
+      orgId:"",
264
     };
269
     };
265
   },
270
   },
266
   methods: {
271
   methods: {
686
         return Math.floor(amountPrice* 100) / 100
691
         return Math.floor(amountPrice* 100) / 100
687
       },
692
       },
688
       getStockCount(id){
693
       getStockCount(id){
689
-
690
         var count = ""
694
         var count = ""
691
         for(let i=0;i<this.stockTotal.length;i++){
695
         for(let i=0;i<this.stockTotal.length;i++){
692
             if(id == this.stockTotal[i].good_id){
696
             if(id == this.stockTotal[i].good_id){
758
         this.tableList[i].index = i+1
762
         this.tableList[i].index = i+1
759
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
763
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
760
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
764
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
761
-        // this.tableList[i].price = this.tableList[i].query_warehouseout_info[0].buy_price
762
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].buy_price).toFixed(2)
765
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].buy_price).toFixed(2)
763
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
766
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
764
        }
767
        }
800
        }
803
        }
801
        return total_price
804
        return total_price
802
      },
805
      },
803
-
806
+   
804
      
807
      
805
   }
808
   }
806
 };
809
 };

+ 1 - 0
src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue Wyświetl plik

303
   },
303
   },
304
   methods: {
304
   methods: {
305
     comfirm: function(val) {
305
     comfirm: function(val) {
306
+     
306
       this.propForm.goodType = []
307
       this.propForm.goodType = []
307
       this.propForm.goods = []
308
       this.propForm.goods = []
308
 
309
 

+ 7 - 10
src/xt_pages/stock/drugs/drugStockInOrder.vue Wyświetl plik

422
           this.total = response.data.data.total;
422
           this.total = response.data.data.total;
423
           for (let i = 0; i < response.data.data.list.length; i++) {
423
           for (let i = 0; i < response.data.data.list.length; i++) {
424
             this.Warehouse.warehouseDate.push(response.data.data.list[i]);
424
             this.Warehouse.warehouseDate.push(response.data.data.list[i]);
425
-          }
426
-          console.log("列表",this.warehouse.warehouseDate)
425
+          }      
427
         }
426
         }
428
       });
427
       });
429
     },
428
     },
432
       row.index = rowIndex;
431
       row.index = rowIndex;
433
     },
432
     },
434
     onRowClick(row, event, column) {
433
     onRowClick(row, event, column) {
435
-      this.WarehouseInfo.warehouseInfoDate = [];
434
+     this.WarehouseInfo.warehouseInfoDate = [];
436
       this.Warehouse.tableCurrentIndex = row.index;
435
       this.Warehouse.tableCurrentIndex = row.index;
437
       const params = {
436
       const params = {
438
         id: row.id
437
         id: row.id
446
         } else {
445
         } else {
447
           this.WarehouseInfo.loading = false;
446
           this.WarehouseInfo.loading = false;
448
           for (let i = 0; i < response.data.data.info.length; i++) {
447
           for (let i = 0; i < response.data.data.info.length; i++) {
449
-            this.WarehouseInfo.warehouseInfoDate.push(
450
-              response.data.data.info[i]
451
-            );
448
+            this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
452
           }
449
           }
453
         }
450
         }
454
       });
451
       });
566
           this.$message.error(response.data.msg);
563
           this.$message.error(response.data.msg);
567
           return false;
564
           return false;
568
         } else {
565
         } else {
566
+          //  this.WarehouseInfo.warehouseInfoDate = []
567
+           
569
           for (let i = 0; i < response.data.data.info.length; i++) {
568
           for (let i = 0; i < response.data.data.info.length; i++) {
570
-            this.WarehouseInfo.warehouseInfoDate = []
571
-            this.WarehouseInfo.warehouseInfoDate.push(
572
-              response.data.data.info[i]
573
-            );
569
+            this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
574
           }
570
           }
571
+          console.log("列表222222222", this.WarehouseInfo.warehouseInfoDate)
575
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
572
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
576
         }
573
         }
577
       });
574
       });

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Wyświetl plik

421
         this.isVisibility = true
421
         this.isVisibility = true
422
       }, 
422
       }, 
423
       comfirm: function(val) {
423
       comfirm: function(val) {
424
-        console.log("Val2222222",val)
424
+        console.log("Val2222222",this.currentIndex)
425
         this.$refs.dialog.hide()
425
         this.$refs.dialog.hide()
426
         if (val.selectedGoodInfo.length > 0) {
426
         if (val.selectedGoodInfo.length > 0) {
427
           for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {
427
           for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {

+ 1 - 0
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Wyświetl plik

375
     comfirm: function(val) {
375
     comfirm: function(val) {
376
       this.$refs.dialog.hide();
376
       this.$refs.dialog.hide();
377
       console.log(val)
377
       console.log(val)
378
+      console.log("下摆哦2222222",this.currentIndex)
378
       if (val.selectedGoodInfo.length > 0) {
379
       if (val.selectedGoodInfo.length > 0) {
379
         for (let i = val.selectedGoodInfo.length - 1; i >= 0 ; i--) {
380
         for (let i = val.selectedGoodInfo.length - 1; i >= 0 ; i--) {
380
           if (i == 0) {
381
           if (i == 0) {

+ 3 - 5
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Wyświetl plik

8
     <div class="app-container ">
8
     <div class="app-container ">
9
       <div id="dialysis-print-box">
9
       <div id="dialysis-print-box">
10
         <div class="dialysis-print-order">
10
         <div class="dialysis-print-order">
11
-         <div class="order-yy-name" style="font-weight:bold;">{{orgName}}</div>
12
-          <div class="order-title" style="font-weight:normal;">药品出库登记表</div>
13
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
11
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
14
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
12
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
15
 
13
 
18
           <table class="print-table" border="1">
16
           <table class="print-table" border="1">
19
             <tbody>
17
             <tbody>
20
             <tr>
18
             <tr>
21
-              <td style="line-height: 50px" width="250">药品名称</td>
22
-              <td style="line-height: 50px" width="250">规格型号</td>
19
+              <td style="line-height: 50px" width="230">药品名称</td>
20
+              <td style="line-height: 50px" width="230">规格型号</td>
23
               <td style="line-height: 50px" width="50">单位</td>
21
               <td style="line-height: 50px" width="50">单位</td>
24
               <td style="line-height: 50px" width="80">出货数量</td>
22
               <td style="line-height: 50px" width="80">出货数量</td>
25
               <td style="line-height:50px" width="80">出库价格</td>
23
               <td style="line-height:50px" width="80">出库价格</td>
72
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
70
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
73
             <div style="width:50px;">科室:</div><div style="width:60px;"></div>
71
             <div style="width:50px;">科室:</div><div style="width:60px;"></div>
74
             <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
72
             <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
75
-            <div style="width:80px;">审批:</div><div style="width:100px;"></div>
73
+            <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
76
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
74
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
77
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
75
             <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
78
             <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
76
             <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>

+ 2 - 1
src/xt_pages/stock/stockOutOrderDetailPrint.vue Wyświetl plik

164
             console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData);
164
             console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData);
165
             var total_price = 0;
165
             var total_price = 0;
166
             for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
166
             for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
167
-              total_price += this.getOutStockCount(this.warehousingOutInfo.warehousingOutData[i].good_id)*this.warehousingOutInfo.warehousingOutData[i].price
167
+              total_price += this.warehousingOutInfo.warehousingOutData[i].total_price   
168
             }
168
             }
169
+            console.log('this.allPrice',this.allPrice)
169
            this.allPrice = total_price;
170
            this.allPrice = total_price;
170
 
171
 
171
            var wareoutList =  response.data.data.wareoutList;
172
            var wareoutList =  response.data.data.wareoutList;

+ 1 - 6
src/xt_pages/stock/stockQuery.vue Wyświetl plik

150
 
150
 
151
         <el-table-column label="剩余库存" align="center">
151
         <el-table-column label="剩余库存" align="center">
152
           <template slot-scope="scope">
152
           <template slot-scope="scope">
153
-            <span>{{
154
-              stockInCount(scope.row) -
155
-                salesReturnCount(scope.row) -
156
-                stockOutCount(scope.row) +
157
-                cancelStockCount(scope.row)
158
-            }}</span>
153
+            <span>{{stockInCount(scope.row)  - stockOutCount(scope.row) }}</span>
159
           </template>
154
           </template>
160
         </el-table-column>
155
         </el-table-column>
161
       </el-table>
156
       </el-table>

+ 54 - 6
src/xt_pages/user/dialysisSolution.vue Wyświetl plik

512
             </el-form-item>
512
             </el-form-item>
513
           </el-col>
513
           </el-col>
514
 
514
 
515
+         <el-col :span="8" v-if="isShows('血浆分离器')">
516
+             <el-form-item label="血浆分离器:">
517
+               <el-input v-model="addPlan.plasma_separator" @focus="showInnerDialog('8')"></el-input>
518
+             </el-form-item>
519
+         </el-col>
520
+
521
+
522
+        <el-col :span="8" v-if="isShows('血浆分离器')">
523
+             <el-form-item label="血浆分离器:">
524
+               <el-input v-model="addPlan.bilirubin_adsorption_column" @focus="showInnerDialog('9')"></el-input>
525
+             </el-form-item>
526
+         </el-col>
527
+
515
           <el-col :span="8" v-if="isShows('目标KT/V')">
528
           <el-col :span="8" v-if="isShows('目标KT/V')">
516
             <el-form-item label="目标KT/V">
529
             <el-form-item label="目标KT/V">
517
               <el-input v-model="addPlan.target_ktv"></el-input>
530
               <el-input v-model="addPlan.target_ktv"></el-input>
519
           </el-col>
532
           </el-col>
520
         </el-row>
533
         </el-row>
521
 
534
 
535
+
536
+    
537
+
538
+
522
         <el-row :gutter="24">
539
         <el-row :gutter="24">
523
           <el-col :span="24">
540
           <el-col :span="24">
524
             <el-form-item label="备注: " prop="remark">
541
             <el-form-item label="备注: " prop="remark">
707
         blood_access: '',
724
         blood_access: '',
708
         dialysis_dialyszers:'',
725
         dialysis_dialyszers:'',
709
         dialysis_irrigation:'',
726
         dialysis_irrigation:'',
727
+        plasma_separator:"",
728
+        bilirubin_adsorption_column:"",
710
       },
729
       },
711
       childPlan: {
730
       childPlan: {
712
         mode: '',
731
         mode: '',
835
      dialyzers:[],
854
      dialyzers:[],
836
      dialysis_dialyszers:'',
855
      dialysis_dialyszers:'',
837
      dialysis_irrigation:"",
856
      dialysis_irrigation:"",
857
+     plasmaSeparatorList:[],
858
+     bilirubinAdsorptionColumn:[],
838
     }
859
     }
839
   },
860
   },
840
   watch: {
861
   watch: {
913
           this.InnerDialogProps.selected = this.dialysis_irrigation
934
           this.InnerDialogProps.selected = this.dialysis_irrigation
914
           this.InnerDialogProps.isShowTextArea = false
935
           this.InnerDialogProps.isShowTextArea = false
915
 
936
 
937
+          break
938
+        case '8':
939
+         
940
+          this.InnerDialogProps.values = this.plasmaSeparatorList
941
+          this.InnerDialogProps.titles = '血浆分离器'
942
+          this.InnerDialogProps.type = 'plasma_separator'
943
+          this.InnerDialogProps.selected = this.addPlan.plasma_separator
944
+          this.InnerDialogProps.isShowTextArea = false
945
+
946
+          break
947
+         case '9':
948
+         
949
+          this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
950
+          this.InnerDialogProps.titles = '胆红素吸附柱'
951
+          this.InnerDialogProps.type = 'bilirubin_adsorption_column'
952
+          this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
953
+          this.InnerDialogProps.isShowTextArea = false
954
+
916
           break
955
           break
917
       }
956
       }
918
     },
957
     },
919
     innerDialogComfirm: function(val) {
958
     innerDialogComfirm: function(val) {
920
-
959
+      console.log("value",val)
921
       this.InnerDialogProps.visibility = false
960
       this.InnerDialogProps.visibility = false
922
       switch (val.type) {
961
       switch (val.type) {
923
         case 'dialyzer_perfusion_apparatus':
962
         case 'dialyzer_perfusion_apparatus':
925
           break
964
           break
926
         case 'dialyzers':
965
         case 'dialyzers':
927
           this.dialysis_dialyszers = val.value.join(',')
966
           this.dialysis_dialyszers = val.value.join(',')
928
-          console.log("3333333",this.addPlan.dialysis_dialyszers)
929
-
930
           break
967
           break
931
         case 'irrigations':
968
         case 'irrigations':
932
           this.dialysis_irrigation = val.value.join(',')
969
           this.dialysis_irrigation = val.value.join(',')
933
           break
970
           break
934
-
971
+        case 'plasma_separator':
972
+          this.addPlan.plasma_separator = val.value.join(',')
973
+          break
974
+        case 'bilirubin_adsorption_column':
975
+          this.addPlan.bilirubin_adsorption_column = val.value.join(',')
976
+          break
935
       }
977
       }
936
     },
978
     },
937
     innerDialogCancle: function() {
979
     innerDialogCancle: function() {
1376
       this.addPlan.remark = row.remark
1418
       this.addPlan.remark = row.remark
1377
 
1419
 
1378
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1420
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1421
+      this.addPlan.plasma_separator = row.plasma_separator.toString()
1422
+      this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1379
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1423
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1380
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1424
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1381
       this.dialysis_irrigation = row.dialysis_irrigation
1425
       this.dialysis_irrigation = row.dialysis_irrigation
1474
         dialysis_duration_hour: '3',
1518
         dialysis_duration_hour: '3',
1475
         dialysis_duration_minute: '30',
1519
         dialysis_duration_minute: '30',
1476
         created_time:"",
1520
         created_time:"",
1521
+        plasma_separator:"",
1522
+        bilirubin_adsorption_column:"",
1477
       }
1523
       }
1478
       this.addPlanTypeChange()
1524
       this.addPlanTypeChange()
1479
 
1525
 
1713
               displace_liqui_part: '',
1759
               displace_liqui_part: '',
1714
               displace_liqui_value: '',
1760
               displace_liqui_value: '',
1715
               ultrafiltration: '',
1761
               ultrafiltration: '',
1716
-              blood_access: ''
1762
+              blood_access: '',
1763
+              plasma_separator:"",
1717
             }
1764
             }
1718
 
1765
 
1719
             for (const key in tempAddPlan) {
1766
             for (const key in tempAddPlan) {
1811
       'hemodialysis',
1858
       'hemodialysis',
1812
       'dialyzer_perfusion_apparatus'
1859
       'dialyzer_perfusion_apparatus'
1813
     )
1860
     )
1814
-
1861
+    this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
1862
+    this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
1815
     this.queryParams.id = this.patientID
1863
     this.queryParams.id = this.patientID
1816
     // this.fetchAllDoctorAndNurse();
1864
     // this.fetchAllDoctorAndNurse();
1817
 
1865
 

+ 28 - 13
src/xt_pages/workforce/appointment.vue Wyświetl plik

69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70
         <div style="display:flex;align-items:center">
70
         <div style="display:flex;align-items:center">
71
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
71
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
72
-           <el-button @click="printTable" type="primary" size="small">打印排班</el-button>
72
+           <!-- <el-button @click="printTable" type="primary" size="small">打印排班</el-button> -->
73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
74
             导出模版
74
             导出模版
75
           </el-button>
75
           </el-button>
85
           >下载日志
85
           >下载日志
86
           </el-button>
86
           </el-button>
87
 
87
 
88
-          <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印</el-button>
88
+          <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
89
           <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
89
           <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
90
           <el-button type="primary" size="small" @click="copySchedule">复制排班</el-button>
90
           <el-button type="primary" size="small" @click="copySchedule">复制排班</el-button>
91
         </div>
91
         </div>
157
   import moment from 'moment'
157
   import moment from 'moment'
158
   import { parseTime } from '@/utils'
158
   import { parseTime } from '@/utils'
159
   import tableData from './components/tableData'
159
   import tableData from './components/tableData'
160
-  import { exportSchedule, getWeekPanels, initDate,getThreeWeekList,copyPatientSchedule } from '@/api/schedule'
160
+  import { exportSchedule, getWeekPanels, initDate,getThreeWeekList,copyPatientSchedule,getScheduleTemplate } from '@/api/schedule'
161
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
161
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
162
   import UploadExcel from '@/xt_pages/components/UploadExcel'
162
   import UploadExcel from '@/xt_pages/components/UploadExcel'
163
   import ScheduleUploadExcel from './components/scheduleUploadExcel/index'
163
   import ScheduleUploadExcel from './components/scheduleUploadExcel/index'
216
         clen:7,
216
         clen:7,
217
         nowYear: new Date().getFullYear(),
217
         nowYear: new Date().getFullYear(),
218
         schedule_week:0,
218
         schedule_week:0,
219
-        newDay:[]
220
-
219
+        newDay:[],
220
+       templateObj:{}
221
       }
221
       }
222
     },
222
     },
223
     components: {
223
     components: {
227
       UploadExcel
227
       UploadExcel
228
     },
228
     },
229
     methods: {
229
     methods: {
230
-      printTable(){
231
-        this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
232
-      },
230
+      // printTable(){
231
+      //   this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
232
+      // },
233
       generateTxt: function(log) {
233
       generateTxt: function(log) {
234
         var content = ''
234
         var content = ''
235
         var errlog = log.err_logs
235
         var errlog = log.err_logs
638
         } else if (this.activeName == 'nextTwoWeek') {
638
         } else if (this.activeName == 'nextTwoWeek') {
639
           date = date + 14 * 24 * 60 * 60 * 1000
639
           date = date + 14 * 24 * 60 * 60 * 1000
640
         }
640
         }
641
-        this.$router.push({
642
-          path: '/workforce/schedule/print',
643
-          query: { date: date }
644
-        })
645
-      }, isShow() {
641
+        
642
+        if(this.templateObj.template_id == 0 || this.templateObj.template_id == 1){
643
+           this.$router.push({path: '/workforce/schedule/print',query: { date: date }})
644
+        }
645
+        if(this.templateObj.template_id == 2){
646
+          this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
647
+        }
648
+       
649
+      }, 
650
+      isShow() {
646
         let isShow = false
651
         let isShow = false
647
         if (Object.keys(this.partitions).length != 0) {
652
         if (Object.keys(this.partitions).length != 0) {
648
           isShow = true
653
           isShow = true
2811
               }
2816
               }
2812
            })
2817
            })
2813
         },
2818
         },
2819
+        getlist(){
2820
+          getScheduleTemplate().then(response=>{
2821
+             if(response.data.state == 1){
2822
+                var template = response.data.data.template
2823
+                console.log("模版",template)
2824
+                this.templateObj = template
2825
+             }
2826
+          })
2827
+        }
2814
     },
2828
     },
2815
     created() {
2829
     created() {
2830
+     this.getlist()
2816
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2831
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2817
    
2832
    
2818
      this.start_time = start_time
2833
      this.start_time = start_time

+ 4 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue Wyświetl plik

129
       </el-table-column>
129
       </el-table-column>
130
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
130
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
131
         <template slot-scope="scope">
131
         <template slot-scope="scope">
132
-          <span v-if="org_id!=9987" > {{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
132
+          <span v-if="org_id!=9987" >
133
+             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span> 
134
+             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ scope.row.dialysissolution[0].dialyzer_perfusion_apparatus }}</span> 
135
+          </span>
133
           {{scope.row.prescription.dialysis_dialyszers}}
136
           {{scope.row.prescription.dialysis_dialyszers}}
134
          <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
137
          <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
135
           <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
138
           <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>

+ 3 - 0
src/xt_pages/workforce/components/tableData.vue Wyświetl plik

1066
         }, 0);
1066
         }, 0);
1067
         sums[index];
1067
         sums[index];
1068
       });
1068
       });
1069
+      this.$nextTick(() => {
1070
+        this.$refs.table.doLayout();
1071
+      });
1069
 
1072
 
1070
       return sums;
1073
       return sums;
1071
     },
1074
     },

+ 5 - 2
src/xt_pages/workforce/components/tableWeeks.vue Wyświetl plik

146
       </el-table-column>
146
       </el-table-column>
147
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
147
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
148
         <template slot-scope="scope">
148
         <template slot-scope="scope">
149
-          <span v-if="org_id!=9987">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
150
-          {{scope.row.prescription.dialysis_dialyszers}}
149
+          <span v-if="org_id!=9987">
150
+             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span> 
151
+             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.length>0 ">{{scope.row.dialysissolution[0].dialyzer_perfusion_apparatus}}</span>
152
+          </span>
153
+           {{scope.row.prescription.dialysis_dialyszers}}
151
           <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
154
           <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
152
           <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
155
           <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
153
         </template>
156
         </template>

+ 4 - 1
src/xt_pages/workforce/next_remind_print.vue Wyświetl plik

61
                   {{modeOptions[main_collection.mode_id].name}}
61
                   {{modeOptions[main_collection.mode_id].name}}
62
                 </td>
62
                 </td>
63
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">
63
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">
64
-                  <span v-if="org_id!=9987">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
64
+                 <span v-if="org_id!=9987">
65
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> {{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
66
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution[0].dialyzer_perfusion_apparatus}}</span> 
67
+                  </span>
65
                   {{main_collection.prescription.dialysis_dialyszers}} 
68
                   {{main_collection.prescription.dialysis_dialyszers}} 
66
                   <span v-if="main_collection.prescription.dialysis_dialyszers!='' && main_collection.prescription.dialysis_irrigation!=''">/</span>
69
                   <span v-if="main_collection.prescription.dialysis_dialyszers!='' && main_collection.prescription.dialysis_irrigation!=''">/</span>
67
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''"> {{main_collection.prescription.dialysis_irrigation}}</span>
70
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''"> {{main_collection.prescription.dialysis_irrigation}}</span>

+ 5 - 2
src/xt_pages/workforce/remind_print.vue Wyświetl plik

60
                   {{modeOptions[main_collection.mode_id].name}}
60
                   {{modeOptions[main_collection.mode_id].name}}
61
                 </td>
61
                 </td>
62
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
62
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
63
-                  <span v-if="org_id!=9987">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
64
-                  {{main_collection.prescription.dialysis_dialyszers}}
63
+                  <span v-if="org_id!=9987">
64
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> {{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
65
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution[0].dialyzer_perfusion_apparatus}}</span> 
66
+                  </span>
67
+                    {{main_collection.prescription.dialysis_dialyszers}}
65
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
68
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
66
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span>
69
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span>
67
 
70
 

+ 25 - 24
src/xt_pages/workforce/scheduleTablePrint.vue Wyświetl plik

12
                 <td colspan="3">周五({{ weekTitle[4] }})</td>
12
                 <td colspan="3">周五({{ weekTitle[4] }})</td>
13
                 <td colspan="3">周六({{ weekTitle[5] }})</td>
13
                 <td colspan="3">周六({{ weekTitle[5] }})</td>
14
                 <td colspan="3">周日({{ weekTitle[6] }})</td>
14
                 <td colspan="3">周日({{ weekTitle[6] }})</td>
15
-                <td colspan="3">总数</td>
15
+                <td>总数</td>
16
             </tr>
16
             </tr>
17
             <tr>
17
             <tr>
18
                 <td>上午</td>
18
                 <td>上午</td>
678
                           }
678
                           }
679
 
679
 
680
                          //礼拜三晚上
680
                          //礼拜三晚上
681
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
681
+                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 3){
682
                             
682
                             
683
                               newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
683
                               newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
684
                           }
684
                           }
686
 
686
 
687
 
687
 
688
                         //礼拜四上午
688
                         //礼拜四上午
689
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
689
+                         if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 1){
690
                             
690
                             
691
-                              newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
691
+                              newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
692
                           } 
692
                           } 
693
 
693
 
694
                          //礼拜四下午
694
                          //礼拜四下午
695
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
695
+                         if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 2){
696
                             
696
                             
697
-                              newArr[i].Thurs_M.patient = this.scheduleCountList[j].Count
697
+                              newArr[i].Thurs_A.patient = this.scheduleCountList[j].Count
698
                           }
698
                           }
699
 
699
 
700
                          //礼拜四晚上
700
                          //礼拜四晚上
701
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
701
+                         if(this.scheduleCountList[j].schedule_week == 4 && this.scheduleCountList[j].schedule_type == 3){
702
                             
702
                             
703
                               newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
703
                               newArr[i].Thurs_N.patient = this.scheduleCountList[j].Count
704
                           }
704
                           }
705
 
705
 
706
 
706
 
707
                         //礼拜五上午
707
                         //礼拜五上午
708
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
708
+                         if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 1){
709
                             
709
                             
710
-                              newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
710
+                              newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
711
                           } 
711
                           } 
712
 
712
 
713
                          //礼拜五下午
713
                          //礼拜五下午
714
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
714
+                         if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 2){
715
                             
715
                             
716
-                              newArr[i].Fri_M.patient = this.scheduleCountList[j].Count
716
+                              newArr[i].Fri_A.patient = this.scheduleCountList[j].Count
717
                           }
717
                           }
718
 
718
 
719
                          //礼拜五晚上
719
                          //礼拜五晚上
720
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
720
+                         if(this.scheduleCountList[j].schedule_week == 5 && this.scheduleCountList[j].schedule_type == 3){
721
                             
721
                             
722
                               newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
722
                               newArr[i].Fri_N.patient = this.scheduleCountList[j].Count
723
                           }
723
                           }
724
 
724
 
725
 
725
 
726
                         //礼拜六上午
726
                         //礼拜六上午
727
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
727
+                         if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 1){
728
                             
728
                             
729
-                              newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
729
+                              newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
730
                           } 
730
                           } 
731
 
731
 
732
                          //礼拜六下午
732
                          //礼拜六下午
733
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
733
+                         if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 2){
734
                             
734
                             
735
-                              newArr[i].Sat_M.patient = this.scheduleCountList[j].Count
735
+                              newArr[i].Sat_A.patient = this.scheduleCountList[j].Count
736
                           }
736
                           }
737
 
737
 
738
                          //礼拜六晚上
738
                          //礼拜六晚上
739
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
739
+                         if(this.scheduleCountList[j].schedule_week == 6 && this.scheduleCountList[j].schedule_type == 3){
740
                             
740
                             
741
                               newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
741
                               newArr[i].Sat_N.patient = this.scheduleCountList[j].Count
742
                           }
742
                           }
743
                          
743
                          
744
 
744
 
745
                           //礼拜日上午
745
                           //礼拜日上午
746
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 1){
746
+                         if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 1){
747
                             
747
                             
748
-                              newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
748
+                              newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
749
                           } 
749
                           } 
750
 
750
 
751
                          //礼拜日下午
751
                          //礼拜日下午
752
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
752
+                         if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 2){
753
                             
753
                             
754
-                              newArr[i].Sun_M.patient = this.scheduleCountList[j].Count
754
+                              newArr[i].Sun_A.patient = this.scheduleCountList[j].Count
755
                           }
755
                           }
756
 
756
 
757
                          //礼拜日晚上
757
                          //礼拜日晚上
758
-                         if(this.scheduleCountList[j].schedule_week == 3 && this.scheduleCountList[j].schedule_type == 2){
758
+                         if(this.scheduleCountList[j].schedule_week == 7 && this.scheduleCountList[j].schedule_type == 3){
759
                             
759
                             
760
                               newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
760
                               newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
761
                           }
761
                           }
793
             return [weekArr[week], typeArr[schedule_type]];
793
             return [weekArr[week], typeArr[schedule_type]];
794
         },
794
         },
795
         printAction: function() {
795
         printAction: function() {
796
-            const style = '@media print {#scheduleTable{font-size:14px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
796
+            const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
797
 
797
 
798
             printJS({
798
             printJS({
799
             printable: 'scheduleTable',
799
             printable: 'scheduleTable',
818
                theType = 4
818
                theType = 4
819
             }
819
             }
820
            var partionStr = this.partition_id
820
            var partionStr = this.partition_id
821
+           console.log("partionStr",partionStr)
821
             var arr = this.zoneIdList.join(',')
822
             var arr = this.zoneIdList.join(',')
822
             var str = ""
823
             var str = ""
823
             if(partionStr == 0){
824
             if(partionStr == 0){
824
                 str = arr
825
                 str = arr
825
             }
826
             }
826
             if(partionStr != 0){
827
             if(partionStr != 0){
827
-                str = partionStr.join(',')
828
+                str = partionStr
828
             }
829
             }
829
             var params = {
830
             var params = {
830
              weekTime:theType,
831
              weekTime:theType,