Browse Source

库存显示展示

XMLWAN 2 years ago
parent
commit
e688684940

+ 1 - 1
src/xt_pages/Pharmacy/DrugDispensing.vue View File

484
       isVisibility: "",
484
       isVisibility: "",
485
       propsTable: "",
485
       propsTable: "",
486
       doctorList: [],
486
       doctorList: [],
487
-      admin_user_id: 0,
487
+      admin_user_id:this.store.getters.xt_user.user.id,
488
       waiting_drug: [], //待发药列表
488
       waiting_drug: [], //待发药列表
489
       issued_drug: [], //已发药列表
489
       issued_drug: [], //已发药列表
490
       currentRow: null,
490
       currentRow: null,

+ 7 - 2
src/xt_pages/dialysis/PatientBox.vue View File

158
         </p>
158
         </p>
159
 
159
 
160
 
160
 
161
-        <p v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
161
+        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
162
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
162
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
163
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
163
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
164
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
164
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
165
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
165
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
166
         </p>
166
         </p>
167
-        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
167
+        <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
168
              透析器/灌流器:
168
              透析器/灌流器:
169
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
169
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
170
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
170
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
171
+             
172
+        </p>
173
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
174
+           滤过器:
175
+           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
171
         </p>
176
         </p>
172
       
177
       
173
         <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
178
         <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">

+ 5 - 3
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue View File

258
             return v.getTime() < new Date().getTime() - 86400000;
258
             return v.getTime() < new Date().getTime() - 86400000;
259
           },
259
           },
260
         },
260
         },
261
-        zoneIdList:[]
261
+        zoneIdList:[],
262
+        partion_str:"",
262
       }
263
       }
263
     },
264
     },
264
     created() {
265
     created() {
416
          if(this.partion_type!=0){
417
          if(this.partion_type!=0){
417
             str = this.partion_type.join(",")
418
             str = this.partion_type.join(",")
418
          }
419
          }
419
-          
420
+         this.partion_str = ""
421
+         this.partion_str = str  
420
           var params = {
422
           var params = {
421
             schedule_type:this.schedule_type,
423
             schedule_type:this.schedule_type,
422
             partion_type:str,
424
             partion_type:str,
739
        this.$router.push({path:'/dialysis/consumable/dialysisdrugprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
741
        this.$router.push({path:'/dialysis/consumable/dialysisdrugprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
740
       },
742
       },
741
       toPrintOne(){
743
       toPrintOne(){
742
-        this.$router.push({path:'/dialysis/consumable/dialysisdrugcountprint?schedule_type='+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.config.is_open})
744
+        this.$router.push({path:'/dialysis/consumable/dialysisdrugcountprint?schedule_type='+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.config.is_open})
743
       },
745
       },
744
      changeScheduleType(){
746
      changeScheduleType(){
745
       this.tableList = []
747
       this.tableList = []

+ 7 - 4
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

476
         ids:"",
476
         ids:"",
477
         org_id:0,
477
         org_id:0,
478
         zoneIdList:[],
478
         zoneIdList:[],
479
+        pationType_str:"",
479
       }
480
       }
480
     },
481
     },
481
     created() {
482
     created() {
773
          if(this.partion_type != 0){
774
          if(this.partion_type != 0){
774
             str = this.partion_type.join(',')
775
             str = this.partion_type.join(',')
775
          }
776
          }
776
-        
777
+         this.pationType_str = ""
778
+         this.pationType_str = str
777
         console.log("str-==-------",str)
779
         console.log("str-==-------",str)
778
         var params = {
780
         var params = {
779
           schedule_type:this.schedule_type,
781
           schedule_type:this.schedule_type,
1126
          if(this.partion_type != 0){
1128
          if(this.partion_type != 0){
1127
             str = this.partion_type.join(',')
1129
             str = this.partion_type.join(',')
1128
          }
1130
          }
1129
-        
1131
+         this.pationType_str=""
1132
+         this.pationType_str = str
1130
          var params = {
1133
          var params = {
1131
           schedule_type:this.schedule_type,
1134
           schedule_type:this.schedule_type,
1132
           partion_type:str,
1135
           partion_type:str,
1999
      this.$router.push({path:'/dialysis/consumable/dialysisgoodprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
2002
      this.$router.push({path:'/dialysis/consumable/dialysisgoodprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
2000
     },
2003
     },
2001
     toPrintOne(){
2004
     toPrintOne(){
2002
-      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2005
+      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.pationType_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2003
     },
2006
     },
2004
     toHisPrint(){
2007
     toHisPrint(){
2005
-      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2008
+      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.pationType_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2006
     },
2009
     },
2007
     toExportListOne(){
2010
     toExportListOne(){
2008
       import('@/vendor/Export2Excel').then(excel => {
2011
       import('@/vendor/Export2Excel').then(excel => {

File diff suppressed because it is too large
+ 1048 - 1040
src/xt_pages/outpatientCharges/statementPrint.vue


+ 1 - 0
src/xt_pages/stock/drugs/components/drugQuery.vue View File

356
      goodList:[
356
      goodList:[
357
       {id:1,name:"全部药品"},
357
       {id:1,name:"全部药品"},
358
       {id:2,name:"库存预警"},
358
       {id:2,name:"库存预警"},
359
+      {id:3,name:"库存为零"},
359
      ],
360
      ],
360
      houseList:[],
361
      houseList:[],
361
      storehouse_id:0,
362
      storehouse_id:0,

+ 1 - 0
src/xt_pages/stock/query/goodNewQuery.vue View File

320
      goodList:[
320
      goodList:[
321
       {id:1,name:"全部耗材"},
321
       {id:1,name:"全部耗材"},
322
       {id:2,name:"库存预警"},
322
       {id:2,name:"库存预警"},
323
+      {id:3,name:"库存为零"},
323
      ],
324
      ],
324
      houseList:[],
325
      houseList:[],
325
      storehouse_id:0,
326
      storehouse_id:0,

+ 49 - 6
src/xt_pages/user/dialysisSolution.vue View File

226
         <el-row :gutter="20">
226
         <el-row :gutter="20">
227
           <el-col :span="6"  v-if="isShows('置换液') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液:{{getDisplaceLiqui(current_solution.displace_liqui_part)}}</div></el-col>
227
           <el-col :span="6"  v-if="isShows('置换液') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液:{{getDisplaceLiqui(current_solution.displace_liqui_part)}}</div></el-col>
228
           <el-col :span="6"  v-if="isShows('置换液总量') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液总量:{{current_solution.displace_liqui_value}}</div></el-col>
228
           <el-col :span="6"  v-if="isShows('置换液总量') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液总量:{{current_solution.displace_liqui_value}}</div></el-col>
229
+           <el-col :span="6"  v-if="isShows('滤过器')"><div class="grid-content bg-purple">滤过器:{{current_solution.dialysis_strainer}}</div></el-col>
229
         </el-row>
230
         </el-row>
230
         <el-row :gutter="20">
231
         <el-row :gutter="20">
231
           <el-col :span="6"  v-if="isShows('吸氧')"><div class="grid-content bg-purple">吸氧:
232
           <el-col :span="6"  v-if="isShows('吸氧')"><div class="grid-content bg-purple">吸氧:
512
             </el-form-item>
513
             </el-form-item>
513
           </el-col>
514
           </el-col>
514
 
515
 
515
-          <el-col :span="8" v-if="isShows('灌流器') && (addPlan.mode == 2 || addPlan.mode == 3 || addPlan.mode == 12 || addPlan.mode == 5)">
516
-            <el-form-item label="灌流器:">
517
-              <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
516
+          <el-col :span="8" v-if="isShows('透析器')">
517
+            <el-form-item label="透析器:">
518
+              <el-input v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
519
+            </el-form-item>
520
+          </el-col>
521
+
522
+
523
+
524
+          <el-col :span="8" v-if="isShows('滤过器')">
525
+            <el-form-item label="滤过器:">
526
+              <el-input v-model="dialysis_strainer" @focus="showInnerDialog('11')"></el-input>
518
             </el-form-item>
527
             </el-form-item>
519
           </el-col>
528
           </el-col>
520
 
529
 
1074
           epo_count:"",
1083
           epo_count:"",
1075
           max_ultrafiltration_rate:"",
1084
           max_ultrafiltration_rate:"",
1076
           amylaceum:"",
1085
           amylaceum:"",
1086
+          dialysis_strainer:"",
1077
         },
1087
         },
1078
         childPlan: {
1088
         childPlan: {
1079
           mode: '',
1089
           mode: '',
1190
           anticoagulant_weichi: '',
1200
           anticoagulant_weichi: '',
1191
           anticoagulant_zongliang: '',
1201
           anticoagulant_zongliang: '',
1192
           anticoagulant_gaimingcheng: '',
1202
           anticoagulant_gaimingcheng: '',
1193
-          anticoagulant_gaijiliang: ''
1203
+          anticoagulant_gaijiliang: '',
1204
+          dialysis_strainer:"",
1194
         },
1205
         },
1195
         queryParams: {
1206
         queryParams: {
1196
           page: 1,
1207
           page: 1,
1202
         dialyzers:[],
1213
         dialyzers:[],
1203
         dialysis_dialyszers:'',
1214
         dialysis_dialyszers:'',
1204
         dialysis_irrigation:"",
1215
         dialysis_irrigation:"",
1216
+        dialysis_strainer:"",
1217
+        dialysisStrainerList:[],
1205
         plasmaSeparatorList:[],
1218
         plasmaSeparatorList:[],
1206
         bilirubinAdsorptionColumn:[],
1219
         bilirubinAdsorptionColumn:[],
1207
         oxygenList:[
1220
         oxygenList:[
1333
             this.InnerDialogProps.selected = this.addPlan.puncture_needle
1346
             this.InnerDialogProps.selected = this.addPlan.puncture_needle
1334
             this.InnerDialogProps.isShowTextArea = false
1347
             this.InnerDialogProps.isShowTextArea = false
1335
 
1348
 
1349
+            break
1350
+           case '11':
1351
+            for(let i=0;i<this.dialysisStrainerList.length;i++){
1352
+              this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
1353
+            }
1354
+            this.InnerDialogProps.values = this.dialysisStrainerList
1355
+            this.InnerDialogProps.titles = '滤过器'
1356
+            this.InnerDialogProps.type = 'dialysis_strainer'
1357
+            this.InnerDialogProps.selected = this.dialysis_strainer
1358
+            this.InnerDialogProps.isShowTextArea = false
1359
+
1336
             break
1360
             break
1337
         }
1361
         }
1338
       },
1362
       },
1358
           case 'puncture_needle':
1382
           case 'puncture_needle':
1359
             this.addPlan.puncture_needle = val.value.join(',')
1383
             this.addPlan.puncture_needle = val.value.join(',')
1360
             break
1384
             break
1385
+          case 'dialysis_strainer':
1386
+             this.dialysis_strainer = val.value.join(',')
1387
+            break
1361
         }
1388
         }
1362
       },
1389
       },
1363
       innerDialogCancle: function() {
1390
       innerDialogCancle: function() {
1661
             }
1688
             }
1662
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1689
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1663
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1690
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1691
+            this.addPlan.dialysis_strainer = this.dialysis_strainer
1664
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1692
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1665
             if(this.addPlan.mode!=2 && this.addPlan.mode!=5&&this.addPlan.mode!=12){
1693
             if(this.addPlan.mode!=2 && this.addPlan.mode!=5&&this.addPlan.mode!=12){
1666
               this.addPlan.displace_liqui_part = 0
1694
               this.addPlan.displace_liqui_part = 0
1727
                 this.current_solution.epo_count = response.data.data.solution.epo_count
1755
                 this.current_solution.epo_count = response.data.data.solution.epo_count
1728
                 this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1756
                 this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1729
                 this.current_solution.remark = response.data.data.solution.remark
1757
                 this.current_solution.remark = response.data.data.solution.remark
1758
+                this.current_solution.dialysis_strainer = response.data.data.dialysis_strainer
1730
                 this.FindePatientDialysisLongSolutions()
1759
                 this.FindePatientDialysisLongSolutions()
1731
                 return false
1760
                 return false
1732
               }
1761
               }
1745
             const mode = '1'
1774
             const mode = '1'
1746
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1775
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1747
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1776
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1777
+            this.addPlan.dialysis_strainer = this.dialysis_strainer
1748
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1778
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1749
             console.log("add",this.addPlan)
1779
             console.log("add",this.addPlan)
1750
             createPatientDialysisSolution(
1780
             createPatientDialysisSolution(
1796
         this.getDialysisSolutionDetailList()
1826
         this.getDialysisSolutionDetailList()
1797
       },
1827
       },
1798
       openEdit(index, row) {
1828
       openEdit(index, row) {
1799
-
1829
+        console.log("row-------",row)
1800
         this.current_index = index
1830
         this.current_index = index
1801
         this.addPlan.id = row.id
1831
         this.addPlan.id = row.id
1802
         this.addPlan.mode = row.mode_id
1832
         this.addPlan.mode = row.mode_id
1924
         this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1954
         this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1925
         this.dialysis_irrigation = row.dialysis_irrigation
1955
         this.dialysis_irrigation = row.dialysis_irrigation
1926
         this.dialysis_dialyszers = row.dialysis_dialyszers
1956
         this.dialysis_dialyszers = row.dialysis_dialyszers
1957
+        this.dialysis_strainer = row.dialysis_strainer
1958
+        this.addPlan.dialysis_strainer = row.dialysis_strainer
1927
         this.addPlan.oxygen_uptake = row.oxygen_uptake
1959
         this.addPlan.oxygen_uptake = row.oxygen_uptake
1928
         this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1960
         this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1929
         this.addPlan.oxygen_flow = row.oxygen_flow
1961
         this.addPlan.oxygen_flow = row.oxygen_flow
1930
         this.addPlan.oxygen_time = row.oxygen_time
1962
         this.addPlan.oxygen_time = row.oxygen_time
1963
+       
1931
         if(row.oxygen_uptake == 1){
1964
         if(row.oxygen_uptake == 1){
1932
           this.oxygenShow = true
1965
           this.oxygenShow = true
1933
         }
1966
         }
2112
             if(this.stockType.length >0 ){
2145
             if(this.stockType.length >0 ){
2113
               var arr = []
2146
               var arr = []
2114
               var arrTwo = []
2147
               var arrTwo = []
2148
+              var arrThree = []
2115
               for(let i=0;i<this.stockType.length;i++){
2149
               for(let i=0;i<this.stockType.length;i++){
2116
                 if(this.stockType[i].stock_attribute == 2){
2150
                 if(this.stockType[i].stock_attribute == 2){
2117
                   arr.push(this.stockType[i])
2151
                   arr.push(this.stockType[i])
2119
                 if(this.stockType[i].stock_attribute == 3){
2153
                 if(this.stockType[i].stock_attribute == 3){
2120
                   arrTwo.push(this.stockType[i])
2154
                   arrTwo.push(this.stockType[i])
2121
                 }
2155
                 }
2156
+                 if(this.stockType[i].stock_attribute == 4){
2157
+                  arrThree.push(this.stockType[i])
2158
+                }
2122
               }
2159
               }
2123
               var dialyzator = []
2160
               var dialyzator = []
2124
               var irrigation = []
2161
               var irrigation = []
2162
+              var dialysisStrainer = []
2125
               for(let i=0;i<arr.length;i++){
2163
               for(let i=0;i<arr.length;i++){
2126
                 for(let j=0;j<arr[i].GoodInfo.length;j++){
2164
                 for(let j=0;j<arr[i].GoodInfo.length;j++){
2127
                   dialyzator.push(arr[i].GoodInfo[j])
2165
                   dialyzator.push(arr[i].GoodInfo[j])
2129
               }
2167
               }
2130
               console.log("透析器",dialyzator)
2168
               console.log("透析器",dialyzator)
2131
               this.dialyzers = dialyzator
2169
               this.dialyzers = dialyzator
2132
-
2170
+              for(let i=0;i<arrThree.length;i++){
2171
+                for(let j=0;j<arrThree[i].GoodInfo.length;j++){
2172
+                  dialysisStrainer.push(arrThree[i].GoodInfo[j])
2173
+                }
2174
+              }
2175
+              this.dialysisStrainerList = dialysisStrainer
2133
               for(let i=0;i<arrTwo.length;i++){
2176
               for(let i=0;i<arrTwo.length;i++){
2134
                 for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
2177
                 for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
2135
                   irrigation.push(arrTwo[i].GoodInfo[j])
2178
                   irrigation.push(arrTwo[i].GoodInfo[j])