生产bank代码
This commit is contained in:
@ -10,6 +10,8 @@ enum Api {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Enable = '/mdm/bank/enable',
|
||||||
|
Disable= '/mdm/bank/disable',
|
||||||
|
|
||||||
DataLog = '/mdm/bank/datalog',
|
DataLog = '/mdm/bank/datalog',
|
||||||
}
|
}
|
||||||
@ -90,6 +92,35 @@ export async function deleteLngBBank(ids: string[], mode: ErrorMessageMode = 'mo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: 启用数据LngBBank
|
||||||
|
*/
|
||||||
|
export async function enableLngBBank(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||||
|
return defHttp.post<boolean>(
|
||||||
|
{
|
||||||
|
url: Api.Enable,
|
||||||
|
data: ids,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
errorMessageMode: mode,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @description: 作废数据LngBBank
|
||||||
|
*/
|
||||||
|
export async function disableLngBBank(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||||
|
return defHttp.post<boolean>(
|
||||||
|
{
|
||||||
|
url: Api.Disable,
|
||||||
|
data: ids,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
errorMessageMode: mode,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -40,7 +40,52 @@ export interface LngBBankPageModel {
|
|||||||
valid: string;
|
valid: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
0;
|
/**
|
||||||
|
* @description: LngBBank表类型
|
||||||
|
*/
|
||||||
|
export interface LngBBankModel {
|
||||||
|
id: number;
|
||||||
|
|
||||||
|
code: string;
|
||||||
|
|
||||||
|
fullName: string;
|
||||||
|
|
||||||
|
shortName: string;
|
||||||
|
|
||||||
|
bankCode: string;
|
||||||
|
|
||||||
|
regionCode: string;
|
||||||
|
|
||||||
|
swift: string;
|
||||||
|
|
||||||
|
ib: string;
|
||||||
|
|
||||||
|
ibSwift: string;
|
||||||
|
|
||||||
|
routing: string;
|
||||||
|
|
||||||
|
sort: number;
|
||||||
|
|
||||||
|
valid: string;
|
||||||
|
|
||||||
|
note: string;
|
||||||
|
|
||||||
|
createUserId: number;
|
||||||
|
|
||||||
|
createDate: string;
|
||||||
|
|
||||||
|
modifyUserId: number;
|
||||||
|
|
||||||
|
modifyDate: string;
|
||||||
|
|
||||||
|
deleteMark: number;
|
||||||
|
|
||||||
|
tenantId: number;
|
||||||
|
|
||||||
|
deptId: number;
|
||||||
|
|
||||||
|
ruleUserId: number;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: LngBBank分页返回值结构
|
* @description: LngBBank分页返回值结构
|
||||||
|
|||||||
@ -10,6 +10,8 @@ enum Api {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Enable = '/mdm/countryRegion/enable',
|
||||||
|
Disable= '/mdm/countryRegion/disable',
|
||||||
|
|
||||||
DataLog = '/mdm/countryRegion/datalog',
|
DataLog = '/mdm/countryRegion/datalog',
|
||||||
}
|
}
|
||||||
@ -90,6 +92,35 @@ export async function deleteLngBRegion(ids: string[], mode: ErrorMessageMode = '
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: 启用数据LngBRegion
|
||||||
|
*/
|
||||||
|
export async function enableLngBRegion(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||||
|
return defHttp.post<boolean>(
|
||||||
|
{
|
||||||
|
url: Api.Enable,
|
||||||
|
data: ids,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
errorMessageMode: mode,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @description: 作废数据LngBRegion
|
||||||
|
*/
|
||||||
|
export async function disableLngBRegion(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||||
|
return defHttp.post<boolean>(
|
||||||
|
{
|
||||||
|
url: Api.Disable,
|
||||||
|
data: ids,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
errorMessageMode: mode,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
//所有按钮
|
//所有按钮
|
||||||
const buttons = ref([{"isUse":true,"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true},{"isUse":true,"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true},{"isUse":true,"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true},{"isUse":true,"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true},{"isUse":true,"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true}]);
|
const buttons = ref([{"isUse":true,"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true},{"isUse":true,"name":"启用","code":"enable","icon":"ant-design:form-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"作废","code":"disable","icon":"ant-design:stop-outlined","isDefault":true,"type":"dashed"},{"isUse":true,"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true},{"isUse":true,"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true},{"isUse":true,"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true},{"isUse":true,"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true}]);
|
||||||
//展示在列表内的按钮
|
//展示在列表内的按钮
|
||||||
const actionButtons = ref<string[]>(['view', 'edit','datalog', 'copyData', 'delete', 'startwork','flowRecord']);
|
const actionButtons = ref<string[]>(['view', 'edit','datalog', 'copyData', 'delete', 'startwork','flowRecord']);
|
||||||
const buttonConfigs = computed(()=>{
|
const buttonConfigs = computed(()=>{
|
||||||
@ -76,7 +76,7 @@
|
|||||||
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
||||||
});
|
});
|
||||||
|
|
||||||
const btnEvent = {add : handleAdd,edit : handleEdit,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,}
|
const btnEvent = {add : handleAdd,edit : handleEdit,enable : handleEnable,disable : handleDisable,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,}
|
||||||
|
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@ -195,6 +195,63 @@
|
|||||||
function handleDelete(record: Recordable) {
|
function handleDelete(record: Recordable) {
|
||||||
deleteList([record.id]);
|
deleteList([record.id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleEnable() {
|
||||||
|
if (!selectedKeys.value.length) {
|
||||||
|
notification.warning({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('请选择需要启用的数据'),
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let ids = selectedKeys.value;
|
||||||
|
Modal.confirm({
|
||||||
|
title: '提示信息',
|
||||||
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
|
content: '是否确认启用?',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk() {
|
||||||
|
enableLngBBank(ids).then((_) => {
|
||||||
|
handleSuccess();
|
||||||
|
notification.success({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('启用成功!'),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onCancel() {},
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
function handleDisable() {
|
||||||
|
if (!selectedKeys.value.length) {
|
||||||
|
notification.warning({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('请选择需要禁用的数据'),
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let ids = selectedKeys.value;
|
||||||
|
Modal.confirm({
|
||||||
|
title: '提示信息',
|
||||||
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
|
content: '是否确认禁用?',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk() {
|
||||||
|
disableLngBBank(ids).then((_) => {
|
||||||
|
handleSuccess();
|
||||||
|
notification.success({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('禁用成功!'),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onCancel() {},
|
||||||
|
});
|
||||||
|
}
|
||||||
function deleteList(ids) {
|
function deleteList(ids) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示信息',
|
title: '提示信息',
|
||||||
|
|||||||
@ -209,7 +209,6 @@ export const formProps: FormProps = {
|
|||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
respNewRow: false,
|
||||||
placeholder: '请输入编码',
|
placeholder: '请输入编码',
|
||||||
maxlength: null,
|
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: '',
|
suffix: '',
|
||||||
addonBefore: '',
|
addonBefore: '',
|
||||||
@ -243,7 +242,6 @@ export const formProps: FormProps = {
|
|||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
respNewRow: false,
|
||||||
placeholder: '请输入名称',
|
placeholder: '请输入名称',
|
||||||
maxlength: null,
|
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: '',
|
suffix: '',
|
||||||
addonBefore: '',
|
addonBefore: '',
|
||||||
@ -286,7 +284,6 @@ export const formProps: FormProps = {
|
|||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
||||||
],
|
],
|
||||||
defaultSelect: null,
|
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1980458729324212226' },
|
params: { itemId: '1980458729324212226' },
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
@ -322,7 +319,6 @@ export const formProps: FormProps = {
|
|||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
respNewRow: false,
|
||||||
placeholder: '请输入上级ID',
|
placeholder: '请输入上级ID',
|
||||||
maxlength: null,
|
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: '',
|
suffix: '',
|
||||||
addonBefore: '',
|
addonBefore: '',
|
||||||
@ -356,7 +352,6 @@ export const formProps: FormProps = {
|
|||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
respNewRow: false,
|
||||||
placeholder: '请输入全路径名称',
|
placeholder: '请输入全路径名称',
|
||||||
maxlength: null,
|
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: '',
|
suffix: '',
|
||||||
addonBefore: '',
|
addonBefore: '',
|
||||||
@ -399,7 +394,6 @@ export const formProps: FormProps = {
|
|||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
||||||
],
|
],
|
||||||
defaultSelect: null,
|
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1978057078528327681' },
|
params: { itemId: '1978057078528327681' },
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
//所有按钮
|
//所有按钮
|
||||||
const buttons = ref([{"isUse":true,"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true},{"isUse":true,"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true},{"isUse":true,"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true},{"isUse":true,"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true},{"isUse":true,"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true}]);
|
const buttons = ref([{"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true},{"isUse":true,"name":"启用","code":"enable","icon":"ant-design:form-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"作废","code":"disable","icon":"ant-design:stop-outlined","isDefault":true,"type":"dashed"},{"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true,"isUse":true},{"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true,"isUse":true},{"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]);
|
||||||
//展示在列表内的按钮
|
//展示在列表内的按钮
|
||||||
const actionButtons = ref<string[]>(['view', 'edit','datalog', 'copyData', 'delete', 'startwork','flowRecord']);
|
const actionButtons = ref<string[]>(['view', 'edit','datalog', 'copyData', 'delete', 'startwork','flowRecord']);
|
||||||
const buttonConfigs = computed(()=>{
|
const buttonConfigs = computed(()=>{
|
||||||
@ -95,7 +95,7 @@
|
|||||||
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
||||||
});
|
});
|
||||||
|
|
||||||
const btnEvent = {add : handleAdd,edit : handleEdit,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,}
|
const btnEvent = {add : handleAdd,edit : handleEdit,enable : handleEnable,disable : handleDisable,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,}
|
||||||
|
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@ -216,6 +216,63 @@
|
|||||||
function handleDelete(record: Recordable) {
|
function handleDelete(record: Recordable) {
|
||||||
deleteList([record.id]);
|
deleteList([record.id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleEnable() {
|
||||||
|
if (!selectedKeys.value.length) {
|
||||||
|
notification.warning({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('请选择需要启用的数据'),
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let ids = selectedKeys.value;
|
||||||
|
Modal.confirm({
|
||||||
|
title: '提示信息',
|
||||||
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
|
content: '是否确认启用?',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk() {
|
||||||
|
enableLngBRegion(ids).then((_) => {
|
||||||
|
handleSuccess();
|
||||||
|
notification.success({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('启用成功!'),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onCancel() {},
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
function handleDisable() {
|
||||||
|
if (!selectedKeys.value.length) {
|
||||||
|
notification.warning({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('请选择需要禁用的数据'),
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let ids = selectedKeys.value;
|
||||||
|
Modal.confirm({
|
||||||
|
title: '提示信息',
|
||||||
|
icon: createVNode(ExclamationCircleOutlined),
|
||||||
|
content: '是否确认禁用?',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk() {
|
||||||
|
disableLngBRegion(ids).then((_) => {
|
||||||
|
handleSuccess();
|
||||||
|
notification.success({
|
||||||
|
message: 'Tip',
|
||||||
|
description: t('禁用成功!'),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onCancel() {},
|
||||||
|
});
|
||||||
|
}
|
||||||
function deleteList(ids) {
|
function deleteList(ids) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示信息',
|
title: '提示信息',
|
||||||
|
|||||||
Reference in New Issue
Block a user