瀏覽代碼

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 年之前
父節點
當前提交
fba76696f5
共有 46 個文件被更改,包括 8853 次插入288 次删除
  1. 8 0
      src/api/advice.js
  2. 9 10
      src/api/data.js
  3. 4 5
      src/api/dialysis.js
  4. 9 11
      src/api/stock.js
  5. 20 0
      src/router/modules/dialysis.js
  6. 12 2
      src/store/modules/temp_params.js
  7. 2 4
      src/xt_pages/data/components/addDrugs.vue
  8. 29 3
      src/xt_pages/data/components/drugs.vue
  9. 28 9
      src/xt_pages/data/druguseTemplate.vue
  10. 24 5
      src/xt_pages/dialysis/PatientBox.vue
  11. 8 11
      src/xt_pages/dialysis/bloodPresssWatch.vue
  12. 8 4
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  13. 2 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  14. 9 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  15. 9 2
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  16. 9 4
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  17. 23 2
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  18. 89 23
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  19. 45 36
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  20. 10 9
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  21. 10 7
      src/xt_pages/dialysis/details/index.vue
  22. 731 0
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  23. 109 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  24. 519 0
      src/xt_pages/dialysis/doctorAdvicePrint.vue
  25. 14 20
      src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue
  26. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  27. 2497 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  28. 2257 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  29. 2166 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue
  30. 1 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  31. 0 6
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  32. 4 0
      src/xt_pages/stock/selfPreparedMedicine/components/addMedicine.vue
  33. 2 1
      src/xt_pages/stock/selfPreparedMedicine/components/warehouseOut.vue
  34. 1 1
      src/xt_pages/stock/stockInOrderAdd.vue
  35. 1 1
      src/xt_pages/stock/stockOutOrderAdd.vue
  36. 7 2
      src/xt_pages/stock/stockQuery.vue
  37. 49 71
      src/xt_pages/upload/fast/FastCountry.vue
  38. 1 1
      src/xt_pages/upload/fast/FastPatientsSidebar.vue
  39. 17 7
      src/xt_pages/upload/fast/Two.vue
  40. 2 2
      src/xt_pages/upload/fast_upload.vue
  41. 2 1
      src/xt_pages/user/components/EditGroupAdvice.vue
  42. 4 1
      src/xt_pages/user/dialysisSolution.vue
  43. 23 3
      src/xt_pages/workforce/components/ScheduleItem.vue
  44. 19 4
      src/xt_pages/workforce/components/tableData.vue
  45. 43 12
      src/xt_pages/workforce/components/tableWeeks.vue
  46. 10 3
      src/xt_pages/workforce/remind_print.vue

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

494
     params: params
494
     params: params
495
   });
495
   });
496
 }
496
 }
497
+
498
+export function getSchedualDoctors (params) {
499
+  return request({
500
+    url: '/api/schedule/advices',
501
+    method: 'get',
502
+    params: params
503
+  })
504
+}

+ 9 - 10
src/api/data.js 查看文件

63
   })
63
   })
64
 }
64
 }
65
 
65
 
66
-
67
-
68
-
69
 export function createDictionaryConfig(params) {
66
 export function createDictionaryConfig(params) {
70
   console.log('params', params)
67
   console.log('params', params)
71
   return request({
68
   return request({
108
   })
105
   })
109
 }
106
 }
110
 
107
 
111
-
112
 export function createBaseDrugLib(params) {
108
 export function createBaseDrugLib(params) {
113
   return request({
109
   return request({
114
     url: '/api/basedruglib/create',
110
     url: '/api/basedruglib/create',
117
   })
113
   })
118
 }
114
 }
119
 
115
 
120
-
121
-export function editBaseDrugLib(params,unit) {
116
+export function editBaseDrugLib(params, unit) {
122
   return request({
117
   return request({
123
-    url: '/api/basedruglib/edit?unit='+unit,
118
+    url: '/api/basedruglib/edit?unit=' + unit,
124
     method: 'post',
119
     method: 'post',
125
     params: params
120
     params: params
126
   })
121
   })
127
 }
122
 }
128
 
123
 
129
-
130
 export function getBaseDrugLib(params) {
124
 export function getBaseDrugLib(params) {
131
   return request({
125
   return request({
132
     url: '/api/basedruglib/get',
126
     url: '/api/basedruglib/get',
135
   })
129
   })
136
 }
130
 }
137
 
131
 
138
-
139
-
140
 export function getBaseDrugLibList(params) {
132
 export function getBaseDrugLibList(params) {
141
   return request({
133
   return request({
142
     url: '/api/basedruglib/list',
134
     url: '/api/basedruglib/list',
173
   })
165
   })
174
 }
166
 }
175
 
167
 
168
+export function deleteDurg(params) {
169
+  return request({
170
+    url: '/api/drug/basedruglib',
171
+    method: 'get',
172
+    params: params
173
+  })
174
+}
176
 
175
 
177
 
176
 
178
 
177
 

+ 4 - 5
src/api/dialysis.js 查看文件

145
 }
145
 }
146
 
146
 
147
 export function postPrescription(params) {
147
 export function postPrescription(params) {
148
+  console.log('params', params)
148
   return request({
149
   return request({
149
     url: '/api/dialysis/prescription',
150
     url: '/api/dialysis/prescription',
150
     method: 'Post',
151
     method: 'Post',
218
 }
219
 }
219
 
220
 
220
 export function postAssessmentAfterDislysis(params, data) {
221
 export function postAssessmentAfterDislysis(params, data) {
221
-  console.log('到了没有', data)
222
-  console.log('params', params)
223
   return request({
222
   return request({
224
     url: '/api/dialysis/assessmentafterdislysis',
223
     url: '/api/dialysis/assessmentafterdislysis',
225
     method: 'Post',
224
     method: 'Post',
242
 }
241
 }
243
 
242
 
244
 export function CreateGroupAdvice(id, groupno, advices) {
243
 export function CreateGroupAdvice(id, groupno, advices) {
244
+  console.log('中国人名', advices)
245
   return request({
245
   return request({
246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
247
     method: 'post',
247
     method: 'post',
277
   return request({
277
   return request({
278
     url: '/api/dialysisgoods/get',
278
     url: '/api/dialysisgoods/get',
279
     method: 'get',
279
     method: 'get',
280
-    params: params,
280
+    params: params
281
 
281
 
282
   })
282
   })
283
 }
283
 }
284
 
284
 
285
-
286
 export function GetDialysisGoodStatistics(params) {
285
 export function GetDialysisGoodStatistics(params) {
287
   return request({
286
   return request({
288
     url: '/api/goodstatistics/get',
287
     url: '/api/goodstatistics/get',
289
     method: 'get',
288
     method: 'get',
290
-    params: params,
289
+    params: params
291
 
290
 
292
   })
291
   })
293
 }
292
 }

+ 9 - 11
src/api/stock.js 查看文件

385
   })
385
   })
386
 }
386
 }
387
 
387
 
388
-export function EditWarehouse(params, warehousing_time, id,type,manufacturer_id,dealer_id) {
388
+export function EditWarehouse(params, warehousing_time, id, type, manufacturer_id, dealer_id) {
389
   return request({
389
   return request({
390
-    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id="+dealer_id,
390
+    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
391
     method: 'post',
391
     method: 'post',
392
     data: params
392
     data: params
393
   })
393
   })
433
   })
433
   })
434
 }
434
 }
435
 
435
 
436
-export function editSalesReturnInfo(params, return_time, id,type,manufacturer_id,dealer_id) {
436
+export function editSalesReturnInfo(params, return_time, id, type, manufacturer_id, dealer_id) {
437
   return request({
437
   return request({
438
-    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id="+dealer_id,
438
+    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
439
     method: 'post',
439
     method: 'post',
440
     data: params
440
     data: params
441
   })
441
   })
473
   })
473
   })
474
 }
474
 }
475
 
475
 
476
-export function editWarehouseoutInfo(params, warehouse_out_time, id,type,manufacturer_id,dealer_id) {
476
+export function editWarehouseoutInfo(params, warehouse_out_time, id, type, manufacturer_id, dealer_id) {
477
   return request({
477
   return request({
478
-    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id="+dealer_id,
478
+    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
479
     method: 'post',
479
     method: 'post',
480
     data: params
480
     data: params
481
   })
481
   })
489
   })
489
   })
490
 }
490
 }
491
 
491
 
492
-export function editCancelStockInfo(params, cancel_stock_time, id,type,manufacturer_id,dealer_id) {
492
+export function editCancelStockInfo(params, cancel_stock_time, id, type, manufacturer_id, dealer_id) {
493
   return request({
493
   return request({
494
-    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id=" + dealer_id,
494
+    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
495
     method: 'post',
495
     method: 'post',
496
     data: params
496
     data: params
497
   })
497
   })
544
   })
544
   })
545
 }
545
 }
546
 
546
 
547
-
548
-
549
 export function getPrintStockGood(params) {
547
 export function getPrintStockGood(params) {
550
   return request({
548
   return request({
551
     url: '/api/print/stock',
549
     url: '/api/print/stock',
554
   })
552
   })
555
 }
553
 }
556
 
554
 
557
-
558
 export function getWarehouseOutUser(params) {
555
 export function getWarehouseOutUser(params) {
559
   return request({
556
   return request({
560
     url: '/api/warehouseout/user',
557
     url: '/api/warehouseout/user',
562
     params: params
559
     params: params
563
   })
560
   })
564
 }
561
 }
562
+

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

38
     //     noCache: true
38
     //     noCache: true
39
     //   }
39
     //   }
40
     // },
40
     // },
41
+    {
42
+      path: '/dialysis/dialysisDoctorAdvice',
43
+      component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
44
+      name: '透析医嘱',
45
+      meta: {
46
+        title: '透析医嘱',
47
+        noCache: true
48
+      }
49
+    },
50
+    {
51
+      path: '/dialysis/doctorAdvicePrint',
52
+      component: () => import('@/xt_pages/dialysis/doctorAdvicePrint'),
53
+      name: '透析医嘱打印',
54
+      hidden: true,
55
+      is_menu: false,
56
+      meta: {
57
+        title: '透析医嘱打印',
58
+        noCache: true
59
+      }
60
+    },
41
     {
61
     {
42
       path: '/dialysis/consumableDrugs',
62
       path: '/dialysis/consumableDrugs',
43
       component: () => import('@/xt_pages/dialysis/consumableDrugs'),
63
       component: () => import('@/xt_pages/dialysis/consumableDrugs'),

+ 12 - 2
src/store/modules/temp_params.js 查看文件

1
 const temp_params = {
1
 const temp_params = {
2
   state: {
2
   state: {
3
-    batch_print_dialysis_record_ids: []
3
+    batch_print_dialysis_record_ids: [],
4
+    advice_ids:[],
4
   },
5
   },
5
   mutations: {
6
   mutations: {
6
     SET_BATCH_PRINT_DIALYSIS_RECORD_IDS: (state, record_ids) => {
7
     SET_BATCH_PRINT_DIALYSIS_RECORD_IDS: (state, record_ids) => {
7
       state.batch_print_dialysis_record_ids = record_ids == null || record_ids == undefined ? [] : record_ids
8
       state.batch_print_dialysis_record_ids = record_ids == null || record_ids == undefined ? [] : record_ids
8
-    }
9
+    },
10
+    SET_ADVICE_IDS: (state, record_ids) => {
11
+      state.advice_ids = record_ids == null || record_ids == undefined ? [] : record_ids
12
+    },
9
   },
13
   },
10
   actions: {
14
   actions: {
11
     SetBatchPrintDialysisRecordIDs({ commit, state }, record_ids) {
15
     SetBatchPrintDialysisRecordIDs({ commit, state }, record_ids) {
14
         resolve()
18
         resolve()
15
       })
19
       })
16
     },
20
     },
21
+    SetAdviceIDs({ commit, state }, record_ids) {
22
+      return new Promise((resolve, reject) => {
23
+        commit('SET_ADVICE_IDS', record_ids)
24
+        resolve()
25
+      })
26
+    },
17
     ClearBatchPrintDialysisRecordIDs({ commit, state }) {
27
     ClearBatchPrintDialysisRecordIDs({ commit, state }) {
18
       return new Promise((resolve, reject) => {
28
       return new Promise((resolve, reject) => {
19
         commit('SET_BATCH_PRINT_DIALYSIS_RECORD_IDS', null)
29
         commit('SET_BATCH_PRINT_DIALYSIS_RECORD_IDS', null)

+ 2 - 4
src/xt_pages/data/components/addDrugs.vue 查看文件

14
             <el-form-item label="药品名称 : " prop="drug_name" >
14
             <el-form-item label="药品名称 : " prop="drug_name" >
15
               <el-input v-model="form.drug_name" style="width:160px;" placeholder="" maxlength="30"></el-input>
15
               <el-input v-model="form.drug_name" style="width:160px;" placeholder="" maxlength="30"></el-input>
16
             </el-form-item>
16
             </el-form-item>
17
-            <el-form-item label="拼音 : " prop="pinyin" >
17
+            <el-form-item label="拼音 : " >
18
               <el-input v-model="form.pinyin" style="width:160px;" placeholder="" maxlength="30"></el-input>
18
               <el-input v-model="form.pinyin" style="width:160px;" placeholder="" maxlength="30"></el-input>
19
             </el-form-item>
19
             </el-form-item>
20
-            <el-form-item label="五笔 : " prop="wubi">
20
+            <el-form-item label="五笔 : " >
21
               <el-input v-model="form.wubi" style="width:160px;" placeholder="" maxlength="30"></el-input>
21
               <el-input v-model="form.wubi" style="width:160px;" placeholder="" maxlength="30"></el-input>
22
             </el-form-item>
22
             </el-form-item>
23
             <el-form-item label="药品别名 : " prop="drug_alias">
23
             <el-form-item label="药品别名 : " prop="drug_alias">
407
 
407
 
408
         rules: {
408
         rules: {
409
           drug_name: [{ required: true, message: '请填写药品名称', trigger: 'blur'  }],
409
           drug_name: [{ required: true, message: '请填写药品名称', trigger: 'blur'  }],
410
-          pinyin: [{ required: true, message: '请填写拼音' , trigger: 'blur' }],
411
-          wubi: [{ required: true, message: '请填写五笔' , trigger: 'blur' }],
412
           drug_alias: [{ required: true, message: '请选择药品类别', trigger: 'change' }],
410
           drug_alias: [{ required: true, message: '请选择药品类别', trigger: 'change' }],
413
           drug_spec: [{ required: true, message: '请填写药品规格',trigger: 'blur' }],
411
           drug_spec: [{ required: true, message: '请填写药品规格',trigger: 'blur' }],
414
           drug_type: [{ required: true, message: '请填写药品类型',trigger: 'blur' }],
412
           drug_type: [{ required: true, message: '请填写药品类型',trigger: 'blur' }],

+ 29 - 3
src/xt_pages/data/components/drugs.vue 查看文件

78
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
78
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
79
           <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
79
           <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
80
           <!--<el-button type="primary" size="small" @click="clickMainTain">单位维护</el-button>-->
80
           <!--<el-button type="primary" size="small" @click="clickMainTain">单位维护</el-button>-->
81
-          <!--<el-button type="danger" size="small">删除</el-button>-->
81
+          <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
82
         </template>
82
         </template>
83
       </el-table-column>
83
       </el-table-column>
84
     </el-table>
84
     </el-table>
121
     createMedicineInsurancePercent,
121
     createMedicineInsurancePercent,
122
     editBaseDrugLib,
122
     editBaseDrugLib,
123
     getBaseDrugLib,
123
     getBaseDrugLib,
124
-    getBaseDrugLibList
124
+    getBaseDrugLibList,
125
+    deleteDurg
125
   } from '@/api/data'
126
   } from '@/api/data'
126
 
127
 
127
   export default {
128
   export default {
461
           }
462
           }
462
           this.$refs.addDrugs.show(0, this.formValue)
463
           this.$refs.addDrugs.show(0, this.formValue)
463
         }
464
         }
464
-      }, getList() {
465
+      }, 
466
+
467
+       deleteDurg(id,index){
468
+         console.log("id",id)
469
+            this.$confirm('确认删除吗?', '删除', {
470
+            confirmButtonText: '确 定',
471
+            cancelButtonText: '取 消',
472
+            type: 'warning'
473
+         }).then(() => {
474
+              const params = {
475
+                id:id,
476
+              }
477
+            deleteDurg(params).then(response => {
478
+              if (response.data.state == 1) {
479
+                  var msg = response.data.data.msg
480
+                  this.list.splice(index, 1);
481
+                  this.$message.success("删除成功")
482
+              } else {
483
+                  this.$message.error("药品已经出库不能删除")
484
+              }
485
+            })
486
+          })
487
+          .catch(() => {
488
+          })
489
+        },
490
+      getList() {
465
         let params = {
491
         let params = {
466
           page: this.page,
492
           page: this.page,
467
           limit: this.limit,
493
           limit: this.limit,

+ 28 - 9
src/xt_pages/data/druguseTemplate.vue 查看文件

315
                     <el-form-item label="医嘱内容:" required prop="advice_name">
315
                     <el-form-item label="医嘱内容:" required prop="advice_name">
316
                       <!-- <el-input v-model="templateForm.advice_name"></el-input> -->
316
                       <!-- <el-input v-model="templateForm.advice_name"></el-input> -->
317
 
317
 
318
-                      <el-select
318
+                      <!-- <el-select
319
                         v-model="templateForm.advice_name"
319
                         v-model="templateForm.advice_name"
320
                         filterable
320
                         filterable
321
                         clearable
321
                         clearable
330
                         :label="item.drug_name"
330
                         :label="item.drug_name"
331
                         :value="item.drug_name"
331
                         :value="item.drug_name"
332
                       ></el-option>
332
                       ></el-option>
333
-                     </el-select>
333
+                     </el-select> -->
334
+
335
+                      <el-autocomplete
336
+                          style="width:100%;"
337
+                          class="inline-input"
338
+                          v-model="templateForm.advice_name"
339
+                          :fetch-suggestions="querySearch"
340
+                          placeholder="请输入内容"
341
+                          @input="changeDrugName"
342
+                      ></el-autocomplete>
334
                     </el-form-item>
343
                     </el-form-item>
335
                   </el-col>
344
                   </el-col>
336
 
345
 
340
                     <el-form-item label="药品规格 :" prop="advice_desc">
349
                     <el-form-item label="药品规格 :" prop="advice_desc">
341
                       <el-col :span="8">
350
                       <el-col :span="8">
342
                         <!-- <el-input v-model="templateForm.advice_desc"></el-input> -->
351
                         <!-- <el-input v-model="templateForm.advice_desc"></el-input> -->
343
-                         <el-select
352
+                         <!-- <el-select
344
                           v-model="templateForm.advice_desc"
353
                           v-model="templateForm.advice_desc"
345
                           filterable
354
                           filterable
346
                           clearable
355
                           clearable
355
                           :label="item.drug_spec"
364
                           :label="item.drug_spec"
356
                           :value="item.drug_spec"
365
                           :value="item.drug_spec"
357
                         ></el-option>
366
                         ></el-option>
358
-                        </el-select>
367
+                        </el-select> -->
368
+
369
+                       <el-autocomplete
370
+                         style="width:100px;"
371
+                         class="inline-input"
372
+                         v-model="templateForm.advice_desc"
373
+                         :fetch-suggestions="querySearch1"
374
+                         placeholder="请输入内容"
375
+                         @input="changeDrugDesc"
376
+                       ></el-autocomplete>
359
                       </el-col>
377
                       </el-col>
360
                       <el-col class="line" :span="2">&nbsp;</el-col>
378
                       <el-col class="line" :span="2">&nbsp;</el-col>
361
                       <el-col :span="14">
379
                       <el-col :span="14">
522
                           v-model="templateFormEdit.advice_name"
540
                           v-model="templateFormEdit.advice_name"
523
                           :fetch-suggestions="querySearch"
541
                           :fetch-suggestions="querySearch"
524
                           placeholder="请输入内容"
542
                           placeholder="请输入内容"
525
-                          @select="handleSelect"
526
                           @input="changeDrugNameTwo"
543
                           @input="changeDrugNameTwo"
527
                          ></el-autocomplete>
544
                          ></el-autocomplete>
528
                     </el-form-item>
545
                     </el-form-item>
537
                          v-model="templateFormEdit.advice_desc"
554
                          v-model="templateFormEdit.advice_desc"
538
                          :fetch-suggestions="querySearch1"
555
                          :fetch-suggestions="querySearch1"
539
                          placeholder="请输入内容"
556
                          placeholder="请输入内容"
540
-                         @select="handleSelect1"
541
                          @input="changeDrugDescTwo"
557
                          @input="changeDrugDescTwo"
542
                        ></el-autocomplete>
558
                        ></el-autocomplete>
543
                       </el-col>
559
                       </el-col>
2325
         this.templateFormTwoVisible = false
2341
         this.templateFormTwoVisible = false
2326
       }, 
2342
       }, 
2327
       submitTemplateTwo(formName) {
2343
       submitTemplateTwo(formName) {
2328
-       
2344
+        
2329
         this.templateForm['template_id'] = this.current_template_id
2345
         this.templateForm['template_id'] = this.current_template_id
2330
         this.templateForm['advice_type'] = this.form.advice_type
2346
         this.templateForm['advice_type'] = this.form.advice_type
2331
        
2347
        
2342
             return s && s.trim()
2358
             return s && s.trim()
2343
           }).join(',')
2359
           }).join(',')
2344
         }
2360
         }
2345
-
2361
+        console.log("编辑模板",this.templateForm)
2362
+        
2346
         // 编辑创建医嘱模版
2363
         // 编辑创建医嘱模版
2347
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
2364
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
2348
           if (response.data.state == 0) {
2365
           if (response.data.state == 0) {
2679
           template_id: this.current_template_id
2696
           template_id: this.current_template_id
2680
         }
2697
         }
2681
         console.log("params---",params)
2698
         console.log("params---",params)
2682
-        return 
2699
+       
2683
         updateTemplateName(params).then(response => {
2700
         updateTemplateName(params).then(response => {
2684
           if (response.data.state == 0) {
2701
           if (response.data.state == 0) {
2685
             this.$message.error(response.data.msg)
2702
             this.$message.error(response.data.msg)
2812
         })
2829
         })
2813
        
2830
        
2814
     },
2831
     },
2832
+
2833
+
2815
     changeDrugName(name){
2834
     changeDrugName(name){
2816
        this.current_drug_name = name
2835
        this.current_drug_name = name
2817
        this.templateForm.advice_desc = ''
2836
        this.templateForm.advice_desc = ''

+ 24 - 5
src/xt_pages/dialysis/PatientBox.vue 查看文件

48
           <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
48
           <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
49
         </div>
49
         </div>
50
       </div>
50
       </div>
51
-      <div class="function" :class="functionColor(schedule)">
51
+      <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
52
         <ul>
52
         <ul>
53
           <li>
53
           <li>
54
-            <span class="iconfont">&#xe6f5;</span>班次 :
54
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f5;</span>班次 :
55
             {{ timeTypeText(schedule) }}
55
             {{ timeTypeText(schedule) }}
56
           </li>
56
           </li>
57
           <li>
57
           <li>
58
-            <span class="iconfont">&#xe6de;</span>床位号 :
58
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6de;</span>床位号 :
59
             {{ schedule.device_number.number }}
59
             {{ schedule.device_number.number }}
60
           </li>
60
           </li>
61
           <li>
61
           <li>
62
-            <span class="iconfont">&#xe6f6;</span>透析模式 :
62
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f6;</span>透析模式 :
63
             {{
63
             {{
64
               schedule.mode_id &&
64
               schedule.mode_id &&
65
               $store.getters.treatment_mode[schedule.mode_id]
65
               $store.getters.treatment_mode[schedule.mode_id]
211
       headNurses: [],
211
       headNurses: [],
212
       lastDialysisPrescribe: { id: 0 },
212
       lastDialysisPrescribe: { id: 0 },
213
       temp_schedual: null,
213
       temp_schedual: null,
214
-      date:''
214
+      date:'',
215
+      modedata:0,
215
     };
216
     };
216
   },
217
   },
217
   props: {
218
   props: {
588
       this.$emit("advice");
589
       this.$emit("advice");
589
     },
590
     },
590
     open(schedual){
591
     open(schedual){
592
+      console.log("中国2222222",this)
593
+     
591
       this.date = schedual.schedule_date
594
       this.date = schedual.schedule_date
592
       this.patient_id = schedual.patient_id
595
       this.patient_id = schedual.patient_id
596
+      this.modedata = 1
593
       this.getScheduleDetail()
597
       this.getScheduleDetail()
594
       // this.getLongAdvice()
598
       // this.getLongAdvice()
595
       this.$refs.prescription.show(this.prescription,schedual);
599
       this.$refs.prescription.show(this.prescription,schedual);
614
       
618
       
615
       let strDate = h  + ':' + m;
619
       let strDate = h  + ':' + m;
616
       return strDate;
620
       return strDate;
621
+    },
622
+    modeColor (id) {
623
+      if (id == 1) {
624
+
625
+      } else if (id == 2) {
626
+        return 'modeRed'
627
+      } else if (id == 3) {
628
+        return 'modePurple'
629
+      }
617
     }
630
     }
618
   },
631
   },
619
 };
632
 };
767
 .red {
780
 .red {
768
   border: 1px #ff7979 solid;
781
   border: 1px #ff7979 solid;
769
 }
782
 }
783
+#modeRed{
784
+  color:#ed5555;
785
+}
786
+#modePurple{
787
+  color: #53b86e;
788
+}
770
 </style>
789
 </style>

+ 8 - 11
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

525
       console.log(val);
525
       console.log(val);
526
       this.$router.push({
526
       this.$router.push({
527
         path: "/dialysis/details",
527
         path: "/dialysis/details",
528
-        query: { patient_id: val.patient_id, date: val.sch_time_int }
528
+        query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
529
       });
529
       });
530
     },
530
     },
531
     handleSelectionChange(val) {
531
     handleSelectionChange(val) {
568
       }
568
       }
569
       this.SchedualPatientsTableData = [];
569
       this.SchedualPatientsTableData = [];
570
       getSchedualPatient(this.listQuery).then(response => {
570
       getSchedualPatient(this.listQuery).then(response => {
571
+        console.log("2222",response.data.data.schedule)
571
         if (response.data.state == 0) {
572
         if (response.data.state == 0) {
572
           this.loading = false;
573
           this.loading = false;
573
           this.$message.error(response.data.msg);
574
           this.$message.error(response.data.msg);
582
                 bp: []
583
                 bp: []
583
               };
584
               };
584
 
585
 
585
-              SchedualPatientsTable["sch_id"] =
586
-                response.data.data.schedule[i].id;
587
-              SchedualPatientsTable["sch_time_int"] =
588
-                response.data.data.schedule[i].schedule_date;
589
-              SchedualPatientsTable["sch_time"] = parseTime(
590
-                response.data.data.schedule[i].schedule_date,
591
-                "{y}-{m}-{d}"
592
-              );
586
+              SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id;
587
+              SchedualPatientsTable["sch_time_int"] = response.data.data.schedule[i].schedule_date;
588
+              SchedualPatientsTable["sch_time"] = parseTime(response.data.data.schedule[i].schedule_date,"{y}-{m}-{d}");
589
+              SchedualPatientsTable["mode_id"] = response.data.data.schedule[i].mode_id
593
               SchedualPatientsTable["dialysis_no"] =
590
               SchedualPatientsTable["dialysis_no"] =
594
                 response.data.data.schedule[i].patient.dialysis_no;
591
                 response.data.data.schedule[i].patient.dialysis_no;
595
               SchedualPatientsTable["name"] =
592
               SchedualPatientsTable["name"] =
604
                 response.data.data.schedule[i].patient_id;
601
                 response.data.data.schedule[i].patient_id;
605
               SchedualPatientsTable["mode_name"] =
602
               SchedualPatientsTable["mode_name"] =
606
                 response.data.data.schedule[i].treatment_mode.name;
603
                 response.data.data.schedule[i].treatment_mode.name;
607
-              SchedualPatientsTable["target_ultrafiltration"] =
608
-                response.data.data.schedule[i].prescription.target_ultrafiltration;
604
+              SchedualPatientsTable["target_ultrafiltration"] = response.data.data.schedule[i].prescription.target_ultrafiltration;
609
               if (
605
               if (
610
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
606
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
611
               ) {
607
               ) {
643
               }
639
               }
644
 
640
 
645
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
641
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
642
+              console.log("中国222222",this.SchedualPatientsTableData)
646
             }
643
             }
647
           }
644
           }
648
         }
645
         }

+ 8 - 4
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

15
           <span class="content">{{
15
           <span class="content">{{
16
             replacement_total != "0" ? replacement_total : ""
16
             replacement_total != "0" ? replacement_total : ""
17
           }}</span>
17
           }}</span>
18
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 20" class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
19
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 20" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
18
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28" class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
19
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
20
 
20
 
21
         </li>
21
         </li>
22
 
22
 
81
           <span class="content">{{
81
           <span class="content">{{
82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
83
           }}</span>
83
           }}</span>
84
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
85
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
84
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
85
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
86
         </li>
86
         </li>
87
         <li v-if="isShow('葡萄糖')">
87
         <li v-if="isShow('葡萄糖')">
88
           <label>葡萄糖 : </label>
88
           <label>葡萄糖 : </label>
291
 
291
 
292
       </ul>
292
       </ul>
293
     </div>
293
     </div>
294
+    <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
294
   </div>
295
   </div>
295
 </template>
296
 </template>
296
 
297
 
321
     }
322
     }
322
   },
323
   },
323
   computed: {
324
   computed: {
325
+    note: function () {
326
+      return this.getValueStr('remark', 'remark')
327
+    },
324
     target_ultrafiltration: function() {
328
     target_ultrafiltration: function() {
325
       var v = this.getValueStr(
329
       var v = this.getValueStr(
326
         'target_ultrafiltration',
330
         'target_ultrafiltration',

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

17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18
             actual_ultrafiltration
18
             actual_ultrafiltration
19
           }}</span>
19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24" >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27  &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
22
         </li>
22
         </li>
23
         <li v-if="isShow('导管')">
23
         <li v-if="isShow('导管')">
24
           <label>导管 : </label>
24
           <label>导管 : </label>

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

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24"  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>
588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
589
           </el-form-item>
589
           </el-form-item>
590
         </el-col>
590
         </el-col>
591
+        
591
 
592
 
593
+        <el-col :span="8" v-if="isShow('并发症其他')">
594
+          <el-form-item label="并发症其他: ">
595
+            <el-input v-model="form.other_complication"></el-input>
596
+          </el-form-item>
597
+        </el-col>
592
 
598
 
593
       </el-form>
599
       </el-form>
594
 
600
 
742
         supine_diastolic_blood_pressure:'',
748
         supine_diastolic_blood_pressure:'',
743
         diastolic_pressure:'',
749
         diastolic_pressure:'',
744
         additional_weight:'',
750
         additional_weight:'',
751
+        other_complication:''
745
       }
752
       }
746
     }
753
     }
747
   },
754
   },
944
       data["supine_diastolic_blood_pressure"] = this.form.supine_diastolic_blood_pressure
951
       data["supine_diastolic_blood_pressure"] = this.form.supine_diastolic_blood_pressure
945
       data["diastolic_pressure"] = this.form.diastolic_pressure
952
       data["diastolic_pressure"] = this.form.diastolic_pressure
946
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
953
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954
+      data["other_complication"] = this.form.other_complication
947
       postAssessmentAfterDislysis(ParamsQuery, data)
955
       postAssessmentAfterDislysis(ParamsQuery, data)
948
         .then(response => {
956
         .then(response => {
949
           this.loading = false
957
           this.loading = false

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

833
         }
833
         }
834
 
834
 
835
       },
835
       },
836
-
836
+  //  上一方
837
       AddNewAdvice(name) {
837
       AddNewAdvice(name) {
838
+        for(let i=0;i<this.other_doctor_advices.length;i++){
839
+           this.other_doctor_advices[i].single_dose = this.other_doctor_advices[i].single_dose.toString()
840
+           this.other_doctor_advices[i].prescribing_number = this.other_doctor_advices[i].prescribing_number.toString()
841
+        }
838
         this.$refs[name].validate(valid => {
842
         this.$refs[name].validate(valid => {
839
           if (valid) {
843
           if (valid) {
840
             var submitForm = {
844
             var submitForm = {
844
               adviceNames: this.other_doctor_advices,
848
               adviceNames: this.other_doctor_advices,
845
               remark: ''
849
               remark: ''
846
             }
850
             }
847
-
851
+            console.log("2223333",submitForm)
852
+           
848
             let mode = '1'
853
             let mode = '1'
849
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
854
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
850
               response => {
855
               response => {
2205
           if (response.data.state == 1) {
2210
           if (response.data.state == 1) {
2206
 
2211
 
2207
             var doctor_advices = response.data.data.advices
2212
             var doctor_advices = response.data.data.advices
2213
+            console.log("doctor_advices",doctor_advices)
2214
+           
2208
             this.other_doctor_advices = doctor_advices
2215
             this.other_doctor_advices = doctor_advices
2209
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2216
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2210
             this.sch = response.data.data.schedule
2217
             this.sch = response.data.data.schedule

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

717
                           }
717
                           }
718
                       }
718
                       }
719
                    }
719
                    }
720
-                   if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
721
-                      submitForm.adviceNames[index].way = 2
722
-                      submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
720
+                   if(submitForm.adviceNames[index].children.length == 0){
721
+                     if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
722
+                       console.log("进来了没有")
723
+                        submitForm.adviceNames[index].way = 2
724
+                        submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
725
+                    }
723
                    }
726
                    }
727
+                   
724
                 }
728
                 }
725
              }
729
              }
726
           }
730
           }
727
           console.log("2222",submitForm)
731
           console.log("2222",submitForm)
728
-        
732
+          
729
           CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
733
           CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
730
             response => {
734
             response => {
731
               if (response.data.state == 0) {
735
               if (response.data.state == 0) {
1512
          if (response.data.state == 1) {
1516
          if (response.data.state == 1) {
1513
             this.arr_drug = []
1517
             this.arr_drug = []
1514
             var medicalList = response.data.data.private_drug_list
1518
             var medicalList = response.data.data.private_drug_list
1519
+            console.log("medicallist",medicalList)
1515
             var base_drug_list = response.data.data.base_drug_list
1520
             var base_drug_list = response.data.data.base_drug_list
1516
             var base_drug_cofig = response.data.data.base_drug_config
1521
             var base_drug_cofig = response.data.data.base_drug_config
1517
             var private_drug_cofig = response.data.data.private_drug_config
1522
             var private_drug_cofig = response.data.data.private_drug_config

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

206
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
206
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
207
             </el-form-item>
207
             </el-form-item>
208
           </el-col>
208
           </el-col>
209
+           
209
 
210
 
211
+          <el-col :span="8">
212
+            <el-form-item label="导管维护: " v-if="isShow('导管维护')">
213
+              <el-input v-model="assessmentBeforeDislysis.catheter_maintenance" @focus="showInnerDialog('18')"></el-input>
214
+            </el-form-item>
215
+          </el-col>
210
 
216
 
211
 
217
 
212
 
218
 
697
           urine_volume:'',
703
           urine_volume:'',
698
           edema:'',
704
           edema:'',
699
           special_treatment:'',
705
           special_treatment:'',
706
+          catheter_maintenance:"",
700
         },
707
         },
701
 
708
 
702
         InnerDialogProps: {
709
         InnerDialogProps: {
710
         machineType: [],
717
         machineType: [],
711
         puncture_ways: '',
718
         puncture_ways: '',
712
         skins:[],
719
         skins:[],
713
-        pinholings:[]
714
-
720
+        pinholings:[],
721
+        catheter_maintenancelist:[]
715
       }
722
       }
716
     },
723
     },
717
     props: {
724
     props: {
978
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_part_id
985
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_part_id
979
             this.InnerDialogProps.isShowTextArea = false
986
             this.InnerDialogProps.isShowTextArea = false
980
 
987
 
988
+            break
989
+
990
+           case '18': // 导管维护
991
+            this.InnerDialogProps.values = this.catheter_maintenancelist
992
+            this.InnerDialogProps.titles = '导管维护'
993
+            this.InnerDialogProps.type = 'catheter_maintenance'
994
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_maintenance
995
+            this.InnerDialogProps.isShowTextArea = false
996
+
981
             break
997
             break
982
         }
998
         }
983
       },
999
       },
1039
           case 'blood_access_part_id':
1055
           case 'blood_access_part_id':
1040
             this.assessmentBeforeDislysis.blood_access_part_id = val.value.join(',')
1056
             this.assessmentBeforeDislysis.blood_access_part_id = val.value.join(',')
1041
            break
1057
            break
1058
+          case 'catheter_maintenance':
1059
+           this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
1060
+           break
1042
         }
1061
         }
1043
       },
1062
       },
1044
       innerDialogCancle: function() {
1063
       innerDialogCancle: function() {
1200
       console.log("皮肤",this.skins)
1219
       console.log("皮肤",this.skins)
1201
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1220
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1202
       console.log("针眼",this.pinholings)
1221
       console.log("针眼",this.pinholings)
1222
+      this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1223
+      console.log("导管维护",this.catheter_maintenancelist)
1203
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1224
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1204
 
1225
 
1205
       // if(this.predialysis_evaluation.id == 0){
1226
       // if(this.predialysis_evaluation.id == 0){

+ 89 - 23
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

87
           </el-col>
87
           </el-col>
88
 
88
 
89
           <el-col :span="8"
89
           <el-col :span="8"
90
-                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24)">
90
+                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
91
             <el-form-item label="目标超滤量(ml):">
91
             <el-form-item label="目标超滤量(ml):">
92
               <el-input
92
               <el-input
93
                 type="number"
93
                 type="number"
97
           </el-col>
97
           </el-col>
98
 
98
 
99
           <el-col :span="8"
99
           <el-col :span="8"
100
-                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24">
100
+                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
101
             <el-form-item label="目标超滤量(L):">
101
             <el-form-item label="目标超滤量(L):">
102
               <el-input
102
               <el-input
103
                 type="number"
103
                 type="number"
223
 
223
 
224
 
224
 
225
 
225
 
226
-          <el-col :span="8" v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20)"
226
+          <el-col :span="8" v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28)"
227
                   v-show="zhiShow">
227
                   v-show="zhiShow">
228
             <el-form-item label="置换量(ml):">
228
             <el-form-item label="置换量(ml):">
229
               <el-input
229
               <el-input
232
               ></el-input>
232
               ></el-input>
233
             </el-form-item>
233
             </el-form-item>
234
           </el-col>
234
           </el-col>
235
-          <el-col :span="8" v-if="isShows('置换量') && this.$store.getters.xt_user.template_info.template_id != 20"
235
+          <el-col :span="8" v-if="isShows('置换量') && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28"
236
                   v-show="zhiShow">
236
                   v-show="zhiShow">
237
             <el-form-item label="置换量(L):">
237
             <el-form-item label="置换量(L):">
238
               <el-input
238
               <el-input
510
           </el-col>
510
           </el-col>
511
 
511
 
512
 
512
 
513
+           <el-col :span="8" v-if="isShows('抽血')">
514
+            <el-form-item label="抽血:">
515
+
516
+              <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
517
+
518
+              
519
+            </el-form-item>
520
+          </el-col>
521
+
522
+
513
           <!-- </el-row>
523
           <!-- </el-row>
514
           <el-row :gutter="20" > -->
524
           <el-row :gutter="20" > -->
515
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
525
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
779
             <!--</el-form-item>-->
789
             <!--</el-form-item>-->
780
           <!--</el-col>-->
790
           <!--</el-col>-->
781
 
791
 
782
-
792
+           
783
 
793
 
784
 
794
 
785
 
795
 
1258
           heparin_sodium:"", //肝素钠
1268
           heparin_sodium:"", //肝素钠
1259
           nucleoprotamine:"",//鱼精蛋白
1269
           nucleoprotamine:"",//鱼精蛋白
1260
           no_heparin_remarks:"",
1270
           no_heparin_remarks:"",
1271
+          blood:"",
1261
         },
1272
         },
1262
 
1273
 
1263
         anticoagulant: {
1274
         anticoagulant: {
1277
         },
1288
         },
1278
 
1289
 
1279
         doctorAdvices: [],
1290
         doctorAdvices: [],
1280
-        dialyzerPerfusionApparatus: []
1291
+        dialyzerPerfusionApparatus: [],
1292
+        bloods:[]
1281
       }
1293
       }
1282
     },
1294
     },
1283
     methods: {
1295
     methods: {
1312
             this.InnerDialogProps.selected = arrtwo
1324
             this.InnerDialogProps.selected = arrtwo
1313
             this.InnerDialogProps.isShowTextArea = false
1325
             this.InnerDialogProps.isShowTextArea = false
1314
             break
1326
             break
1315
-        }
1316
-      }, innerDialogComfirm: function(val) {
1327
+
1328
+          case '6': // 透析器/灌流器
1329
+
1330
+            this.InnerDialogProps.values = this.bloods
1331
+            this.InnerDialogProps.titles = '抽血'
1332
+            this.InnerDialogProps.type = 'blood'
1333
+            this.InnerDialogProps.selected = this.dialysisPrescription.blood
1334
+            this.InnerDialogProps.isShowTextArea = false
1335
+            // if(this.dialysisPrescription.blood !="" || dialysisPrescription.blood !=undefined ){
1336
+            //     var arr = this.dialysisPrescription.blood
1337
+            //     var newArr =  arr.split(",")
1338
+            //     console.log("抽血",newArr)
1339
+            //     var Arr = []
1340
+            //     for(let i=0;i<newArr.length;i++){
1341
+            //       for(let j=0;j<this.bloods.length;j++){
1342
+            //         var newarr = newArr[i].toUpperCase()
1343
+
1344
+            //         var dialy = this.bloods[j].name.toUpperCase()
1345
+
1346
+            //         if(newarr == dialy){
1347
+            //             Arr.push(this.bloods[j].name)
1348
+            //         }
1349
+            //       }
1350
+            //     }
1351
+            //     var arrtwo = Arr.join(",")
1352
+            //     console.log("Arr",arrtwo)
1353
+            //     this.InnerDialogProps.values = this.bloods
1354
+            //     this.InnerDialogProps.titles = '抽血'
1355
+            //     this.InnerDialogProps.type = 'blood'
1356
+            //     this.InnerDialogProps.selected = arrtwo
1357
+            //     this.InnerDialogProps.isShowTextArea = false
1358
+            //     break
1359
+            // }  
1360
+        }
1361
+      }, 
1362
+      innerDialogComfirm: function(val) {
1317
         this.InnerDialogProps.visibility = false
1363
         this.InnerDialogProps.visibility = false
1318
         switch (val.type) {
1364
         switch (val.type) {
1319
           case 'dialyzer_perfusion_apparatus':
1365
           case 'dialyzer_perfusion_apparatus':
1320
             this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1366
             this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1321
             break
1367
             break
1322
-
1368
+          case 'blood':
1369
+            this.dialysisPrescription.blood = val.value.join(',')
1370
+           break
1323
         }
1371
         }
1324
       },
1372
       },
1325
       innerDialogCancle: function() {
1373
       innerDialogCancle: function() {
1372
 
1420
 
1373
 
1421
 
1374
         this.treatment_mode = this.$store.getters.treatment_mode
1422
         this.treatment_mode = this.$store.getters.treatment_mode
1375
-        console.log("99999",this.treatment_mode)
1423
+        // console.log("99999",this.treatment_mode)
1376
         this.perfusion_apparatus = getDataConfig(
1424
         this.perfusion_apparatus = getDataConfig(
1377
           'hemodialysis',
1425
           'hemodialysis',
1378
           'perfusion_apparatus'
1426
           'perfusion_apparatus'
1423
           'dialyzer_perfusion_apparatus'
1471
           'dialyzer_perfusion_apparatus'
1424
         )
1472
         )
1425
 
1473
 
1474
+        this.bloods = getDataConfig(
1475
+          'hemodialysis',
1476
+          'blood'
1477
+        )
1478
+        console.log("抽血-----",this.bloods)
1426
       //  dialyzerPerfusionApparatus.map(item => {
1479
       //  dialyzerPerfusionApparatus.map(item => {
1427
       //    item.name = item.name.toUpperCase()
1480
       //    item.name = item.name.toUpperCase()
1428
       //  })
1481
       //  })
1765
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1818
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1766
       },
1819
       },
1767
       show(pre,schedual,last) {
1820
       show(pre,schedual,last) {
1768
-
1769
         var date = new Date()
1821
         var date = new Date()
1770
         var year = date.getFullYear()
1822
         var year = date.getFullYear()
1771
         var month = date.getMonth() + 1
1823
         var month = date.getMonth() + 1
1838
 
1890
 
1839
         if (this.predialysis == null || this.predialysis.id == 0) {
1891
         if (this.predialysis == null || this.predialysis.id == 0) {
1840
           if(last != null) {
1892
           if(last != null) {
1893
+          
1841
             this.dialysisPrescription.niprocart = last.niprocart
1894
             this.dialysisPrescription.niprocart = last.niprocart
1842
             this.dialysisPrescription.jms = last.jms
1895
             this.dialysisPrescription.jms = last.jms
1843
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
1896
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
1920
         }
1973
         }
1921
 
1974
 
1922
         this.is_pre = 1
1975
         this.is_pre = 1
1976
+
1977
+        console.log("99999",this.prescription.id)
1978
+        console.log("open",this.is_open)
1923
         if (this.prescription.id == 0) {
1979
         if (this.prescription.id == 0) {
1924
           if (this.is_open == 0) {
1980
           if (this.is_open == 0) {
1925
             if (this.patient.id <= 0) {
1981
             if (this.patient.id <= 0) {
1935
             ParamsQuery['patient'] = this.patient.id
1991
             ParamsQuery['patient'] = this.patient.id
1936
             ParamsQuery['record_date'] = this.record_date
1992
             ParamsQuery['record_date'] = this.record_date
1937
             ParamsQuery['mode'] = '1'
1993
             ParamsQuery['mode'] = '1'
1938
-
1994
+    
1995
+            console.log("第一")
1939
             postPrescription(ParamsQuery).then(response => {
1996
             postPrescription(ParamsQuery).then(response => {
1940
               if (response.data.state == 0) {
1997
               if (response.data.state == 0) {
1941
                 this.$message.error(response.data.msg)
1998
                 this.$message.error(response.data.msg)
1957
                 this.hide()
2014
                 this.hide()
1958
               }
2015
               }
1959
             })
2016
             })
2017
+
1960
           } else if (this.is_open == 1) {
2018
           } else if (this.is_open == 1) {
1961
             if (this.targetAdvices.length > 0) {
2019
             if (this.targetAdvices.length > 0) {
1962
               // 弹框推送提醒
2020
               // 弹框推送提醒
1977
               ParamsQuery['patient'] = this.patient.id
2035
               ParamsQuery['patient'] = this.patient.id
1978
               ParamsQuery['record_date'] = this.record_date
2036
               ParamsQuery['record_date'] = this.record_date
1979
               ParamsQuery['mode'] = '1'
2037
               ParamsQuery['mode'] = '1'
1980
-
2038
+               console.log("第二")
1981
               postPrescription(ParamsQuery).then(response => {
2039
               postPrescription(ParamsQuery).then(response => {
1982
                 if (response.data.state == 0) {
2040
                 if (response.data.state == 0) {
1983
                   this.$message.error(response.data.msg)
2041
                   this.$message.error(response.data.msg)
2020
               var arr = this.dialysisPrescription
2078
               var arr = this.dialysisPrescription
2021
 
2079
 
2022
               const ParamsQuery = arr
2080
               const ParamsQuery = arr
2023
-              // console.log('paramsquerythree', ParamsQuery)
2081
+              console.log('paramsquerythree', ParamsQuery)
2024
               ParamsQuery['patient'] = this.patient.id
2082
               ParamsQuery['patient'] = this.patient.id
2025
               ParamsQuery['record_date'] = this.record_date
2083
               ParamsQuery['record_date'] = this.record_date
2026
               ParamsQuery['mode'] = '1'
2084
               ParamsQuery['mode'] = '1'
2027
-
2085
+              console.log("第三")
2086
+              
2028
               postPrescription(ParamsQuery).then(response => {
2087
               postPrescription(ParamsQuery).then(response => {
2029
                 if (response.data.state == 0) {
2088
                 if (response.data.state == 0) {
2030
                   this.$message.error(response.data.msg)
2089
                   this.$message.error(response.data.msg)
2054
 
2113
 
2055
                     remark: ''
2114
                     remark: ''
2056
                   }
2115
                   }
2116
+                   console.log("params--------",params)
2057
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
2117
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
2058
                     rs => {
2118
                     rs => {
2059
                       var resp = rs.data
2119
                       var resp = rs.data
2094
               ParamsQuery['patient'] = this.patient.id
2154
               ParamsQuery['patient'] = this.patient.id
2095
               ParamsQuery['record_date'] = this.record_date
2155
               ParamsQuery['record_date'] = this.record_date
2096
               // console.log(this.prescription);
2156
               // console.log(this.prescription);
2097
-
2157
+              console.log("第四")
2098
               postPrescription(ParamsQuery).then(response => {
2158
               postPrescription(ParamsQuery).then(response => {
2099
                 if (response.data.state == 0) {
2159
                 if (response.data.state == 0) {
2100
                   this.$message.error(response.data.msg)
2160
                   this.$message.error(response.data.msg)
2106
                     type: 'success',
2166
                     type: 'success',
2107
                     duration: 2000
2167
                     duration: 2000
2108
                   })
2168
                   })
2109
-
2169
+ 
2110
                   const prescription_resp = response.data.data.prescription
2170
                   const prescription_resp = response.data.data.prescription
2111
                   // console.log("aaaaaaa", prescription_resp);
2171
                   // console.log("aaaaaaa", prescription_resp);
2112
                   var prescription = this.prescription
2172
                   var prescription = this.prescription
2137
               ParamsQuery['patient'] = this.patient.id
2197
               ParamsQuery['patient'] = this.patient.id
2138
               ParamsQuery['record_date'] = this.record_date
2198
               ParamsQuery['record_date'] = this.record_date
2139
               ParamsQuery['mode'] = '1'
2199
               ParamsQuery['mode'] = '1'
2140
-
2200
+               console.log("第五")
2141
               postPrescription(ParamsQuery).then(response => {
2201
               postPrescription(ParamsQuery).then(response => {
2142
                 if (response.data.state == 0) {
2202
                 if (response.data.state == 0) {
2143
                   this.$message.error(response.data.msg)
2203
                   this.$message.error(response.data.msg)
2180
                 ParamsQuery['patient'] = this.patient.id
2240
                 ParamsQuery['patient'] = this.patient.id
2181
                 ParamsQuery['record_date'] = this.record_date
2241
                 ParamsQuery['record_date'] = this.record_date
2182
                 ParamsQuery['mode'] = '1'
2242
                 ParamsQuery['mode'] = '1'
2183
-
2243
+                console.log("第6")
2184
                 postPrescription(ParamsQuery).then(response => {
2244
                 postPrescription(ParamsQuery).then(response => {
2185
                   if (response.data.state == 0) {
2245
                   if (response.data.state == 0) {
2186
                     this.$message.error(response.data.msg)
2246
                     this.$message.error(response.data.msg)
2229
                 ParamsQuery['patient'] = this.patient.id
2289
                 ParamsQuery['patient'] = this.patient.id
2230
                 ParamsQuery['record_date'] = this.record_date
2290
                 ParamsQuery['record_date'] = this.record_date
2231
                 ParamsQuery['mode'] = '1'
2291
                 ParamsQuery['mode'] = '1'
2232
-
2292
+                 console.log("第七")
2233
                 postPrescription(ParamsQuery).then(response => {
2293
                 postPrescription(ParamsQuery).then(response => {
2234
                   if (response.data.state == 0) {
2294
                   if (response.data.state == 0) {
2235
                     this.$message.error(response.data.msg)
2295
                     this.$message.error(response.data.msg)
2251
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
2311
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
2252
                       advice_type: this.waitUploadAdvices[0].advice_type,
2312
                       advice_type: this.waitUploadAdvices[0].advice_type,
2253
                       parent_id: this.patient_id,
2313
                       parent_id: this.patient_id,
2314
+
2254
                       // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
2315
                       // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
2255
                       start_time:
2316
                       start_time:
2256
                         uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
2317
                         uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
2298
                 ParamsQuery['patient'] = this.patient.id
2359
                 ParamsQuery['patient'] = this.patient.id
2299
                 ParamsQuery['record_date'] = this.record_date
2360
                 ParamsQuery['record_date'] = this.record_date
2300
                 ParamsQuery['mode'] = '1'
2361
                 ParamsQuery['mode'] = '1'
2301
-
2362
+                console.log("第八")
2302
                 postPrescription(ParamsQuery).then(response => {
2363
                 postPrescription(ParamsQuery).then(response => {
2303
                   if (response.data.state == 0) {
2364
                   if (response.data.state == 0) {
2304
                     this.$message.error(response.data.msg)
2365
                     this.$message.error(response.data.msg)
2345
             ) {
2406
             ) {
2346
               ParamsQuery['mode'] = '3'
2407
               ParamsQuery['mode'] = '3'
2347
             }
2408
             }
2348
-
2409
+             console.log("第九")
2349
             postPrescription(ParamsQuery).then(response => {
2410
             postPrescription(ParamsQuery).then(response => {
2350
               if (response.data.state == 0) {
2411
               if (response.data.state == 0) {
2351
                 this.$message.error(response.data.msg)
2412
                 this.$message.error(response.data.msg)
2394
         }
2455
         }
2395
 
2456
 
2396
         this.is_pre = 2
2457
         this.is_pre = 2
2458
+
2397
         if (this.prescription.id == 0) {
2459
         if (this.prescription.id == 0) {
2398
           if (this.is_open == 0) {
2460
           if (this.is_open == 0) {
2399
             if (this.patient.id <= 0) {
2461
             if (this.patient.id <= 0) {
2746
                       duration: 2000
2808
                       duration: 2000
2747
                     })
2809
                     })
2748
                     const params = {
2810
                     const params = {
2811
+                   
2749
                       advices: this.waitUploadAdvices,
2812
                       advices: this.waitUploadAdvices,
2750
                       advice_date: uParseTime(
2813
                       advice_date: uParseTime(
2751
                         this.$route.query.date,
2814
                         this.$route.query.date,
3144
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3207
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3145
       },
3208
       },
3146
     },
3209
     },
3147
-
3210
+    // created(){
3211
+    //   var org_id =  this.$store.getters.xt_user.template_info.org_id
3212
+    //   console.log("org_id-----",org_id)
3213
+    // },
3148
     watch: {
3214
     watch: {
3149
       'dialysisPrescription.dialysis_duration_hour': function() {
3215
       'dialysisPrescription.dialysis_duration_hour': function() {
3150
         let dialysis_duration_minute = 0
3216
         let dialysis_duration_minute = 0

+ 45 - 36
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

154
                   template_id == 21 ||
154
                   template_id == 21 ||
155
                   template_id == 22 ||
155
                   template_id == 22 ||
156
                   template_id == 23 ||
156
                   template_id == 23 ||
157
-                  template_id == 24)
157
+                  template_id == 24 ||
158
+                  template_id == 26 ||
159
+                  template_id == 27 ||
160
+                  org_id == 9555)
158
             "
161
             "
159
           >
162
           >
160
             <template slot-scope="scope">
163
             <template slot-scope="scope">
184
                 template_id != 21 &&
187
                 template_id != 21 &&
185
                 template_id != 22 &&
188
                 template_id != 22 &&
186
                 template_id != 23 &&
189
                 template_id != 23 &&
187
-                template_id != 24
190
+                template_id != 24 &&
191
+                template_id != 26 &&
192
+                template_id != 27 &&
193
+                org_id!=9555
188
             "
194
             "
189
           >
195
           >
190
             <template slot-scope="scope">
196
             <template slot-scope="scope">
195
               }}
201
               }}
196
             </template>
202
             </template>
197
           </el-table-column>
203
           </el-table-column>
204
+
205
+          <el-table-column
206
+            prop="displacement_flow_quantity"
207
+            align="center"
208
+            label="超滤率(ml/h)"
209
+            width="100"
210
+            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26) "
211
+          >
212
+            <template slot-scope="scope">
213
+              {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
214
+            </template>
215
+          </el-table-column>
216
+          <el-table-column
217
+            prop="displacement_flow_quantity"
218
+            align="center"
219
+            label="超滤率(L/h)"
220
+            width="100"
221
+            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26"
222
+          >
223
+            <template slot-scope="scope">
224
+              {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
225
+            </template>
226
+          </el-table-column>
198
           <el-table-column
227
           <el-table-column
199
             prop="sodium_concentration"
228
             prop="sodium_concentration"
200
             align="center"
229
             align="center"
230
             align="center"
259
             align="center"
231
             label="置换率(ml/min)"
260
             label="置换率(ml/min)"
232
             width="120"
261
             width="120"
233
-            v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20)" >
262
+            v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26)" >
234
             <template slot-scope="scope">
263
             <template slot-scope="scope">
235
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
264
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
236
             </template>
265
             </template>
241
             align="center"
270
             align="center"
242
             label="置换率(L/h)"
271
             label="置换率(L/h)"
243
             width="120"
272
             width="120"
244
-            v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20">
273
+            v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26">
245
             <template slot-scope="scope">
274
             <template slot-scope="scope">
246
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
275
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
247
             </template>
276
             </template>
251
             align="center"
280
             align="center"
252
             label="置换量(ml)"
281
             label="置换量(ml)"
253
             width="100"
282
             width="100"
254
-            v-if=" isShow('置换量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " >
283
+            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26)" >
255
             <template slot-scope="scope">
284
             <template slot-scope="scope">
256
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
285
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
257
             </template>
286
             </template>
262
             align="center"
291
             align="center"
263
             label="置换量(L)"
292
             label="置换量(L)"
264
             width="100"
293
             width="100"
265
-            v-if=" isShow('置换量') &&  template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20" >
294
+            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26)" >
266
             <template slot-scope="scope">
295
             <template slot-scope="scope">
267
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
296
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
268
             </template>
297
             </template>
316
           </el-table-column>
345
           </el-table-column>
317
 
346
 
318
 
347
 
319
-          <el-table-column
320
-            prop="displacement_flow_quantity"
321
-            align="center"
322
-            label="超滤率(ml/h)"
323
-            width="100"
324
-            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24) "
325
-          >
326
-            <template slot-scope="scope">
327
-              {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
328
-            </template>
329
-          </el-table-column>
330
-          <el-table-column
331
-            prop="displacement_flow_quantity"
332
-            align="center"
333
-            label="超滤率(L/h)"
334
-            width="100"
335
-            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24"
336
-          >
337
-            <template slot-scope="scope">
338
-              {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
339
-            </template>
340
-          </el-table-column>
348
+          
341
 
349
 
342
           <el-table-column
350
           <el-table-column
343
             prop="heparin"
351
             prop="heparin"
473
             </el-form-item>
481
             </el-form-item>
474
           </el-col>
482
           </el-col>
475
 
483
 
476
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24) ">
484
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26) ">
477
             <el-form-item label="超滤率(ml/h)">
485
             <el-form-item label="超滤率(ml/h)">
478
               <el-input v-model="form.ultrafiltration_rate"></el-input>
486
               <el-input v-model="form.ultrafiltration_rate"></el-input>
479
             </el-form-item>
487
             </el-form-item>
480
           </el-col>
488
           </el-col>
481
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24">
489
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26">
482
             <el-form-item label="超滤率(L/h)">
490
             <el-form-item label="超滤率(L/h)">
483
               <el-input v-model="form.ultrafiltration_rate"></el-input>
491
               <el-input v-model="form.ultrafiltration_rate"></el-input>
484
             </el-form-item>
492
             </el-form-item>
486
 
494
 
487
           <el-col
495
           <el-col
488
             :span="8"
496
             :span="8"
489
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24) " >
497
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || org_id == 9555) " >
490
             <el-form-item label="超滤量(ml):">
498
             <el-form-item label="超滤量(ml):">
491
               <el-input v-model="form.ultrafiltration_volume"></el-input>
499
               <el-input v-model="form.ultrafiltration_volume"></el-input>
492
             </el-form-item>
500
             </el-form-item>
494
 
502
 
495
           <el-col
503
           <el-col
496
             :span="8"
504
             :span="8"
497
-            v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24" >
505
+            v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && org_id !=9555" >
498
             <el-form-item label="超滤量(L):">
506
             <el-form-item label="超滤量(L):">
499
               <el-input v-model="form.ultrafiltration_volume"></el-input>
507
               <el-input v-model="form.ultrafiltration_volume"></el-input>
500
             </el-form-item>
508
             </el-form-item>
513
               <el-input v-model="form.dialysate_temperature"></el-input>
521
               <el-input v-model="form.dialysate_temperature"></el-input>
514
             </el-form-item>
522
             </el-form-item>
515
           </el-col>
523
           </el-col>
516
-          <el-col :span="8" v-if="isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20">
524
+          <el-col :span="8" v-if="isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26">
517
             <el-form-item label="置换率(L/h):">
525
             <el-form-item label="置换率(L/h):">
518
               <el-input v-model="form.replacement_rate"></el-input>
526
               <el-input v-model="form.replacement_rate"></el-input>
519
             </el-form-item>
527
             </el-form-item>
520
           </el-col>
528
           </el-col>
521
-          <el-col :span="8" v-if="isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20)">
529
+          <el-col :span="8" v-if="isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26)">
522
             <el-form-item label="置换率(ml/min):">
530
             <el-form-item label="置换率(ml/min):">
523
               <el-input v-model="form.replacement_rate"></el-input>
531
               <el-input v-model="form.replacement_rate"></el-input>
524
             </el-form-item>
532
             </el-form-item>
525
           </el-col>
533
           </el-col>
526
-          <el-col :span="8" v-if=" isShow('置换量') &&  template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20">
534
+          <el-col :span="8" v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26)">
527
             <el-form-item label="置换量(L):">
535
             <el-form-item label="置换量(L):">
528
               <el-input v-model="form.displacement_quantity"></el-input>
536
               <el-input v-model="form.displacement_quantity"></el-input>
529
             </el-form-item>
537
             </el-form-item>
530
           </el-col>
538
           </el-col>
531
-          <el-col :span="8" v-if=" isShow('置换量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20)">
539
+          <el-col :span="8" v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26)">
532
             <el-form-item label="置换量(ml):">
540
             <el-form-item label="置换量(ml):">
533
               <el-input v-model="form.displacement_quantity"></el-input>
541
               <el-input v-model="form.displacement_quantity"></el-input>
534
             </el-form-item>
542
             </el-form-item>
785
   },
793
   },
786
   created() {
794
   created() {
787
     this.template_id = this.$store.getters.xt_user.template_info.template_id
795
     this.template_id = this.$store.getters.xt_user.template_info.template_id
796
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
788
     var date = this.$route.query.date
797
     var date = this.$route.query.date
789
     var patient_id = this.$route.query.patient_id
798
     var patient_id = this.$route.query.patient_id
790
     this.patient_id = patient_id
799
     this.patient_id = patient_id

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

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24"  width="76px"> 超滤量(L) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26" width="50px"> 超滤率 <br />(L/h) </th>
19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
20
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
21
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " width="92px" > 置换率(ml/min) </th>
22
-          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20" width="92px" > 置换率(L/h)  </th>
23
-          <th v-if=" isShow('置换量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " width="92px"  > 置换量(ml)  </th>
24
-          <th v-if=" isShow('置换量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20" width="92px" > 置换量(L) </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26) " width="92px" > 置换率(ml/min) </th>
24
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26" width="92px" > 置换率(L/h)  </th>
25
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26)" width="92px"  > 置换量(ml)  </th>
26
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26)" width="92px" > 置换量(L) </th>
25
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
27
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
26
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
28
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
27
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
29
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
28
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
30
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
29
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24)" width="50px"> 超滤率 <br />(ml/h) </th>
30
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24" width="50px"> 超滤率 <br />(L/h) </th>
31
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
31
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
33
           <th v-if="isShow('处理')" width="92px">处理</th>
33
           <th v-if="isShow('处理')" width="92px">处理</th>
43
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
43
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
44
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
44
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
45
           <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
45
           <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
46
+          <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
46
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
47
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
47
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
48
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
48
           <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "" }} </td>
49
           <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "" }} </td>
51
           <td v-if="isShow('电导度')"> {{ monitor.conductivity ? monitor.conductivity : "" }} </td>
52
           <td v-if="isShow('电导度')"> {{ monitor.conductivity ? monitor.conductivity : "" }} </td>
52
           <th v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity  ? monitor.displacement_flow_quantity : "" }} </th>
53
           <th v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity  ? monitor.displacement_flow_quantity : "" }} </th>
53
           <th v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow  ? monitor.dialysate_flow : "" }} </th>
54
           <th v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow  ? monitor.dialysate_flow : "" }} </th>
54
-          <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
55
           <th v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </th>
55
           <th v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </th>
56
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
56
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
57
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
57
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
83
   },
83
   },
84
   created() {
84
   created() {
85
     this.template_id = this.$store.getters.xt_user.template_info.template_id
85
     this.template_id = this.$store.getters.xt_user.template_info.template_id
86
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
86
   },
87
   },
87
   methods: {
88
   methods: {
88
     parseTime(time, layout) {
89
     parseTime(time, layout) {

+ 10 - 7
src/xt_pages/dialysis/details/index.vue 查看文件

764
     }, 1000*50);
764
     }, 1000*50);
765
   },
765
   },
766
   computed: {
766
   computed: {
767
+    websocket() {
768
+      return this.$store.state.user.websocket;
769
+    },
767
     steps: function() {
770
     steps: function() {
768
       var steps = [
771
       var steps = [
769
         { title: '透析处方', finish: false },
772
         { title: '透析处方', finish: false },
1040
           this.lastDialysisPrescribe = lastDialysisPrescribe
1043
           this.lastDialysisPrescribe = lastDialysisPrescribe
1041
           this.lastDryWeightDislysis = lastDryWeightDislysis
1044
           this.lastDryWeightDislysis = lastDryWeightDislysis
1042
           this.headNurses = headNurses
1045
           this.headNurses = headNurses
1043
-          this.system_prescribe = system_prescribe 
1044
-          
1046
+          this.system_prescribe = system_prescribe
1047
+
1045
 
1048
 
1046
 
1049
 
1047
           this.niprocart_info = []
1050
           this.niprocart_info = []
1304
       this.patient_id = schedual.patient_id
1307
       this.patient_id = schedual.patient_id
1305
       this.date = schedual.schedule_date
1308
       this.date = schedual.schedule_date
1306
       // this.getScheduleDetail();
1309
       // this.getScheduleDetail();
1307
-      // this.getLongAdvice();
1310
+      this.getLongAdvice();
1308
 
1311
 
1309
       var patient_id = schedual.patient_id
1312
       var patient_id = schedual.patient_id
1310
       var date = schedual.schedule_date
1313
       var date = schedual.schedule_date
1653
     websocketSend(data) {
1656
     websocketSend(data) {
1654
       try {
1657
       try {
1655
         this.websocket.send(JSON.stringify(data))
1658
         this.websocket.send(JSON.stringify(data))
1656
-          
1659
+
1657
       } catch (error) {
1660
       } catch (error) {
1658
         this.showError = true;
1661
         this.showError = true;
1659
         this.showIndex = 4;
1662
         this.showIndex = 4;
1739
             arr.push(item.patient_id)
1742
             arr.push(item.patient_id)
1740
           })
1743
           })
1741
           if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
1744
           if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
1742
-            
1745
+
1743
             this.showView = false
1746
             this.showView = false
1744
             this.$router.push({
1747
             this.$router.push({
1745
               path: '/dialysis/details',
1748
               path: '/dialysis/details',
1752
                 showView:false
1755
                 showView:false
1753
               }
1756
               }
1754
             })
1757
             })
1755
-            
1758
+
1756
           }else {
1759
           }else {
1757
-            
1760
+
1758
             this.showView = true
1761
             this.showView = true
1759
             this.$router.push({
1762
             this.$router.push({
1760
               path: '/dialysis/details',
1763
               path: '/dialysis/details',

+ 731 - 0
src/xt_pages/dialysis/dialysisDoctorAdvice.vue 查看文件

1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+          size="small"
7
+          icon="el-icon-printer"
8
+          :disabled="selecting_schs.length == 0"
9
+          @click="batchPrintAction"
10
+          type="primary"
11
+          >打印</el-button>
12
+    </div>
13
+    <div class="app-container">
14
+      <!-- <div class="filter-container">
15
+        <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
16
+        <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17
+      </div>-->
18
+      <div class="cell clearfix">
19
+        <label class="title">
20
+          <span class="name">日期查询:</span>
21
+        </label>
22
+        <el-date-picker
23
+          v-model="time"
24
+          prefix-icon="el-icon-date"
25
+          @change="changeTime"
26
+          :editable="false"
27
+          style="width: 250px;"
28
+          type="date"
29
+          placeholder="选择日期时间"
30
+          align="right"
31
+          format="yyyy-MM-dd"
32
+          value-format="timestamp"
33
+        ></el-date-picker>
34
+
35
+        <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
36
+      </div>
37
+      <div class="cell clearfix">
38
+        <label class="title"> <span class="name">排班班次</span> : </label>
39
+        <div class="time">
40
+          <ul class>
41
+            <li
42
+              :class="item.value == schedulType ? 'active' : ''"
43
+              @click="selectSchedulType(item.value)"
44
+              v-for="item in schedulArr"
45
+              :key="item.value"
46
+            >
47
+              {{ item.label }}
48
+            </li>
49
+          </ul>
50
+        </div>
51
+      </div>
52
+      <div class="cell clearfix">
53
+        <label class="title"> <span class="name">分区</span> : </label>
54
+        <div class="time">
55
+          <ul class>
56
+            <li
57
+              :class="item.id == partitionType ? 'active' : ''"
58
+              @click="selectPartitionType(item.id)"
59
+              v-for="item in partitionArr"
60
+              :key="item.id"
61
+            >
62
+              {{ item.name }}
63
+            </li>
64
+          </ul>
65
+        </div>
66
+      </div>
67
+
68
+      <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
69
+        @selection-change="handleSelectionChange"
70
+        :row-class-name="tableRowClassName"
71
+        :span-method="objectSpanMethod"
72
+        :cell-class-name="adviceNameShow"
73
+        :modal-append-to-body="false">
74
+        <el-table-column type="selection" width="55" align="center"></el-table-column>
75
+        <el-table-column prop="date" label="姓名" align="center" min-width="26px">
76
+          <template slot-scope="scope">
77
+            <span>{{ scope.row.name }}</span>
78
+            <br>
79
+            ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
80
+            <br>
81
+            <span v-if="scope.row.mode_id == 1">(HD)</span>
82
+            <span v-if="scope.row.mode_id == 2">(HDF)</span>
83
+            <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
84
+            <span v-if="scope.row.mode_id == 4">(HP)</span>
85
+            <span v-if="scope.row.mode_id == 5">(HF)</span>
86
+            <span v-if="scope.row.mode_id == 6">(SCUF)</span>
87
+            <span v-if="scope.row.mode_id == 7">(IUF)</span>
88
+            <span v-if="scope.row.mode_id == 8">(HFHD)</span>
89
+            <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
90
+            <span v-if="scope.row.mode_id == 10">(PHF)</span>
91
+            <span v-if="scope.row.mode_id == 11">(HFR)</span>
92
+            <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
93
+            <span v-if="scope.row.mode_id == 13">(CRRT)</span>
94
+            <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
95
+          </template>
96
+        </el-table-column>
97
+        <el-table-column prop="date" label="透析器" align="center" min-width="26px">
98
+          <template slot-scope="scope">
99
+            <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
100
+          </template>
101
+        </el-table-column>
102
+        <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
103
+          <template slot-scope="scope">
104
+            <span>
105
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
106
+            </span>
107
+          </template>
108
+        </el-table-column>
109
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
110
+          <template slot-scope="scope">
111
+            <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
112
+              <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
113
+                {{ getAdviceContent(scope.row, 1)}}
114
+              </span>
115
+            </el-dropdown>
116
+
117
+            <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
118
+              <span class="el-dropdown-link">
119
+                &emsp;{{ getAdviceContent(scope.row, 2)}}
120
+              </span>
121
+            </el-dropdown>
122
+          </template>
123
+        </el-table-column>
124
+        <el-table-column
125
+          prop="start_time"
126
+          align="center"
127
+          min-width="30px"
128
+          label="执行时间"
129
+          sortable
130
+        >
131
+          <template slot-scope="scope">
132
+            <span v-if="scope.row.execution_time != 0">
133
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
134
+            </span>
135
+            <span v-else></span>
136
+          </template>
137
+        </el-table-column>
138
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
139
+          <template slot-scope="scope">
140
+            <span v-if="scope.row.parent_id == 0">
141
+              {{getXuserName(scope.row.execution_staff)}}
142
+            </span>
143
+            <span v-else></span>
144
+          </template>
145
+        </el-table-column>
146
+        <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
147
+          <template slot-scope="scope">
148
+            <span v-if="scope.row.parent_id == 0">
149
+              {{getXuserName(scope.row.checker)}}
150
+            </span>
151
+            <span v-else></span>
152
+          </template>
153
+        </el-table-column>
154
+        <el-table-column
155
+          prop="check_time"
156
+          align="center"
157
+          min-width="30px"
158
+          label="校对时间"
159
+          sortable
160
+        >
161
+          <template slot-scope="scope">
162
+            <span v-if="scope.row.check_time != 0">
163
+              {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
164
+            </span>
165
+            <span v-else></span>
166
+          </template>
167
+        </el-table-column>
168
+        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
169
+          <template slot-scope="scope">
170
+            <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
171
+          </template>
172
+        </el-table-column>
173
+        <el-table-column
174
+          prop="created_time"
175
+          align="center"
176
+          min-width="30px"
177
+          label="校对时间"
178
+          sortable
179
+        >
180
+          <template slot-scope="scope">
181
+            <span v-if="scope.row.created_time != 0">
182
+              {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
183
+            </span>
184
+            <span v-else></span>
185
+          </template>
186
+        </el-table-column>
187
+        
188
+
189
+        
190
+        
191
+        <!-- <el-table-column
192
+          v-if="template_id != 6"
193
+          prop="checker"
194
+          min-width="30px"
195
+          align="center"
196
+          label="核对人员"
197
+        >
198
+          <template slot-scope="scope">
199
+            <span v-if="scope.row.parent_id == 0">
200
+              {{getXuserName(scope.row.checker)}}
201
+            </span>
202
+            <span v-else></span>
203
+          </template>
204
+        </el-table-column> -->
205
+      </el-table>
206
+    </div>
207
+  </div>
208
+</template>
209
+
210
+<script>
211
+const moment = require('moment')
212
+import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
213
+import { parseTime } from "@/utils";
214
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
215
+import { getPrintTemplate } from "@/api/data";
216
+import { getSchedualDoctors } from '@/api/advice'
217
+
218
+export default {
219
+  name: "Patient",
220
+  data() {
221
+    return {
222
+      crumbs: [
223
+        { path: false, name: "透析管理" },
224
+        { path: false, name: "透析监测" }
225
+      ],
226
+      loading: false,
227
+      time: "",
228
+
229
+      search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
230
+      patient_search_keyword: "",
231
+
232
+      SchedualPatientsTableData: [],
233
+      active: true,
234
+      schedulType: 0,
235
+      schedulArr: [
236
+        { value: 0, label: "全部" },
237
+        { value: 1, label: "上午" },
238
+        { value: 2, label: "下午" },
239
+        { value: 3, label: "晚上" }
240
+      ],
241
+      template_id: 0,
242
+
243
+      partitionType: 0,
244
+
245
+      total: 0,
246
+      listQuery: {
247
+        page: 1,
248
+        limit: 10,
249
+        schedul_type: 0,
250
+        partition_type: 0,
251
+        schedul_time: "",
252
+        keywords: ""
253
+      },
254
+      selecting_schs: [],
255
+      partitionArr: [],
256
+
257
+      scheduleMap:[]
258
+    };
259
+  },
260
+  created() {
261
+    var date = new Date();
262
+    this.time = date;
263
+    var year = date.getFullYear();
264
+    var month = date.getMonth() + 1;
265
+    var day = date.getDate();
266
+    if (month < 10) {
267
+      month = "0" + month;
268
+    }
269
+    if (day < 10) {
270
+      day = "0" + day;
271
+    }
272
+    var nowDate = year + "-" + month + "-" + day;
273
+    var date = new Date(nowDate + " 00:00:00");
274
+    this.listQuery.schedul_time = date.getTime();
275
+    this.getAllZone();
276
+    this.getTemplateInfo();
277
+    this.requestSchedualDoctors(this.time)
278
+    // this.template_id = this.$store.getters.xt_user.template_info.template_id;
279
+  },
280
+  methods: {
281
+    getTemplateInfo() {
282
+      getPrintTemplate().then(response => {
283
+        if (response.data.state == 0) {
284
+          this.$message.error(response.data.msg);
285
+          return false;
286
+        } else {
287
+          var template = response.data.data.template;
288
+          this.template_id = template.template_id;
289
+        }
290
+      });
291
+    },
292
+    clickCurrent(val) {
293
+      console.log(val);
294
+      this.$router.push({
295
+        path: "/dialysis/details",
296
+        query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
297
+      });
298
+    },
299
+    handleSelectionChange(val) {
300
+      this.selecting_schs = val;
301
+    },
302
+
303
+    selectSchedulType(scheduleType) {
304
+      // alert(scheduleType);/
305
+      this.schedulType = scheduleType;
306
+      this.listQuery.schedul_type = scheduleType;
307
+      this.requestSchedualDoctors();
308
+    },
309
+    selectPartitionType(partitionType) {
310
+      this.partitionType = partitionType;
311
+      this.listQuery.partition_type = partitionType;
312
+      this.requestSchedualDoctors();
313
+    },
314
+
315
+    changeTime() {
316
+      this.listQuery.schedul_time = this.time;
317
+      this.requestSchedualDoctors(this.time)
318
+    },
319
+    getAllZone: function() {
320
+      GetAllZone().then(response => {
321
+        if (response.data.state == 0) {
322
+          this.$message.error(response.data.msg);
323
+          return false;
324
+        } else {
325
+          this.partitionArr = response.data.data.zone;
326
+          this.partitionArr.unshift({ id: 0, name: "全部" });
327
+        }
328
+      });
329
+    },
330
+    requestSchedualDoctors (time) {
331
+        let newTime =  moment(time).format('YYYY-MM-DD')
332
+        getSchedualDoctors({
333
+        date: newTime,
334
+        patient_type: 0,
335
+        advice_type: 2
336
+        }).then(rs => {
337
+        var resp = rs.data
338
+        if (resp.state == 1) {
339
+            this.admin_users = resp.data.adminUser
340
+            var schedules = resp.data.scheduals
341
+            // console.log("schedules",schedules)
342
+            let arr = []
343
+            let newArr = []
344
+            let newSchedules = []
345
+            schedules.map(item => {
346
+                item.doctor_advice.map(it =>{
347
+                    it.name = item.patient.name
348
+                    it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
349
+                    it.schedule_type = item.schedule_type
350
+                    it.zoneId = item.device_number.zone.id
351
+                    it.dialysis_no = item.patient.dialysis_no
352
+                    it.mode_id = item.mode_id
353
+                    arr.push(it)
354
+                })
355
+            })
356
+            if(this.schedulType == 0){
357
+                newSchedules = arr
358
+            }else{
359
+                arr.map(item => {
360
+                    if (item.schedule_type == this.schedulType) {
361
+                        newSchedules.push(item)
362
+                    }
363
+                })
364
+            }
365
+            
366
+            
367
+            if(this.partitionType == 0){
368
+                this.scheduleMap = newSchedules
369
+            }else {
370
+                let a = []
371
+                arr.map(item => {
372
+                    if(this.partitionType == item.zoneId){
373
+                        a.push(item)
374
+                    }
375
+                })
376
+                this.scheduleMap = a
377
+            }
378
+            this.scheduleMap.map(ele => {
379
+                let firstIndex = this.scheduleMap.findIndex(item => {
380
+                  return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
381
+                })
382
+                if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
383
+                    newArr.push({
384
+                    length: this.scheduleMap.filter(item => {
385
+                        return item.patient_id === ele.patient_id    //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
386
+                    }).length,
387
+                    firstIndex: firstIndex    // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
388
+                    })
389
+                }
390
+            })
391
+            this.indexInfoList = newArr
392
+        }
393
+        })
394
+    },
395
+    getValue: function(val) {
396
+      if (val != undefined) {
397
+        return val.value;
398
+      } else {
399
+        return "";
400
+      }
401
+    },
402
+
403
+    handleCurrentChange(val) {
404
+      this.listQuery.page = val;
405
+      this.getSchedualPatientList();
406
+    },
407
+    changeSearchMode: function() {
408
+      if (this.search_mode == 1) {
409
+        this.search_mode = 2;
410
+      } else {
411
+        this.search_mode = 1;
412
+      }
413
+    },
414
+    searchPatientAction: function() {
415
+      this.listQuery.keywords = this.patient_search_keyword;
416
+      console.log(this.patient_search_keyword);
417
+      if (this.patient_search_keyword.length == 0) {
418
+        return;
419
+      }
420
+      this.getSchedualPatientList();
421
+    },
422
+    handleSizeChange(val) {
423
+      this.listQuery.limit = val;
424
+      this.getSchedualPatientList();
425
+    },
426
+    batchPrintAction: function() {
427
+      if (this.selecting_schs.length === 0) {
428
+        this.$message.error("请至少选择一条需要打印的内容");
429
+        return false;
430
+      }
431
+      // 模板ID为6
432
+      var sch_ids = [];
433
+
434
+      for (let index = 0; index < this.selecting_schs.length; index++) {
435
+        sch_ids.push(this.selecting_schs[index].patient_id);
436
+      }
437
+    //   console.log("sch_ids",sch_ids)
438
+      this.$store.dispatch("SetAdviceIDs", sch_ids);
439
+      this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime()} });
440
+
441
+    },
442
+    batchPrintActionOne: function() {
443
+      if (this.selecting_schs.length === 0) {
444
+        this.$message.error("请至少选择一条需要打印的内容");
445
+        return false;
446
+      }
447
+      var sch_ids = [];
448
+      for (let index = 0; index < this.selecting_schs.length; index++) {
449
+        sch_ids.push(this.selecting_schs[index].sch_id);
450
+      }
451
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
452
+      if (this.template_id == 2 || this.template_id == 0) {
453
+        this.$router.push({ path: "/dialysis/print/batch/otherone" });
454
+      } else if (this.template_id == 1) {
455
+        this.$router.push({ path: "/dialysis/print/batch" });
456
+      } else if (this.template_id == 5) {
457
+        this.$router.push({ path: "/dialysis/print/batch/fiveone" });
458
+      } else if (this.template_id == 22) {
459
+        this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
460
+      }
461
+    },
462
+    batchPrintActionTwo: function() {
463
+      if (this.selecting_schs.length === 0) {
464
+        this.$message.error("请至少选择一条需要打印的内容");
465
+        return false;
466
+      }
467
+      var sch_ids = [];
468
+      for (let index = 0; index < this.selecting_schs.length; index++) {
469
+        sch_ids.push(this.selecting_schs[index].sch_id);
470
+      }
471
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
472
+      if (this.template_id == 2 || this.template_id == 0) {
473
+        this.$router.push({ path: "/dialysis/print/batch/othertwo" });
474
+      } else if (this.template_id == 1) {
475
+        this.$router.push({ path: "/dialysis/print/batch" });
476
+      } else if (this.template_id == 5) {
477
+        this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
478
+      } else if (this.template_id == 22) {
479
+        this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
480
+      }
481
+    },
482
+    compare (property) {
483
+      return function (a, b) {
484
+        var value1 = a[property]
485
+        var value2 = b[property]
486
+        return value1 - value2
487
+      }
488
+    },
489
+    tableRowClassName({ row, rowIndex }) {
490
+        // if (row.stop_state == 1 || row.execution_state == 1) {
491
+        //     return 'stoped-row';
492
+        // }
493
+        // return 'success-rows'
494
+        // row.index = rowIndex
495
+        // const arr = this.hoverOrderArr
496
+        // for (let i = 0; i < arr.length; i++) {
497
+        //   if (rowIndex == arr[i]) {
498
+        //     return 'success-row'
499
+        //   }
500
+        // }
501
+    },
502
+    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
503
+        if (columnIndex === 0) {
504
+            let index = this.indexInfoList.findIndex(item => {  //遍历数组
505
+                return item.firstIndex === rowIndex
506
+            })
507
+            if (index > -1) {
508
+                return {
509
+                    rowspan: this.indexInfoList[index].length,
510
+                    colspan: 1
511
+                }
512
+            } else {
513
+                return {
514
+                    rowspan: 0,
515
+                    colspan: 0
516
+                }
517
+            }
518
+        }
519
+        
520
+        if (columnIndex === 1) {
521
+            let index = this.indexInfoList.findIndex(item => {  //遍历数组
522
+                return item.firstIndex === rowIndex
523
+            })
524
+            if (index > -1) {
525
+                return {
526
+                    rowspan: this.indexInfoList[index].length,
527
+                    colspan: 1
528
+                }
529
+            } else {
530
+                return {
531
+                    rowspan: 0,
532
+                    colspan: 0
533
+                }
534
+            }
535
+        }
536
+        if (columnIndex === 2) {
537
+            let index = this.indexInfoList.findIndex(item => {  //遍历数组
538
+                return item.firstIndex === rowIndex
539
+            })
540
+            if (index > -1) {
541
+                return {
542
+                    rowspan: this.indexInfoList[index].length,
543
+                    colspan: 1
544
+                }
545
+            } else {
546
+                return {
547
+                    rowspan: 0,
548
+                    colspan: 0
549
+                }
550
+            }
551
+        }
552
+    },
553
+    adviceNameShow({ row, column, rowIndex, columnIndex }) {
554
+        if (columnIndex == 2) {
555
+          return 'dialysisadvicenamedisplay'
556
+        } else {
557
+          return ''
558
+        }
559
+    },
560
+    getXuserName(id) {
561
+        if (id <= 0) {
562
+          return ''
563
+        }
564
+        var name = ''
565
+        if (
566
+          this.admin_users == null ||
567
+          typeof this.admin_users.length === 'undefined'
568
+        ) {
569
+          return name
570
+        }
571
+        var leng = this.admin_users.length
572
+        if (leng == 0) {
573
+          return name
574
+        }
575
+        for (let index = 0; index < leng; index++) {
576
+          if (this.admin_users[index].id == id) {
577
+            name = this.admin_users[index].name
578
+            break
579
+          }
580
+        }
581
+        return name
582
+    },
583
+    getAdviceContent(row, isChild) {
584
+        let tempSingleDoseDesc = ''
585
+        let tempDrugSpecDesc = ''
586
+        let tempPrescribingNumberDesc = ''
587
+
588
+        if (row.prescribing_number) {
589
+          tempPrescribingNumberDesc =
590
+            row.prescribing_number + '' + row.prescribing_number_unit
591
+        }
592
+
593
+        if (row.single_dose) {
594
+          if (this.template_id != 6) {
595
+            tempSingleDoseDesc =
596
+              ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
597
+          } else {
598
+            tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
599
+          }
600
+        }
601
+
602
+        if (row.advice_desc) {
603
+          tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
604
+        }
605
+
606
+        if (isChild == 1) {
607
+          // 不是子药
608
+
609
+          return (
610
+            row.advice_name +
611
+            tempDrugSpecDesc +
612
+            ' ' +
613
+            tempPrescribingNumberDesc +
614
+            tempSingleDoseDesc +
615
+            ' ' +
616
+            row.delivery_way +
617
+            ' ' +
618
+            row.execution_frequency
619
+          )
620
+        } else {
621
+          // 是子药
622
+          return (
623
+            row.advice_name +
624
+            tempDrugSpecDesc +
625
+            ' ' +
626
+            tempPrescribingNumberDesc +
627
+            tempSingleDoseDesc
628
+          )
629
+        }
630
+    },
631
+    handleSelectionChange(val){
632
+        // console.log('val',val)
633
+        this.selecting_schs = val;
634
+    }
635
+  },
636
+  components: {
637
+    BreadCrumb
638
+  }
639
+};
640
+</script>
641
+
642
+<style rel="stylesheet/scss" lang="scss" scoped>
643
+.app-container {
644
+  //   margin: 20px;
645
+  font-size: 15px;
646
+  .filter-container {
647
+    padding-bottom: 5px;
648
+  }
649
+  .cqd-dataTitle {
650
+    color: #303133;
651
+    font-size: 14px;
652
+    border-bottom: 2px #e4e7ed solid;
653
+    height: 36px;
654
+    line-height: 36px;
655
+    margin: 0 0 25px 0;
656
+    position: relative;
657
+  }
658
+  .cqd-dataTitle::before {
659
+    position: absolute;
660
+    left: 0;
661
+    bottom: -2px;
662
+    content: "";
663
+    width: 42px;
664
+    height: 2px;
665
+    background: #409eff;
666
+  }
667
+  .search-component {
668
+    width: 500px;
669
+    .searchBox {
670
+      width: 300px;
671
+      height: 36px;
672
+      line-height: 36px;
673
+      padding-left: 15px;
674
+      border: 1px #dcdfe6 solid;
675
+      border-right: none;
676
+      outline: none;
677
+      float: left;
678
+      border-radius: 6px 0 0 6px;
679
+      font-size: 14px;
680
+      color: #333;
681
+      background: #fff;
682
+      box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
683
+    }
684
+    .searchBtn {
685
+      background-color: #409eff;
686
+      color: #fff;
687
+      font-size: 15px;
688
+      text-align: center;
689
+      height: 36px;
690
+      line-height: 36px;
691
+      float: left;
692
+      outline: none;
693
+      width: 70px;
694
+      border: none;
695
+      border-radius: 0 6px 6px 0;
696
+      font-family: "Microsoft Yahei";
697
+      cursor: pointer;
698
+    }
699
+  }
700
+  .amount {
701
+    font-weight: normal;
702
+    padding: 10px 0 0 0;
703
+    color: #606266;
704
+    font-size: 14px;
705
+    span {
706
+      color: #ef2525;
707
+      font-family: "Arial";
708
+      padding: 0 2px;
709
+    }
710
+  }
711
+}
712
+.el-table td,
713
+.el-table th.is-leaf,
714
+.el-table--border,
715
+.el-table--group {
716
+  border-color: #d0d3da;
717
+}
718
+.el-table--border::after,
719
+.el-table--group::after,
720
+.el-table::before {
721
+  background-color: #d0d3da;
722
+}
723
+.el-checkbox__inner::after {
724
+  height: 10px;
725
+  left: 7px;
726
+}
727
+.el-checkbox__inner {
728
+  width: 20px;
729
+  height: 20px;
730
+}
731
+</style>

+ 109 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

354
           >打印</el-button
354
           >打印</el-button
355
         >
355
         >
356
       </template>
356
       </template>
357
+      <template v-if="org_template_info.template_id == 26">
358
+        <el-button
359
+          :loading="loading"
360
+          size="small"
361
+          icon="el-icon-printer"
362
+          @click="printThisPage"
363
+          type="primary"
364
+          >打印</el-button
365
+        >
366
+      </template>
367
+      <template
368
+        v-if="
369
+          org_template_info.template_id == 27 ||
370
+            org_template_info.template_id == 0
371
+        "
372
+      >
373
+      <div>
374
+          <el-button
375
+            :loading="loading"
376
+            size="small"
377
+            icon="el-icon-printer"
378
+            @click="printThisPage"
379
+            type="primary"
380
+            >打印全部</el-button
381
+          >
382
+          <el-button
383
+            :loading="loading"
384
+            size="small"
385
+            icon="el-icon-printer"
386
+            @click="printThisOnePage"
387
+            type="primary"
388
+            >打印纪录单</el-button
389
+          >
390
+          <el-button
391
+            :loading="loading"
392
+            size="small"
393
+            icon="el-icon-printer"
394
+            @click="printThisTwoPage"
395
+            type="primary"
396
+            >打印医嘱单</el-button
397
+          >
398
+        </div>
399
+      </template>
400
+      <template v-if="org_template_info.template_id == 28">
401
+        <el-button
402
+          :loading="loading"
403
+          size="small"
404
+          icon="el-icon-printer"
405
+          @click="printThisPage"
406
+          type="primary"
407
+          >打印</el-button
408
+        >
409
+      </template>
357
     </div>
410
     </div>
358
     <div class="app-container" style="min-height:0;">
411
     <div class="app-container" style="min-height:0;">
359
       <!--<div class="order-print-btn"-->
412
       <!--<div class="order-print-btn"-->
559
             v-if="org_template_info.template_id == 25"
612
             v-if="org_template_info.template_id == 25"
560
           >
613
           >
561
           </DialysisPrintOrderTwentyFive>
614
           </DialysisPrintOrderTwentyFive>
615
+          <DialysisPrintOrderTwentySix
616
+            v-bind:childResponse="childResponse"
617
+            v-if="org_template_info.template_id == 26"
618
+          >
619
+          </DialysisPrintOrderTwentySix>
620
+          <DialysisPrintOrderTwentySeven
621
+            v-bind:childResponse="childResponse"
622
+            v-if="org_template_info.template_id == 27"
623
+          >
624
+          </DialysisPrintOrderTwentySeven>
625
+          <DialysisPrintOrderTwentyEight
626
+            v-bind:childResponse="childResponse"
627
+            v-if="org_template_info.template_id == 28"
628
+          >
629
+          </DialysisPrintOrderTwentyEight>
562
         </div>
630
         </div>
563
       </el-container>
631
       </el-container>
564
     </div>
632
     </div>
603
 import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
671
 import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
604
 import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
672
 import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
605
 import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
673
 import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
674
+import DialysisPrintOrderTwentySix from "./template/DialysisPrintOrderTwentySix";
675
+import DialysisPrintOrderTwentySeven from "./template/DialysisPrintOrderTwentySeven";
676
+import DialysisPrintOrderTwentyEight from "./template/DialysisPrintOrderTwentyEight";
606
 export default {
677
 export default {
607
   name: "dialysisPrintOrder",
678
   name: "dialysisPrintOrder",
608
   components: {
679
   components: {
680
+    DialysisPrintOrderTwentyEight,
681
+    DialysisPrintOrderTwentySeven,
682
+    DialysisPrintOrderTwentySix,
609
     DialysisPrintOrderTwentyFive,
683
     DialysisPrintOrderTwentyFive,
610
     DialysisPrintOrderTwentyFour,
684
     DialysisPrintOrderTwentyFour,
611
     DialysisPrintOrderTwentyThree,
685
     DialysisPrintOrderTwentyThree,
973
           style: style5,
1047
           style: style5,
974
           scanStyles: false
1048
           scanStyles: false
975
         });
1049
         });
1050
+      } else if (this.org_template_info.template_id == 26) {
1051
+        printJS({
1052
+          printable: "dialysis-print-box",
1053
+          type: "html",
1054
+          style: style,
1055
+          scanStyles: false
1056
+        });
1057
+      } else if (this.org_template_info.template_id == 27) {
1058
+        printJS({
1059
+          printable: "dialysis-print-box",
1060
+          type: "html",
1061
+          style: style,
1062
+          scanStyles: false
1063
+        });
1064
+      } else if (this.org_template_info.template_id == 28) {
1065
+        printJS({
1066
+          printable: "dialysis-print-box",
1067
+          type: "html",
1068
+          style: style5,
1069
+          scanStyles: false
1070
+        });
976
       }
1071
       }
977
     },
1072
     },
978
     printThisOnePage() {
1073
     printThisOnePage() {
1017
           style: style,
1112
           style: style,
1018
           scanStyles: false
1113
           scanStyles: false
1019
         });
1114
         });
1115
+      } else if(this.org_template_info.template_id == 27){
1116
+        printJS({
1117
+          printable: "new-dialysis-1",
1118
+          type: "html",
1119
+          style: style,
1120
+          scanStyles: false
1121
+        });
1020
       }
1122
       }
1021
     },
1123
     },
1022
     printThisTwoPage() {
1124
     printThisTwoPage() {
1061
           style: style,
1163
           style: style,
1062
           scanStyles: false
1164
           scanStyles: false
1063
         });
1165
         });
1166
+      } else if(this.org_template_info.template_id == 27){
1167
+        printJS({
1168
+          printable: "new-dialysis-2",
1169
+          type: "html",
1170
+          style: style,
1171
+          scanStyles: false
1172
+        });
1064
       }
1173
       }
1065
     },
1174
     },
1066
     getNumber() {
1175
     getNumber() {

+ 519 - 0
src/xt_pages/dialysis/doctorAdvicePrint.vue 查看文件

1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;">
12
+            <div id="dialysisTable">
13
+                <div class="order_title_panl">
14
+                    <span class="main_title">透析医嘱</span>
15
+                </div>
16
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
17
+                <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
18
+                    <tr>
19
+                    <th width="40px">姓名</th>
20
+                    <th width="40px">透析器</th>
21
+                    <!-- <th width="50px">类型</th> -->
22
+                    <th width="50px">开始时间</th>
23
+                    <th width="100px">医嘱内容</th>
24
+                    <th width="50px">执行时间</th>
25
+                    <th width="50px">执行护士</th>
26
+                    <th width="50px">校对护士</th>
27
+                    <th width="50px">校对时间</th>
28
+                    <th width="50px">开嘱医生</th>
29
+                    <th width="50px">开嘱时间</th>
30
+                    </tr>
31
+                    <template v-for="(schedules, zone_name, index) in scheduleMap">
32
+                    <tr :key="index">
33
+                        <td>{{ zone_name }}</td>
34
+                        <!-- <td></td> -->
35
+                        <td></td>
36
+                        <td></td>
37
+                        <td></td>
38
+                        <td></td>
39
+                        <td></td>
40
+                        <td></td>
41
+                        <td></td>
42
+                        <td></td>
43
+                        <td></td>
44
+                    </tr>
45
+                    <template v-for="schedule in schedules">
46
+                        <template v-for="(group, group_index) in schedule.new_advice">
47
+                        <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
48
+                            <td
49
+                            v-if="advice_index == 0"
50
+                            :rowspan="group.advices.length"
51
+                            >{{ advice.parent_id == 0 ? schedule.patient.name : "" }}
52
+                            <br>
53
+                            ({{ advice.parent_id == 0 ? schedule.dialysis_no : ""}})
54
+                            <br>
55
+                            <span v-if="schedule.mode_id == 1">(HD)</span>
56
+                            <span v-if="schedule.mode_id == 2">(HDF)</span>
57
+                            <span v-if="schedule.mode_id == 3">(HD+HP)</span>
58
+                            <span v-if="schedule.mode_id == 4">(HP)</span>
59
+                            <span v-if="schedule.mode_id == 5">(HF)</span>
60
+                            <span v-if="schedule.mode_id == 6">(SCUF)</span>
61
+                            <span v-if="schedule.mode_id == 7">(IUF)</span>
62
+                            <span v-if="schedule.mode_id == 8">(HFHD)</span>
63
+                            <span v-if="schedule.mode_id == 9">(HFHD+HP)</span>
64
+                            <span v-if="schedule.mode_id == 10">(PHF)</span>
65
+                            <span v-if="schedule.mode_id == 11">(HFR)</span>
66
+                            <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
67
+                            <span v-if="schedule.mode_id == 13">(CRRT)</span>
68
+                            <span v-if="schedule.mode_id == 14">(腹水回输)</span>
69
+                                
70
+                            </td>
71
+                            <td v-if="advice_index == 0" :rowspan="group.advices.length">
72
+                            {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
73
+                            </td>
74
+                            <!-- <td
75
+                            v-if="advice_index == 0"
76
+                            :rowspan="group.advices.length"
77
+                            >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>-->
78
+                            <td v-if="advice_index == 0" :rowspan="group.advices.length">
79
+                            {{
80
+                            advice.parent_id == 0
81
+                            ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
82
+                            : ""
83
+                            }}
84
+                            </td>
85
+                            <td
86
+                            :class="
87
+                                advice.parent_id == 0
88
+                                ? 'advice_content'
89
+                                : 'subadvice_content'
90
+                            "
91
+                            >
92
+                            <span>{{ advice.advice_name }}</span>
93
+                            <span>{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span>
94
+                            <span v-if="advice.prescribing_number">
95
+                                {{ advice.prescribing_number
96
+                                }}{{ advice.prescribing_number_unit }}
97
+                            </span>
98
+                            <span v-if="advice.single_dose">
99
+                                单次用量 {{ advice.single_dose
100
+                                }}{{ advice.single_dose_unit }}
101
+                            </span>
102
+                            <span>{{ advice.delivery_way }}</span>
103
+                            <span>{{ advice.execution_frequency }}</span>
104
+                            <span
105
+                                v-if="advice.parent_id == 0 && advice.remark.length > 0"
106
+                            >({{ advice.remark }})</span>
107
+                            </td>
108
+                            <td>{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}</td>
109
+                            <td>{{ getName(advice.execution_staff) }}</td>
110
+                            <td>{{ getName(advice.checker) }}</td>
111
+                            <td>{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}</td>
112
+                            <td>{{ getName(advice.advice_doctor) }}</td>
113
+                            <td>{{ parseTime(advice.created_time, "{m}-{d} {h}:{i}") }}</td>
114
+                        </tr>
115
+                        </template>
116
+                    </template>
117
+                    </template>
118
+                </table>
119
+            </div>
120
+        </div>
121
+    </div>
122
+</template>
123
+
124
+<script>
125
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
126
+import { getSchedualDoctors } from '@/api/advice'
127
+import { parseTime } from '@/utils'
128
+import print from 'print-js'
129
+const moment = require('moment')
130
+export default {
131
+    components:{
132
+        BreadCrumb
133
+    },
134
+    data(){
135
+        return{
136
+            crumbs: [
137
+                { path: false, name: '耗材药品' },
138
+                { path: false, name: '打印' }
139
+            ],
140
+            tableData:[],
141
+            start_time:"",
142
+            end_time:"",
143
+            print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
144
+
145
+            zone_selected: 0,
146
+            scheduleMap:[],
147
+            time:''
148
+        }
149
+    },
150
+    methods:{
151
+        printAction: function() {
152
+            const style = '@media print { .dialysisTable{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 10px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 12px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 15px 5px !important;} }'
153
+
154
+            printJS({
155
+            printable: 'dialysisTable',
156
+            type: 'html',
157
+            documentTitle: '  ',
158
+            style: style,
159
+            scanStyles: false
160
+            })
161
+        },
162
+        requestSchedualDoctors (time) {
163
+            let newTime =  moment(time).format('YYYY-MM-DD')
164
+            getSchedualDoctors({
165
+            date: newTime,
166
+            patient_type: 0,
167
+            advice_type: 2
168
+            }).then(rs => {
169
+                var resp = rs.data
170
+                if (resp.state == 1) {
171
+                this.admin_user = resp.data.adminUser
172
+                var schedulesArr = resp.data.scheduals
173
+                let schedules = []
174
+                var ids = this.$store.getters.temp_params.advice_ids
175
+                console.log('ids',ids)
176
+                schedulesArr.map(item => {
177
+                    if(ids.indexOf(item.patient_id) > -1){
178
+                        schedules.push(item)
179
+                    }
180
+                    
181
+                })
182
+                // console.log("schedules",schedules)
183
+                for (let i = 0; i < schedules.length; i++) {
184
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
185
+                }
186
+                // console.log('schedules', schedules)
187
+
188
+                var arr = []
189
+                for (let j = 0; j < schedules.length; j++) {
190
+                    arr.push(schedules[j].dialysis_no)
191
+                }
192
+                arr.sort(function (a, b) {
193
+                    return a - b
194
+                })
195
+                // console.log('arr', arr)
196
+
197
+                var arrTwo = []
198
+                for (let i = 0; i < arr.length; i++) {
199
+                    for (let j = 0; j < schedules.length; j++) {
200
+                    if (arr[i] == schedules[j].dialysis_no) {
201
+                        arrTwo.push(schedules[j])
202
+                    }
203
+                    }
204
+                }
205
+
206
+                arrTwo.map((item, index) => {
207
+                    // console.log(item);
208
+                    // item.doctor_advice.map((items, i) => {
209
+                    //   console.log(items);
210
+                    // });
211
+                    item.doctor_advice.sort(this.compare('start_time'))
212
+                })
213
+                // console.log('arrTwo', arrTwo)
214
+
215
+                const res = new Map()
216
+                let a = arrTwo.filter(
217
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
218
+                )
219
+
220
+                // console.log('a', a)
221
+
222
+                schedules = a
223
+                var zoneMap = {}
224
+                var scheduleMap = {}
225
+                for (let index = 0; index < schedules.length; index++) {
226
+                    const schedule = schedules[index]
227
+                    if (schedule.doctor_advice.length == 0) {
228
+                    continue
229
+                    }
230
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
231
+                    scheduleMap[schedule.device_number.zone.name] = []
232
+                    }
233
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
234
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
235
+                    zoneMap[schedule.device_number.zone.name] =
236
+                        schedule.device_number.zone
237
+                    }
238
+                }
239
+
240
+                var zones = []
241
+                zones.push({ value: 0, text: '全部分区' })
242
+                for (var zoneName in zoneMap) {
243
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
244
+                }
245
+
246
+                zones = zones.sort(function (a, b) {
247
+                    return a.value > b.value
248
+                })
249
+                this.zones = zones
250
+                for (var key in scheduleMap) {
251
+                    let mapArr = scheduleMap[key]
252
+                    for (let i = 0; i < mapArr.length; i++) {
253
+                    mapArr[i]['new_advice'] = []
254
+                    }
255
+                }
256
+
257
+                for (var key in scheduleMap) {
258
+                    let mapArr = scheduleMap[key]
259
+                    for (let i = 0; i < mapArr.length; i++) {
260
+                    var maps = mapArr[i]
261
+                    var resp_advices = maps.doctor_advice
262
+                    if (resp_advices.length > 0) {
263
+                        var newGroupObject = function () {
264
+                        return Object.assign(
265
+                            {},
266
+                            {
267
+                            group_no: 0,
268
+                            advices: []
269
+                            }
270
+                        )
271
+                        }
272
+                        var initGroupBlock = function (group, advice) {
273
+                        group.group_no = advice.groupno
274
+                        }
275
+
276
+                        var advice_groups = []
277
+                        var group = newGroupObject()
278
+                        for (let index = 0; index < resp_advices.length; index++) {
279
+                        const advice = resp_advices[index]
280
+                        if (advice.groupno == 0) {
281
+                            // 老版本的医嘱
282
+                            if (advice.parent_id > 0) {
283
+                            if (advice_groups.length > 0) {
284
+                                var parent_group = advice_groups[advice_groups.length - 1]
285
+                                if (parent_group.advices.length > 0) {
286
+                                if (parent_group.advices[0].id == advice.parent_id) {
287
+                                    parent_group.advices.push(advice)
288
+                                }
289
+                                }
290
+                            }
291
+                            continue
292
+                            } else {
293
+                            if (group.group_no > 0) {
294
+                                advice_groups.push(group)
295
+                                group = newGroupObject()
296
+                            }
297
+
298
+                            initGroupBlock(group, advice)
299
+                            group.advices.push(advice)
300
+                            advice_groups.push(group)
301
+                            group = newGroupObject()
302
+                            continue
303
+                            }
304
+                        } else {
305
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
306
+                            advice_groups.push(group)
307
+                            group = newGroupObject()
308
+                            }
309
+                            if (group.group_no == 0) {
310
+                            initGroupBlock(group, advice)
311
+                            }
312
+                            if (group.group_no == advice.groupno) {
313
+                            group.advices.push(advice)
314
+                            }
315
+                        }
316
+                        }
317
+                        if (group.group_no > 0) {
318
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
319
+                        advice_groups.push(group)
320
+                        }
321
+                        advice_groups = advice_groups
322
+                    } else {
323
+                        advice_groups = []
324
+                    }
325
+                    maps.new_advice = advice_groups
326
+                    }
327
+                }
328
+                
329
+
330
+                this.scheduleMap = scheduleMap
331
+                // console.log(9999999999,this.scheduleMap)
332
+
333
+                
334
+                }
335
+            })
336
+        },
337
+        compare (property) {
338
+            return function (a, b) {
339
+                var value1 = a[property]
340
+                var value2 = b[property]
341
+                return value1 - value2
342
+            }
343
+        },
344
+        parseTime: function (time, layout) {
345
+            if (time == 0) {
346
+                return ''
347
+            }
348
+            return parseTime(time, layout)
349
+        },
350
+        getName (val) {
351
+            for (let i = 0; i < this.admin_user.length; i++) {
352
+                if (this.admin_user[i].id == val) {
353
+                    return this.admin_user[i].name
354
+                }
355
+            }
356
+        },
357
+    },
358
+    computed: {
359
+    filtedScheduals: function () {
360
+        var scheduleMap = new Object()
361
+        if (this.zone_selected == 0) {
362
+            for (const key in this.scheduleMap) {
363
+            scheduleMap[key] = this.scheduleMap[key]
364
+            }
365
+        } else {
366
+            var zone_name = this.zones[this.zone_selected].text
367
+            scheduleMap[zone_name] = this.scheduleMap[zone_name]
368
+        }
369
+
370
+        if (this.schedule_type_selected != 0) {
371
+            var _scheduleMap = {}
372
+            for (const key in scheduleMap) {
373
+            var origin_schedules = scheduleMap[key]
374
+            var schedules = []
375
+            for (let index = 0; index < origin_schedules.length; index++) {
376
+                const schedule = origin_schedules[index]
377
+                if (schedule.schedule_type == this.schedule_type_selected) {
378
+                schedules.push(schedule)
379
+                }
380
+            }
381
+            if (schedules.length > 0) {
382
+                _scheduleMap[key] = schedules
383
+            }
384
+            }
385
+
386
+            scheduleMap = _scheduleMap
387
+        }
388
+        for (var key in scheduleMap) {
389
+            let mapArr = scheduleMap[key]
390
+            for (let i = 0; i < mapArr.length; i++) {
391
+            mapArr[i]['new_advice'] = []
392
+            }
393
+        }
394
+
395
+        for (var key in scheduleMap) {
396
+            let mapArr = scheduleMap[key]
397
+            for (let i = 0; i < mapArr.length; i++) {
398
+            var maps = mapArr[i]
399
+            var resp_advices = maps.doctor_advice
400
+            if (resp_advices.length > 0) {
401
+                var newGroupObject = function () {
402
+                return Object.assign(
403
+                    {},
404
+                    {
405
+                    group_no: 0,
406
+                    advices: []
407
+                    }
408
+                )
409
+                }
410
+                var initGroupBlock = function (group, advice) {
411
+                group.group_no = advice.groupno
412
+                }
413
+
414
+                var advice_groups = []
415
+                var group = newGroupObject()
416
+                for (let index = 0; index < resp_advices.length; index++) {
417
+                const advice = resp_advices[index]
418
+                if (advice.groupno == 0) {
419
+                    // 老版本的医嘱
420
+                    if (advice.parent_id > 0) {
421
+                    if (advice_groups.length > 0) {
422
+                        var parent_group = advice_groups[advice_groups.length - 1]
423
+                        if (parent_group.advices.length > 0) {
424
+                        if (parent_group.advices[0].id == advice.parent_id) {
425
+                            parent_group.advices.push(advice)
426
+                        }
427
+                        }
428
+                    }
429
+                    continue
430
+                    } else {
431
+                    if (group.group_no > 0) {
432
+                        advice_groups.push(group)
433
+                        group = newGroupObject()
434
+                    }
435
+
436
+                    initGroupBlock(group, advice)
437
+                    group.advices.push(advice)
438
+                    advice_groups.push(group)
439
+                    group = newGroupObject()
440
+                    continue
441
+                    }
442
+                } else {
443
+                    if (group.group_no > 0 && group.group_no != advice.groupno) {
444
+                    advice_groups.push(group)
445
+                    group = newGroupObject()
446
+                    }
447
+                    if (group.group_no == 0) {
448
+                    initGroupBlock(group, advice)
449
+                    }
450
+                    if (group.group_no == advice.groupno) {
451
+                    group.advices.push(advice)
452
+                    }
453
+                }
454
+                }
455
+                if (group.group_no > 0) {
456
+                // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
457
+                advice_groups.push(group)
458
+                }
459
+                advice_groups = advice_groups
460
+            } else {
461
+                advice_groups = []
462
+            }
463
+            maps.new_advice = advice_groups
464
+            }
465
+        }
466
+        console.log("222222",scheduleMap)
467
+        return scheduleMap
468
+        }
469
+    },
470
+    created(){
471
+      var time = this.$route.query.time
472
+      this.time = moment(time).format('YYYY-MM-DD')
473
+      console.log(11,this.$route.query)
474
+      this.requestSchedualDoctors(time)
475
+    }
476
+}
477
+</script>
478
+
479
+
480
+<style rel="stylesheet/scss" lang="scss" scoped>
481
+.dialysisTable{
482
+    width:960px;
483
+    margin: 0 auto;
484
+    text-align: center;
485
+    border-collapse: collapse;
486
+}
487
+.order_title_panl {
488
+    text-align: center;
489
+
490
+    .main_title {
491
+      font-size: 18px;
492
+      line-height: 40px;
493
+      font-weight: 500;
494
+    }
495
+}
496
+.dialysisTable tr{
497
+    padding: 10px 0;
498
+}
499
+.dialysisTable th {
500
+    color: #000;
501
+    padding: 0;
502
+    margin: 0;
503
+    height: 30px;
504
+}
505
+.dialysisTable tr td {
506
+    padding: 12px 0;
507
+}
508
+.subadvice_content {
509
+    text-align: left;
510
+    padding-left: 25px !important;
511
+    padding-right: 5px !important;
512
+}
513
+.advice_content {
514
+    text-align: left;
515
+    padding-left: 5px !important;
516
+    padding-right: 5px !important;
517
+    padding: 15px 5px !important;
518
+}
519
+</style>

+ 14 - 20
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue 查看文件

1
 <template>
1
 <template>
2
   <div id="dialysis-print-box">
2
   <div id="dialysis-print-box">
3
     <div id='new-dialysis-1' class="dialysis-print-order">
3
     <div id='new-dialysis-1' class="dialysis-print-order">
4
-      <div class="order-yy-name">{{ orgname }}</div>
5
-      <div class="order-title">血液净化治疗记录单</div>
6
-      <table class="table-box" style="margin-top: 10px;">
4
+      <div class="order-yy-name"></div>
5
+      <div class="order-title" style="padding-bottom:10px;padding-top:0;">{{ orgname }}&nbsp;&nbsp;血液净化治疗记录单</div>
6
+      <table class="table-box">
7
         <tbody>
7
         <tbody>
8
           <tr>
8
           <tr>
9
             <td width="50">姓 名:</td>
9
             <td width="50">姓 名:</td>
505
                     </td>
505
                     </td>
506
                     <td width="10">L</td>
506
                     <td width="10">L</td>
507
                     <td width="20"></td>
507
                     <td width="20"></td>
508
-                    <td width="100">实际超滤量:</td>
508
+                    <td width="100">机面超滤量:</td>
509
                     <td width="50">
509
                     <td width="50">
510
                       <div class="under-line">
510
                       <div class="under-line">
511
                         &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : " " }}
511
                         &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : " " }}
663
                         <div class="under-line">&nbsp;{{ prescription.calcium ? prescription.calcium : "" }}</div>
663
                         <div class="under-line">&nbsp;{{ prescription.calcium ? prescription.calcium : "" }}</div>
664
                     </td>
664
                     </td>
665
                     <td width="20">mmol/L</td>
665
                     <td width="20">mmol/L</td>
666
-                    <td width="30"></td>
667
-                    <td width="80">透析液温度:</td>
668
-                    <td width="50">
669
-                        <div class="under-line">&nbsp;{{ prescription.dialysate_temperature ? prescription.dialysate_temperature : "" }}</div>
670
-                    </td>
671
-                    <td width="10">℃</td>
672
                     <td></td>
666
                     <td></td>
673
                   </tr>
667
                   </tr>
674
                 </tbody>
668
                 </tbody>
753
               透析中护理记录
747
               透析中护理记录
754
             </td>
748
             </td>
755
 
749
 
756
-            <td width="100">时间</td>
750
+            <td width="60">时间</td>
757
             <td width="40" style="height:20px;line-height:20px">体温<br />℃</td>
751
             <td width="40" style="height:20px;line-height:20px">体温<br />℃</td>
758
             <td width="80" style="height:20px;line-height:20px">血压<br />mmHg</td>
752
             <td width="80" style="height:20px;line-height:20px">血压<br />mmHg</td>
759
             <td width="40" style="height:20px;line-height:20px">脉搏<br />次/分</td>
753
             <td width="40" style="height:20px;line-height:20px">脉搏<br />次/分</td>
764
             <td width="60" style="height:20px;line-height:20px">电导度<br />mS/cm</td>
758
             <td width="60" style="height:20px;line-height:20px">电导度<br />mS/cm</td>
765
             <td width="60" style="height:20px;line-height:20px">血流量<br />ml/分</td>
759
             <td width="60" style="height:20px;line-height:20px">血流量<br />ml/分</td>
766
             <td width="40" style="height:20px;line-height:20px">液温<br />℃</td>
760
             <td width="40" style="height:20px;line-height:20px">液温<br />℃</td>
767
-            <td width="60" style="height:20px;line-height:20px">钠浓度<br />mmol/L</td>
768
             <td width="">特殊记录</td>
761
             <td width="">特殊记录</td>
769
           </tr>
762
           </tr>
770
 
763
 
771
           <tr v-for="monitor in monitors" :key="monitor.id">
764
           <tr v-for="monitor in monitors" :key="monitor.id">
772
-            <td>&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
765
+            <td style="height:40px;line-height:40px;">&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
773
             <td>&nbsp;{{ monitor.temperature ? monitor.temperature : '' }}</td>
766
             <td>&nbsp;{{ monitor.temperature ? monitor.temperature : '' }}</td>
774
             <td>
767
             <td>
775
               <span v-if="monitor.systolic_blood_pressure || monitor.diastolic_blood_pressure">
768
               <span v-if="monitor.systolic_blood_pressure || monitor.diastolic_blood_pressure">
785
             <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
778
             <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
786
             <td>&nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
779
             <td>&nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
787
             <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
780
             <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
788
-            <td>&nbsp;{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
789
             <td style="text-align:left;padding-left:10px;">
781
             <td style="text-align:left;padding-left:10px;">
790
-              &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
782
+              <div style="line-height:20px;text-align: left;display: inline-block;">
783
+                &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
784
+              </div>
791
             </td>
785
             </td>
792
           </tr>
786
           </tr>
793
         </tbody>
787
         </tbody>
911
                 </tbody>
905
                 </tbody>
912
               </table>
906
               </table>
913
 
907
 
914
-              <table class="table-box" style="margin-bottom:130px;">
908
+              <table class="table-box" style="margin-bottom:20px;">
915
                 <tbody>
909
                 <tbody>
916
                   <tr>
910
                   <tr>
917
                     <!-- <td width="70">其他记录:</td> -->
911
                     <!-- <td width="70">其他记录:</td> -->
960
       
954
       
961
     </div>
955
     </div>
962
     <div id='new-dialysis-2' class="dialysis-print-order">
956
     <div id='new-dialysis-2' class="dialysis-print-order">
963
-      <div class="order-yy-name">{{ orgname }}</div>
964
-      <div class="order-title">临时医嘱单</div>
957
+      <!-- <div class="order-yy-name"></div> -->
958
+      <div class="order-title">{{ orgname }}&nbsp;&nbsp;临时医嘱单</div>
965
       <table class="table-box" style="margin-top: 10px;">
959
       <table class="table-box" style="margin-top: 10px;">
966
         <tbody>
960
         <tbody>
967
           <tr>
961
           <tr>
1816
           if (this.org_template_info.org_id == 9535) {
1810
           if (this.org_template_info.org_id == 9535) {
1817
             this.isShowZero = true
1811
             this.isShowZero = true
1818
           }
1812
           }
1819
-          if (this.monitors.length < 13) {
1820
-            var nl = 14 - this.monitors.length
1813
+          if (this.monitors.length < 9) {
1814
+            var nl = 10 - this.monitors.length
1821
             for (let index = 0; index < nl; index++) {
1815
             for (let index = 0; index < nl; index++) {
1822
               this.monitors.push([])
1816
               this.monitors.push([])
1823
             }
1817
             }

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue 查看文件

29
           </div>
29
           </div>
30
30
31
         </div>
31
         </div>
32
-        <div class="inline_block">
32
+        <div class="inline_block" v-if="patientInfo_source_1">
33
           门诊:
33
           门诊:
34
           <div class="under_line" style="width: 30px;text-align: center;">
34
           <div class="under_line" style="width: 30px;text-align: center;">
35
             <check-box :checked="patientInfo_source_1"></check-box>
35
             <check-box :checked="patientInfo_source_1"></check-box>
36
           </div>
36
           </div>
37
         </div>
37
         </div>
38
+        <div class="inline_block" v-if="patientInfo_source_2">
39
+          住院:
40
+          <div class="under_line" style="width: 30px;text-align: center;">
41
+            <check-box :checked="patientInfo_source_2"></check-box>
42
+          </div>
43
+        </div>
38
         <div class="inline_block">
44
         <div class="inline_block">
39
           病区:
45
           病区:
40
           <div class="under_line" style="width: 50px;text-align: center;">
46
           <div class="under_line" style="width: 50px;text-align: center;">

文件差異過大導致無法顯示
+ 2497 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue


文件差異過大導致無法顯示
+ 2257 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue


文件差異過大導致無法顯示
+ 2166 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue


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

789
               <div>
789
               <div>
790
                 <span style="width:70px;display:inline-block">
790
                 <span style="width:70px;display:inline-block">
791
                   {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
791
                   {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
792
-                </span>L
792
+                </span>ml
793
               </div>
793
               </div>
794
             </td>
794
             </td>
795
             <td width="100" style="border:none;border-left:1px solid #000;padding-left:5px">
795
             <td width="100" style="border:none;border-left:1px solid #000;padding-left:5px">

+ 0 - 6
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

301
           good_name: [
301
           good_name: [
302
             { required: true, message: '请输入耗材名称', trigger: 'blur' }
302
             { required: true, message: '请输入耗材名称', trigger: 'blur' }
303
           ],
303
           ],
304
-          pinyin: [
305
-            { required: true, message: '请输入拼音', trigger: 'blur' }
306
-          ],
307
-          wubi: [
308
-            { required: true, message: '请输入五笔', trigger: 'blur' }
309
-          ],
310
           good_kind: [
304
           good_kind: [
311
             { required: true, message: '请选择耗材种类', trigger: 'change' }
305
             { required: true, message: '请选择耗材种类', trigger: 'change' }
312
           ],
306
           ],

+ 4 - 0
src/xt_pages/stock/selfPreparedMedicine/components/addMedicine.vue 查看文件

176
              this.$message.error("请添加药品规格")
176
              this.$message.error("请添加药品规格")
177
              return
177
              return
178
           }
178
           }
179
+        
179
           const params = {
180
           const params = {
180
              patient_id:this.patient_id,
181
              patient_id:this.patient_id,
181
              medicineData:this.multipleSelection
182
              medicineData:this.multipleSelection
186
                 this.$message.success("保存成功")
187
                 this.$message.success("保存成功")
187
                 this.visible = false
188
                 this.visible = false
188
                 this.$emit('getlist');
189
                 this.$emit('getlist');
190
+                for(let i=0;i<this.multipleSelection.length;i++){
191
+                   this.multipleSelection[i].isSelected = false
192
+                }
189
              }else {
193
              }else {
190
                 this.$message.error("药品名称规格已存在")
194
                 this.$message.error("药品名称规格已存在")
191
              }
195
              }

+ 2 - 1
src/xt_pages/stock/selfPreparedMedicine/components/warehouseOut.vue 查看文件

31
                 <template slot-scope="scope">{{scope.row.drug_name}}</template>
31
                 <template slot-scope="scope">{{scope.row.drug_name}}</template>
32
             </el-table-column>
32
             </el-table-column>
33
             <el-table-column align="center" prop="name" label="规格名称">
33
             <el-table-column align="center" prop="name" label="规格名称">
34
-                <template slot-scope="scope">{{scope.row.drug_name}}</template>
34
+                <template slot-scope="scope">{{scope.row.drug_spec}}</template>
35
             </el-table-column>
35
             </el-table-column>
36
             <el-table-column align="center" prop="name" label="出库数量">
36
             <el-table-column align="center" prop="name" label="出库数量">
37
                 <template slot-scope="scope">
37
                 <template slot-scope="scope">
130
           getDrugDataByPatientId(params).then(response=>{
130
           getDrugDataByPatientId(params).then(response=>{
131
              if(response.data.state == 1){
131
              if(response.data.state == 1){
132
                var medicalList = response.data.data.medicalList
132
                var medicalList = response.data.data.medicalList
133
+              
133
                 for(let i=0;i<medicalList.length;i++){
134
                 for(let i=0;i<medicalList.length;i++){
134
                   medicalList[i].store_number = ""
135
                   medicalList[i].store_number = ""
135
                   medicalList[i].remarks = ""
136
                   medicalList[i].remarks = ""

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

89
 
89
 
90
           <el-table-column align="center" width="150">
90
           <el-table-column align="center" width="150">
91
             <template slot="header" slot-scope="scope">
91
             <template slot="header" slot-scope="scope">
92
-              <span>价<span style="color: red">*</span></span>
92
+              <span>进货价<span style="color: red">*</span></span>
93
             </template>
93
             </template>
94
             <template slot-scope="scope">
94
             <template slot-scope="scope">
95
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
95
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->

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

144
 
144
 
145
           <el-table-column min-width="23" align="center">
145
           <el-table-column min-width="23" align="center">
146
             <template slot="header" slot-scope="scope">
146
             <template slot="header" slot-scope="scope">
147
-              <span>价<span style="color: red">*</span></span>
147
+              <span>出货价<span style="color: red">*</span></span>
148
             </template>
148
             </template>
149
             <template slot-scope="scope">
149
             <template slot-scope="scope">
150
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
150
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->

+ 7 - 2
src/xt_pages/stock/stockQuery.vue 查看文件

38
             {{ scope.row.good_code }}
38
             {{ scope.row.good_code }}
39
           </template>
39
           </template>
40
         </el-table-column>
40
         </el-table-column>
41
-        <el-table-column label="商品类型" align="center">
41
+        <el-table-column label="耗材名称" align="center">
42
+          <template slot-scope="scope">
43
+            {{ scope.row.good_name }}
44
+          </template>
45
+        </el-table-column>
46
+        <el-table-column label="耗材类型" align="center">
42
           <template slot-scope="scope">
47
           <template slot-scope="scope">
43
             <span>{{ scope.row.type.type_name }}</span>
48
             <span>{{ scope.row.type.type_name }}</span>
44
           </template>
49
           </template>
45
         </el-table-column>
50
         </el-table-column>
46
-        <el-table-column label="规格名称" align="center">
51
+        <el-table-column label="规格型号" align="center">
47
           <template slot-scope="scope">
52
           <template slot-scope="scope">
48
             <span>{{ scope.row.specification_name }}</span>
53
             <span>{{ scope.row.specification_name }}</span>
49
           </template>
54
           </template>

+ 49 - 71
src/xt_pages/upload/fast/FastCountry.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="patient-container">
2
   <div class="patient-container">
3
-     <fast-patients-sidebar
3
+    
4
+    <el-container>
5
+      <div style="width:170px">
6
+        <el-form :inline="true" @submit.native.prevent>
7
+          <el-form-item label style="margin-bottom:0;">
8
+            <el-input v-model.trim="searchVal" @keyup.enter.native='onSearch' placeholder="姓名/透析号" style="width:70%"></el-input>
9
+            <el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
10
+          </el-form-item>
11
+        </el-form>
12
+        <div style="width:170px">
13
+          <div class="tableTitle">患者列表</div>
14
+          <el-table :data="patientData" border style="width: 100%;" height="500" @row-click='handleSelect'>
15
+            <el-table-column prop="date" label="透析号" width="80" align="center">
16
+              <template slot-scope="scope">
17
+                {{ scope.row.dialysis_no }}
18
+              </template>
19
+            </el-table-column>
20
+            <el-table-column prop="name" label="姓名" width="90" align="center"></el-table-column>
21
+          </el-table>
22
+        </div>
23
+      </div>
24
+      <!-- <fast-patients-sidebar
4
       :id="patientID"
25
       :id="patientID"
5
       v-on:patient="patientInfoClick()"
26
       v-on:patient="patientInfoClick()"
6
       v-on:inspection="inspectionClick()"
27
       v-on:inspection="inspectionClick()"
7
-    ></fast-patients-sidebar>
28
+    ></fast-patients-sidebar> -->
8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
29
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
9
-    <el-container>
10
-      <!--<div style="width:170px">-->
11
-        <!--<el-form :inline="true" :model="listQuery">-->
12
-          <!--<el-form-item label style="margin-bottom:0;">-->
13
-            <!--<el-input v-model.trim="searchVal" placeholder="姓名/透析号" style="width:70%"></el-input>-->
14
-            <!--<el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>-->
15
-          <!--</el-form-item>-->
16
-        <!--</el-form>-->
17
-        <!--<div style="width:170px">-->
18
-          <!--<div class="tableTitle">患者列表</div>-->
19
-          <!--<el-table :data="tableData" border style="width: 100%;" height="500">-->
20
-            <!--<el-table-column prop="date" label="日期" width="80"></el-table-column>-->
21
-            <!--<el-table-column prop="name" label="姓名" width="90"></el-table-column>-->
22
-          <!--</el-table>-->
23
-        <!--</div>-->
24
-      <!--</div>-->
25
-
30
+      
26
       <div style="margin-left:20px;flex:1;" >
31
       <div style="margin-left:20px;flex:1;" >
27
         <div class="cell clearfix">
32
         <div class="cell clearfix">
28
           <div class="time">
33
           <div class="time">
36
             </ul>
41
             </ul>
37
           </div>
42
           </div>
38
         </div>
43
         </div>
39
-        <one ref="one" v-if="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
40
-        <two ref="two" v-if="wayType == 1" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
44
+        <one ref="one" v-show="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
45
+        <two ref="two" v-show="wayType == 1 && patientID != 0" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
41
       </div>
46
       </div>
42
     </el-container>
47
     </el-container>
43
   </div>
48
   </div>
68
           id: 0
73
           id: 0
69
         },
74
         },
70
         isShow: 1,
75
         isShow: 1,
71
-        tableData: [
72
-          {
73
-              date: "2016",
74
-              name: "王小虎"
75
-          },
76
-          {
77
-              date: "2016",
78
-              name: "王小虎"
79
-          },
80
-          {
81
-              date: "2016",
82
-              name: "王小虎"
83
-          },
84
-          {
85
-              date: "2016",
86
-              name: "王小虎"
87
-          },
88
-          {
89
-              date: "2016",
90
-              name: "王小虎"
91
-          },
92
-          {
93
-              date: "2016",
94
-              name: "王小虎"
95
-          },
96
-          {
97
-              date: "2016",
98
-              name: "王小虎"
99
-          },
100
-          {
101
-              date: "2016",
102
-              name: "王小虎"
103
-          },
104
-          {
105
-              date: "2016",
106
-              name: "王小虎"
107
-          },
108
-          {
109
-              date: "2016",
110
-              name: "王小虎"
111
-          },
112
-          {
113
-              date: "2016",
114
-              name: "王小虎"
115
-          },
116
-          {
117
-              date: "2016",
118
-              name: "王小虎"
119
-          }
120
-        ],
121
         searchVal:'',
76
         searchVal:'',
122
         way: [
77
         way: [
123
             { value: 0, label: "基本信息", state: 0 },
78
             { value: 0, label: "基本信息", state: 0 },
124
             { value: 1, label: "检验检查", state: 1 },
79
             { value: 1, label: "检验检查", state: 1 },
125
         ],
80
         ],
126
         wayType: 0,
81
         wayType: 0,
82
+        patientsList:[],
83
+        patientData:[]
127
       }
84
       }
128
     },
85
     },
129
     created() {
86
     created() {
144
         fetchAllList().then(response => {
101
         fetchAllList().then(response => {
145
           if (response.data.state == 1) {
102
           if (response.data.state == 1) {
146
             this.patientsList = response.data.data.patients
103
             this.patientsList = response.data.data.patients
104
+            this.patientData = response.data.data.patients
147
             if (type == 1) {
105
             if (type == 1) {
148
               this.patientID = this.patientsList[0].id
106
               this.patientID = this.patientsList[0].id
149
 
107
 
233
         var monthEndDate = new Date(nowYear, myMonth + 1, 1)
191
         var monthEndDate = new Date(nowYear, myMonth + 1, 1)
234
         var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
192
         var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
235
         return days
193
         return days
194
+      },
195
+      handleSelect(val) {
196
+        this.$router.push("/upload/fast?id=" + val.id);
197
+      },
198
+      onSearch(){
199
+        if(this.searchVal != ''){
200
+          let arr = []
201
+          this.patientsList.map(item => {
202
+          
203
+            if(item.name.includes(this.searchVal)){
204
+              console.log('hhhh')
205
+              arr.push(item)
206
+            }
207
+          })
208
+          console.log(arr)
209
+          this.patientData = arr
210
+        }else if(this.searchVal == ''){
211
+          this.patientData = this.patientsList
212
+        }
213
+        
236
       }
214
       }
237
 
215
 
238
     }
216
     }

+ 1 - 1
src/xt_pages/upload/fast/FastPatientsSidebar.vue 查看文件

29
       >
29
       >
30
       </el-option>
30
       </el-option>
31
     </el-select>
31
     </el-select>
32
-    <el-tree
32
+    <!-- <el-tree
33
       :data="treeData"
33
       :data="treeData"
34
       accordion
34
       accordion
35
       node-key="name"
35
       node-key="name"

+ 17 - 7
src/xt_pages/upload/fast/Two.vue 查看文件

894
 export default {
894
 export default {
895
   name: "Two",
895
   name: "Two",
896
   components: {},
896
   components: {},
897
+  props:{
898
+    id:Number
899
+  },
897
 
900
 
898
   data() {
901
   data() {
899
     return {
902
     return {
976
     };
979
     };
977
   },
980
   },
978
   created() {
981
   created() {
982
+    
979
     var start_time = new Date(
983
     var start_time = new Date(
980
       this.getQuarterStartDate().replace(/-/g, "/")
984
       this.getQuarterStartDate().replace(/-/g, "/")
981
     ).getTime();
985
     ).getTime();
1302
     },
1306
     },
1303
     xcgChange(val) {
1307
     xcgChange(val) {
1304
       this.GetUploadInspections(
1308
       this.GetUploadInspections(
1305
-        this.patient_id,
1309
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1306
         val[0] / 1000,
1310
         val[0] / 1000,
1307
         val[1] / 1000,
1311
         val[1] / 1000,
1308
         1,
1312
         1,
1311
     },
1315
     },
1312
     gkwzChange(val) {
1316
     gkwzChange(val) {
1313
       this.GetUploadInspections(
1317
       this.GetUploadInspections(
1314
-        this.patient_id,
1318
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1315
         val[0] / 1000,
1319
         val[0] / 1000,
1316
         val[1] / 1000,
1320
         val[1] / 1000,
1317
         2,
1321
         2,
1320
     },
1324
     },
1321
     tdxChange(val) {
1325
     tdxChange(val) {
1322
       this.GetUploadInspections(
1326
       this.GetUploadInspections(
1323
-        this.patient_id,
1327
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1324
         val[0] / 1000,
1328
         val[0] / 1000,
1325
         val[1] / 1000,
1329
         val[1] / 1000,
1326
         3,
1330
         3,
1329
     },
1333
     },
1330
     shjcChange(val) {
1334
     shjcChange(val) {
1331
       this.GetUploadInspections(
1335
       this.GetUploadInspections(
1332
-        this.patient_id,
1336
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1333
         val[0] / 1000,
1337
         val[0] / 1000,
1334
         val[1] / 1000,
1338
         val[1] / 1000,
1335
         4,
1339
         4,
1338
     },
1342
     },
1339
     yyyyzChange(val) {
1343
     yyyyzChange(val) {
1340
       this.GetUploadInspections(
1344
       this.GetUploadInspections(
1341
-        this.patient_id,
1345
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1342
         val[0] / 1000,
1346
         val[0] / 1000,
1343
         val[1] / 1000,
1347
         val[1] / 1000,
1344
         5,
1348
         5,
1347
     },
1351
     },
1348
     crbxzbChange(val) {
1352
     crbxzbChange(val) {
1349
       this.GetUploadInspections(
1353
       this.GetUploadInspections(
1350
-        this.patient_id,
1354
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1351
         val[0] / 1000,
1355
         val[0] / 1000,
1352
         val[1] / 1000,
1356
         val[1] / 1000,
1353
         6,
1357
         6,
1356
     },
1360
     },
1357
     jhChange(val) {
1361
     jhChange(val) {
1358
       this.GetUploadInspections(
1362
       this.GetUploadInspections(
1359
-        this.patient_id,
1363
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1360
         val[0] / 1000,
1364
         val[0] / 1000,
1361
         val[1] / 1000,
1365
         val[1] / 1000,
1362
         7,
1366
         7,
1424
       var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);
1428
       var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);
1425
       return days;
1429
       return days;
1426
     }
1430
     }
1431
+  },
1432
+  watch:{
1433
+    id(newVal, oldVal){//对引用类型的值无效
1434
+      console.info('value changed 1', newVal)
1435
+      this.patient_id = newVal
1436
+    },
1427
   }
1437
   }
1428
 };
1438
 };
1429
 </script>
1439
 </script>

+ 2 - 2
src/xt_pages/upload/fast_upload.vue 查看文件

6
     <div class="app-container">
6
     <div class="app-container">
7
       <div class="service-box">
7
       <div class="service-box">
8
         <el-tabs v-model="activeName">
8
         <el-tabs v-model="activeName">
9
-      <el-tab-pane label="国家质控平台" name="first">
9
+          <el-tab-pane label="国家质控平台" name="first">
10
            <fast-country></fast-country>
10
            <fast-country></fast-country>
11
           </el-tab-pane>
11
           </el-tab-pane>
12
-          <el-tab-pane label="省级质控平台" name="first">
12
+          <el-tab-pane label="省级质控平台">
13
             <fast-province></fast-province>
13
             <fast-province></fast-province>
14
           </el-tab-pane>
14
           </el-tab-pane>
15
           <el-tab-pane label="市级质控平台">
15
           <el-tab-pane label="市级质控平台">

+ 2 - 1
src/xt_pages/user/components/EditGroupAdvice.vue 查看文件

1410
       this.nameFormTitle = "添加子药内容";
1410
       this.nameFormTitle = "添加子药内容";
1411
     },
1411
     },
1412
     openGroupAdvice(isEdit) {
1412
     openGroupAdvice(isEdit) {
1413
+     
1413
       this.isChild = false;
1414
       this.isChild = false;
1414
       if (isEdit) {
1415
       if (isEdit) {
1415
         if (this.groupSelectRow === null) {
1416
         if (this.groupSelectRow === null) {
1450
         if (!this.isChild) {
1451
         if (!this.isChild) {
1451
           this.weeks = this.groupSelectRow.week_day.split(",");
1452
           this.weeks = this.groupSelectRow.week_day.split(",");
1452
         }
1453
         }
1453
-
1454
+        this.getAdviceConfig(1)
1454
         this.nameFormTitle = "修改医嘱内容";
1455
         this.nameFormTitle = "修改医嘱内容";
1455
       } else {
1456
       } else {
1456
         this.nameForm = {
1457
         this.nameForm = {

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

1726
     this.blood_filters = this.$store.getters.blood_filters
1726
     this.blood_filters = this.$store.getters.blood_filters
1727
     this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
1727
     this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
1728
     this.hemodialysis_machines = this.$store.getters.hemodialysis_machines
1728
     this.hemodialysis_machines = this.$store.getters.hemodialysis_machines
1729
-    this.dialysate_formulation = this.$store.getters.dialysate_formulation
1729
+    this.dialysate_formulation =  getDataConfig(
1730
+          'hemodialysis',
1731
+          'dialysate_formulation'
1732
+    )
1730
     this.body_fluid_option = this.$store.getters.body_fluid
1733
     this.body_fluid_option = this.$store.getters.body_fluid
1731
     this.special_medicine_option = this.$store.getters.special_medicine
1734
     this.special_medicine_option = this.$store.getters.special_medicine
1732
 
1735
 

+ 23 - 3
src/xt_pages/workforce/components/ScheduleItem.vue 查看文件

2
     <div >
2
     <div >
3
         <el-tooltip placement="right" :disabled="scheduleDetail.patient.length>0?false:true" >
3
         <el-tooltip placement="right" :disabled="scheduleDetail.patient.length>0?false:true" >
4
             <div slot="content">
4
             <div slot="content">
5
-                {{scheduleDetail.patient}}
5
+                {{scheduleDetail.patient}}11
6
                 <br/>
6
                 <br/>
7
                 <span v-if="scheduleDetail.mode_name.length>0">({{scheduleDetail.mode_name}})</span>
7
                 <span v-if="scheduleDetail.mode_name.length>0">({{scheduleDetail.mode_name}})</span>
8
             </div>
8
             </div>
9
             <div>
9
             <div>
10
-                <span>{{scheduleDetail.patient}}</span><br/>
11
-                <span v-if="scheduleDetail.mode_name.length>0">({{scheduleDetail.mode_name}})</span>
10
+                <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
11
+                <span v-if="scheduleDetail.mode_name.length>0" :class='modeColor(scheduleDetail.mode_name)'>({{scheduleDetail.mode_name}})</span>
12
             </div>
12
             </div>
13
         </el-tooltip>
13
         </el-tooltip>
14
     </div>
14
     </div>
30
           },
30
           },
31
       },
31
       },
32
   },
32
   },
33
+  methods:{
34
+        modeColor(name){
35
+            if(name == 'HD'){
36
+
37
+            }else if(name == 'HDF'){
38
+                return 'modeRed'
39
+            }else if(name == 'HD+HP'){
40
+                return 'modePurple'
41
+            }
42
+        }
43
+  }
33
 };
44
 };
34
 </script>
45
 </script>
46
+
47
+<style lang="scss" scoped>
48
+.modeRed{
49
+  color:#ed5555;
50
+}
51
+.modePurple{
52
+  color: #53b86e;
53
+}
54
+</style>

+ 19 - 4
src/xt_pages/workforce/components/tableData.vue 查看文件

99
       @cell-click="clickThis"
99
       @cell-click="clickThis"
100
       :summary-method="getSummaries"
100
       :summary-method="getSummaries"
101
       show-summary
101
       show-summary
102
-      :row-class-name="rowClass"
102
+      :row-class-name="tableRowClassName"
103
       :cell-class-name="cellClass"
103
       :cell-class-name="cellClass"
104
       sum-text="总数"
104
       sum-text="总数"
105
       :height="tableContainHeight"
105
       :height="tableContainHeight"
106
       ref="table"
106
       ref="table"
107
       style="width: 100%;cursor: pointer;"
107
       style="width: 100%;cursor: pointer;"
108
+      
108
     >
109
     >
109
       <el-table-column
110
       <el-table-column
110
         prop="area"
111
         prop="area"
329
                 v-model="searchKey"
330
                 v-model="searchKey"
330
                 placeholder="请输入搜索的内容"
331
                 placeholder="请输入搜索的内容"
331
                 style="width:260px"
332
                 style="width:260px"
333
+                @keyup.enter.native='SubmitSearch'
332
               ></el-input>
334
               ></el-input>
333
               <el-button
335
               <el-button
334
                 type="primary"
336
                 type="primary"
464
           :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
466
           :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
465
           type="primary"
467
           type="primary"
466
           @click="submitTiaoX"
468
           @click="submitTiaoX"
467
-          >保 存</el-button
468
-        >
469
+          >
470
+          <span v-if='tiaoZhengType == 1'>保存</span>
471
+          <span v-if='tiaoZhengType == 2'>下一步</span>
472
+          <span v-if='tiaoZhengType == 3'>下一步</span>
473
+          </el-button>
469
       </span>
474
       </span>
470
     </el-dialog>
475
     </el-dialog>
471
     <el-dialog
476
     <el-dialog
626
     return {
631
     return {
627
       // tableContainHeight:400,
632
       // tableContainHeight:400,
628
       // tableHeight:'window.innerHeight - 0',
633
       // tableHeight:'window.innerHeight - 0',
629
-      rowClass: "table-row-new-class schedule-table-row",
634
+      // rowClass: "table-row-new-class schedule-table-row",
630
       searchKey: "",
635
       searchKey: "",
631
       tiaoZhengType: 1,
636
       tiaoZhengType: 1,
632
       modeOptions: null,
637
       modeOptions: null,
1931
       this.currentData.id = row.id;
1936
       this.currentData.id = row.id;
1932
       this.searchTableVisible = false;
1937
       this.searchTableVisible = false;
1933
       this.msDialogVisible = true;
1938
       this.msDialogVisible = true;
1939
+    },
1940
+    tableRowClassName({row, rowIndex}) {
1941
+      if(row.zone_type == 1){
1942
+        return 'table-row-new-class schedule-table-row'
1943
+      }else {
1944
+        return 'table-row-new-class schedule-table-row backPurple'
1945
+      }
1934
     }
1946
     }
1935
   },
1947
   },
1936
   components: {
1948
   components: {
2062
     color: #fff;
2074
     color: #fff;
2063
   }
2075
   }
2064
 }
2076
 }
2077
+.backPurple{
2078
+  color: #08c3df !important;
2079
+}
2065
 </style>
2080
 </style>

+ 43 - 12
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

25
           </li>
25
           </li>
26
         </ul>
26
         </ul>
27
       </div>
27
       </div>
28
+      
29
+      <div  class="title"><span class="name">班 次</span> :</div>
30
+      <div class="time">
31
+        <ul class>
32
+          <li
33
+            :class="item.id == week_time ? 'active' : ''"
34
+            @click="selectWeekTime(item.id)"
35
+            v-for="item in weekTimes"
36
+            :key="item.id"
37
+          >
38
+            {{ item.name }}
39
+          </li>
40
+        </ul>
41
+      </div>
28
     </div>
42
     </div>
29
     <el-table
43
     <el-table
30
       :row-style="{ color: '#303133' }"
44
       :row-style="{ color: '#303133' }"
171
       anticoagulants_confit: null,
185
       anticoagulants_confit: null,
172
 
186
 
173
       week_type: "1",
187
       week_type: "1",
188
+      week_time:0,
189
+      weekTimes:[
190
+        {id:0,name:"全部"},
191
+        {id:1,name:"上午"},
192
+        {id:2,name:"下午"},
193
+        {id:3,name:"晚上"},
194
+      ],
174
       weekTitle: ["", "", "", "", "", "", ""],
195
       weekTitle: ["", "", "", "", "", "", ""],
175
       weekData: {
196
       weekData: {
176
         Monday: [],
197
         Monday: [],
195
   methods: {
216
   methods: {
196
     printAction() {
217
     printAction() {
197
       this.$router.push({
218
       this.$router.push({
198
-        path: "/schedule/remind/print?week_type=" + this.week_type
219
+        path: "/schedule/remind/print?week_type=" + this.week_type+"&week_time="+this.week_time
199
       });
220
       });
200
     },
221
     },
201
-    getScheduleWeekDay(weekType) {
202
-      getScheduleWeekDay(weekType).then(response => {
222
+    getScheduleWeekDay() {
223
+        const params = {
224
+          week_type:this.week_type,
225
+          week_time:this.week_time,
226
+        }
227
+        console.log("params------",params)
228
+      getScheduleWeekDay(params).then(response => {
203
         this.scheduleData = [];
229
         this.scheduleData = [];
204
         if (response.data.state == 1) {
230
         if (response.data.state == 1) {
205
           this.scheduleData = response.data.data.schdules;
231
           this.scheduleData = response.data.data.schdules;
206
-          //console.log("排班-----", this.scheduleData);
232
+          console.log("排班-----", this.scheduleData);
207
         } else {
233
         } else {
208
           this.$message.error("网络错误");
234
           this.$message.error("网络错误");
209
           return false;
235
           return false;
290
     },
316
     },
291
     selectWeekType(type) {
317
     selectWeekType(type) {
292
       this.week_type = type;
318
       this.week_type = type;
293
-      let params = {
294
-        week_type: this.week_type
295
-      };
296
-      this.getScheduleWeekDay(params);
319
+      // let params = {
320
+      //   week_type: this.week_type
321
+      // };
322
+      this.getScheduleWeekDay();
297
     },
323
     },
324
+    selectWeekTime(type){
325
+       this.week_time = type
326
+       this.getScheduleWeekDay()
327
+    },
328
+
298
     getSchedulesType: function(type) {
329
     getSchedulesType: function(type) {
299
       let type_name = "";
330
       let type_name = "";
300
       switch (type) {
331
       switch (type) {
401
     if (this.week_type == 0) {
432
     if (this.week_type == 0) {
402
       this.week_type = 7;
433
       this.week_type = 7;
403
     }
434
     }
404
-    let params = {
405
-      week_type: this.week_type
406
-    };
407
-    this.getScheduleWeekDay(params);
435
+    // let params = {
436
+    //   week_type: this.week_type
437
+    // };
438
+    this.getScheduleWeekDay();
408
   }
439
   }
409
 };
440
 };
410
 </script>
441
 </script>

+ 10 - 3
src/xt_pages/workforce/remind_print.vue 查看文件

72
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
72
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
73
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
73
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
74
                   <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
74
                   <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
75
+                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
76
+                  <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
77
+                  <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
75
                 </td>
78
                 </td>
76
                 <td :width="td_4_width" style="text-align:left" >
79
                 <td :width="td_4_width" style="text-align:left" >
77
                   <span style="white-space: pre">{{getAdvice(main_collection.doctor_advice)}}</span>
80
                   <span style="white-space: pre">{{getAdvice(main_collection.doctor_advice)}}</span>
120
       this.modeOptions = this.$store.getters.treatment_mode
123
       this.modeOptions = this.$store.getters.treatment_mode
121
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
124
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
122
       this.week_type = this.$route.query.week_type
125
       this.week_type = this.$route.query.week_type
126
+      this.week_time  = this.$route.query.week_time
127
+      
128
+      const params = {
129
+          week_type:this.week_type,
130
+          week_time:this.week_time,
131
+        }
123
 
132
 
124
-
125
-
126
-      getScheduleWeekDay({week_type: this.week_type}).then(rs => {
133
+      getScheduleWeekDay(params).then(rs => {
127
         var resp = rs.data
134
         var resp = rs.data
128
         console.log(resp)
135
         console.log(resp)
129
         if (resp.state == 1) {
136
         if (resp.state == 1) {