Bladeren bron

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 11 maanden geleden
bovenliggende
commit
f255c8178e

+ 1 - 1
src/api/advice.js Bestand weergeven

@@ -603,4 +603,4 @@ export function getDocAdviceByPatientId(params){
603 603
     method:"get",
604 604
     params:params,
605 605
   })
606
-}
606
+}

+ 10 - 0
src/api/dialysis.js Bestand weergeven

@@ -556,4 +556,14 @@ export function getDialysisTotalCount(params){
556 556
     method:"Get",
557 557
     params:params
558 558
   })
559
+}
560
+
561
+
562
+export function getDialysisProject(params){
563
+  
564
+  return request({
565
+    url:"/api/schedule/getdialysisproject",
566
+    method:"Get",
567
+    params:params
568
+  })
559 569
 }

+ 27 - 0
src/api/pharmacy.js Bestand weergeven

@@ -120,3 +120,30 @@ export function routeofadministration(params) {
120 120
     params: params
121 121
   })
122 122
 }
123
+
124
+export function getGoodInventoryList(params){
125
+  
126
+  return request({
127
+    url:"/api/pharmacy/getgoodinventorylist",
128
+    method:"Get",
129
+    params:params,
130
+  })
131
+}
132
+
133
+export function getGoodInventoryByGoodId(id,params){
134
+  
135
+  return request({
136
+    url:"/api/pharmacy/getgoodinventorybygoodid?id="+id,
137
+    method:"get",
138
+    params:params,
139
+  })
140
+}
141
+
142
+export function updateInventoryWarehouseInfo(params){
143
+  
144
+  return request({
145
+    url:"/api/pharmacy/updateInventoryWarehouseInfo",
146
+    method:"get",
147
+    params:params,
148
+  })
149
+} 

+ 12 - 0
src/router/modules/dialysis.js Bestand weergeven

@@ -144,6 +144,18 @@ export default {
144 144
       }
145 145
     },
146 146
 
147
+    {
148
+      path: '/dialysis/doctorNewProjectStaticPrint',
149
+      component: () => import('@/xt_pages/dialysis/doctorNewProjectStaticPrint'),
150
+      name: '透析耗材统计打印',
151
+      hidden: true,
152
+      is_menu: false,
153
+      meta: {
154
+        title: '透析耗材统计打印',
155
+        noCache: true
156
+      }
157
+    },
158
+
147 159
     {
148 160
       path: '/dialysis/signPrint',
149 161
       component: () => import('@/xt_pages/dialysis/signPrint'),

+ 9 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Bestand weergeven

@@ -3011,7 +3011,15 @@
3011 3011
           </div>
3012 3012
           <div style="position: relative;left: 70%;top: 30px;">
3013 3013
             患者签名:
3014
-            <div class="under_line" style="width: 120px;"></div>
3014
+            <div class="under_line" style="width: 120px;">
3015
+              <img
3016
+                v-if="record.dialysis_order.url!=''"
3017
+                style="height: 30px"
3018
+                :src="record.dialysis_order == null? 0: dialysis_order.url"
3019
+                alt=""
3020
+                srcset=""
3021
+              />
3022
+            </div>
3015 3023
           </div>
3016 3024
         </div>
3017 3025
       </div>

+ 1 - 1
src/xt_pages/dialysis/details/BasicInfor.vue Bestand weergeven

@@ -174,7 +174,7 @@ export default {
174 174
   },
175 175
   watch:{
176 176
     dialysis_date:function(){
177
-      console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh我爱中国",this.dialysis_date)
177
+      // console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh我爱中国",this.dialysis_date)
178 178
       this.dialysis_time = this.dialysis_date
179 179
     }
180 180
   }

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -2893,7 +2893,7 @@ mu
2893 2893
         }
2894 2894
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2895 2895
         // console.log('this.schedual', schedual.mode_id)
2896
-        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0) {
2896
+        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0 || schedual.mode_id == 37 || schedual.mode_id == 36 || schedual.mode_id == 35 || schedual.mode_id == 34) {
2897 2897
           this.zhiShow = true
2898 2898
           this.huShow = true
2899 2899
           this.totalShow = true
@@ -3138,7 +3138,7 @@ mu
3138 3138
             //   }
3139 3139
 
3140 3140
             // }
3141
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10 && this.dialysisPrescription.mode_id!=34 && this.dialysisPrescription.mode_id!=35  && this.dialysisPrescription.mode_id!=36){
3141
+            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10 && this.dialysisPrescription.mode_id!=34 && this.dialysisPrescription.mode_id!=35  && this.dialysisPrescription.mode_id!=36 && this.dialysisPrescription.mode_id!=37){
3142 3142
               this.dialysisPrescription.displace_liqui_part = 0
3143 3143
               this.dialysisPrescription.displace_liqui_value = 0
3144 3144
               this.dialysisPrescription.replacement_total = 0

+ 305 - 0
src/xt_pages/dialysis/doctorNewProjectStaticPrint.vue Bestand weergeven

@@ -0,0 +1,305 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+          <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+        </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+  
13
+        <div id="print_content">
14
+          <div class="print_main_content">
15
+            <div class="order_title_panl">
16
+              <span class="main_title"> &nbsp;
17
+                透析耗材
18
+              </span>
19
+              <span  style="float:right;">打印日期: &nbsp;
20
+                 {{$route.query.schedule_date}}
21
+              </span>
22
+            </div>
23
+            <div class="table_panel">
24
+  
25
+              <table class="table">
26
+                <thead>
27
+                <tr>
28
+                  <td width="50">序号</td>
29
+                  <td width="100">耗材名称</td>
30
+                  <td width="100">规格</td>
31
+                  <td width="100">数量</td>
32
+                  
33
+                </tr>
34
+                </thead>
35
+                <tbody>
36
+                 <tr v-for="(item,i) in tableProjectList" :key="i">
37
+                  <td>{{i+1}}</td>
38
+                  <td>{{item.good_name}}</td>
39
+                   <td>{{item.specification_name}}</td>
40
+                  <td>
41
+                    {{item.count}}
42
+                  </td>
43
+                 </tr>
44
+                </tbody>
45
+              </table>
46
+            </div>
47
+          </div>
48
+        </div>
49
+      </div>
50
+    </div>
51
+  </template>
52
+  
53
+  <script>
54
+    import { getDialysisProject  } from '@/api/dialysis'
55
+    import { parseTime } from '@/utils'
56
+    import { uParseTime } from '@/utils/tools'
57
+    import BreadCrumb from '@/xt_pages/components/bread-crumb'
58
+    import print from 'print-js'
59
+    import { getDataConfig } from '@/utils/data'
60
+    export default {
61
+      name: 'SchedulePrint',
62
+      data() {
63
+        return {
64
+          crumbs: [
65
+            { path: false, name: '排班管理' },
66
+            { path: false, name: '排班打印' }
67
+          ],
68
+          td_1_width: '8%',
69
+          td_2_width: '8%',
70
+          td_3_width: '64%',
71
+          td_4_width: '20%',
72
+          month: 1,
73
+          begin_day: 1,
74
+          total:[],
75
+          list:[],
76
+          schedule_date:"",
77
+          schedule_type:0,
78
+          partition_type:0,
79
+          keywords:"",
80
+          loading:false,
81
+          tableData:[],
82
+          numberList:[],
83
+          partitionArr:[],
84
+          his_config:{},
85
+          typeList:[],
86
+          rowList:[],
87
+          dialysate_formulation:[],
88
+          body_fluid_option:[],
89
+          displace_liqui_part_option:[],
90
+          blood_access_option:[],
91
+          hemodialysisPipelinesOptions:[],
92
+          tableList:[],
93
+          druglist:[],
94
+          config:{},
95
+          tableProjectList:[]
96
+        }
97
+      },
98
+      components: {
99
+        BreadCrumb
100
+      },
101
+      created() {
102
+        this.getDialysisProject()
103
+      },
104
+      methods: {
105
+        getDialysisProject(){
106
+          var params = {
107
+            schedule_type:this.$route.query.schedule_type,
108
+            partion_type:this.$route.query.partion_type,
109
+            selected_date:this.$route.query.schedule_date,
110
+          }
111
+         getDialysisProject(params).then(response=>{
112
+           if(response.data.state ==1){
113
+             var list = response.data.data.list
114
+             var newArr = []
115
+             if(list!=null && list.length>0){
116
+               for(let i=0;i<list.length;i++){
117
+                 for(let j=0;j<list[i].his_doctor_project.length;j++){
118
+                    newArr.push(list[i].his_doctor_project[j])
119
+                 }
120
+               }
121
+             }
122
+             
123
+             let dataInfo = {}
124
+              newArr.forEach((item, index) => {
125
+              let { project_id } = item
126
+              if (!dataInfo[project_id]) {
127
+                dataInfo[project_id] = {
128
+                  project_id:item.project_id,
129
+                  good_name:item.good.good_name,
130
+                  specification_name:item.good.specification_name,
131
+                  child: [],
132
+                  count:0,
133
+                }
134
+              }
135
+            })
136
+            let arr = Object.values(dataInfo)
137
+            
138
+            if(arr!=null && arr.length >0){
139
+              for(let i =0;i<arr.length;i++){
140
+                for(let j=0;j<newArr.length;j++){
141
+                   if(arr[i].project_id == newArr[j].project_id){
142
+                      arr[i].child.push(newArr[i])
143
+                   }
144
+                } 
145
+              }
146
+              for(let i =0;i<arr.length;i++){
147
+                for(let j=0;j<arr[i].child.length;j++){
148
+                   arr[i].count += parseInt(arr[i].child[j].count)
149
+                }
150
+              }
151
+
152
+              console.log("arr0000000000000000000000",arr)
153
+              this.tableProjectList = []
154
+              this.tableProjectList = arr
155
+
156
+            }
157
+           }
158
+         })
159
+      },
160
+       getTimeOne(val) {
161
+          if(val == ""){
162
+          return ""
163
+          }else {
164
+          return uParseTime(val, '{y}-{m}-{d}')
165
+          }
166
+       },
167
+       getCount(val){
168
+         var count = 0
169
+         if(val!=null && val.length > 0){
170
+          for(let i=0;i<val.length;i++){
171
+            count += parseInt(val[i].prescribing_number)
172
+          }
173
+         }
174
+         if(count > 0){
175
+          return count
176
+         }else{
177
+          return 0
178
+         }
179
+       },
180
+      printAction: function() {
181
+      const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
182
+  
183
+      printJS({
184
+          printable: 'print_content',
185
+          type: 'html',
186
+          documentTitle: '  ',
187
+          style: style,
188
+          scanStyles: false
189
+       })
190
+      },
191
+      getSpecification(id){
192
+          var specification_name = ""
193
+          for(let i=0;i<this.druglist.length;i++){
194
+            if(id == this.druglist[i].id){
195
+              specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
196
+            }
197
+          }
198
+          return specification_name
199
+        },
200
+       getHisCount(val,max_unit,min_unit,min_number){
201
+          var total = 0
202
+          var max_str = "";
203
+          var min_str = "";
204
+          for(let i=0;i<val.length;i++){
205
+            total+=parseInt(val[i].prescribing_number)
206
+          }
207
+          if (total < min_number) {
208
+          min_str = total + min_unit;
209
+        }
210
+        if (total == 0) {
211
+          min_str = "";
212
+          max_str = "";
213
+        }
214
+        if (total >= min_number) {
215
+          if (parseInt(total / min_number) != 0) {
216
+            max_str = parseInt(total / min_number) + max_unit;
217
+          }
218
+          if (total % min_number != 0) {
219
+            min_str = (total % min_number) + min_unit;
220
+          }
221
+        }
222
+        return max_str + min_str;
223
+          
224
+        },
225
+     }
226
+    }
227
+  </script>
228
+  
229
+  <style rel="stylesheet/scss" lang="scss" scoped>
230
+    .print_main_content {
231
+      background-color: white;
232
+      width: 960px;
233
+      margin: 0 auto;
234
+      padding: 0 0 20px 0;
235
+  
236
+    .order_title_panl {
237
+      text-align: center;
238
+  
239
+    .main_title {
240
+      font-size: 18px;
241
+      line-height: 40px;
242
+      font-weight: 500;
243
+    }
244
+  
245
+    }
246
+    .table_panel {
247
+  
248
+    .table {
249
+      width: 100%;
250
+      border: 1px solid;
251
+      border-collapse: collapse;
252
+      padding: 2px;
253
+  
254
+    thead {
255
+  
256
+    tr {
257
+  
258
+    td {
259
+      border: 1px solid;
260
+      text-align: center;
261
+      font-size: 20px;
262
+      padding: 15px 5px;
263
+    }
264
+  
265
+    }
266
+    }
267
+    tbody {
268
+  
269
+    tr {
270
+  
271
+    td {
272
+      border: 1px solid;
273
+      text-align: center;
274
+      font-size: 18px;
275
+      padding: 10px 5px;
276
+  
277
+    .proj {
278
+      padding: 5px 0;
279
+      text-align: left;
280
+  
281
+    .proj_title {
282
+      font-size: 16px;
283
+      font-weight: 500;
284
+      line-height: 25px;
285
+    }
286
+  
287
+    .proj_item {
288
+      font-size: 15px;
289
+      line-height: 20px;
290
+  
291
+    .zone_name {
292
+      font-weight: 500;
293
+    }
294
+  
295
+    }
296
+    }
297
+    }
298
+    }
299
+    }
300
+    }
301
+    }
302
+    }
303
+  </style>
304
+  
305
+  

+ 195 - 5
src/xt_pages/dialysis/newDoctorAdvice.vue Bestand weergeven

@@ -183,9 +183,13 @@
183 183
       </div> -->
184 184
 
185 185
       <div style="margin-top: 10px;margin-bottom:10px">
186
-        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671  && org_id!=10340">统计</el-button>
186
+        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671  && org_id!=10340">药品统计</el-button>
187 187
 
188
-        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">统计</el-button>
188
+        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">药品统计</el-button>
189
+
190
+        <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
191
+
192
+        
189 193
       </div>
190 194
 
191 195
 
@@ -736,6 +740,76 @@
736 740
         <el-button type="primary" @click="startdialogVisibleOne = false">确 定</el-button>
737 741
       </span>
738 742
     </el-dialog>
743
+
744
+
745
+    <el-dialog
746
+      title="耗材统计表"
747
+      :visible.sync="startdialogVisibleTwo"
748
+      width="60%">
749
+      <span>
750
+        <div class="cell clearfix" style="margin-bottom:10px">
751
+          <label class="title"> <span class="name">排班班次</span> : </label>
752
+           <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleTypeTwo" >
753
+            <el-option
754
+              v-for="item in schedulArr"
755
+              :key="item.value"
756
+              :label="item.label"
757
+              :value="item.value">
758
+            </el-option>
759
+           </el-select>
760
+           <label class="title"> <span class="name">病区选择</span> : </label>
761
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeTwo" multiple >
762
+            <el-option
763
+              v-for="item in partitionArr"
764
+              :key="item.id"
765
+              :label="item.name"
766
+              :value="item.id">
767
+            </el-option>
768
+           </el-select>
769
+           <el-button size="small" icon="el-icon-printer"  @click="toPrintThree" type="primary">打印</el-button>
770
+           <el-button size="small"  @click="toExportListTwo" type="primary">导出</el-button>
771
+        </div>
772
+
773
+      <el-table
774
+        :data="tableProjectList"
775
+        border
776
+        :row-style="{ color: '#303133' }"
777
+        :header-cell-style="{
778
+          backgroundColor: 'rgb(245, 247, 250)',
779
+          color: '#606266'
780
+        }"
781
+      >
782
+         <el-table-column  align="center"  label="序号">
783
+           <template slot-scope="scope">
784
+              {{scope.$index+1}}
785
+           </template>
786
+        </el-table-column>
787
+        <el-table-column  align="center"   label="耗材名称">
788
+         <template slot-scope="scope">
789
+            {{scope.row.good_name}}
790
+          </template>
791
+        </el-table-column>
792
+        <el-table-column  align="center"  label="规格">
793
+           <template slot-scope="scope">
794
+             {{scope.row.specification_name}}
795
+           </template>
796
+        </el-table-column>
797
+
798
+        <el-table-column  align="center"   label="数量">
799
+           <template slot-scope="scope">
800
+              {{scope.row.count}}
801
+           </template>
802
+        </el-table-column>
803
+
804
+
805
+
806
+      </el-table>
807
+      </span>
808
+      <span slot="footer" class="dialog-footer">
809
+        <el-button @click="startdialogVisibleTwo = false">取 消</el-button>
810
+        <el-button type="primary" @click="startdialogVisibleTwo = false">确 定</el-button>
811
+      </span>
812
+    </el-dialog>
739 813
     </div>
740 814
 
741 815
 
@@ -744,7 +818,7 @@
744 818
 
745 819
 <script>
746 820
 const moment = require('moment')
747
-import { getSchedualPatient, GetAllZone,getDialysisAdviceToday } from "@/api/dialysis";
821
+import { getSchedualPatient, GetAllZone,getDialysisAdviceToday,getDialysisProject } from "@/api/dialysis";
748 822
 import { parseTime } from "@/utils";
749 823
 import { uParseTime } from '@/utils/tools'
750 824
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
@@ -826,6 +900,7 @@ export default {
826 900
       tableList:[],
827 901
       startdialogVisible:false,
828 902
       startdialogVisibleOne:false,
903
+      startdialogVisibleTwo:false,
829 904
       schedule_type:0,
830 905
       partion_type:0,
831 906
       druglist:[],
@@ -839,6 +914,7 @@ export default {
839 914
       zoneIdList:[],
840 915
       partion_str:"",
841 916
       keyword:"",
917
+      tableProjectList:[],
842 918
     };
843 919
   },
844 920
   created() {
@@ -1882,7 +1958,7 @@ export default {
1882 1958
                 this.tableList = hisarr
1883 1959
               }
1884 1960
 
1885
-              console.log("中国人民解放军",this.tableList)
1961
+             
1886 1962
              }
1887 1963
           }
1888 1964
         })
@@ -1932,7 +2008,7 @@ export default {
1932 2008
 
1933 2009
               if(doctorList!=null && doctorList.length > 0){
1934 2010
 
1935
-                let dataInfo = {}
2011
+                  let dataInfo = {}
1936 2012
                   doctorList.forEach((item, index) => {
1937 2013
                   item.advice_name = item.advice_name.replace(/\s/g,"")
1938 2014
                   let { advice_name } = item
@@ -2009,6 +2085,73 @@ export default {
2009 2085
         })
2010 2086
 
2011 2087
       },
2088
+      toStaticTwo(){
2089
+        var str = ""
2090
+         if(this.partion_type==0){
2091
+            str = this.zoneIdList.join(",")
2092
+         }
2093
+         if(this.partion_type!=0){
2094
+            str = this.partion_type.join(",")
2095
+         }
2096
+         this.partion_str = ""
2097
+         this.partion_str = str  
2098
+         this.tableList = []
2099
+          var params = {
2100
+            schedule_type:this.schedule_type,
2101
+            partion_type:str,
2102
+            selected_date: moment(this.time).format('YYYY-MM-DD'),
2103
+          }
2104
+         getDialysisProject(params).then(response=>{
2105
+           if(response.data.state ==1){
2106
+             var list = response.data.data.list
2107
+             var newArr = []
2108
+             if(list!=null && list.length>0){
2109
+               for(let i=0;i<list.length;i++){
2110
+                 for(let j=0;j<list[i].his_doctor_project.length;j++){
2111
+                    newArr.push(list[i].his_doctor_project[j])
2112
+                 }
2113
+               }
2114
+             }
2115
+             
2116
+             let dataInfo = {}
2117
+              newArr.forEach((item, index) => {
2118
+              let { project_id } = item
2119
+              if (!dataInfo[project_id]) {
2120
+                dataInfo[project_id] = {
2121
+                  project_id:item.project_id,
2122
+                  good_name:item.good.good_name,
2123
+                  specification_name:item.good.specification_name,
2124
+                  child: [],
2125
+                  count:0,
2126
+                }
2127
+              }
2128
+            })
2129
+            let arr = Object.values(dataInfo)
2130
+            
2131
+            if(arr!=null && arr.length >0){
2132
+              for(let i =0;i<arr.length;i++){
2133
+                for(let j=0;j<newArr.length;j++){
2134
+                   if(arr[i].project_id == newArr[j].project_id){
2135
+                      arr[i].child.push(newArr[i])
2136
+                   }
2137
+                } 
2138
+              }
2139
+              for(let i =0;i<arr.length;i++){
2140
+                for(let j=0;j<arr[i].child.length;j++){
2141
+                   arr[i].count += parseInt(arr[i].child[j].count)
2142
+                }
2143
+              }
2144
+
2145
+              console.log("arr0000000000000000000000",arr)
2146
+
2147
+              this.startdialogVisibleTwo = true
2148
+              this.tableProjectList = []
2149
+              this.tableProjectList = arr
2150
+
2151
+            }
2152
+           }
2153
+         })
2154
+      },
2012 2155
       getDrugAdviceCount(advice_name,zone_name){
2013 2156
         var str = ""
2014 2157
         var arr =[]
@@ -2100,6 +2243,10 @@ export default {
2100 2243
         var schedule_date = moment(this.time).format('YYYY-MM-DD')
2101 2244
         this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2102 2245
       },
2246
+      toPrintThree(){
2247
+        var schedule_date = moment(this.time).format('YYYY-MM-DD')
2248
+        this.$router.push({path:"/dialysis/doctorNewProjectStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2249
+      },
2103 2250
       toExportListOne(){
2104 2251
         import('@/vendor/Export2Excel').then(excel => {
2105 2252
 
@@ -2127,6 +2274,26 @@ export default {
2127 2274
             this.downloadLoading = false
2128 2275
           })
2129 2276
       },
2277
+      toExportListTwo(){
2278
+        import('@/vendor/Export2Excel').then(excel => {
2279
+
2280
+          if(this.tableProjectList!=null && this.tableProjectList.length > 0){
2281
+            for(let i=0;i<this.tableProjectList.length;i++){
2282
+              this.tableProjectList[i].index = i+1
2283
+            }
2284
+          }
2285
+          const tHeader = ['序号','耗材名称','规格','数量']
2286
+          const filterVal = ['index','good_name','specification_name','count']
2287
+
2288
+          const data = this.formatJson(filterVal, this.tableProjectList)
2289
+          excel.export_json_to_excel({
2290
+            header: tHeader,
2291
+            data,
2292
+            filename: '耗材统计'
2293
+          })
2294
+            this.downloadLoading = false
2295
+          })
2296
+      },
2130 2297
       formatJson(filterVal, jsonData) {
2131 2298
         return jsonData.map(v => filterVal.map(j => v[j]));
2132 2299
       },
@@ -2146,6 +2313,14 @@ export default {
2146 2313
         this.tableDataList = []
2147 2314
         this.toStaticOne()
2148 2315
       },
2316
+      changeScheduleTypeTwo(){
2317
+        this.tableProjectList = []
2318
+        this.toStaticTwo()
2319
+      },
2320
+      changePartionTypeTwo(){
2321
+        this.tableProjectList=[]
2322
+        this.toStaticTwo()
2323
+      },
2149 2324
       getModeId(val){
2150 2325
         if(val!=null && val.length > 0){
2151 2326
           let dataInfo = {}
@@ -2273,6 +2448,21 @@ export default {
2273 2448
              if(hisNewArr[i].mode_id == 32){
2274 2449
                 hisNewArr[i].mode_id = "HDP"
2275 2450
              }
2451
+             if(hisNewArr[i].mode_id == 33){
2452
+                hisNewArr[i].mode_id = "HFD"
2453
+             }
2454
+             if(hisNewArr[i].mode_id == 34){
2455
+                hisNewArr[i].mode_id = "HDF100"
2456
+             }
2457
+             if(hisNewArr[i].mode_id == 35){
2458
+                hisNewArr[i].mode_id = "HDF600"
2459
+             }
2460
+             if(hisNewArr[i].mode_id == 36){
2461
+                hisNewArr[i].mode_id = "HDF800"
2462
+             }
2463
+             if(hisNewArr[i].mode_id == 37){
2464
+                hisNewArr[i].mode_id = "HDF1000"
2465
+             }
2276 2466
              str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
2277 2467
            }
2278 2468
 

+ 3 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Bestand weergeven

@@ -2578,12 +2578,13 @@
2578 2578
          <div style="position: relative; left: 70%;top: 50px;width: 288px;">
2579 2579
           患者签名:
2580 2580
           <div class="under_line" style="width: 120px;">
2581
-            <!-- <img
2581
+            <img
2582
+              v-if="dialysisOrder.url!=''"
2582 2583
               style="height: 30px"
2583 2584
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2584 2585
               alt=""
2585 2586
               srcset=""
2586
-            /> -->
2587
+            />
2587 2588
           </div>
2588 2589
         </div>
2589 2590
       </div>

+ 2 - 38
src/xt_pages/outpatientCharges/costComparison.vue Bestand weergeven

@@ -636,22 +636,6 @@ c<template>
636 636
                 //   }
637 637
                 // }
638 638
 
639
-                var hifes_pays = [];
640
-
641
-                if(this.fromData[i].setl_detail.length > 0){
642
-                  var jsonObj = JSON.parse(this.fromData[i].setl_detail);
643
-                  console.log(jsonObj)
644
-                  for (let i = 0; i < jsonObj.length; i++) {
645
-                    if (jsonObj[i].fund_pay_type == '310100') {
646
-                      hifes_pays.push(jsonObj[i].fund_payamt)
647
-                    }
648
-                  }
649
-                }
650
-
651
-                let hifes_pay = 0.00
652
-                if(hifes_pays.length == 2){
653
-                  hifes_pay = hifes_pays[1]
654
-                }
655 639
 
656 640
                 let obj = {
657 641
                   '序号': i+1,
@@ -669,7 +653,7 @@ c<template>
669 653
                   '小计I+II': this.fromData[i].act_pay_dedc + this.fromData[i].psn_cash_pay,
670 654
                   '基本统筹基金': this.fromData[i].hifp_pay,
671 655
                   '公务员补助': this.fromData[i].cvlserv_pay,
672
-                  '单位补充保险': hifes_pay,
656
+                  '单位补充保险': this.fromData[i].hifmi_pay,
673 657
                   '煤矿补充保险': "0.00",
674 658
                   "超封顶线费用": "0.00",
675 659
                   '大额医疗保险应付': this.fromData[i].hifob_pay,
@@ -711,21 +695,6 @@ c<template>
711 695
               var list = []
712 696
               for (let i = 0; i < this.fromData.length; i++) {
713 697
 
714
-                var hifmi_pay = 0.00;
715
-
716
-                if(this.fromData[i].setl_detail.length > 0){
717
-                  var jsonObj = JSON.parse(this.fromData[i].setl_detail);
718
-                  console.log(jsonObj)
719
-                  for (let i = 0; i < jsonObj.length; i++) {
720
-                      if (jsonObj[i].fund_pay_type == '390200') {
721
-                        hifmi_pay = jsonObj[i].fund_payamt
722
-                      }
723
-                  }
724
-                }
725
-
726
-
727
-
728
-
729 698
                 let obj = {
730 699
                   '序号': i+1,
731 700
                   '姓名': this.fromData[i].psn_name,
@@ -742,19 +711,14 @@ c<template>
742 711
                   "超封顶线费用": "0.00",
743 712
                   "合计": parseFloat(this.fromData[i].act_pay_dedc)  + parseFloat(this.fromData[i].psn_cash_pay),
744 713
                   '基本统筹基金': this.fromData[i].hifp_pay,
745
-                  '大病保险': hifmi_pay,
714
+                  '大病保险':this.fromData[i].hifmi_pay,
746 715
                   '医疗救助': this.fromData[i].maf_pay,
747 716
                   '实账支付额': "0.00",
748 717
                   "血透次数":this.fromData[i].DialysisCount,
749 718
                   "置留管数量":0,
750 719
                   "备注":"",
751
-
752 720
                 }
753 721
 
754
-
755
-
756
-
757
-
758 722
                 list.push(obj)
759 723
               }
760 724
               var insutype_name = ''

+ 7 - 7
src/xt_pages/outpatientCharges/statementPrint.vue Bestand weergeven

@@ -20,7 +20,7 @@
20 20
           org_id == 10138 ||
21 21
           org_id == 9504 ||
22 22
           org_id == 10028 ||
23
-          org_id == 10278
23
+          org_id == 10278 || org_id == 10610 || org_id == 0
24 24
         "
25 25
       >
26 26
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
@@ -28,7 +28,7 @@
28 28
           :info="info"
29 29
           :paramsObj="paramsObj"
30 30
           :balanceAccounts="balanceAccounts"
31
-          v-if="org_id == 10138 || org_id == 10278 || org_id ==10610"
31
+          v-if="org_id == 10138 || org_id == 10278 || org_id ==10610 || org_id == 0"
32 32
         ></printThree>
33 33
         <printFour
34 34
           v-if="org_id == 9504 || org_id == 10028 || org_id == 10088  "
@@ -61,12 +61,12 @@
61 61
       <!-- 大冶 -->
62 62
       <printthirteen :info="info" v-if="org_id == 10510"></printthirteen>
63 63
       <!-- 广水原生堂 -->
64
-      <printfourteen :info="info" v-if="(org_id == 10088 || org_id == 0 ) && this.paramsObj.balance_accounts_type == 1"></printfourteen>
64
+      <printfourteen :info="info" v-if="(org_id == 10088 ) && this.paramsObj.balance_accounts_type == 1"></printfourteen>
65 65
       <printOne :info="info" v-if=" org_id != 9990 &&
66 66
             org_id != 10138 &&
67 67
             org_id != 9504 &&
68 68
             org_id != 10028 &&
69
-            org_id != 0 &&
69
+            org_id != 0 &&   org_id != 10610 &&
70 70
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&org_id != 10510 &&org_id != 10088 &&org_id != 0   && this.paramsObj.balance_accounts_type == 1">
71 71
       </printOne>
72 72
 
@@ -74,7 +74,7 @@
74 74
             org_id != 10138 &&
75 75
             org_id != 9504 &&
76 76
             org_id != 10028 &&
77
-            org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485  &&org_id != 10480 &&org_id != 10510  && org_id != 0 && this.paramsObj.balance_accounts_type == 2">
77
+            org_id != 10278 && org_id != 10610  && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485  &&org_id != 10480 &&org_id != 10510  && org_id != 0 && this.paramsObj.balance_accounts_type == 2">
78 78
       </privateChargePrint>
79 79
 
80 80
     </div>
@@ -309,7 +309,7 @@ export default {
309 309
       if (
310 310
         this.$store.getters.xt_user.org_id == 10138 ||
311 311
         this.$store.getters.xt_user.org_id == 4 ||
312
-        this.$store.getters.xt_user.org_id == 10278
312
+        this.$store.getters.xt_user.org_id == 10278 ||   this.$store.getters.xt_user.org_id == 10610
313 313
       ) {
314 314
         setTimeout(() => {
315 315
           const style =
@@ -720,7 +720,7 @@ export default {
720 720
         }
721 721
         if (
722 722
           this.org_id == 10138 ||
723
-          this.org_id == 10278
723
+          this.org_id == 10278 ||  this.org_id == 10610 || this.org_id == 0
724 724
         ) {
725 725
           getPrivateExpenses(params).then((response) => {
726 726
             if (response.data.state == 0) {

+ 4 - 0
src/xt_pages/stock/drugs/inventory.vue Bestand weergeven

@@ -336,6 +336,10 @@ export default {
336 336
                   //  }else{
337 337
                   //    list[i].type = 6
338 338
                   //   }
339
+                   list[i].last_stock_max_number = 0
340
+                   list[i].last_stock_max_number = list[i].stock_max_number
341
+                   list[i].last_stock_min_number = 0
342
+                   list[i].last_stock_min_number = list[i].stock_min_number
339 343
                    list[i].type = 6
340 344
                    for(let j=0;j<this.manufacturerList.length;j++){
341 345
                      if(list[i].manufacturer == this.manufacturerList[j].id){

+ 360 - 0
src/xt_pages/stock/historyInventory.vue Bestand weergeven

@@ -0,0 +1,360 @@
1
+<template>
2
+    <!--患者发药-->
3
+    <div class="main-contain new-main-contain">
4
+      <div class="position">
5
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
6
+      </div>
7
+      <div
8
+        class="app-container"
9
+        style="display: flex; flex: 1; padding: 10px 20px 0px 20px"
10
+      >
11
+        <div class="mainLeft">
12
+          <div>
13
+            <div
14
+              class="list"
15
+              style="display: flex; justify-content: space-between"
16
+            >
17
+              <el-input
18
+                size="small"
19
+                style="width: 200px"
20
+                v-model="keywords"
21
+                class="filter-item"
22
+                placeholder="请输入耗材名称"
23
+                clearable
24
+              />
25
+              <el-button
26
+               
27
+                size="small"
28
+                class="filter-item"
29
+                type="primary"
30
+                @click="searchAction"
31
+                >搜索
32
+              </el-button>
33
+            </div>
34
+  
35
+            <el-table
36
+              height="80vh"
37
+              ref="table01"
38
+              :data="goodList"
39
+              highlight-current-row
40
+              @current-change="handleCurrentChange"
41
+              border
42
+              style="width: 100%"
43
+              v-if="state == 1"
44
+              :row-style="{ color: '#303133' }"
45
+              :header-cell-style="{
46
+                backgroundColor: 'rgb(245, 247, 250)',
47
+                color: '#606266',
48
+              }"
49
+            >
50
+              <el-table-column prop="date" label="耗材名称" align="center">
51
+                <template slot-scope="scope">
52
+                   {{scope.row.good_name}}
53
+                </template>
54
+              </el-table-column>
55
+              <el-table-column prop="name" label="规格" align="center">
56
+                <template slot-scope="scope">
57
+                    {{scope.row.specification_name}}
58
+                </template>
59
+              </el-table-column>
60
+
61
+              <el-table-column prop="name" label="厂家" align="center">
62
+                <template slot-scope="scope">
63
+                  {{getManufacturerName(scope.row.manufacturer)}}
64
+                </template>
65
+              </el-table-column>
66
+            </el-table>
67
+            
68
+          </div>
69
+        </div>
70
+
71
+        <div class="mainRight">
72
+          <div class="titlelist">
73
+          <div>
74
+            <div>日期:{{nowTime}}   盘点人:{{user_name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
75
+           </div>
76
+          </div>
77
+
78
+        </div>
79
+        <el-divider style="margin-top: 10px"></el-divider>
80
+        <div>
81
+          <el-table
82
+            :height="tableHeight"
83
+            :data="infoList"
84
+            border
85
+            style="width: 100%"
86
+            :row-style="{ color: '#303133' }"
87
+            :header-cell-style="{
88
+              backgroundColor: 'rgb(245, 247, 250)',
89
+              color: '#606266',
90
+            }"
91
+          >
92
+            <el-table-column label="入库单号"  align="center">
93
+              <template slot-scope="scope">
94
+                {{scope.row.warehousing_order}}
95
+              </template>
96
+            </el-table-column>
97
+            <el-table-column label="入库数量"  align="center">
98
+              <template slot-scope="scope">
99
+                {{scope.row.warehousing_count}}
100
+              </template>
101
+            </el-table-column>
102
+            <el-table-column label="有效期"  align="center">
103
+              <template slot-scope="scope">
104
+                {{getTime(scope.row.expiry_date)}}
105
+              </template>
106
+            </el-table-column>
107
+            <el-table-column label="批号"  align="center">
108
+              <template slot-scope="scope">
109
+                 {{scope.row.number}}
110
+              </template>
111
+            </el-table-column>
112
+            <el-table-column label="进货价"  align="center">
113
+              <template slot-scope="scope">
114
+                  {{scope.row.price}}
115
+              </template>
116
+            </el-table-column>
117
+            <el-table-column label="剩余库存"  align="center">
118
+              <template slot-scope="scope">
119
+                 {{scope.row.stock_count}}
120
+              </template>
121
+            </el-table-column>
122
+            <el-table-column label="盘点后数量"  align="center">
123
+              <template slot-scope="scope">
124
+                <el-input style="width:80px" v-model="scope.row.last_stock_count" type="number"></el-input>
125
+              </template>
126
+            </el-table-column>
127
+            <el-table-column label="操作"  align="center">
128
+              <template slot-scope="scope">
129
+                <span><el-button type="danger" @click="UpdateWarehouseInfo(scope.row)">保存</el-button></span>
130
+              </template>
131
+            </el-table-column>
132
+           
133
+          </el-table>
134
+        </div>
135
+       
136
+      </div>
137
+    
138
+      </div>
139
+    </div>
140
+  </template>
141
+  
142
+  <script>
143
+  
144
+  import BreadCrumb from "@/xt_pages/components/bread-crumb";
145
+  import {
146
+    getGoodInventoryList,
147
+    getGoodInventoryByGoodId,
148
+    updateInventoryWarehouseInfo
149
+  } from "@/api/pharmacy";
150
+  const moment = require("moment");
151
+  import { uParseTime } from '@/utils/tools'
152
+  export default {
153
+    components: {
154
+      BreadCrumb,
155
+    },
156
+    data() {
157
+      return {
158
+        nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
159
+        patient_id: 0,
160
+        crumbs: [
161
+          { path: false, name: "耗材管理" },
162
+          { path: "/Pharmacy/patiantDispensing", name: "耗材盘点" },
163
+        ],
164
+        tableHeight: 400,
165
+        start_time: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
166
+        start_time2: moment(new Date()).add("year", 0).format("YYYY-MM-DD HH:mm"),
167
+        state: 1, //1待发药,2已发药
168
+        waitmount: 0, //待发药人数
169
+        waitmount_data: [],
170
+        alreadmount: 0, //已发药人数
171
+        alreadmount_data: [],
172
+        keywords: "",
173
+        tableData: [],
174
+        propsTable: [],
175
+        tableData_list: [],
176
+        isVisibility: false,
177
+        isVisibilityTwo:false,
178
+        currentRow: null,
179
+        dialogVisible: false,
180
+        is_open: "2",
181
+        banshift: [
182
+          { value: 0, text: "全部班" },
183
+          { value: 1, text: "上午" },
184
+          { value: 2, text: "下午" },
185
+          { value: 3, text: "晚上" },
186
+        ],
187
+        shift: 0, //班次
188
+        fen: [],
189
+        partition: 0, //分区
190
+        drugList:[],
191
+        baseList:[],
192
+        org_id:'',
193
+        patients:{},
194
+        doctors:[],
195
+        diagnosearr:[],
196
+        diagnosis:'',
197
+        goodList:[],
198
+        manufacturerList:[],
199
+        user_name:this.$store.getters.xt_user.user.user_name,
200
+        infoList:[]
201
+      };
202
+    },
203
+    watch: {},
204
+    created() {
205
+      this.org_id = this.$store.getters.xt_user.org.id
206
+
207
+      this.getGoodInventoryList()
208
+    },
209
+   methods:{
210
+    getTime(val) {
211
+        if(val < 0){
212
+        return ""
213
+        }
214
+        if(val == ""){
215
+        return ""
216
+        }else {
217
+        return uParseTime(val, '{y}-{m}-{d}')
218
+        }
219
+     },
220
+    searchAction(){
221
+        this.getGoodInventoryList()
222
+    },
223
+    getGoodInventoryList(){
224
+        var params = {
225
+            keywords:this.keywords
226
+        }
227
+       getGoodInventoryList(params).then(response=>{
228
+            if(response.data.state ==1){
229
+                var list = response.data.data.list
230
+                this.goodList = list
231
+                this.$refs.table01.setCurrentRow(this.goodList[0])
232
+                this.manufacturerList = response.data.data.manufacturerList
233
+            }
234
+        })
235
+     },
236
+     getManufacturerName(id){
237
+       var manufacturer_name = ""
238
+       for(let i=0;i<this.manufacturerList.length;i++){
239
+          if(id == this.manufacturerList[i].id){
240
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
241
+          }
242
+       }
243
+       return manufacturer_name
244
+     },
245
+     handleCurrentChange(val){
246
+       getGoodInventoryByGoodId(val.id).then(response=>{
247
+          if(response.data.state ==1){
248
+             var obj = {}
249
+             this.infoList = response.data.data.infoList
250
+          }
251
+       })
252
+     },
253
+     UpdateWarehouseInfo(row){
254
+       if(parseInt(row.last_stock_count) >=parseInt(row.stock_count)){
255
+         this.$message.error("该批次盘点后数量不能大于或等于入库数量!")
256
+         return false
257
+       }
258
+        var params = {
259
+            id:row.id,
260
+            stock_count:parseInt(row.stock_count),
261
+            last_stock_count:parseInt(row.last_stock_count),
262
+            good_id:row.good_id,
263
+            storehouse_id:parseInt(val.storehouse_id), 
264
+        }
265
+       updateInventoryWarehouseInfo(params).then(response=>{
266
+          if(response.data.state ==1){
267
+            var msg = response.data.data.msg
268
+            this.$message.success("保存成功!")
269
+          }
270
+       })
271
+     }
272
+    }
273
+  };
274
+  </script>
275
+  
276
+  <style rel="stylesheet/css" lang="scss" scoped>
277
+  .new-main-contain {
278
+    height: 100%;
279
+    display: flex;
280
+    flex-direction: column;
281
+  }
282
+  
283
+  .app-container {
284
+    height: 100%;
285
+  }
286
+  .mainLeft {
287
+    width: 400px;
288
+    height: 100%;
289
+    display: flex;
290
+    flex-direction: column;
291
+  
292
+    .el-radio {
293
+      margin-right: 5px;
294
+    }
295
+  
296
+    .list {
297
+      margin: 10px 0;
298
+    }
299
+  }
300
+  .mainRight {
301
+    margin-left: 10px;
302
+    flex: 1;
303
+    height: 100%;
304
+    display: flex;
305
+    flex-direction: column;
306
+    overflow-y: auto;
307
+    .titlelist {
308
+      display: flex;
309
+      justify-content: space-between;
310
+      white-space: nowrap;
311
+      color: #909399;
312
+      font-size: 14px;
313
+      /deep/ .el-input__inner {
314
+        font-size: 13px !important;
315
+      }
316
+    }
317
+    .el-table {
318
+      margin-top: -13px;
319
+    }
320
+    .el-button {
321
+      height: 34px;
322
+      width: 65px;
323
+    }
324
+    /deep/ .el-divider {
325
+      height: 2px;
326
+      margin-top: 10px;
327
+    }
328
+  
329
+    /deep/ .el-table__body-wrapper {
330
+      overflow-x: scroll !important;
331
+    }
332
+  }
333
+  
334
+  /deep/ .el-input__inner {
335
+    padding-right: 15px;
336
+  }
337
+  
338
+  /deep/ .el-table--scrollable-x .el-table__body-wrapper {
339
+    overflow: auto;
340
+    overflow-x: hidden;
341
+  }
342
+  /deep/ .gutter {
343
+    width: 15px !important;
344
+    display: inline-block !important;
345
+  }
346
+  /deep/ .el-table__fixed-right-patch {
347
+    width: 15px !important;
348
+  }
349
+  
350
+  /deep/ .el-table__fixed-right {
351
+    bottom: 0 !important;
352
+    left: auto;
353
+    right: 0;
354
+  }
355
+  /deep/ .el-table__body-wrapper::-webkit-scrollbar {
356
+    width: 15px !important;
357
+    height: 15px !important;
358
+  }
359
+  </style>
360
+  

+ 4 - 1
src/xt_pages/stock/inventory.vue Bestand weergeven

@@ -462,6 +462,9 @@ export default {
462 462
               //   list[i].type = 6
463 463
               // }
464 464
               list[i].type =6
465
+
466
+              list[i].last_stock_count = 0
467
+              list[i].last_stock_count = list[i].stock_count
465 468
               
466 469
               list[i].good_name = list[i].GoodInfo.good_name
467 470
               list[i].specification_name = list[i].GoodInfo.specification_name
@@ -501,7 +504,7 @@ export default {
501 504
               }
502 505
             }
503 506
         
504
-          
507
+          console.log("hahhahahahah",newList)
505 508
           this.tableData = newList
506 509
           this.showSearch = false
507 510
           this.showTable = true

+ 9 - 1
src/xt_pages/stock/stockInventory.vue Bestand weergeven

@@ -11,6 +11,9 @@
11 11
             <el-tab-pane label="耗材盘点(模式二)" name="four">
12 12
                 <new-inventory ref="childFour"></new-inventory>
13 13
             </el-tab-pane>
14
+            <!-- <el-tab-pane label="耗材盘点(模式三)" name="five">
15
+                <history-inventory ref="childFive"></history-inventory>
16
+            </el-tab-pane> -->
14 17
             <el-tab-pane label="盘点列表" name="second">
15 18
                 <inventory-details ref="child"></inventory-details>
16 19
             </el-tab-pane>
@@ -29,6 +32,7 @@
29 32
 import BreadCrumb from "../components/bread-crumb";
30 33
 import inventory from './inventory.vue'
31 34
 import newInventory from './newInventory.vue'
35
+import historyInventory from './historyInventory.vue'
32 36
 import inventoryDetails from './inventoryDetails.vue'
33 37
 import stockDamaged from "./stockDamaged.vue"
34 38
 export default {
@@ -38,7 +42,8 @@ export default {
38 42
         inventory,
39 43
         inventoryDetails,
40 44
         stockDamaged,
41
-        newInventory
45
+        newInventory,
46
+        historyInventory
42 47
     },
43 48
     data() {
44 49
         return{
@@ -61,6 +66,9 @@ export default {
61 66
         if(this.activeName =="three"){
62 67
           this.$refs.childOne.getlist()
63 68
         }
69
+        if(this.activeName == "five"){
70
+          this.$refs.childFive.getGoodInventoryList()
71
+        }
64 72
       }
65 73
     },
66 74
     created(){