Commit f0a2e9b2 authored by huangyecong's avatar huangyecong

【ECCS-商保-1213】账单明细-添加看诊医生列表

parent ca49e06c
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
export default { export default {
getChargeList: "/backstage/auth/receiptList", getChargeList: "/backstage/auth/receiptList",
getCompanyOptions: "/backstage/auth/payorListNopage", getCompanyOptions: "/backstage/auth/payorListNopage",
getDoctorListNoPage:"/backstage/auth/doctorListNoPage",//医生列表
getChargeListDetail:"/backstage/auth/receiptDetailList",//账单明细 getChargeListDetail:"/backstage/auth/receiptDetailList",//账单明细
getReceiptPaymentDetail:"/backstage/auth/receiptPaymentDetail",//账单明细 getReceiptPaymentDetail:"/backstage/auth/receiptPaymentDetail",//账单明细
}; };
...@@ -9,6 +9,10 @@ const GETCHARGELIST = function (data) { ...@@ -9,6 +9,10 @@ const GETCHARGELIST = function (data) {
const GETCOMPANYOPTIONS = function (data) { const GETCOMPANYOPTIONS = function (data) {
return req.post(apis.getCompanyOptions, data); return req.post(apis.getCompanyOptions, data);
}; };
// 获取医生列表
const GETDOCTORlISTNOPAGE= function (data) {
return req.post(apis.getDoctorListNoPage, data);
};
// get charge detail list // get charge detail list
const GETCHARGELISTDETAIL = function (data) { const GETCHARGELISTDETAIL = function (data) {
return req.post(apis.getChargeListDetail, data); return req.post(apis.getChargeListDetail, data);
...@@ -21,6 +25,7 @@ const GETRECEIPTPAYMENTDETAIL= function (data) { ...@@ -21,6 +25,7 @@ const GETRECEIPTPAYMENTDETAIL= function (data) {
export default { export default {
GETCHARGELIST, GETCHARGELIST,
GETCOMPANYOPTIONS, GETCOMPANYOPTIONS,
GETDOCTORlISTNOPAGE,
GETCHARGELISTDETAIL, GETCHARGELISTDETAIL,
GETRECEIPTPAYMENTDETAIL GETRECEIPTPAYMENTDETAIL
}; };
...@@ -237,12 +237,7 @@ export default { ...@@ -237,12 +237,7 @@ export default {
}, },
], //客户类型 ], //客户类型
companyOptions: [], //保险公司 companyOptions: [], //保险公司
doctorOptions: [ doctorOptions: [], //就诊医生
{
name: "医生1",
code: 1,
},
], //就诊医生
paymentOptions: [ paymentOptions: [
{ {
name: "商保", name: "商保",
...@@ -281,7 +276,8 @@ export default { ...@@ -281,7 +276,8 @@ export default {
this.receiptNo = receiptNo || ""; this.receiptNo = receiptNo || "";
this._getChargeListDetail(); this._getChargeListDetail();
this._getCompanyOptions(); this._getCompanyOptions();//获取保险公司下拉选项
this._getDoctorListNoPage();//获取看诊医生下拉选项
this._getReceiptPaymentDetail(); //费用支付明细 this._getReceiptPaymentDetail(); //费用支付明细
}, },
methods: { methods: {
...@@ -312,6 +308,17 @@ export default { ...@@ -312,6 +308,17 @@ export default {
} }
}); });
}, },
// 获取看诊医生下拉选项
_getDoctorListNoPage(){
this.$apis.GETDOCTORlISTNOPAGE().then((res) => {
if (res.returnCode === "0000") {
this.doctorOptions = res.content || [];
}else{
this.$message.success(res.returnMsg);
}
});
},
// 获取费用支付明细 // 获取费用支付明细
_getReceiptPaymentDetail() { _getReceiptPaymentDetail() {
const params = { const params = {
......
...@@ -212,15 +212,8 @@ export default { ...@@ -212,15 +212,8 @@ export default {
code: 1, code: 1,
}, },
], //客户类型 ], //客户类型
companyOptions: [ companyOptions: [], //保险公司
doctorOptions: [], //就诊医生
], //保险公司
doctorOptions: [
{
name: "医生1",
code: 1,
},
], //就诊医生
paymentOptions: [ paymentOptions: [
{ {
name: "商保", name: "商保",
...@@ -240,6 +233,7 @@ export default { ...@@ -240,6 +233,7 @@ export default {
created() { created() {
this._getChargeList(); this._getChargeList();
this._getCompanyOptions(); this._getCompanyOptions();
this._getDoctorListNoPage();//获取医生下拉选项
}, },
methods: { methods: {
// 获取列表数据 // 获取列表数据
...@@ -249,7 +243,6 @@ export default { ...@@ -249,7 +243,6 @@ export default {
...this.pager, ...this.pager,
}; };
this.$apis.GETCHARGELIST(data).then((res) => { this.$apis.GETCHARGELIST(data).then((res) => {
console.log("获取table信息=", res);
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;
}); });
...@@ -257,11 +250,20 @@ export default { ...@@ -257,11 +250,20 @@ export default {
// 获取保险公司下拉选项 // 获取保险公司下拉选项
_getCompanyOptions() { _getCompanyOptions() {
this.$apis.GETCOMPANYOPTIONS().then((res) => { this.$apis.GETCOMPANYOPTIONS().then((res) => {
console.log("获取保险公司下拉选项", res);
this.companyOptions = res.content || []; this.companyOptions = res.content || [];
}); });
}, },
// 获取看诊医生下拉选项
_getDoctorListNoPage(){
this.$apis.GETDOCTORlISTNOPAGE().then((res) => {
if (res.returnCode === "0000") {
this.doctorOptions = res.content || [];
}else{
this.$message.success(res.returnMsg);
}
});
},
// 选中就诊时间 // 选中就诊时间
onSelectVisitTime(date, dateString) { onSelectVisitTime(date, dateString) {
console.log(date, dateString); console.log(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