策略同步的提示

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save