update 新增的时候判断当前是否已经添加过此分润人

This commit is contained in:
BOOL\25024
2025-01-03 11:25:06 +08:00
parent ef0d47e542
commit 7f85ce4a79

View File

@@ -152,6 +152,11 @@ export default {
const selectedMerchant = this.merchantList.find(
(merchant) => merchant.merchantId === this.createMerchantVip.adapayMemberId
);
// 判断当前是否已经添加过此分润人
const foundItem = this.carList.some((item) => {
return item.adapayMemberId == selectedMerchant.adapayMemberId;
});
if (foundItem == true) return this.$modal.msgError("当前运营商已经添加过分润人");
const newDetail = {
splitName: selectedMerchant.merchantName,
adapayMemberId: selectedMerchant.adapayMemberId,