Commit f0a2e9b2 authored by huangyecong's avatar huangyecong

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

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