瀏覽代碼

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 年之前
父節點
當前提交
7566933418

+ 71 - 4
src/xt_pages/outpatientTool/components/detail.vue 查看文件

@@ -6,10 +6,10 @@
6 6
     <div>
7 7
         <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 8
             <div>
9
-                <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
10
-                <!--@click="Action">-->
11
-                <!--导出-->
12
-                <!--</el-button>-->
9
+                <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
10
+                @click="Action">
11
+                导出
12
+                </el-button>
13 13
                 <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14 14
                           @keyup.enter.native='searchAction'
15 15
                           placeholder="请输入患者姓名"
@@ -104,6 +104,8 @@
104 104
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
105 105
   import { GetSummaryDetail } from '@/api/his/his'
106 106
   import { uParseTime } from '@/utils/tools'
107
+  import axios from 'axios'
108
+
107 109
   // import NewStatementPrint from './newStatementPrint'
108 110
   const moment = require('moment')
109 111
   export default {
@@ -132,6 +134,71 @@
132 134
       }
133 135
     },
134 136
     methods: {
137
+      Action(){
138
+        var that = this
139
+        axios.get('http://127.0.0.1:9531/handelExcel', {
140
+          params: {}
141
+        })
142
+          .then(function(response) {
143
+            if (response.data.state == 0) {
144
+              that.$message.error(response.data.msg)
145
+
146
+
147
+              return false
148
+            } else {
149
+
150
+              var list = []
151
+              for(let i = 0; i < response.data.data.list.length; i++){
152
+                let team =  response.data.data.list[i]
153
+                for(let b = 0; b < team.list.length; b++){
154
+                  let name = ""
155
+                  if(team.list[b].type == 2){
156
+                    name = team.list[b].project.project_name
157
+                  }else{
158
+
159
+                    name = team.list[b].good_info.good_name
160
+
161
+                  }
162
+
163
+                  let obj = {
164
+                    '客户组合编码': team.id,
165
+                    '客户组合名称': team.project_team,
166
+                    '客户单项编码': team.list[b].id,
167
+                    '客户单项名称': name,
168
+                    '中心组合编码': '',
169
+                    '中心组合名称': '',
170
+                    '中心单项编码': '',
171
+                    '中心单项名称': '',
172
+                  }
173
+
174
+                  list.push(obj)
175
+                }
176
+              }
177
+
178
+              import('@/vendor/Export2Excel').then(excel => {
179
+                const tHeader = [ '客户组合编码', '客户组合名称', '客户单项编码', '客户单项名称', '中心组合编码', '中心组合名称', '中心单项编码', '中心单项名称']
180
+                const filterVal = [ '客户组合编码', '客户组合名称', '客户单项编码', '客户单项名称', '中心组合编码', '中心组合名称', '中心单项编码', '中心单项名称']
181
+                const data = that.formatJson(filterVal, list)
182
+                excel.export_json_to_excel({
183
+                  header: tHeader,
184
+                  data,
185
+                  filename: "消费明细"
186
+                })
187
+              })
188
+
189
+
190
+            }
191
+          })
192
+          .catch(function(error) {
193
+
194
+          })
195
+
196
+
197
+
198
+
199
+      },formatJson(filterVal, jsonData) {
200
+        return jsonData.map(v => filterVal.map(j => v[j]))
201
+      },
135 202
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
136 203
         if (columnIndex === 0) {
137 204
           if (rowIndex % 2 === 0) {

+ 24 - 3
src/xt_pages/outpatientTool/components/settle.vue 查看文件

@@ -91,6 +91,16 @@
91 91
           <el-table-column align="center" prop="item_name" label="个人支付金额">
92 92
               <template slot-scope="scope">{{scope.row.psn_cash_pay.toFixed(2)}}</template>
93 93
           </el-table-column>
94
+
95
+          <el-table-column align="center" prop="item_name" label="企业补充医疗保险基金支出">
96
+              <template slot-scope="scope">{{scope.row.hifes_pay.toFixed(2)}}</template>
97
+          </el-table-column>
98
+
99
+
100
+          <el-table-column align="center" prop="item_name" label="居民大病保险资金支出">
101
+              <template slot-scope="scope">{{scope.row.hifmi_pay.toFixed(2)}}</template>
102
+          </el-table-column>
103
+
94 104
           <el-table-column align="center" prop="total" label="费用总额">
95 105
               <template slot-scope="scope">
96 106
                   <div>{{scope.row.total.toFixed(2)}}</div>
@@ -126,7 +136,10 @@
126 136
           { id: 1, name: '医保' },
127 137
           { id: 2, name: '自费' },
128 138
           { id: 3, name: '门诊特殊病' },
129
-          { id: 4, name: '普通门诊' }
139
+          { id: 4, name: '普通门诊' },
140
+          { id: 5, name: '城乡居民基本医疗保险' },
141
+          { id: 6, name: '职工基本医疗保险' }
142
+
130 143
 
131 144
         ]
132 145
 
@@ -332,7 +345,10 @@
332 345
           let fund_pay_sumamt = ""
333 346
           let acct_pay = ""
334 347
           let psn_cash_pay = ""
348
+          let hifes_pay = ""
349
+          let hifmi_pay = ""
335 350
           let total = ""
351
+
336 352
           if(order.setl_time.length == 0){
337 353
 
338 354
             time = this.getTimes(order.settle_accounts_date)
@@ -363,6 +379,8 @@
363 379
           fund_pay_sumamt = order.fund_pay_sumamt
364 380
           acct_pay = order.acct_pay
365 381
           psn_cash_pay = order.psn_cash_pay
382
+          hifes_pay = order.hifes_pay
383
+          hifmi_pay = order.hifmi_pay
366 384
           total = order.total
367 385
 
368 386
 
@@ -375,13 +393,16 @@
375 393
             '基金支付金额': fund_pay_sumamt,
376 394
             '个人账户支付金额': acct_pay,
377 395
             '个人支付基金': psn_cash_pay,
396
+            '企业补充医疗保险基金支出': hifes_pay,
397
+            '居民大病保险资金支出': hifmi_pay,
378 398
             '费用总额':total,
399
+
379 400
           }
380 401
           list.push(obj)
381 402
         }
382 403
         import('@/vendor/Export2Excel').then(excel => {
383
-          const tHeader = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金', '费用总额']
384
-          const filterVal = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金', '费用总额']
404
+          const tHeader = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金','企业补充医疗保险基金支出','居民大病保险资金支出', '费用总额']
405
+          const filterVal = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金','企业补充医疗保险基金支出','居民大病保险资金支出',  '费用总额']
385 406
           const data = this.formatJson(filterVal, list)
386 407
           excel.export_json_to_excel1({
387 408
             header: tHeader,

+ 6 - 14
src/xt_pages/outpatientTool/fapiao.vue 查看文件

@@ -216,7 +216,6 @@
216 216
           .catch(() => {
217 217
           })
218 218
       },
219
-
220 219
       handleIsUse: function(index, row) {
221 220
         this.$confirm('是否开启?', '开启', {
222 221
           confirmButtonText: '确定',
@@ -244,7 +243,6 @@
244 243
           })
245 244
 
246 245
       },
247
-
248 246
       showDetails: function(index, row) {
249 247
         let params = {
250 248
           id: row.id
@@ -272,7 +270,6 @@
272 270
             fapiao_code: val.fapiao_code,
273 271
             fapiao_number: val.fapiao_number,
274 272
             id: this.editId
275
-
276 273
           }
277 274
           modifyFaPiao(params).then(response => {
278 275
             if (response.data.state == 0) {
@@ -290,6 +287,7 @@
290 287
             }
291 288
           })
292 289
         } else if (val.isCreated == 1) {
290
+
293 291
           //新增
294 292
           createFaPiao(val).then(response => {
295 293
             if (response.data.state == 0) {
@@ -301,27 +299,22 @@
301 299
             }
302 300
           })
303 301
         }
304
-      },
305
-      dialogCancle: function() {
302
+      }, dialogCancle: function() {
306 303
         this.$refs.dialog.hide()
307
-      },
308
-      showDialog: function() {
304
+      }, showDialog: function() {
309 305
         this.Dialog.formValue = Object.assign(
310 306
           {},
311 307
           this.Dialog.resetForm
312 308
         )
313 309
         this.$refs.dialog.show()
314 310
         this.Dialog.isCreated = 1
315
-      },
316
-      handleSizeChange(val) {
311
+      }, handleSizeChange(val) {
317 312
         this.limit = val
318 313
         this.getList()
319
-      },
320
-      handleCurrentChange(val) {
314
+      }, handleCurrentChange(val) {
321 315
         this.page = val
322 316
         this.getList()
323
-      },
324
-      getList() {
317
+      }, getList() {
325 318
         let params = {
326 319
           page: this.page,
327 320
           limit: this.limit
@@ -356,7 +349,6 @@
356 349
     .el-table--group {
357 350
         border-color: #d0d3da;
358 351
     }
359
-
360 352
     .el-table--border::after,
361 353
     .el-table--group::after,
362 354
     .el-table::before {