策略同步的提示

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" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="strategyName"></el-input> clearable
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,17 +233,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 14,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -6,11 +6,15 @@
:disabled="disabled" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="strategyName"></el-input> clearable
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,17 +248,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 15,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -6,11 +6,15 @@
:disabled="disabled" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="strategyName"></el-input> clearable
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,17 +433,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 16,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -6,11 +6,15 @@
:disabled="disabled" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="strategyName"></el-input> clearable
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,17 +190,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 17,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -5,11 +5,15 @@
class="form" class="form"
:disabled="disabled"> :disabled="disabled">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="strategyName"></el-input> clearable
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,17 +234,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 18,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -4,11 +4,15 @@
label-suffix=":" label-suffix=":"
:disabled="disabled"> :disabled="disabled">
<el-form-item label="模型名称"> <el-form-item label="模型名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="modelName"></el-input> clearable
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,17 +348,8 @@ 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({ syncVisible.value = true;
tacticsId: id.value,
strategyType: 10,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -5,11 +5,15 @@
class="form" class="form"
:disabled="disabled"> :disabled="disabled">
<el-form-item label="模型名称"> <el-form-item label="模型名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="modelName"></el-input> clearable
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,17 +300,8 @@ 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({ syncVisible.value = true;
tacticsId: id.value,
strategyType: 12,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -5,11 +5,15 @@
class="form" class="form"
:disabled="disabled"> :disabled="disabled">
<el-form-item label="模型名称"> <el-form-item label="模型名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="modelName"></el-input> clearable
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,17 +392,8 @@ 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({ syncVisible.value = true;
tacticsId: id.value,
strategyType: 13,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -5,11 +5,15 @@
:disabled="disabled" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="strategyName"></el-input> clearable
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,17 +394,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 1,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -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,16 +318,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 2,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -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,16 +522,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 3,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -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,16 +326,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 4,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -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,16 +456,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 5,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -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,16 +458,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 6,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -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,16 +260,8 @@ 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({ syncVisible.value = true;
tacticsId: strategyId.value,
strategyType: 7,
});
if (res.isRelated) {
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -5,11 +5,15 @@
:disabled="disabled" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="form.scoreCardName"></el-input> clearable
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,17 +278,8 @@ 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({ syncVisible.value = true;
tacticsId: id.value,
strategyType: 8,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

@ -5,11 +5,15 @@
:disabled="disabled" :disabled="disabled"
v-loading="loading"> v-loading="loading">
<el-form-item label="策略名称"> <el-form-item label="策略名称">
<el-input class="w-[320px]" <div>
placeholder="请输入20以内字符" <el-input class="w-[320px]"
maxlength="20" placeholder="请输入20以内字符"
clearable maxlength="20"
v-model="form.scoreCardName"></el-input> clearable
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,17 +764,8 @@ 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({ syncVisible.value = true;
tacticsId: id.value,
strategyType: 9,
});
if (res.isRelated) {
bankIds.value = res.bankIds;
syncVisible.value = true;
} else {
submit();
}
} else { } else {
submit(); submit();
} }

Loading…
Cancel
Save