Commit 51837d95 authored by yanglilong's avatar yanglilong

'修改'

parent 0836f582
......@@ -13,4 +13,5 @@ export default {
queryCiReceipSendList:"/backstage/auth/queryCiReceipSendList",//理赔件账单寄送查询
receiptSettlement:"/backstage/auth/receiptSettlement",//账单结算
sendReceipListExport:"/backstage/auth/sendReceipListExport",//寄送关联账单导出
receiptPrint:"/backstage/auth/receiptPrint",//账单打印
};
......@@ -53,6 +53,10 @@ const RECEIPTSETTLEMENT= function (data) {
const SENDRECEIPTLISTEXPORT= function (data) {
return req.post(apis.sendReceipListExport, data, { responseType: "blob" });
};
// 账单打印
const RECEIPTPRINT= function (data) {
return req.post(apis.receiptPrint, data);
};
// 对象数组
......@@ -70,4 +74,5 @@ export default {
QUERYCIRECEIPSENDLIST,
RECEIPTSETTLEMENT,
SENDRECEIPTLISTEXPORT,
RECEIPTPRINT,
};
......@@ -305,7 +305,21 @@ export default {
},
//打印
printEvt(){
this.$apis.RECEIPTPRINT({
id: this.form.id
}).then(res => {
if(res.returnCode == '0000'){
let url = res.content;
let link = document.createElement('a');
link.setAttribute('href', url);
link.setAttribute('target', "_blank");
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}else{
this.$message.error(res.returnMsg);
}
})
},
// 选中就诊时间
onSelectVisitTime(date, dateString) {
......
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