Просмотр исходного кода

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

csx 3 лет назад
Родитель
Сommit
7e7b69cc21
73 измененных файлов: 5888 добавлений и 575 удалений
  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. Двоичные данные
      src/assets/home/111.jpg
  7. Двоичные данные
      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 Просмотреть файл

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

+ 31 - 3
src/api/config.js Просмотреть файл

@@ -148,7 +148,7 @@ export function postMonitorIsOpen(params){
148 148
 
149 149
 
150 150
 export function getMonitorConfig(params){
151
-  
151
+
152 152
   return request({
153 153
     url:"/api/monitor/getmonitorconfig",
154 154
     method:"Get",
@@ -158,7 +158,7 @@ export function getMonitorConfig(params){
158 158
 
159 159
 
160 160
 export function addOrderConfig(params){
161
-  
161
+
162 162
   return request({
163 163
     url:"/api/order/addorderconfig",
164 164
     method:"Get",
@@ -168,7 +168,7 @@ export function addOrderConfig(params){
168 168
 }
169 169
 
170 170
 export function getOrderConfig(params){
171
-  
171
+
172 172
   return request({
173 173
     url:"/api/order/getorderconfig",
174 174
     method:"get",
@@ -176,3 +176,31 @@ export function getOrderConfig(params){
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 Просмотреть файл

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

+ 82 - 0
src/api/his/his_config.js Просмотреть файл

@@ -0,0 +1,82 @@
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 Просмотреть файл

@@ -220,4 +220,22 @@ export function getPatientSheduleCount(params){
220 220
     method:"get",
221 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
 }

Двоичные данные
src/assets/home/111.jpg Просмотреть файл


Двоичные данные
src/assets/home/222.jpg Просмотреть файл


+ 2 - 0
src/lang/zh.js Просмотреть файл

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

+ 12 - 0
src/router/modules/dialysis.js Просмотреть файл

@@ -399,6 +399,18 @@ export default {
399 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 415
       path: '/dialysis/print/batch/thirtyThree_one',
404 416
       component: () =>

+ 18 - 0
src/router/modules/outpatientDoctorStation.js Просмотреть файл

@@ -24,6 +24,24 @@ export default {
24 24
         name: 'outpatientDoctorStationPastInquiries',
25 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 46
         path: '/outpatientDoctorStation/templateManagement',
29 47
         component: () => import('@/xt_pages/outpatientDoctorStation/templateManagement'),

+ 15 - 0
src/store/modules/globalConfig.js Просмотреть файл

@@ -524,6 +524,21 @@ const global_config = {
524 524
         sodium: 1,
525 525
         calcium: 1,
526 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 544
     anticoagulants_confit: { // 抗凝剂

+ 95 - 7
src/xt_pages/data/basicConfig.vue Просмотреть файл

@@ -15,7 +15,7 @@
15 15
             <p style="font-size:18px;font-weight:bold">门诊打印</p>
16 16
             <p style="font-size:14px;margin-top:5px;color:#333;">开启直接打印后,门诊病历、处方、治疗单、处置单、收费清单等打印时跳过打印预览,直接连接打印机打印。</p>
17 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 19
             </p>
20 20
         </div>
21 21
         <div class="configBox">
@@ -26,6 +26,15 @@
26 26
           </p>
27 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 38
         <!-- <div class="configBox">
30 39
           <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
31 40
           <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
@@ -71,14 +80,14 @@
71 80
                 <!--<el-switch v-model="value"></el-switch>-->
72 81
             <!--</p>-->
73 82
         <!--</div>-->
74
-        
83
+
75 84
     </div>
76 85
   </div>
77 86
 </template>
78 87
 
79 88
 <script>
80 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 92
 export default {
84 93
   name: "printTemplate",
@@ -94,6 +103,8 @@ export default {
94 103
       is_open_xt_his:false,
95 104
       is_open_monitor:false,
96 105
       is_open_order:false,
106
+      is_open_print:false,
107
+      is_open_xt_his_project: false,
97 108
     };
98 109
   },
99 110
   methods: {
@@ -103,10 +114,18 @@ export default {
103 114
           if (response.data.state === 1) {
104 115
             if(response.data.data.is_open_xt_his == 1) {
105 116
               this.is_open_xt_his = true
117
+
106 118
             }else{
107 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 129
           } else {
111 130
             this.$message.error(response.data.msg)
112 131
           }
@@ -145,6 +164,38 @@ export default {
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 200
     changeFuncTwo(){
150 201
       console.log("3333333",this.is_open_monitor)
@@ -192,7 +243,7 @@ export default {
192 243
        }
193 244
       let params = {
194 245
          is_open:is_open,
195
-       } 
246
+       }
196 247
       addOrderConfig(params).then(response=>{
197 248
          if(response.data.state == 1){
198 249
            var config = response.data.data.config
@@ -213,14 +264,51 @@ export default {
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 307
   created() {
220 308
     this.getInitIsOpenConfig()
221
-    this.getMonitorConfig()
222
-    this.getOrderConfig()
223
-
309
+    // this.getMonitorConfig()
310
+    // this.getOrderConfig()
311
+    this.getDataPrintList()
224 312
   }
225 313
 };
226 314
 </script>

+ 30 - 9
src/xt_pages/data/components/addInspection.vue Просмотреть файл

@@ -46,16 +46,17 @@
46 46
                 </el-form-item>
47 47
 
48 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 57
                 </el-form-item>
58
+
59
+
59 60
                 <el-form-item label="数量" style="width:50%;">
60 61
                     <div style="display:flex;">
61 62
                         <el-input v-model="form.number" style="margin-right:10px;"></el-input>
@@ -131,6 +132,7 @@
131 132
   export default {
132 133
     data() {
133 134
       return {
135
+        project_name:"",
134 136
         visible: false,
135 137
         formTitle: '',
136 138
         activeName: 'first',
@@ -165,6 +167,21 @@
165 167
       }
166 168
     },
167 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 185
       getDataConfig(module, filed_name) {
169 186
         return getDataConfig(module, filed_name)
170 187
       },
@@ -223,7 +240,11 @@
223 240
         })
224 241
       },
225 242
       getlist() {
226
-        getAllProjectList().then(response => {
243
+        let params = {
244
+          keyword: ""
245
+
246
+        }
247
+        getAllProjectList(params).then(response => {
227 248
           if (response.data.state == 1) {
228 249
             var projectList = response.data.data.projectList
229 250
             var goodInfos = response.data.data.good_info

+ 47 - 19
src/xt_pages/data/druguseTemplate.vue Просмотреть файл

@@ -129,7 +129,6 @@
129 129
                 prop="amount1"
130 130
                 align="center"
131 131
                 label="药品规格">
132
-                <!-- {{drugDesc(scope.row)}} -->
133 132
                 <template slot-scope="scope">
134 133
                   <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
135 134
                 </template>
@@ -189,6 +188,13 @@
189 188
                 </template>
190 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 198
               <el-table-column
193 199
                 align="center"
194 200
                 label="操作"
@@ -228,7 +234,9 @@
228 234
                   <el-form-item label="模版名称" style="width: 300px" prop="name">
229 235
                     <el-input v-model="form.name"></el-input>
230 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 240
                   <el-form-item label="模版类型" prop="advice_type">
233 241
                     <el-radio-group v-model="form.advice_type">
234 242
                       <el-radio :label="0">临时</el-radio>
@@ -711,11 +719,15 @@
711 719
             <!--增删改查都请求网络类型的dialog-->
712 720
             <el-dialog title="编辑医嘱模版" :visible.sync="templateTableTwoVisible" width="800px">
713 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 733
                 <div class="txsj" style="text-align: center;margin-bottom: 30px">
@@ -1448,8 +1460,8 @@
1448 1460
         },
1449 1461
         form: {
1450 1462
           name: '',
1451
-          advice_type: 0
1452
-
1463
+          advice_type: 0,
1464
+          sort:"",
1453 1465
         },
1454 1466
         drugwayForm: {
1455 1467
           name: '',
@@ -1669,11 +1681,11 @@
1669 1681
         const params = {
1670 1682
           'data': this.adviceTableData
1671 1683
         }
1672
-
1684
+       
1673 1685
         let name = encodeURIComponent(this.form.name)
1674 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 1690
           if (response.data.state == 0) {
1679 1691
             this.$message.error(response.data.msg)
@@ -1691,6 +1703,7 @@
1691 1703
                 }
1692 1704
                 object['name'] = template.name
1693 1705
                 object['isNoSub'] = 2
1706
+                object['sort'] = template.sort
1694 1707
                 this.adviceTemplates.unshift(object)
1695 1708
               }
1696 1709
             }
@@ -2145,6 +2158,7 @@
2145 2158
                 object['name'] = response.data.data.advice_templates[i].name
2146 2159
                 object['isNoSub'] = 1
2147 2160
                 object['template_id'] = response.data.data.advice_templates[i].id
2161
+                object['sort'] = response.data.data.advice_templates[i].sort
2148 2162
                 this.adviceTemplates.push(object)
2149 2163
               }
2150 2164
 
@@ -2158,13 +2172,15 @@
2158 2172
                   }
2159 2173
                   object['isNoSub'] = 2
2160 2174
                   object['name'] = response.data.data.advice_templates[i].name
2175
+                  object['sort'] = response.data.data.advice_templates[i].sort
2161 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 2185
             this.handleSpanTempArr()
2170 2186
           }
@@ -2462,7 +2478,8 @@
2462 2478
             return 'success-row'
2463 2479
           }
2464 2480
         }
2465
-      }, cellMouseEnter: function(row, column, cell, event) {
2481
+      }, 
2482
+      cellMouseEnter: function(row, column, cell, event) {
2466 2483
         if (column.label == '模版名称') {
2467 2484
           this.sameRowArr.forEach((arr, i) => {
2468 2485
             if (arr.indexOf(row.index) != -1) {
@@ -2678,25 +2695,33 @@
2678 2695
         this.sameRowArr = sameRowArr
2679 2696
       },
2680 2697
        handleUpdateAdviceTemplate(row, index) {
2698
+       
2681 2699
         this.current_template_id = row.template_id
2682 2700
         this.current_template_name = row.name
2683 2701
         this.form.name = row.name
2684 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 2708
         this.templateTableTwoVisible = true
2686 2709
         this.adviceTableDataTwo = []
2710
+      
2687 2711
         for (let i = 0; i < this.adviceTemplates.length; i++) {
2688 2712
           if (this.adviceTemplates[i].template_id == row.template_id) {
2689 2713
             this.adviceTableDataTwo.push(this.adviceTemplates[i])
2690 2714
           }
2691 2715
         }
2716
+        this.getAdviceConfig()
2692 2717
       },
2693 2718
       modifyTemplateName() {
2694 2719
         const params = {
2695 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 2725
         updateTemplateName(params).then(response => {
2701 2726
           if (response.data.state == 0) {
2702 2727
             this.$message.error(response.data.msg)
@@ -2918,6 +2943,9 @@
2918 2943
         console.log('results',results)
2919 2944
         cb(results);
2920 2945
       },
2946
+     sortData(a, b) {
2947
+       return a.sort - b.sort
2948
+     }
2921 2949
     }
2922 2950
   }
2923 2951
 </script>

+ 3 - 3
src/xt_pages/data/prescription.vue Просмотреть файл

@@ -229,7 +229,7 @@
229 229
                     </el-form-item>
230 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 233
                     <el-form-item label="透析器/灌流器:">
234 234
                       <el-input
235 235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
@@ -237,14 +237,14 @@
237 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 241
                     <el-form-item label="透析器:">
242 242
                       <el-input
243 243
                         v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
244 244
                     </el-form-item>
245 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 248
                     <el-form-item label="灌流器:">
249 249
                       <el-input
250 250
                         v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>

+ 5 - 3
src/xt_pages/data/printTemplate.vue Просмотреть файл

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

+ 165 - 0
src/xt_pages/data/printTemplate/schedulePrint.vue Просмотреть файл

@@ -0,0 +1,165 @@
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 Просмотреть файл

@@ -551,6 +551,7 @@ export default {
551 551
           this.getLongAdvice()
552 552
         } else {
553 553
           this.$message.error(resp.msg);
554
+         
554 555
         }
555 556
 
556 557
         if (this.lastDialysisPrescribe != null) {

+ 9 - 1
src/xt_pages/dialysis/batch_print/batch_print_order.vue Просмотреть файл

@@ -2049,10 +2049,18 @@ export default {
2049 2049
 
2050 2050
 
2051 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 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 2064
           for (const recordIndex in this.records) {
2057 2065
             var dlegh = 0;
2058 2066
             if (

+ 42 - 14
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Просмотреть файл

@@ -81,9 +81,9 @@
81 81
               <div
82 82
                 class="under_line"
83 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 87
               </div>
88 88
               <div
89 89
                 class="under_line"
@@ -556,6 +556,13 @@
556 556
                           >
557 557
                             IUF+HD
558 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 566
                         </div>
560 567
                       </div>
561 568
 
@@ -656,21 +663,27 @@
656 663
                           {{record.prescription && record.prescription.dialysis_irrigation?record.prescription.dialysis_irrigation:"/"}}
657 664
                         </div>
658 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 668
                         <div
662 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 684
                         </div>
672
-                        kg
673 685
                       </div>
686
+                      
674 687
                     </div>
675 688
 
676 689
                     <div
@@ -722,7 +735,7 @@
722 735
                         计划超滤量:
723 736
                         <div
724 737
                           class="under_line"
725
-                          style="width: 150px;text-align: center"
738
+                          style="width: 100px;text-align: center"
726 739
                         >
727 740
                           {{
728 741
                             record.prescription &&
@@ -733,6 +746,21 @@
733 746
                         </div>
734 747
                         ml
735 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 764
                     </div>
737 765
 
738 766
                     <div class="row" style="padding: 2px 0;line-height:23px;">
@@ -1027,7 +1055,7 @@
1027 1055
                           </td>
1028 1056
                           <td>
1029 1057
                             {{
1030
-                              monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}
1058
+                              monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: "0"}}
1031 1059
                           </td>
1032 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
                             {{

Разница между файлами не показана из-за своего большого размера
+ 1516 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyNine.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Просмотреть файл

@@ -249,6 +249,16 @@
249 249
           >批量打印</el-button
250 250
         >
251 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 262
     </div>
253 263
     <div class="app-container">
254 264
       <!-- <div class="filter-container">
@@ -827,6 +837,8 @@ export default {
827 837
         this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
828 838
       } else if (this.template_id == 33) {
829 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 844
     batchPrintActionOne: function() {

+ 10 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Просмотреть файл

@@ -339,6 +339,16 @@
339 339
           <span class="content">{{this.prescription.replacement_flow}}</span>
340 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 352
       </ul>
343 353
     </div>
344 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 Просмотреть файл

@@ -363,6 +363,12 @@
363 363
           <span class="content">{{this.record.estimated_food_intake}}</span>
364 364
           <span class="unit"></span>
365 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 373
       </ul>
368 374
     </div>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Просмотреть файл

@@ -2430,7 +2430,7 @@
2430 2430
                 obj.type = 2
2431 2431
                 obj.custom_id = this.rand(10000000, 99999999)
2432 2432
                 obj.drug_specs = medicalList[i].drug_specs
2433
-                console.log("222",this.all_drug)
2433
+                // console.log("222",this.all_drug)
2434 2434
                 this.all_drug.push(obj)
2435 2435
               }
2436 2436
             }
@@ -2467,7 +2467,7 @@
2467 2467
                 obj.custom_id = this.rand(10000000, 99999999)
2468 2468
                 obj.drug_specs = base_drug_list[i].drug_specs
2469 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 Просмотреть файл

@@ -570,6 +570,12 @@
570 570
              <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
571 571
             </el-form-item>
572 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 580
           <el-col :span="24">
575 581
             <el-form-item label="备注: ">
@@ -738,6 +744,7 @@
738 744
           pre_dialysis_drugs:"",
739 745
           period:"",
740 746
           estimated_food_intake:"",
747
+          blood_pressure_during_dialysis:"",
741 748
         },
742 749
 
743 750
         InnerDialogProps: {

+ 55 - 6
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Просмотреть файл

@@ -396,6 +396,20 @@
396 396
              </el-form-item>
397 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 413
           <el-col :span="8" v-if="isShows('体液过多症状')">
400 414
             <el-form-item label="体液过多症状:">
401 415
               <el-select
@@ -562,15 +576,15 @@
562 576
              </el-form-item>
563 577
           </el-col>
564 578
 
565
-         
566
-
567
-
579
+        
568 580
           <el-col :span="8" v-if="isShows('置换流量')">
569 581
              <el-form-item label="置换流量(L/h):">
570 582
                 <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
571 583
              </el-form-item>
572 584
           </el-col>
585
+         
573 586
 
587
+       
574 588
         </el-row>
575 589
 
576 590
         <el-row :gutter="20">
@@ -1069,6 +1083,8 @@
1069 1083
           single_time:"",
1070 1084
           single_water:"",
1071 1085
           replacement_flow:"",
1086
+          plasma_separator:"",
1087
+          bilirubin_adsorption_column:"",
1072 1088
         },
1073 1089
 
1074 1090
         anticoagulant: {
@@ -1092,7 +1108,9 @@
1092 1108
         bloods:[],
1093 1109
         irrigations:[],
1094 1110
         dialyzers:[],
1095
-        illnessList:[]
1111
+        illnessList:[],
1112
+        plasmaSeparatorList:[],
1113
+        bilirubinAdsorptionColumn:[],
1096 1114
       }
1097 1115
     },
1098 1116
     methods: {
@@ -1177,6 +1195,25 @@
1177 1195
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1178 1196
             this.InnerDialogProps.isShowTextArea = false
1179 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 1219
       innerDialogComfirm: function(val) {
@@ -1194,6 +1231,12 @@
1194 1231
           case 'irrigations':
1195 1232
            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1196 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 1242
       innerDialogCancle: function() {
@@ -1645,7 +1688,8 @@
1645 1688
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1646 1689
       },
1647 1690
       show(pre,schedual,last,his_is_open) {
1648
-        
1691
+        console.log("pre222222",pre)
1692
+       
1649 1693
         if(his_is_open == 1){
1650 1694
           this.is_open = 0
1651 1695
         }
@@ -3582,8 +3626,13 @@
3582 3626
       }
3583 3627
     },
3584 3628
     created(){
3629
+      
3585 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 3638
 </script>

+ 4 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Просмотреть файл

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

+ 4 - 2
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Просмотреть файл

@@ -126,8 +126,10 @@
126 126
           (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
127 127
           '-' +
128 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 133
         this.schedule_date = this.$route.query.date
132 134
 
133 135
         if (this.dialysis_order.id == 0) {

+ 1 - 0
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Просмотреть файл

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

+ 10 - 0
src/xt_pages/dialysis/details/index.vue Просмотреть файл

@@ -985,6 +985,13 @@ export default {
985 985
             if (prescription.body_fluid == -2) {
986 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 997
           var solution = resp.data.solution // 透析方案
@@ -997,6 +1004,9 @@ export default {
997 1004
             if (predialysis_evaluation.blood_access_part_id == -2) {
998 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 1011
           var doctor_advices = resp.data.doctor_advices // 临时医嘱
1002 1012
 

+ 3 - 2
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Просмотреть файл

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

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Просмотреть файл

@@ -553,6 +553,16 @@
553 553
           >打印</el-button
554 554
         >
555 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 566
     </div>
557 567
     <div class="app-container" style="min-height:0;">
558 568
       <!--<div class="order-print-btn"-->
@@ -828,6 +838,11 @@
828 838
             v-if="org_template_info.template_id == 39"
829 839
           >
830 840
           </DialysisPrintOrderThirtyNine>
841
+          <DialysisPrintOrderForty
842
+            v-bind:childResponse="childResponse"
843
+            v-if="org_template_info.template_id == 40"
844
+          >
845
+          </DialysisPrintOrderForty>
831 846
         </div>
832 847
       </el-container>
833 848
     </div>
@@ -886,9 +901,11 @@ import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix"
886 901
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
887 902
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
888 903
 import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
904
+import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
889 905
 export default {
890 906
   name: "dialysisPrintOrder",
891 907
   components: {
908
+    DialysisPrintOrderForty,
892 909
     DialysisPrintOrderThirtyNine,
893 910
     DialysisPrintOrderThirtyEight,
894 911
     DialysisPrintOrderThirtySeven,
@@ -1366,6 +1383,13 @@ export default {
1366 1383
           style: style3,
1367 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 1395
     printThisOnePage() {

Разница между файлами не показана из-за своего большого размера
+ 2523 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue


+ 29 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Просмотреть файл

@@ -64,8 +64,8 @@
64 64
         </div>
65 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 69
           </div>
70 70
           <div class="under_line" style="width: 70px;text-align: left" v-else>
71 71
             {{ "/" }}
@@ -300,6 +300,9 @@
300 300
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
301 301
                       IUF+HD
302 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 306
                   </div>
304 307
 
305 308
                   <div class="inline_block" style="margin-left:10px;flex:1;">
@@ -344,12 +347,19 @@
344 347
                      {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:'/'}}
345 348
                     </div>
346 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 362
                     </div>
352
-                    kg
353 363
                   </div>
354 364
                 </div>
355 365
 
@@ -357,7 +367,8 @@
357 367
                   <div class="inline_block" style="flex:1;">
358 368
                     上次透后体重:
359 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 372
                     </div>
362 373
                     kg
363 374
                   </div>
@@ -370,11 +381,18 @@
370 381
                   </div>
371 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 385
                       {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
375 386
                     </div>
376 387
                     L
377 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 396
                 </div>
379 397
 
380 398
                 <div class="row" style="padding: 2px 0;line-height:23px;">
@@ -553,7 +571,7 @@
553 571
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
554 572
                       </td>
555 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 575
                       </td>
558 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 577
                         {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
@@ -1342,6 +1360,7 @@ export default {
1342 1360
         this.check = response.data.data.check
1343 1361
         this.xtdate = response.data.data.xtdate
1344 1362
         this.predialysis = response.data.data.PredialysisEvaluation
1363
+        console.log("透前评估",this.predialysis)
1345 1364
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1346 1365
           this.predialysis.blood_access_part_opera_id
1347 1366
         )

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Просмотреть файл

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

+ 10 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Просмотреть файл

@@ -1061,10 +1061,18 @@
1061 1061
             核对护士
1062 1062
             <span style="display: inline-block;width:100px;text-align: left;">
1063 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 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 1075
               </span>
1067
-              <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
1068 1076
             </span>
1069 1077
             护士签名
1070 1078
             <span style="display: inline-block;width:100px;text-align: left;">

+ 8 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Просмотреть файл

@@ -2,7 +2,7 @@
2 2
   <div id="dialysis-print-box-1">
3 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 4
       <div class="order-yy-name">{{ orgname }}</div>
5
-      <div class="order-title">血液净化专科护理记录单</div>
5
+      <div class="order-title">血液净化透析治疗记录单</div>
6 6
       <div class="row">
7 7
         <div class="inline_block">
8 8
           科室:
@@ -985,6 +985,13 @@
985 985
                   </div>
986 986
                   kg
987 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 995
                 <div class="inline_block" v-if="orgid == 9566">
989 996
                   医生签名:
990 997
                   <div class="under_line" style="width: 70px;text-align: left">

+ 2 - 1
src/xt_pages/hospitalStation/components/callPrescription.vue Просмотреть файл

@@ -260,7 +260,8 @@
260 260
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
261 261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
262 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 266
               tempAdvice.push(obj)
266 267
 

+ 20 - 13
src/xt_pages/hospitalStation/components/deskPrescription.vue Просмотреть файл

@@ -264,12 +264,7 @@
264 264
                       <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
265 265
                     </el-table-column>
266 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 268
                       </template>
274 269
                     </el-table-column>
275 270
                     <el-table-column label="单价" width="40">
@@ -279,6 +274,10 @@
279 274
                 </div>
280 275
 
281 276
               </el-tab-pane>
277
+              <!--// stockInCount(scope.row) - -->
278
+              <!--// salesReturnCount(scope.row) - -->
279
+              <!--// stockOutCount(scope.row) +-->
280
+              <!--// cancelStockCount(scope.row)-->
282 281
               <!--<el-tab-pane label="医嘱模板" name="2">-->
283 282
               <!--<div style="margin-bottom:5px;">-->
284 283
               <!--&lt;!&ndash;<el-input style="width:50%;" v-model="input" placeholder=""></el-input>&ndash;&gt;-->
@@ -685,7 +684,10 @@
685 684
               obj['id'] = drug_month_prescriptions.advices[a].drug_id;
686 685
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
687 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,7 +1019,10 @@
1017 1019
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1018 1020
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1019 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 1027
                     tempAdvice.push(obj)
1023 1028
                   }
@@ -1132,7 +1137,9 @@
1132 1137
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1133 1138
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1134 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 1144
                     tempAdvice.push(obj)
1138 1145
                   }
@@ -2295,8 +2302,6 @@
2295 2302
       },
2296 2303
 
2297 2304
       comfirm() {
2298
-        console.log("222222222222",this.curPrescriptions);
2299
-
2300 2305
 
2301 2306
         if (this.curPrescriptions.order_status == 2) {
2302 2307
           this.$message.error('该处方已经结算,无法继续添加药品或者项目');
@@ -2415,7 +2420,8 @@
2415 2420
                   prescribing_number: temp[b].prescribing_number,
2416 2421
                   single_dose_unit: temp[b].min_unit,
2417 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,7 +2486,8 @@
2480 2486
         this.preDrugs = [];
2481 2487
         this.teamList = []
2482 2488
 
2483
-      }, changeAllGoodInfoTableDataTwo(row) {
2489
+      },
2490
+      changeAllGoodInfoTableDataTwo(row) {
2484 2491
         this.teamList = row
2485 2492
       },
2486 2493
       selectChange(row) {

+ 2 - 1
src/xt_pages/hospitalStation/components/nextOrLastPrescription.vue Просмотреть файл

@@ -317,7 +317,8 @@
317 317
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
318 318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
319 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 323
               tempAdvice.push(obj)
323 324
 

+ 18 - 6
src/xt_pages/hospitalStation/doctorDesk.vue Просмотреть файл

@@ -463,6 +463,8 @@
463 463
               obj['id'] = drug_month_prescriptions.advices[a].drug_id;
464 464
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
465 465
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price);
466
+              obj['drug'] = drug_month_prescriptions.advices[a].drug
467
+
466 468
               count = count + drug_month_prescriptions.advices[a].prescribing_number
467 469
 
468 470
             }
@@ -873,7 +875,8 @@
873 875
                     single_dose_unit: prescription.advices[b].single_dose_unit,
874 876
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
875 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 881
                   tempAdvice.push(obj)
879 882
                 }
@@ -1078,7 +1081,8 @@
1078 1081
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1079 1082
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1080 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 1087
                         tempAdvice.push(obj)
1084 1088
                       }
@@ -1258,7 +1262,9 @@
1258 1262
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1259 1263
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1260 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 1269
                         tempAdvice.push(obj)
1264 1270
                       }
@@ -1442,7 +1448,9 @@
1442 1448
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1443 1449
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1444 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 1455
                         tempAdvice.push(obj)
1448 1456
                       }
@@ -1677,7 +1685,9 @@
1677 1685
                         single_dose_unit: prescription.advices[b].single_dose_unit,
1678 1686
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1679 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 1692
                       tempAdvice.push(obj)
1683 1693
                     }
@@ -1865,7 +1875,9 @@
1865 1875
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1866 1876
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1867 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 1882
                     tempAdvice.push(obj)
1871 1883
                   }

+ 1 - 3
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Просмотреть файл

@@ -93,9 +93,7 @@
93 93
         <template slot-scope="scope">
94 94
           <div style="display:flex;">
95 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 98
           </div>
101 99
         </template>

+ 16 - 33
src/xt_pages/outpatientCharges/newStatementPrint.vue Просмотреть файл

@@ -13,8 +13,7 @@
13 13
     </template>
14 14
 
15 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 17
     </div>
19 18
   </div>
20 19
 </template>
@@ -31,14 +30,12 @@
31 30
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
32 31
   import print from "print-js";
33 32
   import printOne from "./statementTemplate/printOne"
34
-  import printTwo from "./statementTemplate/printTwo"
35 33
   import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
36 34
   export default {
37 35
     name: "newStatementPrint",
38 36
     components: {
39 37
       BreadCrumb,
40
-      printOne,
41
-      printTwo
38
+      printOne
42 39
     },
43 40
     props:{
44 41
       paramsObj:Object
@@ -62,8 +59,6 @@
62 59
         info:null,
63 60
         p_admin:{},
64 61
         charge_admin:{},
65
-        org_id:'',
66
-        order_infos:null
67 62
       };
68 63
     },
69 64
     methods:{
@@ -71,26 +66,14 @@
71 66
         var ptime = Math.round(new Date().getTime() / 1000);
72 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 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 78
         // if (this.org_template_info.template_id == 1) {
96 79
         //   printJS({
@@ -164,6 +147,8 @@
164 147
         //       console.log("doctorporject",doctorPorject)
165 148
         //     }
166 149
         // })
150
+      },  getTimes(time) {
151
+        return uParseTime(time, '{y}-{m}-{d}')
167 152
       },
168 153
       searchAction(){
169 154
 
@@ -190,8 +175,6 @@
190 175
                 that.info = response.data.data.info;
191 176
                 that.p_admin = response.data.data.printor_admin;
192 177
                 that.charge_admin = response.data.data.charge_admin;
193
-                that.order_infos = response.data.data;
194
-
195 178
 
196 179
 
197 180
                 that.info['p_admin'] =  that.p_admin;
@@ -203,8 +186,6 @@
203 186
                 that.info['diagnosis'] =  response.data.data.diagnosis;
204 187
 
205 188
 
206
-                console.log(that.info);
207
-
208 189
                 that.info['bed_cost_total'] = response.data.data.bedCostTotal;
209 190
                 that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
210 191
                 that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
@@ -242,7 +223,11 @@
242 223
                 that.info['treat_cost_total'] = response.data.data.treatCostTotal;
243 224
                 that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
244 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 233
             .catch(function (error) {
@@ -254,9 +239,7 @@
254 239
     },
255 240
 
256 241
     created() {
257
-      this.org_id = this.$store.getters.xt_user.org_id;
258 242
       this.getInfo(this.paramsObj.order_id)
259
-
260 243
     },
261 244
     watch:{
262 245
       paramsObj:{//深度监听,可监听到对象、数组的变化

+ 133 - 133
src/xt_pages/outpatientCharges/statementPrint.vue Просмотреть файл

@@ -278,168 +278,168 @@ export default {
278 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 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 424
 </style>
425 425
 
426 426
 <style lang="scss">
427 427
 
428
-.newContainer{
428
+  .newContainer{
429 429
   .dialysisPage::-webkit-scrollbar {
430 430
     height: 15px;
431 431
   }
432 432
 
433 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 438
   .el-table td, .el-table th{
439 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 445
 </style>

+ 12 - 9
src/xt_pages/outpatientCharges/summary.vue Просмотреть файл

@@ -65,34 +65,34 @@
65 65
           type="index"
66 66
         >
67 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 69
           <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
70 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 72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
73 73
         </el-table-column>
74 74
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
75 75
         <!--<template slot-scope="scope"></template>-->
76 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 79
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
80 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 82
           <template slot-scope="scope">{{scope.row.reality_price}}</template>
83 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 85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
86 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 88
           <template slot-scope="scope">
89 89
             {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
90 90
           </template>
91 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 93
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
94 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 96
           <template slot-scope="scope">
97 97
             <div v-if="scope.row.order_status == 1">待结算</div>
98 98
             <div v-if="scope.row.order_status == 2">已结算</div>
@@ -371,7 +371,10 @@
371 371
         } else {
372 372
           this.statementVisible = true;
373 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 379
           this.orderObj = obj
377 380
         }

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Просмотреть файл

@@ -260,7 +260,9 @@
260 260
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
261 261
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
262 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 267
               tempAdvice.push(obj)
266 268
 

+ 206 - 155
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue Просмотреть файл

@@ -7,143 +7,146 @@
7 7
       element-loading-text="拼命加载中"
8 8
       element-loading-spinner="el-icon-loading"
9 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 146
       </div>
147
+      
146 148
     </div>
149
+    <div style="padding-top: 56px;width:100%;text-align:center;font-size:22px;color:red;" v-else>该患者未排班,请先去排班</div>
147 150
   </div>
148 151
 </template>
149 152
 
@@ -194,7 +197,8 @@ export default {
194 197
   },
195 198
   props:{
196 199
     record_date:String,
197
-    patientid:String
200
+    patientid:Number,
201
+    dialysisShow:Boolean
198 202
   },
199 203
   data() {
200 204
     return {
@@ -304,7 +308,8 @@ export default {
304 308
 
305 309
       queueConfig:{},
306 310
       stockType:[],
307
-      preparestock:[]
311
+      preparestock:[],
312
+      dialysisShow:false
308 313
     }
309 314
   },
310 315
   created() {
@@ -312,22 +317,73 @@ export default {
312 317
     var date = this.record_date
313 318
     this.patient_id = patient_id
314 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 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 353
   watch:{
324 354
         patientid:{
325 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 380
                 this.patient_id = newVal
327 381
                 this.getScheduleDetail()
328 382
                 this.getLongAdvice()
329
-            }
330
-        }
383
+              }
384
+            },
385
+            deep:true
386
+        },
331 387
   },
332 388
   computed: {
333 389
     websocket() {
@@ -444,14 +500,6 @@ export default {
444 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 503
   methods: {
456 504
     adviceFunc() {
457 505
       this.getScheduleDetail()
@@ -521,12 +569,13 @@ export default {
521 569
       }
522 570
     },
523 571
     getScheduleDetail: function() {
572
+      
524 573
       this.loading = true
525 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 579
         console.log('this.patient_id',this.patient_id)
531 580
         console.log('this.date',this.date)
532 581
       this.doctor_advices = []
@@ -536,7 +585,7 @@ export default {
536 585
         if (resp.state == 1) {
537 586
           var patient = resp.data.patient // 患者信息
538 587
           var schedual = resp.data.schedual // 患者排班信息
539
-          console.log("排班22222222222",schedual)
588
+         
540 589
           var prescription = resp.data.prescription // 透析处方
541 590
           if (prescription != null) {
542 591
             if (prescription.body_fluid == -2) {
@@ -545,7 +594,7 @@ export default {
545 594
           }
546 595
 
547 596
           var solution = resp.data.solution // 透析方案
548
-          console.log("透析方案22223333333333",solution)
597
+         
549 598
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
550 599
 
551 600
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
@@ -739,7 +788,9 @@ export default {
739 788
           }
740 789
           this.device_number_map = device_number_map
741 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 796
         if (this.lastDialysisPrescribe != null) {

+ 2 - 1
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Просмотреть файл

@@ -317,7 +317,8 @@
317 317
                 single_dose_unit:prescription.doctor_advice[b].single_dose_unit,
318 318
                 prescribing_number_unit:prescription.doctor_advice[b].prescribing_number_unit,
319 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 323
               tempAdvice.push(obj)
323 324
 

+ 108 - 25
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Просмотреть файл

@@ -7,11 +7,15 @@
7 7
         <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8 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 11
         <template slot-scope="scope">
12 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 19
           </div>
16 20
         </template>
17 21
       </el-table-column>
@@ -29,7 +33,7 @@
29 33
       </el-table-column>
30 34
       <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
31 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 37
             <el-option
34 38
               v-for="item,index in efs"
35 39
               :key="index"
@@ -44,16 +48,20 @@
44 48
       <el-table-column align="center" prop="day" width="70" label="天数">
45 49
         <template slot-scope="scope">
46 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 52
           </div>
49 53
         </template>
50 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 57
         <template slot-scope="scope">
54 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 65
           </div>
58 66
         </template>
59 67
       </el-table-column>
@@ -381,36 +389,111 @@
381 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 437
       getProjectSingleDose(scope){
391 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 443
       getProjectDay(scope){
394 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 486
     },mounted(){
397 487
       this.getInitData()
398 488
 
399 489
     },
400 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 497
       // "prescription.project":{
415 498
       //   handler(newVal,oldVal){
416 499
       //     newVal.map((item,index) => {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue Просмотреть файл

@@ -13,10 +13,10 @@
13 13
                 <!--<el-radio v-model="radio" label="1">临时</el-radio>-->
14 14
                 <!--<el-radio v-model="radio" label="2">长期</el-radio>-->
15 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 17
                     <el-input v-model="form.name" placeholder=""></el-input>
18 18
                 </el-form-item>
19
-                <el-form-item label="透析模式 : " style="width: 100%;">
19
+                <el-form-item label="透析模式 : " style="width: 60%;">
20 20
                     <el-select v-model="form.mode" style="width:100%;" placeholder="请选择">
21 21
                         <el-option
22 22
                                 v-for="item in modeOptions"

+ 61 - 20
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Просмотреть файл

@@ -137,7 +137,9 @@
137 137
 
138 138
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
139 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 143
             </div>
142 144
 
143 145
         </div>
@@ -283,6 +285,7 @@
283 285
         recordVisible: false,
284 286
         recordObj: {},
285 287
         additions: [],
288
+        dialysisShow:true,
286 289
 
287 290
         all_data: [],
288 291
         all_data_two: [],
@@ -703,6 +706,8 @@
703 706
               obj['id'] = drug_month_prescriptions.advices[a].drug_id
704 707
               // obj['retail_price'] = obj['retail_price'] +  drug_month_prescriptions.advices[a].drug.retail_price
705 708
               obj['retail_price'] = parseFloat(drug_month_prescriptions.advices[a].price)
709
+              obj['drug'] = drug_month_prescriptions.advices[a].drug
710
+
706 711
               count = count + drug_month_prescriptions.advices[a].prescribing_number
707 712
 
708 713
             }
@@ -1167,7 +1172,10 @@
1167 1172
                     single_dose_unit: prescription.advices[b].single_dose_unit,
1168 1173
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1169 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 1180
                   tempAdvice.push(obj)
1173 1181
                 }
@@ -1263,7 +1271,8 @@
1263 1271
                       single_dose_unit: prescription.advices[b].single_dose_unit,
1264 1272
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1265 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 1277
                     tempAdvice.push(obj)
1269 1278
                   }
@@ -1355,7 +1364,9 @@
1355 1364
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1356 1365
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1357 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 1371
                         tempAdvice.push(obj)
1361 1372
                       }
@@ -1440,7 +1451,7 @@
1440 1451
       },
1441 1452
 
1442 1453
       choosePatient(val) {
1443
-        console.log(val);
1454
+        console.log(111111,val);
1444 1455
         if(this.titleType == '电子病历'){
1445 1456
           console.log('this.$refs.child.watchSign',this.$refs.child.watchSign);
1446 1457
           if(this.$refs.child.watchSign > 2){
@@ -1553,7 +1564,9 @@
1553 1564
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1554 1565
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1555 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 1571
                         tempAdvice.push(obj)
1559 1572
                       }
@@ -1649,7 +1662,9 @@
1649 1662
                             single_dose_unit: prescription.advices[b].single_dose_unit,
1650 1663
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1651 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 1669
                           tempAdvice.push(obj)
1655 1670
                         }
@@ -1741,7 +1756,9 @@
1741 1756
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
1742 1757
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1743 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 1763
                               tempAdvice.push(obj)
1747 1764
                             }
@@ -1927,7 +1944,9 @@
1927 1944
                           single_dose_unit: prescription.advices[b].single_dose_unit,
1928 1945
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1929 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 1951
                         tempAdvice.push(obj)
1933 1952
                       }
@@ -2023,7 +2042,9 @@
2023 2042
                             single_dose_unit: prescription.advices[b].single_dose_unit,
2024 2043
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2025 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 2049
                           tempAdvice.push(obj)
2029 2050
                         }
@@ -2115,7 +2136,9 @@
2115 2136
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
2116 2137
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2117 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 2143
                               tempAdvice.push(obj)
2121 2144
                             }
@@ -2302,7 +2325,9 @@
2302 2325
                           single_dose_unit: prescription.advices[b].single_dose_unit,
2303 2326
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2304 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 2332
                         tempAdvice.push(obj)
2308 2333
                       }
@@ -2398,7 +2423,9 @@
2398 2423
                             single_dose_unit: prescription.advices[b].single_dose_unit,
2399 2424
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2400 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 2430
                           tempAdvice.push(obj)
2404 2431
                         }
@@ -2490,7 +2517,9 @@
2490 2517
                                 single_dose_unit: prescription.advices[b].single_dose_unit,
2491 2518
                                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2492 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 2524
                               tempAdvice.push(obj)
2496 2525
                             }
@@ -2726,7 +2755,9 @@
2726 2755
                         single_dose_unit: prescription.advices[b].single_dose_unit,
2727 2756
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2728 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 2762
                       tempAdvice.push(obj)
2732 2763
                     }
@@ -2822,7 +2853,9 @@
2822 2853
                           single_dose_unit: prescription.advices[b].single_dose_unit,
2823 2854
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2824 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 2860
                         tempAdvice.push(obj)
2828 2861
                       }
@@ -2914,7 +2947,9 @@
2914 2947
                               single_dose_unit: prescription.advices[b].single_dose_unit,
2915 2948
                               prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2916 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 2954
                             tempAdvice.push(obj)
2920 2955
                           }
@@ -3100,7 +3135,9 @@
3100 3135
                       single_dose_unit: prescription.advices[b].single_dose_unit,
3101 3136
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3102 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 3142
                     tempAdvice.push(obj)
3106 3143
                   }
@@ -3196,7 +3233,9 @@
3196 3233
                         single_dose_unit: prescription.advices[b].single_dose_unit,
3197 3234
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3198 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 3240
                       tempAdvice.push(obj)
3202 3241
                     }
@@ -3288,7 +3327,9 @@
3288 3327
                             single_dose_unit: prescription.advices[b].single_dose_unit,
3289 3328
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3290 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 3334
                           tempAdvice.push(obj)
3294 3335
                         }

+ 8 - 3
src/xt_pages/outpatientDoctorStation/print.vue Просмотреть файл

@@ -13,7 +13,8 @@
13 13
       </template>
14 14
             
15 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 18
     </div>
18 19
   </div>
19 20
 </template>
@@ -29,12 +30,14 @@ import { jsGetAge, uParseTime } from "@/utils/tools";
29 30
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
30 31
 import print from "print-js";
31 32
 import printOne from "./template/printOne"
33
+import printFour from "./template/printFour"
32 34
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
33 35
 export default {
34 36
   name: "dialysisPrintOrder",
35 37
   components: {
36 38
     BreadCrumb,
37
-    printOne
39
+    printOne,
40
+    printFour
38 41
   },
39 42
   props:{
40 43
     paramsObj:Object
@@ -56,7 +59,8 @@ export default {
56 59
        patient_id:"",
57 60
        prescription_id:"",
58 61
        ids:'',
59
-       paramsObj:{}
62
+       paramsObj:{},
63
+       org_id:''
60 64
     };
61 65
   },
62 66
   methods:{
@@ -154,6 +158,7 @@ export default {
154 158
   },
155 159
 
156 160
   created() {
161
+    this.org_id = this.$store.getters.xt_user.org_id
157 162
     this.getAllDoctorList()
158 163
     var record_date = this.paramsObj.record
159 164
     this.record_date = record_date

+ 330 - 0
src/xt_pages/outpatientDoctorStation/template/printFour.vue Просмотреть файл

@@ -0,0 +1,330 @@
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 Просмотреть файл

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

+ 3 - 1
src/xt_pages/role/components/AdminInfoForm.vue Просмотреть файл

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

+ 3 - 1
src/xt_pages/stock/detail/print.vue Просмотреть файл

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

+ 8 - 5
src/xt_pages/stock/detail/stockOutDetail.vue Просмотреть файл

@@ -164,7 +164,8 @@
164 164
         </el-table-column>
165 165
         <el-table-column label="数量" align="center">
166 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 169
           </template>
169 170
         </el-table-column>
170 171
         <el-table-column label="总价" align="center">
@@ -227,6 +228,9 @@ export default {
227 228
     this.goodUnit = this.$store.getters.good_unit
228 229
     this.getPrintStockGood()
229 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 235
   data() {
232 236
     return {
@@ -260,7 +264,8 @@ export default {
260 264
       goodUnit:[],
261 265
       tableList:[],
262 266
       stockTotal:[],
263
-      goodInfoData:[]
267
+      goodInfoData:[],
268
+      orgId:"",
264 269
     };
265 270
   },
266 271
   methods: {
@@ -686,7 +691,6 @@ export default {
686 691
         return Math.floor(amountPrice* 100) / 100
687 692
       },
688 693
       getStockCount(id){
689
-
690 694
         var count = ""
691 695
         for(let i=0;i<this.stockTotal.length;i++){
692 696
             if(id == this.stockTotal[i].good_id){
@@ -758,7 +762,6 @@ export default {
758 762
         this.tableList[i].index = i+1
759 763
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
760 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 765
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].buy_price).toFixed(2)
763 766
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
764 767
        }
@@ -800,7 +803,7 @@ export default {
800 803
        }
801 804
        return total_price
802 805
      },
803
-
806
+   
804 807
      
805 808
   }
806 809
 };

+ 1 - 0
src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue Просмотреть файл

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

+ 7 - 10
src/xt_pages/stock/drugs/drugStockInOrder.vue Просмотреть файл

@@ -422,8 +422,7 @@ export default {
422 422
           this.total = response.data.data.total;
423 423
           for (let i = 0; i < response.data.data.list.length; i++) {
424 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,7 +431,7 @@ export default {
432 431
       row.index = rowIndex;
433 432
     },
434 433
     onRowClick(row, event, column) {
435
-      this.WarehouseInfo.warehouseInfoDate = [];
434
+     this.WarehouseInfo.warehouseInfoDate = [];
436 435
       this.Warehouse.tableCurrentIndex = row.index;
437 436
       const params = {
438 437
         id: row.id
@@ -446,9 +445,7 @@ export default {
446 445
         } else {
447 446
           this.WarehouseInfo.loading = false;
448 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,12 +563,12 @@ export default {
566 563
           this.$message.error(response.data.msg);
567 564
           return false;
568 565
         } else {
566
+          //  this.WarehouseInfo.warehouseInfoDate = []
567
+           
569 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 572
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
576 573
         }
577 574
       });

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Просмотреть файл

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

+ 1 - 0
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Просмотреть файл

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

+ 3 - 5
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Просмотреть файл

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

+ 2 - 1
src/xt_pages/stock/stockOutOrderDetailPrint.vue Просмотреть файл

@@ -164,8 +164,9 @@ export default {
164 164
             console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData);
165 165
             var total_price = 0;
166 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 170
            this.allPrice = total_price;
170 171
 
171 172
            var wareoutList =  response.data.data.wareoutList;

+ 1 - 6
src/xt_pages/stock/stockQuery.vue Просмотреть файл

@@ -150,12 +150,7 @@
150 150
 
151 151
         <el-table-column label="剩余库存" align="center">
152 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 154
           </template>
160 155
         </el-table-column>
161 156
       </el-table>

+ 54 - 6
src/xt_pages/user/dialysisSolution.vue Просмотреть файл

@@ -512,6 +512,19 @@
512 512
             </el-form-item>
513 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 528
           <el-col :span="8" v-if="isShows('目标KT/V')">
516 529
             <el-form-item label="目标KT/V">
517 530
               <el-input v-model="addPlan.target_ktv"></el-input>
@@ -519,6 +532,10 @@
519 532
           </el-col>
520 533
         </el-row>
521 534
 
535
+
536
+    
537
+
538
+
522 539
         <el-row :gutter="24">
523 540
           <el-col :span="24">
524 541
             <el-form-item label="备注: " prop="remark">
@@ -707,6 +724,8 @@ export default {
707 724
         blood_access: '',
708 725
         dialysis_dialyszers:'',
709 726
         dialysis_irrigation:'',
727
+        plasma_separator:"",
728
+        bilirubin_adsorption_column:"",
710 729
       },
711 730
       childPlan: {
712 731
         mode: '',
@@ -835,6 +854,8 @@ export default {
835 854
      dialyzers:[],
836 855
      dialysis_dialyszers:'',
837 856
      dialysis_irrigation:"",
857
+     plasmaSeparatorList:[],
858
+     bilirubinAdsorptionColumn:[],
838 859
     }
839 860
   },
840 861
   watch: {
@@ -913,11 +934,29 @@ export default {
913 934
           this.InnerDialogProps.selected = this.dialysis_irrigation
914 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 955
           break
917 956
       }
918 957
     },
919 958
     innerDialogComfirm: function(val) {
920
-
959
+      console.log("value",val)
921 960
       this.InnerDialogProps.visibility = false
922 961
       switch (val.type) {
923 962
         case 'dialyzer_perfusion_apparatus':
@@ -925,13 +964,16 @@ export default {
925 964
           break
926 965
         case 'dialyzers':
927 966
           this.dialysis_dialyszers = val.value.join(',')
928
-          console.log("3333333",this.addPlan.dialysis_dialyszers)
929
-
930 967
           break
931 968
         case 'irrigations':
932 969
           this.dialysis_irrigation = val.value.join(',')
933 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 979
     innerDialogCancle: function() {
@@ -1376,6 +1418,8 @@ export default {
1376 1418
       this.addPlan.remark = row.remark
1377 1419
 
1378 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 1423
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1380 1424
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1381 1425
       this.dialysis_irrigation = row.dialysis_irrigation
@@ -1474,6 +1518,8 @@ export default {
1474 1518
         dialysis_duration_hour: '3',
1475 1519
         dialysis_duration_minute: '30',
1476 1520
         created_time:"",
1521
+        plasma_separator:"",
1522
+        bilirubin_adsorption_column:"",
1477 1523
       }
1478 1524
       this.addPlanTypeChange()
1479 1525
 
@@ -1713,7 +1759,8 @@ export default {
1713 1759
               displace_liqui_part: '',
1714 1760
               displace_liqui_value: '',
1715 1761
               ultrafiltration: '',
1716
-              blood_access: ''
1762
+              blood_access: '',
1763
+              plasma_separator:"",
1717 1764
             }
1718 1765
 
1719 1766
             for (const key in tempAddPlan) {
@@ -1811,7 +1858,8 @@ export default {
1811 1858
       'hemodialysis',
1812 1859
       'dialyzer_perfusion_apparatus'
1813 1860
     )
1814
-
1861
+    this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
1862
+    this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
1815 1863
     this.queryParams.id = this.patientID
1816 1864
     // this.fetchAllDoctorAndNurse();
1817 1865
 

+ 28 - 13
src/xt_pages/workforce/appointment.vue Просмотреть файл

@@ -69,7 +69,7 @@
69 69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70 70
         <div style="display:flex;align-items:center">
71 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 73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
74 74
             导出模版
75 75
           </el-button>
@@ -85,7 +85,7 @@
85 85
           >下载日志
86 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 89
           <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
90 90
           <el-button type="primary" size="small" @click="copySchedule">复制排班</el-button>
91 91
         </div>
@@ -157,7 +157,7 @@
157 157
   import moment from 'moment'
158 158
   import { parseTime } from '@/utils'
159 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 161
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
162 162
   import UploadExcel from '@/xt_pages/components/UploadExcel'
163 163
   import ScheduleUploadExcel from './components/scheduleUploadExcel/index'
@@ -216,8 +216,8 @@
216 216
         clen:7,
217 217
         nowYear: new Date().getFullYear(),
218 218
         schedule_week:0,
219
-        newDay:[]
220
-
219
+        newDay:[],
220
+       templateObj:{}
221 221
       }
222 222
     },
223 223
     components: {
@@ -227,9 +227,9 @@
227 227
       UploadExcel
228 228
     },
229 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 233
       generateTxt: function(log) {
234 234
         var content = ''
235 235
         var errlog = log.err_logs
@@ -638,11 +638,16 @@
638 638
         } else if (this.activeName == 'nextTwoWeek') {
639 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 651
         let isShow = false
647 652
         if (Object.keys(this.partitions).length != 0) {
648 653
           isShow = true
@@ -2811,8 +2816,18 @@
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 2829
     created() {
2830
+     this.getlist()
2816 2831
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2817 2832
    
2818 2833
      this.start_time = start_time

+ 4 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue Просмотреть файл

@@ -129,7 +129,10 @@
129 129
       </el-table-column>
130 130
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
131 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 136
           {{scope.row.prescription.dialysis_dialyszers}}
134 137
          <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
135 138
           <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>

+ 3 - 0
src/xt_pages/workforce/components/tableData.vue Просмотреть файл

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

+ 5 - 2
src/xt_pages/workforce/components/tableWeeks.vue Просмотреть файл

@@ -146,8 +146,11 @@
146 146
       </el-table-column>
147 147
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
148 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 154
           <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
152 155
           <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
153 156
         </template>

+ 4 - 1
src/xt_pages/workforce/next_remind_print.vue Просмотреть файл

@@ -61,7 +61,10 @@
61 61
                   {{modeOptions[main_collection.mode_id].name}}
62 62
                 </td>
63 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 68
                   {{main_collection.prescription.dialysis_dialyszers}} 
66 69
                   <span v-if="main_collection.prescription.dialysis_dialyszers!='' && main_collection.prescription.dialysis_irrigation!=''">/</span>
67 70
                   <span v-if="main_collection.prescription.dialysis_irrigation!=''"> {{main_collection.prescription.dialysis_irrigation}}</span>

+ 5 - 2
src/xt_pages/workforce/remind_print.vue Просмотреть файл

@@ -60,8 +60,11 @@
60 60
                   {{modeOptions[main_collection.mode_id].name}}
61 61
                 </td>
62 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 68
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
66 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 Просмотреть файл

@@ -12,7 +12,7 @@
12 12
                 <td colspan="3">周五({{ weekTitle[4] }})</td>
13 13
                 <td colspan="3">周六({{ weekTitle[5] }})</td>
14 14
                 <td colspan="3">周日({{ weekTitle[6] }})</td>
15
-                <td colspan="3">总数</td>
15
+                <td>总数</td>
16 16
             </tr>
17 17
             <tr>
18 18
                 <td>上午</td>
@@ -678,7 +678,7 @@ export default {
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 683
                               newArr[i].Wed_N.patient = this.scheduleCountList[j].Count
684 684
                           }
@@ -686,76 +686,76 @@ export default {
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 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 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 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 760
                               newArr[i].Sun_N.patient = this.scheduleCountList[j].Count
761 761
                           }
@@ -793,7 +793,7 @@ export default {
793 793
             return [weekArr[week], typeArr[schedule_type]];
794 794
         },
795 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 798
             printJS({
799 799
             printable: 'scheduleTable',
@@ -818,13 +818,14 @@ export default {
818 818
                theType = 4
819 819
             }
820 820
            var partionStr = this.partition_id
821
+           console.log("partionStr",partionStr)
821 822
             var arr = this.zoneIdList.join(',')
822 823
             var str = ""
823 824
             if(partionStr == 0){
824 825
                 str = arr
825 826
             }
826 827
             if(partionStr != 0){
827
-                str = partionStr.join(',')
828
+                str = partionStr
828 829
             }
829 830
             var params = {
830 831
              weekTime:theType,