Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -61,9 +61,7 @@
|
||||
return `${base}${path}`;
|
||||
});
|
||||
|
||||
const templateName = computed(
|
||||
() => props.templateName || '导入模板.xlsx'
|
||||
);
|
||||
const templateName = computed(() => props.templateName || '导入模板.xlsx');
|
||||
|
||||
/* 上传 */
|
||||
const doUpload = ({ file }) => {
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -155,7 +155,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditAdministrativeLicense, updateCreditAdministrativeLicense } from '@/api/credit/creditAdministrativeLicense';
|
||||
import {
|
||||
addCreditAdministrativeLicense,
|
||||
updateCreditAdministrativeLicense
|
||||
} from '@/api/credit/creditAdministrativeLicense';
|
||||
import { CreditAdministrativeLicense } from '@/api/credit/creditAdministrativeLicense/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -265,7 +268,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditAdministrativeLicense : addCreditAdministrativeLicense;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditAdministrativeLicense
|
||||
: addCreditAdministrativeLicense;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -288,12 +293,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,62 +1,69 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditAdministrativeLicenseEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditAdministrativeLicenseImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditAdministrativeLicenseEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditAdministrativeLicenseImport
|
||||
v-model:visible="showImport"
|
||||
@done="reload"
|
||||
/>
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -133,7 +140,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '决定文书/许可编号',
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -127,7 +127,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditBankruptcy, updateCreditBankruptcy } from '@/api/credit/creditBankruptcy';
|
||||
import {
|
||||
addCreditBankruptcy,
|
||||
updateCreditBankruptcy
|
||||
} from '@/api/credit/creditBankruptcy';
|
||||
import { CreditBankruptcy } from '@/api/credit/creditBankruptcy/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -233,7 +236,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditBankruptcy : addCreditBankruptcy;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditBankruptcy
|
||||
: addCreditBankruptcy;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -256,12 +261,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,62 +1,66 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'code'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.code }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'code'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.code }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.code }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.code }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditBankruptcyEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditBankruptcyImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditBankruptcyEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditBankruptcyImport v-model:visible="showImport" @done="reload" />
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -81,7 +85,10 @@
|
||||
removeCreditBankruptcy,
|
||||
removeBatchCreditBankruptcy
|
||||
} from '@/api/credit/creditBankruptcy';
|
||||
import type { CreditBankruptcy, CreditBankruptcyParam } from '@/api/credit/creditBankruptcy/model';
|
||||
import type {
|
||||
CreditBankruptcy,
|
||||
CreditBankruptcyParam
|
||||
} from '@/api/credit/creditBankruptcy/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -130,7 +137,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '案号',
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -127,7 +127,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditBranch, updateCreditBranch } from '@/api/credit/creditBranch';
|
||||
import {
|
||||
addCreditBranch,
|
||||
updateCreditBranch
|
||||
} from '@/api/credit/creditBranch';
|
||||
import { CreditBranch } from '@/api/credit/creditBranch/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -233,7 +236,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditBranch : addCreditBranch;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditBranch
|
||||
: addCreditBranch;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -256,12 +261,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,62 +1,66 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditBranchEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditBranchImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditBranchEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditBranchImport v-model:visible="showImport" @done="reload" />
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -81,7 +85,10 @@
|
||||
removeCreditBranch,
|
||||
removeBatchCreditBranch
|
||||
} from '@/api/credit/creditBranch';
|
||||
import type { CreditBranch, CreditBranchParam } from '@/api/credit/creditBranch/model';
|
||||
import type {
|
||||
CreditBranch,
|
||||
CreditBranchParam
|
||||
} from '@/api/credit/creditBranch/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -130,7 +137,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '分支机构名称',
|
||||
|
||||
@@ -93,4 +93,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditBreachOfTrust, updateCreditBreachOfTrust } from '@/api/credit/creditBreachOfTrust';
|
||||
import {
|
||||
addCreditBreachOfTrust,
|
||||
updateCreditBreachOfTrust
|
||||
} from '@/api/credit/creditBreachOfTrust';
|
||||
import { CreditBreachOfTrust } from '@/api/credit/creditBreachOfTrust/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditBreachOfTrust : addCreditBreachOfTrust;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditBreachOfTrust
|
||||
: addCreditBreachOfTrust;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -93,4 +93,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditCaseFiling, updateCreditCaseFiling } from '@/api/credit/creditCaseFiling';
|
||||
import {
|
||||
addCreditCaseFiling,
|
||||
updateCreditCaseFiling
|
||||
} from '@/api/credit/creditCaseFiling';
|
||||
import { CreditCaseFiling } from '@/api/credit/creditCaseFiling/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditCaseFiling : addCreditCaseFiling;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditCaseFiling
|
||||
: addCreditCaseFiling;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -105,4 +105,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@
|
||||
v-model:value="form.code"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="类型" name="type">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入类型"-->
|
||||
<!-- v-model:value="form.type"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="上级id, 0是顶级" name="parentId">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入上级id, 0是顶级"-->
|
||||
<!-- v-model:value="form.parentId"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="类型" name="type">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入类型"-->
|
||||
<!-- v-model:value="form.type"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="上级id, 0是顶级" name="parentId">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入上级id, 0是顶级"-->
|
||||
<!-- v-model:value="form.parentId"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<a-form-item label="登记状态" name="registrationStatus">
|
||||
<a-input
|
||||
allow-clear
|
||||
|
||||
@@ -97,8 +97,14 @@
|
||||
pageCreditAdministrativeLicense,
|
||||
importCreditAdministrativeLicense
|
||||
} from '@/api/credit/creditAdministrativeLicense';
|
||||
import { pageCreditBankruptcy, importCreditBankruptcy } from '@/api/credit/creditBankruptcy';
|
||||
import { pageCreditBranch, importCreditBranch } from '@/api/credit/creditBranch';
|
||||
import {
|
||||
pageCreditBankruptcy,
|
||||
importCreditBankruptcy
|
||||
} from '@/api/credit/creditBankruptcy';
|
||||
import {
|
||||
pageCreditBranch,
|
||||
importCreditBranch
|
||||
} from '@/api/credit/creditBranch';
|
||||
import {
|
||||
pageCreditHistoricalLegalPerson,
|
||||
importCreditHistoricalLegalPerson
|
||||
@@ -107,7 +113,10 @@
|
||||
pageCreditNearbyCompany,
|
||||
importCreditNearbyCompany
|
||||
} from '@/api/credit/creditNearbyCompany';
|
||||
import { pageCreditPatent, importCreditPatent } from '@/api/credit/creditPatent';
|
||||
import {
|
||||
pageCreditPatent,
|
||||
importCreditPatent
|
||||
} from '@/api/credit/creditPatent';
|
||||
import {
|
||||
pageCreditSuspectedRelationship,
|
||||
importCreditSuspectedRelationship
|
||||
@@ -486,7 +495,7 @@
|
||||
供应商: {
|
||||
titleMap: {
|
||||
supplier: '供应商',
|
||||
purchaseAmount: '采购金额(万元)',
|
||||
purchaseAmount: '采购金额(万元)'
|
||||
}
|
||||
},
|
||||
立案信息: {
|
||||
@@ -508,7 +517,6 @@
|
||||
otherPartiesThirdParty: '其他当事人/第三人',
|
||||
causeOfAction: '案由',
|
||||
involvedAmount: '涉案金额'
|
||||
|
||||
},
|
||||
hidden: ['dataStatus']
|
||||
},
|
||||
@@ -557,7 +565,7 @@
|
||||
historyId: '历史被执行人ID',
|
||||
historyName: '历史被执行人名称'
|
||||
},
|
||||
hidden: ['historyId','dataStatus']
|
||||
hidden: ['historyId', 'dataStatus']
|
||||
},
|
||||
失信被执行人: {
|
||||
titleMap: {
|
||||
@@ -566,7 +574,7 @@
|
||||
appellee: '被告/被上诉人',
|
||||
otherPartiesThirdParty: '其他当事人/第三人',
|
||||
causeOfAction: '案由',
|
||||
involvedAmount: '涉案金额',
|
||||
involvedAmount: '涉案金额'
|
||||
},
|
||||
hidden: ['dataStatus']
|
||||
},
|
||||
@@ -605,22 +613,31 @@
|
||||
},
|
||||
司法案件: {
|
||||
titleMap: {
|
||||
name: '案件名称',
|
||||
code: '案号',
|
||||
reason: '案由',
|
||||
infoType: '案件类型',
|
||||
country: '国家',
|
||||
caseProgress: '案件进程',
|
||||
processDate: '进程日期',
|
||||
caseIdentity: '案件身份',
|
||||
// country: '国家',
|
||||
province: '省份',
|
||||
city: '城市',
|
||||
region: '地区',
|
||||
address: '地址',
|
||||
caseProgress: '案件进度',
|
||||
caseIdentity: '案件身份',
|
||||
court: '法院',
|
||||
processDate: '进程时间',
|
||||
caseAmount: '案件金额(元)',
|
||||
expirationTime: '到期时间'
|
||||
caseAmount: '案件金额(元)'
|
||||
},
|
||||
hidden: ['parentId','type']
|
||||
|
||||
hidden: [
|
||||
'parentId',
|
||||
'type',
|
||||
'country',
|
||||
'province',
|
||||
'city',
|
||||
'region',
|
||||
'address',
|
||||
'expirationTime'
|
||||
]
|
||||
},
|
||||
附近企业: {
|
||||
order: [
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -127,7 +127,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditCompetitor, updateCreditCompetitor } from '@/api/credit/creditCompetitor';
|
||||
import {
|
||||
addCreditCompetitor,
|
||||
updateCreditCompetitor
|
||||
} from '@/api/credit/creditCompetitor';
|
||||
import { CreditCompetitor } from '@/api/credit/creditCompetitor/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -233,7 +236,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditCompetitor : addCreditCompetitor;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditCompetitor
|
||||
: addCreditCompetitor;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -256,12 +261,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="法院公告导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="法院公告导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditCourtAnnouncement, updateCreditCourtAnnouncement } from '@/api/credit/creditCourtAnnouncement';
|
||||
import {
|
||||
addCreditCourtAnnouncement,
|
||||
updateCreditCourtAnnouncement
|
||||
} from '@/api/credit/creditCourtAnnouncement';
|
||||
import { CreditCourtAnnouncement } from '@/api/credit/creditCourtAnnouncement/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditCourtAnnouncement : addCreditCourtAnnouncement;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditCourtAnnouncement
|
||||
: addCreditCourtAnnouncement;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="开庭公告导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="开庭公告导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -113,7 +113,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditCustomer, updateCreditCustomer } from '@/api/credit/creditCustomer';
|
||||
import {
|
||||
addCreditCustomer,
|
||||
updateCreditCustomer
|
||||
} from '@/api/credit/creditCustomer';
|
||||
import { CreditCustomer } from '@/api/credit/creditCustomer/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -212,7 +215,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditCustomer : addCreditCustomer;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditCustomer
|
||||
: addCreditCustomer;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -235,12 +240,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="送达公告导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="送达公告导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditDeliveryNotice, updateCreditDeliveryNotice } from '@/api/credit/creditDeliveryNotice';
|
||||
import {
|
||||
addCreditDeliveryNotice,
|
||||
updateCreditDeliveryNotice
|
||||
} from '@/api/credit/creditDeliveryNotice';
|
||||
import { CreditDeliveryNotice } from '@/api/credit/creditDeliveryNotice/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditDeliveryNotice : addCreditDeliveryNotice;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditDeliveryNotice
|
||||
: addCreditDeliveryNotice;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="对外投资导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="对外投资导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="终本案件导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="终本案件导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditFinalVersion, updateCreditFinalVersion } from '@/api/credit/creditFinalVersion';
|
||||
import {
|
||||
addCreditFinalVersion,
|
||||
updateCreditFinalVersion
|
||||
} from '@/api/credit/creditFinalVersion';
|
||||
import { CreditFinalVersion } from '@/api/credit/creditFinalVersion/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditFinalVersion : addCreditFinalVersion;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditFinalVersion
|
||||
: addCreditFinalVersion;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="股权冻结导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="股权冻结导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -280,12 +280,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -93,4 +93,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -113,7 +113,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditHistoricalLegalPerson, updateCreditHistoricalLegalPerson } from '@/api/credit/creditHistoricalLegalPerson';
|
||||
import {
|
||||
addCreditHistoricalLegalPerson,
|
||||
updateCreditHistoricalLegalPerson
|
||||
} from '@/api/credit/creditHistoricalLegalPerson';
|
||||
import { CreditHistoricalLegalPerson } from '@/api/credit/creditHistoricalLegalPerson/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -217,7 +220,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditHistoricalLegalPerson : addCreditHistoricalLegalPerson;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditHistoricalLegalPerson
|
||||
: addCreditHistoricalLegalPerson;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -240,12 +245,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,62 +1,69 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditHistoricalLegalPersonEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditHistoricalLegalPersonImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditHistoricalLegalPersonEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditHistoricalLegalPersonImport
|
||||
v-model:visible="showImport"
|
||||
@done="reload"
|
||||
/>
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -81,7 +88,10 @@
|
||||
removeCreditHistoricalLegalPerson,
|
||||
removeBatchCreditHistoricalLegalPerson
|
||||
} from '@/api/credit/creditHistoricalLegalPerson';
|
||||
import type { CreditHistoricalLegalPerson, CreditHistoricalLegalPersonParam } from '@/api/credit/creditHistoricalLegalPerson/model';
|
||||
import type {
|
||||
CreditHistoricalLegalPerson,
|
||||
CreditHistoricalLegalPersonParam
|
||||
} from '@/api/credit/creditHistoricalLegalPerson/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -130,7 +140,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '名称',
|
||||
|
||||
@@ -93,4 +93,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="被执行人导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="被执行人导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -69,14 +69,14 @@
|
||||
v-model:value="form.dataStatus"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="备注" name="comments">-->
|
||||
<!-- <a-textarea-->
|
||||
<!-- :rows="4"-->
|
||||
<!-- :maxlength="200"-->
|
||||
<!-- placeholder="请输入描述"-->
|
||||
<!-- v-model:value="form.comments"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="备注" name="comments">-->
|
||||
<!-- <a-textarea-->
|
||||
<!-- :rows="4"-->
|
||||
<!-- :maxlength="200"-->
|
||||
<!-- placeholder="请输入描述"-->
|
||||
<!-- v-model:value="form.comments"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
</a-form>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -85,7 +85,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditJudgmentDebtor, updateCreditJudgmentDebtor } from '@/api/credit/creditJudgmentDebtor';
|
||||
import {
|
||||
addCreditJudgmentDebtor,
|
||||
updateCreditJudgmentDebtor
|
||||
} from '@/api/credit/creditJudgmentDebtor';
|
||||
import { CreditJudgmentDebtor } from '@/api/credit/creditJudgmentDebtor/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -187,7 +190,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditJudgmentDebtor : addCreditJudgmentDebtor;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditJudgmentDebtor
|
||||
: addCreditJudgmentDebtor;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -210,12 +215,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
row-key="rowKey"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
@@ -21,7 +21,7 @@
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-button type="dashed" class="ele-btn-icon " @click="openImport2">
|
||||
<a-button type="dashed" class="ele-btn-icon" @click="openImport2">
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
@@ -35,7 +35,9 @@
|
||||
</template>
|
||||
<template v-if="column.key === 'caseNumber'">
|
||||
<template v-if="record.historyId">
|
||||
<span class="text-red-500 font-bold">{{ record.caseNumber }}</span>
|
||||
<span class="text-red-500 font-bold">{{
|
||||
record.caseNumber
|
||||
}}</span>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.caseNumber }}
|
||||
@@ -50,7 +52,9 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'dataStatus'">
|
||||
<div v-if="record.historyId" class="text-red-500 font-bold">有效</div>
|
||||
<div :class="record.historyId ? 'text-red-500 font-bold' : ''">
|
||||
{{ record.dataStatus || (record.historyId ? '有效' : '') }}
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
@@ -58,7 +62,12 @@
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a
|
||||
@click="
|
||||
record.__source === 'B' ? openEdit2(record) : openEdit(record)
|
||||
"
|
||||
>修改</a
|
||||
>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@@ -113,23 +122,37 @@
|
||||
import CreditJudgmentDebtorImport from './components/credit-judgment-debtor-import.vue';
|
||||
import CreditJudgmentDebtorHistoryImport from './components/credit-judgment-debtor-history-import.vue';
|
||||
import {
|
||||
pageCreditJudgmentDebtor,
|
||||
listCreditJudgmentDebtor,
|
||||
removeCreditJudgmentDebtor,
|
||||
removeBatchCreditJudgmentDebtor
|
||||
} from '@/api/credit/creditJudgmentDebtor';
|
||||
import {
|
||||
listCreditJudgmentDebtorHistory,
|
||||
removeCreditJudgmentDebtorHistory,
|
||||
removeBatchCreditJudgmentDebtorHistory
|
||||
} from '@/api/credit/creditJudgmentDebtorHistory';
|
||||
import type {
|
||||
CreditJudgmentDebtor,
|
||||
CreditJudgmentDebtorParam
|
||||
} from '@/api/credit/creditJudgmentDebtor/model';
|
||||
import type { CreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
|
||||
type CreditJudgmentDebtorTableRecord =
|
||||
| (CreditJudgmentDebtor & { rowKey: string; __source: 'A' })
|
||||
| (CreditJudgmentDebtorHistory & {
|
||||
rowKey: string;
|
||||
__source: 'B';
|
||||
// For red提示 + dblclick open history edit
|
||||
historyId: number;
|
||||
});
|
||||
|
||||
// 表格选中数据
|
||||
const selection = ref<CreditJudgmentDebtor[]>([]);
|
||||
const selection = ref<CreditJudgmentDebtorTableRecord[]>([]);
|
||||
// 当前编辑数据
|
||||
const current = ref<CreditJudgmentDebtor | null>(null);
|
||||
const current = ref<CreditJudgmentDebtorTableRecord | null>(null);
|
||||
// 是否显示编辑弹窗
|
||||
const showEdit = ref(false);
|
||||
// 是否显示编辑弹窗2
|
||||
@@ -145,6 +168,63 @@
|
||||
// 搜索关键词
|
||||
const searchText = ref('');
|
||||
|
||||
const normalizeCaseNumber = (caseNumber?: string) =>
|
||||
(caseNumber ?? '').trim();
|
||||
|
||||
const mergeByCaseNumber = (
|
||||
aList: CreditJudgmentDebtor[],
|
||||
bList: CreditJudgmentDebtorHistory[]
|
||||
): CreditJudgmentDebtorTableRecord[] => {
|
||||
const map = new Map<string, CreditJudgmentDebtorTableRecord>();
|
||||
|
||||
aList.forEach((a, idx) => {
|
||||
const key = normalizeCaseNumber(a.caseNumber) || `__A__${a.id ?? idx}`;
|
||||
map.set(key, {
|
||||
...(a as any),
|
||||
rowKey: `A-${a.id ?? key}`,
|
||||
__source: 'A'
|
||||
});
|
||||
});
|
||||
|
||||
// B overrides A when caseNumber duplicates
|
||||
bList.forEach((b, idx) => {
|
||||
const key = normalizeCaseNumber(b.caseNumber) || `__B__${b.id ?? idx}`;
|
||||
map.set(key, {
|
||||
...(b as any),
|
||||
rowKey: `B-${b.id ?? key}`,
|
||||
__source: 'B',
|
||||
historyId: b.id as number
|
||||
});
|
||||
});
|
||||
|
||||
return Array.from(map.values());
|
||||
};
|
||||
|
||||
const sortList = (
|
||||
list: CreditJudgmentDebtorTableRecord[],
|
||||
orders?: Record<string, any>
|
||||
) => {
|
||||
const sortField = orders?.sort;
|
||||
const sortOrder: string | undefined = orders?.order;
|
||||
if (!sortField || !sortOrder) {
|
||||
return list;
|
||||
}
|
||||
const desc = String(sortOrder).toLowerCase().startsWith('desc');
|
||||
return [...list].sort((a: any, b: any) => {
|
||||
const av = a?.[sortField];
|
||||
const bv = b?.[sortField];
|
||||
if (av == null && bv == null) return 0;
|
||||
if (av == null) return desc ? 1 : -1;
|
||||
if (bv == null) return desc ? -1 : 1;
|
||||
if (typeof av === 'number' && typeof bv === 'number') {
|
||||
return desc ? bv - av : av - bv;
|
||||
}
|
||||
const as = String(av);
|
||||
const bs = String(bv);
|
||||
return desc ? bs.localeCompare(as) : as.localeCompare(bs);
|
||||
});
|
||||
};
|
||||
|
||||
// 表格数据源
|
||||
const datasource: DatasourceFunction = ({
|
||||
page,
|
||||
@@ -160,11 +240,20 @@
|
||||
if (!params.keywords && searchText.value) {
|
||||
params.keywords = searchText.value;
|
||||
}
|
||||
return pageCreditJudgmentDebtor({
|
||||
...params,
|
||||
...orders,
|
||||
page,
|
||||
limit
|
||||
|
||||
// Client-side merge A+B by caseNumber, with B override.
|
||||
return Promise.all([
|
||||
listCreditJudgmentDebtor(params),
|
||||
listCreditJudgmentDebtorHistory(params as any)
|
||||
]).then(([aList, bList]) => {
|
||||
const merged = sortList(mergeByCaseNumber(aList, bList), orders as any);
|
||||
const currentPage = page ?? 1;
|
||||
const pageSize = limit ?? 20;
|
||||
const start = (currentPage - 1) * pageSize;
|
||||
return {
|
||||
list: merged.slice(start, start + pageSize),
|
||||
count: merged.length
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
@@ -250,7 +339,7 @@
|
||||
};
|
||||
|
||||
/* 打开编辑弹窗 */
|
||||
const openEdit = (row?: CreditJudgmentDebtor) => {
|
||||
const openEdit = (row?: CreditJudgmentDebtorTableRecord) => {
|
||||
current.value = row ?? null;
|
||||
showEdit.value = true;
|
||||
};
|
||||
@@ -271,7 +360,7 @@
|
||||
};
|
||||
|
||||
/* 打开编辑弹窗 */
|
||||
const openEdit2 = (row?: CreditJudgmentDebtor) => {
|
||||
const openEdit2 = (row?: CreditJudgmentDebtorTableRecord) => {
|
||||
current.value = row ?? null;
|
||||
showEdit2.value = true;
|
||||
};
|
||||
@@ -299,16 +388,23 @@
|
||||
}
|
||||
],
|
||||
fetchData: () =>
|
||||
listCreditJudgmentDebtor({
|
||||
keywords: searchText.value || undefined
|
||||
})
|
||||
Promise.all([
|
||||
listCreditJudgmentDebtor({ keywords: searchText.value || undefined }),
|
||||
listCreditJudgmentDebtorHistory({
|
||||
keywords: searchText.value || undefined
|
||||
} as any)
|
||||
]).then(([aList, bList]) => mergeByCaseNumber(aList, bList) as any)
|
||||
});
|
||||
};
|
||||
|
||||
/* 删除单个 */
|
||||
const remove = (row: CreditJudgmentDebtor) => {
|
||||
const remove = (row: CreditJudgmentDebtorTableRecord) => {
|
||||
const hide = message.loading('请求中..', 0);
|
||||
removeCreditJudgmentDebtor(row.id)
|
||||
const isHistory = (row as any).__source === 'B';
|
||||
const removeFn = isHistory
|
||||
? removeCreditJudgmentDebtorHistory
|
||||
: removeCreditJudgmentDebtor;
|
||||
removeFn((row as any).id)
|
||||
.then((msg) => {
|
||||
hide();
|
||||
message.success(msg);
|
||||
@@ -333,10 +429,26 @@
|
||||
maskClosable: true,
|
||||
onOk: () => {
|
||||
const hide = message.loading('请求中..', 0);
|
||||
removeBatchCreditJudgmentDebtor(selection.value.map((d) => d.id))
|
||||
.then((msg) => {
|
||||
const aIds: (number | undefined)[] = [];
|
||||
const bIds: (number | undefined)[] = [];
|
||||
selection.value.forEach((d: any) => {
|
||||
if (d.__source === 'B') {
|
||||
bIds.push(d.id);
|
||||
} else {
|
||||
aIds.push(d.id);
|
||||
}
|
||||
});
|
||||
return Promise.all([
|
||||
aIds.length
|
||||
? removeBatchCreditJudgmentDebtor(aIds)
|
||||
: Promise.resolve(''),
|
||||
bIds.length
|
||||
? removeBatchCreditJudgmentDebtorHistory(bIds)
|
||||
: Promise.resolve('')
|
||||
])
|
||||
.then(() => {
|
||||
hide();
|
||||
message.success(msg);
|
||||
message.success('删除成功');
|
||||
reload();
|
||||
})
|
||||
.catch((e) => {
|
||||
@@ -353,7 +465,7 @@
|
||||
};
|
||||
|
||||
/* 自定义行属性 */
|
||||
const customRow = (record: CreditJudgmentDebtor) => {
|
||||
const customRow = (record: CreditJudgmentDebtorTableRecord) => {
|
||||
return {
|
||||
// 行点击事件
|
||||
onClick: () => {
|
||||
@@ -361,12 +473,11 @@
|
||||
},
|
||||
// 行双击事件
|
||||
onDblclick: () => {
|
||||
if(!record.historyId){
|
||||
if ((record as any).__source !== 'B') {
|
||||
openEdit(record);
|
||||
}else {
|
||||
} else {
|
||||
openEdit2(record);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -34,13 +34,13 @@
|
||||
v-model:value="form.name"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="被执行人" name="name1">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入被执行人"-->
|
||||
<!-- v-model:value="form.name1"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="被执行人" name="name1">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入被执行人"-->
|
||||
<!-- v-model:value="form.name1"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<a-form-item label="证件号/组织机构代码" name="code">
|
||||
<a-input
|
||||
allow-clear
|
||||
@@ -76,14 +76,14 @@
|
||||
v-model:value="form.dataStatus"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="备注" name="comments">-->
|
||||
<!-- <a-textarea-->
|
||||
<!-- :rows="4"-->
|
||||
<!-- :maxlength="200"-->
|
||||
<!-- placeholder="请输入描述"-->
|
||||
<!-- v-model:value="form.comments"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="备注" name="comments">-->
|
||||
<!-- <a-textarea-->
|
||||
<!-- :rows="4"-->
|
||||
<!-- :maxlength="200"-->
|
||||
<!-- placeholder="请输入描述"-->
|
||||
<!-- v-model:value="form.comments"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
</a-form>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -92,7 +92,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditJudgmentDebtorHistory, updateCreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory';
|
||||
import {
|
||||
addCreditJudgmentDebtorHistory,
|
||||
updateCreditJudgmentDebtorHistory
|
||||
} from '@/api/credit/creditJudgmentDebtorHistory';
|
||||
import { CreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -202,7 +205,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditJudgmentDebtorHistory : addCreditJudgmentDebtorHistory;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditJudgmentDebtorHistory
|
||||
: addCreditJudgmentDebtorHistory;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -225,12 +230,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,50 +1,54 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditJudgmentDebtorHistoryEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditJudgmentDebtorHistoryEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -59,10 +63,17 @@
|
||||
ColumnItem
|
||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||
import Search from './components/search.vue';
|
||||
import {getPageTitle} from '@/utils/common';
|
||||
import { getPageTitle } from '@/utils/common';
|
||||
import CreditJudgmentDebtorHistoryEdit from './components/creditJudgmentDebtorHistoryEdit.vue';
|
||||
import { pageCreditJudgmentDebtorHistory, removeCreditJudgmentDebtorHistory, removeBatchCreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory';
|
||||
import type { CreditJudgmentDebtorHistory, CreditJudgmentDebtorHistoryParam } from '@/api/credit/creditJudgmentDebtorHistory/model';
|
||||
import {
|
||||
pageCreditJudgmentDebtorHistory,
|
||||
removeCreditJudgmentDebtorHistory,
|
||||
removeBatchCreditJudgmentDebtorHistory
|
||||
} from '@/api/credit/creditJudgmentDebtorHistory';
|
||||
import type {
|
||||
CreditJudgmentDebtorHistory,
|
||||
CreditJudgmentDebtorHistoryParam
|
||||
} from '@/api/credit/creditJudgmentDebtorHistory/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -103,7 +114,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '案号',
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="裁判文书导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="裁判文书导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditJudicialDocument, updateCreditJudicialDocument } from '@/api/credit/creditJudicialDocument';
|
||||
import {
|
||||
addCreditJudicialDocument,
|
||||
updateCreditJudicialDocument
|
||||
} from '@/api/credit/creditJudicialDocument';
|
||||
import { CreditJudicialDocument } from '@/api/credit/creditJudicialDocument/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditJudicialDocument : addCreditJudicialDocument;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditJudicialDocument
|
||||
: addCreditJudicialDocument;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -85,7 +85,10 @@
|
||||
removeCreditJudiciary,
|
||||
removeBatchCreditJudiciary
|
||||
} from '@/api/credit/creditJudiciary';
|
||||
import type { CreditJudiciary, CreditJudiciaryParam } from '@/api/credit/creditJudiciary/model';
|
||||
import type {
|
||||
CreditJudiciary,
|
||||
CreditJudiciaryParam
|
||||
} from '@/api/credit/creditJudiciary/model';
|
||||
import { exportCreditData } from '../utils/export';
|
||||
|
||||
// 表格实例
|
||||
@@ -188,7 +191,7 @@
|
||||
dataIndex: 'caseAmount',
|
||||
key: 'caseAmount',
|
||||
ellipsis: true
|
||||
},
|
||||
}
|
||||
// {
|
||||
// title: '类型, 0普通用户, 1招投标',
|
||||
// dataIndex: 'type',
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="诉前调解导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="诉前调解导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditMediation, updateCreditMediation } from '@/api/credit/creditMediation';
|
||||
import {
|
||||
addCreditMediation,
|
||||
updateCreditMediation
|
||||
} from '@/api/credit/creditMediation';
|
||||
import { CreditMediation } from '@/api/credit/creditMediation/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditMediation : addCreditMediation;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditMediation
|
||||
: addCreditMediation;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -187,28 +187,40 @@
|
||||
v-model:value="form.businessTerm"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="国标行业门类" name="nationalStandardIndustryCategories">
|
||||
<a-form-item
|
||||
label="国标行业门类"
|
||||
name="nationalStandardIndustryCategories"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入国标行业门类"
|
||||
v-model:value="form.nationalStandardIndustryCategories"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="国标行业大类" name="nationalStandardIndustryCategories2">
|
||||
<a-form-item
|
||||
label="国标行业大类"
|
||||
name="nationalStandardIndustryCategories2"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入国标行业大类"
|
||||
v-model:value="form.nationalStandardIndustryCategories2"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="国标行业中类" name="nationalStandardIndustryCategories3">
|
||||
<a-form-item
|
||||
label="国标行业中类"
|
||||
name="nationalStandardIndustryCategories3"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入国标行业中类"
|
||||
v-model:value="form.nationalStandardIndustryCategories3"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="国标行业小类" name="nationalStandardIndustryCategories4">
|
||||
<a-form-item
|
||||
label="国标行业小类"
|
||||
name="nationalStandardIndustryCategories4"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入国标行业小类"
|
||||
@@ -271,28 +283,40 @@
|
||||
v-model:value="form.tel"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="企查查行业门类" name="nationalStandardIndustryCategories5">
|
||||
<a-form-item
|
||||
label="企查查行业门类"
|
||||
name="nationalStandardIndustryCategories5"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入企查查行业门类"
|
||||
v-model:value="form.nationalStandardIndustryCategories5"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="企查查行业大类" name="nationalStandardIndustryCategories6">
|
||||
<a-form-item
|
||||
label="企查查行业大类"
|
||||
name="nationalStandardIndustryCategories6"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入企查查行业大类"
|
||||
v-model:value="form.nationalStandardIndustryCategories6"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="企查查行业中类" name="nationalStandardIndustryCategories7">
|
||||
<a-form-item
|
||||
label="企查查行业中类"
|
||||
name="nationalStandardIndustryCategories7"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入企查查行业中类"
|
||||
v-model:value="form.nationalStandardIndustryCategories7"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="企查查行业小类" name="nationalStandardIndustryCategories8">
|
||||
<a-form-item
|
||||
label="企查查行业小类"
|
||||
name="nationalStandardIndustryCategories8"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入企查查行业小类"
|
||||
@@ -348,7 +372,10 @@
|
||||
v-model:value="form.latestAnnualReportYear"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="最新年报营业收入" name="latestAnnualReportOnOperatingRevenue">
|
||||
<a-form-item
|
||||
label="最新年报营业收入"
|
||||
name="latestAnnualReportOnOperatingRevenue"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入最新年报营业收入"
|
||||
@@ -449,7 +476,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditNearbyCompany, updateCreditNearbyCompany } from '@/api/credit/creditNearbyCompany';
|
||||
import {
|
||||
addCreditNearbyCompany,
|
||||
updateCreditNearbyCompany
|
||||
} from '@/api/credit/creditNearbyCompany';
|
||||
import { CreditNearbyCompany } from '@/api/credit/creditNearbyCompany/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -601,7 +631,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditNearbyCompany : addCreditNearbyCompany;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditNearbyCompany
|
||||
: addCreditNearbyCompany;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -624,12 +656,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,63 +1,67 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
:scroll="{ x: 9000 }"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
:scroll="{ x: 9000 }"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditNearbyCompanyEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditNearbyCompanyImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditNearbyCompanyEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditNearbyCompanyImport v-model:visible="showImport" @done="reload" />
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -82,7 +86,10 @@
|
||||
removeCreditNearbyCompany,
|
||||
removeBatchCreditNearbyCompany
|
||||
} from '@/api/credit/creditNearbyCompany';
|
||||
import type { CreditNearbyCompany, CreditNearbyCompanyParam } from '@/api/credit/creditNearbyCompany/model';
|
||||
import type {
|
||||
CreditNearbyCompany,
|
||||
CreditNearbyCompanyParam
|
||||
} from '@/api/credit/creditNearbyCompany/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -131,7 +138,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '企业名称',
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -155,7 +155,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditPatent, updateCreditPatent } from '@/api/credit/creditPatent';
|
||||
import {
|
||||
addCreditPatent,
|
||||
updateCreditPatent
|
||||
} from '@/api/credit/creditPatent';
|
||||
import { CreditPatent } from '@/api/credit/creditPatent/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -265,7 +268,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditPatent : addCreditPatent;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditPatent
|
||||
: addCreditPatent;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -288,12 +293,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,62 +1,66 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditPatentEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditPatentImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditPatentEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditPatentImport v-model:visible="showImport" @done="reload" />
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -81,7 +85,10 @@
|
||||
removeCreditPatent,
|
||||
removeBatchCreditPatent
|
||||
} from '@/api/credit/creditPatent';
|
||||
import type { CreditPatent, CreditPatentParam } from '@/api/credit/creditPatent/model';
|
||||
import type {
|
||||
CreditPatent,
|
||||
CreditPatentParam
|
||||
} from '@/api/credit/creditPatent/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -130,7 +137,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '发明名称',
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="招投标导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="招投标导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -190,7 +190,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditProject, updateCreditProject } from '@/api/credit/creditProject';
|
||||
import {
|
||||
addCreditProject,
|
||||
updateCreditProject
|
||||
} from '@/api/credit/creditProject';
|
||||
import { CreditProject } from '@/api/credit/creditProject/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -305,7 +308,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditProject : addCreditProject;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditProject
|
||||
: addCreditProject;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -328,12 +333,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="风险关系导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="风险关系导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -120,7 +120,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditRiskRelation, updateCreditRiskRelation } from '@/api/credit/creditRiskRelation';
|
||||
import {
|
||||
addCreditRiskRelation,
|
||||
updateCreditRiskRelation
|
||||
} from '@/api/credit/creditRiskRelation';
|
||||
import { CreditRiskRelation } from '@/api/credit/creditRiskRelation/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -225,7 +228,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditRiskRelation : addCreditRiskRelation;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditRiskRelation
|
||||
: addCreditRiskRelation;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -248,12 +253,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
</a-spin>
|
||||
<div class="ele-text-center">
|
||||
<span>只能上传xls、xlsx文件,</span>
|
||||
<a :href="templateUrl" download="供应商导入模板.xlsx">
|
||||
下载导入模板
|
||||
</a>
|
||||
<a :href="templateUrl" download="供应商导入模板.xlsx"> 下载导入模板 </a>
|
||||
</div>
|
||||
</ele-modal>
|
||||
</template>
|
||||
@@ -93,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -113,7 +113,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditSupplier, updateCreditSupplier } from '@/api/credit/creditSupplier';
|
||||
import {
|
||||
addCreditSupplier,
|
||||
updateCreditSupplier
|
||||
} from '@/api/credit/creditSupplier';
|
||||
import { CreditSupplier } from '@/api/credit/creditSupplier/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -217,7 +220,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditSupplier : addCreditSupplier;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditSupplier
|
||||
: addCreditSupplier;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -240,12 +245,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -91,4 +91,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -148,7 +148,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addCreditSuspectedRelationship, updateCreditSuspectedRelationship } from '@/api/credit/creditSuspectedRelationship';
|
||||
import {
|
||||
addCreditSuspectedRelationship,
|
||||
updateCreditSuspectedRelationship
|
||||
} from '@/api/credit/creditSuspectedRelationship';
|
||||
import { CreditSuspectedRelationship } from '@/api/credit/creditSuspectedRelationship/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -257,7 +260,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateCreditSuspectedRelationship : addCreditSuspectedRelationship;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateCreditSuspectedRelationship
|
||||
: addCreditSuspectedRelationship;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -280,12 +285,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -1,62 +1,69 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||
<ele-pro-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
<template #toolbar>
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@importData="openImport"
|
||||
@exportData="exportData"
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
<template v-else>
|
||||
{{ record.name }}
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
<template v-if="column.key === 'status'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
<a @click="openEdit(record)">修改</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要删除此记录吗?"
|
||||
@confirm="remove(record)"
|
||||
>
|
||||
<a class="ele-text-danger">删除</a>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</ele-pro-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditSuspectedRelationshipEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditSuspectedRelationshipImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 编辑弹窗 -->
|
||||
<CreditSuspectedRelationshipEdit
|
||||
v-model:visible="showEdit"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditSuspectedRelationshipImport
|
||||
v-model:visible="showImport"
|
||||
@done="reload"
|
||||
/>
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -81,7 +88,10 @@
|
||||
removeCreditSuspectedRelationship,
|
||||
removeBatchCreditSuspectedRelationship
|
||||
} from '@/api/credit/creditSuspectedRelationship';
|
||||
import type { CreditSuspectedRelationship, CreditSuspectedRelationshipParam } from '@/api/credit/creditSuspectedRelationship/model';
|
||||
import type {
|
||||
CreditSuspectedRelationship,
|
||||
CreditSuspectedRelationshipParam
|
||||
} from '@/api/credit/creditSuspectedRelationship/model';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -130,7 +140,7 @@
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90,
|
||||
width: 90
|
||||
},
|
||||
{
|
||||
title: '企业名称',
|
||||
|
||||
@@ -33,13 +33,13 @@
|
||||
v-model:value="form.releaseDate"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="类型, 0普通用户, 1招投标" name="type">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入类型, 0普通用户, 1招投标"-->
|
||||
<!-- v-model:value="form.type"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="类型, 0普通用户, 1招投标" name="type">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入类型, 0普通用户, 1招投标"-->
|
||||
<!-- v-model:value="form.type"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<a-form-item label="企业角色" name="role">
|
||||
<a-input
|
||||
allow-clear
|
||||
@@ -47,13 +47,13 @@
|
||||
v-model:value="form.role"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="上级id, 0是顶级" name="parentId">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入上级id, 0是顶级"-->
|
||||
<!-- v-model:value="form.parentId"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="上级id, 0是顶级" name="parentId">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入上级id, 0是顶级"-->
|
||||
<!-- v-model:value="form.parentId"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<a-form-item label="信息类型" name="infoType">
|
||||
<a-input
|
||||
allow-clear
|
||||
@@ -61,34 +61,34 @@
|
||||
v-model:value="form.infoType"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="所在国家" name="country">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在国家"-->
|
||||
<!-- v-model:value="form.country"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在省份" name="province">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在省份"-->
|
||||
<!-- v-model:value="form.province"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在城市" name="city">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在城市"-->
|
||||
<!-- v-model:value="form.city"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在辖区" name="region">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在辖区"-->
|
||||
<!-- v-model:value="form.region"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在国家" name="country">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在国家"-->
|
||||
<!-- v-model:value="form.country"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在省份" name="province">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在省份"-->
|
||||
<!-- v-model:value="form.province"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在城市" name="city">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在城市"-->
|
||||
<!-- v-model:value="form.city"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="所在辖区" name="region">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入所在辖区"-->
|
||||
<!-- v-model:value="form.region"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<a-form-item label="省份地区" name="address">
|
||||
<a-input
|
||||
allow-clear
|
||||
@@ -125,20 +125,20 @@
|
||||
v-model:value="form.comments"
|
||||
/>
|
||||
</a-form-item>
|
||||
<!-- <a-form-item label="是否推荐" name="recommend">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入是否推荐"-->
|
||||
<!-- v-model:value="form.recommend"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="到期时间" name="expirationTime">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入到期时间"-->
|
||||
<!-- v-model:value="form.expirationTime"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="是否推荐" name="recommend">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入是否推荐"-->
|
||||
<!-- v-model:value="form.recommend"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- <a-form-item label="到期时间" name="expirationTime">-->
|
||||
<!-- <a-input-->
|
||||
<!-- allow-clear-->
|
||||
<!-- placeholder="请输入到期时间"-->
|
||||
<!-- v-model:value="form.expirationTime"-->
|
||||
<!-- />-->
|
||||
<!-- </a-form-item>-->
|
||||
<a-form-item label="排序" name="sortNumber">
|
||||
<a-input-number
|
||||
:min="0"
|
||||
@@ -218,7 +218,7 @@
|
||||
tenantId: undefined,
|
||||
createTime: undefined,
|
||||
updateTime: undefined,
|
||||
status: 0,
|
||||
status: 0
|
||||
});
|
||||
|
||||
/* 更新visible */
|
||||
@@ -289,12 +289,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -49,7 +49,10 @@
|
||||
CloudDownloadOutlined,
|
||||
DeleteOutlined
|
||||
} from '@ant-design/icons-vue';
|
||||
import type { CreditUser, CreditUserParam } from '@/api/credit/creditUser/model';
|
||||
import type {
|
||||
CreditUser,
|
||||
CreditUserParam
|
||||
} from '@/api/credit/creditUser/model';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
||||
@@ -93,4 +93,3 @@
|
||||
emit('update:visible', value);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -280,12 +280,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
@@ -74,9 +74,7 @@ export async function exportCreditData<T>({
|
||||
|
||||
writeFile(workbook, `${sheetName}.xlsx`);
|
||||
hide();
|
||||
message.success(
|
||||
successMessage || `成功导出 ${list?.length ?? 0} 条记录`
|
||||
);
|
||||
message.success(successMessage || `成功导出 ${list?.length ?? 0} 条记录`);
|
||||
} catch (e: any) {
|
||||
hide();
|
||||
message.error(e?.message || '导出失败,请重试');
|
||||
|
||||
Reference in New Issue
Block a user