index.ts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 预交金模式处方列表
  5. */
  6. export const queryOrderSettlementList = async (queryData: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderSettlementList/callApiJSON.do`, queryData));
  8. return handle.catchPromiseNew(resp, () => resp);
  9. };
  10. /**
  11. * 订单模式合并处方列表
  12. */
  13. export const queryOrderReceiptList = async (queryData: any) => {
  14. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderReceiptList/callApiJSON.do`, queryData));
  15. return handle.catchPromiseNew(resp, () => resp);
  16. };
  17. /**
  18. * 订单模式单笔处方列表
  19. */
  20. export const queryOrderPrescriptionList = async (queryData: any) => {
  21. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderPrescriptionList/callApiJSON.do`, queryData));
  22. return handle.catchPromiseNew(resp, () => resp);
  23. };
  24. /**
  25. * 订单模式处方详情
  26. */
  27. export const queryOrderPrescriptionInfo = async (queryData: any) => {
  28. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderPrescriptionInfo/callApiJSON.do`, queryData));
  29. return handle.catchPromiseNew(resp, () => resp);
  30. };
  31. /**
  32. * 预交金模式处方详情
  33. */
  34. export const queryOrderSettlementInfo = async (queryData: any) => {
  35. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderSettlementInfo/callApiJSON.do`, queryData));
  36. return handle.catchPromiseNew(resp, () => resp);
  37. };
  38. /**
  39. * 预交金处方结算
  40. */
  41. export const settleOrderSettlement = async (queryData: any) => {
  42. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/SettleOrderSettlement/callApiJSON.do`, queryData));
  43. // Preserving original logic: return true on success
  44. return handle.catchPromiseNew(resp, () => resp);
  45. };
  46. /**
  47. * 订单模式单笔下单
  48. */
  49. export const addOrderPrescription = async (queryData: any) => {
  50. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/AddOrderPrescription/callApiJSON.do`, queryData));
  51. return handle.catchPromiseNew(resp, () => resp);
  52. };
  53. /**
  54. * 订单模式合并下单
  55. */
  56. export const mergeSettledPayReceipt = async (queryData: any) => {
  57. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/MergeSettledPayReceipt/callApiJSON.do`, queryData));
  58. return handle.catchPromiseNew(resp, () => resp);
  59. };