index.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { REQUEST_CONFIG } from '@/config';
  2. import { request, handle } from '@kasite/uni-app-base';
  3. /** 上传图片 */
  4. export const UploadZxFile = `${REQUEST_CONFIG.BASE_URL}upload/uploadZxFile.do`;
  5. /** 问卷任务-查询由渠道任务发布的满意度调查问卷列表 */
  6. export const QuerySubjectListToChannelTask_V3 = async (queryData) => {
  7. let resp = handle.promistHandle(
  8. await request.doPost(
  9. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectListToChannelTask/callApiJSON.do`,
  10. queryData
  11. )
  12. );
  13. return handle.catchPromise(resp, () => resp);
  14. };
  15. /** 问卷详情 */
  16. export const QuerySubjectInfoById_V3 = async (queryData) => {
  17. let resp = handle.promistHandle(
  18. await request.doPost(
  19. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectInfoById/callApiJSON.do`,
  20. queryData
  21. )
  22. );
  23. return handle.catchPromise(resp, () => resp);
  24. };
  25. /** 提交答案 */
  26. export const CommitAnswer_V3 = async (queryData) => {
  27. let resp = handle.promistHandle(
  28. await request.doPost(
  29. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/CommitAnswer/callApiJSON.do`,
  30. queryData
  31. )
  32. );
  33. return handle.catchPromise(resp, () => resp);
  34. };
  35. /** 查询样本和答案 */
  36. export const QuerySample_V3 = async (queryData) => {
  37. let resp = handle.promistHandle(
  38. await request.doPost(
  39. `${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySample/callApiJSON.do`,
  40. queryData
  41. )
  42. );
  43. return handle.catchPromise(resp, () => resp);
  44. };
  45. /** 查询院内就诊卡信息 */
  46. export const QueryMemberCardList_V3 = async (queryData: any) => {
  47. const resp = handle.promistHandleNew(
  48. await request.doPost(
  49. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberCardList_V3/callApiJSON.do`,
  50. queryData
  51. )
  52. );
  53. return handle.catchPromiseNew(resp, () => resp);
  54. };