master
Joe 1 year ago
parent b4230b200c
commit 93539fd5cd

@ -1,4 +1,5 @@
import Constants from '@/constants';
import { getPbcBusinessListUsingPost } from '@/services/pop-b2b2c/pbcBusinessController';
import { listAdminTreeUsingGet } from '@/services/pop-b2b2c/pbcCategoryController';
import {
changeProductStateForAdminUsingGet,
@ -78,6 +79,23 @@ const TableList: React.FC<{}> = () => {
dataIndex: 'pbcBusinessName',
search: false,
},
{
title: '所属商户',
dataIndex: 'pbcBusinessId',
hideInTable: true,
valueType: 'select',
fieldProps: {
showSearch: true,
fieldNames: { label: 'pbcBusinessName', value: 'pbcId' },
},
request: async () => {
const msg = await getPbcBusinessListUsingPost();
if (msg.retcode && msg.data) {
return msg.data;
}
return [];
},
},
{
title: '状态',
dataIndex: 'pbcState',

@ -70,6 +70,14 @@ export async function getPbcBusinessByIdUsingPost(
});
}
/** getPbcBusinessList 查询所以商家 POST /b2b2c/pbcbusiness/getPbcBusinessList */
export async function getPbcBusinessListUsingPost(options?: { [key: string]: any }) {
return request<API.AjaxResultListPbcBusiness_>('/b2b2c/pbcbusiness/getPbcBusinessList', {
method: 'POST',
...(options || {}),
});
}
/** 商家首页热门商品4个层级 商家首页热门商品4个层级 POST /b2b2c/pbcbusiness/hotproducts */
export async function hotpPoductsUsingPost(
body: API.PbcBusinessPageDTO,

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save