Browse Source

新分支

28169 1 year ago
parent
commit
8018258324

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

506
       hidden: true,
506
       hidden: true,
507
       is_menu: false,
507
       is_menu: false,
508
       meta: { title: 'drugQueryPrint', noCache: true }
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
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
58
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
59
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id !=45">
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
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
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
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >
63
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >
64
             
64
             
65
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675">
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
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
192
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
193
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
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
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
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
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
197
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
198
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
198
               <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
199
                  {{ anticoagulant_shouji != "0" ? "mg" : "" }}
199
                  {{ anticoagulant_shouji != "0" ? "mg" : "" }}
303
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
303
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
304
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
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
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
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
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
308
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
309
               <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
309
               <span v-if="this.$store.getters.xt_user.template_info.org_id ==9671">
310
               {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
310
               {{ anticoagulant_weichi != "0" ? "mg/h" : "" }}
945
   
945
   
946
   },
946
   },
947
   created() {
947
   created() {
948
-   
948
+    console.log("template_id", this.$store.getters.xt_user.template_info.template_id)
949
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
949
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
950
     var map = {}
950
     var map = {}
951
     for (let index = 0; index < perfusion_apparatus.length; index++) {
951
     for (let index = 0; index < perfusion_apparatus.length; index++) {

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

1092
                         }}
1092
                         }}
1093
                       </div>
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
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1096
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1097
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1097
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1098
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1098
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1099
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1099
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1100
                     </span>
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
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1103
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1104
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1104
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1105
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1105
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1138
                             : "0"
1138
                             : "0"
1139
                         }}
1139
                         }}
1140
                       </div>
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
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1143
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1144
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
1144
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
1146
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1146
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1147
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1147
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1148
                       </span>
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
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1150
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1151
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1151
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1152
                           <span v-if="prescription.anticoagulant == 4">ml</span>
1152
                           <span v-if="prescription.anticoagulant == 4">ml</span>
1211
                             : "/"
1211
                             : "/"
1212
                         }}
1212
                         }}
1213
                       </div>
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
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1215
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1216
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1216
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1217
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1217
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1218
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1218
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1219
                      </span>
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
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1221
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1222
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1222
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1223
                        <span v-if="prescription.anticoagulant == 4">ml</span>
1223
                        <span v-if="prescription.anticoagulant == 4">ml</span>

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

24
       @click="search"
24
       @click="search"
25
       >搜索</el-button
25
       >搜索</el-button
26
       >
26
       >
27
+     
27
       <el-date-picker
28
       <el-date-picker
28
       size="small"
29
       size="small"
29
       v-model="start_time"
30
       v-model="start_time"
40
       placeholder="选择日期"
41
       placeholder="选择日期"
41
       @change="changeEndTime">
42
       @change="changeEndTime">
42
       </el-date-picker>
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
     </div>
53
     </div>
44
     <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" >
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
         <el-table-column  prop="date" label="报损日期" align="center">
56
         <el-table-column  prop="date" label="报损日期" align="center">
47
             <template slot-scope="scope">
57
             <template slot-scope="scope">
48
               {{getTime(scope.row.start_time)}}
58
               {{getTime(scope.row.start_time)}}
474
       }else{
484
       }else{
475
         return storehouse_name
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
     created(){
492
     created(){

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

40
           placeholder="选择日期"
40
           placeholder="选择日期"
41
           @change="changeEndTime">
41
           @change="changeEndTime">
42
       </el-date-picker>
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
     </div>
50
     </div>
44
   
51
   
45
     <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
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
         <el-table-column  prop="date" label="报损日期" align="center">
54
         <el-table-column  prop="date" label="报损日期" align="center">
48
             <template slot-scope="scope">
55
             <template slot-scope="scope">
49
               {{getTime(scope.row.ctime)}}
56
               {{getTime(scope.row.ctime)}}
833
       changeHouseList(){
840
       changeHouseList(){
834
         this.houseList = []
841
         this.houseList = []
835
         this.getlist()
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
     created(){
851
     created(){