88 lines
2.4 KiB
TypeScript
88 lines
2.4 KiB
TypeScript
import { wrapTreeNode } from '@/utils/format';
|
|
import requestEncryption from '@/utils/requestEncryption';
|
|
|
|
// 拿到服务区商家信息表
|
|
export async function handleGetMEMBERADDRESSList(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/GetSERVERPARTSELLERList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return []
|
|
}
|
|
return data.Result_Data
|
|
}
|
|
|
|
// 同步服务区商家信息
|
|
export async function handleSynchroSERVERPARTSELLER(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/SynchroSERVERPARTSELLER`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return []
|
|
}
|
|
return data
|
|
}
|
|
|
|
// 删除服务区商家
|
|
export async function handleDeleteSERVERPARTSELLER(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/DeleteSERVERPARTSELLER`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return []
|
|
}
|
|
return data
|
|
}
|
|
|
|
// 获取门店信息列表
|
|
export async function handleGetSERVERPARTSHOPList(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/GetSERVERPARTSHOPList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return []
|
|
}
|
|
return data.Result_Data
|
|
}
|
|
|
|
// 获取服务区商家信息表明细
|
|
export async function handleGetSERVERPARTSELLERDetail(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/GetSERVERPARTSELLERDetail`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return []
|
|
}
|
|
return data.Result_Data
|
|
}
|
|
|
|
|
|
// 关联商家经营门店
|
|
export async function handleGetRelateShopToSeller(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/RelateShopToSeller`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data
|
|
}
|
|
|
|
// 解除门店关联
|
|
export async function handleRemoveShopFromSeller(params: any) {
|
|
const data = await requestEncryption(`/BaseInfo/RemoveShopFromSeller`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data
|
|
}
|