瀏覽代碼

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

XMLWAN 3 年之前
父節點
當前提交
1df941f15e

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

6
     <div>
6
     <div>
7
         <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
7
         <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
             <div>
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
                 <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
13
                 <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14
                           @keyup.enter.native='searchAction'
14
                           @keyup.enter.native='searchAction'
15
                           placeholder="请输入患者姓名"
15
                           placeholder="请输入患者姓名"
104
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
104
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
105
   import { GetSummaryDetail } from '@/api/his/his'
105
   import { GetSummaryDetail } from '@/api/his/his'
106
   import { uParseTime } from '@/utils/tools'
106
   import { uParseTime } from '@/utils/tools'
107
+  import axios from 'axios'
108
+
107
   // import NewStatementPrint from './newStatementPrint'
109
   // import NewStatementPrint from './newStatementPrint'
108
   const moment = require('moment')
110
   const moment = require('moment')
109
   export default {
111
   export default {
132
       }
134
       }
133
     },
135
     },
134
     methods: {
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
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
202
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
136
         if (columnIndex === 0) {
203
         if (columnIndex === 0) {
137
           if (rowIndex % 2 === 0) {
204
           if (rowIndex % 2 === 0) {

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

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

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

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