Browse Source

接口文件提交

xuyousan 1 month ago
parent
commit
ead78e38a5

+ 1 - 1
pages/st1/components/richTextModal/richTextModal.vue

@@ -46,7 +46,7 @@
 import { ref, onMounted } from 'vue';
 import { common } from '@/utils';
 import icon from '@/utils/icon';
-import { ArticleDetail } from '@/pagesAdmin/article/service/article';
+import { ArticleDetail } from '@/pages/st1/service/article';
 
 const props = withDefaults(defineProps<{
   modalData: {

+ 49 - 0
pages/st1/service/article/index.ts

@@ -0,0 +1,49 @@
+import { REQUEST_CONFIG } from '@/config';
+import { request, handle } from '@kasite/uni-app-base';
+
+const doPost = async (url, data, options) => {
+	data.ChannelId = 'smallpro';
+	let resp = handle.promistHandleNew(await request.doPost(url, data, options));
+	return handle.catchPromiseNew(resp, () => resp, options);
+};
+
+/** 文章详情 */
+export const ArticleDetail = async (saveData: any, options: any = {}) => {
+	return doPost(
+		`${REQUEST_CONFIG.BASE_URL}wsgw/article/mgr/ArticleDetail/callApiJSON.do`,
+		saveData,
+		options
+	);
+};
+/** 点赞文章 */
+export const LikeArticle = async (saveData: any, options: any = {}) => {
+	return doPost(
+		`${REQUEST_CONFIG.BASE_URL}wsgw/article/mgr/Like/callApiJSON.do`,
+		saveData,
+		options
+	);
+};
+/** 分享文章 */
+export const ShareArticle = async (saveData: any, options: any = {}) => {
+	return doPost(
+		`${REQUEST_CONFIG.BASE_URL}wsgw/article/mgr/Share/callApiJSON.do`,
+		saveData,
+		options
+	);
+};
+/** 获取评论 */
+export const GetCommentList = async (saveData: any, options: any = {}) => {
+	return doPost(
+		`${REQUEST_CONFIG.BASE_URL}wsgw/article/comment/page/callApiJSON.do`,
+		saveData,
+		options
+	);
+};
+/** 发布评论 */
+export const CreateComment = async (saveData: any, options: any = {}) => {
+	return doPost(
+		`${REQUEST_CONFIG.BASE_URL}wsgw/article/comment/create/callApiJSON.do`,
+		saveData,
+		options
+	);
+};

+ 2 - 0
pages/st1/service/index.ts

@@ -1,3 +1,5 @@
 export * from './base';
 export * from './home';
 export * from './schemeDetail';
+export * from './record';
+export * from './article';

+ 133 - 0
pages/st1/service/record/index.ts

@@ -0,0 +1,133 @@
+import { REQUEST_CONFIG } from '@/config';
+import { request, handle } from '@kasite/uni-app-base';
+
+/**
+ * 获取订单列表 
+ */
+export const orderListLocal = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/OrderListLocal/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询订单明细 
+ */
+export const orderDetailLocal = async (queryData: any, showLoading: boolean = true) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/OrderDetailLocal/callApiJSON.do`, queryData, {
+    showLoading: showLoading
+  }));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 取消订单 退号 
+ */
+export const orderCancel = async (queryData: any, serviceId: any) => {
+  let url = `${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/CancelOrder/callApiJSON.do`;
+  if (serviceId == '0' || serviceId == '009') {
+    // 判断为his预约
+    if (queryData.hisOrderId) {
+      url = `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/HisYyCancel/callApiJSON.do`;
+    } else {
+      url = `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/YYCancel/callApiJSON.do`;
+    }
+  }
+  let resp = handle.promistHandleNew(await request.doPost(url, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询预约记录 
+ */
+export const hisYyWaterList_V2 = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/HisYyWaterList_V2/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询门诊就诊记录
+ */
+export const queryOutpatientVisitList = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientVisitList/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询住院记录
+ */
+export const queryInpatientList = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/InHosApi/QueryInpatientList/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询病历列表
+ */
+export const getMedicalRecords = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetMedicalRecords/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询门诊医嘱处方信息
+ */
+export const queryOutpatientDocAdviceList = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientDocAdviceList/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询住院医嘱处方信息
+ */
+export const queryInpatientDocAdviceList = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryInpatientDocAdviceList/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 查询候补记录
+ */
+export const waitListApiList = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/waitListApi/List/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 更新候补登记
+ */
+export const waitListUpdate = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/waitListApi/Update/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 精准预约-查询预约申请记录列表
+ */
+export const preciseQueryAppoApplyList = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/appoApply/QueryAppoApplyList/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 精准预约-查询预约申请记录列表
+ */
+export const precisePatientEditAppoApply = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/appoApply/PatientEditAppoApply/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 问卷详情
+ */
+export const querySubjectInfoById_V3 = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectInfoById/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};
+
+/**
+ * 问卷-查询样本和答案
+ */
+export const querySample_V3 = async (queryData: any) => {
+  let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySample/callApiJSON.do`, queryData));
+  return handle.catchPromiseNew(resp, () => resp);
+};

+ 4 - 4
utils/pagesPatientFn.ts

@@ -2,7 +2,7 @@
  * 页面公用逻辑函数
  */
 import { common } from '@/utils';
-import * as record from '@/pagesPatient/service/record/index';
+import {orderCancel,orderListLocal} from '@/pages/st1/service/record/index';
 import getState from './getState';
 import { useIsToAuthPage, useGetDefaultMember } from '@/uni-app-base/hook';
 
@@ -67,7 +67,7 @@ export default {
         PSize: 10
       }
     };
-    let listResp = await record.orderListLocal(queryData);
+    let listResp = await orderListLocal(queryData);
     listResp = (listResp || []).filter((item: any) => item.IsOnlinePay == '1');
     if (!common.isEmpty(listResp)) {
       /**默认跳转预约挂号  预约挂号查询时传入0和009  与case判断不符  默认为预约记录路径*/
@@ -97,7 +97,7 @@ export default {
    * pIndex 默认查询第0页
    */
   async orderListLocal(queryData: any) {
-    let listResp = await record.orderListLocal(queryData);
+    let listResp = await orderListLocal(queryData);
     let showNoData = true;
     let list: any[] = [];
     if (!common.isEmpty(listResp)) {
@@ -132,7 +132,7 @@ export default {
         OperatorId: item.OperatorId,
         OrderId: item.OrderId
       };
-      let resp = await record.orderCancel(orderCancelData, item.ServiceId);
+      let resp = await orderCancel(orderCancelData, item.ServiceId);
       if (!common.isEmpty(resp)) {
         /**取消成功 */
         common.showModal('订单已取消', callback, {