Commit ca49e06c authored by huangyecong's avatar huangyecong

【ECCS-商保-1213】账单明细-添加费用支付明细接口

parent f21f4ddc
...@@ -3,4 +3,5 @@ export default { ...@@ -3,4 +3,5 @@ export default {
getChargeList: "/backstage/auth/receiptList", getChargeList: "/backstage/auth/receiptList",
getCompanyOptions: "/backstage/auth/payorListNopage", getCompanyOptions: "/backstage/auth/payorListNopage",
getChargeListDetail:"/backstage/auth/receiptDetailList",//账单明细 getChargeListDetail:"/backstage/auth/receiptDetailList",//账单明细
getReceiptPaymentDetail:"/backstage/auth/receiptPaymentDetail",//账单明细
}; };
...@@ -13,9 +13,14 @@ const GETCOMPANYOPTIONS = function (data) { ...@@ -13,9 +13,14 @@ const GETCOMPANYOPTIONS = function (data) {
const GETCHARGELISTDETAIL = function (data) { const GETCHARGELISTDETAIL = function (data) {
return req.post(apis.getChargeListDetail, data); return req.post(apis.getChargeListDetail, data);
}; };
// 获取费用支付明细
const GETRECEIPTPAYMENTDETAIL= function (data) {
return req.post(apis.getReceiptPaymentDetail, data);
};
// 对象数组 // 对象数组
export default { export default {
GETCHARGELIST, GETCHARGELIST,
GETCOMPANYOPTIONS, GETCOMPANYOPTIONS,
GETCHARGELISTDETAIL GETCHARGELISTDETAIL,
GETRECEIPTPAYMENTDETAIL
}; };
...@@ -24,7 +24,11 @@ ...@@ -24,7 +24,11 @@
</a-col> </a-col>
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="客户类型"> <a-form-model-item label="客户类型">
<a-select v-model="form.patientType" placeholder="请选择客户类型" allowClear> <a-select
v-model="form.patientType"
placeholder="请选择客户类型"
allowClear
>
<a-select-option <a-select-option
v-for="item in patientTypeOptions" v-for="item in patientTypeOptions"
:key="item.code" :key="item.code"
...@@ -37,7 +41,11 @@ ...@@ -37,7 +41,11 @@
</a-col> </a-col>
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorId" placeholder="请选择保险公司" allowClear> <a-select
v-model="form.payorId"
placeholder="请选择保险公司"
allowClear
>
<a-select-option <a-select-option
v-for="item in companyOptions" v-for="item in companyOptions"
:key="item.corpCode" :key="item.corpCode"
...@@ -50,7 +58,11 @@ ...@@ -50,7 +58,11 @@
</a-col> </a-col>
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="看诊医生"> <a-form-model-item label="看诊医生">
<a-select v-model="form.doctorCode" placeholder="请选择看诊医生" allowClear> <a-select
v-model="form.doctorCode"
placeholder="请选择看诊医生"
allowClear
>
<a-select-option <a-select-option
v-for="item in doctorOptions" v-for="item in doctorOptions"
:key="item.code" :key="item.code"
...@@ -63,12 +75,21 @@ ...@@ -63,12 +75,21 @@
</a-col> </a-col>
<a-col :xl="5" :lg="6" :sm="12"> <a-col :xl="5" :lg="6" :sm="12">
<a-form-model-item label="就诊时间"> <a-form-model-item label="就诊时间">
<a-range-picker format="YYYY-MM-DD" v-model="form.dateRange" :placeholder="['开始时间','结束时间']" @change="onSelectVisitTime" /> <a-range-picker
format="YYYY-MM-DD"
v-model="form.dateRange"
:placeholder="['开始时间', '结束时间']"
@change="onSelectVisitTime"
/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="3" :lg="6" :sm="12"> <a-col :xl="3" :lg="6" :sm="12">
<a-form-model-item label="支付方式"> <a-form-model-item label="支付方式">
<a-select v-model="form.paymentCode" placeholder="请选择支付方式" allowClear> <a-select
v-model="form.paymentCode"
placeholder="请选择支付方式"
allowClear
>
<a-select-option <a-select-option
v-for="item in paymentOptions" v-for="item in paymentOptions"
:key="item.code" :key="item.code"
...@@ -137,7 +158,11 @@ ...@@ -137,7 +158,11 @@
row-key="id" row-key="id"
:scroll="{ x: true }" :scroll="{ x: true }"
:pagination="false" :pagination="false"
class="payTable"
> >
<template slot="paymentType" slot-scope="text">
<a-button class="danger">{{ text | payStyleFilters }}</a-button>
</template>
</a-table> </a-table>
</div> </div>
</template> </template>
...@@ -179,15 +204,20 @@ export default { ...@@ -179,15 +204,20 @@ export default {
}, },
]; ];
const payColumns = [ const payColumns = [
{ title: "免赔额", dataIndex: "", width: 180 }, { title: "免赔额", dataIndex: "deductible", width: 180 },
{ title: "自付额", dataIndex: "", width: 180 }, { title: "自付额", dataIndex: "selfPaid", width: 180 },
{ title: "其他费用", dataIndex: "", width: 180 }, { title: "其他费用", dataIndex: "otherPaid", width: 180 },
{ title: "个人支付", dataIndex: "", width: 180 }, { title: "个人支付", dataIndex: "personalPaid", width: 180 },
{ title: "商报支付", dataIndex: "", width: 180 }, { title: "商保支付", dataIndex: "ciPaid", width: 180 },
{ title: "支付方式", dataIndex: "", width: 180 }, {
] title: "支付方式",
dataIndex: "paymentType",
width: 180,
scopedSlots: { customRender: "paymentType" },
},
];
return { return {
receiptNo:'', receiptNo: "",
columns, columns,
payColumns, payColumns,
form: {}, form: {},
...@@ -206,9 +236,7 @@ export default { ...@@ -206,9 +236,7 @@ export default {
code: 1, code: 1,
}, },
], //客户类型 ], //客户类型
companyOptions: [ companyOptions: [], //保险公司
], //保险公司
doctorOptions: [ doctorOptions: [
{ {
name: "医生1", name: "医生1",
...@@ -226,37 +254,78 @@ export default { ...@@ -226,37 +254,78 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
payDataList:[] payDataList: [],
payPager: [
{
pageNum: 1,
pageSize: 10,
},
],
}; };
}, },
components: { components: {
BurtPagination, BurtPagination,
}, },
filters: {
payStyleFilters(value) {
const styleMap = {
1: "支付宝",
2: "微信",
3: "现金",
};
return styleMap[value];
},
},
created() { created() {
const { receiptNo } = this.$route.query const { receiptNo } = this.$route.query;
this.receiptNo = receiptNo || '' this.receiptNo = receiptNo || "";
this._getChargeListDetail(); this._getChargeListDetail();
this._getCompanyOptions(); this._getCompanyOptions();
this._getReceiptPaymentDetail(); //费用支付明细
}, },
methods: { methods: {
// 获取列表数据 // 获取列表数据
_getChargeListDetail() { _getChargeListDetail() {
const data = { const data = {
"receiptNo": this.receiptNo, receiptNo: this.receiptNo,
...this.pager ...this.pager,
}; };
this.$apis.GETCHARGELISTDETAIL(data).then((res) => { this.$apis.GETCHARGELISTDETAIL(data).then((res) => {
console.log("11111111111获取table信息=", res); console.log("11111111111获取table信息=", res);
if (res.returnCode == "0000") {
this.dataList = (res.content && res.content.list) || []; this.dataList = (res.content && res.content.list) || [];
// this.pager.total = (res.content && res.content.total) || 0; // this.pager.total = (res.content && res.content.total) || 0;
} else {
this.$message.error(res.returnMsg);
}
}); });
}, },
// 获取保险公司下拉选项 // 获取保险公司下拉选项
_getCompanyOptions() { _getCompanyOptions() {
this.$apis.GETCOMPANYOPTIONS().then((res) => { this.$apis.GETCOMPANYOPTIONS().then((res) => {
console.log("获取保险公司下拉选项", res); console.log("获取保险公司下拉选项", res);
if (res.returnCode == "0000") {
this.companyOptions = res.content || []; this.companyOptions = res.content || [];
} else {
this.$message.error(res.returnMsg);
}
});
},
// 获取费用支付明细
_getReceiptPaymentDetail() {
const params = {
receiptNo: this.receiptNo,
...this.payPager,
};
this.$apis.GETRECEIPTPAYMENTDETAIL(params).then((res) => {
console.log("获取费用支付明细", res);
if (res.returnCode == "0000") {
let content = res.content || {};
this.payDataList = content;
} else {
this.$message.error(res.returnMsg);
}
}); });
}, },
...@@ -266,13 +335,13 @@ export default { ...@@ -266,13 +335,13 @@ export default {
}, },
// 重置 // 重置
handlerReset() { handlerReset() {
this.form = {} this.form = {};
}, },
//设置行属性 //设置行属性
handlerRowClick(record) { handlerRowClick(record) {
const { receiptNo } = record; const { receiptNo } = record;
console.log('receiptNo=',receiptNo); console.log("receiptNo=", receiptNo);
return { return {
style: { style: {
color: record.isEdit ? "#2B63FF" : "#252631", color: record.isEdit ? "#2B63FF" : "#252631",
...@@ -335,4 +404,10 @@ export default { ...@@ -335,4 +404,10 @@ export default {
font-weight: bold; font-weight: bold;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.payTable{
.ant-btn{
border-color: #1890ff;
color: #1890ff;
}
}
</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