Pārlūkot izejas kodu

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

XMLWAN 4 gadus atpakaļ
vecāks
revīzija
a1ed8c0fac

+ 110 - 10
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue Parādīt failu

@@ -1270,7 +1270,11 @@
1270 1270
                   <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1271 1271
                 </tr> -->
1272 1272
                   <tr style="line-height:35px;padding:8px 5px;">
1273
-                    <td width="30px" :rowspan="record.advices.length + 1">
1273
+                    <td
1274
+                      width="30"
1275
+                      style="font-size: 16px"
1276
+                      :rowspan="record.advices.length + 1"
1277
+                    >
1274 1278
                       医嘱内容
1275 1279
                     </td>
1276 1280
                     <td style="font-size: 16px" width="10%">时间</td>
@@ -1699,15 +1703,110 @@
1699 1703
                           </tr>
1700 1704
                         </tbody>
1701 1705
                       </table>
1702
-                      <!--<table class="table-box">-->
1703
-                      <!--<tbody>-->
1704
-                      <!--<tr>-->
1705
-                      <!--<td width="">-->
1706
-                      <!--<div class="under-line">&nbsp;{{summary.dialysis_summary.substring(56,120)}}&nbsp;</div>-->
1707
-                      <!--</td>-->
1708
-                      <!--</tr>-->
1709
-                      <!--</tbody>-->
1710
-                      <!--</table>-->
1706
+
1707
+                      <table class="table-box">
1708
+                        <tbody>
1709
+                          <tr>
1710
+                            <td width="70">静脉管道:</td>
1711
+                            <td width="220">
1712
+                              <div
1713
+                                style="display:flex;justify-content:space-between;"
1714
+                              >
1715
+                                <label-box
1716
+                                  :isChecked="
1717
+                                    isCheckBoxChecked(
1718
+                                      record.assessment_after_dislysis,
1719
+                                      'intravenous_tube',
1720
+                                      1
1721
+                                    )
1722
+                                  "
1723
+                                  showValue="无"
1724
+                                ></label-box>
1725
+                                <label-box
1726
+                                  :isChecked="
1727
+                                    isCheckBoxChecked(
1728
+                                      record.assessment_after_dislysis,
1729
+                                      'intravenous_tube',
1730
+                                      2
1731
+                                    )
1732
+                                  "
1733
+                                  showValue="+"
1734
+                                ></label-box>
1735
+                                <label-box
1736
+                                  :isChecked="
1737
+                                    isCheckBoxChecked(
1738
+                                      record.assessment_after_dislysis,
1739
+                                      'intravenous_tube',
1740
+                                      3
1741
+                                    )
1742
+                                  "
1743
+                                  showValue="+ +"
1744
+                                ></label-box>
1745
+                                <label-box
1746
+                                  :isChecked="
1747
+                                    isCheckBoxChecked(
1748
+                                      record.assessment_after_dislysis,
1749
+                                      'intravenous_tube',
1750
+                                      4
1751
+                                    )
1752
+                                  "
1753
+                                  showValue="+ + +"
1754
+                                ></label-box>
1755
+                              </div>
1756
+                            </td>
1757
+                            <td width="80"></td>
1758
+                            <td width="70">动脉管道:</td>
1759
+                            <td width="220">
1760
+                              <div
1761
+                                style="display:flex;justify-content:space-between;"
1762
+                              >
1763
+                                <label-box
1764
+                                  :isChecked="
1765
+                                    isCheckBoxChecked(
1766
+                                      record.assessment_after_dislysis,
1767
+                                      'arterial_tube',
1768
+                                      1
1769
+                                    )
1770
+                                  "
1771
+                                  showValue="无"
1772
+                                ></label-box>
1773
+                                <label-box
1774
+                                  :isChecked="
1775
+                                    isCheckBoxChecked(
1776
+                                      record.assessment_after_dislysis,
1777
+                                      'arterial_tube',
1778
+                                      2
1779
+                                    )
1780
+                                  "
1781
+                                  showValue="+"
1782
+                                ></label-box>
1783
+                                <label-box
1784
+                                  :isChecked="
1785
+                                    isCheckBoxChecked(
1786
+                                      record.assessment_after_dislysis,
1787
+                                      'arterial_tube',
1788
+                                      3
1789
+                                    )
1790
+                                  "
1791
+                                  showValue="+ +"
1792
+                                ></label-box>
1793
+                                <label-box
1794
+                                  :isChecked="
1795
+                                    isCheckBoxChecked(
1796
+                                      record.assessment_after_dislysis,
1797
+                                      'arterial_tube',
1798
+                                      4
1799
+                                    )
1800
+                                  "
1801
+                                  showValue="+ + +"
1802
+                                ></label-box>
1803
+                              </div>
1804
+                            </td>
1805
+                            <td></td>
1806
+                          </tr>
1807
+                        </tbody>
1808
+                      </table>
1809
+
1711 1810
                       <table class="table-box">
1712 1811
                         <tbody>
1713 1812
                           <tr>
@@ -1914,6 +2013,7 @@
1914 2013
               </table>
1915 2014
             </div>
1916 2015
           </div>
2016
+          <div style="page-break-after: always;"></div>
1917 2017
         </div>
1918 2018
       </div>
1919 2019
     </div>

+ 7 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Parādīt failu

@@ -26,10 +26,10 @@
26 26
               住院号:
27 27
               <div
28 28
                 class="under_line"
29
-                style="width: 50px;text-align: left"
29
+                style="width: 70px;text-align: left"
30 30
                 v-if="record.receive_assessment.admission_number"
31 31
               >{{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}</div>
32
-              <div class="under_line" style="width: 50px;" v-else>{{'/'}}</div>
32
+              <div class="under_line" style="width: 70px;" v-else>{{'/'}}</div>
33 33
             </div>
34 34
             <div class="inline_block" style="margin-left:5px;">
35 35
               姓名:
@@ -49,7 +49,7 @@
49 49
               诊断:
50 50
               <div
51 51
                 class="under_line_two"
52
-                style="width: 160px;text-align: left"
52
+                style="width: 150px;text-align: left"
53 53
               >{{record.patient.diagnose}}</div>
54 54
             </div>
55 55
           </div>
@@ -616,7 +616,7 @@
616 616
                 诊断:
617 617
                 <div
618 618
                   class="under_line_two"
619
-                  style="width: 180px;text-align: left"
619
+                  style="width: 150px;text-align: left"
620 620
                 >{{record.patient.diagnose}}</div>
621 621
               </div>
622 622
             </div>
@@ -1135,7 +1135,7 @@
1135 1135
                 style="width: 70px;text-align: left"
1136 1136
                 v-if="record.receive_assessment.admission_number"
1137 1137
               >{{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}</div>
1138
-              <div class="under_line" style="width: 50px;" v-else>{{'/'}}</div>
1138
+              <div class="under_line" style="width: 70px;" v-else>{{'/'}}</div>
1139 1139
             </div>
1140 1140
             <div class="inline_block" style="margin-left:5px;">
1141 1141
               姓名:
@@ -1155,7 +1155,7 @@
1155 1155
               诊断:
1156 1156
               <div
1157 1157
                 class="under_line_two"
1158
-                style="width: 160px;text-align: left"
1158
+                style="width: 150px;text-align: left"
1159 1159
               >{{record.patient.diagnose}}</div>
1160 1160
             </div>
1161 1161
           </div>
@@ -1606,7 +1606,7 @@
1606 1606
                   诊断:
1607 1607
                   <div
1608 1608
                     class="under_line_two"
1609
-                    style="width: 180px;text-align: left"
1609
+                    style="width: 150px;text-align: left"
1610 1610
                   >{{record.patient.diagnose}}</div>
1611 1611
                 </div>
1612 1612
               </div>

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue Parādīt failu

@@ -20,10 +20,10 @@
20 20
             </div>
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23
-              <div class="under_line" style="width: 50px;text-align: left" v-if="record.receive_assessment.admission_number">
23
+              <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
24 24
                 {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26
-              <div class="under_line" style="width: 50px;" v-else>
26
+              <div class="under_line" style="width: 70px;" v-else>
27 27
                 {{'/'}}
28 28
               </div>
29 29
             </div>
@@ -45,7 +45,7 @@
45 45
 
46 46
             <div class="inline_block" style="margin-left: 5px;">
47 47
               诊断:
48
-              <div class="under_line_two" style="width: 160px;text-align: left">{{record.patient.diagnose}}</div>
48
+              <div class="under_line_two" style="width: 150px;text-align: left">{{record.patient.diagnose}}</div>
49 49
             </div>
50 50
 
51 51
           </div>
@@ -389,7 +389,7 @@
389 389
 
390 390
               <div class="inline_block" style="margin-left: 10px;">
391 391
                 诊断:
392
-                <div class="under_line_two" style="width: 180px;text-align: left">{{record.patient.diagnose}}</div>
392
+                <div class="under_line_two" style="width: 150px;text-align: left">{{record.patient.diagnose}}</div>
393 393
               </div>
394 394
 
395 395
             </div>

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue Parādīt failu

@@ -20,10 +20,10 @@
20 20
             </div>
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23
-              <div class="under_line" style="width: 50px;text-align: left" v-if="record.receive_assessment.admission_number">
23
+              <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
24 24
                 {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26
-              <div class="under_line" style="width: 50px;" v-else>
26
+              <div class="under_line" style="width: 70px;" v-else>
27 27
                 {{'/'}}
28 28
               </div>
29 29
             </div>
@@ -45,7 +45,7 @@
45 45
 
46 46
             <div class="inline_block" style="margin-left: 5px;">
47 47
               诊断:
48
-              <div class="under_line_two" style="width: 160px;text-align: left">{{record.patient.diagnose}}</div>
48
+              <div class="under_line_two" style="width: 150px;text-align: left">{{record.patient.diagnose}}</div>
49 49
             </div>
50 50
 
51 51
           </div>
@@ -382,7 +382,7 @@
382 382
 
383 383
                 <div class="inline_block" style="margin-left: 10px;">
384 384
                   诊断:
385
-                  <div class="under_line_two" style="width: 180px;text-align: left">{{record.patient.diagnose}}</div>
385
+                  <div class="under_line_two" style="width: 150px;text-align: left">{{record.patient.diagnose}}</div>
386 386
                 </div>
387 387
 
388 388
               </div>

+ 58 - 59
src/xt_pages/dialysis/bulletinBoard.vue Parādīt failu

@@ -143,43 +143,43 @@
143 143
 </template>
144 144
 
145 145
 <script>
146
-import { getBoards } from "@/api/board";
147
-import bulletinboard from "./components/bulletinboard";
148
-import { parseTime } from "@/utils";
149
-import BreadCrumb from "../components/bread-crumb";
150
-import screenfull from "screenfull";
146
+import { getBoards } from '@/api/board'
147
+import bulletinboard from './components/bulletinboard'
148
+import { parseTime } from '@/utils'
149
+import BreadCrumb from '../components/bread-crumb'
150
+import screenfull from 'screenfull'
151 151
 export default {
152 152
   components: { BreadCrumb, bulletinboard },
153
-  name: "bulletinBoard",
153
+  name: 'bulletinBoard',
154 154
   data() {
155 155
     return {
156 156
       dialogTableVisible: false,
157 157
       showSetting: false,
158 158
       crumbs: [
159
-        { path: false, name: "透析管理" },
160
-        { path: "dialysis/board", name: "数据看板" }
159
+        { path: false, name: '透析管理' },
160
+        { path: 'dialysis/board', name: '数据看板' }
161 161
       ],
162
-      orgname: "",
163
-      today: "今天",
164
-      week: "--",
165
-      timer:null,
166
-      rightItem: "board-right-menu-item",
162
+      orgname: '',
163
+      today: '今天',
164
+      week: '--',
165
+      timer: null,
166
+      rightItem: 'board-right-menu-item',
167 167
       boardData: [],
168 168
       showTime: 120,
169 169
       currentPage: 0,
170 170
       loading: true,
171
-      weekDay: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
172
-      roonOptions: { 1: "上午", 2: "下午", 3: "晚上" },
171
+      weekDay: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
172
+      roonOptions: { 1: '上午', 2: '下午', 3: '晚上' },
173 173
       modeOptions: {}
174
-    };
174
+    }
175 175
   },
176 176
   created() {
177
-    var xtuser = this.$store.getters.xt_user;
178
-    this.orgname = xtuser.org.org_name;
177
+    var xtuser = this.$store.getters.xt_user
178
+    this.orgname = xtuser.org.org_name
179 179
     // this.orgname = "遂溪方济医院";
180
-    this.modeOptions = this.$store.getters.treatment_mode;
181
-    this.initData();
182
-  }, beforeDestroy () {
180
+    this.modeOptions = this.$store.getters.treatment_mode
181
+    this.initData()
182
+  }, beforeDestroy() {
183 183
     clearInterval(this.timer)
184 184
     this.timer = null
185 185
     this.$once('hook:beforeDestroy', () => {
@@ -188,92 +188,91 @@ export default {
188 188
   },
189 189
   methods: {
190 190
     fullscreenboard: function() {
191
-      this.dialogTableVisible = true;
191
+      this.dialogTableVisible = true
192 192
       // let routeData = this.$router.resolve({ path: '/fullscreenboard' })
193 193
       // window.open(routeData.href, '_blank')
194 194
     },
195 195
     outfullscreenboard: function() {
196
-      this.dialogTableVisible = false;
197
-      this.showSetting = false;
196
+      this.dialogTableVisible = false
197
+      this.showSetting = false
198 198
     },
199 199
     togglefullscreen: function() {
200 200
       if (!screenfull.enabled) {
201 201
         this.$message({
202
-          message: "你的浏览器不支持",
203
-          type: "warning"
204
-        });
205
-        return false;
202
+          message: '你的浏览器不支持',
203
+          type: 'warning'
204
+        })
205
+        return false
206 206
       }
207
-      screenfull.toggle();
208
-      this.showSetting = false;
207
+      screenfull.toggle()
208
+      this.showSetting = false
209 209
     },
210 210
     openSetting() {
211 211
       if (this.showSetting == false) {
212
-        this.showSetting = true;
212
+        this.showSetting = true
213 213
       } else {
214
-        this.showSetting = false;
214
+        this.showSetting = false
215 215
       }
216 216
     },
217 217
     initData: function() {
218
-      var _this = this;
219
-      var timeOut = this.showTime * 1000;
220
-      this.currentPage++;
221
-      this.getBoards();
218
+      var _this = this
219
+      var timeOut = this.showTime * 1000
220
+      this.currentPage++
221
+      this.getBoards()
222 222
 
223 223
       this.timer = window.setInterval(() => {
224 224
         setTimeout(this.getBoards(), 0)
225
-      }, timeOut)
226
-
225
+      }, 120000)
227 226
     },
228 227
     getBoards: function() {
229 228
       getBoards(this.currentPage).then(response => {
230
-        this.loading = false;
231
-        var r = response.data;
229
+        this.loading = false
230
+        var r = response.data
232 231
         if (r.state == 0) {
233
-          this.$message.error(r.msg);
234
-          return false;
232
+          this.$message.error(r.msg)
233
+          return false
235 234
         } else {
236 235
           if (r.data.boards.length == 0) {
237
-            this.currentPage = 1;
238
-            this.getBoards();
236
+            this.currentPage = 1
237
+            // this.getBoards()
239 238
           } else {
240
-            this.today = r.data.today;
239
+            this.today = r.data.today
241 240
             this.week =
242
-              r.data.week in this.weekDay ? this.weekDay[r.data.week] : "--";
243
-            this.boardData = r.data.boards;
241
+              r.data.week in this.weekDay ? this.weekDay[r.data.week] : '--'
242
+            this.boardData = r.data.boards
244 243
           }
245 244
         }
246
-      });
245
+      })
247 246
     },
248 247
     modeName: function(mode_id) {
249
-      return mode_id in this.modeOptions ? this.modeOptions[mode_id].name : "";
248
+      return mode_id in this.modeOptions ? this.modeOptions[mode_id].name : ''
250 249
     },
251 250
     boradData: function(record) {
252 251
       if (record.dialysis_order) {
253 252
         if (record.dialysis_order.stage == 2) {
254
-          return "已下机";
253
+          return '已下机'
255 254
         } else {
256
-          return "透析中";
255
+          return '透析中'
257 256
         }
258 257
       } else if (record.sign) {
259
-        return "已签到";
258
+        return '已签到'
260 259
       } else {
261
-        return "未签到";
260
+        return '未签到'
262 261
       }
263 262
     },
264 263
     nextSchedule: function(nextlist) {
265 264
       if (nextlist.length == 0) {
266
-        return "——";
265
+        return '——'
267 266
       }
268
-      var dayTime = parseTime(nextlist[0].schedule_date, "{m}月{d}日");
267
+      var dayTime = parseTime(nextlist[0].schedule_date, '{m}月{d}日')
269 268
       var noon =
270 269
         nextlist[0].schedule_type in this.roonOptions
271
-          ? " " + this.roonOptions[nextlist[0].schedule_type]
272
-          : "";
273
-      return dayTime + noon;
270
+          ? ' ' + this.roonOptions[nextlist[0].schedule_type]
271
+          : ''
272
+      return dayTime + noon
274 273
     }
275 274
   }
276
-};
275
+}
277 276
 </script>
278 277
 
279 278
 <style lang="scss" scoped>

+ 67 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue Parādīt failu

@@ -1663,6 +1663,73 @@
1663 1663
                   </tr>
1664 1664
                 </tbody>
1665 1665
               </table>
1666
+
1667
+              <table class="table-box">
1668
+                <tbody>
1669
+                  <tr>
1670
+                    <td width="70">静脉管道:</td>
1671
+                    <td width="220">
1672
+                      <div style="display:flex;justify-content:space-between;">
1673
+                        <label-box
1674
+                          :isChecked="
1675
+                            afterdialysis.intravenous_tube == 1 ? true : false
1676
+                          "
1677
+                          showValue="无"
1678
+                        ></label-box>
1679
+                        <label-box
1680
+                          :isChecked="
1681
+                            afterdialysis.intravenous_tube == 2 ? true : false
1682
+                          "
1683
+                          showValue="+"
1684
+                        ></label-box>
1685
+                        <label-box
1686
+                          :isChecked="
1687
+                            afterdialysis.intravenous_tube == 3 ? true : false
1688
+                          "
1689
+                          showValue="+ +"
1690
+                        ></label-box>
1691
+                        <label-box
1692
+                          :isChecked="
1693
+                            afterdialysis.intravenous_tube == 4 ? true : false
1694
+                          "
1695
+                          showValue="+ + +"
1696
+                        ></label-box>
1697
+                      </div>
1698
+                    </td>
1699
+                    <td width="80"></td>
1700
+                    <td width="70">动脉管道:</td>
1701
+                    <td width="220">
1702
+                      <div style="display:flex;justify-content:space-between;">
1703
+                        <label-box
1704
+                          :isChecked="
1705
+                            afterdialysis.arterial_tube == 1 ? true : false
1706
+                          "
1707
+                          showValue="无"
1708
+                        ></label-box>
1709
+                        <label-box
1710
+                          :isChecked="
1711
+                            afterdialysis.arterial_tube == 2 ? true : false
1712
+                          "
1713
+                          showValue="+"
1714
+                        ></label-box>
1715
+                        <label-box
1716
+                          :isChecked="
1717
+                            afterdialysis.arterial_tube == 3 ? true : false
1718
+                          "
1719
+                          showValue="+ +"
1720
+                        ></label-box>
1721
+                        <label-box
1722
+                          :isChecked="
1723
+                            afterdialysis.arterial_tube == 4 ? true : false
1724
+                          "
1725
+                          showValue="+ + +"
1726
+                        ></label-box>
1727
+                      </div>
1728
+                    </td>
1729
+                    <td></td>
1730
+                  </tr>
1731
+                </tbody>
1732
+              </table>
1666 1733
               <!--<table class="table-box">-->
1667 1734
               <!--<tbody>-->
1668 1735
               <!--<tr>-->

+ 6 - 6
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Parādīt failu

@@ -12,10 +12,10 @@
12 12
         </div>
13 13
         <div class="inline_block" style="margin-left: 5px;">
14 14
           住院号:
15
-          <div class="under_line" style="width: 50px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
15
+          <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
16 16
             {{patientInfo_source_2?receiverTreatmentAccess.admission_number: '/'}}
17 17
           </div>
18
-          <div class="under_line" style="width: 50px;text-align: left" v-else>
18
+          <div class="under_line" style="width: 70px;text-align: left" v-else>
19 19
             {{'/'}}
20 20
           </div>
21 21
         </div>
@@ -36,7 +36,7 @@
36 36
         </div>
37 37
         <div class="inline_block" style="margin-left: 5px;">
38 38
           诊断:
39
-          <div class="under_line" style="width: 160px;text-align: left">{{patientInfo.diagnose}}</div>
39
+          <div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>
40 40
         </div>
41 41
       </div>
42 42
 
@@ -601,10 +601,10 @@
601 601
         </div>
602 602
         <div class="inline_block" style="margin-left: 5px;">
603 603
           住院号:
604
-          <div class="under_line" style="width: 50px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
604
+          <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
605 605
             {{patientInfo_source_2?receiverTreatmentAccess.admission_number:'/'}}
606 606
           </div>
607
-          <div class="under_line" style="width: 50px;text-align: left" v-else>
607
+          <div class="under_line" style="width: 70px;text-align: left" v-else>
608 608
             {{'/'}}
609 609
           </div>
610 610
         </div>
@@ -625,7 +625,7 @@
625 625
         </div>
626 626
         <div class="inline_block" style="margin-left: 5px;">
627 627
           诊断:
628
-          <div class="under_line" style="width:160px;text-align: left">{{patientInfo.diagnose}}</div>
628
+          <div class="under_line" style="width:150px;text-align: left">{{patientInfo.diagnose}}</div>
629 629
         </div>
630 630
       </div>
631 631