Browse Source

fix: 测试-默认不使用个账

carver 1 year ago
parent
commit
beff0d979a

+ 11 - 7
antbuilder/industry/hospitalV2/components/hospital-payment-detail-yibao/index.js

@@ -22,7 +22,7 @@ Component(
 			canPay: false,
 			prescriptionList: [],
 			actionsheetVisible: false,
-			isUserPersonalAccount: true, // 默认使用个账
+			isUserPersonalAccount: false, // 默认使用个账
 			isCulculate: false,
 			preConfirmInfo: {},
 		},
@@ -164,13 +164,17 @@ Component(
 				});
 				if (!err) {
 					// 预结算成功
-					my.hideLoading();
 					const ybData = await getYbParams(result);
-					this.setData({
-						preConfirmInfo: Object.assign(result, ybData),
-						isCulculate: false,
-						canPay: true,
-					});
+					this.setData(
+						{
+							preConfirmInfo: Object.assign(result, ybData),
+							isCulculate: false,
+							canPay: true,
+						},
+						() => {
+							my.hideLoading();
+						}
+					);
 				} else {
 					my.hideLoading();
 					my.showToast({