2026-03-03 17:48:45 +08:00
|
|
|
|
import { LngPriceSalesPngAppPageModel, LngPriceSalesPngAppPageParams, LngPriceSalesPngAppPageResult } from './model/PriceSalesPngAppModel';
|
|
|
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
|
|
import { ErrorMessageMode } from '/#/axios';
|
|
|
|
|
|
|
|
|
|
|
|
enum Api {
|
2026-03-05 17:46:46 +08:00
|
|
|
|
// Page = '/price/priceSalesPngApp/page',
|
2026-03-09 15:10:53 +08:00
|
|
|
|
Page = '/magic-api/price/priceSalesPngApp/page',
|
2026-03-03 17:48:45 +08:00
|
|
|
|
List = '/price/priceSalesPngApp/list',
|
|
|
|
|
|
Info = '/price/priceSalesPngApp/info',
|
|
|
|
|
|
LngPriceSalesPngApp = '/price/priceSalesPngApp',
|
2026-03-09 15:10:53 +08:00
|
|
|
|
dpagePage = '/magic-api/price/priceSalesPngApp/dpage',
|
2026-03-03 17:48:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DataLog = '/price/priceSalesPngApp/datalog',
|
|
|
|
|
|
}
|
2026-03-09 15:10:53 +08:00
|
|
|
|
export async function getLngPriceContractSalesPng(params: LngPriceSalesPngAppPageParams, mode: ErrorMessageMode = 'modal') {
|
|
|
|
|
|
return defHttp.get<LngPriceSalesPngAppPageParams>(
|
|
|
|
|
|
{
|
|
|
|
|
|
url: Api.dpagePage,
|
|
|
|
|
|
params,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
errorMessageMode: mode,
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2026-03-03 17:48:45 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @description: 查询LngPriceSalesPngApp分页列表
|
|
|
|
|
|
*/
|
|
|
|
|
|
export async function getLngPriceSalesPngAppPage(params: LngPriceSalesPngAppPageParams, mode: ErrorMessageMode = 'modal') {
|
|
|
|
|
|
return defHttp.get<LngPriceSalesPngAppPageResult>(
|
|
|
|
|
|
{
|
|
|
|
|
|
url: Api.Page,
|
|
|
|
|
|
params,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
errorMessageMode: mode,
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @description: 获取LngPriceSalesPngApp信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
export async function getLngPriceSalesPngApp(id: String, mode: ErrorMessageMode = 'modal') {
|
|
|
|
|
|
return defHttp.get<LngPriceSalesPngAppPageModel>(
|
|
|
|
|
|
{
|
|
|
|
|
|
url: Api.Info,
|
|
|
|
|
|
params: { id },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
errorMessageMode: mode,
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @description: 新增LngPriceSalesPngApp
|
|
|
|
|
|
*/
|
|
|
|
|
|
export async function addLngPriceSalesPngApp(lngPriceSalesPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
|
|
|
|
|
|
return defHttp.post<boolean>(
|
|
|
|
|
|
{
|
|
|
|
|
|
url: Api.LngPriceSalesPngApp,
|
|
|
|
|
|
params: lngPriceSalesPngApp,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
errorMessageMode: mode,
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @description: 更新LngPriceSalesPngApp
|
|
|
|
|
|
*/
|
|
|
|
|
|
export async function updateLngPriceSalesPngApp(lngPriceSalesPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
|
|
|
|
|
|
return defHttp.put<boolean>(
|
|
|
|
|
|
{
|
|
|
|
|
|
url: Api.LngPriceSalesPngApp,
|
|
|
|
|
|
params: lngPriceSalesPngApp,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
errorMessageMode: mode,
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @description: 删除LngPriceSalesPngApp(批量删除)
|
|
|
|
|
|
*/
|
|
|
|
|
|
export async function deleteLngPriceSalesPngApp(ids: string[], mode: ErrorMessageMode = 'modal') {
|
|
|
|
|
|
return defHttp.delete<boolean>(
|
|
|
|
|
|
{
|
|
|
|
|
|
url: Api.LngPriceSalesPngApp,
|
|
|
|
|
|
data: ids,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
errorMessageMode: mode,
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|