Commit 54a5fa27 authored by 朱彩云's avatar 朱彩云

Merge branch 'func-eccs-2127' into 'master'

ECCS 2127 商保系统回款多字段修改&&样式优化

See merge request !35
parents c816ef8f d29d1b66
...@@ -15,5 +15,7 @@ export default { ...@@ -15,5 +15,7 @@ export default {
queryBackReceiptList: "/backstage/auth/queryBackReceiptList", //回销关联账单列表查询 queryBackReceiptList: "/backstage/auth/queryBackReceiptList", //回销关联账单列表查询
queryReceiptInfoList: "/backstage/auth/queryReceiptInfoList", //回销账单列表查询 queryReceiptInfoList: "/backstage/auth/queryReceiptInfoList", //回销账单列表查询
deleteReceiptRecord: "/backstage/auth/deleteBackReceipt", // 删除已关联账单 deleteReceiptRecord: "/backstage/auth/deleteBackReceipt", // 删除已关联账单
exportBackMoneyReport: "/backstage/auth/backMoneyListExport", // 回款列表导出
exportBackReceiptList: "/backstage/auth/exportBackReceiptList", // 关联账单列表导出
}; };
...@@ -67,6 +67,16 @@ const DELETERECEIPTRECORD = (data) => { ...@@ -67,6 +67,16 @@ const DELETERECEIPTRECORD = (data) => {
return req.post(apis.deleteReceiptRecord, data); return req.post(apis.deleteReceiptRecord, data);
}; };
// 回款列表导出
const EXPORTBACKMONEYREPORT = (data) => {
return req.post(apis.exportBackMoneyReport, data, { responseType: "blob" });
};
// 关联账单导出
const EXPORTBACKRECEIPTLIST = (data) => {
return req.post(apis.exportBackReceiptList, data, { responseType: "blob" });
};
// 对象数组 // 对象数组
export default { export default {
QUERYEOBLIST, QUERYEOBLIST,
...@@ -82,5 +92,7 @@ export default { ...@@ -82,5 +92,7 @@ export default {
EOBRECEIPLISTEXPORT, EOBRECEIPLISTEXPORT,
QUERYBACKRECEIPTLIST, QUERYBACKRECEIPTLIST,
QUERYBACKRECEIPTINFOLIST, QUERYBACKRECEIPTINFOLIST,
DELETERECEIPTRECORD DELETERECEIPTRECORD,
EXPORTBACKMONEYREPORT,
EXPORTBACKRECEIPTLIST
}; };
\ No newline at end of file
//性别 //性别
const sexOptions = [{ const sexOptions = [{
name: '', name: '',
value: 'M' value: 'M'
}, { }, {
name: '', name: '',
value: 'F' value: 'F'
}]; }];
//寄送状态 //寄送状态
const SendStatusOptions = [ const SendStatusOptions = [
{ name: '未寄送', value: '1'}, { name: '未寄送', value: '1'},
{ name: '寄送', value: '2'}, { name: '寄送', value: '2'},
{ name: '待寄送', value: '3'}, { name: '待寄送', value: '3'},
]; ];
//理赔状态 //理赔状态
const ClaimsStatusOptions = [ const ClaimsStatusOptions = [
{ name: '赔付', value: '01'}, { name: '赔付', value: '01'},
{ name: '部分赔付', value: '02'}, { name: '部分赔付', value: '02'},
{ name: '拒赔', value: '03'}, { name: '拒赔', value: '03'},
{ name: '补充材料', value: '04'}, { name: '补充材料', value: '04'},
]; ];
//EOB状态 //EOB状态
const EOBStatusOptions = [ const EOBStatusOptions = [
{ name: '待回款', value: '1'}, { name: '待回款', value: '1'},
{ name: '已回款', value: '2'}, { name: '已回款', value: '2'},
{ name: '未回款', value: '3'} { name: '未回款', value: '3'}
]; ];
//申请状态 //申请状态
const ApplyStatusOptions = [ const ApplyStatusOptions = [
{ name: '申请中', value: '01'}, { name: '申请中', value: '01'},
{ name: '预授权批准', value: '02'}, { name: '预授权批准', value: '02'},
{ name: '预授权拒绝', value: '03'}, { name: '预授权拒绝', value: '03'},
{ name: '预授权调查', value: '04'}, { name: '预授权调查', value: '04'},
]; ];
//审批结果 //审批结果
const ApproveStatusOptions = [ const ApproveStatusOptions = [
{ name: '未通过', value: '1'}, { name: '未通过', value: '1'},
{ name: '已通过', value: '2'} { name: '已通过', value: '2'}
]; ];
//monetUnit //monetUnit
const MoneyUnitOptions = [ const MoneyUnitOptions = [
{ name: '', value: '01'}, { name: '', value: '01'},
{ name: '美元', value: '02'}, { name: '美元', value: '02'},
{ name: '英镑', value: '03'}, { name: '英镑', value: '03'},
{ name: '欧元', value: '04'}, { name: '欧元', value: '04'},
]; ];
// 账单类型
const receiptTypeOptions = [
module.exports = { { name: '收费', value: '1'},
sexOptions, { name: '退费', value: '2'},
SendStatusOptions, ];
ClaimsStatusOptions,
EOBStatusOptions,
ApplyStatusOptions, module.exports = {
ApproveStatusOptions, sexOptions,
MoneyUnitOptions, SendStatusOptions,
ClaimsStatusOptions,
EOBStatusOptions,
ApplyStatusOptions,
ApproveStatusOptions,
MoneyUnitOptions,
receiptTypeOptions
} }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<template> <template>
<div class="white_bg burt-container"> <div class="white_bg burt-container">
<img src="../../assets/image/home_bg.jpg" alt=""> <img src="../../assets/image/home_bg.jpg" alt="">
</div> </div>
</template> </template>
<script> <script>
export default{ export default{
data(){ data(){
return{ return{
} }
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.burt-container{ .burt-container{
height: calc(100vh - 116px); height: calc(100vh - 86px);
padding: 0; padding: 0;
img{ img{
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
} }
} }
</style> </style>
\ No newline at end of file
<template>
<div class="sub-menu">
<router-link
tag="button"
:class="{ btn: true, 'btn-active': isVisit(item.path) }"
v-for="(item, index) in menuStack"
:key="item.path"
:to="item.path"
>
{{ item.title }}
<Icon v-if="menuStack.length>1"
@click="(e)=>closeMenu(e, index)"
:name="isVisit(item.path) ? 'ssiclose_active' : 'ssiclose'"
:size="16"
/>
</router-link>
<slot name="tips" />
</div>
</template>
<script>
import { mapState } from "vuex";
export default {
computed: {
...mapState({
menuStack: (state) => state.common.menuStack,
}),
},
methods: {
isVisit(val) {
const path = this.$route.path;
return path === val;
},
closeMenu(e, index) {
e.stopPropagation();
const menuStack = JSON.parse(JSON.stringify(this.menuStack));
const isVisit = this.isVisit(menuStack[index].path);
menuStack.splice(index, 1);
this.$store.commit("common/setMenuStack", menuStack);
if (isVisit) {
// 关闭的是当前正在查看的
const i = Math.max(0, index - 1);
this.$router.push(menuStack[i].path || "/");
}
},
},
};
</script>
<style lang="less" scoped>
.sub-menu {
width: 100%;
overflow-x: auto;
white-space: nowrap;
.mg-b(16);
.btn {
.fs(14);
.lh(20);
.pa(8, 13, 8, 13);
.mg-r(40);
color: #252631;
font-weight: bold;
border: none;
background-color: #fff;
border-radius: 5px;
cursor: pointer;
}
.btn-active {
color: #fff;
background-color: #2b63ff;
}
}
</style>
<template> <template>
<div class="menu-layout"> <div class="menu-layout">
<Header></Header> <Header></Header>
<div class="container"> <div class="container">
<Menu></Menu> <Menu></Menu>
<Loading /> <Loading />
<div class="content"> <div class="content">
<SubMenu></SubMenu> <router-view />
<router-view /> </div>
</div> </div>
</div> </div>
</div> </template>
</template>
<script>
<script> import Header from "./components/Header.vue";
import Header from "./components/Header.vue"; import Menu from "./components/menu";
import Menu from "./components/menu"; import Loading from "@/components/Loading/Loading.vue";
import SubMenu from "./components/menu/subMenu.vue";
import Loading from "@/components/Loading/Loading.vue"; export default {
components: {
export default { Header,
components: { Menu,
Header, Loading
Menu, },
SubMenu, data() {
Loading return {};
}, },
data() {
return {}; created() {},
}, mounted() {},
methods: {},
created() {}, };
mounted() {}, </script>
methods: {},
}; <style>
</script> .icon-class.arrow{
position: absolute;
<style> right: 0;
.icon-class.arrow{ top: 50%;
position: absolute; transform: translateY(-50%);
right: 0; }
top: 50%; </style>
transform: translateY(-50%); <style lang="less" scoped>
} .menu-layout {
</style> background-color: #f8fafb;
<style lang="less" scoped> font-family: "Helvetica" "Microsoft YaHei" "微软雅黑";
.menu-layout { .container {
background-color: #f8fafb; display: flex;
font-family: "Helvetica" "Microsoft YaHei" "微软雅黑"; position: relative;
.container { .pt(68);
display: flex; // min-height: calc(100vh - 50px);
position: relative; .content {
.pt(68); position: relative;
// min-height: calc(100vh - 50px); flex: 1;
.content { .mg-l(242);
position: relative; .pa(14, 40, 0, 40);
flex: 1; min-height: calc(100vh - 68px);
.mg-l(242); overflow-x: hidden;
.pa(14, 40, 0, 40); }
min-height: calc(100vh - 68px); }
overflow-x: hidden; .menu {
} position: fixed;
} .w(242);
.menu { height: calc(100vh - 68px);
position: fixed; overflow: auto;
.w(242); background-color: #fff;
height: calc(100vh - 68px); li{
overflow: auto; position: relative;
background-color: #fff; }
li{ }
position: relative; }
} </style>
}
}
</style>
...@@ -57,6 +57,11 @@ ...@@ -57,6 +57,11 @@
<a-input v-model="form.backAmountCny" placeholder="回款金额" /> <a-input v-model="form.backAmountCny" placeholder="回款金额" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="回款编号">
<a-input v-model="form.backMoneyNo" placeholder="回款编号" />
</a-form-model-item>
</a-col>
<a-col :md="24" class="none-label"> <a-col :md="24" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="handlerSearch"> <a-button class="mar-left10" type="primary" @click="handlerSearch">
...@@ -72,6 +77,9 @@ ...@@ -72,6 +77,9 @@
<a-button class="mar-left10" type="primary" @click="addNewEvt"> <a-button class="mar-left10" type="primary" @click="addNewEvt">
<Icon name="ssiadd" :size="14" />新建回款 <Icon name="ssiadd" :size="14" />新建回款
</a-button> </a-button>
<a-button class="mar-left10" type="primary" @click="exportExcel">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
...@@ -109,6 +117,7 @@ ...@@ -109,6 +117,7 @@
<script> <script>
import BurtPagination from "@/components/CUSTOMER/pagation"; import BurtPagination from "@/components/CUSTOMER/pagation";
import moment from "moment"; import moment from "moment";
import { exportFile } from '@/utils/index';
const columns = [ const columns = [
{ title: "回款编号", dataIndex: "backMoneyNo", ellipsis: true, width: 150 }, { title: "回款编号", dataIndex: "backMoneyNo", ellipsis: true, width: 150 },
{ title: "EOB编号", dataIndex: "eobNos", ellipsis: true, width: 140 }, { title: "EOB编号", dataIndex: "eobNos", ellipsis: true, width: 140 },
...@@ -149,6 +158,7 @@ export default { ...@@ -149,6 +158,7 @@ export default {
endDate: "", endDate: "",
backStatus: "", backStatus: "",
backAmountCny: "", // 回款金额 backAmountCny: "", // 回款金额
backMoneyNo: "", // 回款编号
}, },
dataList: [], dataList: [],
companyOptions: [], //保险公司 companyOptions: [], //保险公司
...@@ -295,6 +305,16 @@ export default { ...@@ -295,6 +305,16 @@ export default {
onCancel: () => {}, onCancel: () => {},
}); });
}, },
//导出报表
exportExcel(){
let filter = {
...this.form,
dateRange: undefined,
}
this.$apis.EXPORTBACKMONEYREPORT(filter).then(res => {
exportFile(res, '回款列表.xls');
})
}
}, },
}; };
</script> </script>
......
This diff is collapsed.
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