Browse Source

Merge branch 'dev' of http://gogs.ywtinfo.com/chenjunkun/th_net_hospital_ali_mp into dev

liweimin 2 years ago
parent
commit
f5be60fbbd
1 changed files with 49 additions and 42 deletions
  1. 49 42
      antbuilder/industry/hospitalV2/components/subscribe-record/index.js

+ 49 - 42
antbuilder/industry/hospitalV2/components/subscribe-record/index.js

@@ -1,50 +1,57 @@
 import services from "./service";
+import { createSubscribe } from "applet-page-component";
 import { reportCmPV_YL } from "../../utils/cloudMonitorHelper";
-Component({
-	props: {},
-	tabsShow: false,
-	data: {
-		typeOptions: [
-			{
-				value: "normal",
-				label: "普通号",
-			},
-			{
-				value: "expert",
-				label: "专家号",
-			},
-			{
-				value: "nucleic",
-				label: "核酸",
-			},
-		],
-		showInpatient: false,
-		hasFilter: false,
-	},
-
-	didMount() {
-		/* 服务预警, 挂号记录查询 */
-		reportCmPV_YL({
-			title: "挂号记录查询",
-		});
-	},
-
-	methods: {
-		onFilterHandel(filters) {
-			this.filters = filters;
+Component(
+	createSubscribe({
+		onShow() {
 			this.saveRef.refresh();
 		},
-
-		saveRef(ref) {
-			this.saveRef = ref;
+	})({
+		props: {},
+		tabsShow: false,
+		data: {
+			typeOptions: [
+				{
+					value: "normal",
+					label: "普通号",
+				},
+				{
+					value: "expert",
+					label: "专家号",
+				},
+				{
+					value: "nucleic",
+					label: "核酸",
+				},
+			],
+			showInpatient: false,
+			hasFilter: false,
 		},
 
-		/* 分页逻辑 */
-		async onService(params) {
-			return services.getSubscribeRecordList({
-				...this.filters,
-				...params,
+		didMount() {
+			/* 服务预警, 挂号记录查询 */
+			reportCmPV_YL({
+				title: "挂号记录查询",
 			});
 		},
-	},
-});
+
+		methods: {
+			onFilterHandel(filters) {
+				this.filters = filters;
+				this.saveRef.refresh();
+			},
+
+			saveRef(ref) {
+				this.saveRef = ref;
+			},
+
+			/* 分页逻辑 */
+			async onService(params) {
+				return services.getSubscribeRecordList({
+					...this.filters,
+					...params,
+				});
+			},
+		},
+	})
+);