XMLWAN 3 anni fa
parent
commit
d6821fc3df

+ 8 - 0
src/api/his/his_tools.js Vedi File

14
     params: params
14
     params: params
15
   })
15
   })
16
 }
16
 }
17
+
18
+export function getGatherDetailList(params) {
19
+  return request({
20
+    url: '/api/his/getgatherdetailist',
21
+    method: 'get',
22
+    params: params
23
+  })
24
+}

+ 29 - 33
src/xt_pages/outpatientTool/components/detailStatistics.vue Vedi File

45
     </div>
45
     </div>
46
     <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
46
     <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
47
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
47
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
48
-              show-summary
49
               max-height="600"
48
               max-height="600"
50
-              :summary-method="getSummaries"
51
               v-loading="detail_loading"
49
               v-loading="detail_loading"
52
               highlight-current-row>
50
               highlight-current-row>
53
       <el-table-column type="index" label="序号" width="60px" align="center">
51
       <el-table-column type="index" label="序号" width="60px" align="center">
54
         <template slot-scope="scope">
52
         <template slot-scope="scope">
55
-          {{scope.$index + 1}}
53
+          {{scope.row.index}}
56
         </template>
54
         </template>
57
       </el-table-column>
55
       </el-table-column>
58
       <el-table-column align="center" prop="name" label="处方日期">
56
       <el-table-column align="center" prop="name" label="处方日期">
94
       <el-table-column align="center" prop="name" label="金额">
92
       <el-table-column align="center" prop="name" label="金额">
95
         <template slot-scope="scope">
93
         <template slot-scope="scope">
96
           <div>
94
           <div>
97
-            {{(scope.row.cnt * scope.row.pric).toFixed(2)}}
95
+            {{scope.row.total_price}}
98
           </div>
96
           </div>
99
         </template>
97
         </template>
100
       </el-table-column>
98
       </el-table-column>
101
-
99
+     
102
     </el-table>
100
     </el-table>
101
+     <div>总费用:{{getAllPice()}}</div>
102
+     <div>个人支付:</div>
103
+     <div>基金支付记账:</div>
104
+     <div>补充医疗支付记账:</div>
105
+    <div>救助支付金额:</div>
103
   </div>
106
   </div>
104
 
107
 
105
   <!-- </div> -->
108
   <!-- </div> -->
146
     }
149
     }
147
   },
150
   },
148
   methods: {
151
   methods: {
149
-    getSummaries(param) {
150
-      
151
-        const { columns, data } = param;
152
-        const sums = [];
153
-        columns.forEach((column, index) => {
154
-          console.log("column233232323232",column)
155
-          if (index === 0) {
156
-            sums[index] = '总价';
157
-            return;
158
-          }
159
-          const values = data.map(item => Number(item[column.property]));
160
-          if (!values.every(value => isNaN(value))) {
161
-            sums[index] = values.reduce((prev, curr) => {
162
-              const value = Number(curr);
163
-              if (!isNaN(value)) {
164
-                return prev + curr;
165
-              } else {
166
-                return prev;
167
-              }
168
-            }, 0);
169
-            sums[index] += ' 元';
170
-          } else {
171
-            sums[index] = 'N/A';
172
-          }
173
-        });
174
-        return sums;
175
-    },
176
     getTime(val) {
152
     getTime(val) {
177
-      if(val < 0){
153
+      if(val <= 0){
178
         return ""
154
         return ""
179
       }
155
       }
180
       if(val == ""){
156
       if(val == ""){
217
                }
193
                }
218
             }
194
             }
219
           }
195
           }
196
+          var obj = {index:"合计",total_price:0,record_date:"0"}
197
+          for(let i=0;i<this.tableData.length;i++){
198
+            this.tableData[i].index = i+1
199
+            this.tableData[i].total_price = 0
200
+            this.tableData[i].total_price = (this.tableData[i].cnt * this.tableData[i].pric).toFixed(2)
201
+            obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
202
+          }
203
+          obj.total_price = (obj.total_price).toFixed(2)
204
+          this.tableData.push(obj)
205
+          
220
           console.log("tabledata",this.tableData)
206
           console.log("tabledata",this.tableData)
221
        }
207
        }
222
      })
208
      })
223
     },
209
     },
210
+    getAllPice(){
211
+      console.log("hhhhh",this.tableData)
212
+      var total_price = 0
213
+      for(let i=0;i<this.tableData.length;i++){
214
+        if(this.tableData[i].index =="合计"){
215
+          total_price = this.tableData[i].total_price
216
+        }
217
+      }
218
+      return total_price
219
+    }
224
   },
220
   },
225
   created() {
221
   created() {
226
    // this.getHisSummaryDetailList()
222
    // this.getHisSummaryDetailList()

+ 18 - 13
src/xt_pages/outpatientTool/components/gatherStatistics.vue Vedi File

51
               highlight-current-row>
51
               highlight-current-row>
52
       <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
52
       <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
53
       <el-table-column align="center" prop="name" label="处方日期">
53
       <el-table-column align="center" prop="name" label="处方日期">
54
-        <template slot-scope="scope">{{  }}</template>
54
+        <template slot-scope="scope"></template>
55
       </el-table-column>
55
       </el-table-column>
56
       <el-table-column align="center" prop="name" label="费用分类">
56
       <el-table-column align="center" prop="name" label="费用分类">
57
-        <template slot-scope="scope">{{scope.row.code}}</template>
57
+        <template slot-scope="scope"></template>
58
       </el-table-column>
58
       </el-table-column>
59
       <el-table-column align="center" prop="name" label="项目名称">
59
       <el-table-column align="center" prop="name" label="项目名称">
60
-        <template slot-scope="scope">{{scope.row.item_name}}</template>
60
+        <template slot-scope="scope"></template>
61
       </el-table-column>
61
       </el-table-column>
62
       <el-table-column align="center" prop="name" label="规格型号">
62
       <el-table-column align="center" prop="name" label="规格型号">
63
-        <template slot-scope="scope">{{scope.row.item_spec}}</template>
63
+        <template slot-scope="scope"></template>
64
       </el-table-column>
64
       </el-table-column>
65
       <el-table-column align="center" prop="name" label="数量">
65
       <el-table-column align="center" prop="name" label="数量">
66
-        <template slot-scope="scope">{{scope.row.count}}</template>
66
+        <template slot-scope="scope"></template>
67
       </el-table-column>
67
       </el-table-column>
68
       <el-table-column align="center" prop="name" label="单价">
68
       <el-table-column align="center" prop="name" label="单价">
69
-        <template slot-scope="scope">{{scope.row.price.toFixed(2)}}</template>
69
+        <template slot-scope="scope"></template>
70
       </el-table-column>
70
       </el-table-column>
71
       <el-table-column align="center" prop="name" label="金额">
71
       <el-table-column align="center" prop="name" label="金额">
72
         <template slot-scope="scope">
72
         <template slot-scope="scope">
73
-          <div>{{(scope.row.price.toFixed(2)*scope.row.count).toFixed(2)}}</div>
73
+          <div></div>
74
         </template>
74
         </template>
75
       </el-table-column>
75
       </el-table-column>
76
       <el-table-column align="center" prop="name" label="医保类别">
76
       <el-table-column align="center" prop="name" label="医保类别">
79
 
79
 
80
     </el-table>
80
     </el-table>
81
   </div>
81
   </div>
82
-
83
-  <!-- </div> -->
84
 </template>
82
 </template>
85
 
83
 
86
 
84
 
87
 <script>
85
 <script>
88
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
86
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
89
-import {  } from '@/api/his/his'
87
+import { getGatherDetailList } from '@/api/his/his_tools'
90
 const moment = require('moment')
88
 const moment = require('moment')
91
 export default {
89
 export default {
92
   components: {
90
   components: {
133
     changeItem() {
131
     changeItem() {
134
       this.getSummaryDetailList()
132
       this.getSummaryDetailList()
135
     },
133
     },
136
-    getSummaryDetailList() {
134
+    getGatherDetailList() {
137
       let start_time = this.chargeDate[0]
135
       let start_time = this.chargeDate[0]
138
       let end_time = this.chargeDate[1]
136
       let end_time = this.chargeDate[1]
139
       let params = {
137
       let params = {
143
         type: this.item_type,
141
         type: this.item_type,
144
         keyword: this.keywords
142
         keyword: this.keywords
145
       }
143
       }
146
-
144
+     getGatherDetailList(params).then(response=>{
145
+       if(response.data.state == 1){
146
+         var detailList = response.data.data.detailList
147
+         console.log("detailist232323322332",detailList)
148
+         var list = response.data.data.list
149
+         console.log("list233223232323",list)
150
+       }
151
+     })
147
 
152
 
148
 
153
 
149
     },
154
     },
150
   },
155
   },
151
   created() {
156
   created() {
152
-    this.getSummaryDetailList()
157
+    this.getGatherDetailList()
153
 
158
 
154
   }
159
   }
155
 }
160
 }

+ 19 - 3
src/xt_pages/stock/stockBatchNumber.vue Vedi File

5
     </div>
5
     </div>
6
     <div class="app-container ">
6
     <div class="app-container ">
7
       <div class="cell clearfix">
7
       <div class="cell clearfix">
8
-        耗材名称:{{this.$route.query.good_name}} &nbsp;
8
+        耗材名称:{{getGoodName(this.$route.query.id)}} &nbsp;
9
         库存:{{this.$route.query.overCount}}{{packing_unit}} &nbsp;
9
         库存:{{this.$route.query.overCount}}{{packing_unit}} &nbsp;
10
-        规格:{{this.$route.query.specification_name}} &nbsp;
10
+        规格:{{getSpecName(this.$route.query.id)}} &nbsp;
11
         厂家:{{this.$route.query.manufacturer}} 
11
         厂家:{{this.$route.query.manufacturer}} 
12
       </div>
12
       </div>
13
       <div class="cell clearfix">
13
       <div class="cell clearfix">
189
         packing_unit:"",
189
         packing_unit:"",
190
         cancelCountList:[],
190
         cancelCountList:[],
191
         houseList:[],
191
         houseList:[],
192
+        good:{}
192
       }
193
       }
193
     },
194
     },
194
     methods:{
195
     methods:{
259
            var manufacturerList = response.data.data.manufacturerList
260
            var manufacturerList = response.data.data.manufacturerList
260
            this.manufacturerList = manufacturerList
261
            this.manufacturerList = manufacturerList
261
            this.houseList = response.data.data.houseList
262
            this.houseList = response.data.data.houseList
263
+           this.good = response.data.data.good
262
          }
264
          }
263
       })
265
       })
264
      },
266
      },
345
         }
347
         }
346
         return storehouse_name
348
         return storehouse_name
347
      },
349
      },
348
-      
350
+     getGoodName(id){
351
+       
352
+       var good_name =  ""
353
+       if(id == this.good.id){
354
+         good_name = this.good.good_name
355
+       }
356
+       return good_name
357
+     },
358
+     getSpecName(id){
359
+       var specification_name = ""
360
+       if(id == this.good.id){
361
+         specification_name = this.good.specification_name
362
+       }
363
+       return specification_name
364
+     }
349
 
365
 
350
     }
366
     }
351
   }
367
   }

+ 17 - 2
src/xt_pages/stock/stockFlow.vue Vedi File

5
     </div>
5
     </div>
6
     <div class="app-container ">
6
     <div class="app-container ">
7
       <div class="cell clearfix">
7
       <div class="cell clearfix">
8
-       耗材名称:{{this.$route.query.good_name}} &nbsp;
8
+       耗材名称:{{getGoodName(this.$route.query.id)}} &nbsp;
9
        库存: {{this.$route.query.overCount}}{{packing_unit}} &nbsp;
9
        库存: {{this.$route.query.overCount}}{{packing_unit}} &nbsp;
10
        规格:{{this.$route.query.specification_name}} &nbsp;
10
        规格:{{this.$route.query.specification_name}} &nbsp;
11
-       厂家:{{this.$route.query.manufacturer}} 
11
+       厂家:{{getSpecName(this.$route.query.id)}}
12
       </div>
12
       </div>
13
       <div class="cell clearfix">
13
       <div class="cell clearfix">
14
         <span>日期查询:</span>
14
         <span>日期查询:</span>
451
         }
451
         }
452
         return storehouse_name
452
         return storehouse_name
453
      },
453
      },
454
+     getGoodName(id){
455
+       
456
+       var good_name =  ""
457
+       if(id == this.good.id){
458
+         good_name = this.good.good_name
459
+       }
460
+       return good_name
461
+     },
462
+     getSpecName(id){
463
+       var specification_name = ""
464
+       if(id == this.good.id){
465
+         specification_name = this.good.specification_name
466
+       }
467
+       return specification_name
468
+     }
454
     }
469
     }
455
   }
470
   }
456
 </script>
471
 </script>

+ 3 - 2
src/xt_pages/stock/stockQuery.vue Vedi File

575
       var overCount  = this.getOverplus(val.xt_warehouse_info)
575
       var overCount  = this.getOverplus(val.xt_warehouse_info)
576
       window.sessionStorage.setItem('start_time',this.start_time)
576
       window.sessionStorage.setItem('start_time',this.start_time)
577
       window.sessionStorage.setItem('end_time',this.end_time)
577
       window.sessionStorage.setItem('end_time',this.end_time)
578
-      this.$router.push({path:"/stock/in/stockflow?id="+val.id+"&good_name="+val.good_name+"&manufacturer="+manufacturer_name+"&specification_name="+specification_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
578
+      console.log("val3234243423324324234",val.id)
579
+      this.$router.push({path:"/stock/in/stockflow?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
579
     },
580
     },
580
     toClickOne(val){
581
     toClickOne(val){
581
        var manufacturer_name = ""
582
        var manufacturer_name = ""
589
       var overCount  = this.getOverplus(val.xt_warehouse_info)
590
       var overCount  = this.getOverplus(val.xt_warehouse_info)
590
       window.sessionStorage.setItem('start_time',this.start_time)
591
       window.sessionStorage.setItem('start_time',this.start_time)
591
       window.sessionStorage.setItem('end_time',this.end_time)
592
       window.sessionStorage.setItem('end_time',this.end_time)
592
-      this.$router.push({path:"/stock/in/stockbatchnumber?id="+val.id+"&good_name="+val.good_name+"&manufacturer="+manufacturer_name+"&specification_name="+specification_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
593
+      this.$router.push({path:"/stock/in/stockbatchnumber?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
593
     },
594
     },
594
     getStockDrugCount(){
595
     getStockDrugCount(){
595
         var params ={
596
         var params ={