167 lines
2.9 KiB
JavaScript
167 lines
2.9 KiB
JavaScript
import request from '@/utils/request';
|
|
|
|
/**
|
|
* 收费患者列表
|
|
*/
|
|
export function getList(queryParams) {
|
|
return request({
|
|
url: '/charge-manage/inpa-charge/encounter-patient-page',
|
|
method: 'get',
|
|
params: queryParams,
|
|
});
|
|
}
|
|
/**
|
|
* 收费患者列表 新
|
|
*/
|
|
export function getList1(queryParams) {
|
|
return request({
|
|
url: '/charge-manage/inpatient-charge/encounter-patient-page',
|
|
method: 'get',
|
|
params: queryParams,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 患者处方列表
|
|
*/
|
|
export function getChargeList(encounterId) {
|
|
return request({
|
|
url: '/charge-manage/inpatient-charge/patient-prescription?encounterId=' + encounterId,
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 医保转自费
|
|
*/
|
|
export function changeToSelfPay(encounterId) {
|
|
return request({
|
|
url: '/charge-manage/inpatient-charge/self-pay?encounterId=' + encounterId,
|
|
method: 'put',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 自费转医保
|
|
*/
|
|
export function changeToMedicalInsurance(encounterId) {
|
|
return request({
|
|
url: '/charge-manage/charge/medical-insurance?encounterId=' + encounterId,
|
|
method: 'put',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 学生医保转学生自费
|
|
*/
|
|
export function changeStudentPayTosStudentSelf(encounterId) {
|
|
return request({
|
|
url: '/charge-manage/charge/student-self-pay?encounterId=' + encounterId,
|
|
method: 'put',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 学生自费转学生医保
|
|
*/
|
|
export function changeStudentSelfToStudentPay(encounterId) {
|
|
return request({
|
|
url: '/charge-manage/charge/student-yb-pay?encounterId=' + encounterId,
|
|
method: 'put',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 住院结算
|
|
*/
|
|
export function savePayment(data) {
|
|
return request({
|
|
url: '/payment/payment/inpa-pay',
|
|
method: 'post',
|
|
data: data,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 初始化
|
|
*/
|
|
export function init() {
|
|
return request({
|
|
url: '/charge-manage/charge/init',
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
export function init1() {
|
|
return request({
|
|
url: '/charge-manage/inpatient-charge/init',
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 住院预结算
|
|
*/
|
|
export function precharge(data) {
|
|
return request({
|
|
url: '/payment/payment/inpa-pre-pay',
|
|
method: 'post',
|
|
data: data,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 取消预结算
|
|
*/
|
|
export function unprecharge(data) {
|
|
return request({
|
|
url: '/payment/payment/inpa-un-pay',
|
|
method: 'post',
|
|
params: data,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 发耗材
|
|
*/
|
|
export function dispenseMedicalConsumables(data) {
|
|
return request({
|
|
url: '/pharmacy-manage/device-dispense/consumables-dispense',
|
|
method: 'put',
|
|
data: data,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 补打小票
|
|
*/
|
|
export function getChargeInfo(param) {
|
|
return request({
|
|
url: '/payment/bill/getDetail',
|
|
method: 'get',
|
|
params: param,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 微信支付
|
|
*/
|
|
export function wxPay(data) {
|
|
return request({
|
|
url: '/three-part/pay/pay-for',
|
|
method: 'post',
|
|
data: data,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 微信支付
|
|
*/
|
|
export function WxPayResult(data) {
|
|
return request({
|
|
url: '/three-part/pay/pay-query',
|
|
method: 'post',
|
|
data: data,
|
|
});
|
|
}
|