浏览代码

Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch

test_user 2 年前
父节点
当前提交
eebf1e83be
共有 51 个文件被更改,包括 9597 次插入414 次删除
  1. 2 2
      config/dev.env.js
  2. 2 2
      config/index.js
  3. 1 1
      package.json
  4. 16 0
      src/api/stock.js
  5. 59 23
      src/router/modules/dialysis.js
  6. 22 0
      src/router/modules/stock.js
  7. 4 3
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  8. 147 1
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  9. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyOne.vue
  10. 2417 0
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  11. 4264 0
      src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue
  12. 1117 31
      src/xt_pages/dialysis/bloodPresssWatch.vue
  13. 1 1
      src/xt_pages/dialysis/details/assessmentAfter.vue
  14. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  15. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  16. 58 26
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  17. 13 5
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  18. 1 1
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  19. 13 0
      src/xt_pages/dialysis/schedualPatient.vue
  20. 28 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue
  21. 32 28
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  22. 9 1
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  23. 91 5
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyEight.vue
  24. 31 3
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyFour.vue
  25. 24 5
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  26. 2 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  27. 137 20
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  28. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue
  29. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyOne.vue
  30. 24 11
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue
  31. 3 3
      src/xt_pages/outpatientCharges/statementPrint.vue
  32. 26 122
      src/xt_pages/outpatientCharges/summary.vue
  33. 5 3
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  34. 6 1
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  35. 4 11
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  36. 415 0
      src/xt_pages/stock/detail/printOne.vue
  37. 415 0
      src/xt_pages/stock/detail/printTwo.vue
  38. 27 1
      src/xt_pages/stock/detail/stockInDetail.vue
  39. 36 14
      src/xt_pages/stock/detail/stockOutDetail.vue
  40. 1 1
      src/xt_pages/stock/drugs/components/drugPatientQuery.vue
  41. 2 2
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  42. 1 2
      src/xt_pages/stock/query/goodNewQuery.vue
  43. 2 0
      src/xt_pages/stock/stockFlow.vue
  44. 17 7
      src/xt_pages/user/courseOfDisease.vue
  45. 2 1
      src/xt_pages/user/dialysisSolution.vue
  46. 6 1
      src/xt_pages/workforce/components/nextTableWeeks.vue
  47. 2 10
      src/xt_pages/workforce/components/tableWeeks.vue
  48. 27 2
      src/xt_pages/workforce/printOne.vue
  49. 60 43
      src/xt_pages/workforce/remind_print_setting_one.vue
  50. 7 0
      src/xt_pages/workforce/template.vue
  51. 13 13
      src/xt_permission.js

+ 2 - 2
config/dev.env.js 查看文件

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  // BASE_API: '"http://localhost:9531"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js 查看文件

@@ -27,10 +27,10 @@ module.exports = {
27 27
     // can be overwritten by process.env.HOST
28 28
     // if you want dev by ip, please set host: '0.0.0.0'
29 29
 
30
-    host: 'xt.test.sgjyun.com',
30
+    // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32 32
    // host: 'xt.test.sgjyun.com',
33
-  //  host: 'localhost',
33
+    host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 1 - 1
package.json 查看文件

@@ -56,7 +56,7 @@
56 56
     "jszip": "3.1.5",
57 57
     "mockjs": "1.0.1-beta3",
58 58
     "moment": "^2.24.0",
59
-    "node-sass": "4.14.1",
59
+    "node-sass": "^8.0.0",
60 60
     "normalize.css": "7.0.0",
61 61
     "nprogress": "0.2.0",
62 62
     "print-js": "^1.0.50",

+ 16 - 0
src/api/stock.js 查看文件

@@ -1072,3 +1072,19 @@ export function getwarehouseinfolist(params) {
1072 1072
     params: params
1073 1073
   })
1074 1074
 }
1075
+
1076
+export function getNewGoodWarehouseInfo(params) {
1077
+  return request({
1078
+    url: '/api/stock/getnewgoodwarehouseinfo',
1079
+    method: 'get',
1080
+    params: params
1081
+  })
1082
+}
1083
+
1084
+export function getNewWarehouseOutInfoList(params) {
1085
+  return request({
1086
+    url: '/api/stock/getnewwarehouseoutinfolist',
1087
+    method: 'Get',
1088
+    params: params
1089
+  })
1090
+}

+ 59 - 23
src/router/modules/dialysis.js 查看文件

@@ -68,17 +68,17 @@ export default {
68 68
       }
69 69
     },
70 70
 
71
-    {
72
-      path: '/dialysis/doctorAdviceStaticPrint',
73
-      component: () => import('@/xt_pages/dialysis/doctorAdviceStaticPrint'),
74
-      name: '透析医嘱统计打印',
75
-      hidden: true,
76
-      is_menu: false,
77
-      meta: {
78
-        title: '透析医嘱统计打印',
79
-        noCache: true
80
-      }
81
-    },
71
+    // {
72
+    //   path: '/dialysis/doctorAdviceStaticPrint',
73
+    //   component: () => import('@/xt_pages/dialysis/doctorAdviceStaticPrint'),
74
+    //   name: '透析医嘱统计打印',
75
+    //   hidden: true,
76
+    //   is_menu: false,
77
+    //   meta: {
78
+    //     title: '透析医嘱统计打印',
79
+    //     noCache: true
80
+    //   }
81
+    // },
82 82
 
83 83
     {
84 84
       path: '/dialysis/signPrint',
@@ -347,6 +347,30 @@ export default {
347 347
         noCache: true
348 348
       }
349 349
     },
350
+    {
351
+      path: '/dialysis/print/batch/fiftyone',
352
+      component: () =>
353
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fiftyone'),
354
+      hidden: true,
355
+      is_menu: false,
356
+      name: 'dialysis_batch_fiftyone',
357
+      meta: {
358
+        title: '批量打印',
359
+        noCache: true
360
+      }
361
+    },
362
+    {
363
+      path: '/dialysis/print/batch/fiftythree',
364
+      component: () =>
365
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fiftythree'),
366
+      hidden: true,
367
+      is_menu: false,
368
+      name: 'dialysis_batch_fiftythree',
369
+      meta: {
370
+        title: '批量打印',
371
+        noCache: true
372
+      }
373
+    },
350 374
     {
351 375
       path: '/dialysis/print/batch/fiftynine',
352 376
       component: () =>
@@ -383,6 +407,18 @@ export default {
383 407
         noCache: true
384 408
       }
385 409
     },
410
+    {
411
+      path: '/dialysis/print/batch/sixtyTwo',
412
+      component: () =>
413
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo'),
414
+      hidden: true,
415
+      is_menu: false,
416
+      name: 'dialysis_batch_sixtyTwo',
417
+      meta: {
418
+        title: '批量打印',
419
+        noCache: true
420
+      }
421
+    },
386 422
     {
387 423
       path: '/dialysis/print/batch/seven',
388 424
       component: () =>
@@ -503,18 +539,18 @@ export default {
503 539
         noCache: true
504 540
       }
505 541
     },
506
-    // {
507
-    //   path: '/dialysis/print/batch/twentySeven',
508
-    //   component: () =>
509
-    //   import('@/xt_pages/dialysis/batch_print/batch_print_order_twentySeven'),
510
-    //   hidden: true,
511
-    //   is_menu: false,
512
-    //   name: 'dialysis_batch_twentySeven',
513
-    //   meta: {
514
-    //     title: '批量打印',
515
-    //     noCache: true
516
-    //   }
517
-    // },
542
+    {
543
+      path: '/dialysis/print/batch/twentySeven',
544
+      component: () =>
545
+      import('@/xt_pages/dialysis/batch_print/batch_print_order_twentySeven'),
546
+      hidden: true,
547
+      is_menu: false,
548
+      name: 'dialysis_batch_twentySeven',
549
+      meta: {
550
+        title: '批量打印',
551
+        noCache: true
552
+      }
553
+    },
518 554
     {
519 555
       path: '/dialysis/print/batch/twentyEight',
520 556
       component: () =>

+ 22 - 0
src/router/modules/stock.js 查看文件

@@ -259,6 +259,28 @@ export default {
259 259
         noCache: true
260 260
       }
261 261
     },
262
+    {
263
+      path: '/stock/print/one',
264
+      component: () => import('@/xt_pages/stock/detail/printOne'),
265
+      hidden: true,
266
+      is_menu: false,
267
+      name: 'stock_print_one',
268
+      meta: {
269
+        title: '库存打印',
270
+        noCache: true
271
+      }
272
+    },
273
+    {
274
+      path: '/stock/print/two',
275
+      component: () => import('@/xt_pages/stock/detail/printTwo'),
276
+      hidden: true,
277
+      is_menu: false,
278
+      name: 'stock_print_two',
279
+      meta: {
280
+        title: '库存打印',
281
+        noCache: true
282
+      }
283
+    },
262 284
     {
263 285
       path: '/stock/user/detail',
264 286
       component: () => import('@/xt_pages/stock/stockUserDetail'),

+ 4 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue 查看文件

@@ -328,7 +328,7 @@
328 328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
329 329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
330 330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
331
-                        <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
331
+                        <!-- <td width="60" style="height:20px;line-height:20px">温度<br />°C</td> -->
332 332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
333 333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334 334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
@@ -352,7 +352,7 @@
352 352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
353 353
 
354 354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
355
-                        <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td>
355
+                        <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td> -->
356 356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
357 357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358 358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
@@ -716,6 +716,7 @@ export default {
716 716
       .then(rs => {
717 717
         var resp = rs.data
718 718
         if (resp.state == 1) {
719
+          this.loading = false
719 720
           this.org_template_info = resp.data.templateInfo
720 721
 
721 722
           this.records = this.records.concat(resp.data.schedules)
@@ -887,7 +888,7 @@ export default {
887 888
           this.adminSign = name
888 889
           console.log('name是', name)
889 890
           console.log('记录', this.records)
890
-          this.loading = false
891
+          
891 892
         } else {
892 893
           this.loading = false
893 894
           this.$message.error(resp.msg)

+ 147 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -1503,7 +1503,7 @@
1503 1503
                     </table>
1504 1504
                   </td>
1505 1505
                 </tr>
1506
-                <tr>
1506
+                <tr v-if="org_id!=10402">
1507 1507
                   <td style="padding: 0; position: relative" colspan="2">
1508 1508
                     <table class="inside_table">
1509 1509
                       <tbody>
@@ -1650,6 +1650,151 @@
1650 1650
                     </table>
1651 1651
                   </td>
1652 1652
                 </tr>
1653
+
1654
+                 <tr v-if="org_id == 10402">
1655
+                  <td style="padding: 0; position: relative" colspan="2">
1656
+                    <table class="inside_table">
1657
+                      <tbody>
1658
+                        <tr style="line-height: 35px; padding: 8px 5px">
1659
+                          <td
1660
+                            colspan="7"
1661
+                            style="
1662
+                              letter-spacing: 5px;
1663
+                              text-align: center;
1664
+                              font-weight: 520;
1665
+                              font-size: 16px;
1666
+                              padding: 6px 8px;
1667
+                              line-height: 30px;
1668
+                            "
1669
+                          >
1670
+                            医嘱内容
1671
+                          </td>
1672
+                        </tr>
1673
+                        <!-- <tr style="line-height:35px;padding:8px 5px;">
1674
+                                            <td colspan="4" style="font-size: 16px">开医嘱</td>
1675
+                                            <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1676
+                            </tr> -->
1677
+                        <tr style="line-height: 35px; padding: 8px 5px">
1678
+                          <td style="font-size: 16px" width="10%">时间</td>
1679
+                          <td style="font-size: 16px" colspan="2" width="45%">
1680
+                            医嘱内容
1681
+                          </td>
1682
+                          <td style="font-size: 16px" width="10%">医生签名</td>
1683
+                          <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
1684
+                          <td style="font-size: 16px" width="10%">
1685
+                            执行人签名
1686
+                          </td>
1687
+                          <td style="font-size: 16px" width="10%">时间</td>
1688
+                        </tr>
1689
+                        <!-- <template v-for="group in doctor_advices" > -->
1690
+
1691
+                        <template v-if="record.advices">
1692
+                          <tr
1693
+                            v-for="(advice, advice_index) in record.his_advices"
1694
+                            :key="advice_index"
1695
+                          >
1696
+                            <td height="35px">
1697
+                              <span v-if="advice.start_time">
1698
+                                {{ getTime(advice.start_time, "{h}:{i}") }}
1699
+                              </span>
1700
+                            </td>
1701
+
1702
+                            <td
1703
+                              height="35px"
1704
+                              colspan="2"
1705
+                              class="advice-name"
1706
+                              style="padding-left: 7px"
1707
+                            >
1708
+                              <span v-if="advice.parent_id > 0">---></span>
1709
+                              <span>{{ advice.advice_name }}</span>
1710
+
1711
+                              <span
1712
+                               v-if="advice && advice.advice_desc"
1713
+                              >
1714
+                                ({{ advice.advice_desc
1715
+                                }}{{ advice.drug_spec_unit }} )
1716
+                              </span>
1717
+
1718
+                              <span v-if="advice.prescribing_number"
1719
+                                >&nbsp;&nbsp; {{ advice.prescribing_number
1720
+                                }}{{ advice.prescribing_number_unit }}</span
1721
+                              >
1722
+                              <span v-if="advice.single_dose != 0">
1723
+                                {{ advice.single_dose
1724
+                                }}{{ advice.single_dose_unit }}</span
1725
+                              >
1726
+
1727
+                              <span v-if="advice.parent_id == 0">{{
1728
+                                advice.delivery_way
1729
+                              }}</span>
1730
+                              <span v-if="advice.parent_id == 0">{{
1731
+                                advice.execution_frequency
1732
+                              }}</span>
1733
+                              <span
1734
+                                v-if="
1735
+                                  advice.parent_id == 0 &&
1736
+                                  advice.remark.length > 0
1737
+                                "
1738
+                                >({{ advice.remark }})</span
1739
+                              >
1740
+                            </td>
1741
+
1742
+                            <td height="35px">
1743
+                              <span
1744
+                                v-if="
1745
+                                  setAdminUserES(advice, 'advice_doctor') ==
1746
+                                  ''
1747
+                                "
1748
+                                >{{
1749
+                                  getAdminUser(advice, "advice_doctor")
1750
+                                }}</span
1751
+                              >
1752
+                              <img
1753
+                                class="es-img"
1754
+                                :src="
1755
+                                  setAdminUserES(advice, 'advice_doctor')
1756
+                                "
1757
+                                alt=""
1758
+                                srcset=""
1759
+                                v-else
1760
+                                style="height: 40px"
1761
+                              />
1762
+                            </td>
1763
+
1764
+                            <td height="35px">
1765
+                              <span
1766
+                                v-if="
1767
+                                  setAdminUserES(
1768
+                                    advice,
1769
+                                    'execution_staff'
1770
+                                  ) == ''
1771
+                                "
1772
+                                >{{
1773
+                                  getAdminUser(advice, "execution_staff")
1774
+                                }}</span
1775
+                              >
1776
+                              <img
1777
+                                class="es-img"
1778
+                                :src="
1779
+                                  setAdminUserES(advice, 'execution_staff')
1780
+                                "
1781
+                                alt=""
1782
+                                srcset=""
1783
+                                v-else
1784
+                                style="height: 40px"
1785
+                              />
1786
+                            </td>
1787
+                            <td height="35px">
1788
+                              <span v-if="advice.execution_time">{{
1789
+                                getTime(advice.execution_time, " {h}:{i}")
1790
+                              }}</span>
1791
+                            </td>
1792
+                          </tr>
1793
+                        </template>
1794
+                      </tbody>
1795
+                    </table>
1796
+                  </td>
1797
+                </tr>
1653 1798
               </tbody>
1654 1799
             </table>
1655 1800
           </div>
@@ -1740,6 +1885,7 @@
1740 1885
                 </div>
1741 1886
               </div>
1742 1887
             </div>
1888
+            
1743 1889
             <div class="row">
1744 1890
               <div class="inline_block">
1745 1891
                 入科方式:

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

@@ -1377,7 +1377,7 @@
1377 1377
                                     monitor_record.operate_time ==
1378 1378
                                       record.dialysis_order.start_time
1379 1379
                                   "
1380
-                                  >【开始透析】</template
1380
+                                  >【开始透析】引血100ml/min</template
1381 1381
                                 >
1382 1382
                                 <template
1383 1383
                                   v-if="

文件差异内容过多而无法显示
+ 2417 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue


文件差异内容过多而无法显示
+ 4264 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue


文件差异内容过多而无法显示
+ 1117 - 31
src/xt_pages/dialysis/bloodPresssWatch.vue


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

@@ -17,7 +17,7 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ||  this.$store.getters.xt_user.template_info.org_id == 10441 ||  this.$store.getters.xt_user.template_info.org_id == 10445  ) " >ml</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && ((this.$store.getters.xt_user.template_info.template_id == 6 &&this.$store.getters.xt_user.template_info.org_id != 10447) || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ||  this.$store.getters.xt_user.template_info.org_id == 10441 ||  this.$store.getters.xt_user.template_info.org_id == 10445  ) " >ml</span>
21 21
           <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 && this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10340 &&  this.$store.getters.xt_user.template_info.org_id!= 10387 &&  this.$store.getters.xt_user.template_info.org_id!= 10430 &&  this.$store.getters.xt_user.template_info.org_id!= 10432 &&  this.$store.getters.xt_user.template_info.org_id!= 10441 &&  this.$store.getters.xt_user.template_info.org_id!= 10445"  >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">

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

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445"  >
31
+              v-if=" (this.template_id == 6 && this.$store.getters.xt_user.template_info.org_id != 10447) || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445"  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

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

@@ -1560,7 +1560,7 @@ export default {
1560 1560
         }
1561 1561
       }
1562 1562
       
1563
-      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340){
1563
+      if( this.$store.getters.xt_user.org.id == 0 || this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10447){
1564 1564
          var date = new Date()
1565 1565
           var year = date.getFullYear()
1566 1566
           var month = date.getMonth() + 1

+ 58 - 26
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -189,13 +189,14 @@
189 189
                     <el-row :gutter="20"> -->
190 190
 
191 191
                     <el-col :span="8" v-if="isShows('抗凝剂')">
192
+                     
192 193
                         <el-form-item label="抗凝剂:">
193 194
                             <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
194 195
                                        style="width:100%;"
195 196
                                        @change="changeThisAnticoagulant">
196 197
                                 <el-option :key="0" label="请选择" :value="0"></el-option>
197
-                                <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
198
-                                           :value="3"></el-option>
198
+                                <!-- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
199
+                                           :value="3"></el-option> -->
199 200
                                 <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
200 201
                                            :key="index + 'e'"
201 202
                                            :value="item.id"></el-option>
@@ -205,6 +206,7 @@
205 206
 
206 207
 
207 208
                     <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
209
+                      
208 210
                         <el-form-item label="抗凝剂商品名称:">
209 211
                             <el-input
210 212
                                     v-model="dialysisPrescription.antioxidant_commodity_name"
@@ -245,7 +247,7 @@
245 247
                                           v-model="dialysisPrescription.add_amount"></el-input>
246 248
                             </el-form-item>
247 249
 
248
-                            <el-form-item v-else :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '">
250
+                            <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1" :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '">
249 251
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
250 252
                                           v-model="dialysisPrescription.add_amount"></el-input>
251 253
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -262,7 +264,7 @@
262 264
                                           v-model="dialysisPrescription.reduce_amount"></el-input>
263 265
                             </el-form-item>
264 266
 
265
-                            <el-form-item v-else :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '">
267
+                            <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1" :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '">
266 268
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
267 269
                                           v-model="dialysisPrescription.reduce_amount"></el-input>
268 270
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -270,11 +272,11 @@
270 272
                             </el-form-item>
271 273
                     </el-col>
272 274
 
273
-                    <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
275
+                    <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
274 276
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
275 277
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
276 278
                             <el-form-item
277
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
279
+                                    v-if='dialysisPrescription.anticoagulant != 1 &&this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
278 280
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
279 281
 
280 282
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -291,7 +293,7 @@
291 293
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
292 294
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
293 295
                             </el-form-item>
294
-                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'首剂(iu):'"> 
296
+                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(iu):'"> 
295 297
                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
296 298
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
297 299
 
@@ -299,9 +301,11 @@
299 301
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
300 302
                             </el-form-item>
301 303
 
304
+                          
305
+
302 306
 
303 307
                             <el-form-item
304
-                                    v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 && dialysisPrescription.anticoagulant == 2'
308
+                                    v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387'
305 309
                                     :label="'首剂(mg) : '">
306 310
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
307 311
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -330,6 +334,7 @@
330 334
                         </div>
331 335
 
332 336
                         <div v-else>
337
+                            
333 338
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
334 339
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
335 340
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -350,7 +355,7 @@
350 355
                     </el-col>
351 356
 
352 357
 
353
-                    <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
358
+                    <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
354 359
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
355 360
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
356 361
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
@@ -414,7 +419,7 @@
414 419
 
415 420
 
416 421
 
417
-                    <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
422
+                    <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
418 423
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
419 424
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
420 425
                             <el-form-item
@@ -1716,7 +1721,8 @@
1716 1721
         )
1717 1722
         // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1718 1723
 
1719
-        var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
1724
+        this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1725
+        console.log("抗凝剂",this.anticoagulantsConfit)
1720 1726
 
1721 1727
         // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
1722 1728
         //   console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
@@ -1730,15 +1736,15 @@
1730 1736
         // var arrthree = {}
1731 1737
         // arrthree = { ...arr }
1732 1738
         // console.log('arrthree', arrthree)
1733
-        const arrFour = []
1734
-        Object.keys(anticoagulantsConfitOne).map((item, index) => {
1735
-          arrFour.push(anticoagulantsConfitOne[item])
1736
-          // if (index != 2) {
1737
-          //   arrFour.push(anticoagulantsConfitOne[item])
1738
-          // }
1739
-        })
1740
-
1741
-        this.anticoagulantsConfit = arrFour
1739
+        // const arrFour = []
1740
+        // Object.keys(anticoagulantsConfitOne).map((item, index) => {
1741
+        //   arrFour.push(anticoagulantsConfitOne[item])
1742
+        //   // if (index != 2) {
1743
+        //   //   arrFour.push(anticoagulantsConfitOne[item])
1744
+        //   // }
1745
+        // })
1746
+        // console.log("arrFour0-0000000000000wo",arrFour)
1747
+        // this.anticoagulantsConfit = arrFour
1742 1748
         this.dialysisList = this.devices
1743 1749
 
1744 1750
         this.body_fluid_option = this.$store.getters.body_fluid
@@ -2246,6 +2252,14 @@
2246 2252
             } else if (schedual.schedule_type == 3) {
2247 2253
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2248 2254
             }
2255
+           }else if(this.$store.getters.xt_user.org.id == 10447){
2256
+              if (schedual.schedule_type == 1) {
2257
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2258
+            } else if (schedual.schedule_type == 2) {
2259
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2260
+            } else if (schedual.schedule_type == 3) {
2261
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2262
+            }
2249 2263
            } else {
2250 2264
             if (schedual.schedule_type == 1) {
2251 2265
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
@@ -2313,6 +2327,9 @@
2313 2327
               this.dialysisPrescription.bicarbonate = 31.1
2314 2328
               this.dialysisPrescription.dialysate_flow = 500
2315 2329
             }
2330
+            if(this.$store.getters.xt_user.org.id == 10447){
2331
+              this.dialysisPrescription.dialysate_flow = 500
2332
+            }
2316 2333
         }
2317 2334
         if (this.predialysis == null || this.predialysis.id == 0) {
2318 2335
           
@@ -2374,12 +2391,20 @@
2374 2391
         if (isNaN(thismode) || thismode <= 0) {
2375 2392
           return false
2376 2393
         }
2377
-        if (val <= 2) {
2378
-          this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
2379
-        }
2380
-        if (val > 2) {
2381
-          this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
2394
+        // if (val != 12 && val!=1) {
2395
+        //   this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
2396
+        // }
2397
+        // if (val == 12 || val == 1) {
2398
+        //   this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
2399
+        //   console.log("抗凝剂",this.anticoagulant)
2400
+        // }
2401
+       if (
2402
+          typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
2403
+          this.anticoagulantsConfit[thismode] == null
2404
+        ) {
2405
+          return false
2382 2406
         }
2407
+        this.anticoagulant = this.anticoagulantsConfit[thismode]
2383 2408
         if ((this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 41 || this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 47) && val == 2) {
2384 2409
            if(val == 2){
2385 2410
              this.anticoagulant.shouji_unit = 'mg'
@@ -3524,6 +3549,7 @@
3524 3549
           this.dialysisPrescription.displace_liqui_value = ""
3525 3550
           this.dialysisPrescription.displace_liqui_part = ""
3526 3551
         }
3552
+        
3527 3553
         const ParamsQuery = {}
3528 3554
         ParamsQuery['patient_id'] = this.$route.query.patient_id
3529 3555
         ParamsQuery['mode_id'] = id
@@ -3658,6 +3684,12 @@
3658 3684
           this.zhiShow = true
3659 3685
           this.huShow = true
3660 3686
           this.totalShow = true
3687
+
3688
+          //针对新化博翔
3689
+          if(this.$store.getters.xt_user.template_info.org_id ==10447){
3690
+             this.dialysisPrescription.displace_liqui_part = 1
3691
+             this.dialysisPrescription.displace_liqui_value = 35
3692
+          }
3661 3693
         }
3662 3694
 
3663 3695
       },
@@ -4040,7 +4072,7 @@
4040 4072
               this.dialysisPrescription['dialysate_temperature'] = ''
4041 4073
             }
4042 4074
             if (this.prescription['anticoagulant_shouji'] == 0) {
4043
-              this.dialysisPrescription['anticoagulant_shouji'] = 0
4075
+              this.dialysisPrescription['anticoagulant_'] = 0
4044 4076
             }
4045 4077
             if (this.prescription['anticoagulant_weichi'] == 0) {
4046 4078
               this.dialysisPrescription['anticoagulant_weichi'] = 0

+ 13 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -594,7 +594,7 @@
594 594
           <el-table-column
595 595
             prop="displacement_flow_quantity"
596 596
             align="center"
597
-            label="电导度(mS/m)"
597
+            label="电导度(mS/cm)"
598 598
             width="100"
599 599
             v-if="isShow('电导度')"
600 600
           >
@@ -1322,7 +1322,7 @@
1322 1322
           </el-col>
1323 1323
 
1324 1324
           <el-col :span="8" v-if="isShow('电导度')">
1325
-            <el-form-item label="电导度(mS/m):">
1325
+            <el-form-item label="电导度(mS/cm):">
1326 1326
               <el-input v-model="form.conductivity"></el-input>
1327 1327
             </el-form-item>
1328 1328
           </el-col>
@@ -1917,6 +1917,8 @@ export default {
1917 1917
           this.form.breathing_rated = "20"
1918 1918
         }else if(this.org_id == 10340){
1919 1919
          this.form.breathing_rated = "20"
1920
+        }else if(this.org_id == 10447){
1921
+          this.form.breathing_rated = "20"
1920 1922
         } else {
1921 1923
           this.form.breathing_rated = "";
1922 1924
         }
@@ -1962,7 +1964,13 @@ export default {
1962 1964
         this.form.symptom = resp.monitor.symptom ? resp.monitor.symptom : ""; // this.last_monitor_record.symptom;
1963 1965
        // this.form.dispose = resp.monitor.dispose ? resp.monitor.dispose : ""; // this.last_monitor_record.dispose;
1964 1966
         this.form.result = resp.monitor.result ? resp.monitor.result : ""; // this.last_monitor_record.result;
1965
-        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation? resp.monitor.blood_oxygen_saturation: "";
1967
+        //电导度
1968
+        if(this.org_id == 9671 || this.org_id == 10447){
1969
+           this.form.blood_oxygen_saturation = "99"
1970
+        }else{
1971
+           this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation? resp.monitor.blood_oxygen_saturation: "";
1972
+        }
1973
+       
1966 1974
        //针对长沙南雅医院
1967 1975
        if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 9675){
1968 1976
           this.form.blood_oxygen_saturation = "/"
@@ -1974,7 +1982,7 @@ export default {
1974 1982
         this.form.sodium_concentration = resp.monitor.sodium_concentration
1975 1983
           ? resp.monitor.sodium_concentration
1976 1984
           : "";
1977
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
1985
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10447){
1978 1986
           this.form.conductivity = 14
1979 1987
         }else{
1980 1988
            this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
@@ -2009,7 +2017,7 @@ export default {
2009 2017
         this.form.heparin_amount = resp.monitor.heparin_amount
2010 2018
           ? resp.monitor.heparin_amount
2011 2019
           : "";
2012
-         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2020
+         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10447){
2013 2021
             this.form.dialysate_temperature = 36.5
2014 2022
             
2015 2023
          }

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

@@ -26,7 +26,7 @@
26 26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 )" width="92px"  > 置换量(ml)  </th>
27 27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445)" width="92px" > 置换量(L) </th>
28 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29
-          <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
29
+          <th v-if="isShow('电导度')" width="92px">电导度(mS/cm)</th>
30 30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
31 31
           <th v-if="isShow('置换液流量') && template_id == 27" width="92px">置换液流量(ml/min)</th>
32 32
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>

+ 13 - 0
src/xt_pages/dialysis/schedualPatient.vue 查看文件

@@ -184,6 +184,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
184 184
           {value: 1,label: '待开处方'},
185 185
           {value: 2,label: '待开小结'},
186 186
           {value: 3,label: '待医嘱核对'},
187
+          {value:4,label:'待消毒'},
187 188
         ],
188 189
         treatStateVal: 0,
189 190
         allPatient:[],
@@ -825,6 +826,18 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
825 826
             }
826 827
           }
827 828
           arr2 = arr
829
+        }else if(this.treatStateVal == 4){
830
+         let arr = []
831
+          arr = JSON.parse(JSON.stringify(arr1))
832
+          for (let i = 0; i < arr.length; i++) {
833
+            for (let j = 0; j < arr[i].schedules.length; j++) {
834
+              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].device_information != null)) {
835
+                // 删除元素后改变i的值
836
+                arr[i].schedules.splice(j--, 1);
837
+              }
838
+            }
839
+          }
840
+          arr2 = arr
828 841
         }
829 842
 
830 843
 

+ 28 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue 查看文件

@@ -3,7 +3,21 @@
3 3
     <div class="dialysis-print-order">
4 4
       <div class="order-yy-name">{{ orgname }}</div>
5 5
       <div class="order-title">血液透析(滤过)记录表单</div>
6
-      <div class="order-name">姓 名:&nbsp;{{ patientInfo.name }}</div>
6
+      <div style="display:flex;justify-content: space-between;">
7
+        <div class="order-name" style="margin: 0;">姓 名:&nbsp;{{ patientInfo.name }}</div>
8
+            <div class="order-name" style="margin: 0;">门诊/住院号:&nbsp;
9
+            <span v-if="receiverTreatmentAccess.admission_number">
10
+              {{ receiverTreatmentAccess.admission_number }}
11
+            </span>
12
+            <span v-else-if="patientInfo.admission_number">
13
+              {{ patientInfo.admission_number }}
14
+            </span>
15
+            <span v-else>
16
+              {{ "/" }}
17
+            </span>
18
+            </div>
19
+          </div>
20
+      
7 21
       <table class="print-table" border="1">
8 22
         <tbody>
9 23
           <tr>
@@ -837,13 +851,25 @@
837 851
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
838 852
             <td v-if="advice_index === 3">较干体重增加量:</td>
839 853
             <td v-if="advice_index === 3">
840
-              {{
854
+              <span v-if="org_id==10345">
855
+                {{
856
+                predialysis.weight_before == 0
857
+                  ? 0
858
+                  : (
859
+                      predialysis.weight_before - predialysis.dry_weight
860
+                    ).toFixed(2)
861
+              }}kg
862
+              </span>
863
+              <span v-else>
864
+                {{
841 865
                 afterdialysis.weight_after == 0
842 866
                   ? 0
843 867
                   : (
844 868
                       afterdialysis.weight_after - predialysis.dry_weight
845 869
                     ).toFixed(2)
846 870
               }}kg
871
+              </span>
872
+              
847 873
             </td>
848 874
             <td v-if="advice_index === 4">净脱水量:</td>
849 875
             <td v-if="advice_index === 4">

+ 32 - 28
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue 查看文件

@@ -100,19 +100,6 @@
100 100
                       class="under_line"
101 101
                       style="width: 50px; text-align: center"
102 102
                     >
103
-                      <!-- <span>{{
104
-                        (dialysisOrder &&
105
-                          dialysisOrder != null &&
106
-                          dialysisOrder.DeviceNumber &&
107
-                          dialysisOrder.DeviceNumber.number.length > 0) ||
108
-                        (dialysisOrder &&
109
-                          dialysisOrder != null &&
110
-                          receiverTreatmentAccess.condition &&
111
-                          receiverTreatmentAccess.condition != 1)
112
-                          ? patientInfo.DialysisSchedule.device_number.number
113
-                          : dialysisOrder.DeviceNumber.number
114
-                      }}</span> -->
115
-
116 103
                       <span
117 104
                         v-if="
118 105
                           dialysisOrder == null ||
@@ -1156,6 +1143,15 @@
1156 1143
                                     : "/"
1157 1144
                                 }}
1158 1145
                               </div>
1146
+                               <span v-if="prescription.anticoagulant == 7"
1147
+                                >iu</span
1148
+                              >
1149
+                               <span v-if="prescription.anticoagulant == 6"
1150
+                                >iu</span
1151
+                              >
1152
+                               <span v-if="prescription.anticoagulant == 5"
1153
+                                >ml</span
1154
+                              >
1159 1155
                               <span v-if="prescription.anticoagulant == 4"
1160 1156
                                 >mg</span
1161 1157
                               >
@@ -1193,6 +1189,12 @@
1193 1189
                                     : "0"
1194 1190
                                 }}
1195 1191
                               </div>
1192
+                              <span v-if="prescription.anticoagulant == 7"
1193
+                                >iu/h</span
1194
+                              >
1195
+                              <span v-if="prescription.anticoagulant == 6"
1196
+                                >iu/h</span
1197
+                              >
1196 1198
                               <span v-if="prescription.anticoagulant == 5"
1197 1199
                                 >ml/h</span
1198 1200
                               >
@@ -1260,6 +1262,15 @@
1260 1262
                                     : "/"
1261 1263
                                 }}
1262 1264
                               </div>
1265
+                              <span v-if="prescription.anticoagulant == 7"
1266
+                                >iu</span
1267
+                              >
1268
+                              <span v-if="prescription.anticoagulant == 6"
1269
+                                >iu</span
1270
+                              >
1271
+                              <span v-if="prescription.anticoagulant == 5"
1272
+                                >ml</span
1273
+                              >
1263 1274
                               <span v-if="prescription.anticoagulant == 4"
1264 1275
                                 >mg</span
1265 1276
                               >
@@ -1424,17 +1435,6 @@
1424 1435
                                 </td>
1425 1436
                                 <td width="200">病情变化及处理</td>
1426 1437
 
1427
-                                <!-- <td width="100">时间</td>
1428
-                    <td width="30">T<br>C°</td>
1429
-                    <td width="30">P<br/>次/分</td>
1430
-                    <td width="30">R<br/>次/分</td>
1431
-                    <td width="100">BP<br/>mmHg</td>
1432
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
1433
-                    <td width="80">血流量<br/>ml/min</td>
1434
-                    <td width="90">超滤量累计L</td>
1435
-                    <td width="80">钠浓度<br/>mmol/L</td>
1436
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
1437
-                    <td  width="100">护士签名</td> -->
1438 1438
                               </tr>
1439 1439
 
1440 1440
                               <tr
@@ -3379,7 +3379,7 @@ export default {
3379 3379
         var leftAdvice = [];
3380 3380
         var rightAdvice = [];
3381 3381
         var adlen = advices.length;
3382
-
3382
+        console.log("adlen----------------------",adlen)
3383 3383
         var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
3384 3384
         for (var i = 0; i < halfLen; i++) {
3385 3385
           leftAdvice.push(advices[i]);
@@ -3404,8 +3404,8 @@ export default {
3404 3404
           this.advices.push(item);
3405 3405
         }
3406 3406
         this.loading = false;
3407
-        this.doctor_advices =
3408
-          response.data.data.advices == null ? [] : response.data.data.advices;
3407
+        this.doctor_advices =response.data.data.advices == null ? [] : response.data.data.advices;
3408
+        console.log("zhonguog---------------------------------",this.doctor_advices)
3409 3409
         for (let index = 0; index < this.doctor_advices.length; index++) {
3410 3410
           this.doctor_advices[index]["isShow"] = 2;
3411 3411
         }
@@ -3505,12 +3505,15 @@ export default {
3505 3505
         }
3506 3506
 
3507 3507
         this.totollength = this.doctor_advices.length + this.monitors.length;
3508
-        if (this.totollength > 18) {
3508
+        console.log("totalpath-------------------------------",this.totollength)
3509
+        if (this.totollength > 58) {
3509 3510
           var temp_advice_length = 17 - this.monitors.length;
3511
+          console.log("temp_advice_length-----------",temp_advice_length)
3510 3512
           var doctor_advices_1 = [];
3511 3513
           var doctor_advices_2 = [];
3512 3514
           for (let index = 0; index < this.doctor_advices.length; index++) {
3513 3515
             const element = this.doctor_advices[index];
3516
+
3514 3517
             if (temp_advice_length > index) {
3515 3518
               doctor_advices_1.push(element);
3516 3519
             } else {
@@ -3520,6 +3523,7 @@ export default {
3520 3523
           this.doctor_advices = doctor_advices_1;
3521 3524
           this.doctor_advices_2 = doctor_advices_2;
3522 3525
         }
3526
+        console.log("doctor_advice----------",this.doctor_advices)
3523 3527
 
3524 3528
         this.patientInfo.name = this.nameSplit(this.patientInfo.name);
3525 3529
       } else {

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

@@ -353,15 +353,23 @@
353 353
                       &nbsp;
354 354
                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('颈内静脉-右') > -1 ? true : false" showValue="颈内静脉"></label-box>
355 355
                       &nbsp;
356
-                      (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') > -1 ? true : false" showValue="左"></label-box>
356
+                      <!-- (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') > -1 ? true : false" showValue="左"></label-box>
357 357
                       &nbsp;
358 358
                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-右') > -1 ? true : false" showValue="右"></label-box>)
359 359
                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="股静脉"></label-box>
360 360
                       &nbsp;
361 361
                       <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
362
+                      &nbsp; -->
363
+                    </div>
364
+                  </td>
365
+                  <td width="50">其它</td>
366
+                  <td width="150">
367
+                    <div class="under-line">
362 368
                       &nbsp;
369
+                      <span v-if="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') <= -1&&predialysis.blood_access_part_opera_name.indexOf('人造血管') <= -1&&predialysis.blood_access_part_opera_name.indexOf('直穿') <= -1&&predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') <= -1&&predialysis.blood_access_part_opera_name.indexOf('颈内静脉-右') <= -1">{{ predialysis.blood_access_part_opera_name }}</span>
363 370
                     </div>
364 371
                   </td>
372
+                  <td width="250"></td>
365 373
                 </tr>
366 374
                 </tbody>
367 375
               </table>

+ 91 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFortyEight.vue 查看文件

@@ -101,9 +101,7 @@
101 101
               >&nbsp;
102 102
               <label-box
103 103
                 :isChecked="
104
-                  prescription.mode_id == 3
105
-                    ? true
106
-                    : prescription.mode_id == 4
104
+                  prescription.mode_id == 4
107 105
                     ? true
108 106
                     : false
109 107
                 "
@@ -111,11 +109,99 @@
111 109
               ></label-box
112 110
               >&nbsp;
113 111
               <!-- <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp; -->
114
-              <label-box
112
+              <!-- <label-box
115 113
                 :isChecked="prescription.mode_id == 5 ? true : false"
116 114
                 showValue="HF"
117 115
               ></label-box
118
-              >&nbsp;
116
+              >&nbsp; -->
117
+                  &nbsp;
118
+                  <span>其他:  <span v-if="prescription.mode_id==3">HD+HP</span>
119
+                                <span v-if="prescription.mode_id == 5">
120
+                                HF
121
+                                </span>
122
+                                <span v-if="prescription.mode_id == 6">
123
+                                SCUF
124
+                                </span>
125
+                                <span v-if="prescription.mode_id == 7">
126
+                                IUF
127
+                                </span>
128
+                                <span v-if="prescription.mode_id == 8">
129
+                                HFHD
130
+                                </span>
131
+                                <span v-if="prescription.mode_id == 9">
132
+                                HFHD+HP
133
+                                </span>
134
+                                <span v-if="prescription.mode_id == 10">
135
+                                PHF
136
+                                </span>
137
+                                <span v-if="prescription.mode_id == 11">
138
+                                HFR
139
+                                </span>
140
+                                <span v-if="prescription.mode_id == 12">
141
+                                HDF+HP
142
+                                </span>
143
+                                <span v-if="prescription.mode_id == 13">
144
+                                CRRT
145
+                                </span>
146
+                                <span v-if="prescription.mode_id == 14">
147
+                                腹水回输
148
+                                </span>
149
+                                <span v-if="prescription.mode_id == 15">
150
+                                HD前置换
151
+                                </span>
152
+                                <span v-if="prescription.mode_id == 16">
153
+                                HD后置换
154
+                                </span>
155
+                                <span v-if="prescription.mode_id == 17">
156
+                                HDF前置换
157
+                                </span>
158
+                                <span v-if="prescription.mode_id == 18">
159
+                                HDF后置换
160
+                                </span>
161
+                                <span v-if="prescription.mode_id == 19">
162
+                                IUF+HD
163
+                                </span>
164
+                                <span v-if="prescription.mode_id == 20">
165
+                                UF
166
+                                </span>
167
+                                <span v-if="prescription.mode_id == 21">
168
+                                HD+
169
+                                </span>
170
+                                <span v-if="prescription.mode_id == 22">
171
+                                血浆胆红素吸附+HDF
172
+                                </span>
173
+                                <span v-if="prescription.mode_id == 23">
174
+                                血浆胆红素吸附
175
+                                </span>
176
+                                <span v-if="prescription.mode_id == 24">
177
+                                  I-HDF
178
+                                </span>
179
+                                <span v-if="prescription.mode_id == 25">
180
+                                  HD高通
181
+                                </span>
182
+                                <span v-if="prescription.mode_id == 26">
183
+                                  CVVH
184
+                                </span>
185
+                                <span v-if="prescription.mode_id == 27">
186
+                                  CVVHD
187
+                                </span>
188
+                                <span v-if="prescription.mode_id == 28">
189
+                                  CVVHDF
190
+                                </span>
191
+                                <span v-if="prescription.mode_id == 29">
192
+                                  PE
193
+                                </span>
194
+                               <span v-if="prescription.mode_id == 30">
195
+                                血浆胆红素吸附+HP
196
+                                </span>
197
+                                <span v-if="prescription.mode_id == 31">
198
+                                HPD
199
+                                </span>
200
+                                <span v-if="prescription.mode_id == 32">
201
+                                HDP
202
+                                </span>
203
+                                </span>
204
+                
119 205
             </td>
120 206
             <td style="text-align: left" colspan="5">
121 207
               <span

+ 31 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFour.vue 查看文件

@@ -568,11 +568,21 @@
568 568
                         </td>
569 569
                         <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
570 570
                           <span v-if="advice.parent_id > 0">---></span>
571
-                          <span>{{ advice.advice_name }}</span>
571
+                          <span v-if="advice.advice_name">{{ advice.advice_name }}</span>
572
+                          <span
573
+                            v-else-if="
574
+                              advice.project && advice.project.project_name
575
+                            "
576
+                            >{{ advice.project.project_name }}</span
577
+                          >
578
+
572 579
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
573 580
                           <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
574 581
                           <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
575 582
                           <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
583
+                          <span v-if="advice && advice.project">{{
584
+                            advice.project.unit
585
+                          }}</span>
576 586
                           <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
577 587
                           <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
578 588
                           
@@ -685,7 +695,7 @@
685 695
                         {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
686 696
                       </div>
687 697
                       min
688
-                    </div>
698
+                    </div> 
689 699
                   </div>
690 700
                   <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
691 701
                     <div class="inline_block" style="flex:1">
@@ -1389,13 +1399,31 @@ export default {
1389 1399
 
1390 1400
         var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
1391 1401
         this.tableAdvice = doctorAdevieInfo;
1402
+
1403
+
1404
+        let project_arr = response.data.data.projects
1405
+        // console.log(project_arr,'ppooo')
1406
+        // if(project_arr.length > 0){
1407
+        //   this.tableAdvice.concat(project_arr)
1408
+        //  }
1409
+      let flag = this.tableAdvice.findIndex(o => {
1410
+        return !o.advice_name
1411
+      })
1412
+        console.log(flag,'flag')
1413
+        for(let i=0;i<project_arr.length;i++){
1414
+          this.tableAdvice.splice(flag, 0, project_arr[i]);
1415
+          flag++
1416
+        }
1417
+        
1418
+        console.log(this.tableAdvice,'新的心得')
1419
+
1392 1420
         if (this.tableAdvice.length < 7) {
1393 1421
           var nl = 6 - this.tableAdvice.length;
1394 1422
           for (let index = 0; index < nl; index++) {
1395 1423
             this.tableAdvice.push([]);
1396 1424
           }
1397 1425
         }
1398
-         
1426
+        // console.log(project_arr,'project_arr')
1399 1427
         this.monitors = response.data.data.monitors
1400 1428
         this.summary = response.data.data.summary
1401 1429
         this.org_template_info = response.data.data.org_template_info

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

@@ -586,10 +586,13 @@
586 586
                         </td>
587 587
                         <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
588 588
                           <span v-if="advice.parent_id > 0">---></span>
589
-                          <span>{{ advice.advice_name }}</span>
589
+                          
590
+                          <span v-if="advice.project&&advice.project.project_name">{{ advice.project.project_name }}</span>
591
+                          <span v-else>{{ advice.advice_name }}</span>
592
+                          <span v-if="advice.project&&advice.count">{{ advice.count }}{{ advice.unit }}</span>
590 593
                           <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
591 594
                           <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
592
-                          <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
595
+                          <span v-if="advice.single_dose != 0&&!advice.project">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
593 596
                           <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
594 597
                           <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
595 598
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
@@ -1398,12 +1401,27 @@ export default {
1398 1401
           ].name
1399 1402
           this.AlPanel = this.anticoagulantsConfit[thisALID]
1400 1403
         }
1401
-
1404
+        // this.advices = response.data.data.projects
1402 1405
         this.advices = response.data.data.advices
1403 1406
         console.log("医嘱数据2222222222",this.advices)
1404
-
1405
-        var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
1407
+        let doctorAdevieInfo = []
1408
+        let ad_arr = JSON.parse(JSON.stringify(response.data.data.projects))
1409
+        ad_arr.forEach(el => {
1410
+          if(el.project&&el.project.project_name!=""){
1411
+            doctorAdevieInfo.push(el)
1412
+          }
1413
+        });
1414
+        let ad_arr2= JSON.parse(JSON.stringify(response.data.data.advices))
1415
+        ad_arr2.forEach(el => {
1416
+          doctorAdevieInfo.push(el)
1417
+        });
1418
+        console.log(doctorAdevieInfo,'doctorAdevieInfo')
1419
+        // doctorAdevieInfo.push(JSON.parse(JSON.stringify(response.data.data.advices)))
1406 1420
         this.tableAdvice = doctorAdevieInfo;
1421
+        // console.log(this.tableAdvice,'this.tableAdvice')
1422
+        // if(!this.tableAdvice[0].advice_name){
1423
+        //   console.log("不存在")
1424
+        // }
1407 1425
         if (this.tableAdvice.length < 7) {
1408 1426
           var nl = 6 - this.tableAdvice.length;
1409 1427
           for (let index = 0; index < nl; index++) {
@@ -1524,6 +1542,7 @@ export default {
1524 1542
           this.doctor_advices[index]['isShow'] = 2
1525 1543
         }
1526 1544
 
1545
+
1527 1546
         // if (this.doctor_advices.length > 0) {
1528 1547
         //   var group = this.newAdviceGroupObject()
1529 1548
         //   var initGroupBlock = function(group, advice) {

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

@@ -1493,7 +1493,8 @@
1493 1493
                                 advice.prescribing_number_unit
1494 1494
                               "
1495 1495
                               >{{ advice.prescribing_number
1496
-                              }}{{ advice.prescribing_number_unit }}</span
1496
+                              }}{{ advice.prescribing_number_unit }}
1497
+                              </span
1497 1498
                             >
1498 1499
                             <span v-if="advice.single_dose"
1499 1500
                               ><span v-if="!advice.project">单次用量</span>

+ 137 - 20
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -59,7 +59,7 @@
59 59
           <div class="inline_block">
60 60
             病区:
61 61
             <div class="under_line" style="width: 50px; text-align: center">
62
-              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414">{{
62
+              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447">{{
63 63
                 patientInfo.DialysisSchedule.device_zone.name
64 64
                   ? patientInfo.DialysisSchedule.device_zone.name
65 65
                   : ""
@@ -70,7 +70,7 @@
70 70
           <div class="inline_block">
71 71
             床号:
72 72
             <div class="under_line" style="width: 50px; text-align: center">
73
-              <span v-if="org_id == 10121||org_id == 10414">{{
73
+              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675">{{
74 74
                 dialysisOrder &&
75 75
                 dialysisOrder.DeviceNumber &&
76 76
                 dialysisOrder.DeviceNumber.number.length > 0
@@ -86,7 +86,7 @@
86 86
               {{ patientInfo.dialysis_no }}
87 87
             </div>
88 88
           </div>
89
-          <div class="inline_block" style="margin-left: 5px;">
89
+          <div class="inline_block" style="margin-left: 5px;" v-if="org_id!=9675 && org_id!=10447">
90 90
             住院号/门诊号:
91 91
             <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
92 92
               {{ receiverTreatmentAccess.admission_number }}
@@ -369,7 +369,7 @@
369 369
                         {{ predialysis.blood_access_part_opera_name }}
370 370
                       </div>
371 371
                     </div>
372
-                    <div class="inline_block" style="margin-left: 10px">
372
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=9675 && org_id!=10447">
373 373
                       内瘘:
374 374
                       <div
375 375
                         class="under_line"
@@ -390,6 +390,7 @@
390 390
                     <div
391 391
                       class="inline_block"
392 392
                       style="margin-left: 10px; flex: 1.4"
393
+                      v-if="org_id!=9675 && org_id!=10447"
393 394
                     >
394 395
                       导管:
395 396
                       <div
@@ -891,7 +892,7 @@
891 892
                         class="under_line"
892 893
                         style="width: 100px; text-align: center"
893 894
                       >
894
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956">{{
895
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 ">{{
895 896
                           lastafterdialysis.weight_after
896 897
                         }}</span>
897 898
                         <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956">{{
@@ -909,7 +910,7 @@
909 910
                         class="under_line"
910 911
                         style="width: 70px; text-align: center"
911 912
                       >
912
-                        {{
913
+                      <span v-if="org_id !=10447 && org_id != 9675">{{
913 914
                           predialysis.weight_before
914 915
                             ? parseFloat(
915 916
                                 predialysis.weight_before -
@@ -917,6 +918,17 @@
917 918
                               ).toFixed(1)
918 919
                             : "/"
919 920
                         }}
921
+                      </span>
922
+                       <span v-if="org_id==10447 || org_id == 9675">
923
+                        {{
924
+                          predialysis.weight_before
925
+                            ? parseFloat(
926
+                                predialysis.weight_before -
927
+                                  predialysis.additional_weight
928
+                              ).toFixed(1)
929
+                            : "未称重"
930
+                        }}
931
+                       </span>
920 932
                       </div>
921 933
                       kg
922 934
                     </div>
@@ -1039,10 +1051,28 @@
1039 1051
                             : "/"
1040 1052
                         }}
1041 1053
                       </div>
1054
+                     
1055
+                     <span v-if="org_id!=9675 && org_id!=10447">
1042 1056
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1043 1057
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1044 1058
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1045 1059
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1060
+                    </span>
1061
+
1062
+                    <span v-if="org_id==9675 || org_id==10447">
1063
+                      <span v-if="prescription.anticoagulant == 4">iu</span>
1064
+                      <span v-if="prescription.anticoagulant == 3">iu</span>
1065
+                      <span v-if="prescription.anticoagulant == 2">mg</span>
1066
+                      <span v-if="prescription.anticoagulant == 5">ml</span>
1067
+                      <span v-if="prescription.anticoagulant == 6">iu</span>
1068
+                     <span v-if="prescription.anticoagulant == 7">iu</span>
1069
+                     <span v-if="prescription.anticoagulant == 8">iu</span>
1070
+                     <span v-if="prescription.anticoagulant == 9">iu</span>
1071
+                     <span v-if="prescription.anticoagulant == 10">iu</span>
1072
+                     <span v-if="prescription.anticoagulant == 11">iu</span>
1073
+                     <span v-if="prescription.anticoagulant == 13">iu</span>
1074
+                    
1075
+                    </span>
1046 1076
                     </div>
1047 1077
                     <div class="inline_block" style="margin-left: 20px">
1048 1078
                       维持:
@@ -1068,11 +1098,27 @@
1068 1098
                             : "0"
1069 1099
                         }}
1070 1100
                       </div>
1071
-                      <span v-if="prescription.anticoagulant == 5">ml/h</span>
1072
-                      <span v-if="prescription.anticoagulant == 4">mg/h</span>
1073
-                      <span v-if="prescription.anticoagulant == 3">iu/h</span>
1074
-                      <span v-if="prescription.anticoagulant == 2">iu/h</span>
1075
-                      <span v-if="prescription.anticoagulant == 1">mg/h</span>
1101
+                      <span v-if="org_id!=9675 && org_id!=10447">
1102
+
1103
+                        <span v-if="prescription.anticoagulant == 5">ml/h</span>
1104
+                          <span v-if="prescription.anticoagulant == 4">mg/h</span>
1105
+                          <span v-if="prescription.anticoagulant == 3">iu/h</span>
1106
+                          <span v-if="prescription.anticoagulant == 2">iu/h</span>
1107
+                          <span v-if="prescription.anticoagulant == 1">mg/h</span>
1108
+                      </span>
1109
+                      <span v-if="org_id==9675 || org_id==10447">
1110
+                        <span v-if="prescription.anticoagulant == 2">mg/h</span>
1111
+                          <span v-if="prescription.anticoagulant == 3">iu/h</span>
1112
+                          <span v-if="prescription.anticoagulant == 4">ml</span>
1113
+                          <span v-if="prescription.anticoagulant == 5">ml/h</span>
1114
+                          <span v-if="prescription.anticoagulant == 6">iu/h</span>
1115
+                          <span v-if="prescription.anticoagulant == 7">iu/h</span>
1116
+                          <span v-if="prescription.anticoagulant == 8">iu/h</span>
1117
+                          <span v-if="prescription.anticoagulant == 9">iu/h</span>
1118
+                          <span v-if="prescription.anticoagulant == 10">iu/h</span>
1119
+                          <span v-if="prescription.anticoagulant == 11">iu/h</span>
1120
+                          <span v-if="prescription.anticoagulant == 13">iu/h</span>
1121
+                      </span>
1076 1122
                     </div>
1077 1123
                     <div
1078 1124
                       class="inline_block"
@@ -1125,12 +1171,27 @@
1125 1171
                             : "/"
1126 1172
                         }}
1127 1173
                       </div>
1174
+                      <span v-if="org_id!=9675 && org_id!=10447">
1128 1175
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1129 1176
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1130 1177
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1131 1178
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1179
+                     </span>
1180
+                    <span v-if="org_id==9675 || org_id==10447">
1181
+                       <span v-if="prescription.anticoagulant == 2">mg</span>
1182
+                       <span v-if="prescription.anticoagulant == 3">iu</span>
1183
+                       <span v-if="prescription.anticoagulant == 4">ml</span>
1184
+                       <span v-if="prescription.anticoagulant == 5">ml</span>
1185
+                       <span v-if="prescription.anticoagulant == 6">iu</span>
1186
+                       <span v-if="prescription.anticoagulant == 7">iu</span>
1187
+                       <span v-if="prescription.anticoagulant == 8">iu</span>
1188
+                       <span v-if="prescription.anticoagulant == 9">iu</span>
1189
+                       <span v-if="prescription.anticoagulant == 10">iu</span>
1190
+                      <span v-if="prescription.anticoagulant == 11">iu</span>
1191
+                      <span v-if="prescription.anticoagulant == 13">iu</span>
1192
+                    </span>
1132 1193
                     </div>
1133
-                    <div class="inline_block" style="margin-left: 20px">
1194
+                    <div class="inline_block" style="margin-left: 20px" v-if="org_id!=9675 && org_id!=10447">
1134 1195
                       透析机号:
1135 1196
                       <div
1136 1197
                         class="under_line"
@@ -1154,6 +1215,7 @@
1154 1215
                     <div
1155 1216
                       class="inline_block"
1156 1217
                       style="flex: 1; display: inline-block"
1218
+                      v-if="org_id!=9675 && org_id!=10447"
1157 1219
                     >
1158 1220
                       备注:
1159 1221
                       <div
@@ -1645,7 +1707,7 @@
1645 1707
             <div class="inline_block">
1646 1708
               病区:
1647 1709
               <div class="under_line" style="width: 50px; text-align: center">
1648
-              <span v-if="org_id == 10121||org_id == 10138">{{
1710
+              <span v-if="org_id == 10121||org_id == 10138 || org_id == 9675 || org_id == 10447">{{
1649 1711
                 patientInfo.DialysisSchedule.device_zone.name
1650 1712
                   ? patientInfo.DialysisSchedule.device_zone.name
1651 1713
                   : ""
@@ -1656,7 +1718,7 @@
1656 1718
             <div class="inline_block">
1657 1719
               床号:
1658 1720
               <div class="under_line" style="width: 50px; text-align: center">
1659
-              <span v-if="org_id == 10121">{{
1721
+              <span v-if="org_id == 10121 || org_id == 9675 || org_id == 10447">{{
1660 1722
                 dialysisOrder &&
1661 1723
                 dialysisOrder.DeviceNumber &&
1662 1724
                 dialysisOrder.DeviceNumber.number.length > 0
@@ -1672,7 +1734,8 @@
1672 1734
                 {{ patientInfo.dialysis_no }}
1673 1735
               </div>
1674 1736
             </div>
1675
-            <div class="inline_block" style="margin-left: 5px">
1737
+            <div class="inline_block" style="margin-left: 5px"
1738
+            v-if="org_id!=9675 && org_id!=10447">
1676 1739
             住院号/门诊号:
1677 1740
             <div
1678 1741
               class="under_line"
@@ -2066,7 +2129,8 @@
2066 2129
                         {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
2067 2130
                       </div>
2068 2131
                     </div>
2069
-                    <div class="inline_block" style="flex: 2">
2132
+                    <div class="inline_block" style="flex: 2"
2133
+                    v-if="org_id!=9675 && org_id!=10447">
2070 2134
                       内瘘:
2071 2135
                       <div
2072 2136
                         class="under_line"
@@ -2083,7 +2147,8 @@
2083 2147
                         }}
2084 2148
                       </div>
2085 2149
                     </div>
2086
-                    <div class="inline_block" style="flex: 4">
2150
+                    <div class="inline_block" style="flex: 4"
2151
+                    v-if="org_id!=9675 && org_id!=10447">
2087 2152
                       导管:
2088 2153
                       <div
2089 2154
                         class="under_line"
@@ -2106,6 +2171,7 @@
2106 2171
                         class="under_line"
2107 2172
                         style="width: 70px; text-align: center"
2108 2173
                       >
2174
+                      <span v-if="org_id!=9675&&org_id!=10447">
2109 2175
                         {{
2110 2176
                           afterdialysis.weight_after
2111 2177
                             ? parseFloat(
@@ -2114,6 +2180,18 @@
2114 2180
                               ).toFixed(1)
2115 2181
                             : "/"
2116 2182
                         }}
2183
+                      </span>
2184
+                      <span v-if="org_id ==9675 || org_id==10447">
2185
+                        {{
2186
+                          afterdialysis.weight_after
2187
+                            ? parseFloat(
2188
+                                afterdialysis.weight_after -
2189
+                                  afterdialysis.additional_weight
2190
+                              ).toFixed(1)
2191
+                            : "未称重"
2192
+                        }}
2193
+                      </span>
2194
+                       
2117 2195
                       </div>
2118 2196
                       kg
2119 2197
                     </div>
@@ -2164,7 +2242,8 @@
2164 2242
                             : "/"
2165 2243
                         }}
2166 2244
                       </div>
2167
-                      ml
2245
+                      <span v-if="org_id!=9675&&org_id!=10447"> ml</span>
2246
+                      <span v-if="org_id ==9675||org_id==10447">L</span>
2168 2247
                     </div>
2169 2248
                   </div>
2170 2249
                   <div
@@ -2303,11 +2382,12 @@
2303 2382
                   <div
2304 2383
                     class="row"
2305 2384
                     style="padding: 2px 0; line-height: 23px; display: flex"
2306
-                    v-if="org_id != 10223"
2385
+                    v-if="org_id != 10223&&org_id!=9538&&org_id!=9675"
2307 2386
                   >
2308 2387
                     <div
2309 2388
                       class="inline_block"
2310 2389
                       style="flex: 1; display: inline-block"
2390
+                      v-if="org_id!=9675 && org_id!=10447"
2311 2391
                     >
2312 2392
                       备注:
2313 2393
                       <div
@@ -2325,6 +2405,43 @@
2325 2405
                       </div>
2326 2406
                     </div>
2327 2407
                   </div>
2408
+                  <div
2409
+                    class="row"
2410
+                    style="padding: 2px 0; line-height: 23px; display: flex"
2411
+                    v-if="org_id == 9538||org_id == 9675"
2412
+                  >
2413
+                    <div
2414
+                      class="inline_block"
2415
+                      style="flex: 1; display: inline-block"
2416
+                    >
2417
+                      中心静脉导管封管:A端<div
2418
+                        class="under_line"
2419
+                        style="
2420
+                          width: 60px;
2421
+                          line-height: 25px;
2422
+                          text-align: center;
2423
+                          margin-left: 2px;
2424
+                          display: inline-block;
2425
+                          white-space: normal;
2426
+                        "
2427
+                      >
2428
+                        {{ lastafterdialysis.cvc_a ? lastafterdialysis.cvc_a : "/" }}
2429
+                      </div>ml,V端<div
2430
+                        class="under_line"
2431
+                        style="
2432
+                          width: 60px;
2433
+                          line-height: 25px;
2434
+                          text-align: center;
2435
+                          margin-left: 2px;
2436
+                          display: inline-block;
2437
+                          white-space: normal;
2438
+                        "
2439
+                      >
2440
+                        {{ lastafterdialysis.cvc_v ? lastafterdialysis.cvc_v : "/" }}
2441
+                      </div>ml
2442
+                      
2443
+                    </div>
2444
+                  </div>
2328 2445
                 </td>
2329 2446
               </tr>
2330 2447
               <tr>
@@ -3594,7 +3711,7 @@ export default {
3594 3711
       "vascular_access_desc"
3595 3712
     );
3596 3713
     this.org_id = this.$store.getters.xt_user.org.id;
3597
-
3714
+    console.log("org_id-----------------------------------------",this.org_id)
3598 3715
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
3599 3716
 
3600 3717
     var bloodAccessParOpera = getDataConfig(

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

@@ -25,7 +25,7 @@
25 25
               font-weight: 600;
26 26
               font-size: 22px;
27 27
               display: inline-block;
28
-            "
28
+            " 
29 29
           >
30 30
             血液净化治疗记录单
31 31
           </div>

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

@@ -1402,7 +1402,7 @@
1402 1402
                                 v-if="
1403 1403
                                   (dialysisOrder &&
1404 1404
                                   monitor.operate_time ==
1405
-                                    dialysisOrder.start_time)&&(org_id!=10414)
1405
+                                    dialysisOrder.start_time)
1406 1406
                                 "
1407 1407
                                 >【开始透析】引血100ml/min
1408 1408
                                 </template>

+ 24 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue 查看文件

@@ -872,7 +872,7 @@
872 872
             </td>
873 873
           </tr>
874 874
 
875
-          <tr>
875
+          <!-- <tr>
876 876
             <td style="text-align: left" colspan="8">
877 877
               <span style="display: inline-block; margin-left: 15px"
878 878
                 >出血影响因素:</span
@@ -925,7 +925,7 @@
925 925
               >其他:
926 926
               <span>{{ predialysis.hemorrhage_other }}</span>
927 927
             </td>
928
-          </tr>
928
+          </tr> -->
929 929
         </table>
930 930
 
931 931
         <table class="print-table" border="1" style="line-height: 30px">
@@ -959,10 +959,10 @@
959 959
               超滤率
960 960
               <br />ml/h
961 961
             </td>
962
-            <td style="min-width: 60px">
962
+            <!-- <td style="min-width: 60px">
963 963
               超滤量
964 964
               <br />ml
965
-            </td>
965
+            </td> -->
966 966
             <td style="min-width: 60px">
967 967
               电导度
968 968
               <br />
@@ -990,12 +990,10 @@
990 990
             <td>{{ monitor.pulse_frequency }}</td>
991 991
             <td>{{ monitor.blood_flow_volume }}</td>
992 992
             <td>{{ monitor.venous_pressure }}</td>
993
-            <td>
994
-              {{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}
995
-            </td>
993
+            <td>{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
996 994
             <td>{{ monitor.transmembrane_pressure }}</td>
997 995
             <td>{{ monitor.ultrafiltration_rate }}</td>
998
-            <td>{{ monitor.ultrafiltration_volume }}</td>
996
+            <!-- <td>{{ monitor.ultrafiltration_volume }}</td> -->
999 997
             <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
1000 998
             <td>
1001 999
               <span style="line-height: 18px; display: block">
@@ -1033,7 +1031,7 @@
1033 1031
               >
1034 1032
             </td>
1035 1033
           </tr>
1036
-          <tr>
1034
+          <!-- <tr>
1037 1035
             <td style="text-align: left" colspan="12">
1038 1036
               <span style="display: inline-block; margin-left: 15px">
1039 1037
                 透后评估: 透析过程:
@@ -1054,7 +1052,7 @@
1054 1052
                 }}
1055 1053
               </span>
1056 1054
             </td>
1057
-          </tr>
1055
+          </tr> -->
1058 1056
           <tr>
1059 1057
             <td style="text-align: left" colspan="2">
1060 1058
               <span style="display: inline-block; margin-left: 15px"
@@ -1086,7 +1084,15 @@
1086 1084
                   :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"
1087 1085
                 ></label-box
1088 1086
                 >&nbsp;&nbsp;
1089
-                {{ getCruor(afterdialysis.cruor) }}
1087
+                <label-box
1088
+                  showValue="无"
1089
+                  :isChecked="afterdialysis.cruor.indexOf('透析器-0度') <= 0&&
1090
+                  afterdialysis.cruor.indexOf('透析器-Ⅲ度') <= 0&&
1091
+                  afterdialysis.cruor.indexOf('透析器-Ⅰ度') <= 0&&
1092
+                  afterdialysis.cruor.indexOf('透析器-Ⅱ度') <= 0"
1093
+                ></label-box
1094
+                >
1095
+                <!-- {{ getCruor(afterdialysis.cruor) }} -->
1090 1096
               </span>
1091 1097
             </td>
1092 1098
           </tr>
@@ -1299,6 +1305,13 @@
1299 1305
               >
1300 1306
             </td>
1301 1307
           </tr>
1308
+          <tr>
1309
+            <td style="text-align: left" colspan="6">
1310
+              <span style="display: inline-block; margin-left: 15px"
1311
+                >透析小结:{{ dialysis_summary ? dialysis_summary : "" }}
1312
+              </span>
1313
+            </td>
1314
+          </tr>
1302 1315
           <!-- <tr>
1303 1316
             <td style="text-align:left;" colspan="3">
1304 1317
               <span style="display:inline-block;margin-left:15px;">医生签名:</span>

+ 3 - 3
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

@@ -42,7 +42,7 @@
42 42
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
43 43
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
44 44
       <printFive
45
-          v-if="org_id == 0  || org_id == 10191"
45
+          v-if="org_id == 0"
46 46
           :info="info"
47 47
           :paramsObj="paramsObj"
48 48
           :balanceAccounts="balanceAccounts"
@@ -271,8 +271,8 @@ export default {
271 271
             scanStyles: false,
272 272
           });
273 273
         } else if (
274
-            this.$store.getters.xt_user.org_id == 0 ||
275
-            this.$store.getters.xt_user.org_id == 10191
274
+            this.$store.getters.xt_user.org_id == 0
275
+
276 276
         ) {
277 277
           const style =
278 278
               "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";

+ 26 - 122
src/xt_pages/outpatientCharges/summary.vue 查看文件

@@ -5,7 +5,11 @@
5 5
     </div>
6 6
     <div class="app-container">
7 7
       <div
8
-          style="display: flex; justify-content: space-between;margin-bottom: 10px;"
8
+          style="
9
+          display: flex;
10
+          justify-content: space-between;
11
+          margin-bottom: 10px;
12
+        "
9 13
       >
10 14
         <div>
11 15
           <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
@@ -105,7 +109,7 @@
105 109
           </el-button
106 110
           >
107 111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
108
-          <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载2</el-button>
112
+
109 113
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
110 114
           <!--          >报表下载2-->
111 115
           <!--          </el-button-->
@@ -114,8 +118,10 @@
114 118
           <!--                    <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
115 119
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
116 120
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
117
-<!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
121
+          <!--          <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
118 122
           <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
123
+
124
+
119 125
         </div>
120 126
       </div>
121 127
       <el-table
@@ -349,7 +355,7 @@ import {jsGetAge, uParseTime} from "@/utils/tools";
349 355
 
350 356
 import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo,getAllOrders} from "../../api/his/his";
351 357
 
352
-import {handleData10106,handleData10318} from "../../api/his/his_export";
358
+import {handleData10106} from "../../api/his/his_export";
353 359
 
354 360
 export default {
355 361
   name: "OutpatientChargesSummary",
@@ -1214,7 +1220,7 @@ export default {
1214 1220
           var tarList = []
1215 1221
           for (let i = 0; i < list.length; i++) {
1216 1222
             let obj = {
1217
-              "周期": "2022年第季度",
1223
+              "周期": "2022年第季度",
1218 1224
               "类别": "门诊",
1219 1225
               "医保目录编码": list[i].code,
1220 1226
               "医保目录名称": list[i].name,
@@ -1625,107 +1631,7 @@ export default {
1625 1631
       });
1626 1632
 
1627 1633
     },
1628
-    export_detail_ten_two(){
1629
-      let params = {
1630
-        start_time:this.start_time,
1631
-        end_time:this.end_time
1632
-      };
1633
-      handleData10318(params).then((response) => {
1634
-        if (response.data.state == 0) {
1635
-          this.$message.error(response.data.msg);
1636
-          return false;
1637
-        } else {
1638
-          let list = [];
1639
-          for (let i = 0; i < response.data.data.order.length; i++) {
1640
-            let order = response.data.data.order[i];
1641
-
1642
-
1643
-            let obj = {
1644
-              姓名: order.patient.name,
1645
-              身份证: order.patient.id_card_no,
1646
-              西药费:0,
1647
-              化验费:0,
1648
-              检查费:0,
1649
-              治疗费:0,
1650
-              材料费:0,
1651
-              中成药费:0,
1652
-              备注: "就诊日期:" + this.getTimes(order.settle_accounts_date) + " 医保报销: "+order.fund_pay_sumamt + " 现金:"+order.psn_cash_pay,
1653
-            }
1654
-            let xiyaoPrice = 0
1655
-            let huaYanPrice = 0
1656
-            let jianChaPrice = 0
1657
-            let zhiLiaoPrice = 0
1658
-            let cailiaoPrice = 0
1659
-            let zhongchengyaoPrice = 0
1660
-
1661
-              for (let b = 0; b < order.info.length; b++) {
1662
-                if(order.info[b].med_chrgitm_type ==  '09'){
1663
-                  xiyaoPrice = xiyaoPrice + order.info[b].det_item_fee_sumamt
1664
-                }
1665
-                if(order.info[b].med_chrgitm_type ==  '04'){
1666
-                  huaYanPrice = huaYanPrice + order.info[b].det_item_fee_sumamt
1667
-                }
1668
-                if(order.info[b].med_chrgitm_type ==  '03'){
1669
-                  jianChaPrice = jianChaPrice + order.info[b].det_item_fee_sumamt
1670
-                }
1671
-                if(order.info[b].med_chrgitm_type ==  '05'){
1672
-                  zhiLiaoPrice = zhiLiaoPrice + order.info[b].det_item_fee_sumamt
1673
-                }
1674
-                if(order.info[b].med_chrgitm_type ==  '08'){
1675
-                  cailiaoPrice = cailiaoPrice + order.info[b].det_item_fee_sumamt
1676
-                }
1677
-                if(order.info[b].med_chrgitm_type ==  '11'){
1678
-                  zhongchengyaoPrice = zhongchengyaoPrice + order.info[b].det_item_fee_sumamt
1679
-                }
1680
-              }
1681
-            obj.西药费 = xiyaoPrice
1682
-            obj.化验费 = huaYanPrice
1683
-            obj.检查费 = jianChaPrice
1684
-            obj.治疗费 = zhiLiaoPrice
1685
-            obj.材料费 = cailiaoPrice
1686
-            obj.中成药费 = zhongchengyaoPrice
1687
-
1688
-
1689
-            list.push(obj)
1690
-          }
1691
-
1692
-          import("@/vendor/Export2Excel").then((excel) => {
1693
-            const tHeader = [
1694
-              "姓名",
1695
-              "身份证",
1696
-              "西药费",
1697
-              "化验费",
1698
-              "检查费",
1699
-              "治疗费",
1700
-              "材料费",
1701
-              "中成药费",
1702
-              "备注",
1703
-            ];
1704
-            const filterVal = [
1705
-              "姓名",
1706
-              "身份证",
1707
-              "西药费",
1708
-              "化验费",
1709
-              "检查费",
1710
-              "治疗费",
1711
-              "材料费",
1712
-              "中成药费",
1713
-              "备注",
1714
-            ];
1715
-            const data = this.formatJson(filterVal, list);
1716
-            excel.export_json_to_excel({
1717
-              header: tHeader,
1718
-              data,
1719
-              filename: "消费明细",
1720
-            });
1721
-          });
1722
-
1723
-
1724
-        }
1725
-      });
1726
-
1727 1634
 
1728
-    },
1729 1635
     GetGoodName(id) {
1730 1636
       switch (id) {
1731 1637
         case 254:
@@ -1918,47 +1824,39 @@ export default {
1918 1824
 
1919 1825
             } else if (order.his_patient.insuplc_admdvs == "440704"){
1920 1826
 
1921
-              insuplc_admdvs_name = "江区"
1827
+              insuplc_admdvs_name = "江区"
1922 1828
 
1923 1829
 
1924 1830
             } else if (order.his_patient.insuplc_admdvs == "440705"){
1925 1831
 
1926
-              insuplc_admdvs_name = "蓬江区"
1832
+              insuplc_admdvs_name = "新会区"
1927 1833
 
1928 1834
 
1929 1835
             }else if (order.his_patient.insuplc_admdvs == "440781"){
1930 1836
 
1931
-              insuplc_admdvs_name = "蓬江区"
1932
-
1837
+              insuplc_admdvs_name = "台山市"
1933 1838
 
1934 1839
             }else if (order.his_patient.insuplc_admdvs == "440783"){
1935
-
1936
-              insuplc_admdvs_name = "蓬江区"
1937
-
1840
+              insuplc_admdvs_name = "开平市"
1938 1841
 
1939 1842
             }else if (order.his_patient.insuplc_admdvs == "440784"){
1940
-
1941
-
1843
+              insuplc_admdvs_name = "鹤山市"
1942 1844
 
1943 1845
             }else if (order.his_patient.insuplc_admdvs == "440785"){
1944
-
1945
-
1846
+              insuplc_admdvs_name = "恩平市"
1946 1847
 
1947 1848
             }else if (order.his_patient.insuplc_admdvs == "440799"){
1948
-
1949
-
1950
-
1849
+              insuplc_admdvs_name = "市直"
1951 1850
             }
1952 1851
 
1953
-
1954
-
1955 1852
             let obj = {
1956 1853
               就诊号: order.mdtrt_id,
1957 1854
               患者姓名: name,
1958 1855
               开处时间: time,
1959 1856
               险种类型: insutypeName,
1960 1857
               参保所属医保区划: order.his_patient.insuplc_admdvs,
1961
-              属地名称: order.his_patient.insuplc_admdvs,
1858
+              参保号:order.his_patient.id_card_no,
1859
+              属地名称: insuplc_admdvs_name,
1962 1860
               应收金额: order.medfee_sumamt,
1963 1861
               实收金额: order.medfee_sumamt,
1964 1862
               医保统筹金额: order.hifp_pay,
@@ -1992,6 +1890,9 @@ export default {
1992 1890
               "患者姓名",
1993 1891
               "开处时间",
1994 1892
               "险种类型",
1893
+              "参保所属医保区划",
1894
+              "参保号",
1895
+             "属地名称",
1995 1896
               "应收金额",
1996 1897
               "实收金额",
1997 1898
               "医保统筹金额",
@@ -2021,6 +1922,9 @@ export default {
2021 1922
               "患者姓名",
2022 1923
               "开处时间",
2023 1924
               "险种类型",
1925
+              "参保所属医保区划",
1926
+              "参保号",
1927
+              "属地名称",
2024 1928
               "应收金额",
2025 1929
               "实收金额",
2026 1930
               "医保统筹金额",

+ 5 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -508,6 +508,7 @@
508 508
       additions: Array,
509 509
       patientInfo: Object,
510 510
       hisPatientInfo: Object,
511
+      goodOutOpen:Object,
511 512
       prescriptions: Array,
512 513
       record_date: String,
513 514
       search_keyword: '',
@@ -2547,7 +2548,7 @@
2547 2548
                           }
2548 2549
                         }
2549 2550
                       }
2550
-                      console.log("new233223322323",newArr)
2551
+                     // console.log("new233223322323",newArr)
2551 2552
                       if(newArr.length > 0){
2552 2553
                         for(let i=0;i<newArr.length;i++){
2553 2554
                           if(newArr[i].is_user!=1){
@@ -2565,8 +2566,9 @@
2565 2566
                     }
2566 2567
                   }
2567 2568
                 }
2568
-
2569
-               if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 9679){
2569
+               
2570
+              //  console.log("good_isopen--------------------",this.goodOutOpen)
2571
+               if(this.goodOutOpen.is_open == 1){
2570 2572
                   var project_arr = []
2571 2573
                   //耗材
2572 2574
                   for(let i=0;i<this.prescriptions.length;i++){

+ 6 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

@@ -165,7 +165,7 @@
165 165
                            :org_id="org_id"
166 166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
167 167
                            v-on:getSunziValue = "getSunziValue"
168
-                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
168
+                           :hisPatientInfo="hisPatientInfo" :goodOutOpen="goodOutOpen" @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
169 169
                            v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
170 170
 
171 171
 
@@ -607,6 +607,7 @@ export default {
607 607
       printList:[],
608 608
       printDate:'',
609 609
       anticoagulants_confit:null,
610
+      goodOutOpen:{}
610 611
     }
611 612
   },
612 613
 
@@ -1433,6 +1434,10 @@ export default {
1433 1434
           this.sick = response.data.data.sick
1434 1435
           this.diagnoses = response.data.data.diagnose
1435 1436
           this.additions = response.data.data.additions
1437
+          
1438
+          var goodOutOpen = response.data.data.goodOutOpen
1439
+          console.log("goodOutOpen----------------------",goodOutOpen)
1440
+          this.goodOutOpen = goodOutOpen
1436 1441
 
1437 1442
         }
1438 1443
       })

+ 4 - 11
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

@@ -127,8 +127,9 @@
127 127
           <div style="text-align: center">(以下空白)</div>
128 128
         </div>
129 129
         <div class="doctorBox" v-if="org_id != 10188">
130
-          <p v-if="org_id == 10217 || org_id == 0">
130
+          <p>
131 131
             医师:
132
+            <!-- {{ item.doctor ? item.doctor : "" }} -->
132 133
             <span
133 134
               style="width: 100px; display: inline-block"
134 135
               v-if="item.creator == ''"
@@ -142,16 +143,13 @@
142 143
               {{ doc_name }}
143 144
             </span>
144 145
             <img
145
-              style="height: 50px;"
146
+              style="height: 50px"
146 147
               :src="setAdminUserES(item.creator,item.doctor)"
147 148
               alt=""
148 149
               srcset=""
149
-
150
+              v-else
150 151
             />
151 152
           </p>
152
-          <p v-else>
153
-            医师: {{ item.doctor ? item.doctor : "" }}
154
-          </p>
155 153
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
156 154
         </div>
157 155
         <div class="doctorBox" v-else>
@@ -236,11 +234,6 @@ export default {
236 234
   methods: {
237 235
     // 电子签名
238 236
     setAdminUserES(id,name) {
239
-      console.log(id)
240
-      console.log(name)
241
-      console.log(this.operatorMaps)
242
-
243
-
244 237
       if (id == 0) {
245 238
         return "";
246 239
       }

+ 415 - 0
src/xt_pages/stock/detail/printOne.vue 查看文件

@@ -0,0 +1,415 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <el-button :loading="loading" size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印
6
+      </el-button>
7
+    </div>
8
+    <div class="app-container ">
9
+      <div id="dialysis-print-box">
10
+        <div class="dialysis-print-order">
11
+          <div class="order-yy-name">{{orgname}}</div>
12
+          <div class="order-title" v-if="type == 1">入库单</div>
13
+          <div style="float: left;margin-bottom: 10px;">{{getDateOne()}}</div>
14
+          <div style="float: right;margin-bottom: 10px;">{{getDateTwo()}}</div>
15
+
16
+
17
+
18
+          <table class="print-table" border="1">
19
+            <tbody>
20
+            <tr>
21
+              <td style="line-height: 50px" width="50">序号</td>
22
+              <td style="line-height: 50px" width="200">耗材名称</td>
23
+              <td style="line-height: 50px" width="200">规格型号</td>
24
+              <td style="line-height: 50px" width="200">仓库名称</td>
25
+              <td style="line-height: 50px" width="80">数量</td>
26
+              <td style="line-height: 50px" width="50">单位</td>
27
+
28
+              <td style="line-height:50px" width="80">
29
+                进货价
30
+              </td>
31
+              <td style="line-height: 50px" width="80">总价</td>
32
+             
33
+            </tr>
34
+
35
+            <tr v-for="(item,index) in stockDatas" :key="item.id">
36
+              <td style="line-height: 50px">&nbsp;
37
+                {{index+1}}
38
+              </td>
39
+              <td style="line-height: 50px">
40
+                {{item.good_name}}
41
+              </td>
42
+              <td style="line-height: 50px">
43
+                {{item.specification_name}}
44
+              </td>
45
+             <td style="line-height: 50px" width="200">
46
+               {{getStorehouseId(item.storehouse_id)}}
47
+             </td>
48
+              <td style="line-height: 50px">
49
+                {{getCount(item.child)}}
50
+              </td>
51
+              <td style="line-height: 50px">
52
+                 {{item.packing_unit}}
53
+              </td>
54
+              <td style="line-height:50px">
55
+                {{item.price}}
56
+              </td>
57
+              <td style="line-height:50px">
58
+               {{(getCount(item.child)*item.price).toFixed(2)}}
59
+              </td>
60
+              
61
+            </tr>
62
+            </tbody>
63
+          </table>
64
+          <table class="print-table" border="1">
65
+            <tr>
66
+              <td style="line-height: 50px"  width="50">合计</td>
67
+              <td style="line-height: 50px"  width="200"></td>
68
+              <td style="line-height: 50px"  width="200"></td>
69
+              <td style="line-height: 50px"  width="80"></td>
70
+              <td style="line-height: 50px"  width="50"></td>
71
+              <td style="line-height: 50px"   width="80"></td>
72
+              <td style="line-height: 50px"  width="80">
73
+               
74
+              </td>
75
+              <td style="line-height: 50px" width="80">
76
+                 {{getSum()}}
77
+              </td>
78
+            </tr>
79
+          </table>
80
+
81
+          <div style="display:flex;margin-top:20px;float:right;">
82
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
83
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
84
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
85
+            <div style="width:50px;">审核:</div><div style="width:100px;"></div>
86
+            <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
87
+          </div>
88
+
89
+        </div>
90
+
91
+      </div>
92
+
93
+    </div>
94
+  </div>
95
+
96
+</template>
97
+
98
+<script>
99
+  import { getNewGoodWarehouseInfo } from '@/api/stock'
100
+  import { getDataConfig } from '@/utils/data'
101
+  import { jsGetAge, uParseTime } from '@/utils/tools'
102
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
103
+  import print from 'print-js'
104
+
105
+  export default {
106
+    name: 'dialysisPrintOrder',
107
+    components: {
108
+      BreadCrumb
109
+
110
+    },
111
+    data() {
112
+      return {
113
+        crumbs: [
114
+          { path: false, name: '出入库明细' },
115
+          { path: false, name: '打印单' }
116
+        ],
117
+        loading: false,
118
+        orgname: '',
119
+        queryParams: {
120
+          start_time: this.$route.query.start_time,
121
+          end_time: this.$route.query.end_time,
122
+          type: this.$route.query.type,
123
+          limit:this.$route.query.limit,
124
+          page:this.$route.query.page,
125
+          storehouse_id:this.$route.query.storehouse_id,
126
+          keywords:this.$route.query.keywords
127
+        },
128
+        totalPrice: 0,
129
+        stockDatas: [],
130
+        goodUnit: [],
131
+        type: this.$route.query.type,
132
+        start_time: this.$route.query.start_time,
133
+        end_time: this.$route.query.end_time,
134
+        stockTotal:[],
135
+        wareOutInfo:[],
136
+        org_id:this.$store.getters.xt_user.org.id,
137
+        informationList:[],
138
+        wareOutList:[],
139
+        storeHouseList:[],
140
+      }
141
+    },
142
+    methods:{
143
+      getDateOne(){
144
+
145
+        return "入库日期: "+this.start_time +"~"+this.end_time
146
+        
147
+
148
+      },
149
+      getDateTwo(){
150
+        var ptime = Math.round(new Date().getTime() / 1000)
151
+        return "打印单日期:"+uParseTime(ptime, '{y}-{m}-{d}')
152
+      },
153
+      getTime(value, temp) {
154
+        if (value == 0) {
155
+          return ''
156
+        }
157
+        if (value != undefined) {
158
+          return uParseTime(value, temp)
159
+        }
160
+        return ''
161
+      },
162
+      getlist(){
163
+        console.log("query23323223wo",this.queryParams)
164
+        getNewGoodWarehouseInfo(this.queryParams).then(response=>{
165
+           if(response.data.state == 1){
166
+             var list = response.data.data.list
167
+             console.log("list列表",list)
168
+
169
+             if(list!=null && list.length >0){
170
+              for(let i=0;i<list.length;i++){
171
+                list[i].good_store_id = list[i].good_id+list[i].storehouse_id
172
+               }
173
+             }
174
+             console.log("list23323223wo",list)
175
+
176
+             let dataInfo = {}
177
+              list.forEach((item, index) => {
178
+                let { good_store_id } = item
179
+                if (!dataInfo[good_store_id]) {
180
+                  dataInfo[good_store_id] = {
181
+                    good_store_id,
182
+                    child: [],
183
+                    good_name:item.GoodInfo.good_name,
184
+                    specification_name:item.GoodInfo.specification_name,
185
+                    price:item.price,
186
+                    packing_unit:item.GoodInfo.packing_unit,
187
+                    storehouse_id:item.storehouse_id,
188
+                    remark:item.remark,
189
+                  }
190
+                }
191
+              })
192
+             let arr = Object.values(dataInfo)
193
+           
194
+             for(let j=0;j<arr.length;j++){
195
+              for(let i=0;i<list.length;i++){
196
+                if(arr[j].good_store_id == list[i].good_store_id){
197
+                   arr[j].child.push(list[i])   
198
+                 }
199
+               }
200
+             }
201
+            
202
+             console.log("arr2333232wo",arr)
203
+             this.stockDatas = arr
204
+             var manufacturerList = response.data.data.manufacturerList
205
+             var dealerList = response.data.data.dealerList
206
+             this.storeHouseList = response.data.data.storeHouseList
207
+           }
208
+        })
209
+      },
210
+      getCount(val){
211
+        var total = 0
212
+        if(val!=null && val.length >0){
213
+          for(let i=0;i<val.length;i++){
214
+            total +=val[i].warehousing_count
215
+          }
216
+        }
217
+        return total
218
+      },
219
+      getStorehouseId(id){
220
+        var storehouse_name = ""
221
+        for(let i=0;i<this.storeHouseList.length;i++){
222
+          if(id == this.storeHouseList[i].id){
223
+             storehouse_name = this.storeHouseList[i].storehouse_name
224
+          }
225
+        }
226
+        return storehouse_name
227
+      },
228
+      getSum(){
229
+        var sum = 0
230
+        for(let i=0;i<this.stockDatas.length;i++){
231
+         for(let j=0;j<this.stockDatas[i].child.length;j++){
232
+            sum += this.stockDatas[i].child[j].warehousing_count * this.stockDatas[i].child[j].price
233
+         }
234
+        }
235
+        if (sum > 0) {
236
+          return sum.toFixed(2)
237
+        }else{
238
+          return ""
239
+        }
240
+      },
241
+      printThisPage() {
242
+        var ptime = Math.round(new Date().getTime() / 1000)
243
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
244
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
245
+        printJS({
246
+          printable: 'dialysis-print-box',
247
+          type: 'html',
248
+          style: style,
249
+          scanStyles: false
250
+        })
251
+      },
252
+    },
253
+    created() {
254
+      var xtuser = this.$store.getters.xt_user
255
+      this.orgname = xtuser.org.org_name
256
+      this.goodUnit = this.$store.getters.good_unit
257
+      this.getlist()
258
+    }
259
+
260
+  }
261
+</script>
262
+
263
+<style>
264
+  .dialysis-print-order {
265
+    width: 960px;
266
+    margin: 0 auto
267
+  }
268
+
269
+  .dialysis-print-order .order-yy-name {
270
+    margin: auto;
271
+    text-align: center;
272
+    font-size: 20px;
273
+    letter-spacing: 5px;
274
+  }
275
+
276
+  .dialysis-print-order .order-title {
277
+    margin: auto;
278
+    font-weight: 600;
279
+    text-align: center;
280
+    font-size: 22px;
281
+    padding: 10px 20px 20px 20px;
282
+  }
283
+
284
+  .dialysis-print-order .table-box {
285
+
286
+    width: 100%;
287
+    line-height: 23px;
288
+    font-size: 14px;
289
+  }
290
+
291
+  .dialysis-print-order .print-table {
292
+    width: 100%;
293
+    text-align: center;
294
+    border-collapse: collapse;
295
+    line-height: 40px;
296
+    font-size: 14px;
297
+  }
298
+
299
+  .dialysis-print-order .print-table-no {
300
+    width: 100%;
301
+    text-align: center;
302
+    border-collapse: collapse;
303
+    font-size: 14px;
304
+  }
305
+
306
+  .dialysis-print-order .under-line {
307
+    border-bottom: 1px solid #999;
308
+    width: 95%;
309
+    text-align: center;
310
+    margin-left: 2px;
311
+
312
+
313
+  }
314
+
315
+  .dialysis-print-order .title-box {
316
+    text-align: center;
317
+    font-size: 16px;
318
+  }
319
+
320
+  .dialysis-print-order .radio-lebel-box {
321
+    font-weight: 400;
322
+    cursor: pointer;
323
+  }
324
+
325
+  .dialysis-print-order .radio-no {
326
+    opacity: 0;
327
+    outline: none;
328
+    position: absolute;
329
+    margin: 0;
330
+    width: 0;
331
+    height: 0;
332
+    z-index: -1;
333
+  }
334
+
335
+  .dialysis-print-order .radio-inner {
336
+    white-space: nowrap;
337
+    cursor: pointer;
338
+    outline: none;
339
+    display: inline-block;
340
+    line-height: 1;
341
+    position: relative;
342
+    vertical-align: middle;
343
+  }
344
+
345
+  .dialysis-print-order .radio-fang {
346
+    display: inline-block;
347
+    position: relative;
348
+    border: 1px solid #000;
349
+    box-sizing: border-box;
350
+    width: 14px;
351
+    height: 14px;
352
+    background-color: #fff;
353
+    z-index: 1;
354
+    transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46);
355
+  }
356
+
357
+  .dialysis-print-order .is-checked-radio::after {
358
+    content: "√";
359
+    font-size: 15px;
360
+  }
361
+
362
+
363
+  .dialysis-print-order .print-table-no tr td {
364
+    padding: 8px 5px;
365
+    line-height: 25px;
366
+  }
367
+
368
+  .dialysis-print-order .print-table tr td {
369
+    padding: 1px 1px;
370
+    /*line-height: 25px;*/
371
+  }
372
+
373
+  .es-img {
374
+    height: 25px;
375
+  }
376
+
377
+  .advice-name {
378
+    text-align: left;
379
+  }
380
+
381
+  .advice-children {
382
+    display: flex;
383
+  }
384
+
385
+  .title-box-pro {
386
+    border: 0 #fff;
387
+    line-height: 25px;
388
+    height: 25px;
389
+    text-align: left;
390
+    padding-left: 10px !important;
391
+  }
392
+
393
+  .title-box-pro-tr {
394
+    border: 0 #fff;
395
+  }
396
+
397
+  .text-align-left {
398
+    text-align: left !important;
399
+    padding-left: 10px !important;
400
+    font-size: 14px !important;
401
+    line-height: 25px;
402
+  }
403
+
404
+  .print-table-tr-new td {
405
+    line-height: 20px !important;
406
+  }
407
+
408
+  .border-top-solid {
409
+    border: solid 1px #000;
410
+  }
411
+
412
+  .print-template-two tr {
413
+    line-height: 30px;
414
+  }
415
+</style>

+ 415 - 0
src/xt_pages/stock/detail/printTwo.vue 查看文件

@@ -0,0 +1,415 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <el-button :loading="loading" size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印
6
+      </el-button>
7
+    </div>
8
+    <div class="app-container ">
9
+      <div id="dialysis-print-box">
10
+        <div class="dialysis-print-order">
11
+          <div class="order-yy-name">{{orgname}}</div>
12
+          <div class="order-title" v-if="type == 1">入库单</div>
13
+
14
+          <div class="order-title" v-if="type == 2">出库单</div>
15
+          <div class="order-title" v-if="type == 4">退库单</div>
16
+
17
+          <div style="float: left;margin-bottom: 10px;">{{getDateOne()}}</div>
18
+          <div style="float: right;margin-bottom: 10px;">{{getDateTwo()}}</div>
19
+
20
+
21
+
22
+          <table class="print-table" border="1">
23
+            <tbody>
24
+            <tr>
25
+              <td style="line-height: 50px" width="50">序号</td>
26
+              <td style="line-height: 50px" width="200">耗材名称</td>
27
+              <td style="line-height: 50px" width="200">规格型号</td>
28
+             <td style="line-height: 50px" width="200">仓库名称</td>
29
+              <td style="line-height: 50px" width="80">数量</td>
30
+              <td style="line-height: 50px" width="50">单位</td>
31
+
32
+              <td style="line-height:50px" width="80">
33
+                 出货价
34
+              </td>
35
+              <td style="line-height: 50px" width="80">总价</td>
36
+            </tr>
37
+
38
+            <tr v-for="(item,index) in stockDatas" :key="item.id">
39
+              <td style="line-height: 50px">&nbsp;
40
+                {{index+1}}
41
+              </td>
42
+              <td style="line-height: 50px">
43
+                {{item.good_name}}
44
+              </td>
45
+              <td style="line-height: 50px">
46
+                 {{item.specification_name}}
47
+              </td>
48
+              <td style="line-height: 50px" width="200">
49
+                {{getStorehouseId(item.storehouse_id)}}
50
+              </td>
51
+              <td style="line-height: 50px">
52
+                 {{getCount(item.child)}}
53
+              </td>
54
+              <td style="line-height: 50px">
55
+                {{item.packing_unit}}
56
+              </td>
57
+              <td style="line-height:50px">
58
+                {{item.price}}
59
+              </td>
60
+              <td style="line-height:50px">
61
+                 {{(getCount(item.child)*item.price).toFixed(2)}}
62
+              </td>
63
+            </tr>
64
+            </tbody>
65
+          </table>
66
+          <table class="print-table" border="1">
67
+            <tr>
68
+              <td style="line-height: 50px"  width="50">合计</td>
69
+              <td style="line-height: 50px"  width="200"></td>
70
+              <td style="line-height: 50px"  width="200"></td>
71
+              <td style="line-height: 50px"  width="80"></td>
72
+              <td style="line-height: 50px"  width="50"></td>
73
+              <td style="line-height: 50px"   width="80"></td>
74
+              <td style="line-height: 50px"  width="80">
75
+              
76
+              </td>
77
+              <td style="line-height: 50px" width="80">
78
+                {{getSum()}}
79
+              </td>
80
+            </tr>
81
+          </table>
82
+
83
+          <div style="display:flex;margin-top:20px;float:right;">
84
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
85
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
86
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
87
+            <div style="width:50px;">审核:</div><div style="width:100px;"></div>
88
+            <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
89
+          </div>
90
+
91
+        </div>
92
+
93
+      </div>
94
+
95
+    </div>
96
+  </div>
97
+
98
+</template>
99
+
100
+<script>
101
+  import { getNewWarehouseOutInfoList } from '@/api/stock'
102
+  import { getDataConfig } from '@/utils/data'
103
+  import { jsGetAge, uParseTime } from '@/utils/tools'
104
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
105
+  import print from 'print-js'
106
+
107
+  export default {
108
+    name: 'dialysisPrintOrder',
109
+    components: {
110
+      BreadCrumb
111
+
112
+    },
113
+    data() {
114
+      return {
115
+        crumbs: [
116
+          { path: false, name: '出入库明细' },
117
+          { path: false, name: '打印单' }
118
+        ],
119
+        loading: false,
120
+        orgname: '',
121
+        queryParams: {
122
+          start_time: this.$route.query.start_time,
123
+          end_time: this.$route.query.end_time,
124
+          type: this.$route.query.type,
125
+          limit:this.$route.query.limit,
126
+          page:this.$route.query.page,
127
+          storehouse_id:this.$route.query.storehouse_id,
128
+          keyword:this.$route.query.keyword,
129
+        },
130
+        totalPrice: 0,
131
+        stockDatas: [],
132
+        goodUnit: [],
133
+        type: this.$route.query.type,
134
+        start_time: this.$route.query.start_time,
135
+        end_time: this.$route.query.end_time,
136
+        stockTotal:[],
137
+        wareOutInfo:[],
138
+        org_id:this.$store.getters.xt_user.org.id,
139
+        informationList:[],
140
+        wareOutList:[],
141
+        storeHouseList:[],
142
+      }
143
+    },
144
+    methods: {
145
+      getDateOne(){
146
+       
147
+       return "出库日期: "+this.start_time +"~"+this.end_time
148
+       
149
+      },
150
+      getDateTwo(){
151
+        var ptime = Math.round(new Date().getTime() / 1000)
152
+        return "打印单日期:"+uParseTime(ptime, '{y}-{m}-{d}')
153
+      },
154
+      getTime(value, temp) {
155
+        if (value == 0) {
156
+          return ''
157
+        }
158
+        if (value != undefined) {
159
+          return uParseTime(value, temp)
160
+        }
161
+        return ''
162
+      },
163
+      printThisPage() {
164
+        var ptime = Math.round(new Date().getTime() / 1000)
165
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
166
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
167
+        printJS({
168
+          printable: 'dialysis-print-box',
169
+          type: 'html',
170
+          style: style,
171
+          scanStyles: false
172
+        })
173
+      },
174
+      getlist(){
175
+        getNewWarehouseOutInfoList(this.queryParams).then(response=>{
176
+           if(response.data.state == 1){
177
+             var list =  response.data.data.list
178
+             console.log("list列表",list)
179
+           
180
+             if(list!=null && list.length >0){
181
+              for(let i=0;i<list.length;i++){
182
+                list[i].good_store_id = list[i].good_id+list[i].storehouse_id
183
+               }
184
+             }
185
+             console.log("list23323223wo",list)
186
+
187
+             let dataInfo = {}
188
+              list.forEach((item, index) => {
189
+                let { good_store_id } = item
190
+                if (!dataInfo[good_store_id]) {
191
+                  dataInfo[good_store_id] = {
192
+                    good_store_id,
193
+                    child: [],
194
+                    good_name:item.GoodInfo.good_name,
195
+                    specification_name:item.GoodInfo.specification_name,
196
+                    price:item.price,
197
+                    packing_unit:item.GoodInfo.packing_unit,
198
+                    storehouse_id:item.storehouse_id,
199
+                    remark:item.remark,
200
+                  }
201
+                }
202
+              })
203
+             let arr = Object.values(dataInfo)
204
+           
205
+             for(let j=0;j<arr.length;j++){
206
+              for(let i=0;i<list.length;i++){
207
+                if(arr[j].good_store_id == list[i].good_store_id){
208
+                   arr[j].child.push(list[i])   
209
+                 }
210
+               }
211
+             }
212
+            
213
+             console.log("arr2333232wo",arr)
214
+             this.stockDatas = arr
215
+             var manufacturerList = response.data.data.manufacturerList
216
+             var dealerList = response.data.data.dealerList
217
+             this.storeHouseList = response.data.data.storeHouseList
218
+           }
219
+        })
220
+      },
221
+      getStorehouseId(id){
222
+        var storehouse_name = ""
223
+        for(let i=0;i<this.storeHouseList.length;i++){
224
+          if(id == this.storeHouseList[i].id){
225
+             storehouse_name = this.storeHouseList[i].storehouse_name
226
+          }
227
+        }
228
+        return storehouse_name
229
+      },
230
+     getCount(val){
231
+        var total = 0
232
+        if(val!=null && val.length >0){
233
+          for(let i=0;i<val.length;i++){
234
+            total +=val[i].count
235
+          }
236
+        }
237
+        return total
238
+      },
239
+      getSum(){
240
+        var sum = 0
241
+        for(let i=0;i<this.stockDatas.length;i++){
242
+         for(let j=0;j<this.stockDatas[i].child.length;j++){
243
+            sum += this.stockDatas[i].child[j].count * this.stockDatas[i].child[j].price
244
+         }
245
+        }
246
+        if (sum > 0) {
247
+          return sum.toFixed(2)
248
+        }else{
249
+          return ""
250
+        }
251
+      },
252
+    },
253
+    created() {
254
+      var xtuser = this.$store.getters.xt_user
255
+      this.orgname = xtuser.org.org_name
256
+      this.goodUnit = this.$store.getters.good_unit
257
+      this.getlist()
258
+    }
259
+
260
+  }
261
+</script>
262
+
263
+<style>
264
+  .dialysis-print-order {
265
+    width: 960px;
266
+    margin: 0 auto
267
+  }
268
+
269
+  .dialysis-print-order .order-yy-name {
270
+    margin: auto;
271
+    text-align: center;
272
+    font-size: 20px;
273
+    letter-spacing: 5px;
274
+  }
275
+
276
+  .dialysis-print-order .order-title {
277
+    margin: auto;
278
+    font-weight: 600;
279
+    text-align: center;
280
+    font-size: 22px;
281
+    padding: 10px 20px 20px 20px;
282
+  }
283
+
284
+  .dialysis-print-order .table-box {
285
+
286
+    width: 100%;
287
+    line-height: 23px;
288
+    font-size: 14px;
289
+  }
290
+
291
+  .dialysis-print-order .print-table {
292
+    width: 100%;
293
+    text-align: center;
294
+    border-collapse: collapse;
295
+    line-height: 40px;
296
+    font-size: 14px;
297
+  }
298
+
299
+  .dialysis-print-order .print-table-no {
300
+    width: 100%;
301
+    text-align: center;
302
+    border-collapse: collapse;
303
+    font-size: 14px;
304
+  }
305
+
306
+  .dialysis-print-order .under-line {
307
+    border-bottom: 1px solid #999;
308
+    width: 95%;
309
+    text-align: center;
310
+    margin-left: 2px;
311
+
312
+
313
+  }
314
+
315
+  .dialysis-print-order .title-box {
316
+    text-align: center;
317
+    font-size: 16px;
318
+  }
319
+
320
+  .dialysis-print-order .radio-lebel-box {
321
+    font-weight: 400;
322
+    cursor: pointer;
323
+  }
324
+
325
+  .dialysis-print-order .radio-no {
326
+    opacity: 0;
327
+    outline: none;
328
+    position: absolute;
329
+    margin: 0;
330
+    width: 0;
331
+    height: 0;
332
+    z-index: -1;
333
+  }
334
+
335
+  .dialysis-print-order .radio-inner {
336
+    white-space: nowrap;
337
+    cursor: pointer;
338
+    outline: none;
339
+    display: inline-block;
340
+    line-height: 1;
341
+    position: relative;
342
+    vertical-align: middle;
343
+  }
344
+
345
+  .dialysis-print-order .radio-fang {
346
+    display: inline-block;
347
+    position: relative;
348
+    border: 1px solid #000;
349
+    box-sizing: border-box;
350
+    width: 14px;
351
+    height: 14px;
352
+    background-color: #fff;
353
+    z-index: 1;
354
+    transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46);
355
+  }
356
+
357
+  .dialysis-print-order .is-checked-radio::after {
358
+    content: "√";
359
+    font-size: 15px;
360
+  }
361
+
362
+
363
+  .dialysis-print-order .print-table-no tr td {
364
+    padding: 8px 5px;
365
+    line-height: 25px;
366
+  }
367
+
368
+  .dialysis-print-order .print-table tr td {
369
+    padding: 1px 1px;
370
+    /*line-height: 25px;*/
371
+  }
372
+
373
+  .es-img {
374
+    height: 25px;
375
+  }
376
+
377
+  .advice-name {
378
+    text-align: left;
379
+  }
380
+
381
+  .advice-children {
382
+    display: flex;
383
+  }
384
+
385
+  .title-box-pro {
386
+    border: 0 #fff;
387
+    line-height: 25px;
388
+    height: 25px;
389
+    text-align: left;
390
+    padding-left: 10px !important;
391
+  }
392
+
393
+  .title-box-pro-tr {
394
+    border: 0 #fff;
395
+  }
396
+
397
+  .text-align-left {
398
+    text-align: left !important;
399
+    padding-left: 10px !important;
400
+    font-size: 14px !important;
401
+    line-height: 25px;
402
+  }
403
+
404
+  .print-table-tr-new td {
405
+    line-height: 20px !important;
406
+  }
407
+
408
+  .border-top-solid {
409
+    border: solid 1px #000;
410
+  }
411
+
412
+  .print-template-two tr {
413
+    line-height: 30px;
414
+  }
415
+</style>

+ 27 - 1
src/xt_pages/stock/detail/stockInDetail.vue 查看文件

@@ -460,10 +460,12 @@ export default {
460 460
     handleSizeChange(val) {
461 461
       this.limit = val;
462 462
       this.GetCancelStock();
463
+      this.getGoodDetailPrintList()
463 464
     },
464 465
     handleCurrentChange(val) {
465 466
       this.page = val;
466 467
       this.GetCancelStock();
468
+      this.getGoodDetailPrintList()
467 469
     },
468 470
     startTimeChange(val) {
469 471
 
@@ -474,6 +476,7 @@ export default {
474 476
       } else {
475 477
 
476 478
         this.GetCancelStock();
479
+        this.getPrintStockGood()
477 480
 
478 481
       }
479 482
     },
@@ -485,6 +488,7 @@ export default {
485 488
       } else {
486 489
 
487 490
         this.GetCancelStock();
491
+        this.getPrintStockGood()
488 492
       }
489 493
     },
490 494
     getTimestamp(time) {
@@ -636,9 +640,13 @@ export default {
636 640
       return (r1 * r2) / Math.pow(10, m);
637 641
     },
638 642
     PrintAction: function() {
643
+
644
+      
639 645
       window.sessionStorage.setItem('start_time',this.start_time)
640 646
       window.sessionStorage.setItem('end_time',this.end_time)
641
-      this.$router.push({
647
+
648
+      if(this.org_id!=9671){
649
+        this.$router.push({
642 650
         path: "/stock/print",
643 651
         query: {
644 652
           type: 1,
@@ -649,6 +657,24 @@ export default {
649 657
           keywords:this.$router.keywords,
650 658
         }
651 659
       });
660
+      }
661
+      if(this.org_id == 9671){
662
+       
663
+        this.$router.push({
664
+        path: "/stock/print/one",
665
+        query: {
666
+          type: 1,
667
+          start_time: this.start_time,
668
+          end_time: this.end_time,
669
+          limit:this.limit,
670
+          page:this.page,
671
+          keywords:this.searchKey,
672
+          storehouse_id:this.storehouse_id,
673
+          
674
+        }
675
+       });
676
+      }
677
+     
652 678
     },
653 679
    getPrintStockGood(){
654 680
      const params = {

+ 36 - 14
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

@@ -659,16 +659,34 @@ export default {
659 659
     PrintAction: function() {
660 660
       window.sessionStorage.setItem('start',this.start_time)
661 661
       window.sessionStorage.setItem('end',this.end_time)
662
-      this.$router.push({
663
-        path: "/stock/print",
664
-        query: {
665
-          type: 2,
666
-          start_time: this.start_time,
667
-          end_time: this.end_time,
668
-          limit:this.limit,
669
-          page:this.page,
670
-        }
671
-      });
662
+     
663
+      if(this.orgId != 9671){
664
+        this.$router.push({
665
+          path: "/stock/print",
666
+          query: {
667
+            type: 2,
668
+            start_time: this.start_time,
669
+            end_time: this.end_time,
670
+            limit:this.limit,
671
+            page:this.page,
672
+          }
673
+        });
674
+      }
675
+      if(this.orgId == 9671){
676
+         this.$router.push({
677
+          path: "/stock/print/two",
678
+          query: {
679
+            type: 2,
680
+            start_time: this.start_time,
681
+            end_time: this.end_time,
682
+            limit:this.limit,
683
+            page:this.page,
684
+            storehouse_id:this.storehouse_id,
685
+            keyword:this.searchKey,
686
+          }
687
+        });
688
+      }
689
+    
672 690
     },
673 691
     // getPrintStockGood(){
674 692
     //   const params = {
@@ -773,8 +791,8 @@ export default {
773 791
       },
774 792
 
775 793
     exportList(){
776
-      console.log("shij232333",this.tableOut)
777
-     
794
+      
795
+       console.log("到处数据------------------------",this.tableOut)
778 796
        for(let i=0;i<this.tableOut.length;i++){
779 797
         this.tableOut[i].index = i+1
780 798
         this.tableOut[i].good_name = this.tableOut[i].good_name
@@ -802,6 +820,8 @@ export default {
802 820
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
803 821
         }else if(this.orgId == 10188){
804 822
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
823
+        }else if(this.orgId == 10402){
824
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
805 825
         }else{
806 826
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
807 827
         }
@@ -810,11 +830,13 @@ export default {
810 830
 
811 831
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
812 832
         }
813
-        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
833
+        //手动自动出库
834
+        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId == 10402){
814 835
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
815 836
           console.log("out_count232233232332",this.tableOut[i].out_count)
816 837
         }
817
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919){
838
+        //自动出库
839
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919  && this.orgId!=10402){
818 840
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
819 841
         }
820 842
        }

+ 1 - 1
src/xt_pages/stock/drugs/components/drugPatientQuery.vue 查看文件

@@ -190,7 +190,7 @@ export default {
190 190
     },
191 191
     handleCurrentChangeOne(val) {
192 192
       this.page = val;
193
-      console.log("val3232232323",val)
193
+      
194 194
       this.getDrugWarehouseOutDetailByPatientId()
195 195
     },
196 196
     startTimeChange(){

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

@@ -7,7 +7,7 @@
7 7
     </div>
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10
-        <div v-if="orgId!=9671 && orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877">
10
+        <div v-if="orgId!=9671 && orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877 && orgId!=10387">
11 11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
12 12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
13 13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
@@ -78,7 +78,7 @@
78 78
       </div> 
79 79
 
80 80
 
81
-      <div v-if="orgId == 9671 || orgId == 9675 ||  orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877">
81
+      <div v-if="orgId == 9671 || orgId == 9675 ||  orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877 || orgId == 10387">
82 82
        <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83 83
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84 84
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>

+ 1 - 2
src/xt_pages/stock/query/goodNewQuery.vue 查看文件

@@ -681,11 +681,10 @@ export default {
681 681
        if(response.data.state == 1){
682 682
          this.dialogVisible = true
683 683
          var list = response.data.data.list
684
+         console.log("list2332323232wo",list)
684 685
          this.tableData = list
685 686
          this.totalone = response.data.data.total
686 687
       
687
-        //  this.flushList =  response.data.data.flushList
688
-        
689 688
        }
690 689
      })
691 690
    

+ 2 - 0
src/xt_pages/stock/stockFlow.vue 查看文件

@@ -131,6 +131,8 @@
131 131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
132 132
            </template>
133 133
         </el-table-column>
134
+
135
+     
134 136
        </el-table>
135 137
        
136 138
       <el-pagination

+ 17 - 7
src/xt_pages/user/courseOfDisease.vue 查看文件

@@ -57,6 +57,7 @@
57 57
                 <el-table-column label="记录时间" align="center">
58 58
                   <template slot-scope="scope">
59 59
                     {{ recordTime(scope.row.record_time) }}
60
+                   
60 61
                   </template>
61 62
                 </el-table-column>
62 63
                 <el-table-column label="记录医生" align="center">
@@ -86,8 +87,8 @@
86 87
               <label class="title"><span class="name">病程日期</span> : </label>
87 88
               <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
88 89
                               style="width: 200px;"
89
-                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
90
-                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
90
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
91
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
91 92
 
92 93
               <label class="title"><span class="name">日常病程</span> : </label>
93 94
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
@@ -132,8 +133,8 @@
132 133
               <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
133 134
                               style="width: 200px;"
134 135
                               type="datetime"
135
-                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
136
-                              value-format="yyyy-MM-dd HH:mm"></el-date-picker>
136
+                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
137
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
137 138
 
138 139
               <label class="title"><span class="name">日常病程</span> : </label>
139 140
               <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
@@ -185,7 +186,9 @@
185 186
     modifyCourseOfDiseaseRecord,
186 187
     GetCoursePrintData
187 188
   } from '@/api/patient'
188
-  import { parseTime } from '@/utils'
189
+  import { parseTime, } from '@/utils'
190
+  import { uParseTime } from '@/utils/tools'
191
+
189 192
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
190 193
 
191 194
   export default {
@@ -285,8 +288,15 @@
285 288
         this.current_select_record = record
286 289
       },
287 290
       recordTime: function(timestamp) {
288
-        var time = new Date(timestamp * 1000)
289
-        return parseTime(time, '{y}-{m}-{d} {h}:{m}')
291
+       
292
+        if(timestamp < 0){
293
+           return ""
294
+         }
295
+         if(timestamp == ""){
296
+          return ""
297
+         }else {
298
+          return uParseTime(timestamp, '{y}-{m}-{d} {h}:{i}:{s}')
299
+         }
290 300
       },
291 301
       doctorName: function(doctor_id) {
292 302
         for (let index = 0; index < this.doctors.length; index++) {

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

@@ -312,6 +312,7 @@
312 312
           </el-col>
313 313
 
314 314
           <el-col :span="8" v-if="isShows('抗凝剂')">
315
+            
315 316
             <el-form-item label="抗凝剂:" prop="anticoagulant">
316 317
               <el-select
317 318
                 v-model="addPlan.anticoagulant"
@@ -2535,7 +2536,7 @@
2535 2536
       this.anticoagulantsSet = this.$store.getters.anticoagulants_set
2536 2537
       this.replacementWays = this.$store.getters.replacement_ways
2537 2538
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2538
-
2539
+      console.log("抗凝剂22333223wo",this.anticoagulantsConfit)
2539 2540
       this.blood_filters = this.$store.getters.blood_filters
2540 2541
       this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
2541 2542
       this.hemodialysis_machines = this.$store.getters.hemodialysis_machines

+ 6 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue 查看文件

@@ -88,6 +88,7 @@
88 88
        </el-select>
89 89
     </div>
90 90
     <el-table
91
+      v-loading="loading"
91 92
       :row-style="{ color: '#303133' }"
92 93
       :data="scheduleData"
93 94
       border
@@ -304,7 +305,8 @@ export default {
304 305
       zone:"",
305 306
       // zoneList:[{id:0,name:"全部"}],
306 307
       zoneList:[],
307
-      start_time:moment().week(moment().week() + 1).startOf('week').unix()
308
+      start_time:moment().week(moment().week() + 1).startOf('week').unix(),
309
+      loading:false,
308 310
     };
309 311
   },
310 312
   watch: {
@@ -343,6 +345,7 @@ export default {
343 345
       }
344 346
      },
345 347
     getNextScheduleWeekDay() {
348
+       this.loading = true
346 349
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
347 350
         const end = moment().weekday(7).format('YYYY-MM-DD')
348 351
         // console.log("start",moment(start).unix())
@@ -375,6 +378,7 @@ export default {
375 378
         //   zone:str,
376 379
         //   record_date:this.getTime(now_time)
377 380
         // }
381
+
378 382
        const params = {
379 383
           start_time:next_monday,
380 384
           end_time:next_sunday,
@@ -387,6 +391,7 @@ export default {
387 391
       getNextScheduleWeekDay(params).then(response => {
388 392
         this.scheduleData = [];
389 393
         if (response.data.state == 1) {
394
+          this.loading = false
390 395
           var scheduleData = response.data.data.schedule;
391 396
           if(this.pre_status == 0){
392 397
               for(let i=0;i<scheduleData.length;i++){

+ 2 - 10
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

@@ -221,24 +221,16 @@
221 221
             </el-table-column>
222 222
             <el-table-column label="透析器/灌流器" min-width="100" align="center">
223 223
                 <template slot-scope="scope">
224
-                    <!-- <span v-if="org_id!=9987&&org_id!=10131&&org_id!=10215 &&org_id!=10233 && org_id!=10290">
225
-                      <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
226
-                        <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
227
-                      </span>
228
-
229
-                      <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 && scope.row.prescription.dialysis_dialyszers == ''">{{scope.row.dialysissolution.dialysis_dialyszers}}</span>
230
-                    </span> -->
231
-
232
-                    <!-- <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
233 224
                     
234
-                      <!-- {{scope.row.prescription.dialysis_dialyszers}} -->
235 225
                     <span v-if="scope.row.prescription.dialysis_dialyszers =='' ">
236 226
                        {{scope.row.dialysissolution.dialysis_dialyszers}}
237 227
                     </span>
238 228
                     <span v-if="scope.row.prescription.dialysis_dialyszers !=''">{{scope.row.prescription.dialysis_dialyszers}}</span>
229
+
239 230
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus =='' ">
240 231
                        {{scope.row.dialysissolution.dialyzer_perfusion_apparatus}}
241 232
                     </span>
233
+
242 234
                     <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus !=''">{{scope.row.prescription.dialyzer_perfusion_apparatus}}</span>
243 235
   
244 236
                     <span v-if="scope.row.prescription.dialysis_irrigation==''">/{{scope.row.dialysissolution.dialysis_irrigation}}</span>

+ 27 - 2
src/xt_pages/workforce/printOne.vue 查看文件

@@ -1,7 +1,17 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
4
+      <bread-crumb :crumbs="crumbs" style="flex:1;"></bread-crumb>
5
+      <el-row style="float: right;margin-right: 20px;">
6
+        <el-col :span="24">
7
+          <el-button
8
+            size="small"
9
+            type="success"
10
+            @click="hiddenBtn"
11
+            >{{hiddenText}}</el-button
12
+          >
13
+        </el-col>
14
+      </el-row>
5 15
       <el-row style="float: right">
6 16
         <el-col :span="24">
7 17
           <el-button
@@ -85,6 +95,8 @@ export default {
85 95
       td_4_width: '20%',
86 96
 
87 97
       month: 1,
98
+      hiddenFlag: false,
99
+      hiddenText: '隐藏备注',
88 100
       begin_day: 1,
89 101
 
90 102
       schedules: [
@@ -419,6 +431,15 @@ export default {
419 431
     this.getlist()
420 432
   },
421 433
   methods: {
434
+    hiddenBtn() {
435
+      if (this.hiddenFlag) {
436
+        this.hiddenFlag = false
437
+        this.hiddenText = '隐藏备注'
438
+      } else {
439
+        this.hiddenFlag = true
440
+        this.hiddenText = '显示备注'
441
+      }
442
+    },
422 443
     getAllZone() {
423 444
       GetAllZone().then((response) => {
424 445
         if (response.data.state == 0) {
@@ -616,7 +637,11 @@ export default {
616 637
       if (arr.length > 0) {
617 638
         for (let i = 0; i < arr.length; i++) {
618 639
           arr[i].name = this.nameSplit(arr[i].name)
619
-          str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '上机备注:' + arr[i].order.order_remark + ')<br/>'
640
+          if (this.hiddenFlag) {
641
+            str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
642
+          } else {
643
+            str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '上机备注:' + arr[i].order.order_remark + ')<br/>'
644
+          }
620 645
         }
621 646
       }
622 647
       console.log(str, 'strstrstr')

+ 60 - 43
src/xt_pages/workforce/remind_print_setting_one.vue 查看文件

@@ -20,9 +20,8 @@
20 20
           <div class="table_panel">
21 21
             <div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0  ? 'page-break-after':''">
22 22
              
23
-
24 23
               <div class="signPrint" style="font-size:16px;">
25
-                <div>姓名:
24
+                <div style="font-size:24px;font-weight: 400;">姓名:
26 25
                   <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
27 26
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
28 27
                   <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
@@ -33,37 +32,14 @@
33 32
                     {{getNewAge(main_collection.id_card_no) }}岁)</span> 
34 33
                   
35 34
                 </div>
36
-                <div class="printCell">身份证:
37
-                    <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
38
-                    <span v-if="type ==2">{{main_collection.id_card_no}} </span>
39
-                </div>
40
-                <div class="printCell">电话号码:
41
-                    <span v-if="type ==1">{{main_collection.patient.phone}} </span>
42
-                    <span v-if="type ==2">{{main_collection.phone}} </span>
43
-                </div>
44 35
                 <div class="printCell">
45 36
                   透析模式:
46 37
                     <span>{{getModeId(main_collection.mode_id)}}</span>
47 38
                   
48 39
                 </div>
49
-                <div class="printCell">
50
-                  <span>
51
-                    分区/床号
52
-                    <span  style="width:auto;">{{main_collection.zone.name}}/</span>
53
-                    {{ main_collection.number.number }}
54
-                    <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
55
-                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
56
-                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
57
-                  </span>
58
-                 
59
-                </div>
60
-                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
61
-                    <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
62
-                </div>
63 40
                 <div class="printCell">
64 41
                   <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
65 42
                 </div>
66
-             
67 43
                 <div class="printCell">
68 44
                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
69 45
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
@@ -173,7 +149,20 @@
173 149
                    </span>
174 150
           
175 151
                 </div>
176
-           
152
+                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
153
+                    <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
154
+                </div>
155
+                <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
156
+                    <span>上次透析时长:<span v-if="main_collection.lastafterweight!=null">{{ main_collection.lastafterweight.actual_treatment_hour?main_collection.lastafterweight.actual_treatment_hour:"" }}小时{{ main_collection.lastafterweight.actual_treatment_minute?main_collection.lastafterweight.actual_treatment_minute:"" }}分钟</span></span>
157
+                </div>
158
+                <div class="printCell">身份证:
159
+                    <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
160
+                    <span v-if="type ==2">{{main_collection.id_card_no}} </span>
161
+                </div>
162
+                <div class="printCell">电话号码:
163
+                    <span v-if="type ==1">{{main_collection.patient.phone}} </span>
164
+                    <span v-if="type ==2">{{main_collection.phone}} </span>
165
+                </div>
177 166
                 <div class="printCell">
178 167
                    透析器:
179 168
                     <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
@@ -190,6 +179,18 @@
190 179
                     <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
191 180
                     <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
192 181
                 </div>
182
+                
183
+                <div class="printCell">
184
+                  <span>
185
+                    分区/床号
186
+                    <span  style="width:auto;">{{main_collection.zone.name}}/</span>
187
+                    {{ main_collection.number.number }}
188
+                    <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
189
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
190
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
191
+                  </span>
192
+                 
193
+                </div>
193 194
               
194 195
               </div>
195 196
            </div>
@@ -234,7 +235,8 @@
234 235
         pre_status: 0,
235 236
         printObj: {},
236 237
         type: 1,
237
-        printDate: ''
238
+        printDate: '',
239
+        loading: false
238 240
       }
239 241
     },
240 242
     components: {
@@ -261,11 +263,20 @@
261 263
           week_time: this.week_time,
262 264
           zone: this.zone
263 265
         }
264
-        console.log('params', params)
266
+
267
+      const loading = this.$loading({
268
+        lock: true,
269
+        text: "Loading",
270
+        spinner: "el-icon-loading",
271
+        background: "rgba(0, 0, 0, 0.7)",
272
+      });
273
+  
274
+       
265 275
         getScheduleList(params).then(response => {
266 276
           if (response.data.state == 1) {
267 277
             var list = response.data.data.list
268
-  
278
+            loading.close();
279
+          
269 280
             for (let i = 0; i < list.length; i++) {
270 281
               list[i].sort = list[i].number.sort
271 282
             }
@@ -305,6 +316,7 @@
305 316
             }
306 317
             var str = year + '年' + month + '月' + day + '日  ' + days
307 318
             this.currentDate = str
319
+            
308 320
           }
309 321
         })
310 322
 
@@ -364,9 +376,9 @@
364 376
         }
365 377
       },
366 378
       printAction: function() {
367
-        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 200px;} @page {margin-top:10px;}}'
368
-        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 200px;} @page {margin-top:10px;}}'
369
-        const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 200px;} @page {margin-top:10px;}}'
379
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
380
+        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
381
+        const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
370 382
         if (this.org_id == 9671 || this.org_id == 10340) {
371 383
           printJS({
372 384
             printable: 'print_content',
@@ -479,6 +491,12 @@
479 491
         })
480 492
       },
481 493
       getNextScheduleWeekDay() {
494
+       const loading = this.$loading({
495
+          lock: true,
496
+          text: 'Loading',
497
+          spinner: 'el-icon-loading',
498
+          background: 'rgba(0, 0, 0, 0.7)'
499
+        })
482 500
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
483 501
         const end = moment().weekday(7).format('YYYY-MM-DD')
484 502
         var zone = this.zone
@@ -496,13 +514,11 @@
496 514
         // }
497 515
         var now_time = parseInt(this.week_type) * 86400 + this.start_time
498 516
 
499
-       let weekOfDay = parseInt(moment().format('E'))
500
-        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
501
-        console.log("卡 is h2323233232",this.toStamp(next_monday))
502
-        let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
503
-        console.log("下周日",this.toStamp(next_sunday))
504
-
505
-      
517
+        const weekOfDay = parseInt(moment().format('E'))
518
+        const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
519
+        console.log('卡 is h2323233232', this.toStamp(next_monday))
520
+        const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
521
+        console.log('下周日', this.toStamp(next_sunday))
506 522
 
507 523
         const params = {
508 524
           start_time: this.toStamp(next_monday),
@@ -522,6 +538,7 @@
522 538
         getNextScheduleWeekDayOne(params).then(response => {
523 539
           this.scheduleData = []
524 540
           if (response.data.state == 1) {
541
+            loading.close()
525 542
             var scheduleData = response.data.data.schedule
526 543
 
527 544
             for (let i = 0; i < scheduleData.length; i++) {
@@ -711,10 +728,10 @@
711 728
         return name
712 729
       },
713 730
       toStamp(date) {
714
-        const myDate = new Date(date).getTime()/1000 - 28800
731
+        const myDate = new Date(date).getTime() / 1000 - 28800
715 732
         // const stmapEg = Date.parse(myDate) / 1000
716
-       return myDate
717
-      },
733
+        return myDate
734
+      }
718 735
 
719 736
     }
720 737
   }
@@ -799,7 +816,7 @@
799 816
 .printCell{
800 817
   span{
801 818
     display: inline-block;
802
-    width: 180px;
819
+    width: 220px;
803 820
   }
804 821
 }
805 822
 </style>

+ 7 - 0
src/xt_pages/workforce/template.vue 查看文件

@@ -4231,6 +4231,12 @@ export default {
4231 4231
 
4232 4232
     },
4233 4233
     submitAction() {
4234
+     const loading = this.$loading({
4235
+        lock: true,
4236
+        text: 'Loading',
4237
+        spinner: 'el-icon-loading',
4238
+        background: 'rgba(0, 0, 0, 0.7)'
4239
+      })
4234 4240
       var template
4235 4241
       if (this.form.firstWeek == 1) {
4236 4242
         template = this.first_template
@@ -4260,6 +4266,7 @@ export default {
4260 4266
       }
4261 4267
       synchroSchedule(params).then(response => {
4262 4268
         if (response.data.state == 1) {
4269
+          loading.close()
4263 4270
           var msg = response.data.data.msg
4264 4271
           this.$message.success("同步成功!")
4265 4272
           this.newVisible = false

+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))