卸货区域前端代码生成

This commit is contained in:
张秉卓
2025-11-18 11:34:09 +08:00
parent 96ee1b57fc
commit 543b550214
7 changed files with 1557 additions and 0 deletions

View File

@ -0,0 +1,122 @@
import { LngBPlaceLngUnloadPageModel, LngBPlaceLngUnloadPageParams, LngBPlaceLngUnloadPageResult } from './model/PlaceLngUnloadModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
Page = '/mdm/placeLngUnload/page',
List = '/mdm/placeLngUnload/list',
Info = '/mdm/placeLngUnload/info',
LngBPlaceLngUnload = '/mdm/placeLngUnload',
Enable = '/mdm/placeLngUnload/enable',
Disable= '/mdm/placeLngUnload/disable',
DataLog = '/mdm/placeLngUnload/datalog',
}
/**
* @description: 查询LngBPlaceLngUnload分页列表
*/
export async function getLngBPlaceLngUnloadPage(params: LngBPlaceLngUnloadPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngBPlaceLngUnloadPageResult>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngBPlaceLngUnload信息
*/
export async function getLngBPlaceLngUnload(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngBPlaceLngUnloadPageModel>(
{
url: Api.Info,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 新增LngBPlaceLngUnload
*/
export async function addLngBPlaceLngUnload(lngBPlaceLngUnload: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.LngBPlaceLngUnload,
params: lngBPlaceLngUnload,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 更新LngBPlaceLngUnload
*/
export async function updateLngBPlaceLngUnload(lngBPlaceLngUnload: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.LngBPlaceLngUnload,
params: lngBPlaceLngUnload,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除LngBPlaceLngUnload批量删除
*/
export async function deleteLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
url: Api.LngBPlaceLngUnload,
data: ids,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 启用数据LngBPlaceLngUnload
*/
export async function enableLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.Enable,
data: ids,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 作废数据LngBPlaceLngUnload
*/
export async function disableLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.Disable,
data: ids,
},
{
errorMessageMode: mode,
},
);
}

View File

@ -0,0 +1,56 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
/**
* @description: LngBPlaceLngUnload分页参数 模型
*/
export interface LngBPlaceLngUnloadPageParams extends BasicPageParams {
fullName: string;
valid: string;
code: string;
regionCode: string;
addr: string;
longitude: string;
latitude: string;
sort: string;
note: string;
}
/**
* @description: LngBPlaceLngUnload分页返回值模型
*/
export interface LngBPlaceLngUnloadPageModel {
id: string;
code: string;
fullName: string;
regionCode: string;
addr: string;
valid: string;
longitude: string;
latitude: string;
sort: string;
note: string;
}
0;
/**
* @description: LngBPlaceLngUnload分页返回值结构
*/
export type LngBPlaceLngUnloadPageResult = BasicFetchResult<LngBPlaceLngUnloadPageModel>;