Browse Source

fix: 日清单——切换日期时加个“查询中”提示

carver 2 years ago
parent
commit
f36a75d5c1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      antbuilder/industry/hospitalV2/components/inventory-day/index.js

+ 5 - 0
antbuilder/industry/hospitalV2/components/inventory-day/index.js

@@ -50,6 +50,9 @@ Component({
 		// 获取日清单详情
 		async getDeails() {
 			try {
+				my.showLoading({
+					content: "查询中...",
+				});
 				const { inpatientId, selectedDateStr, jsonData } = this.data;
 				const details = await getMedicineInfo({
 					inpatientId,
@@ -65,6 +68,8 @@ Component({
 				});
 			} catch (error) {
 				console.log(error, "error");
+			} finally {
+				my.hideLoading();
 			}
 		},