Commit a6b9f5c6 authored by yanglilong's avatar yanglilong

'修改'

parent 4b7ae110
......@@ -8,7 +8,7 @@
<title><%= webpackConfig.name %></title>
<script
type="text/javascript"
src="//at.alicdn.com/t/font_3020450_tux1s49rh3f.js"
src="//at.alicdn.com/t/font_3020450_x8muxbblnk.js"
></script>
</head>
<body>
......
......@@ -12,4 +12,5 @@ export default {
getReceiptPaymentDetail:"/backstage/auth/receiptPaymentDetail",//账单明细
queryCiReceipSendList:"/backstage/auth/queryCiReceipSendList",//理赔件账单寄送查询
receiptSettlement:"/backstage/auth/receiptSettlement",//账单结算
sendReceipListExport:"/backstage/auth/sendReceipListExport",//寄送关联账单导出
};
......@@ -11,4 +11,5 @@ export default {
queryEobInfoList: "/backstage/auth/queryEobInfoList", //待回款EOB列表查询
saveBackMoney: "/backstage/auth/saveBackMoney", //新建回款
deleteBackMoney: "/backstage/auth/deleteBackMoney", //删除回款
eobReceipListExport: "/backstage/auth/eobReceipListExport", //EOB关联账单导出
};
......@@ -49,6 +49,10 @@ const QUERYCIRECEIPSENDLIST= function (data) {
const RECEIPTSETTLEMENT= function (data) {
return req.post(apis.receiptSettlement, data);
};
// 寄送关联账单导出
const SENDRECEIPTLISTEXPORT= function (data) {
return req.post(apis.sendReceipListExport, data);
};
// 对象数组
......@@ -65,5 +69,5 @@ export default {
GETRECEIPTPAYMENTDETAIL,
QUERYCIRECEIPSENDLIST,
RECEIPTSETTLEMENT,
SENDRECEIPTLISTEXPORT,
};
......@@ -48,6 +48,11 @@ const DELETEBACKMONEY = (data) => {
return req.post(apis.deleteBackMoney, data);
};
//EOB关联账单导出
const EOBRECEIPLISTEXPORT = (data={}) => {
return req.post(apis.eobReceipListExport, data, { responseType: "blob" });
};
// 对象数组
export default {
QUERYEOBLIST,
......@@ -60,4 +65,5 @@ export default {
QUERYEOBINFOLIST,
SAVEBACKMONEY,
DELETEBACKMONEY,
EOBRECEIPLISTEXPORT,
};
\ No newline at end of file
......@@ -80,6 +80,9 @@
<!-- <a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
</a-button> -->
<a-button type="primary" @click="exportEvt">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
<a-button class="mar-left10" type="primary" @click="addNewBill">
<Icon :name="isEditNewBill?'ssibaocun':'ssiadd'" :size="14" />{{isEditNewBill? '保存账单': '添加账单'}}</a-button>
</a-form-model-item>
......@@ -341,6 +344,26 @@ export default {
},
});
},
//导出
exportEvt(){
this.$apis.SENDRECEIPTLISTEXPORT({
sendBatchNo: this.sendBatchNo
})
.then(res => {
let blob = new Blob([res.content], {
type:"application/vnd.ms-excel;charset=utf-8"
});
let url=window.URL.createObjectURL(blob);
let aLink=document.createElement("a");
aLink.style.display="none";
aLink.href=url;
aLink.setAttribute("download","寄送账单.xls");
document.body.appendChild(aLink);
aLink.click();
document.body.removeChild(aLink);
window.URL.revokeObjectURL(url);
})
},
//添加账单
addNewBill(){
this.isEditNewBill = !this.isEditNewBill;
......
......@@ -57,7 +57,6 @@
</a-col>
<a-col :lg="24" :sm="24" class="none-label">
<a-form-model-item label="button">
<!-- <a-button type="primary">导出</a-button> -->
<a-button class="mar-left10" type="primary" @click="addNewEvt">
<Icon :name="eobNo?'ssibaocun':'ssiadd'" :size="14" />{{eobNo?'保存EOB':'新建EOB'}}
</a-button>
......@@ -70,6 +69,9 @@
<!-- <a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
</a-button> -->
<a-button type="primary" @click="exportEvt">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
<a-button class="mar-left10" type="primary" @click="addNewBill">
<Icon :name="isEditNewEob?'ssibaocun':'ssiadd'" :size="14" />{{isEditNewEob? '保存账单': '添加账单'}}</a-button>
</a-form-model-item>
......@@ -318,6 +320,26 @@ export default {
onCancel: () => {},
});
},
//导出
exportEvt(){
this.$apis.EOBRECEIPLISTEXPORT({
eobNo: this.eobNo
})
.then(res => {
let blob = new Blob([res.content], {
type:"application/vnd.ms-excel;charset=utf-8"
});
let url=window.URL.createObjectURL(blob);
let aLink=document.createElement("a");
aLink.style.display="none";
aLink.href=url;
aLink.setAttribute("download","EOB关联账单.xls");
document.body.appendChild(aLink);
aLink.click();
document.body.removeChild(aLink);
window.URL.revokeObjectURL(url);
})
},
//添加账单
addNewBill(){
this.isEditNewEob = !this.isEditNewEob;
......
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