Browse Source

新分支

28169 1 year ago
parent
commit
8018258324

+ 19 - 1
src/router/modules/stock.js View File

@@ -506,7 +506,25 @@ export default {
506 506
       hidden: true,
507 507
       is_menu: false,
508 508
       meta: { title: 'drugQueryPrint', noCache: true }
509
-    }
509
+    },
510
+
511
+    {
512
+      path: '/stock/print_damage',
513
+      component: () => import('@/xt_pages/stock/print_damage'),
514
+      name: 'print_damage',
515
+      hidden: true,
516
+      is_menu: false,
517
+      meta: { title: 'print_damage', noCache: true }
518
+    },
519
+
520
+    {
521
+      path: '/stock/drug_damage/print',
522
+      component: () => import('@/xt_pages/stock/drug_damage_print'),
523
+      name: 'drug_damage_print',
524
+      hidden: true,
525
+      is_menu: false,
526
+      meta: { title: 'drug_damage_print', noCache: true }
527
+    },
510 528
 
511 529
   ]
512 530
 }

+ 7 - 7
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -58,8 +58,8 @@
58 58
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
59 59
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id !=45">
60 60
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
61
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 10234">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 10234 )">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
61
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 10234 && this.$store.getters.xt_user.template_info.template_id != 65">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 10234 ||  this.$store.getters.xt_user.template_info.template_id== 65)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
63 63
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >
64 64
             
65 65
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
@@ -192,8 +192,8 @@
192 192
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
193 193
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
194 194
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
195
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
196
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
195
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 65 && this.$store.getters.xt_user.template_info.template_id!=0">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
196
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38  || this.$store.getters.xt_user.template_info.template_id == 65 ||  this.$store.getters.xt_user.template_info.template_id == 0)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
197 197
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
198 198
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
199 199
                  {{ anticoagulant_shouji != "0" ? "mg" : "" }}
@@ -303,8 +303,8 @@
303 303
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
304 304
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
305 305
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
306
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
307
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
306
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 65 ">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
307
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 65)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
308 308
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
309 309
               <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
310 310
               {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
@@ -945,7 +945,7 @@ export default {
945 945
   
946 946
   },
947 947
   created() {
948
-   
948
+    console.log("template_id", this.$store.getters.xt_user.template_info.template_id)
949 949
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
950 950
     var map = {}
951 951
     for (let index = 0; index < perfusion_apparatus.length; index++) {

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue View File

@@ -1092,14 +1092,14 @@
1092 1092
                         }}
1093 1093
                       </div>
1094 1094
                      
1095
-                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1095
+                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10475">
1096 1096
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1097 1097
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1098 1098
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1099 1099
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1100 1100
                     </span>
1101 1101
 
1102
-                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469 || org_id == 10471">
1102
+                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469 || org_id == 10471 || org_id == 10495">
1103 1103
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1104 1104
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1105 1105
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1138,7 +1138,7 @@
1138 1138
                             : "0"
1139 1139
                         }}
1140 1140
                       </div>
1141
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1141
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10495">
1142 1142
 
1143 1143
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1144 1144
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -1146,7 +1146,7 @@
1146 1146
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1147 1147
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1148 1148
                       </span>
1149
-                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
1149
+                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10495">
1150 1150
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1151 1151
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1152 1152
                           <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1211,13 +1211,13 @@
1211 1211
                             : "/"
1212 1212
                         }}
1213 1213
                       </div>
1214
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1214
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10495">
1215 1215
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1216 1216
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1217 1217
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1218 1218
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1219 1219
                      </span>
1220
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
1220
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10495">
1221 1221
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1222 1222
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1223 1223
                        <span v-if="prescription.anticoagulant == 4">ml</span>

+ 14 - 1
src/xt_pages/stock/drugs/drugDamaged.vue View File

@@ -24,6 +24,7 @@
24 24
       @click="search"
25 25
       >搜索</el-button
26 26
       >
27
+     
27 28
       <el-date-picker
28 29
       size="small"
29 30
       v-model="start_time"
@@ -40,9 +41,18 @@
40 41
       placeholder="选择日期"
41 42
       @change="changeEndTime">
42 43
       </el-date-picker>
44
+
45
+      <el-button
46
+      size="small"
47
+      class="filter-item"
48
+      type="primary"
49
+      icon="el-icon-search"
50
+      @click="toPrint"
51
+      >打印</el-button
52
+      >
43 53
     </div>
44 54
     <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" >
45
-        <el-table-column type="selection" width="55" align="center"> </el-table-column>
55
+        <!-- <el-table-column type="selection" width="55" align="center"> </el-table-column> -->
46 56
         <el-table-column  prop="date" label="报损日期" align="center">
47 57
             <template slot-scope="scope">
48 58
               {{getTime(scope.row.start_time)}}
@@ -474,6 +484,9 @@ export default {
474 484
       }else{
475 485
         return storehouse_name
476 486
       }
487
+     },
488
+     toPrint(){
489
+      this.$router.push({path:'/stock/drug_damage/print?storehouse_id='+this.storehouse_id+"&limit="+this.limit+"&page="+this.page+"&start_time"+this.start_time+"&end_time="+this.end_time+"&keyword"+this.searchKey}) 
477 490
      }
478 491
     },
479 492
     created(){

+ 14 - 1
src/xt_pages/stock/stockDamaged.vue View File

@@ -40,10 +40,17 @@
40 40
           placeholder="选择日期"
41 41
           @change="changeEndTime">
42 42
       </el-date-picker>
43
+
44
+      <el-button
45
+        size="small"
46
+        class="filter-item"
47
+        type="primary"
48
+        icon="el-icon-printer"
49
+        @click="toPrint">打印</el-button>
43 50
     </div>
44 51
   
45 52
     <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
46
-        <el-table-column type="selection" width="55" align="center"> </el-table-column>
53
+        <!-- <el-table-column type="selection" width="55" align="center"> </el-table-column> -->
47 54
         <el-table-column  prop="date" label="报损日期" align="center">
48 55
             <template slot-scope="scope">
49 56
               {{getTime(scope.row.ctime)}}
@@ -833,6 +840,12 @@ export default {
833 840
       changeHouseList(){
834 841
         this.houseList = []
835 842
         this.getlist()
843
+      },
844
+      toPrint(){
845
+        this.$router.push({path:'/stock/print_damage?storehouse_id='+this.storehouse_id+"&start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.searchKey+"&limit="+this.limit+"&page="+this.page})
846
+      },
847
+      SaveCheckedDamage(){
848
+
836 849
       }
837 850
     },
838 851
     created(){