策略同步的提示

master
yujialong 7 months ago
parent 2ad7e088ae
commit 0aeb30a000
  1. 36
      src/views/product/afterLoan/1029/Detail.vue
  2. 36
      src/views/product/afterLoan/1030/Detail.vue
  3. 36
      src/views/product/afterLoan/1031/Detail.vue
  4. 36
      src/views/product/afterLoan/1032/Detail.vue
  5. 36
      src/views/product/afterLoan/1033/Detail.vue
  6. 36
      src/views/product/interestRate/772/Detail.vue
  7. 36
      src/views/product/interestRate/935/Detail.vue
  8. 36
      src/views/product/interestRate/936/Detail.vue
  9. 36
      src/views/product/strategy/150/Detail.vue
  10. 40
      src/views/product/strategy/151/Detail.vue
  11. 40
      src/views/product/strategy/152/Detail.vue
  12. 40
      src/views/product/strategy/153/Detail.vue
  13. 40
      src/views/product/strategy/154/Detail.vue
  14. 40
      src/views/product/strategy/155/Detail.vue
  15. 40
      src/views/product/strategy/156/Detail.vue
  16. 36
      src/views/product/strategy/512/Detail.vue
  17. 36
      src/views/product/strategy/513/Detail.vue

@ -6,11 +6,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -165,6 +169,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 14,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -220,17 +233,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 14,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -6,11 +6,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -150,6 +154,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 15,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -235,17 +248,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 15,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -6,11 +6,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -301,6 +305,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 16,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -420,17 +433,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 16,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -6,11 +6,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -124,6 +128,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 17,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -177,17 +190,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 17,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -5,11 +5,15 @@
class="form"
:disabled="disabled">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -147,6 +151,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 18,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -221,17 +234,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 18,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,11 +4,15 @@
label-suffix=":"
:disabled="disabled">
<el-form-item label="模型名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="modelName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="modelName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<div class="flex-1">
@ -205,6 +209,15 @@ const getDetail = async () => {
info.value = data.individualCreditModels;
}
getConfig();
//
if (id.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 10,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -335,17 +348,8 @@ const confirmSubmit = async () => {
if (!modelName.value) return ElMessage.error('请输入模型名称!');
//
if (id.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 10,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -5,11 +5,15 @@
class="form"
:disabled="disabled">
<el-form-item label="模型名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="modelName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="modelName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="利率模型">
<el-table class="c-table"
@ -186,6 +190,15 @@ const getDetail = async () => {
}
}
getConfig();
//
if (id.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 12,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -287,17 +300,8 @@ const confirmSubmit = async () => {
if (!modelName.value) return ElMessage.error('请输入模型名称!');
//
if (id.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 12,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -5,11 +5,15 @@
class="form"
:disabled="disabled">
<el-form-item label="模型名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="modelName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="modelName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="利率模型">
<el-table class="c-table"
@ -209,6 +213,15 @@ const getDetail = async () => {
}
}
getConfig();
//
if (id.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 13,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -379,17 +392,8 @@ const confirmSubmit = async () => {
if (!modelName.value) return ElMessage.error('请输入模型名称!');
//
if (id.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 13,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -5,11 +5,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -252,6 +256,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 1,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -381,17 +394,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 1,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,13 +4,16 @@
class="form"
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称"
prop="fundName">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<el-form-item label="策略名称">
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -188,6 +191,7 @@ const symbols: Array<Record<string, any>> = [
];
const loading = ref<boolean>(false);
const syncVisible = ref<boolean>(false);
const bankIds = ref<Record<string, any>[]>([]);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(151);
@ -229,6 +233,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 2,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -293,6 +306,7 @@ const submit = async (synchronizeUpdate?: number) => {
strategyName: strategyName.value,
synchronizeUpdate,
creditBlacklistList: param,
bankIds: bankIds.value,
});
getStat(295);
addRecord(recordParam);
@ -304,16 +318,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 2,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,13 +4,16 @@
class="form"
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称"
prop="fundName">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<el-form-item label="策略名称">
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -256,6 +259,7 @@ const tdNames: Record<string, any> = {
};
const loading = ref<boolean>(false);
const syncVisible = ref<boolean>(false);
const bankIds = ref<Record<string, any>[]>([]);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(152);
@ -363,6 +367,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 3,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -497,6 +510,7 @@ const submit = async (synchronizeUpdate?: number) => {
strategyName: strategyName.value,
synchronizeUpdate,
businessBlacklistList: param,
bankIds: bankIds.value,
});
getStat(295);
addRecord(param);
@ -508,16 +522,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 3,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,13 +4,16 @@
class="form"
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称"
prop="fundName">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<el-form-item label="策略名称">
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -190,6 +193,7 @@ const whethers: Record<string, any>[] = [
];
const loading = ref<boolean>(false);
const syncVisible = ref<boolean>(false);
const bankIds = ref<Record<string, any>[]>([]);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(153);
@ -230,6 +234,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 4,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -301,6 +314,7 @@ const submit = async (synchronizeUpdate?: number) => {
strategyName: strategyName.value,
synchronizeUpdate,
inlineBlacklistList: param,
bankIds: bankIds.value,
});
getStat(295);
addRecord(param);
@ -312,16 +326,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 4,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,13 +4,16 @@
class="form"
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称"
prop="fundName">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<el-form-item label="策略名称">
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -325,6 +328,7 @@ const units: Array<string> = ['年', '月', '天'];
const have: Array<string> = ['无', '有'];
const loading = ref<boolean>(false);
const syncVisible = ref<boolean>(false);
const bankIds = ref<Record<string, any>[]>([]);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(154);
@ -361,6 +365,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 5,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -431,6 +444,7 @@ const submit = async (synchronizeUpdate?: number) => {
strategyName: strategyName.value,
synchronizeUpdate,
enterpriseBlacklistList: param,
bankIds: bankIds.value,
});
getStat(295);
addRecord(param);
@ -442,16 +456,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 5,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,13 +4,16 @@
class="form"
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称"
prop="fundName">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<el-form-item label="策略名称">
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -174,6 +177,7 @@ const units: Array<string> = ['年', '月', '天'];
const have: Array<string> = ['否', '是'];
const loading = ref<boolean>(false);
const syncVisible = ref<boolean>(false);
const bankIds = ref<Record<string, any>[]>([]);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(155);
@ -289,6 +293,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 6,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -433,6 +446,7 @@ const submit = async (synchronizeUpdate?: number) => {
strategyName: strategyName.value,
synchronizeUpdate,
antiFraudStrategyList: param,
bankIds: bankIds.value,
});
getStat(295);
addRecord(param);
@ -444,16 +458,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 6,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -4,13 +4,16 @@
class="form"
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称"
prop="fundName">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName"></el-input>
<el-form-item label="策略名称">
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="strategyName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -115,6 +118,7 @@ const { strategyId, strategyName } = toRefs(props.row);
const info = ref<Record<string, any>[]>([]);
const loading = ref<boolean>(false);
const syncVisible = ref<boolean>(false);
const bankIds = ref<Record<string, any>[]>([]);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(156);
@ -156,6 +160,15 @@ const getDetail = async () => {
info.value = data;
}
getConfig();
//
if (strategyId.value && !props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 7,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} finally {
}
};
@ -235,6 +248,7 @@ const submit = async (synchronizeUpdate?: number) => {
strategyName: strategyName.value,
synchronizeUpdate,
negativeIndustryStrategyList: param,
bankIds: bankIds.value,
});
getStat(295);
addRecord();
@ -246,16 +260,8 @@ const confirmSubmit = async () => {
if (!strategyName.value) return ElMessage.error('请输入策略名称!');
//
if (strategyId.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: strategyId.value,
strategyType: 7,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -5,11 +5,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="form.scoreCardName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="form.scoreCardName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -149,6 +153,15 @@ const getDetail = async () => {
form.scoringObject = info.scoringObject;
}
getConfig();
//
if (!props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 8,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} catch (e) {}
} else {
getConfig();
@ -265,17 +278,8 @@ const confirmSubmit = async () => {
if (!form.scoreCardName) return ElMessage.error('请输入策略名称!');
//
if (id.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 8,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

@ -5,11 +5,15 @@
:disabled="disabled"
v-loading="loading">
<el-form-item label="策略名称">
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="form.scoreCardName"></el-input>
<div>
<el-input class="w-[320px]"
placeholder="请输入20以内字符"
maxlength="20"
clearable
v-model="form.scoreCardName" />
<p v-if="bankIds.length"
class="text-danger">不同步已关联产品请修改策略名称</p>
</div>
</el-form-item>
<el-form-item label="策略规则">
<el-table class="c-table"
@ -561,6 +565,15 @@ const getDetail = async () => {
form.scoringObject = info.scoringObject;
}
getConfig();
//
if (!props.disabled) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 9,
});
if (res.isRelated) bankIds.value = res.bankIds;
}
} catch (e) {}
} else {
getConfig();
@ -751,17 +764,8 @@ const confirmSubmit = async () => {
if (!form.scoreCardName) return ElMessage.error('请输入策略名称!');
//
if (id.value) {
const res = await isTheStrategyRelatedToTheProduct({
tacticsId: id.value,
strategyType: 9,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
if (bankIds.value.length) {
syncVisible.value = true;
} else {
submit();
}

Loading…
Cancel
Save