yujialong 7 months ago
parent ea29e820e3
commit ae5899a977
  1. 2
      .env
  2. 4
      src/components/Panel/index.vue
  3. 44
      src/views/product/afterLoan/1031.vue
  4. 2
      src/views/product/bank/Approve.vue
  5. 1
      src/views/product/strategy/150/Detail.vue

@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘
VITE_PORT=9520 VITE_PORT=9520
# VITE_PROXY=http://192.168.31.125:8080 # VITE_PROXY=http://192.168.31.125:8080
VITE_PUBLIC_PATH=./ VITE_PUBLIC_PATH=./
# VITE_BASE_API=http://192.168.31.217:9000 # VITE_BASE_API=http://192.168.31.51:9000
VITE_BASE_API=http://121.37.12.51 VITE_BASE_API=http://121.37.12.51
# VITE_BASE_API=https://www.occupationlab.com # VITE_BASE_API=https://www.occupationlab.com
VITE_I18N_LOCALE=zh-cn VITE_I18N_LOCALE=zh-cn

@ -561,6 +561,9 @@ let reload = async () => {
}; };
// //
let reloadConfirm = async () => { let reloadConfirm = async () => {
if (isSubmit.value) {
reload();
} else {
ElMessageBox.confirm('<p class="text-danger">点击重新开始,之前操作会清空。</p><p>确定重新开始吗?</p>', '提示', { ElMessageBox.confirm('<p class="text-danger">点击重新开始,之前操作会清空。</p><p>确定重新开始吗?</p>', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -577,6 +580,7 @@ let reloadConfirm = async () => {
.catch(() => { .catch(() => {
submiting.value = false; submiting.value = false;
}); });
}
}; };
// //
let submit = async () => { let submit = async () => {

@ -21,7 +21,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable clearable
v-model="row.formulaOne"> v-model="row.formulaOne"
disabled>
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -31,7 +32,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo"
disabled>
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -45,7 +47,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] mx-2" class="w-[140px] mx-2"
clearable clearable
v-model="row.formulaOne"> v-model="row.formulaOne"
disabled>
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -55,7 +58,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] ml-2" class="w-[140px] ml-2"
clearable clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo"
disabled>
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -66,11 +70,13 @@
<el-input class="w-[80px] mx-2" <el-input class="w-[80px] mx-2"
placeholder="请输入" placeholder="请输入"
v-model="row.formulaOne"></el-input> v-model="row.formulaOne"
disabled></el-input>
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] mr-2" class="w-[140px] mr-2"
clearable clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo"
disabled>
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -83,7 +89,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] mx-2" class="w-[140px] mx-2"
clearable clearable
v-model="row.formulaOne"> v-model="row.formulaOne"
disabled>
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -98,7 +105,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable clearable
v-model="row.formulaOne"> v-model="row.formulaOne"
disabled>
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -108,7 +116,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo"
disabled>
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -123,7 +132,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable clearable
v-model="row.formulaOne"> v-model="row.formulaOne"
disabled>
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -133,7 +143,8 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo"
disabled>
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
:label="item.options" :label="item.options"
@ -187,21 +198,25 @@ import Cookies from 'js-cookie';
const form = ref<Record<string, any>[]>([]); const form = ref<Record<string, any>[]>([]);
const info = ref<Record<string, any>[]>([]); const info = ref<Record<string, any>[]>([]);
//
const answer = [[697, 697], [697, 697], [1, 707], [714], [], [697, 697], [697, 697]];
// //
const getConfig = async () => { const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(1031); const { process } = await getProcessInformationBasedOnRoles(1031);
console.log('🚀 ~ getConfig ~ process:', process);
const result = [ const result = [
{ {
recordName: '基准分', recordName: '基准分',
}, },
]; ];
process.map((e, i) => { process.map((e, i) => {
console.log('🚀 ~ process.map ~ i:', i);
let temp = { let temp = {
...getIds(), ...getIds(),
recordName: e.name, recordName: e.name,
recordChildren: e.recordChildren, recordChildren: e.recordChildren,
formulaOne: '', formulaOne: i < 7 ? answer[i][0] || '' : '',
formulaTwo: '', formulaTwo: i < 7 ? answer[i][1] || '' : '',
score: '', score: '',
id: '', id: '',
stRecordId: e.id, stRecordId: e.id,
@ -220,15 +235,12 @@ const getConfig = async () => {
if (info.value.length) { if (info.value.length) {
result.forEach((e, i) => { result.forEach((e, i) => {
if (i) { if (i) {
e.formulaOne = info.value[i - 1].formulaOne ? +info.value[i - 1].formulaOne : '';
e.indexId = info.value[i - 1].indexId; e.indexId = info.value[i - 1].indexId;
e.formulaTwo = info.value[i - 1].formulaTwo ? +info.value[i - 1].formulaTwo : '';
e.score = info.value[i - 1].score ? +info.value[i - 1].score : ''; e.score = info.value[i - 1].score ? +info.value[i - 1].score : '';
} }
}); });
} }
form.value = result; form.value = result;
console.log('🚀 ~ file: 1031.vue:83 ~ getConfig ~ result:', result);
}; };
// //
const getDetail = async () => { const getDetail = async () => {

@ -98,7 +98,7 @@ const signed = ref<string>();
// //
const updateAudits = (count: number) => { const updateAudits = (count: number) => {
if (count >= 2) { if (count >= 10) {
autids.value.pop(); autids.value.pop();
} }
}; };

@ -157,6 +157,7 @@ import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'
import type { TableColumnCtx } from 'element-plus'; import type { TableColumnCtx } from 'element-plus';
import { handleId, getIds } from '@/utils/common'; import { handleId, getIds } from '@/utils/common';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue')); const Confirm = defineAsyncComponent(() => import('@/components/StrategyConfirm.vue'));
const props = defineProps({ const props = defineProps({

Loading…
Cancel
Save