Browse Source

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

陈少旭 9 months ago
parent
commit
7d2c86e793

+ 20 - 21
src/xt_pages/DepositManagement/DepositRefund.vue View File

20
             </el-button>
20
             </el-button>
21
           </div>
21
           </div>
22
         </div>
22
         </div>
23
-        <div
24
-          style="
25
-            justify-content: flex-start;
26
-            margin: 0px 0 12px 0;
27
-            display: flex;
23
+        <div style=" justify-content: flex-start;
24
+            margin: 0px 0 12px 0; display: flex;
28
             align-items: center;
25
             align-items: center;
29
           "
26
           "
30
         >
27
         >
31
-          <div style="display: flex">
32
-            <div style="width: 250px">
28
+            <div style="flex: 1;">
33
               <el-input
29
               <el-input
34
                 size="small"
30
                 size="small"
35
-                style="width: 200px; margin-left: 10px"
31
+                style="width: 200px;"
36
                 class="filter-item"
32
                 class="filter-item"
37
                 placeholder="请输入编号/患者名称"
33
                 placeholder="请输入编号/患者名称"
38
                 v-model.trim="tmp_keyword"
34
                 v-model.trim="tmp_keyword"
39
               />
35
               />
40
             </div>
36
             </div>
41
 
37
 
42
-            <div style="width: 287px;margin-right: 30px;white-space: nowrap;">
38
+            <div style="flex: 1;white-space: nowrap;">
43
               退款类型:
39
               退款类型:
44
-              <el-select v-model="tmp_refundtype" placeholder="请选择" @change="updaterefundtype">
40
+              <el-select v-model="tmp_refundtype" placeholder="请选择" @change="updaterefundtype" style="width: 130px;">
45
                 <el-option
41
                 <el-option
46
                   v-for="item in refundtypelist"
42
                   v-for="item in refundtypelist"
47
                   :key="item.name"
43
                   :key="item.name"
52
               </el-select>
48
               </el-select>
53
             </div>
49
             </div>
54
 
50
 
55
-            <div style="width: 288px;margin-right: 30px;white-space: nowrap;">
51
+            <div style="white-space: nowrap;flex: 1;">
56
               审核状态:
52
               审核状态:
57
-              <el-select v-model="tmp_examinetype" placeholder="请选择" @change="updateexaminetype">
53
+              <el-select v-model="tmp_examinetype" placeholder="请选择" @change="updateexaminetype" style="width: 130px;">
58
                 <el-option
54
                 <el-option
59
                   v-for="item in examinelist"
55
                   v-for="item in examinelist"
60
                   :key="item.name"
56
                   :key="item.name"
65
               </el-select>
61
               </el-select>
66
             </div>
62
             </div>
67
 
63
 
68
-            <div style="width: 465px;white-space: nowrap;">
64
+            <div style="white-space: nowrap;flex: 1;">
69
               <span>日期查询:</span>
65
               <span>日期查询:</span>
70
               <el-date-picker
66
               <el-date-picker
71
                 unlink-panels
67
                 unlink-panels
79
               >
75
               >
80
               </el-date-picker>
76
               </el-date-picker>
81
             </div>
77
             </div>
82
-            <el-button
83
-              size="small"
84
-              class="filter-item"
85
-              type="primary"
86
-              icon="el-icon-search"
87
-              @click="search_tmp"
78
+            <div style="margin-left: 5px;">
79
+              <el-button
80
+                size="small"
81
+                class="filter-item"
82
+                type="primary"
83
+                icon="el-icon-search"
84
+                @click="search_tmp"
88
               >查询</el-button
85
               >查询</el-button
89
-            >
86
+              >
87
+            </div>
88
+           
90
           </div>
89
           </div>
91
-        </div>
90
+
92
         <el-table
91
         <el-table
93
           ref="multipleTable"
92
           ref="multipleTable"
94
           :header-cell-style="{
93
           :header-cell-style="{

+ 2 - 2
src/xt_pages/data/basicConfig.vue View File

46
                 <el-switch v-model="good_out_open" @change="changeGoodOutOpen"></el-switch>
46
                 <el-switch v-model="good_out_open" @change="changeGoodOutOpen"></el-switch>
47
             </p>
47
             </p>
48
 
48
 
49
-            <p style="margin-top:20px;">药品耗材在结算时出库:
49
+            <!-- <p style="margin-top:20px;">药品耗材在结算时出库:
50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
51
-            </p>
51
+            </p> -->
52
         </div>
52
         </div>
53
 
53
 
54
 
54
 

+ 13 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

1586
                           <td width="50" v-if="org_id == 10478 || org_id ==10510">动脉压<br />(mmHg)</td>
1586
                           <td width="50" v-if="org_id == 10478 || org_id ==10510">动脉压<br />(mmHg)</td>
1587
                           <td width="50">静脉压<br />(mmHg)</td>
1587
                           <td width="50">静脉压<br />(mmHg)</td>
1588
                           <td width="50">跨膜压<br />(mmHg)</td>
1588
                           <td width="50">跨膜压<br />(mmHg)</td>
1589
-                          <td width="60" v-if="org_id != 9836">
1589
+                          <td width="60" v-if="org_id != 9836 && org_id!=10644">
1590
                             透析液温度(°C)
1590
                             透析液温度(°C)
1591
                           </td>
1591
                           </td>
1592
                           <td width="60" v-if="org_id == 9836">体温(°C)</td>
1592
                           <td width="60" v-if="org_id == 9836">体温(°C)</td>
1597
                               org_id != 10121 &&
1597
                               org_id != 10121 &&
1598
                               org_id != 9675 &&
1598
                               org_id != 9675 &&
1599
                               org_id!=10490  &&
1599
                               org_id!=10490  &&
1600
-                              org_id!=10600
1600
+                              org_id!=10600 &&
1601
+                              org_id!=10644
1601
                             "
1602
                             "
1602
                           >
1603
                           >
1603
                             电导度<br />(ms/cm)
1604
                             电导度<br />(ms/cm)
1650
                               org_id == 9671 ||
1651
                               org_id == 9671 ||
1651
                               org_id ==10600 ||
1652
                               org_id ==10600 ||
1652
                               org_id ==10629 ||
1653
                               org_id ==10629 ||
1653
-                              org_id == 10510
1654
+                              org_id == 10510 ||
1655
+                              org_id == 0 ||
1656
+                              org_id == 10598
1657
+
1654
                             "
1658
                             "
1655
                           >
1659
                           >
1656
                             KT/V
1660
                             KT/V
1757
                                 : "/"
1761
                                 : "/"
1758
                             }}
1762
                             }}
1759
                           </td>
1763
                           </td>
1760
-                          <td v-if="org_id != 9836">
1764
+                          <td v-if="org_id != 9836 && org_id!=10644">
1761
                             {{
1765
                             {{
1762
                               monitor_record.dialysate_temperature
1766
                               monitor_record.dialysate_temperature
1763
                                 ? monitor_record.dialysate_temperature
1767
                                 ? monitor_record.dialysate_temperature
1779
                               org_id != 10121 &&
1783
                               org_id != 10121 &&
1780
                               org_id != 9675 && 
1784
                               org_id != 9675 && 
1781
                               org_id!=10490 &&
1785
                               org_id!=10490 &&
1782
-                              org_id!=10600
1786
+                              org_id!=10600 &&
1787
+                              org_id!=10644
1783
                             "
1788
                             "
1784
                           >
1789
                           >
1785
                             {{
1790
                             {{
1883
                               org_id == 9671 ||
1888
                               org_id == 9671 ||
1884
                               org_id == 10600 ||
1889
                               org_id == 10600 ||
1885
                               org_id ==10629 ||
1890
                               org_id ==10629 ||
1886
-                              org_id ==10510
1891
+                              org_id ==10510 ||
1892
+                              org_id== 0 ||
1893
+                              org_id ==10598
1887
                             "
1894
                             "
1888
                           >
1895
                           >
1889
                             {{ monitor_record.ktv }}
1896
                             {{ monitor_record.ktv }}

+ 20 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue View File

727
                           class="under_line"
727
                           class="under_line"
728
                           style="width: 100px; text-align: center"
728
                           style="width: 100px; text-align: center"
729
                         >
729
                         >
730
-                          /
730
+                        {{
731
+                          getDisplaceLiquiPart(record.prescription.displace_liqui_part)
732
+                        }}
731
                         </div>
733
                         </div>
732
                       </div>
734
                       </div>
733
                       <div
735
                       <div
1748
                               font-weight: 520;
1750
                               font-weight: 520;
1749
                               font-size: 16px;
1751
                               font-size: 16px;
1750
                               padding: 6px 8px;
1752
                               padding: 6px 8px;
1751
-                              line-height: 30px;
1753
+                              line-height: 24px;
1752
                             "
1754
                             "
1753
                           >
1755
                           >
1754
                             医嘱内容
1756
                             医嘱内容
1785
                             </td>
1787
                             </td>
1786
 
1788
 
1787
                             <td
1789
                             <td
1788
-                              height="35px"
1790
+                              height="26px"
1789
                               colspan="2"
1791
                               colspan="2"
1790
                               class="advice-name"
1792
                               class="advice-name"
1791
                               style="padding-left: 7px"
1793
                               style="padding-left: 7px"
1809
                               >
1811
                               >
1810
                               <span v-if="advice[0].single_dose != 0">
1812
                               <span v-if="advice[0].single_dose != 0">
1811
 
1813
 
1812
-                                <span v-if="advice[0].advice_name!='血液透析滤过'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
1814
+                                <span v-if="advice[0].advice_name!='血液透析滤过'&& advice[0].advice_name!='血液透析' && advice[0].advice_name!='电脑血糖监测'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
1813
                                 </span
1815
                                 </span
1814
                               >
1816
                               >
1815
 
1817
 
3118
         "腹痛",
3120
         "腹痛",
3119
       ],
3121
       ],
3120
       org_id: "",
3122
       org_id: "",
3123
+      displaceLiquiPartOptions:[]
3121
     };
3124
     };
3122
   },
3125
   },
3123
   created() {
3126
   created() {
3127
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
3124
     var bloodAccessParOpera = getDataConfig(
3128
     var bloodAccessParOpera = getDataConfig(
3125
       "hemodialysis",
3129
       "hemodialysis",
3126
       "vascular_access_desc"
3130
       "vascular_access_desc"
3233
             }
3237
             }
3234
 
3238
 
3235
             var delghTwo = 0;
3239
             var delghTwo = 0;
3236
-            if (
3237
-              this.records[recordIndex].advices &&
3238
-              this.records[recordIndex].advices.length < 10
3239
-            ) {
3240
-              delghTwo = 10 - this.records[recordIndex].advices.length;
3240
+            if (this.records[recordIndex].advices &&this.records[recordIndex].advices.length < 18) {
3241
+              delghTwo =  this.records[recordIndex].advices.length;
3241
             } else {
3242
             } else {
3242
               delghTwo = 0;
3243
               delghTwo = 0;
3243
             }
3244
             }
3348
       });
3349
       });
3349
   },
3350
   },
3350
   methods: {
3351
   methods: {
3352
+    getDisplaceLiquiPart: function (val) {
3353
+      let displace_liqui_part_name = "/";
3354
+      const displace_liqui_part = this.displaceLiquiPartOptions;
3355
+      for (let i = 0; i < displace_liqui_part.length; i++) {
3356
+        if (displace_liqui_part[i].id == val) {
3357
+          displace_liqui_part_name = displace_liqui_part[i].name;
3358
+        }
3359
+      }
3360
+      return displace_liqui_part_name;
3361
+    },
3351
     getUnit: function (val) {
3362
     getUnit: function (val) {
3352
       if (val.assessment_after_dislysis == null) {
3363
       if (val.assessment_after_dislysis == null) {
3353
         return "";
3364
         return "";

+ 16 - 2
src/xt_pages/dialysis/details/index.vue View File

538
                 </div>
538
                 </div>
539
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
539
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
540
                   <div style="">透析时长:
540
                   <div style="">透析时长:
541
-                   <span>{{main_collection.prescription.dialysis_duration_hour }}小时 <span v-if="main_collection.prescription.dialysis_duration_minute>0">{{main_collection.prescription.dialysis_duration_minute }}分 </span></span>
541
+                   <span>{{main_collection.prescription.dialysis_duration_hour }}小时 <span v-if="main_collection.prescription.dialysis_duration_minute>0">{{main_collection.prescription.dialysis_duration_minute }}分 </span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
542
+                  </div>
543
+                  <div style="">置换方式:
544
+                    {{ getDisplaceLiquiPart(main_collection.prescription.displace_liqui_part) }}
542
                   </div>
545
                   </div>
543
                 </div>
546
                 </div>
544
               </div>
547
               </div>
1548
       // end_time2:'',
1551
       // end_time2:'',
1549
       first_monitor:{},
1552
       first_monitor:{},
1550
       last_monitor:{},
1553
       last_monitor:{},
1554
+      displaceLiquiPartOptions:[]
1551
     }
1555
     }
1552
   },
1556
   },
1553
   created() {
1557
   created() {
1554
-
1558
+   this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
1555
    this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1559
    this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1556
    this.org_id = this.$store.getters.xt_user.org.id,
1560
    this.org_id = this.$store.getters.xt_user.org.id,
1557
    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
1561
    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
1766
     this.websocketSend(unObj)
1770
     this.websocketSend(unObj)
1767
   },
1771
   },
1768
   methods: {
1772
   methods: {
1773
+    getDisplaceLiquiPart: function (val) {
1774
+      let displace_liqui_part_name = "/";
1775
+      const displace_liqui_part = this.displaceLiquiPartOptions;
1776
+      for (let i = 0; i < displace_liqui_part.length; i++) {
1777
+        if (displace_liqui_part[i].id == val) {
1778
+          displace_liqui_part_name = displace_liqui_part[i].name;
1779
+        }
1780
+      }
1781
+      return displace_liqui_part_name;
1782
+    },
1769
     getModeName(id){
1783
     getModeName(id){
1770
         var name = ""
1784
         var name = ""
1771
         if(id == 1){
1785
         if(id == 1){

+ 27 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

928
         >
928
         >
929
         </div>
929
         </div>
930
       </template>
930
       </template>
931
+      <template v-if="org_template_info.template_id == 75">
932
+        <div>
933
+          <el-button
934
+          :loading="loading"
935
+          size="small"
936
+          icon="el-icon-printer"
937
+          @click="printThisPage"
938
+          type="primary"
939
+          >打印</el-button
940
+        >
941
+        </div>
942
+      </template>
931
     </div>
943
     </div>
932
     <div class="app-container" style="min-height: 0">
944
     <div class="app-container" style="min-height: 0">
933
       <!--<div class="order-print-btn"-->
945
       <!--<div class="order-print-btn"-->
1429
             v-if="org_template_info.template_id == 74">
1441
             v-if="org_template_info.template_id == 74">
1430
 
1442
 
1431
           </DialysisPrintOrderSop>
1443
           </DialysisPrintOrderSop>
1444
+          <DialysisPrintOrderseventyfive v-bind:childResponse="childResponse"
1445
+            v-if="org_template_info.template_id == 75">
1446
+
1447
+          </DialysisPrintOrderseventyfive>
1432
         </div>
1448
         </div>
1433
       </el-container>
1449
       </el-container>
1434
     </div>
1450
     </div>
1521
 import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
1537
 import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
1522
 import DialysisPrintOrderSeventythree from './template/DialysisPrintOrderSeventythree'
1538
 import DialysisPrintOrderSeventythree from './template/DialysisPrintOrderSeventythree'
1523
 import DialysisPrintOrderSop from './template/DialysisPrintOrderSop'
1539
 import DialysisPrintOrderSop from './template/DialysisPrintOrderSop'
1540
+import DialysisPrintOrderseventyfive from './template/DialysisPrintOrderseventyfive'
1524
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1541
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1525
 export default {
1542
 export default {
1526
   name: "dialysisPrintOrder",
1543
   name: "dialysisPrintOrder",
1599
     DialysisPrintOrderSeventyTwo,
1616
     DialysisPrintOrderSeventyTwo,
1600
     DialysisPrintOrderSeventythree,
1617
     DialysisPrintOrderSeventythree,
1601
     DialysisPrintOrderSop,
1618
     DialysisPrintOrderSop,
1619
+    DialysisPrintOrderseventyfive,
1602
     DialysisPrintOrderZero,
1620
     DialysisPrintOrderZero,
1603
     LabelBox,
1621
     LabelBox,
1604
     BreadCrumb,
1622
     BreadCrumb,
1772
       // if(this.$store.getters.xt_user.org.id == 0){
1790
       // if(this.$store.getters.xt_user.org.id == 0){
1773
       //   this.org_template_info.template_id = 65
1791
       //   this.org_template_info.template_id = 65
1774
       // }
1792
       // }
1775
-
1793
+      console.log('0000000011111',this.org_template_info.template_id);
1776
       var ptime = Math.round(new Date().getTime() / 1000);
1794
       var ptime = Math.round(new Date().getTime() / 1000);
1777
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1795
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1778
 
1796
 
2274
           style: style4,
2292
           style: style4,
2275
           scanStyles: false,
2293
           scanStyles: false,
2276
         });
2294
         });
2295
+      }else if (this.org_template_info.template_id == 75) {
2296
+        printJS({
2297
+          printable: "dialysis-print-box-1",
2298
+          type: "html",
2299
+          style: style2,
2300
+          scanStyles: false,
2301
+        });
2277
       }
2302
       }
2278
        else if (this.org_template_info.template_id == 199 ) {
2303
        else if (this.org_template_info.template_id == 199 ) {
2279
         printJS({
2304
         printJS({
2915
     changePatient(schedual) {
2940
     changePatient(schedual) {
2916
       console.log('schedual',schedual);
2941
       console.log('schedual',schedual);
2917
       var xtdate = parseTime(schedual.schedule_date, "{y}-{m}-{d}");
2942
       var xtdate = parseTime(schedual.schedule_date, "{y}-{m}-{d}");
2918
-      console.log('fffff',this.org_template_info.template_id);
2943
+      console.log('fffff打印单单号',this.org_template_info.template_id);
2919
       this.x_tdate=xtdate
2944
       this.x_tdate=xtdate
2920
 
2945
 
2921
       // this.queryParams.xtdate = xtdate;
2946
       // this.queryParams.xtdate = xtdate;

+ 8 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

1713
                         <td width="60" v-if="org_id == 9836">体温(°C)</td>
1713
                         <td width="60" v-if="org_id == 9836">体温(°C)</td>
1714
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1714
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1715
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1715
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1716
-                        <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1717
-                        <td width="50" v-if="org_id != 10121 &&  org_id!=10600">
1716
+                        <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671 && org_id!=10644">透析液温度(°C)</td>
1717
+                        <td width="50" v-if="org_id != 10121 &&  org_id!=10600 && org_id!=10644">
1718
                           <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
1718
                           <span v-if="org_id != 0 && org_id !=10469 && org_id!=10490 "> 电导度<br />(ms/cm)</span>
1719
                           <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
1719
                           <span v-if="org_id ==10469"> 钠浓度<br />(mmol/L)</span>
1720
                           <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span>
1720
                           <span v-if="org_id == 0 || org_id == 10490"> 置换液的速度<br />(ml/h)</span>
1729
                           <span v-if="org_id!=10598">(ml)</span>
1729
                           <span v-if="org_id!=10598">(ml)</span>
1730
                           <span v-if="org_id==10598">(L)</span>
1730
                           <span v-if="org_id==10598">(L)</span>
1731
                         </td>
1731
                         </td>
1732
-                        <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1733
-                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510">KT/V</td>
1732
+                        <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1733
+                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id == 10580 || org_id == 0 || org_id == 10598">KT/V</td>
1734
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1734
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1735
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1735
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1736
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1736
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1812
                           {{ monitor.temperature ? monitor.temperature : "" }}
1812
                           {{ monitor.temperature ? monitor.temperature : "" }}
1813
                         </td>
1813
                         </td>
1814
 
1814
 
1815
-                         <td v-if="org_id!=9919 && org_id!=9671 && org_id!=9836">
1815
+                         <td v-if="org_id!=9919 && org_id!=9671 && org_id!=9836 && org_id!=10644">
1816
                           {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1816
                           {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1817
                         </td>
1817
                         </td>
1818
 
1818
 
1826
                         </td>
1826
                         </td>
1827
 
1827
 
1828
 
1828
 
1829
-                        <td v-if="org_id != 9538 &&org_id != 10121 &&org_id!=10600">
1829
+                        <td v-if="org_id != 9538 &&org_id != 10121 &&org_id!=10600 && org_id!=10644">
1830
                           <span v-if="org_id!=0&&org_id!=10469 && org_id!=10490"> {{ monitor.conductivity ? monitor.conductivity : "" }}</span>
1830
                           <span v-if="org_id!=0&&org_id!=10469 && org_id!=10490"> {{ monitor.conductivity ? monitor.conductivity : "" }}</span>
1831
                           <span v-if="org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</span>
1831
                           <span v-if="org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</span>
1832
                           <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
1832
                           <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
1867
                           </span>
1867
                           </span>
1868
                         </td>
1868
                         </td>
1869
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1869
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1870
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10629 || org_id ==10510">
1870
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10629 || org_id ==10510 || org_id ==10580 || org_id == 0 || org_id ==10598">
1871
                           {{ monitor.ktv?monitor.ktv:"" }}
1871
                           {{ monitor.ktv?monitor.ktv:"" }}
1872
                         </td>
1872
                         </td>
1873
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1873
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1967
                           "
1967
                           "
1968
                           width="50"
1968
                           width="50"
1969
                         ></td>
1969
                         ></td>
1970
-                        <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671"></td>
1970
+                        <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671 || org_id == 0"></td>
1971
                         <td v-if="org_id == 9538"></td>
1971
                         <td v-if="org_id == 9538"></td>
1972
                         <td v-if="org_id == 10598 || org_id == 0"></td>
1972
                         <td v-if="org_id == 10598 || org_id == 0"></td>
1973
                         <td v-if="org_id == 10490 || org_id == 0"></td>
1973
                         <td v-if="org_id == 10490 || org_id == 0"></td>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

1579
                             }}{{ advice.prescribing_number_unit }}</span
1579
                             }}{{ advice.prescribing_number_unit }}</span
1580
                           >
1580
                           >
1581
                           <span v-if="advice.single_dose != 0">
1581
                           <span v-if="advice.single_dose != 0">
1582
-                            <span v-if="advice.advice_name!='血液透析滤过'">
1582
+                            <span v-if="advice.advice_name!='血液透析滤过'&&advice.advice_name!='血液透析'&&advice.advice_name!='电脑血糖监测'">
1583
                               {{ advice.single_dose}}{{ advice.single_dose_unit }}
1583
                               {{ advice.single_dose}}{{ advice.single_dose_unit }}
1584
                             </span>
1584
                             </span>
1585
                             </span>
1585
                             </span>

File diff suppressed because it is too large
+ 2485 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderseventyfive.vue


+ 1 - 1
src/xt_pages/outpatientCharges/allListTemplate/printFour.vue View File

1
 <template>
1
 <template>
2
   <div id="allList-print" class="allList-print">
2
   <div id="allList-print" class="allList-print">
3
-    <div v-for='(i,index) in pageArr.length' :key="index">
3
+    <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
4
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
4
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
5
       <div class="allListInfo">
5
       <div class="allListInfo">
6
         <div>患者姓名:{{ patient.name }}</div>
6
         <div>患者姓名:{{ patient.name }}</div>

+ 19 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

646
                 </div>
646
                 </div>
647
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
647
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
648
                   <div style="">透析时长:
648
                   <div style="">透析时长:
649
-                   <span>{{main_collection.prescription.dialysis_duration_hour }}小时 <span v-if="main_collection.prescription.dialysis_duration_minute>0">{{main_collection.prescription.dialysis_duration_minute }}分</span></span>
649
+                   <span>{{main_collection.prescription.dialysis_duration_hour }}小时 <span v-if="main_collection.prescription.dialysis_duration_minute>0">{{main_collection.prescription.dialysis_duration_minute }}分</span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
650
+                  </div>
651
+                  <div style="">置换方式:
652
+                    {{ getDisplaceLiquiPart(main_collection.prescription.displace_liqui_part) }}
650
                   </div>
653
                   </div>
651
                 </div>
654
                 </div>
655
+
656
+               
652
               </div>
657
               </div>
653
             </div>
658
             </div>
654
           </div>
659
           </div>
786
       patient_diagnoses: [],
791
       patient_diagnoses: [],
787
       // zuobiao_project:[],
792
       // zuobiao_project:[],
788
       befor:{},
793
       befor:{},
789
-      LastCaseHistory:{}
794
+      LastCaseHistory:{},
795
+      displaceLiquiPartOptions:[],
790
     }
796
     }
791
   },
797
   },
792
 
798
 
793
   methods: {
799
   methods: {
800
+    getDisplaceLiquiPart: function (val) {
801
+      let displace_liqui_part_name = "/";
802
+      const displace_liqui_part = this.displaceLiquiPartOptions;
803
+      for (let i = 0; i < displace_liqui_part.length; i++) {
804
+        if (displace_liqui_part[i].id == val) {
805
+          displace_liqui_part_name = displace_liqui_part[i].name;
806
+        }
807
+      }
808
+      return displace_liqui_part_name;
809
+    },
794
     open_four(){
810
     open_four(){
795
       this.$refs.prescriptions.getZuobiaoGoodStock()
811
       this.$refs.prescriptions.getZuobiaoGoodStock()
796
       this.$refs.prescriptions.getZuobiaoDrugStock()
812
       this.$refs.prescriptions.getZuobiaoDrugStock()
6072
 
6088
 
6073
   },
6089
   },
6074
   created() {
6090
   created() {
6091
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
6075
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
6092
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
6076
     this.printDate = moment().format('YYYY-MM-DD HH:mm:ss')
6093
     this.printDate = moment().format('YYYY-MM-DD HH:mm:ss')
6077
     this.$nextTick(() => {
6094
     this.$nextTick(() => {

+ 15 - 12
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

744
       },
744
       },
745
 
745
 
746
       searchProjectAction() {
746
       searchProjectAction() {
747
-
747
+        const tabProject1 = this.allProject
748
         if (this.search_project_keyword.length == 0) {
748
         if (this.search_project_keyword.length == 0) {
749
           this.tabProject = this.allProject
749
           this.tabProject = this.allProject
750
 
750
 
751
         } else {
751
         } else {
752
           let arr = []
752
           let arr = []
753
-          for (let i = 0; i < this.tabProject.length; i++) {
754
-            if (this.tabProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
755
-            this.tabProject[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
756
-              arr = arr.concat(this.tabProject[i])
753
+          for (let i = 0; i < tabProject1.length; i++) {
754
+            if (tabProject1[i].project_name.indexOf(this.search_project_keyword) != -1 ||
755
+            tabProject1[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
756
+              arr = arr.concat(tabProject1[i])
757
             }
757
             }
758
           }
758
           }
759
           this.tabProject = arr
759
           this.tabProject = arr
761
         }
761
         }
762
       },
762
       },
763
       searchAction() {
763
       searchAction() {
764
+        const drugs1 = this.allDrugs
764
         if (this.search_keyword.length == 0) {
765
         if (this.search_keyword.length == 0) {
765
           this.drugs = this.allDrugs
766
           this.drugs = this.allDrugs
766
         } else {
767
         } else {
767
           let arr = []
768
           let arr = []
768
-          for (let i = 0; i < this.drugs.length; i++) {
769
-            if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
770
-            this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
771
-            this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
772
-            this.drugs[i].first_letter.indexOf(this.search_keyword) != -1) {
773
-              arr = arr.concat(this.drugs[i])
769
+          for (let i = 0; i < drugs1.length; i++) {
770
+            if (drugs1[i].drug_name.indexOf(this.search_keyword) != -1 ||
771
+            drugs1[i].wubi.indexOf(this.search_keyword) != -1 ||
772
+            drugs1[i].pinyin.indexOf(this.search_keyword) != -1 ||
773
+            drugs1[i].first_letter.indexOf(this.search_keyword) != -1) {
774
+              arr = arr.concat(drugs1[i])
774
             }
775
             }
775
           }
776
           }
776
           this.drugs = arr
777
           this.drugs = arr
777
-
778
         }
778
         }
779
 
779
 
780
       },
780
       },
810
         return getDictionaryDataConfig(module, filed_name)
810
         return getDictionaryDataConfig(module, filed_name)
811
 
811
 
812
       },
812
       },
813
+      // 药品数据源
813
       getInitData() {
814
       getInitData() {
814
         getInitData().then(response => {
815
         getInitData().then(response => {
815
           if (response.data.state == 0) {
816
           if (response.data.state == 0) {
829
             }
830
             }
830
 
831
 
831
             this.allDrugs = response.data.data.drugs
832
             this.allDrugs = response.data.data.drugs
833
+            console.log('111111',response.data.data.drugs);
832
             this.advices_template = response.data.data.advices_template
834
             this.advices_template = response.data.data.advices_template
833
             this.doctors = response.data.data.doctors
835
             this.doctors = response.data.data.doctors
834
             for (let i = 0; i < this.doctors.length; i++) {
836
             for (let i = 0; i < this.doctors.length; i++) {
2463
       this.getZuobiaoDrugStock()
2465
       this.getZuobiaoDrugStock()
2464
       this.getZuobiaoGoodStock()
2466
       this.getZuobiaoGoodStock()
2465
       this.getPrescriptionTemplateInfo()
2467
       this.getPrescriptionTemplateInfo()
2468
+      // 获取所有药品
2466
       this.getInitData()
2469
       this.getInitData()
2467
       //获取所有项目
2470
       //获取所有项目
2468
       this.getlist()
2471
       this.getlist()

+ 7 - 4
src/xt_pages/outpatientDoctorStation/template/prineight.vue View File

70
           <!-- 精二 -->
70
           <!-- 精二 -->
71
           <div style="border-bottom: 1px solid black;border-top: 1px solid black;width: 100%;"
71
           <div style="border-bottom: 1px solid black;border-top: 1px solid black;width: 100%;"
72
             v-if="prescriptions[index].med_type == '1112'">
72
             v-if="prescriptions[index].med_type == '1112'">
73
-            <div style="display: flex;">
74
-              <div style="flex: 1;">处方编号:</div>
73
+            <div style="display: flex;margin: 10px 0;">
74
+              <div style="flex: 1;">处方编号:
75
+                {{ item.prescription_number.substring(
76
+                  item.prescription_number.length - 6
77
+                ) }}</div>
75
               <div style="flex: 1;">日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</div>
78
               <div style="flex: 1;">日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</div>
76
             </div>
79
             </div>
77
             
80
             
78
-            <div  style="display: flex;margin: 10px 0;line-height: 24px;padding: 0 10px;">
81
+            <div  style="display: flex;padding: 0 10px;">
79
               <p style="width: 200px;">姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
82
               <p style="width: 200px;">姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
80
               <p style="width: 200px;">
83
               <p style="width: 200px;">
81
                 性别:
84
                 性别:
98
             </div>
101
             </div>
99
             <div style="display: flex;">
102
             <div style="display: flex;">
100
               <div style="flex: 1;">临床诊断:{{ getDiagnosis(item.info.diagnosis) }}</div>
103
               <div style="flex: 1;">临床诊断:{{ getDiagnosis(item.info.diagnosis) }}</div>
101
-              <div style="flex: 1;">身份证号:</div>
104
+              <div style="flex: 1;">身份证号:{{item.patient.id_card_no}}</div>
102
             </div>
105
             </div>
103
             <div style="flex: 2;margin: 10px 0;">住址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
106
             <div style="flex: 2;margin: 10px 0;">住址/电话:{{ item.patient.home_address }}&nbsp;<span>{{ item.patient.phone }}</span></div>
104
             <div style="display: flex;">
107
             <div style="display: flex;">

+ 14 - 1
src/xt_pages/user/dialysisRecord.vue View File

528
 import { parseTime } from '@/utils'
528
 import { parseTime } from '@/utils'
529
 import { fetchAllDoctorAndNurse } from "@/api/doctor";
529
 import { fetchAllDoctorAndNurse } from "@/api/doctor";
530
 import print from "print-js";
530
 import print from "print-js";
531
-
531
+const moment = require('moment')
532
 export default {
532
 export default {
533
   name: "dialysisRecord",
533
   name: "dialysisRecord",
534
   data() {
534
   data() {
567
       dialysisShow:false,
567
       dialysisShow:false,
568
 
568
 
569
       newTime:'',
569
       newTime:'',
570
+      org_id:0
570
 
571
 
571
     };
572
     };
572
   },
573
   },
607
     },
608
     },
608
     getPatientDialysisRecords() {
609
     getPatientDialysisRecords() {
609
       console.log("prams",this.queryParams)
610
       console.log("prams",this.queryParams)
611
+        if(this.org_id ==10679 || this.org_id == ""){
612
+          if( this.queryParams.start_time == ""){
613
+            this.queryParams.start_time = moment().month(moment().month() - 1).startOf('month').format('YYYY-MM-DD')
614
+          }
615
+          if(this.queryParams.end_time == ""){
616
+            this.queryParams.end_time =  moment().month(moment().month() - 1).endOf('month').format('YYYY-MM-DD') 
617
+          }
618
+               
619
+        }
620
+        console.log("hahahhaha",this.queryParams)
610
       getPatientDialysisRecords(this.queryParams).then(response => {
621
       getPatientDialysisRecords(this.queryParams).then(response => {
611
         if (response.data.state == 1) {
622
         if (response.data.state == 1) {
612
           this.total = response.data.data.total;
623
           this.total = response.data.data.total;
613
           this.recordData = response.data.data.records;
624
           this.recordData = response.data.data.records;
614
           console.log("郭23232323232232323",this.recordData)
625
           console.log("郭23232323232232323",this.recordData)
626
+        
615
         }
627
         }
616
       });
628
       });
617
     },
629
     },
895
 
907
 
896
     var xtuser = this.$store.getters.xt_user;
908
     var xtuser = this.$store.getters.xt_user;
897
     this.orgname = xtuser.org.org_name;
909
     this.orgname = xtuser.org.org_name;
910
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
898
 
911
 
899
   },mounted(){
912
   },mounted(){
900
 
913
 

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))