yujialong 10 months ago
parent 57c828a8a7
commit c437da1c40
  1. 8
      src/layout/components/AppSidebar/Menu.vue
  2. 2
      src/views/config/level/Index.vue
  3. 61
      src/views/product/afterLoan/1033.vue
  4. 11
      src/views/product/bank/Add.vue

@ -139,7 +139,7 @@ const role = computed(() => route.query.role);
const projectId = +Cookies.get('sand-projectId');
const levelId = +Cookies.get('sand-level');
const isAdmin = ref<number | string>(route.query.admin ?? Cookies.get('sand-admin')); //
const num1 = ref<number>(0);
const num1 = ref<number | string>('');
const num2 = ref<number>(0);
//
@ -156,13 +156,13 @@ const getNum = async (status?: number, type?: number) => {
});
if (type === 1) {
// -
num2.value = data;
num2.value = data || '';
} else {
num1.value = data;
num1.value = data || '';
}
};
onMounted(() => {
const status = role.value === '41' ? 5 : role.value === '42' ? 1 : role.value === '43' ? 2 : ''; // (1- 2-3-4-5-
const status = role.value === '41' ? 299 : role.value === '42' ? 295 : role.value === '43' ? 296 : ''; // (1- 2-3-4-5-
if (status) {
getNum(status, role.value === '41' ? 0 : '');
role.value === '41' && getNum(status, 1);

@ -216,7 +216,7 @@ watch([params, () => route.query], getList);
//
const save = async () => {
if (saveLoading.value) return false;
if (!hadChange.value || saveLoading.value) return false;
saveLoading.value = true;
try {
//

@ -24,8 +24,13 @@
min-width="310"
align="center">
<template #default="{ row }">
<el-select v-if="row.recordChildren"
class="w-full"
<p v-if="row.recordChildren && row.verbalTrick">{{ row?.recordChildren[0]?.subject?.itemList.find(e => e.itemId === row.verbalTrick)?.options }}</p>
<el-button type="primary"
:icon="Plus"
@click="showDia(row)">选择</el-button>
<!-- <el-select v-if="row.recordChildren"
class="w-full type-select"
v-model="row.verbalTrick">
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item"
@ -33,7 +38,7 @@
:value="item.itemId">
<span>{{ item.options }}</span>
</el-option>
</el-select>
</el-select> -->
</template></el-table-column>
</el-table>
@ -41,10 +46,33 @@
<div class="submit"
@click="submit">确认完成配置</div>
</div>
<el-dialog v-model="selectDia"
custom-class="select-dia">
<div class="selects"
v-if="curRow.recordChildren">
<div v-for="item in
curRow?.recordChildren[0]?.subject?.itemList"
:key="item"
class="line"
@click="curRow.verbalTrick = item.itemId">
<el-radio v-model="curRow.verbalTrick"
:label="item.itemId"></el-radio>
<span>{{ item.options }}</span>
</div>
</div>
<template #footer>
<span class="dialog-footer">
<el-button type="primary"
@click="selectDia = false">关闭</el-button>
</span>
</template>
</el-dialog>
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { Plus } from '@element-plus/icons-vue';
import { ElMessage } from 'element-plus';
import { collectionAfterLoanDetails, collectionAfterLoanSave } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
@ -55,6 +83,8 @@ const projectId = +Cookies.get('sand-projectId');
const levelId = +Cookies.get('sand-level');
const form = ref<Record<string, any>[]>([]);
const info = ref<Record<string, any>[]>([]);
const curRow = ref<Record<string, any>>({});
const selectDia = ref<boolean>(false);
//
const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(1033);
@ -87,7 +117,11 @@ const getDetail = async () => {
} finally {
}
};
//
const showDia = (row: Record<string, any>) => {
selectDia.value = true;
curRow.value = row;
};
//
const addRecord = async (data: Record<string, any>) => {
const preIds = `1,${levelId},42,69,1033,1149`; // 1id
@ -140,4 +174,23 @@ onMounted(() => {
<style lang="scss" scoped>
@import url(../../../styles/form.scss);
.select-dia {
.selects {
margin-top: 20px;
}
.line {
display: flex;
align-items: flex-start;
margin-bottom: 10px;
cursor: pointer;
}
background-color: #fff;
.el-radio {
height: 20px;
margin-right: 10px;
:deep(.el-radio__label) {
display: none;
}
}
}
</style>

@ -15,7 +15,7 @@
{{ info.opinionDescription }}
</div>
<p class="mb-2 text-sm text-[#333] text-right">审查日期{{ info.approvalTime }}</p>
<p class="mb-2 text-sm text-[#333] text-right">审查员公瑾</p>
<p class="mb-2 text-sm text-[#333] text-right">审查员{{ userName }}</p>
</div>
<el-form ref="formRef"
@ -275,6 +275,7 @@ import { ElMessage } from 'element-plus';
import type { TabsPaneContext, FormInstance, FormRules } from 'element-plus';
import { findById, save, update } from '@/api/bank';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { getTheCurrentUserName } from '@/api/config';
import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum, getIds } from '@/utils/common';
import { getStatus } from '@/store/useProduct';
@ -317,6 +318,7 @@ const curTab = ref<string>('tab1');
const config = ref<any[]>([]);
const info = ref<Record<string, any>>(null);
const formRef = ref<FormInstance>();
const userName = ref<string>();
const form = reactive<RuleForm>({
checkPointId: levelId,
projectId,
@ -362,6 +364,7 @@ const getConfig = async () => {
};
//
const getDetail = async () => {
info.value = null;
if (id.value) {
try {
const { data } = await findById(id.value);
@ -370,10 +373,16 @@ const getDetail = async () => {
}
}
};
//
const getName = async () => {
const res = await getTheCurrentUserName();
userName.value = res.userName;
};
watch(
() => route.query,
() => {
getDetail();
getName();
},
{
immediate: true,

Loading…
Cancel
Save