mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update 新增的时候判断当前是否已经添加过此分润人
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user