Browse Source

fix: his无号时,阻止his接口请求,否则his接口报错

carver 2 years ago
parent
commit
1fd6a41e39

+ 6 - 0
.mini-ide/compileMode.json

@@ -77,6 +77,12 @@
       "page": "antbuilder/industry/hospitalV2/pages/page-no-pull/index",
       "pageQuery": "depCode=381&depId=658&doctorCode=1296&doctorId=302246&header=show&hospitalId=41&pageType=doctor-page&title=医生主页",
       "query": ""
+    },
+    {
+      "title": "核酸检测-test",
+      "page": "antbuilder/industry/hospitalV2/pages/page-no-pull/index",
+      "pageQuery": "depCode=500&departmentId=670&header=show&hospitalId=41&pageType=hospital-num-source&title=核酸检测(黄石院区)",
+      "query": ""
     }
   ]
 }

+ 1 - 1
antbuilder/industry/hospital/hooks/index.js

@@ -29,7 +29,7 @@ registerHooks({
 					code: ["code"],
 					// Http返回数据中的error message字段名称
 					msg: ["msg"],
-					miniVersion: globalExt.miniVersion || "0.0.54",
+					miniVersion: globalExt.miniVersion || "0.0.55",
 				});
 				monitor.setCommonInfo({
 					tag: this.globalData.appId,

+ 43 - 52
antbuilder/industry/hospitalV2/components/hospital-num-source/date-control/index.js

@@ -1,58 +1,49 @@
 Component({
-  props: {
-    show: false,
-    dateList: [],
-    onChange: () => null
-  },
-  data: {
-    activeIndex: -1,
-    scrollLeft: 0
-  },
+	props: {
+		show: false,
+		dateList: [],
+		onChange: () => null,
+	},
+	data: {
+		activeIndex: -1,
+		scrollLeft: 0,
+	},
 
-  didMount() {},
+	didMount() {},
 
-  methods: {
-    updateState(state) {
-      return new Promise(resolve => this.setData(state, resolve));
-    },
+	methods: {
+		updateState(state) {
+			return new Promise((resolve) => this.setData(state, resolve));
+		},
 
-    async onScroll(e) {
-      const {
-        scrollLeft
-      } = e.detail;
-      await this.updateState({
-        scrollLeft
-      });
-    },
+		async onScroll(e) {
+			const { scrollLeft } = e.detail;
+			await this.updateState({
+				scrollLeft,
+			});
+		},
 
-    async onSelectAll() {
-      const {
-        activeIndex
-      } = this.data;
-      if (activeIndex === -1) return;
-      await this.updateState({
-        scrollLeft: 0,
-        activeIndex: -1
-      });
-      this.props.onChange('');
-    },
+		async onSelectAll() {
+			const { activeIndex } = this.data;
+			if (activeIndex === -1) return;
+			await this.updateState({
+				scrollLeft: 0,
+				activeIndex: -1,
+			});
+			this.props.onChange("");
+		},
 
-    async onSelectOne(e) {
-      const {
-        dateList
-      } = this.props;
-      const {
-        activeIndex
-      } = this.data;
-      const {
-        index
-      } = e.target.dataset;
-      if (index === activeIndex) return;
-      this.props.onChange(dateList[index] || '');
-      await this.updateState({
-        activeIndex: index
-      });
-    }
-
-  }
-});
+		async onSelectOne(e) {
+			const { dateList } = this.props;
+			const { activeIndex } = this.data;
+			const { index } = e.target.dataset;
+			if (index === activeIndex) return;
+			// 当日HIS显示无号,但是又传递日期进行排号请求时,HIS会返回错误数据,所以需要阻止发起请求
+			if (dateList[index].remain <= 0) return;
+			this.props.onChange(dateList[index] || "");
+			await this.updateState({
+				activeIndex: index,
+			});
+		},
+	},
+});

+ 1 - 1
config.by.prod.json

@@ -14,7 +14,7 @@
 			"debugTemplateUuid": "",
 			"env": "prod",
 			"terminal": 24,
-			"miniVersion": "0.0.54"
+			"miniVersion": "0.0.55"
 		}
 	}
 }

+ 1 - 1
config.by.qa.json

@@ -14,7 +14,7 @@
 			"debugTemplateUuid": "",
 			"env": "qa",
 			"terminal": 24,
-			"miniVersion": "0.0.54"
+			"miniVersion": "0.0.55"
 		}
 	}
 }

+ 1 - 1
config.json

@@ -14,7 +14,7 @@
 			"debugTemplateUuid": "",
 			"env": "qa",
 			"terminal": 24,
-			"miniVersion": "0.0.54"
+			"miniVersion": "0.0.55"
 		}
 	}
 }