瀏覽代碼

no message

张保健 4 年之前
父節點
當前提交
87a7cfa390
共有 29 個文件被更改,包括 7344 次插入2314 次删除
  1. 13 0
      src/api/print_data.js
  2. 181 170
      src/router/modules/dialysis.js
  3. 17 0
      src/xt_pages/data/prescription.vue
  4. 32 0
      src/xt_pages/data/printTemplate.vue
  5. 15 8
      src/xt_pages/dialysis/PatientBox.vue
  6. 233 230
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  7. 1865 0
      src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue
  8. 1 4
      src/xt_pages/dialysis/batch_print/batch_print_order_five.vue
  9. 0 4
      src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue
  10. 195 149
      src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue
  11. 0 4
      src/xt_pages/dialysis/batch_print/batch_print_order_other.vue
  12. 0 4
      src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue
  13. 4 7
      src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue
  14. 363 289
      src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue
  15. 2077 986
      src/xt_pages/dialysis/batch_print/batch_print_order_three.vue
  16. 12 2
      src/xt_pages/dialysis/bloodPresssWatch.vue
  17. 0 4
      src/xt_pages/dialysis/details/BasicInfor.vue
  18. 1 1
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  19. 3 5
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  20. 2 1
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  21. 25 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  22. 1719 0
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  23. 4 7
      src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue
  24. 3 8
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  25. 131 122
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  26. 10 4
      src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue
  27. 427 296
      src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue
  28. 10 4
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  29. 1 5
      src/xt_pages/upload/fast/One.vue

+ 13 - 0
src/api/print_data.js 查看文件

@@ -9,3 +9,16 @@ export function GetBatchPrintDialysisData(sch_ids) {
9 9
     }
10 10
   })
11 11
 }
12
+
13
+export function getLastAfterWeight(id, assmentdate) {
14
+  const params = {
15
+    id: id,
16
+    assmentdate: assmentdate
17
+  }
18
+  return request({
19
+    url: '/api/print/getlastafterweight',
20
+    method: 'get',
21
+    params: params
22
+  })
23
+}
24
+

+ 181 - 170
src/router/modules/dialysis.js 查看文件

@@ -11,180 +11,191 @@ export default {
11 11
     icon: 'touxi'
12 12
   },
13 13
   children: [{
14
-    path: '/dialysis/dialysisrecord',
15
-    component: () => import('@/xt_pages/dialysis/schedualPatient'),
16
-    name: '透析记录',
17
-    meta: {
18
-      title: '透析记录'
19
-    }
20
-  },
21
-  {
22
-    path: '/dialysis/record/:id',
23
-    component: () => import('@/xt_pages/dialysis/dialysisPage'),
24
-    hidden: true,
25
-    is_menu: false,
26
-    name: 'paper',
27
-    meta: {
28
-      title: 'paper',
29
-      noCache: true
30
-    }
31
-  },
32
-  {
33
-    path: '/dialysis/print',
34
-    component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
35
-    hidden: true,
36
-    is_menu: false,
37
-    name: 'dialysisPrintOrder',
38
-    meta: {
39
-      title: 'dialysisPrintOrder',
40
-      noCache: true
41
-    }
42
-  },
14
+      path: '/dialysis/dialysisrecord',
15
+      component: () => import('@/xt_pages/dialysis/schedualPatient'),
16
+      name: '透析记录',
17
+      meta: {
18
+        title: '透析记录'
19
+      }
20
+    },
21
+    {
22
+      path: '/dialysis/record/:id',
23
+      component: () => import('@/xt_pages/dialysis/dialysisPage'),
24
+      hidden: true,
25
+      is_menu: false,
26
+      name: 'paper',
27
+      meta: {
28
+        title: 'paper',
29
+        noCache: true
30
+      }
31
+    },
32
+    {
33
+      path: '/dialysis/print',
34
+      component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
35
+      hidden: true,
36
+      is_menu: false,
37
+      name: 'dialysisPrintOrder',
38
+      meta: {
39
+        title: 'dialysisPrintOrder',
40
+        noCache: true
41
+      }
42
+    },
43 43
 
44 44
     // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
45 45
     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
46
-  {
47
-    path: '/dialysis/watch',
48
-    component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
49
-    name: 'watch',
50
-    meta: {
51
-      title: 'watch'
52
-    }
53
-  },
54
-  {
55
-    path: '/dialysis/details',
56
-    component: () => import('@/xt_pages/dialysis/details'),
57
-    name: 'details',
58
-    meta: {
59
-      title: 'details'
46
+    {
47
+      path: '/dialysis/watch',
48
+      component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
49
+      name: 'watch',
50
+      meta: {
51
+        title: 'watch'
52
+      }
60 53
     },
61
-    hidden: true,
62
-    is_menu: false
63
-  },
64
-  {
65
-    path: '/dialysis/print/batch',
66
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
67
-    hidden: true,
68
-    is_menu: false,
69
-    name: 'dialysis_batch_print',
70
-    meta: {
71
-      title: '批量打印',
72
-      noCache: true
73
-    }
74
-  }, {
75
-    path: '/dialysis/print/batch/other',
76
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
77
-    hidden: true,
78
-    is_menu: false,
79
-    name: 'dialysis_batch_print_two',
80
-    meta: {
81
-      title: '批量打印',
82
-      noCache: true
83
-    }
84
-  },
85
-  {
86
-    path: '/dialysis/print/batch/three',
87
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_three'),
88
-    hidden: true,
89
-    is_menu: false,
90
-    name: 'dialysis_batch_print_two_one',
91
-    meta: {
92
-      title: '批量打印',
93
-      noCache: true
94
-    }
95
-  },
96
-  {
97
-    path: '/dialysis/print/batch/four',
98
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_four'),
99
-    hidden: true,
100
-    is_menu: false,
101
-    name: 'dialysis_batch_print_two_one',
102
-    meta: {
103
-      title: '批量打印',
104
-      noCache: true
105
-    }
106
-  },
107
-  {
108
-    path: '/dialysis/print/batch/five',
109
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five'),
110
-    hidden: true,
111
-    is_menu: false,
112
-    name: 'dialysis_batch_print_two_one',
113
-    meta: {
114
-      title: '批量打印',
115
-      noCache: true
116
-    }
117
-  },
118
-  {
119
-    path: '/dialysis/print/batch/six',
120
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_six'),
121
-    hidden: true,
122
-    is_menu: false,
123
-    name: 'dialysis_batch_six',
124
-    meta: {
125
-      title: '批量打印',
126
-      noCache: true
127
-    }
128
-   },
129
-   {
130
-    path: '/dialysis/print/batch/seven',
131
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_seven'),
132
-    hidden: true,
133
-    is_menu: false,
134
-    name: 'dialysis_batch_seven',
135
-    meta: {
136
-      title: '批量打印',
137
-      noCache: true
138
-    }
139
-   },
140
-  {
141
-    path: '/dialysis/print/batch/otherone',
142
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
143
-    hidden: true,
144
-    is_menu: false,
145
-    name: 'dialysis_batch_print_two_one',
146
-    meta: {
147
-      title: '批量打印',
148
-      noCache: true
149
-    }
150
-  }, {
151
-    path: '/dialysis/print/batch/othertwo',
152
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_two'),
153
-    hidden: true,
154
-    is_menu: false,
155
-    name: 'dialysis_batch_print_two_two',
156
-    meta: {
157
-      title: '批量打印',
158
-      noCache: true
159
-    }
160
-  }, {
161
-    path: '/dialysis/print/batch/fiveone',
162
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_one'),
163
-    hidden: true,
164
-    is_menu: false,
165
-    name: 'dialysis_batch_print_two_two',
166
-    meta: {
167
-      title: '批量打印',
168
-      noCache: true
169
-    }
170
-  }, {
171
-    path: '/dialysis/print/batch/fivetwo',
172
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_two'),
173
-    hidden: true,
174
-    is_menu: false,
175
-    name: 'dialysis_batch_print_two_two',
176
-    meta: {
177
-      title: '批量打印',
178
-      noCache: true
179
-    }
180
-  },
181
-  {
182
-    path: '/dialysis/board',
183
-    component: () => import('@/xt_pages/dialysis/bulletinBoard'),
184
-    name: '数据看板',
185
-    meta: {
186
-      title: '数据看板'
54
+    {
55
+      path: '/dialysis/details',
56
+      component: () => import('@/xt_pages/dialysis/details'),
57
+      name: 'details',
58
+      meta: {
59
+        title: 'details'
60
+      },
61
+      hidden: true,
62
+      is_menu: false
63
+    },
64
+    {
65
+      path: '/dialysis/print/batch',
66
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
67
+      hidden: true,
68
+      is_menu: false,
69
+      name: 'dialysis_batch_print',
70
+      meta: {
71
+        title: '批量打印',
72
+        noCache: true
73
+      }
74
+    }, {
75
+      path: '/dialysis/print/batch/other',
76
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
77
+      hidden: true,
78
+      is_menu: false,
79
+      name: 'dialysis_batch_print_two',
80
+      meta: {
81
+        title: '批量打印',
82
+        noCache: true
83
+      }
84
+    },
85
+    {
86
+      path: '/dialysis/print/batch/three',
87
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_three'),
88
+      hidden: true,
89
+      is_menu: false,
90
+      name: 'dialysis_batch_print_two_one',
91
+      meta: {
92
+        title: '批量打印',
93
+        noCache: true
94
+      }
95
+    },
96
+    {
97
+      path: '/dialysis/print/batch/four',
98
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_four'),
99
+      hidden: true,
100
+      is_menu: false,
101
+      name: 'dialysis_batch_print_two_one',
102
+      meta: {
103
+        title: '批量打印',
104
+        noCache: true
105
+      }
106
+    },
107
+    {
108
+      path: '/dialysis/print/batch/five',
109
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five'),
110
+      hidden: true,
111
+      is_menu: false,
112
+      name: 'dialysis_batch_print_two_one',
113
+      meta: {
114
+        title: '批量打印',
115
+        noCache: true
116
+      }
117
+    },
118
+    {
119
+      path: '/dialysis/print/batch/six',
120
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_six'),
121
+      hidden: true,
122
+      is_menu: false,
123
+      name: 'dialysis_batch_six',
124
+      meta: {
125
+        title: '批量打印',
126
+        noCache: true
127
+      }
128
+    },
129
+    {
130
+      path: '/dialysis/print/batch/seven',
131
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_seven'),
132
+      hidden: true,
133
+      is_menu: false,
134
+      name: 'dialysis_batch_seven',
135
+      meta: {
136
+        title: '批量打印',
137
+        noCache: true
138
+      }
139
+    },
140
+    {
141
+      path: '/dialysis/print/batch/eight',
142
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_eight'),
143
+      hidden: true,
144
+      is_menu: false,
145
+      name: 'dialysis_batch_eight',
146
+      meta: {
147
+        title: '批量打印',
148
+        noCache: true
149
+      }
150
+    },
151
+    {
152
+      path: '/dialysis/print/batch/otherone',
153
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
154
+      hidden: true,
155
+      is_menu: false,
156
+      name: 'dialysis_batch_print_two_one',
157
+      meta: {
158
+        title: '批量打印',
159
+        noCache: true
160
+      }
161
+    }, {
162
+      path: '/dialysis/print/batch/othertwo',
163
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_two'),
164
+      hidden: true,
165
+      is_menu: false,
166
+      name: 'dialysis_batch_print_two_two',
167
+      meta: {
168
+        title: '批量打印',
169
+        noCache: true
170
+      }
171
+    }, {
172
+      path: '/dialysis/print/batch/fiveone',
173
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_one'),
174
+      hidden: true,
175
+      is_menu: false,
176
+      name: 'dialysis_batch_print_two_two',
177
+      meta: {
178
+        title: '批量打印',
179
+        noCache: true
180
+      }
181
+    }, {
182
+      path: '/dialysis/print/batch/fivetwo',
183
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_two'),
184
+      hidden: true,
185
+      is_menu: false,
186
+      name: 'dialysis_batch_print_two_two',
187
+      meta: {
188
+        title: '批量打印',
189
+        noCache: true
190
+      }
191
+    },
192
+    {
193
+      path: '/dialysis/board',
194
+      component: () => import('@/xt_pages/dialysis/bulletinBoard'),
195
+      name: '数据看板',
196
+      meta: {
197
+        title: '数据看板'
198
+      }
187 199
     }
188
-  }
189 200
   ]
190 201
 }

+ 17 - 0
src/xt_pages/data/prescription.vue 查看文件

@@ -796,10 +796,17 @@
796 796
         })
797 797
 
798 798
       }, selectnDialysisTime(val) {
799
+        console.log(val)
800
+
801
+        console.log( this.addPlan.dialysis_duration)
802
+        console.log( this.addPlan.dialysis_duration_hour)
803
+        console.log( this.addPlan.dialysis_duration_minute)
804
+
799 805
         var valTime = val.split(':')
800 806
         this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
801 807
         this.addPlan.dialysis_duration_hour = valTime[0]
802 808
         this.addPlan.dialysis_duration_minute = valTime[1]
809
+
803 810
       }, changeThisAnticoagulant() {
804 811
         var thismode = parseInt(this.addPlan.anticoagulant)
805 812
         if (isNaN(thismode) || thismode <= 0) {
@@ -871,6 +878,10 @@
871 878
 
872 879
     }, watch: {
873 880
       'addPlan.dialysis_duration': function() {
881
+        console.log(this.addPlan.anticoagulant_shouji)
882
+        console.log(this.addPlan.dialysis_duration)
883
+        console.log(this.addPlan.anticoagulant_weichi)
884
+
874 885
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
875 886
           this.addPlan.anticoagulant_shouji,
876 887
           this.addPlan.dialysis_duration,
@@ -878,6 +889,9 @@
878 889
         )
879 890
       },
880 891
       'addPlan.anticoagulant_shouji': function() {
892
+        console.log(this.addPlan.anticoagulant_shouji)
893
+        console.log(this.addPlan.dialysis_duration)
894
+        console.log(this.addPlan.anticoagulant_weichi)
881 895
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
882 896
           this.addPlan.anticoagulant_shouji,
883 897
           this.addPlan.dialysis_duration,
@@ -885,6 +899,9 @@
885 899
         )
886 900
       },
887 901
       'addPlan.anticoagulant_weichi': function() {
902
+        console.log(this.addPlan.anticoagulant_shouji)
903
+        console.log(this.addPlan.dialysis_duration)
904
+        console.log(this.addPlan.anticoagulant_weichi)
888 905
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
889 906
           this.addPlan.anticoagulant_shouji,
890 907
           this.addPlan.dialysis_duration,

+ 32 - 0
src/xt_pages/data/printTemplate.vue 查看文件

@@ -67,6 +67,32 @@
67 67
           <el-radio v-model="radio" label="7" @change="change">模版四</el-radio>
68 68
         </el-col>
69 69
       </el-row>
70
+      <el-row :gutter="20" type="flex"> 
71
+         <el-col :span="6" style="text-align: center">
72
+          <div class="demo-image__preview">
73
+            <el-tooltip class="item" effect="dark" content="点击查看大图" placement="top-start" :hide-after='2000'>
74
+              <el-image
75
+                style="width: 200px; height: 200px"
76
+                :src="require('@/assets/home/5.png')"
77
+                :preview-src-list="imgs_six"
78
+              ></el-image>
79
+            </el-tooltip>
80
+          </div>
81
+          <el-radio v-model="radio" label="8" @change="change">模版五</el-radio>
82
+        </el-col>
83
+          <el-col :span="6" style="text-align: center">
84
+          <div class="demo-image__preview">
85
+            <el-tooltip class="item" effect="dark" content="点击查看大图" placement="top-start" :hide-after='2000'>
86
+              <el-image
87
+                style="width: 200px; height: 200px;"
88
+                :src="require('@/assets/home/template_six.png')"
89
+                :preview-src-list="imgs_eight"
90
+              ></el-image>
91
+            </el-tooltip>
92
+          </div>
93
+          <el-radio v-model="radio" label="6" @change="change">模版六</el-radio>
94
+        </el-col>
95
+      </el-row>
70 96
     </div>
71 97
     </div>
72 98
   </div>
@@ -105,6 +131,12 @@ export default {
105 131
         imgs_seven: [
106 132
           'http://images.shengws.com/7.png'
107 133
         ],
134
+        imgs_six: [
135
+          'https://images.shengws.com/5.png'
136
+        ],
137
+        imgs_eight: [
138
+          'https://images.shengws.com/template_six.png'
139
+        ],
108 140
         delay: 500,
109 141
         radio: 0,
110 142
         tempRadio: 0,

+ 15 - 8
src/xt_pages/dialysis/PatientBox.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <div>
3 3
   <!-- <router-link to="/dialysis/details"> -->
4
-    <div class="patient" v-for="schedule in schedules" v-if="schedule.patient" :class="borderColor(schedule)"  @click="detailAction(schedule)" :key="schedule.id"> 
4
+    <div class="patient" v-for="schedule in schedules" v-if="schedule.patient" :class="borderColor(schedule)"  @click="detailAction(schedule)" :key="schedule.id">
5 5
         <div class="kehu" >
6 6
           <div class="tx">
7 7
             <img :src="schedule.patient.avatar.length > 0 ? schedule.patient.avatar : '../../assets/home/analyze.png'" alt="">
@@ -28,6 +28,7 @@
28 28
 
29 29
 <script>
30 30
 import { parseTime } from "@/utils"
31
+import { jsGetAge } from '@/utils/tools'
31 32
 
32 33
 export default {
33 34
   name: "PatientBox",
@@ -125,7 +126,7 @@ export default {
125 126
         return 1
126 127
       }
127 128
     },
128
-    
129
+
129 130
     orderState: function(schedual) {
130 131
       if (schedual.dialysis_order == null) { // 未上机
131 132
         return 4
@@ -159,12 +160,18 @@ export default {
159 160
       }
160 161
     },
161 162
     age: function(schedual) {
162
-      var now = new Date()
163
-      var nowYear = parseTime(now, "{y}")
164
-      var birthdayYear = parseTime(schedual.patient.birthday, "{y}")
165
-      // console.log(nowYear)
166
-      // console.log(birthdayYear)
167
-      return nowYear - birthdayYear
163
+      if (schedual.patient.birthday == 0){
164
+        return ''
165
+      }else{
166
+        return jsGetAge(parseTime(schedual.patient.birthday, '{y}-{m}-{d}'), '-')
167
+      }
168
+
169
+      // var now = new Date()
170
+      // var nowYear = parseTime(now, "{y}")
171
+      // var birthdayYear = parseTime(schedual.patient.birthday, "{y}")
172
+      // // console.log(nowYear)
173
+      // // console.log(birthdayYear)
174
+      // return nowYear - birthdayYear
168 175
     },
169 176
     detailAction: function(schedual) {
170 177
       var patient_id = schedual.patient_id

+ 233 - 230
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

@@ -20,7 +20,7 @@
20 20
         >
21 21
           <div class="order-yy-name">{{ orgname }}</div>
22 22
           <div class="order_title">
23
-            血液净化治疗记录单
23
+            血液净化治疗记录单2
24 24
           </div>
25 25
           <div class="row" style="margin-top: 15px;">
26 26
             <div class="inline_block">
@@ -106,42 +106,42 @@
106 106
                           "
107 107
                         ></check-box>
108 108
                         <!--<check-box-->
109
-                          <!--text="扶行"-->
110
-                          <!--:checked="-->
111
-                            <!--isCheckBoxChecked(-->
112
-                              <!--record.receive_assessment,-->
113
-                              <!--'way',-->
114
-                              <!--2-->
115
-                            <!--)-->
116
-                          <!--"-->
109
+                        <!--text="扶行"-->
110
+                        <!--:checked="-->
111
+                        <!--isCheckBoxChecked(-->
112
+                        <!--record.receive_assessment,-->
113
+                        <!--'way',-->
114
+                        <!--2-->
115
+                        <!--)-->
116
+                        <!--"-->
117 117
                         <!--&gt;</check-box>-->
118 118
                         <!--<check-box-->
119
-                          <!--text="轮椅"-->
120
-                          <!--:checked="-->
121
-                            <!--isCheckBoxChecked(-->
122
-                              <!--record.receive_assessment,-->
123
-                              <!--'way',-->
124
-                              <!--3-->
125
-                            <!--)-->
126
-                          <!--"-->
119
+                        <!--text="轮椅"-->
120
+                        <!--:checked="-->
121
+                        <!--isCheckBoxChecked(-->
122
+                        <!--record.receive_assessment,-->
123
+                        <!--'way',-->
124
+                        <!--3-->
125
+                        <!--)-->
126
+                        <!--"-->
127 127
                         <!--&gt;</check-box>-->
128 128
                         <!--<check-box-->
129
-                          <!--text="平车"-->
130
-                          <!--:checked="-->
131
-                            <!--isCheckBoxChecked(-->
132
-                              <!--record.receive_assessment,-->
133
-                              <!--'way',-->
134
-                              <!--4-->
135
-                            <!--)-->
136
-                          <!--"-->
129
+                        <!--text="平车"-->
130
+                        <!--:checked="-->
131
+                        <!--isCheckBoxChecked(-->
132
+                        <!--record.receive_assessment,-->
133
+                        <!--'way',-->
134
+                        <!--4-->
135
+                        <!--)-->
136
+                        <!--"-->
137 137
                         <!--&gt;</check-box>-->
138 138
                       </div>
139 139
                       <div class="inline_block" style="margin-left: 15px;">
140 140
                         意识:
141 141
                         <check-box
142
-                          v-for="(item, index) in consciousness_arr" :key="index"
142
+                          v-for="(item, index) in consciousness_arr"
143
+                          :key="index"
143 144
                           :text="item.name"
144
-
145 145
                           :checked="
146 146
                             isCheckBoxChecked(
147 147
                               record.receive_assessment,
@@ -151,34 +151,34 @@
151 151
                           "
152 152
                         ></check-box>
153 153
                         <!--<check-box-->
154
-                          <!--text="嗜睡"-->
155
-                          <!--:checked="-->
156
-                            <!--isCheckBoxChecked(-->
157
-                              <!--record.receive_assessment,-->
158
-                              <!--'consciousness',-->
159
-                              <!--2-->
160
-                            <!--)-->
161
-                          <!--"-->
154
+                        <!--text="嗜睡"-->
155
+                        <!--:checked="-->
156
+                        <!--isCheckBoxChecked(-->
157
+                        <!--record.receive_assessment,-->
158
+                        <!--'consciousness',-->
159
+                        <!--2-->
160
+                        <!--)-->
161
+                        <!--"-->
162 162
                         <!--&gt;</check-box>-->
163 163
                         <!--<check-box-->
164
-                          <!--text="昏迷"-->
165
-                          <!--:checked="-->
166
-                            <!--isCheckBoxChecked(-->
167
-                              <!--record.receive_assessment,-->
168
-                              <!--'consciousness',-->
169
-                              <!--3-->
170
-                            <!--)-->
171
-                          <!--"-->
164
+                        <!--text="昏迷"-->
165
+                        <!--:checked="-->
166
+                        <!--isCheckBoxChecked(-->
167
+                        <!--record.receive_assessment,-->
168
+                        <!--'consciousness',-->
169
+                        <!--3-->
170
+                        <!--)-->
171
+                        <!--"-->
172 172
                         <!--&gt;</check-box>-->
173 173
                         <!--<check-box-->
174
-                          <!--text="模糊"-->
175
-                          <!--:checked="-->
176
-                            <!--isCheckBoxChecked(-->
177
-                              <!--record.receive_assessment,-->
178
-                              <!--'consciousness',-->
179
-                              <!--4-->
180
-                            <!--)-->
181
-                          <!--"-->
174
+                        <!--text="模糊"-->
175
+                        <!--:checked="-->
176
+                        <!--isCheckBoxChecked(-->
177
+                        <!--record.receive_assessment,-->
178
+                        <!--'consciousness',-->
179
+                        <!--4-->
180
+                        <!--)-->
181
+                        <!--"-->
182 182
                         <!--&gt;</check-box>-->
183 183
                       </div>
184 184
                       <div class="inline_block" style="margin-left: 30px;">
@@ -197,7 +197,8 @@
197 197
                       <div class="inline_block">
198 198
                         体位:
199 199
                         <check-box
200
-                          v-for="(item, index) in posture_arr" :key="index"
200
+                          v-for="(item, index) in posture_arr"
201
+                          :key="index"
201 202
                           :text="item.name"
202 203
                           :checked="
203 204
                             isCheckBoxChecked(
@@ -208,44 +209,44 @@
208 209
                           "
209 210
                         ></check-box>
210 211
                         <!--<check-box-->
211
-                          <!--text="平卧位"-->
212
-                          <!--:checked="-->
213
-                            <!--isCheckBoxChecked(-->
214
-                              <!--record.receive_assessment,-->
215
-                              <!--'posture',-->
216
-                              <!--2-->
217
-                            <!--)-->
218
-                          <!--"-->
212
+                        <!--text="平卧位"-->
213
+                        <!--:checked="-->
214
+                        <!--isCheckBoxChecked(-->
215
+                        <!--record.receive_assessment,-->
216
+                        <!--'posture',-->
217
+                        <!--2-->
218
+                        <!--)-->
219
+                        <!--"-->
219 220
                         <!--&gt;</check-box>-->
220 221
                         <!--<check-box-->
221
-                          <!--text="半卧位"-->
222
-                          <!--:checked="-->
223
-                            <!--isCheckBoxChecked(-->
224
-                              <!--record.receive_assessment,-->
225
-                              <!--'posture',-->
226
-                              <!--3-->
227
-                            <!--)-->
228
-                          <!--"-->
222
+                        <!--text="半卧位"-->
223
+                        <!--:checked="-->
224
+                        <!--isCheckBoxChecked(-->
225
+                        <!--record.receive_assessment,-->
226
+                        <!--'posture',-->
227
+                        <!--3-->
228
+                        <!--)-->
229
+                        <!--"-->
229 230
                         <!--&gt;</check-box>-->
230 231
                         <!--<check-box-->
231
-                          <!--text="端坐位"-->
232
-                          <!--:checked="-->
233
-                            <!--isCheckBoxChecked(-->
234
-                              <!--record.receive_assessment,-->
235
-                              <!--'posture',-->
236
-                              <!--4-->
237
-                            <!--)-->
238
-                          <!--"-->
232
+                        <!--text="端坐位"-->
233
+                        <!--:checked="-->
234
+                        <!--isCheckBoxChecked(-->
235
+                        <!--record.receive_assessment,-->
236
+                        <!--'posture',-->
237
+                        <!--4-->
238
+                        <!--)-->
239
+                        <!--"-->
239 240
                         <!--&gt;</check-box>-->
240 241
                         <!--<check-box-->
241
-                          <!--text="躁动不安"-->
242
-                          <!--:checked="-->
243
-                            <!--isCheckBoxChecked(-->
244
-                              <!--record.receive_assessment,-->
245
-                              <!--'posture',-->
246
-                              <!--5-->
247
-                            <!--)-->
248
-                          <!--"-->
242
+                        <!--text="躁动不安"-->
243
+                        <!--:checked="-->
244
+                        <!--isCheckBoxChecked(-->
245
+                        <!--record.receive_assessment,-->
246
+                        <!--'posture',-->
247
+                        <!--5-->
248
+                        <!--)-->
249
+                        <!--"-->
249 250
                         <!--&gt;</check-box>-->
250 251
                       </div>
251 252
                     </div>
@@ -1866,14 +1867,14 @@
1866 1867
 </template>
1867 1868
 
1868 1869
 <script>
1869
-import CheckBox from './option_check_box'
1870
-import { GetBatchPrintDialysisData } from '@/api/print_data'
1871
-import { jsGetAge, uParseTime } from '@/utils/tools'
1872
-import { getDataConfig } from '@/utils/data'
1873
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
1874
-import print from 'print-js'
1870
+import CheckBox from "./option_check_box";
1871
+import { GetBatchPrintDialysisData } from "@/api/print_data";
1872
+import { jsGetAge, uParseTime } from "@/utils/tools";
1873
+import { getDataConfig } from "@/utils/data";
1874
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
1875
+import print from "print-js";
1875 1876
 export default {
1876
-  name: 'BatchPrintOrder',
1877
+  name: "BatchPrintOrder",
1877 1878
   components: {
1878 1879
     CheckBox,
1879 1880
     BreadCrumb
@@ -1881,8 +1882,8 @@ export default {
1881 1882
   data() {
1882 1883
     return {
1883 1884
       crumbs: [
1884
-        { path: false, name: '透析管理' },
1885
-        { path: false, name: '批量打印' }
1885
+        { path: false, name: "透析管理" },
1886
+        { path: false, name: "批量打印" }
1886 1887
       ],
1887 1888
       records: [
1888 1889
         // 模拟有多条数据
@@ -1906,7 +1907,7 @@ export default {
1906 1907
       nutrition_arr: [],
1907 1908
 
1908 1909
       loading: false,
1909
-      orgname: '',
1910
+      orgname: "",
1910 1911
       org_template_info: {},
1911 1912
 
1912 1913
       bloodAccessParOpera: {},
@@ -1916,54 +1917,53 @@ export default {
1916 1917
       operators: [],
1917 1918
       adminUser: [],
1918 1919
       complications: [
1919
-        '低血压',
1920
-        '高血压',
1921
-        '心律失常',
1922
-        '头晕',
1923
-        '头痛',
1924
-        '呕吐',
1925
-        '抽搐',
1926
-        '出血',
1927
-        '心衰',
1928
-        '腹痛'
1920
+        "低血压",
1921
+        "高血压",
1922
+        "心律失常",
1923
+        "头晕",
1924
+        "头痛",
1925
+        "呕吐",
1926
+        "抽搐",
1927
+        "出血",
1928
+        "心衰",
1929
+        "腹痛"
1929 1930
       ]
1930
-    }
1931
+    };
1931 1932
   },
1932 1933
   created() {
1933
-    var xtuser = this.$store.getters.xt_user
1934
-    this.orgname = xtuser.org.org_name
1934
+    var xtuser = this.$store.getters.xt_user;
1935
+    this.orgname = xtuser.org.org_name;
1935 1936
     //   this.orgname = "遂溪方济医院";
1936
-    this.modeOptions = this.$store.getters.treatment_mode
1937
+    this.modeOptions = this.$store.getters.treatment_mode;
1937 1938
     //   this.replacementWays = this.$store.getters.replacement_ways;
1938 1939
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1939
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1940
-
1941
-    this.way_arr = getDataConfig('hemodialysis', 'way')
1942
-    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1943
-    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1944
-    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1945
-    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1946
-    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1947
-    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1948
-    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1940
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1949 1941
 
1942
+    this.way_arr = getDataConfig("hemodialysis", "way");
1943
+    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1944
+    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1945
+    this.posture_arr = getDataConfig("hemodialysis", "posture");
1946
+    this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
1947
+    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1948
+    this.intake_arr = getDataConfig("hemodialysis", "intake");
1949
+    this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1950 1950
 
1951 1951
     var bloodAccessParOpera = getDataConfig(
1952
-      'hemodialysis',
1953
-      'vascular_access_desc'
1954
-    )
1952
+      "hemodialysis",
1953
+      "vascular_access_desc"
1954
+    );
1955 1955
     for (var key in bloodAccessParOpera) {
1956 1956
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1957
-        bloodAccessParOpera[key]
1957
+        bloodAccessParOpera[key];
1958 1958
     }
1959 1959
 
1960 1960
     var dialysateFormulationOptions = getDataConfig(
1961
-      'hemodialysis',
1962
-      'dialysate_formulation'
1963
-    )
1961
+      "hemodialysis",
1962
+      "dialysate_formulation"
1963
+    );
1964 1964
     for (var key in dialysateFormulationOptions) {
1965 1965
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1966
-        dialysateFormulationOptions[key]
1966
+        dialysateFormulationOptions[key];
1967 1967
     }
1968 1968
 
1969 1969
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
@@ -1978,51 +1978,54 @@ export default {
1978 1978
     //   }
1979 1979
   },
1980 1980
   mounted() {
1981
-    this.loading = true
1982
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
1981
+    this.loading = true;
1982
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
1983 1983
     if (ids.length == 0) {
1984
-      this.$router.back(-1)
1985
-      return
1984
+      this.$router.back(-1);
1985
+      return;
1986 1986
     }
1987
-    GetBatchPrintDialysisData(ids.join(','))
1987
+    GetBatchPrintDialysisData(ids.join(","))
1988 1988
       .then(rs => {
1989
-        var resp = rs.data
1989
+        var resp = rs.data;
1990 1990
         if (resp.state == 1) {
1991
-          this.org_template_info = resp.data.templateInfo
1991
+          this.org_template_info = resp.data.templateInfo;
1992
+
1993
+          this.records = this.records.concat(resp.data.schedules);
1994
+
1995
+          console.log("记录", this.records);
1992 1996
 
1993
-          this.records = this.records.concat(resp.data.schedules)
1994 1997
           for (const recordIndex in this.records) {
1995
-            var dlegh = 0
1998
+            var dlegh = 0;
1996 1999
             if (
1997 2000
               this.records[recordIndex].monitor_records &&
1998 2001
               this.records[recordIndex].monitor_records.length < 8
1999 2002
             ) {
2000
-              dlegh = 8 - this.records[recordIndex].monitor_records.length
2003
+              dlegh = 8 - this.records[recordIndex].monitor_records.length;
2001 2004
             } else {
2002
-              dlegh = 0
2005
+              dlegh = 0;
2003 2006
             }
2004 2007
             if (dlegh > 0) {
2005 2008
               if (
2006 2009
                 typeof this.records[recordIndex].monitor_records ===
2007
-                  'undefined' ||
2010
+                  "undefined" ||
2008 2011
                 this.records[recordIndex].monitor_records == null
2009 2012
               ) {
2010
-                this.records[recordIndex].monitor_records = []
2013
+                this.records[recordIndex].monitor_records = [];
2011 2014
               }
2012 2015
               for (let index = 0; index < dlegh; index++) {
2013
-                this.records[recordIndex].monitor_records.push([])
2016
+                this.records[recordIndex].monitor_records.push([]);
2014 2017
               }
2015 2018
             }
2016 2019
 
2017
-            this.records[recordIndex].isShowZero = false
2020
+            this.records[recordIndex].isShowZero = false;
2018 2021
             if (this.records[recordIndex].patient.user_org_id == 9535) {
2019
-              this.records[recordIndex].isShowZero = true
2022
+              this.records[recordIndex].isShowZero = true;
2020 2023
             }
2021 2024
 
2022
-            var childMap = {}
2025
+            var childMap = {};
2023 2026
             for (const index in this.records[recordIndex].advices) {
2024 2027
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2025
-                continue
2028
+                continue;
2026 2029
               }
2027 2030
               if (
2028 2031
                 !(
@@ -2031,228 +2034,228 @@ export default {
2031 2034
               ) {
2032 2035
                 childMap[
2033 2036
                   this.records[recordIndex].advices[index].parent_id
2034
-                ] = []
2037
+                ] = [];
2035 2038
               }
2036 2039
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2037 2040
                 this.records[recordIndex].advices[index]
2038
-              )
2041
+              );
2039 2042
             }
2040 2043
 
2041
-            var advices = []
2044
+            var advices = [];
2042 2045
             for (const index in this.records[recordIndex].advices) {
2043 2046
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2044
-                continue
2047
+                continue;
2045 2048
               }
2046
-              var item = this.records[recordIndex].advices[index]
2049
+              var item = this.records[recordIndex].advices[index];
2047 2050
               if (item.id in childMap) {
2048
-                item.children = childMap[item.id]
2051
+                item.children = childMap[item.id];
2049 2052
               } else {
2050
-                item.children = []
2053
+                item.children = [];
2051 2054
               }
2052
-              advices.push(item)
2055
+              advices.push(item);
2053 2056
             }
2054 2057
 
2055
-            var leftAdvice = []
2056
-            var rightAdvice = []
2057
-            var adlen = advices.length
2058
+            var leftAdvice = [];
2059
+            var rightAdvice = [];
2060
+            var adlen = advices.length;
2058 2061
 
2059
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2062
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2060 2063
             for (var i = 0; i < halfLen; i++) {
2061
-              leftAdvice.push(advices[i])
2062
-              var rightIndex = i + halfLen
2064
+              leftAdvice.push(advices[i]);
2065
+              var rightIndex = i + halfLen;
2063 2066
               rightAdvice.push(
2064 2067
                 rightIndex in advices ? advices[i + halfLen] : []
2065
-              )
2068
+              );
2066 2069
             }
2067 2070
             if (halfLen < 5) {
2068
-              var nl = 5 - leftAdvice.length
2071
+              var nl = 5 - leftAdvice.length;
2069 2072
               for (let index = 0; index < nl; index++) {
2070
-                leftAdvice.push([])
2073
+                leftAdvice.push([]);
2071 2074
               }
2072
-              var nl = 5 - rightAdvice.length
2075
+              var nl = 5 - rightAdvice.length;
2073 2076
               for (let index = 0; index < nl; index++) {
2074
-                rightAdvice.push([])
2077
+                rightAdvice.push([]);
2075 2078
               }
2076 2079
             }
2077 2080
 
2078
-            this.records[recordIndex].advices = []
2081
+            this.records[recordIndex].advices = [];
2079 2082
             for (var i = 0; i < halfLen; i++) {
2080
-              var item = []
2081
-              item.push(leftAdvice[i])
2082
-              item.push(rightAdvice[i])
2083
-              this.records[recordIndex].advices.push(item)
2083
+              var item = [];
2084
+              item.push(leftAdvice[i]);
2085
+              item.push(rightAdvice[i]);
2086
+              this.records[recordIndex].advices.push(item);
2084 2087
             }
2085 2088
           }
2086 2089
 
2087
-          console.log(' this.records[recordIndex].advices', this.records)
2088
-          this.operators = resp.data.medical_staffs
2090
+          console.log(" this.records[recordIndex].advices", this.records);
2091
+          this.operators = resp.data.medical_staffs;
2089 2092
           if (this.operators.length > 0) {
2090
-            var operatorsLen = this.operators.length
2093
+            var operatorsLen = this.operators.length;
2091 2094
             for (var index = 0; index < operatorsLen; index++) {
2092 2095
               this.$set(
2093 2096
                 this.operatorMaps,
2094 2097
                 this.operators[index].id,
2095 2098
                 this.operators[index]
2096
-              )
2099
+              );
2097 2100
             }
2098 2101
           }
2099 2102
 
2100
-          this.adminUser = resp.data.users
2101
-          this.loading = false
2103
+          this.adminUser = resp.data.users;
2104
+          this.loading = false;
2102 2105
         } else {
2103
-          this.loading = false
2104
-          this.$message.error(resp.msg)
2106
+          this.loading = false;
2107
+          this.$message.error(resp.msg);
2105 2108
         }
2106 2109
       })
2107 2110
       .catch(err => {
2108
-        this.$message.error(err)
2109
-      })
2111
+        this.$message.error(err);
2112
+      });
2110 2113
   },
2111 2114
   methods: {
2112 2115
     getAge: function(val) {
2113
-      val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
2116
+      val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2114 2117
       if (
2115 2118
         this.org_template_info.template_id == 2 ||
2116 2119
         this.org_template_info.template_id == 0
2117 2120
       ) {
2118 2121
         if (val.age == 0) {
2119
-          return jsGetAge(val.birth, '-')
2122
+          return jsGetAge(val.birth, "-");
2120 2123
         } else {
2121
-          return val.age
2124
+          return val.age;
2122 2125
         }
2123 2126
       } else {
2124
-        return jsGetAge(val.birth, '-')
2127
+        return jsGetAge(val.birth, "-");
2125 2128
       }
2126 2129
     },
2127 2130
     printAction: function() {
2128 2131
       const style =
2129
-        '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}'
2132
+        '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}';
2130 2133
 
2131 2134
       printJS({
2132
-        printable: 'print_content',
2133
-        type: 'html',
2134
-        documentTitle: '  ',
2135
+        printable: "print_content",
2136
+        type: "html",
2137
+        documentTitle: "  ",
2135 2138
         style: style,
2136 2139
         scanStyles: false
2137
-      })
2140
+      });
2138 2141
     },
2139 2142
 
2140 2143
     complicationsOther: function(record) {
2141
-      if (record == null || typeof record === 'undefined') {
2142
-        return ''
2144
+      if (record == null || typeof record === "undefined") {
2145
+        return "";
2143 2146
       }
2144 2147
       if (record.complication.length == 0) {
2145
-        return ''
2148
+        return "";
2146 2149
       }
2147
-      var complications = record.complication.split(',')
2148
-      var complicationOthers = []
2150
+      var complications = record.complication.split(",");
2151
+      var complicationOthers = [];
2149 2152
       for (const index in complications) {
2150 2153
         if (
2151 2154
           this.complications.indexOf(complications[index]) < 0 &&
2152 2155
           complicationOthers.indexOf(complications[index]) < 0
2153 2156
         ) {
2154
-          complicationOthers.push(complications[index])
2157
+          complicationOthers.push(complications[index]);
2155 2158
         }
2156 2159
       }
2157
-      return complicationOthers.join(',')
2160
+      return complicationOthers.join(",");
2158 2161
     },
2159 2162
     modeName(mode_id) {
2160 2163
       if (mode_id in this.modeOptions) {
2161
-        return this.modeOptions[mode_id].name
2164
+        return this.modeOptions[mode_id].name;
2162 2165
       }
2163
-      return ''
2166
+      return "";
2164 2167
     },
2165 2168
     anticoagulantName: function(key) {
2166
-      if (key == null || typeof key === 'undefined') {
2167
-        return ''
2169
+      if (key == null || typeof key === "undefined") {
2170
+        return "";
2168 2171
       }
2169
-      var id = key.anticoagulant
2172
+      var id = key.anticoagulant;
2170 2173
       if (id in this.anticoagulantsConfit) {
2171
-        return this.anticoagulantsConfit[id].name
2174
+        return this.anticoagulantsConfit[id].name;
2172 2175
       }
2173
-      return ''
2176
+      return "";
2174 2177
     },
2175 2178
     isBbloodAccessParOperaCheck(key, value) {
2176
-      if (key == null || typeof key === 'undefined') {
2177
-        return false
2179
+      if (key == null || typeof key === "undefined") {
2180
+        return false;
2178 2181
       }
2179
-      var id = key.blood_access_part_opera_id
2182
+      var id = key.blood_access_part_opera_id;
2180 2183
       if (id in this.bloodAccessParOpera) {
2181
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
2184
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
2182 2185
       }
2183
-      return false
2186
+      return false;
2184 2187
     },
2185 2188
     isdialysateFormulatioCheck(key, value) {
2186
-      if (key == null || typeof key === 'undefined') {
2187
-        return false
2189
+      if (key == null || typeof key === "undefined") {
2190
+        return false;
2188 2191
       }
2189
-      var id = key.dialysate_formulation
2192
+      var id = key.dialysate_formulation;
2190 2193
       if (id in this.dialysateFormulationOptions) {
2191
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
2194
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
2192 2195
       }
2193
-      return false
2196
+      return false;
2194 2197
     },
2195 2198
     isValueIndexOfCheck: function(record, key, value) {
2196 2199
       if (record == null || record == undefined) {
2197
-        return false
2200
+        return false;
2198 2201
       } else {
2199
-        return record[key].indexOf(value) > -1
2202
+        return record[key].indexOf(value) > -1;
2200 2203
       }
2201 2204
     },
2202 2205
     setAdminUserES(key, id) {
2203 2206
       if (
2204
-        typeof key === 'undefined' ||
2207
+        typeof key === "undefined" ||
2205 2208
         key == null ||
2206
-        typeof key[id] === 'undefined'
2209
+        typeof key[id] === "undefined"
2207 2210
       ) {
2208
-        return ''
2211
+        return "";
2209 2212
       }
2210 2213
       if (key[id] == 0) {
2211
-        return ''
2214
+        return "";
2212 2215
       }
2213 2216
       if (key[id] in this.operatorMaps) {
2214
-        return this.operatorMaps[key[id]].es_url
2217
+        return this.operatorMaps[key[id]].es_url;
2215 2218
       } else {
2216
-        return ''
2219
+        return "";
2217 2220
       }
2218 2221
     },
2219 2222
     getAdminUser(key, id) {
2220 2223
       if (
2221
-        typeof key === 'undefined' ||
2224
+        typeof key === "undefined" ||
2222 2225
         key == null ||
2223
-        typeof key[id] === 'undefined'
2226
+        typeof key[id] === "undefined"
2224 2227
       ) {
2225
-        return ''
2228
+        return "";
2226 2229
       }
2227 2230
       if (key[id] == 0) {
2228
-        return ''
2231
+        return "";
2229 2232
       }
2230 2233
       if (key[id] == undefined) {
2231
-        return ''
2234
+        return "";
2232 2235
       }
2233 2236
       for (let i = 0; i < this.adminUser.length; i++) {
2234 2237
         if (this.adminUser[i].id == key[id]) {
2235
-          return this.adminUser[i].name
2238
+          return this.adminUser[i].name;
2236 2239
         }
2237 2240
       }
2238 2241
     },
2239 2242
     getTime(value, temp) {
2240 2243
       if (value != undefined) {
2241
-        return uParseTime(value, temp)
2244
+        return uParseTime(value, temp);
2242 2245
       }
2243
-      return ''
2246
+      return "";
2244 2247
     },
2245 2248
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2246 2249
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2247 2250
     isCheckBoxChecked: function(record, key, target_value) {
2248 2251
       if (record == null || record == undefined) {
2249
-        return false
2252
+        return false;
2250 2253
       } else {
2251
-        return record[key] == target_value
2254
+        return record[key] == target_value;
2252 2255
       }
2253 2256
     }
2254 2257
   }
2255
-}
2258
+};
2256 2259
 </script>
2257 2260
 
2258 2261
 <style scoped>

文件差異過大導致無法顯示
+ 1865 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue


+ 1 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue 查看文件

@@ -1706,14 +1706,11 @@
1706 1706
           return record[key] == target_value
1707 1707
         }
1708 1708
       }, getAge: function(val) {
1709
-        if (val.age == 0) {
1710 1709
           if (val.birthday == 0) {
1711 1710
             return ''
1712 1711
           }
1713 1712
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1714
-        } else {
1715
-          return val.age
1716
-        }
1713
+
1717 1714
       }, newAdviceGroupObject: function() {
1718 1715
         return Object.assign(
1719 1716
           {},

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue 查看文件

@@ -1253,14 +1253,10 @@
1253 1253
           return record[key] == target_value
1254 1254
         }
1255 1255
       }, getAge: function(val) {
1256
-        if (val.age == 0) {
1257 1256
           if (val.birthday == 0) {
1258 1257
             return ''
1259 1258
           }
1260 1259
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1261
-        } else {
1262
-          return val.age
1263
-        }
1264 1260
       }, newAdviceGroupObject: function() {
1265 1261
         return Object.assign(
1266 1262
           {},

+ 195 - 149
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue 查看文件

@@ -81,7 +81,8 @@
81 81
                   <!--</div>-->
82 82
                   <div class="inline_block" style="margin-left:20px;">
83 83
                     其它:
84
-                    <div class="under_line" style="width: 100px;text-align: left">{{ record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
84
+                    <div class="under_line" style="width: 100px;text-align: left">{{
85
+                      record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
85 86
                     </div>
86 87
                   </div>
87 88
                   <div class="inline_block" style="margin-left:20px;">
@@ -127,9 +128,12 @@
127 128
                   <div class="inline_block">
128 129
                     体液过多症状:
129 130
                     <check-box text="无" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 1)"></check-box>
130
-                    <check-box text="下肢水肿+" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 2)"></check-box>
131
-                    <check-box text="下肢水肿++" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
132
-                    <check-box text="下肢水肿+++" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
131
+                    <check-box text="下肢水肿+"
132
+                               :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 2)"></check-box>
133
+                    <check-box text="下肢水肿++"
134
+                               :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
135
+                    <check-box text="下肢水肿+++"
136
+                               :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
133 137
                   </div>
134 138
                   <div class="inline_block">
135 139
                     其它:
@@ -148,9 +152,12 @@
148 152
 
149 153
                   <div class="inline_block" style="margin-left:20px;">
150 154
                     透析前使用特殊药物:
151
-                    <check-box text="无" :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 1)"></check-box>
152
-                    <check-box text="降压药" :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 2)"></check-box>
153
-                    <check-box text="抗凝" :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 3)"></check-box>
155
+                    <check-box text="无"
156
+                               :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 1)"></check-box>
157
+                    <check-box text="降压药"
158
+                               :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 2)"></check-box>
159
+                    <check-box text="抗凝"
160
+                               :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 3)"></check-box>
154 161
                   </div>
155 162
                   <div class="inline_block">
156 163
                     其它:
@@ -163,7 +170,8 @@
163 170
                   <div class="inline_block">
164 171
                     透析液(mmol/L):
165 172
                     &emsp;Ca<sup>2+</sup>:
166
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.calcium">
173
+                    <div class="under_line" style="width: 60px;text-align: left"
174
+                         v-if="record.prescription&&record.prescription.calcium">
167 175
                       {{getFloat(record.prescription.calcium)}}
168 176
                     </div>
169 177
                     <div class="under_line" style="width: 60px;" v-else>
@@ -171,7 +179,8 @@
171 179
                     </div>
172 180
                     mmol/L
173 181
                     &emsp;Na<sup>+</sup>:
174
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.sodium">
182
+                    <div class="under_line" style="width: 60px;text-align: left"
183
+                         v-if="record.prescription&&record.prescription.sodium">
175 184
                       {{getFloat(record.prescription.sodium)}}
176 185
                     </div>
177 186
                     <div class="under_line" style="width: 60px;" v-else>
@@ -179,7 +188,8 @@
179 188
                     </div>
180 189
                     mmol/L
181 190
                     &emsp;K<sup>+</sup>:
182
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.kalium">
191
+                    <div class="under_line" style="width: 60px;text-align: left"
192
+                         v-if="record.prescription&&record.prescription.kalium">
183 193
                       {{getFloat(record.prescription.kalium)}}
184 194
                     </div>
185 195
                     <div class="under_line" style="width: 60px;" v-else>
@@ -191,7 +201,7 @@
191 201
                        v-if="record.prescription == null">
192 202
                     &emsp;置换液后/前稀释 总量:
193 203
 
194
-                    <div class="under_line" style="width: 60px;"  >
204
+                    <div class="under_line" style="width: 60px;">
195 205
                       {{'/'}}
196 206
                     </div>
197 207
                     L
@@ -199,17 +209,20 @@
199 209
                   <div class="inline_block"
200 210
                        v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
201 211
                     &emsp;置换液后/前稀释 总量:
202
-                    <div class="under_line" style="width: 60px;text-align: left"  v-if="record.prescription&&record.prescription.displace_liqui_value">
212
+                    <div class="under_line" style="width: 60px;text-align: left"
213
+                         v-if="record.prescription&&record.prescription.displace_liqui_value">
203 214
                       {{record.prescription.displace_liqui_value}}
204 215
                     </div>
205
-                    <div class="under_line" style="width: 60px;"  v-else>
216
+                    <div class="under_line" style="width: 60px;" v-else>
206 217
                       {{'/'}}
207 218
                     </div>
208 219
                     L
209 220
                   </div>
210
-                  <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
221
+                  <div class="inline_block"
222
+                       v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
211 223
                     &emsp;置换液前稀释 总量:
212
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.displace_liqui_value">
224
+                    <div class="under_line" style="width: 60px;text-align: left"
225
+                         v-if="record.prescription&&record.prescription.displace_liqui_value">
213 226
                       {{record.prescription.displace_liqui_value}}
214 227
                     </div>
215 228
                     <div class="under_line" style="width: 60px;" v-else>
@@ -217,9 +230,11 @@
217 230
                     </div>
218 231
                     L
219 232
                   </div>
220
-                  <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
233
+                  <div class="inline_block"
234
+                       v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
221 235
                     &emsp;置换液后稀释 总量:
222
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.displace_liqui_value">
236
+                    <div class="under_line" style="width: 60px;text-align: left"
237
+                         v-if="record.prescription&&record.prescription.displace_liqui_value">
223 238
                       {{record.prescription.displace_liqui_value}}
224 239
                     </div>
225 240
                     <div class="under_line" style="width: 60px;" v-else>
@@ -231,9 +246,12 @@
231 246
                 <div class="row" style="padding: 2px 0;line-height:24px;">
232 247
                   <div class="inline_block">
233 248
                     血管通路:
234
-                    <check-box text="内瘘" :checked="isCheckBoxChecked(record.prescription, 'blood_access', 1)"></check-box>
235
-                    <check-box text="直穿" :checked="isCheckBoxChecked(record.prescription, 'blood_access', 2)"></check-box>
236
-                    <check-box text="导管" :checked="isCheckBoxChecked(record.prescription, 'blood_access', 3)"></check-box>
249
+                    <check-box text="内瘘"
250
+                               :checked="isCheckBoxChecked(record.prescription, 'blood_access', 1)"></check-box>
251
+                    <check-box text="直穿"
252
+                               :checked="isCheckBoxChecked(record.prescription, 'blood_access', 2)"></check-box>
253
+                    <check-box text="导管"
254
+                               :checked="isCheckBoxChecked(record.prescription, 'blood_access', 3)"></check-box>
237 255
                   </div>
238 256
                   <div class="inline_block">
239 257
                     &emsp;血流量:
@@ -259,7 +277,8 @@
259 277
                 <div class="row" style="padding: 2px 0;line-height:24px;">
260 278
                   <div class="inline_block">
261 279
                     透前体重:
262
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.assessment_before_dislysis">
280
+                    <div class="under_line" style="width: 60px;text-align: left"
281
+                         v-if="record.assessment_before_dislysis">
263 282
                       {{record.assessment_before_dislysis.weight_before}}
264 283
                     </div>
265 284
                     <div class="under_line" style="width: 60px;" v-else>
@@ -269,7 +288,8 @@
269 288
                   </div>
270 289
                   <div class="inline_block">
271 290
                     &emsp;设定超滤量:
272
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.target_ultrafiltration">
291
+                    <div class="under_line" style="width: 60px;text-align: left"
292
+                         v-if="record.prescription&&record.prescription.target_ultrafiltration">
273 293
                       {{getFloat(record.prescription.target_ultrafiltration)}}
274 294
                     </div>
275 295
                     <div class="under_line" style="width: 60px;" v-else>
@@ -279,7 +299,8 @@
279 299
                   </div>
280 300
                   <div class="inline_block">
281 301
                     &emsp;实际超滤量:
282
-                    <div class="under_line" style="width:60px;text-align: left" v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration">
302
+                    <div class="under_line" style="width:60px;text-align: left"
303
+                         v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration">
283 304
                       {{getFloat(record.assessment_after_dislysis.actual_ultrafiltration)}}
284 305
                     </div>
285 306
                     <div class="under_line" style="width:60px;" v-else>
@@ -289,7 +310,8 @@
289 310
                   </div>
290 311
                   <div class="inline_block">
291 312
                     透后体重:
292
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.weight_after">
313
+                    <div class="under_line" style="width: 60px;text-align: left"
314
+                         v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.weight_after">
293 315
                       {{record.assessment_after_dislysis.weight_after}}
294 316
                     </div>
295 317
                     <div class="under_line" style="width: 60px" v-else>
@@ -302,61 +324,68 @@
302 324
             </tr>
303 325
             </tbody>
304 326
           </table>
305
-          <div :style="record.advices2&&record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;position: relative;border-top:0;':'border-top:0;text-align:center;position: relative;border-top:0;'">
327
+          <div
328
+            :style="record.advices2&&record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;position: relative;border-top:0;':'border-top:0;text-align:center;position: relative;border-top:0;'">
306 329
             <table class="print-table-no" border="1" style="border-top:0;" count="0">
307 330
               <tbody>
308
-                <tr style="line-height:35px;padding:8px 5px;">
309
-                  <td colspan="7" style="font-size: 18px">医嘱</td>
310
-                </tr>
311
-                <tr style="line-height:35px;padding:8px 5px;">
312
-                  <td colspan="4" style="font-size: 16px">开医嘱</td>
313
-                  <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
314
-                </tr>
315
-                <tr style="line-height:35px;padding:8px 5px;">
316
-                  <td style="font-size: 16px" width="10%">时间</td>
317
-                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
318
-                  <td style="font-size: 16px" width="10%">医生签名</td>
319
-                  <td style="font-size: 16px" width="10%">核对人签名</td>
320
-                  <td style="font-size: 16px" width="10%">执行人签名</td>
321
-                  <td style="font-size: 16px" width="10%">时间</td>
331
+              <tr style="line-height:35px;padding:8px 5px;">
332
+                <td colspan="7" style="font-size: 18px">医嘱</td>
333
+              </tr>
334
+              <tr style="line-height:35px;padding:8px 5px;">
335
+                <td colspan="4" style="font-size: 16px">开医嘱</td>
336
+                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
337
+              </tr>
338
+              <tr style="line-height:35px;padding:8px 5px;">
339
+                <td style="font-size: 16px" width="10%">时间</td>
340
+                <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
341
+                <td style="font-size: 16px" width="10%">医生签名</td>
342
+                <td style="font-size: 16px" width="10%">核对人签名</td>
343
+                <td style="font-size: 16px" width="10%">执行人签名</td>
344
+                <td style="font-size: 16px" width="10%">时间</td>
345
+              </tr>
346
+              <template v-for="(group, group_index) in record.advices">
347
+                <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
348
+                  <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
349
+                    <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
350
+                    <span v-else>&nbsp;<br/>&nbsp;</span>
351
+                  </td>
352
+                  <td height="60px" class="advice-name" style="padding-left:7px;"
353
+                      :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2"
354
+                      v-if="advice.isShow == 2">
355
+                    <span>{{advice.advice_name }}</span>
356
+                    <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
357
+                    <!--<span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
358
+                    <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
359
+                    <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
360
+                    <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
361
+                    <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
362
+                    <span
363
+                      v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0">({{advice.remark}})</span>
364
+                  </td>
365
+                  <td colspan="2" height="60px" style="text-align: center" v-else>
366
+                    <span>{{advice.delivery_way}}</span>
367
+                    <span>{{advice.execution_frequency}}</span>
368
+                    <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
369
+                  </td>
370
+                  <td width="10%"
371
+                      v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2"></td>
372
+                  <td height="60px">
373
+                    <span
374
+                      v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
375
+                    <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else>
376
+                  </td>
377
+                  <td height="60px">
378
+                    <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
379
+                    <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else>
380
+                  </td>
381
+                  <td height="60px">
382
+                    <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
383
+                    <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else>
384
+                  </td>
385
+                  <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span>
386
+                  </td>
322 387
                 </tr>
323
-                <template v-for="(group, group_index) in record.advices">
324
-                  <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
325
-                    <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
326
-                      <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
327
-                      <span v-else>&nbsp;<br/>&nbsp;</span>
328
-                    </td>
329
-                    <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
330
-                      <span>{{advice.advice_name }}</span>
331
-                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
332
-                       <!--<span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
333
-                      <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
334
-                      <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
335
-                      <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
336
-                      <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
337
-                      <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
338
-                    </td>
339
-                    <td colspan="2"  height="60px" style="text-align: center" v-else >
340
-                      <span>{{advice.delivery_way}}</span>
341
-                      <span>{{advice.execution_frequency}}</span>
342
-                      <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
343
-                    </td>
344
-                    <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
345
-                    <td height="60px">
346
-                      <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
347
-                      <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else >
348
-                    </td>
349
-                    <td height="60px">
350
-                      <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
351
-                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else >
352
-                    </td>
353
-                    <td height="60px">
354
-                      <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
355
-                      <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else >
356
-                    </td>
357
-                    <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
358
-                  </tr>
359
-                </template>
388
+              </template>
360 389
               </tbody>
361 390
             </table>
362 391
             <div class="print-yema4">1</div>
@@ -407,58 +436,63 @@
407 436
               </div>
408 437
               <table class="print-table-no" border="1" count="0">
409 438
                 <tbody>
410
-                  <tr style="line-height:35px;padding:8px 5px;">
411
-                    <td colspan="7" style="font-size: 18px">医嘱</td>
412
-                  </tr>
413
-                  <tr style="line-height:35px;padding:8px 5px;">
414
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
415
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
416
-                  </tr>
417
-                  <tr style="line-height:35px;padding:8px 5px;">
418
-                    <td style="font-size: 16px" width="10%">时间</td>
419
-                    <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
420
-                    <td style="font-size: 16px" width="10%">医生签名</td>
421
-                    <td style="font-size: 16px" width="10%">核对人签名</td>
422
-                    <td style="font-size: 16px" width="10%">执行人签名</td>
423
-                    <td style="font-size: 16px" width="10%">时间</td>
439
+                <tr style="line-height:35px;padding:8px 5px;">
440
+                  <td colspan="7" style="font-size: 18px">医嘱</td>
441
+                </tr>
442
+                <tr style="line-height:35px;padding:8px 5px;">
443
+                  <td colspan="4" style="font-size: 16px">开医嘱</td>
444
+                  <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
445
+                </tr>
446
+                <tr style="line-height:35px;padding:8px 5px;">
447
+                  <td style="font-size: 16px" width="10%">时间</td>
448
+                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
449
+                  <td style="font-size: 16px" width="10%">医生签名</td>
450
+                  <td style="font-size: 16px" width="10%">核对人签名</td>
451
+                  <td style="font-size: 16px" width="10%">执行人签名</td>
452
+                  <td style="font-size: 16px" width="10%">时间</td>
453
+                </tr>
454
+                <template v-for="(group, group_index) in record.advices2">
455
+                  <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
456
+                    <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
457
+                      <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
458
+                      <span v-else>&nbsp;<br/>&nbsp;</span>
459
+                    </td>
460
+                    <td height="60px" class="advice-name" style="padding-left:7px;"
461
+                        :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2"
462
+                        v-if="advice.isShow == 2">
463
+                      <span>{{advice.advice_name }}</span>
464
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
465
+                      <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
466
+                      <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
467
+                      <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
468
+                      <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
469
+                      <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
470
+                      <span
471
+                        v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0">({{advice.remark}})</span>
472
+                    </td>
473
+                    <td colspan="2" height="60px" style="text-align: center" v-else>
474
+                      <span>{{advice.delivery_way}}</span>
475
+                      <span>{{advice.execution_frequency}}</span>
476
+                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
477
+                    </td>
478
+                    <td width="10%"
479
+                        v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2"></td>
480
+                    <td height="60px">
481
+                      <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
482
+                      <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else>
483
+                    </td>
484
+                    <td height="60px">
485
+                      <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
486
+                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else>
487
+                    </td>
488
+                    <td height="60px">
489
+                      <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
490
+                      <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else>
491
+                    </td>
492
+                    <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span>
493
+                    </td>
424 494
                   </tr>
425
-                  <template v-for="(group, group_index) in record.advices2">
426
-                    <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
427
-                      <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
428
-                        <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
429
-                        <span v-else>&nbsp;<br/>&nbsp;</span>
430
-                      </td>
431
-                      <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
432
-                        <span>{{advice.advice_name }}</span>
433
-                        <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
434
-                        <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
435
-                        <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
436
-                        <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
437
-                        <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
438
-                        <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
439
-                        <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
440
-                      </td>
441
-                      <td colspan="2"  height="60px" style="text-align: center" v-else >
442
-                        <span>{{advice.delivery_way}}</span>
443
-                        <span>{{advice.execution_frequency}}</span>
444
-                        <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
445
-                      </td>
446
-                      <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
447
-                      <td height="60px">
448
-                        <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
449
-                        <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else >
450
-                      </td>
451
-                      <td height="60px">
452
-                        <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
453
-                        <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else >
454
-                      </td>
455
-                      <td height="60px">
456
-                        <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
457
-                        <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else >
458
-                      </td>
459
-                      <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
460
-                    </tr>
461
-                  </template>
495
+                </template>
462 496
                 </tbody>
463 497
               </table>
464 498
               <div class="print-yema5">2</div>
@@ -476,7 +510,7 @@
476 510
   import { jsGetAge, uParseTime } from '@/utils/tools'
477 511
   import { getDataConfig } from '@/utils/data'
478 512
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
479
-  import print from 'print-js'
513
+
480 514
   export default {
481 515
     name: 'BatchPrintOrder',
482 516
     components: {
@@ -532,7 +566,6 @@
532 566
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
533 567
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
534 568
 
535
-
536 569
       var xtuser = this.$store.getters.xt_user
537 570
       this.orgname = xtuser.org.org_name
538 571
       //   this.orgname = "遂溪方济医院";
@@ -696,8 +729,8 @@
696 729
                   if (advice.parent_id > 0) {
697 730
                     if (this.advice_groups.length > 0) {
698 731
                       var parent_group = this.advice_groups[
699
-                        this.advice_groups.length - 1
700
-                      ]
732
+                      this.advice_groups.length - 1
733
+                        ]
701 734
                       if (parent_group.advices.length > 0) {
702 735
                         if (parent_group.advices[0].id == advice.parent_id) {
703 736
                           parent_group.advices.push(advice)
@@ -743,8 +776,8 @@
743 776
                     if (advice.parent_id > 0) {
744 777
                       if (this.advice_groups_2.length > 0) {
745 778
                         var parent_group = this.advice_groups_2[
746
-                          this.advice_groups_2.length - 1
747
-                        ]
779
+                        this.advice_groups_2.length - 1
780
+                          ]
748 781
                         if (parent_group.advices.length > 0) {
749 782
                           if (parent_group.advices[0].id == advice.parent_id) {
750 783
                             parent_group.advices.push(advice)
@@ -949,13 +982,11 @@
949 982
           return record[key] == target_value
950 983
         }
951 984
       }, getAge: function(val) {
952
-        if (val.age == 0) {
953
-          if (val.birthday == 0) {
954
-            return ''
955
-          }
956
-          return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
985
+        val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
986
+        if (val.birthday != 0) {
987
+          return jsGetAge(val.birth, '-')
957 988
         } else {
958
-          return val.age
989
+          return ''
959 990
         }
960 991
       }, newAdviceGroupObject: function() {
961 992
         return Object.assign(
@@ -1104,34 +1135,49 @@
1104 1135
   .advice-children {
1105 1136
     display: flex;
1106 1137
   }
1107
-   .margin-bottom-300 {
1108
-    margin-bottom:450px;
1138
+
1139
+  .margin-bottom-300 {
1140
+    margin-bottom: 450px;
1109 1141
   }
1142
+
1110 1143
   .margin-bottom-600 {
1111
-    margin-bottom:600px;
1144
+    margin-bottom: 600px;
1112 1145
   }
1146
+
1113 1147
   .margin-bottom-900 {
1114
-    margin-bottom:900px;
1148
+    margin-bottom: 900px;
1115 1149
   }
1116
-  .print-yema{
1150
+
1151
+  .print-yema {
1117 1152
     position: absolute;
1118 1153
     left: 50%;
1119 1154
   }
1120
-  .print-yema2{
1155
+
1156
+  .print-yema2 {
1121 1157
     position: absolute;
1122 1158
     left: 50%;
1123 1159
   }
1124
-  .print-yema3{
1160
+
1161
+  .print-yema3 {
1125 1162
     position: absolute;
1126 1163
     left: 50%;
1127 1164
   }
1128
-  .print-yema4{
1165
+
1166
+  .print-yema4 {
1129 1167
     position: absolute;
1130 1168
     left: 50%;
1131 1169
   }
1132
-  .print-yema5{
1170
+
1171
+  .print-yema5 {
1133 1172
     position: absolute;
1134 1173
     left: 50%;
1135 1174
   }
1136
-  .did_checke::after {content: "\221A";font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}
1175
+
1176
+  .did_checke::after {
1177
+    content: "\221A";
1178
+    font-size: 8px;
1179
+    margin-left: 2px;
1180
+    margin-top: 2px;
1181
+    position: absolute;
1182
+  }
1137 1183
 </style>

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue 查看文件

@@ -1614,14 +1614,10 @@
1614 1614
           return record[key] == target_value
1615 1615
         }
1616 1616
       }, getAge: function(val) {
1617
-        if (val.age == 0) {
1618 1617
           if (val.birthday == 0) {
1619 1618
             return ''
1620 1619
           }
1621 1620
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1622
-        } else {
1623
-          return val.age
1624
-        }
1625 1621
       }, newAdviceGroupObject: function() {
1626 1622
         return Object.assign(
1627 1623
           {},

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue 查看文件

@@ -1170,14 +1170,10 @@
1170 1170
           return record[key] == target_value
1171 1171
         }
1172 1172
       }, getAge: function(val) {
1173
-        if (val.age == 0) {
1174 1173
           if (val.birthday == 0) {
1175 1174
             return ''
1176 1175
           }
1177 1176
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1178
-        } else {
1179
-          return val.age
1180
-        }
1181 1177
       }, newAdviceGroupObject: function() {
1182 1178
         return Object.assign(
1183 1179
           {},

+ 4 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue 查看文件

@@ -937,14 +937,11 @@
937 937
           return record[key] == target_value
938 938
         }
939 939
       }, getAge: function(val) {
940
-        if (val.age == 0) {
941
-          if (val.birthday == 0) {
942
-            return ''
943
-          }
944
-          return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
945
-        } else {
946
-          return val.age
940
+        if (val.birthday == 0) {
941
+          return ''
947 942
         }
943
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
944
+
948 945
       }, newAdviceGroupObject: function() {
949 946
         return Object.assign(
950 947
           {},

+ 363 - 289
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue 查看文件

@@ -13,11 +13,11 @@
13 13
     </div>
14 14
     <div class="app-container">
15 15
       <div id="print_content">
16
-        <div v-for="(record, index) in records" :key="index" class="print_page_main_content">
16
+        <div v-for="(record, index) in records" :key="record.id" class="print_page_main_content">
17 17
           <div id="dialysis-print-box">
18 18
             <div class="dialysis-print-order">
19 19
               <div class="order-yy-name"></div>
20
-              <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
20
+              <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析(滤过)记录表单</div>
21 21
 
22 22
 
23 23
               <table class="print-table" style="margin-top: 10px;" border="1">
@@ -29,25 +29,35 @@
29 29
                 <tr>
30 30
                   <td>
31 31
                     <div style="display:flex;">
32
-                     <span style="flex:1;text-align:left;margin-left:15px;">
33
-                       姓名: {{ record.patient.name }}</span>
32
+                     <span style="flex:1;text-align:left;margin-left:15px;"> 姓名: {{ record.patient.name }}</span>
34 33
                       <span style="flex:1;margin-left:15px;">
35
-                         年龄:{{ getAge(record.patient) }}</span>
34
+                         年龄:{{ getAge(record.patient) }}
35
+                      </span>
36 36
                       <span style="flex:1;margin-left:15px;">
37
-                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}</span>
37
+                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}
38
+                      </span>
38 39
                       <span style="flex:1;margin-left:15px;">
39
-                         透析机号:{{ record.patient.dialysis_no }}</span>
40
+                         透析机号: {{
41
+                            record.dialysis_order &&
42
+                            record.dialysis_order.device_number &&
43
+                            record.dialysis_order.device_number.number.length >
44
+                              0
45
+                              ? record.dialysis_order.device_number.number
46
+                              : record.device_number.number
47
+                          }}
48
+                      </span>
40 49
                       <span style="flex:1;margin-left:15px;">第({{
41 50
                             record.patient.total_dialysis
42
-                              ? record.patient.total_dialysis
51
+                              ? record.patient.total_dialysis + 1
43 52
                               : "/"
44
-                          }})次透析</span>
53
+                          }})次透析
54
+                      </span>
45 55
                     </div>
46 56
                   </td>
47 57
                 </tr>
48 58
                 <tr>
49 59
                   <td style="text-align:left;">
50
-                    <span style="display:inline-block;margin-left:15px;">上机前病情:</span>
60
+                    <span style="display:inline-block;margin-left:15px;"> 上机前病情:</span>
51 61
                     <div style="display:inline-block;">
52 62
                       <label-box
53 63
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
@@ -76,7 +86,7 @@
76 86
               <table class="print-table" border="1">
77 87
                 <tr>
78 88
                   <td style="text-align:left;">
79
-                    <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
89
+                    <span style="display:inline-block;margin-left:15px;"> 治疗方式:</span>
80 90
                     <label-box
81 91
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
82 92
                       showValue="HD"
@@ -162,37 +172,74 @@
162 172
               <table class="print-table" border="1">
163 173
                 <tr>
164 174
                   <td style="text-align:left;">
165
-                    <span style="display:inline-block;margin-left:15px;">处方脱水量:{{record.prescription.target_ultrafiltration}}ml</span>&nbsp;
166
-                    <span style="display:inline-block;margin-left:15px;">透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;
167
-                    <span style="display:inline-block;margin-left:15px;">血流量:{{record.prescription.blood_flow_volume}}ml/min</span>&nbsp;
175
+                    <span style="display:inline-block;margin-left:15px;"> 处方脱水量:{{record.prescription.target_ultrafiltration}}ml</span>&nbsp;
176
+                    <span style="display:inline-block;margin-left:15px;"> 透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;      
168 177
                   </td>
169 178
                   <td>
170
-                    <span>医生签名:{{getName(record.prescription.creater)}}</span>
179
+                   <span>医生签名:</span>    
180
+                    <span
181
+                            v-if="
182
+                              !record.advices ||
183
+                                typeof record.advices[0] == 'undefined' ||
184
+                                typeof record.advices[0][0] == 'undefined'
185
+                            "
186
+                          ></span>
187
+                          <span
188
+                            v-else-if="
189
+                              setAdminUserES(
190
+                                record.advices[0][0],
191
+                                'advice_doctor'
192
+                              ) == ''
193
+                            "
194
+                            >{{
195
+                              getAdminUser(
196
+                                record.advices[0][0],
197
+                                "advice_doctor"
198
+                              )
199
+                            }}</span
200
+                          >
201
+                          <img
202
+                            class="es-img"
203
+                            :src="
204
+                              setAdminUserES(
205
+                                record.advices[0][0],
206
+                                'advice_doctor'
207
+                              )
208
+                            "
209
+                            alt=""
210
+                            srcset=""
211
+                            v-else
212
+                            style="height: 20px;"
213
+                          />  
171 214
                   </td>
172 215
                 </tr>
173 216
               </table>
174 217
               <table class="print-table" border="1">
175 218
                 <tr>
176
-                  <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
177
-                  >透析机:{{record.device_number.number}}</span</td>
178
-                  <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
179
-                  >透析(滤)器:{{record.prescription.dialyzer_perfusion_apparatus}}</span</td>
219
+                  <td style="text-align:left;">
220
+                  <span style="display:inline-block;margin-left:15px;"
221
+                  >透析机:{{record.device_number.number}}
222
+                  </span>
223
+                  </td>
224
+                  <td style="text-align:left;">
225
+                  <span style="display:inline-block;margin-left:15px;">透析(滤)器:{{record.prescription.dialyzer_perfusion_apparatus}}</span></td>
180 226
                   </td>
181 227
                   <td style="text-align:left;">
182
-                    <span style="display:inline-block;margin-left:15px;">透析液(mmol/L):</span>
228
+                    <span style="display:inline-block;margin-left:15px;"> 透析液(mmol/L):</span>
183 229
                      <span v-if="record.prescription.dialysate_formulation == 1">
184
-                     常规低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
185
-                  </span>
230
+                     常规低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
231
+                    </span>
232
+
186 233
                     <span v-if="record.prescription.dialysate_formulation == 2">低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
187
-                      </span>
234
+                    </span>
188 235
                     <span v-if="record.prescription.dialysate_formulation == 3">
189
-                        高钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
236
+                        高钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
190 237
                      </span>
191 238
                     <span v-if="record.prescription.dialysate_formulation == 4">
192
-                         低钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
193
-                      </span>
239
+                         低钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
240
+                    </span>
194 241
                     <span v-if="record.prescription.dialysate_formulation == 5">
195
-                         高钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
242
+                         高钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
196 243
                      </span>
197 244
                   </td>
198 245
                 </tr>
@@ -200,9 +247,7 @@
200 247
               <table class="print-table" border="1">
201 248
                 <tr>
202 249
                   <td style="text-align:left;">
203
-              <span style="display:inline-block;margin-left:15px;"
204
-              >血管通路:</span
205
-              >
250
+              <span style="display:inline-block;margin-left:15px;">血管通路:</span>
206 251
                     &nbsp;
207 252
                     <label-box
208 253
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
@@ -226,8 +271,34 @@
226 271
                     ></label-box>
227 272
                     &nbsp;
228 273
                     <label-box
229
-                      :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时颈静脉导管' && record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时股静脉导管'  ? true : false" showValue="其它"></label-box>
230
-                    &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{getName(record.dialysis_order.puncture_nurse)}}</span>
274
+                      :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时颈静脉导管' && record.assessment_before_dislysis.blood_access_part_opera_name !='长期静脉导管'  && record.assessment_before_dislysis.blood_access_part_opera_name !='临时股静脉导管'  ? true : false" showValue="其它"></label-box>
275
+                    &nbsp;&nbsp;&nbsp;&nbsp;
276
+                    <span>穿刺者:</span>
277
+                    <span
278
+                            v-if="
279
+                              setAdminUserES(
280
+                                record.dialysis_order,
281
+                                'puncture_nurse'
282
+                              ) == ''
283
+                            "
284
+                            >{{
285
+                              getAdminUser(record.dialysis_order, "puncture_nurse")
286
+                            }}</span
287
+                          >
288
+                          <img
289
+                            class="es-img"
290
+                            :src="
291
+                              setAdminUserES(
292
+                                record.dialysis_order,
293
+                                'puncture_nurse'
294
+                              )
295
+                            "
296
+                            alt=""
297
+                            srcset=""
298
+                            v-else
299
+                            style="height: 20px;"
300
+                          />
301
+                  
231 302
                   </td>
232 303
                 </tr>
233 304
                 <tr>
@@ -239,23 +310,22 @@
239 310
                   <th rowspan="2" width="40">时间</th>
240 311
                   <th colspan="3">透析参数</th>
241 312
                   <th colspan="6">生命体征</th>
242
-                  <th>病情变化及处理</th>
313
+                  <th>治疗中病情变化</th>
243 314
                 </tr>
244 315
                 <tr>
245
-                  <td width="60">TMP<br/>(mmHg)</td>
246
-                  <td width="60">静脉压<br/>(mmHg)</td>
247
-                  <td width="60">血流量<br/>(ml/min)</td>
248
-                  <td width="60">脱水量<br/>(ml)</td>
249
-                  <td width="50">T<br/>(℃)</td>
250
-                  <td width="50">HR<br/>(bpm)</td>
251
-                  <td width="50">R<br/>(bpm)</td>
252
-                  <td width="50">BP<br/>(mmHg)</td>
253
-                  <td width="60">SpO₂<br/>(%)</td>
316
+                  <td width="60"><p style="height:20px;line-height:20px">TMP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
317
+                  <td width="60"><p style="height:20px;line-height:20px">静脉压</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
318
+                  <td width="60"><p style="height:20px;line-height:20px">血流量</p><p style="height:20px;line-height:20px">(ml/min)</p></td>
319
+                  <td width="60"><p style="height:20px;line-height:20px">脱水量</p><p style="height:20px;line-height:20px">(ml)</p></td>
320
+                  <td width="50"><p style="height:20px;line-height:20px">T</p><p style="height:20px;line-height:20px">(℃)</p></td>
321
+                  <td width="50"><p style="height:20px;line-height:20px">HR</p><p style="height:20px;line-height:20px">(bpm)</p></td>
322
+                  <td width="50"><p style="height:20px;line-height:20px">R</p><p style="height:20px;line-height:20px">(bpm)</p></td>
323
+                  <td width="60"><p style="height:20px;line-height:20px">BP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
324
+                  <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
254 325
                   <td>记录</td>
255 326
                 </tr>
256
-                <tr v-for="(monitor,
257
-                          index) in record.monitor_records"
258
-                    :key="index">
327
+                <tr v-for="(monitor,monitor_index) in record.monitor_records"
328
+                    :key="monitor.id" style="height:30px">
259 329
                   <td>{{ getTime(monitor.operate_time, '{h}:{i}') }}</td>
260 330
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
261 331
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
@@ -281,10 +351,36 @@
281 351
                   </td>
282 352
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
283 353
                   <td style="line-height:16px;padding:0px;">
284
-                    {{ monitor.end }}
285
-                    {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
354
+                  
355
+                    {{ monitor.symptom }}&nbsp;{{ monitor.result }}
286 356
                   </td>
287 357
                 </tr>
358
+                <tr
359
+                    v-for="(monitor_record,
360
+                          indexTwo) in record.monitor_records2"
361
+                          :key="monitor_record.id"
362
+                        >
363
+                          <td></td>
364
+                          <td></td>
365
+                          <td></td>
366
+                          <td></td>
367
+                          <td></td>
368
+                          <td></td>
369
+                          <td></td>
370
+                          <td></td>
371
+                          <td></td>
372
+                          <td></td>
373
+                          <td style="line-height:16px;padding:0px;">
374
+                            <div
375
+                              style="height:40px;line-height:20px; overflow:hidden;"
376
+                            >
377
+                              <span
378
+                                style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
379
+                              >
380
+                              </span>
381
+                            </div>
382
+                          </td>
383
+                        </tr>
288 384
               </table>
289 385
               <table class="print-table" border="1">
290 386
                 <tr>
@@ -293,72 +389,93 @@
293 389
                   <td>执行</td>
294 390
                   <td>核对</td>
295 391
                   <td>上次透后体重</td>
296
-                  <td> {{
297
-                            record.assessment_before_dislysis &&
298
-                            record.assessment_before_dislysis
299
-                              .weight_after_last_transparency
300
-                              ? parseFloat(
301
-                                  record.assessment_before_dislysis
302
-                                    .weight_after_last_transparency -
303
-                                    record.assessment_before_dislysis
304
-                                      .additional_weight
392
+                  <td>
393
+                    {{
394
+                         record.lastafterweight.weight_after 
395
+                            ? parseFloat(
396
+                                  record.lastafterweight.weight_after
305 397
                                 ).toFixed(1)
306 398
                               : "未称重"
307
-                          }}kg</td>
399
+                          }}kg
400
+                  </td>
308 401
                 </tr>
402
+
403
+                
404
+
309 405
                 <tr v-for="(advice, advice_index) in record.advices"
310
-                    :key="advice_index">
311
-                  <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
406
+                    :key="advices.id">
407
+                  <td> {{ getTime(advice[0].start_time, "{h}:{i}") }}</td>
408
+                 
312 409
                   <td>
313
-                    <span v-if="advice.parent_id > 0">---></span>
314
-                    <span>{{ advice.advice_name }}</span>
315
-                    <span v-if="advice && advice.advice_desc"
316
-                    >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
317
-                    <span v-if="advice.prescribing_number">
318
-                       &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
319
-                    <span v-if="advice.single_dose != 0">
320
-                          {{ advice.single_dose}}{{ advice.single_dose_unit }}</span>
321
-                    <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
322
-                    <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
323
-                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
410
+                      <span v-if="advice[0].parent_id > 0">└</span>
411
+                       <span>{{ advice[0].advice_name }}</span>
412
+                        <span
413
+                           >{{ advice[0].advice_desc
414
+                         }}{{ advice[0].drug_spec_unit }}</span
415
+                            >
416
+                            <span v-if="advice[0].prescribing_number"
417
+                              >* {{ advice[0].prescribing_number
418
+                              }}{{ advice[0].prescribing_number_unit }}</span
419
+                            >
420
+                            <span v-if="advice[0].single_dose != 0"
421
+                              >{{ advice[0].single_dose
422
+                              }}{{ advice[0].single_dose_unit }}</span
423
+                            >
424
+                            <span>{{ advice[0].delivery_way }}</span>
425
+                            <span>{{ advice[0].execution_frequency }}</span>
426
+                    </td>
427
+
324 428
                   <td>
325
-           
326
-           
327
-           
328
-           
329
-             
330
-             
331
-             
332
-                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getName(advice.advice_doctor) }}</span>
333
-                    <img
334
-                      style="height:20px;"
335
-                      :src="setAdminUserES(advice.advice_doctor)"
336
-                      alt=""
337
-                      srcset=""
338
-                      v-else
339
-                    />
340
-                  </td>
429
+                      <span
430
+                           v-if="
431
+                             setAdminUserES(advice[0], 'execution_staff') ==
432
+                                  ''
433
+                              "
434
+                              >{{
435
+                                getAdminUser(advice[0], "execution_staff")
436
+                              }}</span
437
+                            >
438
+                            <img
439
+                              class="es-img"
440
+                              :src="
441
+                                setAdminUserES(advice[0], 'execution_staff')
442
+                              "
443
+                              alt=""
444
+                              srcset=""
445
+                              v-else
446
+                              style="height: 20px;"
447
+                            />
448
+                    </td>
449
+
341 450
                   <td>
342
-                   <span
343
-                     v-if="setAdminUserES(advice.execution_staff) == ''">{{ getName(advice.execution_staff) }}</span>
344
-                    <img
345
-                      style="height:20px;"
346
-                      :src="setAdminUserES(advice.execution_staff)"
347
-                      alt=""
348
-                      srcset=""
349
-                      v-else
350
-                    />
451
+                   <span>
452
+                    <span
453
+                         v-if="setAdminUserES(advice[0], 'checker') == ''"
454
+                              >{{ getAdminUser(advice[0], "checker") }}</span
455
+                            >
456
+                            <img
457
+                              class="es-img"
458
+                              :src="setAdminUserES(advice[0], 'checker')"
459
+                              alt=""
460
+                              srcset=""
461
+                              v-else
462
+                              style="height: 20px;"
463
+                            /></span>
351 464
                   </td>
352 465
                   <td v-if="advice_index==0">透前体重</td>
353 466
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
354 467
                   <td v-if="advice_index==1">体重增加量</td>
355
-                  <td v-if="advice_index==1">{{record.assessment_before_dislysis.weight_gain}}kg</td>
468
+                  <td v-if="advice_index==1">
469
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.lastafterweight.weight_after).toFixed(1)}}kg</span>
470
+               
471
+                  </td>
356 472
                   <td v-if="advice_index==2">干体重(DW)</td>
357 473
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
358 474
                   <td v-if="advice_index==3">较干体重增加量</td>
359
-                  <td v-if="advice_index==3">{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(1)}}kg</td>
475
+                  <td v-if="advice_index==3">
476
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(2)}}</span>kg</td>
360 477
                   <td v-if="advice_index==4">净脱水量</td>
361
-                  <td v-if="advice_index==4">{{record.assessment_after_dislysis.actual_ultrafiltration}}ml</td>
478
+                  <td v-if="advice_index==4">{{record.assessment_after_dislysis.actual_ultrafiltration}}L</td>
362 479
                   <td v-if="advice_index==5">透后体重</td>
363 480
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
364 481
                   <td v-if="advice_index==6">本次透析体重下降量</td>
@@ -371,66 +488,66 @@
371 488
                 </tr>
372 489
                 <tr>
373 490
                   <td colspan="6" style="text-align:left;">
374
-                    医生签名:<template
491
+                    医生签名: <span
375 492
                             v-if="
376
-                              record.prescription &&
377
-                                record.prescription.prescription_doctor
493
+                              !record.advices ||
494
+                                typeof record.advices[0] == 'undefined' ||
495
+                                typeof record.advices[0][0] == 'undefined'
496
+                            "
497
+                          ></span>
498
+                          <span
499
+                            v-else-if="
500
+                              setAdminUserES(
501
+                                record.advices[0][0],
502
+                                'advice_doctor'
503
+                              ) == ''
378 504
                             "
505
+                            >{{
506
+                              getAdminUser(
507
+                                record.advices[0][0],
508
+                                "advice_doctor"
509
+                              )
510
+                            }}</span
379 511
                           >
380
-                            <span
381
-                              v-if="
382
-                                setAdminUserES(
383
-                                  record.prescription.prescription_doctor
384
-                                ) == ''
385
-                              "
386
-                              >{{
387
-                                getName(
388
-                                  record.prescription.prescription_doctor
389
-                                )
390
-                              }}</span
391
-                            >
392
-                            <img
393
-                              style="height:20px;"
394
-                              :src="
395
-                                setAdminUserES(
396
-                                  record.prescription.prescription_doctor
397
-                                )
398
-                              "
399
-                              alt=""
400
-                              srcset=""
401
-                              v-else
402
-                            />
403
-                          </template>&nbsp;&nbsp;&nbsp;
512
+                          <img
513
+                            class="es-img"
514
+                            :src="
515
+                              setAdminUserES(
516
+                                record.advices[0][0],
517
+                                'advice_doctor'
518
+                              )
519
+                            "
520
+                            alt=""
521
+                            srcset=""
522
+                            v-else
523
+                            style="height: 20px;"
524
+                          /> &nbsp;&nbsp;               
404 525
                     护士签名:
405 526
                     <span
406
-                          v-if="
527
+                            v-if="
407 528
                               setAdminUserES(
408
-                                record.dialysis_order == null
409
-                                  ? 0
410
-                                  : record.dialysis_order.puncture_nurse
529
+                                record.dialysis_order,
530
+                                'start_nurse'
411 531
                               ) == ''
412 532
                             "
413 533
                             >{{
414
-                              getName(
415
-                                record.dialysis_order == null
416
-                                  ? 0
417
-                                  : record.dialysis_order.puncture_nurse
418
-                              )
534
+                              getAdminUser(record.dialysis_order, "start_nurse")
419 535
                             }}</span
420 536
                           >
421 537
                           <img
422
-                            style="height:20px;"
538
+                            class="es-img"
423 539
                             :src="
424 540
                               setAdminUserES(
425
-                                record.dialysis_order == null
426
-                                  ? 0
427
-                                  : record.dialysis_order.puncture_nurse
541
+                                record.dialysis_order,
542
+                                'start_nurse'
428 543
                               )
429 544
                             "
430 545
                             alt=""
431 546
                             srcset=""
432 547
                             v-else
548
+                            style="height: 20px;"
433 549
                           />
550
+                  
434 551
                   </td>
435 552
                 </tr>
436 553
               </table>
@@ -445,13 +562,13 @@
445 562
 <script>
446 563
   import CheckBox from './option_check_box'
447 564
   import LabelBox from '../printItem/LabelBox'
448
-  import { GetBatchPrintDialysisData } from '@/api/print_data'
565
+  import { GetBatchPrintDialysisData, getLastAfterWeight } from '@/api/print_data'
449 566
   import { jsGetAge, uParseTime } from '@/utils/tools'
450 567
   import { getDataConfig } from '@/utils/data'
451 568
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
452 569
   import print from 'print-js'
453 570
 export default {
454
-    name: 'BatchPrintOrderSix',
571
+    name: 'BatchPrintOrderSeven',
455 572
     components: {
456 573
       CheckBox,
457 574
       BreadCrumb,
@@ -504,12 +621,39 @@ export default {
504 621
           '腹痛'
505 622
         ],
506 623
         allName: [],
507
-        NameStatus: 0
624
+        NameStatus: 0,
625
+        advices: [],
626
+        docotorId: '',
627
+        doctorNameForm: {
628
+          user_name: '',
629
+          url: ''
630
+        },
631
+        doctorNameFormTwo: {
632
+          user_name: '',
633
+          url: ''
634
+        },
635
+        doctorNameFormThree: {
636
+          user_name: '',
637
+          url: ''
638
+        },
639
+        doctorNameFormFour: {
640
+          user_name: '',
641
+          url: ''
642
+        },
643
+        doctorNameFormFive: {
644
+          user_name: '',
645
+          url: ''
646
+        },
647
+        doctorNameFormSix: {
648
+          user_name: '',
649
+          url: ''
650
+        },
651
+        lastAfterWeight: ''
508 652
       }
509 653
     },
510 654
     created() {
511 655
       var xtuser = this.$store.getters.xt_user
512
-      console.log('xtuser', xtuser)
656
+      // console.log('xtuser', xtuser)
513 657
       this.orgname = xtuser.org.org_name
514 658
       //   this.orgname = "遂溪方济医院";
515 659
       this.modeOptions = this.$store.getters.treatment_mode
@@ -559,132 +703,55 @@ export default {
559 703
         .then(rs => {
560 704
           var resp = rs.data
561 705
           if (resp.state == 1) {
562
-            console.log('数据', resp.data.schedules)
706
+            this.org_template_info = resp.data.templateInfo
707
+
563 708
             this.records = this.records.concat(resp.data.schedules)
564
-            console.log('this', this.records)
565
-            for (const recordIndex in this.records) {
566
-              this.advice_groups = []
567
-              this.advice_groups_2 = []
568
-              var dlegh = 0
569
-              if (
570
-                (this.records[recordIndex].assessment_before_dislysis &&
571
-                  this.records[recordIndex].assessment_before_dislysis
572
-                    .systolic_blood_pressure != 0 &&
573
-                  this.records[recordIndex].assessment_before_dislysis
574
-                    .diastolic_blood_pressure != 0) ||
575
-                (this.records[recordIndex].assessment_before_dislysis &&
576
-                  this.records[recordIndex].assessment_before_dislysis.remark
577
-                    .length > 0) ||
578
-                (this.records[recordIndex].assessment_before_dislysis &&
579
-                  this.records[recordIndex].assessment_before_dislysis
580
-                    .pulse_frequency != 0) ||
581
-                (this.records[recordIndex].assessment_before_dislysis &&
582
-                  this.records[recordIndex].assessment_before_dislysis
583
-                    .breathing_rate != 0) ||
584
-                (this.records[recordIndex].assessment_before_dislysis &&
585
-                  this.records[recordIndex].assessment_before_dislysis
586
-                    .temperature != 0)
587
-              ) {
588
-                var nl = 6
589
-                this.records[recordIndex].print_length = 8
590
-                if (this.records[recordIndex].length > 8) {
591
-                  this.records[recordIndex].classname = 'margin-bottom-900'
592
-                } else {
593
-                  this.records[recordIndex].classname = 'margin-bottom-300'
594
-                }
595
-              } else {
596
-                var nl = 6
597
-                this.records[recordIndex].print_length = 9
598
-                if (this.records[recordIndex].length > 9) {
599
-                  this.records[recordIndex].classname = 'margin-bottom-900'
600
-                } else {
601
-                  this.records[recordIndex].classname = 'margin-bottom-300'
602
-                }
603
-              }
604
-              if (
605
-                this.records[recordIndex].assessment_before_dislysis &&
606
-                this.records[recordIndex].assessment_before_dislysis
607
-                  .blood_access_part_opera_id
608
-              ) {
609
-                this.records[
610
-                  recordIndex
611
-                ].assessment_before_dislysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
612
-                  this.records[recordIndex].assessment_before_dislysis
613
-                    .blood_access_part_opera_id
614
-                )
615
-              }
616 709
 
617
-              if (recordIndex == this.records.length - 1) {
618
-                this.records[recordIndex].classname = ' '
619
-              }
710
+            console.log('记录', this.records)
620 711
 
621
-              this.records[recordIndex].monitor_records2 = []
712
+            for (const recordIndex in this.records) {
713
+              var dlegh = 0
622 714
               if (
623 715
                 this.records[recordIndex].monitor_records &&
624
-                this.records[recordIndex].monitor_records.length < 7
716
+              this.records[recordIndex].monitor_records.length < 8
625 717
               ) {
626
-                dlegh = nl - this.records[recordIndex].monitor_records.length
627
-              }
628
-              if (this.records[recordIndex].monitor_records.length <= 0) {
629
-                dlegh = nl
718
+                dlegh = 8 - this.records[recordIndex].monitor_records.length
719
+              } else {
720
+                dlegh = 0
630 721
               }
631 722
               if (dlegh > 0) {
632 723
                 if (
633 724
                   typeof this.records[recordIndex].monitor_records ===
634 725
                   'undefined' ||
635
-                  this.records[recordIndex].monitor_records == null
726
+                this.records[recordIndex].monitor_records == null
636 727
                 ) {
637 728
                   this.records[recordIndex].monitor_records = []
638 729
                 }
639 730
                 for (let index = 0; index < dlegh; index++) {
640
-                  this.records[recordIndex].monitor_records2.push([])
731
+                  this.records[recordIndex].monitor_records.push([])
641 732
                 }
642 733
               }
643 734
 
644
-              var tempmonitorflag = true
645
-              for (
646
-                let index = 0;
647
-                index < this.records[recordIndex].monitor_records.length;
648
-                index++
649
-              ) {
650
-                const monitor = this.records[recordIndex].monitor_records[index]
651
-                this.records[recordIndex].monitor_records[index].end = ''
652
-                if (Object.keys(monitor).length > 0 && index > 1) {
653
-                  if (
654
-                    monitor.operate_time ==
655
-                    this.records[recordIndex].dialysis_order.end_time
656
-                  ) {
657
-                    this.records[recordIndex].monitor_records[index].end =
658
-                      '【结束透析】'
659
-                    tempmonitorflag = false
660
-                  }
661
-                  if (
662
-                    tempmonitorflag &&
663
-                    index == this.records[recordIndex].monitor_records.length - 1
664
-                  ) {
665
-                    this.records[recordIndex].monitor_records[index].end =
666
-                      '【结束透析】'
667
-                  }
668
-                }
735
+              this.records[recordIndex].isShowZero = false
736
+              if (this.records[recordIndex].patient.user_org_id == 9535) {
737
+                this.records[recordIndex].isShowZero = true
669 738
               }
670 739
 
671
-              this.monitor_records = this.records[recordIndex].monitor_records
672
-
673
-              // this.records[recordIndex].monitor_records2 = []
674
-              // if (this.records[recordIndex].monitor_records.length > 13){
675
-              //   const tempMonitors = []
676
-              //   const tempMonitors2 = []
677
-
678
-              //   for (let index = 0; index < this.records[recordIndex].monitor_records.length; index++) {
679
-              //     if (index < 13) {
680
-              //       tempMonitors.push(this.records[recordIndex].monitor_records[index])
681
-              //     } else {
682
-              //       tempMonitors2.push(this.records[recordIndex].monitor_records[index])
683
-              //     }
684
-              //   }
685
-              // this.records[recordIndex].monitor_records = tempMonitors
686
-              // this.records[recordIndex].monitor_records2 = tempMonitors2
687
-              // }
740
+              var delghTwo = 0
741
+              if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 14) {
742
+                delghTwo = 14 - this.records[recordIndex].advices.length
743
+              } else {
744
+                delghTwo = 0
745
+              }
746
+  
747
+              if (delghTwo > 0) {
748
+                if (typeof this.records[recordIndex].advices === 'undefined' || this.records[recordIndex].advices == null) {
749
+                  this.records[recordIndex].advices = []
750
+                }
751
+                for (let index = 0; index < delghTwo; index++) {
752
+                  this.records[recordIndex].advices.push([])
753
+                }
754
+              }
688 755
 
689 756
               var childMap = {}
690 757
               for (const index in this.records[recordIndex].advices) {
@@ -719,38 +786,39 @@ export default {
719 786
                 advices.push(item)
720 787
               }
721 788
 
722
-              this.doctor_advices =
723
-                this.records[recordIndex].advices == null
724
-                  ? []
725
-                  : this.records[recordIndex].advices
726
-              for (let index = 0; index < this.doctor_advices.length; index++) {
727
-                this.doctor_advices[index]['isShow'] = 2
728
-              }
729
-
730
-              if (this.doctor_advices.length <= 7) {
731
-                var nl = 7
732
-                this.print_length = 7
789
+              var leftAdvice = []
790
+              var rightAdvice = []
791
+              var adlen = advices.length
733 792
 
793
+              var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
794
+              for (var i = 0; i < halfLen; i++) {
795
+                leftAdvice.push(advices[i])
796
+                var rightIndex = i + halfLen
797
+                rightAdvice.push(
798
+                  rightIndex in advices ? advices[i + halfLen] : []
799
+                )
800
+              }
801
+              if (halfLen < 5) {
802
+                var nl = 5 - leftAdvice.length
803
+                for (let index = 0; index < nl; index++) {
804
+                  leftAdvice.push([])
805
+                }
806
+                var nl = 5 - rightAdvice.length
734 807
                 for (let index = 0; index < nl; index++) {
735
-                  if (
736
-                    this.doctor_advices[index] == undefined ||
737
-                    this.doctor_advices[index].length <= 0
738
-                  ) {
739
-                    this.doctor_advices.push([{ advice_doctor: 0 }])
740
-                  } else {
741
-                    continue
742
-                  }
808
+                  rightAdvice.push([])
743 809
                 }
744 810
               }
745
-              this.records[recordIndex].advices = []
746
-              this.records[recordIndex].advices2 = []
747
-              this.records[recordIndex].advices = this.doctor_advices
748
-              this.records[recordIndex].advices2 = this.advice_groups_2
749 811
 
750
-              this.records[recordIndex].totallength =
751
-                this.doctor_advices.length + this.monitor_records.length
812
+              this.records[recordIndex].advices = []
813
+              for (var i = 0; i < halfLen; i++) {
814
+                var item = []
815
+                item.push(leftAdvice[i])
816
+                item.push(rightAdvice[i])
817
+                this.records[recordIndex].advices.push(item)
818
+              }
752 819
             }
753 820
 
821
+            console.log(' this.records[recordIndex].advices', this.records)
754 822
             this.operators = resp.data.medical_staffs
755 823
             if (this.operators.length > 0) {
756 824
               var operatorsLen = this.operators.length
@@ -764,10 +832,6 @@ export default {
764 832
             }
765 833
 
766 834
             this.adminUser = resp.data.users
767
-            console.log('使用者', this.adminUser)
768
-            var name = resp.data.name
769
-            console.log('姓名', name)
770
-            this.allName = name
771 835
             this.loading = false
772 836
           } else {
773 837
             this.loading = false
@@ -777,7 +841,7 @@ export default {
777 841
         .catch(err => {
778 842
           this.$message.error(err)
779 843
         })
780
-    },
844
+  },
781 845
     methods: {
782 846
       getUnit: function(val) {
783 847
         if (val.assessment_after_dislysis == null) {
@@ -922,29 +986,29 @@ export default {
922 986
         }
923 987
       },
924 988
       getAdminUser(key, id) {
925
-        if (
926
-          typeof key === 'undefined' ||
927
-          key == null ||
928
-          typeof key[id] === 'undefined'
929
-        ) {
989
+        // console.log('key', key)
990
+        // console.log('id', id)
991
+        if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
930 992
           return ''
931 993
         }
932
-        if (key[id] == 0) {
994
+        if (key[id] === 0) {
933 995
           return ''
934 996
         }
935
-        if (key[id] == undefined) {
997
+        if (key[id] === undefined) {
936 998
           return ''
937 999
         }
938 1000
         for (let i = 0; i < this.adminUser.length; i++) {
939
-          if (this.adminUser[i].id == key[id]) {
1001
+          if (this.adminUser[i].id === key[id]) {
940 1002
             return this.adminUser[i].name
941 1003
           }
942 1004
         }
943 1005
       },
1006
+  
944 1007
       getName(id) {
945
-        for (let i = 0; i < this.allName.length; i++) {
946
-          if (this.allName[i].id === id) {
947
-            return this.allName[i].name
1008
+        // console.log('签名', this.operatorMaps)
1009
+        for (let i = 0; i < this.adminUser.length; i++) {
1010
+          if (this.adminUser[i].id === id) {
1011
+            return this.adminUser[i].name
948 1012
           }
949 1013
         }
950 1014
       },
@@ -990,6 +1054,16 @@ export default {
990 1054
       },
991 1055
       getNumber: function(record) {
992 1056
         console.log(record)
1057
+      },
1058
+      getLastAfterWeight(id, assessmentDate) {
1059
+        getLastAfterWeight(id, assessmentDate).then(response => {
1060
+          if (response.data.state === 1) {
1061
+            var weight = response.data.data.weight
1062
+  
1063
+            this.lastAfterWeight = weight.weight_after.toFixed(1)
1064
+            console.log('weight', weight)
1065
+          }
1066
+        })
993 1067
       }
994 1068
     }
995 1069
   }

文件差異過大導致無法顯示
+ 2077 - 986
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue


+ 12 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -110,6 +110,16 @@
110 110
           >批量打印</el-button
111 111
         >
112 112
       </template>
113
+      <template v-if="this.template_id == 8">
114
+        <el-button
115
+          size="small"
116
+          icon="el-icon-printer"
117
+          :disabled="selecting_schs.length == 0"
118
+          @click="batchPrintAction"
119
+          type="primary"
120
+          >批量打印</el-button
121
+        >
122
+      </template>
113 123
     </div>
114 124
     <div class="app-container">
115 125
       <!-- <div class="filter-container">
@@ -552,8 +562,6 @@ export default {
552 562
       for (let index = 0; index < this.selecting_schs.length; index++) {
553 563
         sch_ids.push(this.selecting_schs[index].sch_id);
554 564
       }
555
-      console.log("第一个", sch_ids);
556
-      console.log("模板id", this.template_id);
557 565
       this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
558 566
       if (this.template_id == 2 || this.template_id == 0) {
559 567
         this.$router.push({ path: "/dialysis/print/batch/other" });
@@ -569,6 +577,8 @@ export default {
569 577
         this.$router.push({ path: "/dialysis/print/batch/six" });
570 578
       } else if (this.template_id == 7) {
571 579
         this.$router.push({ path: "/dialysis/print/batch/seven" });
580
+      } else if (this.template_id == 8) {
581
+        this.$router.push({ path: "/dialysis/print/batch/eight" });
572 582
       }
573 583
     },
574 584
     batchPrintActionOne: function() {

+ 0 - 4
src/xt_pages/dialysis/details/BasicInfor.vue 查看文件

@@ -103,14 +103,10 @@ export default {
103 103
   },
104 104
   methods: {
105 105
     getAge: function(val) {
106
-      if (val.age == 0) {
107 106
         if (val.birthday == 0) {
108 107
           return ''
109 108
         }
110 109
         return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
111
-      } else {
112
-        return val.age
113
-      }
114 110
     },
115 111
     stepState: function() {
116 112
       return parseInt((Math.random() * 1000) + '') % 2 == 1

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

@@ -165,7 +165,7 @@
165 165
               <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
166 166
                 <el-option :key="0" label="请选择" :value="0"></el-option>
167 167
 
168
-                <el-option v-for="item in blood_access_part_opera" :label="item.name" :value="item.id"
168
+                <el-option v-for="item in 8" :label="item.name" :value="item.id"
169 169
                            :key="item.id"></el-option>
170 170
               </el-select>
171 171
             </el-form-item>

+ 3 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -175,8 +175,8 @@
175 175
           </el-col>
176 176
 
177 177
 
178
-          <el-col :span="8" v-if="isShows('电导')">
179
-            <el-form-item label="电导度(mS/m): ">
178
+          <el-col :span="8" v-if="isShows('电导')">
179
+            <el-form-item label="电导率(mS/cm): ">
180 180
               <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
181 181
             </el-form-item>
182 182
           </el-col>
@@ -909,7 +909,7 @@
909 909
           return true
910 910
         }
911 911
       },
912
-      setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis,system_prescribe) {
912
+      setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
913 913
         this.treatment_mode = this.$store.getters.treatment_mode
914 914
         this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
915 915
         this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
@@ -938,7 +938,6 @@
938 938
         } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
939 939
           for (const key in lastDialysisPrescribe) {
940 940
             if (key != 'target_ultrafiltration') {
941
-
942 941
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
943 942
             }
944 943
           }
@@ -952,7 +951,6 @@
952 951
           this.dialysisPrescription.mode_id = schedual.mode_id
953 952
         }
954 953
 
955
-
956 954
         var thismode = parseInt(this.dialysisPrescription.anticoagulant)
957 955
         if (isNaN(thismode) || thismode <= 0) {
958 956
           return false

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

@@ -21,7 +21,7 @@
21 21
 
22 22
         <th v-if="isShow('置换量')&& template_id == 6" width="92px">置换量(ml)</th>
23 23
         <th v-if="isShow('置换量')&& template_id != 6" width="92px">置换量(L)</th>
24
-
24
+         <th v-if="isShow('SpO₂')&& template_id != 6" width="92px">SpO₂(%)</th>
25 25
         <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
26 26
         <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
27 27
         <th v-if="isShow('病情变化')" width="92px">病情变化</th>
@@ -42,6 +42,7 @@
42 42
         <td v-if="isShow('透析液温度')">{{ monitor.dialysate_temperature?monitor.dialysate_temperature:'' }}</td>
43 43
         <td v-if="isShow('置换率')">{{ monitor.replacement_rate?monitor.replacement_rate:'' }}</td>
44 44
         <td v-if="isShow('置换量')">{{ monitor.displacement_quantity?monitor.displacement_quantity:'' }}</td>
45
+        <td v-if="isShow('SpO₂')">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:''}}</td>
45 46
         <td v-if="isShow('电导度')">{{ monitor.conductivity?monitor.conductivity:'' }}</td>
46 47
         <th v-if="isShow('置换液流量')" >{{monitor.displacement_flow_quantity?monitor.displacement_flow_quantity:''}}</th>
47 48
         <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>

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

@@ -108,6 +108,16 @@
108 108
           >打印</el-button
109 109
         >
110 110
       </template>
111
+      <template v-if="org_template_info.template_id == 8">
112
+        <el-button
113
+          :loading="loading"
114
+          size="small"
115
+          icon="el-icon-printer"
116
+          @click="printThisPage"
117
+          type="primary"
118
+          >打印</el-button
119
+        >
120
+      </template>
111 121
     </div>
112 122
     <div class="app-container ">
113 123
       <!--<div class="order-print-btn"-->
@@ -163,6 +173,12 @@
163 173
         v-if="org_template_info.template_id == 7"
164 174
       >
165 175
       </DialysisPrintOrderSeven>
176
+
177
+      <DialysisPrintOrderEight
178
+        v-bind:childResponse="childResponse"
179
+        v-if="org_template_info.template_id == 8"
180
+      >
181
+      </DialysisPrintOrderEight>
166 182
     </div>
167 183
   </div>
168 184
 </template>
@@ -180,6 +196,7 @@ import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
180 196
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
181 197
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
182 198
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
199
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
183 200
 import print from "print-js";
184 201
 
185 202
 export default {
@@ -192,6 +209,7 @@ export default {
192 209
     DialysisPrintOrderFive,
193 210
     DialysisPrintOrderSix,
194 211
     DialysisPrintOrderSeven,
212
+    DialysisPrintOrderEight,
195 213
     LabelBox,
196 214
     BreadCrumb
197 215
   },
@@ -374,6 +392,13 @@ export default {
374 392
           style: style,
375 393
           scanStyles: false
376 394
         });
395
+      } else if (this.org_template_info.template_id == 8) {
396
+        printJS({
397
+          printable: "dialysis-print-box",
398
+          type: "html",
399
+          style: style,
400
+          scanStyles: false
401
+        });
377 402
       }
378 403
     },
379 404
     printThisOnePage() {

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


+ 4 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue 查看文件

@@ -1538,15 +1538,12 @@
1538 1538
         }
1539 1539
         return ''
1540 1540
       }, getAge: function(val) {
1541
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1542
-          if (val.age == 0) {
1541
+          if(val.birthday != 0){
1543 1542
             return jsGetAge(val.birth, '-')
1544
-          } else {
1545
-            return val.age
1543
+          }else{
1544
+            return ''
1546 1545
           }
1547
-        } else {
1548
-          return jsGetAge(val.birth, '-')
1549
-        }
1546
+
1550 1547
       }, newAdviceGroupObject: function() {
1551 1548
         return Object.assign(
1552 1549
           {},

+ 3 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue 查看文件

@@ -1211,7 +1211,6 @@
1211 1211
         return name
1212 1212
       },
1213 1213
       setAdminUserES(id) {
1214
-        console.log(id)
1215 1214
         if (id == 0) {
1216 1215
           return ''
1217 1216
         }
@@ -1484,15 +1483,11 @@
1484 1483
         }
1485 1484
         return ''
1486 1485
       }, getAge: function(val) {
1487
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1488
-          if (val.age == 0) {
1489
-            return jsGetAge(val.birth, '-')
1490
-          } else {
1491
-            return val.age
1492
-          }
1493
-        } else {
1486
+        if(val.birthday != 0){
1494 1487
           return jsGetAge(val.birth, '-')
1495 1488
         }
1489
+        return ''
1490
+
1496 1491
       }, newAdviceGroupObject: function() {
1497 1492
         return Object.assign(
1498 1493
           {},

+ 131 - 122
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue 查看文件

@@ -2,7 +2,7 @@
2 2
   <div id="dialysis-print-box">
3 3
     <div class="dialysis-print-order">
4 4
       <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
5
+      <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析(滤过)记录表单</div>
6 6
 
7 7
       <table class="print-table" style="margin-top: 10px;" border="1">
8 8
         <tbody>
@@ -23,7 +23,13 @@
23 23
                   >性别:{{ patientInfo.gender }}</span
24 24
                 >
25 25
                 <span style="flex:1;margin-left:15px;"
26
-                  >透析机号:{{ patientInfo.dialysis_no }}</span
26
+                  >透析机号: {{
27
+                        dialysisOrder &&
28
+                        dialysisOrder.DeviceNumber &&
29
+                        dialysisOrder.DeviceNumber.number.length > 0
30
+                          ? dialysisOrder.DeviceNumber.number
31
+                          : patientInfo.DialysisSchedule.device_number.number
32
+                      }}</span
27 33
                 >
28 34
                 <span style="flex:1;margin-left:15px;">第({{total}})次透析</span>
29 35
               </div>
@@ -158,12 +164,15 @@
158 164
             <span style="display:inline-block;margin-left:15px;"
159 165
               >透析液流量:{{dialysate_flow}}ml/h</span
160 166
             >&nbsp;
161
-            <span style="display:inline-block;margin-left:15px;"
162
-              >血流量:{{blood_flow_volume}}ml/min</span
163
-            >&nbsp;
164 167
           </td>
165 168
           <td>
166
-            <span>医生签名:{{doctor}}</span>
169
+             <span v-if="doctorForm.url === ''">
170
+             医生签名:{{doctorForm.doctor}}
171
+           </span>
172
+           <span v-if="doctorForm.url!==''">
173
+              医生签名:
174
+              <img style="height:20px" :src="doctorForm.url">
175
+           </span>
167 176
           </td>
168 177
         </tr>
169 178
       </table>
@@ -179,19 +188,19 @@
179 188
               >透析液(mmol/L):</span
180 189
             >
181 190
             <span v-if="dialysate_formulation == 1">
182
-              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
191
+              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183 192
             </span>
184 193
             <span v-if="dialysate_formulation == 2">
185
-              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
194
+              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
186 195
             </span>
187 196
              <span v-if="dialysate_formulation == 3">
188
-              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
197
+              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
189 198
             </span>
190 199
              <span v-if="dialysate_formulation == 4">
191
-              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
200
+              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
192 201
             </span>
193 202
              <span v-if="dialysate_formulation == 5">
194
-              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
203
+              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
195 204
             </span>
196 205
          </td>
197 206
         </tr>
@@ -229,7 +238,9 @@
229 238
               :isChecked="blood_access_part_opera_id != '内瘘' && blood_access_part_opera_id != '长期静脉导管' && blood_access_part_opera_id !='临时颈静脉导管' && blood_access_part_opera_id != '临时股静脉导管'? true : false"
230 239
               showValue="其它"
231 240
             ></label-box>
232
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
241
+            &nbsp;&nbsp;&nbsp;&nbsp;
242
+            <span v-if="PunctureNurse.url == ''">穿刺者:{{PunctureNurse.user_name}}</span>
243
+           <span v-if="PunctureNurse.url !=''">穿刺者:<img :src="PunctureNurse.url" style="height:20px"></span>
233 244
           </td>
234 245
         </tr>
235 246
         <tr>
@@ -241,34 +252,34 @@
241 252
           <th rowspan="2">时间</th>
242 253
           <th colspan="3">透析参数</th>
243 254
           <th colspan="6">生命体征</th>
244
-          <th>病情变化及处理</th>
255
+          <th>治疗中病情变化</th>
245 256
          </tr>
246 257
          <tr>
247
-          <td width="60">TMP<br/>(mmHg)</td>
248
-          <td width="60">静脉压<br/>(mmHg)</td>
249
-          <td width="60">血流量<br/>(ml/min)</td>
250
-          <td width="60">脱水量<br/>(ml)</td>
251
-          <td width="50">T<br/>(℃)</td>
252
-          <td width="50">HR<br/>(bpm)</td>
253
-          <td width="50">R<br/>(bpm)</td>
254
-          <td width="60">BP<br/>(mmHg)</td>
255
-          <td width="60">SpO₂<br/>(%)</td>
258
+          <td width="60"><p style="height:20px;line-height:20px">TMP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
259
+          <td width="60"><p style="height:20px;line-height:20px">静脉压</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
260
+          <td width="60"><p style="height:20px;line-height:20px">血流量</p><p style="height:20px;line-height:20px">(ml/min)</p></td>
261
+          <td width="60"><p style="height:20px;line-height:20px">脱水量</p><p style="height:20px;line-height:20px">(ml)</p></td>
262
+          <td width="50"><p style="height:20px;line-height:20px">T</p><p style="height:20px;line-height:20px">(℃)</p></td>
263
+          <td width="50"><p style="height:20px;line-height:20px">HR</p><p style="height:20px;line-height:20px">(bpm)</p></td>
264
+          <td width="50"><p style="height:20px;line-height:20px">R</p><p style="height:20px;line-height:20px">(bpm)</p></td>
265
+          <td width="60"><p style="height:20px;line-height:20px">BP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
266
+          <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
256 267
           <td>记录</td>
257 268
          </tr>
258
-         <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
259
-           <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
260
-           <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
261
-           <td>{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
262
-           <td>{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
263
-           <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
264
-           <td> {{
269
+         <tr v-for="(monitor, monindex) in monitors" :key="monindex">
270
+           <td style="line-height:50px;height:30px">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
271
+           <td style="line-height:50px;height:30px">{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
272
+           <td style="line-height:50px;height:30px">{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
273
+           <td style="line-height:50px;height:30px">{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
274
+           <td style="line-height:50px:height:30px">{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
275
+           <td style="line-height:50px;height:30px"> {{
265 276
                  monitor.temperature
266 277
                 ? monitor.temperature
267 278
                 : ""
268 279
                 }}</td>
269
-           <td>{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
270
-           <td>{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
271
-           <td>{{
280
+           <td style="line-height:50px;height:30px">{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
281
+           <td style="line-height:50px;height:30px">{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
282
+           <td style="line-height:50px;height:30px">{{
272 283
                 monitor.systolic_blood_pressure
273 284
                 ? monitor.systolic_blood_pressure + "/"
274 285
                 : ""
@@ -277,10 +288,10 @@
277 288
               ? monitor.diastolic_blood_pressure
278 289
               : ""
279 290
               }}</td>
280
-           <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
291
+           <td style="line-height:50px;height:30px">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
281 292
            <td style="line-height:16px;padding:0px;">
282 293
               {{ monitor.end }}
283
-              {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
294
+              {{ monitor.symptom }} &nbsp;{{ monitor.result }}
284 295
             </td>
285 296
          </tr>
286 297
       </table>
@@ -292,12 +303,8 @@
292 303
          <td>核对</td>
293 304
          <td>上次透后体重</td>
294 305
          <td> {{
295
-                predialysis.weight_after_last_transparency
296
-                ? parseFloat(
297
-                 predialysis.weight_after_last_transparency -
298
-                 predialysis.additional_weight
299
-                  ).toFixed(1)
300
-                 : "未称重"
306
+               afterWeightLastTwo.weight_after
307
+                ? parseFloat(afterWeightLastTwo.weight_after).toFixed(1): "未称重"
301 308
               }}kg</td>
302 309
         </tr>
303 310
         <tr  v-for="(advice, advice_index) in tableAdvice"
@@ -316,45 +323,38 @@
316 323
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
317 324
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
318 325
                <td>
319
-              <span
320
-               v-if="setAdminUserES(advice.advice_doctor) == ''"
321
-               >{{ getAdminUser(advice.advice_doctor) }}</span
322
-               >
323
-              <img
324
-               style="height:20px;"
325
-               :src="setAdminUserES(advice.advice_doctor)"
326
-               alt=""
327
-              srcset=""
328
-              v-else
329
-            />
326
+               <span
327
+                    v-if="setAdminUserES(advice.execution_staff) == ''"
328
+                   >{{ getAdminUser(advice.execution_staff) }}</span
329
+                        >
330
+                        <img
331
+                          style="height:20px;"
332
+                          :src="setAdminUserES(advice.execution_staff)"
333
+                          alt=""
334
+                          srcset=""
335
+                          v-else
336
+                        />
330 337
          </td>
331 338
          <td>
332
-           <span
333
-               v-if="setAdminUserES(advice.execution_staff) == ''"
334
-               >{{ getAdminUser(advice.execution_staff) }}</span
335
-               >
336
-              <img
337
-               style="height:20px;"
338
-               :src="setAdminUserES(advice.execution_staff)"
339
-               alt=""
340
-              srcset=""
341
-              v-else
342
-            />
339
+           <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
340
+            <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
343 341
          </td>
344 342
          <td v-if="advice_index==0">透前体重</td>
345 343
          <td v-if="advice_index==0">{{weight_before}}kg</td>
346 344
          <td v-if="advice_index==1">体重增加量</td>
347
-         <td v-if="advice_index==1">{{(dryWeight_add).toFixed(2)}}kg</td>
345
+         <td v-if="advice_index==1">
346
+             {{dryWeight_add?dryWeight_add:0}}
347
+         kg</td>
348 348
          <td v-if="advice_index==2">干体重(DW)</td>
349 349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
350 350
          <td v-if="advice_index==3">较干体重增加量</td>
351
-         <td v-if="advice_index==3">{{(dryWeight_add).toFixed(2)}}kg</td>
351
+         <td v-if="advice_index==3">{{(weight_before - dry_weight - predialysis.additional_weight).toFixed(1)}}kg</td>
352 352
          <td v-if="advice_index==4">净脱水量</td>
353
-         <td v-if="advice_index==4">{{actual_ultrafiltration}}ml</td>
353
+         <td v-if="advice_index==4">{{actual_ultrafiltration}}L</td>
354 354
          <td v-if="advice_index==5">透后体重</td>
355
-         <td v-if="advice_index==5">{{weight_after}}kg</td>
355
+         <td v-if="advice_index==5">{{afterdialysis.weight_after}}kg</td>
356 356
          <td v-if="advice_index==6">本次透析体重下降量</td>
357
-         <td v-if="advice_index==6">{{(weight_before-weightloss_after).toFixed(1)}}kg</td>
357
+         <td v-if="advice_index==6">{{(weight_before-afterdialysis.weightloss_after).toFixed(1)}}kg</td>
358 358
         </tr>
359 359
         <tr>
360 360
           <td colspan="6" style="text-align:left;min-height:20px">
@@ -366,10 +366,10 @@
366 366
         <tr>
367 367
           <td style="text-align:left;">
368 368
            <span v-if="doctorForm.url === ''">
369
-             医签名:{{doctorForm.doctor}}
369
+             医签名:{{doctorForm.doctor}}
370 370
            </span>
371 371
            <span v-if="doctorForm.url!==''">
372
-              医签名:
372
+              医签名:
373 373
               <img style="height:20px" :src="doctorForm.url">
374 374
            </span>
375 375
            &nbsp;&nbsp;&nbsp;&nbsp;
@@ -515,14 +515,14 @@
515 515
         nurse: '',
516 516
         doctorAdvice: [],
517 517
         total: '',
518
-        weight_before: '',
519
-        dry_weight: '',
520
-        weight_after: '',
521
-        weightloss_after: '',
522
-        actual_ultrafiltration: '',
523
-        temperature: '',
524
-        systolic_blood_pressure: '',
525
-        diastolic_blood_pressure: '',
518
+        weight_before: 0,
519
+        dry_weight: 0,
520
+        weight_after: 0,
521
+        weightloss_after: 0,
522
+        actual_ultrafiltration: 0,
523
+        temperature: '/',
524
+        systolic_blood_pressure: 0,
525
+        diastolic_blood_pressure: 0,
526 526
         mission: '',
527 527
         dialysis_summary: '',
528 528
         orderForm: {
@@ -547,9 +547,15 @@
547 547
         venous_catheterization: '',
548 548
         blood_access_part_opera_id: '',
549 549
         dryWeight_add: '',
550
+        weight_add_dry: '',
550 551
         weight: '',
551
-        vascularId: 0
552
-
552
+        vascularId: 0,
553
+        PunctureNurse: {
554
+          user_name: '',
555
+          url: ''
556
+        },
557
+        // eslint-disable-next-line no-dupe-keys
558
+        afterWeightLastTwo: {}
553 559
       }
554 560
   },
555 561
   methods: {
@@ -647,7 +653,7 @@
647 653
         return name
648 654
       },
649 655
       setAdminUserES(id) {
650
-        console.log(id)
656
+        // console.log(id)
651 657
         if (id == 0) {
652 658
           return ''
653 659
         }
@@ -665,12 +671,12 @@
665 671
       },
666 672
       getDialysisRecord() {
667 673
         this.loading = true
668
-
669 674
         getDialysisRecord(this.queryParams).then(response => {
670 675
           if (response.data.state === 1) {
671 676
             this.adminUser = response.data.data.users
672 677
             this.users = response.data.data.users
673 678
             var patientInfo = response.data.data.patientInfo
679
+            // console.log('patientInfo', patientInfo)
674 680
             if (patientInfo.gender === 1) {
675 681
               patientInfo.gender = '男'
676 682
             }
@@ -678,7 +684,7 @@
678 684
               patientInfo.gender = '女'
679 685
             }
680 686
             this.patientInfo = response.data.data.patientInfo
681
-            console.log('透析记录', this.patientInfo)
687
+            // console.log('透析记录', this.patientInfo)
682 688
 
683 689
             this.patientInfo.birth = uParseTime(
684 690
               this.patientInfo.birthday,
@@ -697,37 +703,37 @@
697 703
             var predialysis = response.data.data.PredialysisEvaluation
698 704
             var predialysName = response.data.data.predialysName
699 705
             this.blood_access_part_opera_id = predialysName.name
700
-            console.log('血管', predialysName)
706
+            // console.log('血管', predialysName)
701 707
             this.weight_before = predialysis.weight_before
702 708
             this.dry_weight = predialysis.dry_weight
703 709
             this.weight_gain = predialysis.weight_gain
704 710
             this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
705 711
             this.venous_catheterization = predialysis.venous_catheterization
706 712
             // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
707
-            console.log('血管通路', this.blood_access_part_opera_id)
713
+            // console.log('血管通路', this.blood_access_part_opera_id)
708 714
             var arry = []
709 715
             arry = getDataConfig('hemodialysis', 'vascular_access_desc')
710
-            console.log('arry', arry)
716
+            // console.log('arry', arry)
711 717
             // eslint-disable-next-line no-empty
712 718
             var id = 0
713 719
             for (let i = 0; i < arry.length; i++) {
714
-              console.log(arry[i].id)
720
+              // console.log(arry[i].id)
715 721
               if (arry[i].id === predialysis.blood_access_part_opera_id) {
716 722
                 id = predialysis.blood_access_part_opera_id
717 723
               }
718 724
               this.vascularId = id
719 725
             }
720 726
             this.predialysis = predialysis
721
-            console.log('透前评估', this.predialysis)
727
+            // console.log('透前评估', this.predialysis)
722 728
 
723 729
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
724 730
               this.predialysis.blood_access_part_opera_id
725 731
             )
726 732
             var afterdialysis = response.data.data.AssessmentAfterDislysis
727 733
             // eslint-disable-next-line no-undef
728
-            console.log('透后评估', afterdialysis)
729
-            this.weight_after = afterdialysis.weight_after
730
-            this.weightloss_after = afterdialysis.weight_after
734
+            // console.log('透后评估', afterdialysis)
735
+            // this.weight_after = afterdialysis.weight_after
736
+            // this.weightloss_after = afterdialysis.weight_after
731 737
             this.temperature = afterdialysis.temperature
732 738
             this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
733 739
             this.actual_treatment_hour = afterdialysis.actual_treatment_hour
@@ -738,7 +744,7 @@
738 744
             var doctoradvce = response.data.data.doctorAdvice
739 745
             var doctorAdevieInfo = response.data.data.doctorAdevieInfo
740 746
             var tableAdvice = doctorAdevieInfo
741
-            console.log('医生', tableAdvice.length)
747
+            // console.log('医生', tableAdvice.length)
742 748
             if (tableAdvice.length === 0) {
743 749
               var obj = { 'advice_name': '', start_time: '' }
744 750
               var obj1 = { 'advice_name': '', start_time: '' }
@@ -770,7 +776,6 @@
770 776
               tableAdvice.push(obj4)
771 777
               tableAdvice.push(obj5)
772 778
               this.tableAdvice = tableAdvice
773
-              console.log('零食医嘱', doctorAdevieInfo)
774 779
             }
775 780
             if (tableAdvice.length === 2) {
776 781
               var obj = { 'advice_name': '', start_time: '' }
@@ -784,7 +789,6 @@
784 789
               tableAdvice.push(obj3)
785 790
               tableAdvice.push(obj4)
786 791
               this.tableAdvice = tableAdvice
787
-              console.log('零食医嘱', doctorAdevieInfo)
788 792
             }
789 793
             if (tableAdvice.length === 3) {
790 794
               var obj = { 'advice_name': '', start_time: '' }
@@ -798,7 +802,6 @@
798 802
               tableAdvice.push(obj3)
799 803
 
800 804
               this.tableAdvice = tableAdvice
801
-              console.log('零食医嘱', doctorAdevieInfo)
802 805
             }
803 806
             if (tableAdvice.length === 4) {
804 807
               var obj = { 'advice_name': '', start_time: '' }
@@ -809,7 +812,6 @@
809 812
               tableAdvice.push(obj1)
810 813
               tableAdvice.push(obj2)
811 814
               this.tableAdvice = tableAdvice
812
-              console.log('零食医嘱', doctorAdevieInfo)
813 815
             }
814 816
             if (tableAdvice.length === 5) {
815 817
               var obj = { 'advice_name': '', start_time: '' }
@@ -823,21 +825,20 @@
823 825
               var obj = { 'advice_name': '', start_time: '' }
824 826
               tableAdvice.push(obj)
825 827
               this.tableAdvice = tableAdvice
826
-              console.log('零食医嘱', doctorAdevieInfo)
828
+              // console.log('零食医嘱', doctorAdevieInfo)
827 829
             }
828 830
             if (tableAdvice.length >= 7) {
829 831
               this.tableAdvice = tableAdvice
830 832
             }
831 833
             var doctor = response.data.data.doctor
832 834
             this.doctor = doctor.user_name
833
-            console.log('医生', doctor)
834
-            var nurse = response.data.data.nurse
835
-            this.nurse = nurse.user_name
836
-            console.log('穿刺护士', nurse)
835
+            // console.log('医生', doctor)
836
+            this.PunctureNurse = response.data.data.nurse
837
+            // console.log('穿刺护士', this.PunctureNurse)
837 838
             var operators = response.data.data.operators
838
-            console.log('operators', operators)
839
+            // console.log('operators', operators)
839 840
             var total = response.data.data.total
840
-            console.log('total', total)
841
+            // console.log('total', total)
841 842
             this.total = total
842 843
             this.operators = operators
843 844
             this.dialysisOrder =
@@ -908,10 +909,10 @@
908 909
             // console.log('排班', schedule)
909 910
             this.schedule = schedule
910 911
             var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
911
-            console.log('接诊评估', receiverTreatmentAccess)
912
+            // console.log('接诊评估', receiverTreatmentAccess)
912 913
             this.receiverTreatmentAccess = receiverTreatmentAccess
913 914
             var dialysisway = response.data.data.dialysisway
914
-            console.log('透析处方2', dialysisway)
915
+            console.log('透析处方', dialysisway)
915 916
             this.target_ultrafiltration = dialysisway.target_ultrafiltration
916 917
             var order = response.data.data.order
917 918
             // console.log('上下机', order)
@@ -940,14 +941,20 @@
940 941
             this.calcium = dialysisway.calcium
941 942
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
942 943
             var afterWeightLast = response.data.data.assessmentAfterDislysis
943
-            // console.log('上次透后体重', afterWeightLast)
944
+            this.afterWeightLastTwo = afterWeightLast
945
+            // this.afterWeightLast = afterWeightLast.weight_after
946
+            // console.log('上次透后体重', afterWeightLast.weight_after)
944 947
             // eslint-disable-next-line no-undef
945 948
             console.log('透前体重', this.weight_before)
946 949
             console.log('干体中', this.dry_weight)
947
-            console.log('什么体重', predialysis.additional_weight)
948
-            this.dryWeight_add = this.weight_before - this.dry_weight - predialysis.additional_weight
949
-            console.log('较干体中增加量', this.dryWeight_add)
950
-            this.afterWeightLast = afterWeightLast.weight_after
950
+            console.log('衣物重', predialysis.additional_weight)
951
+
952
+            var dryWeight_add = this.weight_before - this.afterWeightLastTwo.weight_after
953
+            if (this.afterWeightLastTwo.weight_after === 0) {
954
+              this.dryWeight_add = 0
955
+            } else {
956
+              this.dryWeight_add = dryWeight_add.toFixed(2)
957
+            }
951 958
             this.prescription.mode = this.modeName(this.prescription.mode_id)
952 959
             var rwLen = this.replacementWays.length
953 960
             this.prescription.replacement = ''
@@ -995,16 +1002,17 @@
995 1002
             this.advices = response.data.data.advices
996 1003
 
997 1004
             var monitor = response.data.data.monitor
1005
+            // console.log('透析监测', monitor)
998 1006
             this.monitor = monitor
999
-            console.log('monitor', monitor)
1007
+            // console.log('monitor', monitor)
1000 1008
             this.monitors = response.data.data.monitors
1001
-
1009
+            // console.log('透析监测', this.monitors)
1002 1010
             var summary = response.data.data.summary
1003
-            console.log('透析小结', summary)
1011
+            // console.log('透析小结', summary)
1004 1012
             this.mission = summary.mission
1005 1013
             this.dialysis_summary = summary.dialysis_summary
1006 1014
             this.org_template_info = response.data.data.org_template_info
1007
-            if (this.monitors.length < 8) {
1015
+            if (this.monitors.length < 7) {
1008 1016
               var nl = 8 - this.monitors.length
1009 1017
               for (let index = 0; index < nl; index++) {
1010 1018
                 this.monitors.push([])
@@ -1176,17 +1184,18 @@
1176 1184
         return ''
1177 1185
       },
1178 1186
       getAge: function(val) {
1179
-        if (
1180
-          this.org_template_info.template_id == 2 ||
1181
-        this.org_template_info.template_id == 0
1182
-        ) {
1183
-          if (val.age == 0) {
1187
+        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1188
+          if (val.birthday != 0) {
1184 1189
             return jsGetAge(val.birth, '-')
1185 1190
           } else {
1186
-            return val.age
1191
+            return ''
1187 1192
           }
1188 1193
         } else {
1189
-          return jsGetAge(val.birth, '-')
1194
+          if (val.birthday != 0) {
1195
+            return jsGetAge(val.birth, '-')
1196
+          } else {
1197
+            return ''
1198
+          }
1190 1199
         }
1191 1200
       },
1192 1201
       newAdviceGroupObject: function() {
@@ -1238,7 +1247,7 @@
1238 1247
       this.replacementWays = this.$store.getters.replacement_ways
1239 1248
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1240 1249
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1241
-
1250
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1242 1251
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1243 1252
 
1244 1253
       var bloodAccessParOpera = getDataConfig(
@@ -1283,7 +1292,7 @@
1283 1292
       this.precautions = getDataConfig('hemodialysis', 'precaution')
1284 1293
       this.intake = getDataConfig('hemodialysis', 'intake')
1285 1294
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
1286
-      console.log('nutrition', this.nutrition)
1295
+      // console.log('nutrition', this.nutrition)
1287 1296
   }
1288 1297
 }
1289 1298
 </script>

+ 10 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue 查看文件

@@ -1525,13 +1525,19 @@
1525 1525
         return ''
1526 1526
       }, getAge: function(val) {
1527 1527
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1528
-          if (val.age == 0) {
1528
+          if(val.birthday != 0){
1529 1529
             return jsGetAge(val.birth, '-')
1530
-          } else {
1531
-            return val.age
1530
+          }else{
1531
+
1532
+            return ''
1533
+
1532 1534
           }
1533 1535
         } else {
1534
-          return jsGetAge(val.birth, '-')
1536
+          if(val.birthday != 0){
1537
+            return jsGetAge(val.birth, '-')
1538
+          }else{
1539
+            return ''
1540
+          }
1535 1541
         }
1536 1542
       }, newAdviceGroupObject: function() {
1537 1543
         return Object.assign(

文件差異過大導致無法顯示
+ 427 - 296
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue


+ 10 - 4
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue 查看文件

@@ -1582,13 +1582,19 @@
1582 1582
         return ''
1583 1583
       }, getAge: function(val) {
1584 1584
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1585
-          if (val.age == 0) {
1585
+          if(val.birthday != 0){
1586 1586
             return jsGetAge(val.birth, '-')
1587
-          } else {
1588
-            return val.age
1587
+          }else{
1588
+
1589
+            return ''
1590
+
1589 1591
           }
1590 1592
         } else {
1591
-          return jsGetAge(val.birth, '-')
1593
+          if(val.birthday != 0){
1594
+            return jsGetAge(val.birth, '-')
1595
+          }else{
1596
+            return ''
1597
+          }
1592 1598
         }
1593 1599
       }, newAdviceGroupObject: function() {
1594 1600
         return Object.assign(

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

@@ -475,7 +475,7 @@
475 475
 </template>
476 476
 <script>
477 477
 import { getDataConfig } from "@/utils/data";
478
-import { uParseTime } from "@/utils/tools";
478
+import { uParseTime,jsGetAge } from "@/utils/tools";
479 479
 import { fetchPatient } from "@/api/patient";
480 480
 import { fetchAllAdminUsers } from "@/api/doctor";
481 481
 const defaultForm = {
@@ -633,11 +633,7 @@ export default {
633 633
             this.form.work = patietInfo.work_unit;
634 634
             this.form.unit_address = patietInfo.unit_address;
635 635
 
636
-            if (patietInfo.age == 0) {
637 636
               this.form.age = jsGetAge(this.form.birth, "-");
638
-            } else {
639
-              this.form.age = patietInfo.age;
640
-            }
641 637
 
642 638
             if (patietInfo.profession > 0) {
643 639
               this.form.profession = patietInfo.profession;