Browse Source

fix: 修改院区deptCode判断

carver 2 years ago
parent
commit
79da62a3ef

+ 3 - 3
antbuilder/industry/hospitalV2/components/hospital-project/index.js

@@ -11,8 +11,8 @@ import { tradePay } from "../../utils/tradePay";
 import { reportCmPV_YL } from "../../utils/cloudMonitorHelper";
 import { getSubscribeAuth } from "../../../../core/utils/ywtService";
 const deptCodeMap = {
-	黄石总院: 500,
-	沙河分院: 499,
+	541: 500,
+	540: 499,
 };
 Component(
 	createSubscribe({
@@ -110,7 +110,7 @@ Component(
 				my.showLoading();
 				const projects = await getItemList({
 					hospitalDistrictId,
-					deptCode: deptCodeMap[query.hospitalName],
+					deptCode: deptCodeMap[hospitalDistrictId],
 				});
 				this.setData({
 					projects,