yujialong 11 months ago
parent c2fce16b83
commit 1f2fccc380
  1. 28
      src/components/Panel/index.vue
  2. 1
      src/views/product/strategy/CardList.vue
  3. 2
      src/views/product/strategy/Credit.vue
  4. 6
      src/views/product/strategy/Risk1.vue
  5. 2
      src/views/product/strategy/Risk2.vue
  6. 2
      src/views/product/strategy/Risk3.vue

@ -51,6 +51,7 @@
v-show="per == 0">重新开始</el-button> v-show="per == 0">重新开始</el-button>
<el-button type="primary" <el-button type="primary"
class="submit btn h-[40px]" class="submit btn h-[40px]"
:loading="submiting"
@click="submit" @click="submit"
:disabled="isSubmit || !projectList.length">提交</el-button> :disabled="isSubmit || !projectList.length">提交</el-button>
</div> </div>
@ -263,6 +264,7 @@ const curReq = ref<Record<string, any>[]>([]);
const taskList = ref<Record<string, any>[]>([]); const taskList = ref<Record<string, any>[]>([]);
const pannelTab = ref<string>('first'); const pannelTab = ref<string>('first');
const statusTimer = ref<any>(null); const statusTimer = ref<any>(null);
const submiting = ref<boolean>(false);
const reportId = ref<string | number>(''); const reportId = ref<string | number>('');
const countVal = ref<any>(''); const countVal = ref<any>('');
const getLevel = ref(); const getLevel = ref();
@ -464,6 +466,7 @@ const submit = async () => {
type: 'warning', type: 'warning',
}) })
.then(async () => { .then(async () => {
submiting.value = true;
const date = new Date(); const date = new Date();
const timeSum = Math.ceil((date.getTime() - entryTime.value.getTime()) / 60000); // const timeSum = Math.ceil((date.getTime() - entryTime.value.getTime()) / 60000); //
const submitTime = dayjs(date).format('YYYY-MM-DD HH:mm:ss'); const submitTime = dayjs(date).format('YYYY-MM-DD HH:mm:ss');
@ -493,20 +496,21 @@ const submit = async () => {
let score = 0; let score = 0;
// //
taskList.value.map((e) => { taskList.value.map((e) => {
const item = retMap?.scoreInfo.find((n) => n.lcId === e.judgmentId); const item = retMap?.scoreInfo.find((n) => n.lcId === e.judgmentId);
if (item) { if (item) {
e.examScore = item.questionScore; e.examScore = item.questionScore;
e.finishedResult = item.calculate; // 12 e.finishedResult = item.calculate; // 12
score += item.questionScore; // score += item.questionScore; //
} else { } else {
e.examScore = 0; e.examScore = 0;
} }
}); });
grade.value = score < 10 ? '0' + score : score; grade.value = score < 10 ? '0' + score : score;
reportId.value = retMap.reportId; reportId.value = retMap.reportId;
Cookies.set('sand-reportId', retMap.reportId); Cookies.set('sand-reportId', retMap.reportId);
localStorage.setItem('sand-taskList', JSON.stringify(taskList.value)); localStorage.setItem('sand-taskList', JSON.stringify(taskList.value));
submiting.value = false;
// //
param.competitionId && param.competitionId &&
@ -521,7 +525,9 @@ const submit = async () => {
}, },
}); });
}) })
.catch(() => {}); .catch(() => {
submiting.value = false;
});
}; };
// //

@ -172,6 +172,7 @@ const getList = async (refresh?: number) => {
res.data.length ? ((!route.query.add && !creditId.value) || refresh) && switchProductCredit(res.data[0].id) : toAdd(); res.data.length ? ((!route.query.add && !creditId.value) || refresh) && switchProductCredit(res.data[0].id) : toAdd();
list1.value = res.data; list1.value = res.data;
} else { } else {
riskId.value = 702;
const { process } = await getProcessInformationBasedOnRoles(149); const { process } = await getProcessInformationBasedOnRoles(149);
list2.value = process; list2.value = process;
} }

@ -804,7 +804,7 @@ const submit = async () => {
// //
const addRecord = async () => { const addRecord = async () => {
const isEnterprise = form.scoringObject; const isEnterprise = form.scoringObject;
const preIds = `1,${Cookies.get('sand-level')},42,148,${form.scoringObject ? 513 : 512}`; // 1id/512/513 const preIds = `1,${Cookies.get('sand-level')},42,67,148,${form.scoringObject ? 513 : 512}`; // 1id/512/513
const lcRule: Array<Record<string, any>> = [handleId(514, 190, form.scoreCardName, preIds + ',514', 3), handleId(515, 191, form.scoringObject ? 392 : 391, preIds + ',515', 1)]; const lcRule: Array<Record<string, any>> = [handleId(514, 190, form.scoreCardName, preIds + ',514', 3), handleId(515, 191, form.scoringObject ? 392 : 391, preIds + ',515', 1)];
form.description && lcRule.push(handleId(516, 192, '94,' + form.description, preIds + ',516', 3)); form.description && lcRule.push(handleId(516, 192, '94,' + form.description, preIds + ',516', 3));

@ -11,7 +11,7 @@
</div> </div>
<h6 class="mb-3 text-sm text-[#006BFF] font-semibold">个人评分系数配置</h6> <h6 class="mb-3 text-sm text-[#006BFF] font-semibold">个人评分系数配置</h6>
<el-table class="c-table" <el-table class="c-table"
:data="form.slice(0,10)" :data="form.slice(0,5)"
border> border>
<el-table-column prop="recordName" <el-table-column prop="recordName"
label="信用等级" label="信用等级"
@ -29,7 +29,7 @@
<h6 class="mt-5 mb-3 text-sm text-[#006BFF] font-semibold">企业评分系数配置</h6> <h6 class="mt-5 mb-3 text-sm text-[#006BFF] font-semibold">企业评分系数配置</h6>
<el-table class="c-table" <el-table class="c-table"
:data="form.slice(10)" :data="form.slice(5)"
border> border>
<el-table-column prop="recordName" <el-table-column prop="recordName"
label="信用等级" label="信用等级"
@ -118,7 +118,7 @@ const submit = async () => {
}; };
// //
const addRecord = async () => { const addRecord = async () => {
const preIds = `1,${Cookies.get('sand-level')},42,149,702`; // 1id const preIds = `1,${Cookies.get('sand-level')},42,67,149,702`; // 1id
const rule: Array<Record<string, any>> = []; const rule: Array<Record<string, any>> = [];
form.value.forEach((e, i) => { form.value.forEach((e, i) => {

@ -119,7 +119,7 @@ const submit = async () => {
}; };
// //
const addRecord = async () => { const addRecord = async () => {
const preIds = `1,${Cookies.get('sand-level')},42,149,703,718`; // 1id const preIds = `1,${Cookies.get('sand-level')},42,67,149,703,718`; // 1id
const rule: Array<Record<string, any>> = [ const rule: Array<Record<string, any>> = [
handleId(719, 232, form.value[0].coefficient, `${preIds},719`, 3), handleId(719, 232, form.value[0].coefficient, `${preIds},719`, 3),
handleId(723, 232, form.value[2].coefficient, `${preIds},720,723`, 3), handleId(723, 232, form.value[2].coefficient, `${preIds},720,723`, 3),

@ -112,7 +112,7 @@ const submit = async () => {
}; };
// //
const addRecord = async () => { const addRecord = async () => {
const preIds = `1,${Cookies.get('sand-level')},42,149,704,747`; // 1id const preIds = `1,${Cookies.get('sand-level')},42,67,149,704,747`; // 1id
const rule: Array<Record<string, any>> = [ const rule: Array<Record<string, any>> = [
handleId(750, 232, form.value[1].coefficient, `${preIds},748,750`, 3), handleId(750, 232, form.value[1].coefficient, `${preIds},748,750`, 3),
handleId(751, 232, form.value[2].coefficient, `${preIds},748,751`, 3), handleId(751, 232, form.value[2].coefficient, `${preIds},748,751`, 3),

Loading…
Cancel
Save