Commit 9c716ff0 authored by 杨芳博-DEL's avatar 杨芳博-DEL

Merge branch 'master' into login-change

parents 6bae27a0 ded1aee0
<template> <template>
<div> <div>
<router-view></router-view> <keep-alive>
<router-view v-if="$route.meta && $route.meta.keepAlive"></router-view>
</keep-alive>
<router-view v-if="!($route.meta && $route.meta.keepAlive)"></router-view>
</div> </div>
</template> </template>
......
...@@ -8,7 +8,10 @@ export default { ...@@ -8,7 +8,10 @@ export default {
{ {
path:'', path:'',
name: "chargeQueryIndex", name: "chargeQueryIndex",
component: () => import(/* webpackChunkName: "chargeQuery" */"@/views/charge-query/index.vue") component: () => import(/* webpackChunkName: "chargeQuery" */"@/views/charge-query/index.vue"),
meta:{
keepAlive:true
}
}, },
{ {
path: "detail", path: "detail",
...@@ -18,7 +21,10 @@ export default { ...@@ -18,7 +21,10 @@ export default {
{ {
path: "lpjManage", path: "lpjManage",
name: "chargeQueryLpjManage", name: "chargeQueryLpjManage",
component: () => import(/* webpackChunkName: "chargeQuery" */"@/views/charge-query/lpjManage.vue") component: () => import(/* webpackChunkName: "chargeQuery" */"@/views/charge-query/lpjManage.vue"),
meta:{
keepAlive:true
}
}, },
{ {
path: "lpjManageDetail", path: "lpjManageDetail",
......
...@@ -19,6 +19,9 @@ export default { ...@@ -19,6 +19,9 @@ export default {
path: "collection", path: "collection",
name: "VerificationCollection", name: "VerificationCollection",
component: () => import("@/views/verification/collection"), component: () => import("@/views/verification/collection"),
meta:{
keepAlive:true
}
}, },
{ {
path: "collectionDetail", path: "collectionDetail",
......
...@@ -246,7 +246,8 @@ export default { ...@@ -246,7 +246,8 @@ export default {
code: 1 code: 1
} }
], ],
ciReceiptTotalVo: {} ciReceiptTotalVo: {},
iscreated:false
}; };
}, },
components: { components: {
...@@ -258,9 +259,17 @@ export default { ...@@ -258,9 +259,17 @@ export default {
}) })
}, },
created() { created() {
this.iscreated = true
this._getCompanyOptions(); this._getCompanyOptions();
this._getDoctorListNoPage(); //获取医生下拉选项 this._getDoctorListNoPage(); //获取医生下拉选项
}, },
activated(){
if(!this.iscreated){
this._getCompanyOptions();
}else{
this.iscreated = false
}
},
methods: { methods: {
moment, moment,
// 获取未清余额合计 // 获取未清余额合计
......
...@@ -136,16 +136,27 @@ export default { ...@@ -136,16 +136,27 @@ export default {
pageSize: 10, pageSize: 10,
total: 0, total: 0,
}, },
iscreated:false
}; };
}, },
components: { components: {
BurtPagination, BurtPagination,
}, },
created() { created() {
this.iscreated = true
this.getData(); this.getData();
this._getCompanyOptions(); this._getCompanyOptions();
this.getRefcdByRefgrp(); this.getRefcdByRefgrp();
}, },
activated(){
if(!this.iscreated){
this.getData();
this._getCompanyOptions();
this.getRefcdByRefgrp();
}else{
this.iscreated = false
}
},
methods: { methods: {
moment, moment,
// 获取列表数据 // 获取列表数据
...@@ -190,6 +201,7 @@ export default { ...@@ -190,6 +201,7 @@ export default {
handlerReset() { handlerReset() {
this.form = { this.form = {
dateRange: [], dateRange: [],
billDate:[],
payorCode: '', payorCode: '',
sendBatchNo: '', sendBatchNo: '',
sendCompany: '', sendCompany: '',
......
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
<span class="blue-text">{{ totalAmount }}</span> <span class="blue-text">{{ totalAmount }}</span>
<span :style="{color: 'red'}" v-if="invalidActualAmount > 0">(无效{{ invalidActualAmount }}元)</span> <span :style="{color: 'red'}" v-if="invalidActualAmount > 0">(无效{{ invalidActualAmount }}元)</span>
</div> </div>
<a-button v-if="isEditNewBill" size="small" type="primary" @click="checkAll">全选</a-button>
</div> </div>
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button type="primary" @click="handlerSearch"> <a-button type="primary" @click="handlerSearch">
...@@ -235,7 +236,7 @@ export default { ...@@ -235,7 +236,7 @@ export default {
isEditNewBill: false, //是否在新建账单 isEditNewBill: false, //是否在新建账单
pagination: { pagination: {
pageNum: 1, pageNum: 1,
pageSize: 100, pageSize: 200,
total: 0, total: 0,
}, },
editFormObj: { editFormObj: {
...@@ -335,6 +336,28 @@ export default { ...@@ -335,6 +336,28 @@ export default {
} }
this.selectedRowKeys = arr; this.selectedRowKeys = arr;
}, },
// 全选
checkAll() {
this.$apis.QUERYNOSENDRECEIPLIST({
pageNum: 1,
pageSize: this.pagination.total,
payorCode: this.form.payorCode,
...this.searchData
})
.then((res) => {
if (res.returnCode == "0000") {
const dataList = res.content.list || [];
const selectedRowKeys = dataList.map((item, index) => index);
this.onSelectChange(selectedRowKeys)
const index = Math.ceil(dataList.length / this.pagination.pageSize)
for(let i = 1; i < index + 1 ; i++) {
this.cacheDataList[i] = dataList.slice((i-1)*this.pagination.pageSize, i*this.pagination.pageSize)
}
} else {
this.$message.error(res.returnMsg);
}
});
},
// 分页回调 // 分页回调
getPageData(pager) { getPageData(pager) {
if(pager){ if(pager){
...@@ -375,18 +398,22 @@ export default { ...@@ -375,18 +398,22 @@ export default {
getTotal(){ getTotal(){
let totalNum = 0 let totalNum = 0
let totalMoney= 0 let totalMoney= 0
let invalidNum = 0
let invalidActualAmount = 0
if(this.dataList.length>0){ if(this.dataList.length>0){
this.dataList.forEach((item)=>{ this.dataList.forEach((item)=>{
totalNum++ totalNum++
totalMoney = Big(totalMoney).plus(item.actualAmount) totalMoney = Big(totalMoney).plus(item.actualAmount)
if(item.status == 2){ if(item.status == 2){
this.invalidNum++ invalidNum++
this.invalidActualAmount = Big(this.invalidActualAmount).plus(item.actualAmount) invalidActualAmount = Big(invalidActualAmount).plus(item.actualAmount)
} }
}) })
} }
this.totalActualAmount = totalMoney this.totalActualAmount = totalMoney
this.totalListNum = totalNum this.totalListNum = totalNum
this.invalidNum = invalidNum
this.invalidActualAmount = invalidActualAmount
}, },
// 获取保险公司下拉选项 // 获取保险公司下拉选项
_getCompanyOptions() { _getCompanyOptions() {
...@@ -547,7 +574,7 @@ export default { ...@@ -547,7 +574,7 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res.returnCode == "0000") { if (res.returnCode == "0000") {
this.selectedRowKeys = []; // this.selectedRowKeys = [];
let content = res.content || {}; let content = res.content || {};
this.pagination.total = content.total || 0; this.pagination.total = content.total || 0;
this.dataList = content.list || []; this.dataList = content.list || [];
...@@ -618,13 +645,13 @@ export default { ...@@ -618,13 +645,13 @@ export default {
if (res.returnCode == "0000") { if (res.returnCode == "0000") {
this.sendBatchNo = res.content; this.sendBatchNo = res.content;
this.$message.success("成功"); this.$message.success("成功");
this.selectedRowKeys = []; // this.selectedRowKeys = [];
this.cacheDataList = {} this.cacheDataList = {}
if(this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口 if(this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口
this._getNewBillList() this._getNewBillList()
} else { } else {
this.getData() this.getData()
} }
resolve(); resolve();
} else { } else {
this.$message.error(res.returnMsg); this.$message.error(res.returnMsg);
......
...@@ -179,16 +179,26 @@ export default { ...@@ -179,16 +179,26 @@ export default {
{ name: '全部', value: '' }, { name: '全部', value: '' },
{ name: '已结案', value: '1' }, { name: '已结案', value: '1' },
{ name: '暂存', value: '0' } { name: '暂存', value: '0' }
] ],
iscreated: false
}; };
}, },
components: { components: {
BurtPagination, BurtPagination,
}, },
created() { created() {
this.iscreated = true
this.getData(); this.getData();
this._getCompanyOptions(); this._getCompanyOptions();
}, },
activated(){
if(!this.iscreated){
this.getData();
this._getCompanyOptions();
}else{
this.iscreated = false
}
},
methods: { methods: {
moment, moment,
pageChange(pager) { pageChange(pager) {
......
...@@ -145,7 +145,11 @@ ...@@ -145,7 +145,11 @@
</a-form-model> </a-form-model>
<template v-if="activeKey === '1'"> <template v-if="activeKey === '1'">
<div class="bill-content"> <div class="bill-content">
<div class="checked-count">已勾选账单:<span class="blue-text">{{ selectedRowKeys.length || 0 }}</span><span v-if="selectedRows.filter(v=> v.status == 2).length != 0">,其中:无效 <span style="color: red;">{{ selectedRows.filter(v=> v.status == 2).length || 0 }}</span></span></div> <div class="checked-count">
<a-button type="primary" size="small" @click="selectAllList">全选</a-button>
已勾选账单:<span class="blue-text">{{ selectedRowKeys.length || 0 }}</span>
<span v-if="selectedRows.filter(v=> v.status == 2).length != 0">,其中:无效 <span style="color: red;">{{ selectedRows.filter(v=> v.status == 2).length || 0 }}</span></span>
</div>
<a-tabs type="card" v-model="activeKey1"> <a-tabs type="card" v-model="activeKey1">
<a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title"> <a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title">
<div> <div>
...@@ -725,6 +729,37 @@ export default { ...@@ -725,6 +729,37 @@ export default {
} }
this.addNewEvt(0); this.addNewEvt(0);
}, },
// 全选
selectAllList() {
let billDate = this.searchForm.billDate || [];
this.$apis
.QUERYBACKRECEIPTINFOLIST({
pageNum: 1,
pageSize: this.pagination.total,
backMoneyNo: this.backMoneyNo,
payorCode: this.form.payorCode,
...this.searchForm,
receiptEndDate: billDate[1] ? billDate[1] + ' 23:59:59' : undefined,
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined
})
.then((res) => {
if (res.returnCode == '0000') {
let content = res.content || {};
const dataList =
content.list.map((item) => {
item.arrearsAmountShow = item.arrearsAmount;
item.arrearsAmount = '';
return item;
}) || [];
//
this.selectedRowKeys = dataList.map(item => item.id)
this.selectedRows = dataList
this.addNewEvt(0);
} else {
this.$message.error(res.returnMsg);
}
});
},
delRecord(record, index) { delRecord(record, index) {
this.selectedRowKeys.splice(index, 1); this.selectedRowKeys.splice(index, 1);
this.selectedRows.splice(index, 1); this.selectedRows.splice(index, 1);
...@@ -1110,5 +1145,9 @@ export default { ...@@ -1110,5 +1145,9 @@ export default {
position: absolute; position: absolute;
top: 14px; top: 14px;
left: 210px; left: 210px;
z-index: 10;
button {
margin-right: 6px;
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment