schemeDetail.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const hook_useOnLoad_index = require("../../../hook/use-on-load/index.js");
  4. const pagesCrm_static_schemeDetail = require("../../static/schemeDetail.js");
  5. require("../../../config/globalData.js");
  6. const pagesCrm_service_schemeDetail_index = require("../../service/schemeDetail/index.js");
  7. if (!Math) {
  8. (AnnouncementsVue + AnnouncementsVue + ReturnVisitVue + HealthEducationVue + QuestionnaireVue)();
  9. }
  10. const AnnouncementsVue = () => "./template/announcements.js";
  11. const HealthEducationVue = () => "./template/health-education.js";
  12. const QuestionnaireVue = () => "./template/questionnaire.js";
  13. const ReturnVisitVue = () => "./template/return-visit.js";
  14. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  15. ...{
  16. components: {
  17. AnnouncementsVue,
  18. HealthEducationVue,
  19. QuestionnaireVue,
  20. ReturnVisitVue
  21. }
  22. },
  23. __name: "schemeDetail",
  24. setup(__props) {
  25. const option = common_vendor.reactive({
  26. type: "",
  27. planuuid: "",
  28. id: "",
  29. memberName: "",
  30. date: "",
  31. index: ""
  32. });
  33. const content = common_vendor.ref([]);
  34. const getPatientGroupPlanDetailList = async () => {
  35. const params = {
  36. PlanUuid: option.planuuid,
  37. TempType: option.type
  38. };
  39. const resp = await pagesCrm_service_schemeDetail_index.GetPatientGroupPlanDetailList(params);
  40. content.value = resp;
  41. };
  42. const getPatientGroupPlanDetail = async () => {
  43. const params = {
  44. Id: option.id
  45. };
  46. const resp = await pagesCrm_service_schemeDetail_index.GetPatientGroupPlanDetail(params);
  47. content.value = resp;
  48. };
  49. hook_useOnLoad_index.useOnLoad((options) => {
  50. common_vendor.index.setNavigationBarTitle({
  51. title: pagesCrm_static_schemeDetail.schemeTypeEnum[options.type]
  52. });
  53. Object.keys(options).map((key) => {
  54. option[key] = options[key];
  55. });
  56. if ([pagesCrm_static_schemeDetail.schemeTypeEnum["宣教"], pagesCrm_static_schemeDetail.schemeTypeEnum["问卷"]].includes(option.type)) {
  57. getPatientGroupPlanDetail();
  58. } else {
  59. getPatientGroupPlanDetailList();
  60. }
  61. });
  62. return (_ctx, _cache) => {
  63. return common_vendor.e({
  64. a: option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["服务告知"]
  65. }, option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["服务告知"] ? {
  66. b: common_vendor.p({
  67. content: content.value,
  68. date: option.date,
  69. index: option.index
  70. })
  71. } : {}, {
  72. c: option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["注意事项"]
  73. }, option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["注意事项"] ? {
  74. d: common_vendor.p({
  75. content: content.value,
  76. date: option.date,
  77. index: option.index
  78. })
  79. } : {}, {
  80. e: option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["复诊提醒"]
  81. }, option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["复诊提醒"] ? {
  82. f: common_vendor.p({
  83. content: content.value,
  84. date: option.date,
  85. index: option.index
  86. })
  87. } : {}, {
  88. g: option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["宣教"]
  89. }, option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["宣教"] ? {
  90. h: common_vendor.p({
  91. content: content.value,
  92. date: option.date,
  93. index: option.index
  94. })
  95. } : {}, {
  96. i: option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["问卷"]
  97. }, option.type == common_vendor.unref(pagesCrm_static_schemeDetail.schemeTypeEnum)["问卷"] ? {
  98. j: common_vendor.p({
  99. content: content.value,
  100. date: option.date,
  101. index: option.index
  102. })
  103. } : {});
  104. };
  105. }
  106. });
  107. wx.createPage(_sfc_main);
  108. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesCrm/business/schemeDetail/schemeDetail.js.map