Commit b7aea7a7 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 物料货源清单的供应商接口引入

parent 6da53b97
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 0418 token // 0418 token
module.exports = [ module.exports = [
{ name: 'LogisticsV2', token: '5b6895dc979cdfab94633c2e4560a93447433a9d6fd21a104cc7172de4a4ca37', categoryIds: [0], }, // 物流能力v2 { name: 'LogisticsV2', token: '5b6895dc979cdfab94633c2e4560a93447433a9d6fd21a104cc7172de4a4ca37', categoryIds: [0], }, // 物流能力v2
{ name: 'ProductV2', token: 'f29e9838081cc781c714c9097e1c2d97710f089d1d63a165558f21d2061a2404', categoryIds: [0], }, // 商品服务V2 { name: 'ProductV2', token: '8bd449fc3f420605aa4c6567087e18da33bbdbf02eb90aa75251d23a6d03072d', categoryIds: [0], }, // 商品服务V2-0418-1
{ name: 'TemplateV2', token: '3ec622ca65837d19c73a0ccca73da613b9aa1895f4f9143bf3eb98c8f605e66e', categoryIds: [0], }, // 页面模板服务V2 { name: 'TemplateV2', token: '3ec622ca65837d19c73a0ccca73da613b9aa1895f4f9143bf3eb98c8f605e66e', categoryIds: [0], }, // 页面模板服务V2
{ name: 'PayV2', token: 'ed541f0943fbc761e47c5d413a7776186bf67c43f99d1e91214ae122cee465c0', categoryIds: [0], }, // 支付服务 { name: 'PayV2', token: 'ed541f0943fbc761e47c5d413a7776186bf67c43f99d1e91214ae122cee465c0', categoryIds: [0], }, // 支付服务
{ name: 'SearchV2', token: 'b0423596740a30283a6b70343800e2e174a6560a127232194771573848f67163', categoryIds: [0], }, // 搜索服务V2 { name: 'SearchV2', token: 'b0423596740a30283a6b70343800e2e174a6560a127232194771573848f67163', categoryIds: [0], }, // 搜索服务V2
......
...@@ -48,7 +48,7 @@ const homeRoute = { ...@@ -48,7 +48,7 @@ const homeRoute = {
}; };
// isDev ? [ homeRoute, OrderRoute ] : // isDev ? [ homeRoute, OrderRoute ] :
// const routes = asyncRoutes; // const routes = asyncRoutes;
const routes = isDev ? [ homeRoute, OrderRoute ] : asyncRoutes; const routes = isDev ? [ homeRoute, ProcurementRoute ] : asyncRoutes;
const memberCenterRoute = { const memberCenterRoute = {
path: '/memberCenter', path: '/memberCenter',
......
import { getMemberUserPage, postMemberManageLowerProviderPage } from "@/services/MemberV2Api" import { getMemberUserPage, postMemberManageLowerProviderPage } from "@/services/MemberV2Api"
import { getProductCommodityCommonGetCommodityListByBuyer, getProductGoodsGetGoodsByMemberList, getProductGoodsGetGoodsList } from "@/services/ProductV2Api" import { getProductCommodityCommonGetCommodityListByBuyer, getProductGoodsGetGoodsSupplyList } from "@/services/ProductV2Api"
export const fetchOrderApi = { export const fetchOrderApi = {
/** 弹窗获取商品列表 */ /** 弹窗获取商品列表 */
...@@ -10,7 +10,7 @@ export const fetchOrderApi = { ...@@ -10,7 +10,7 @@ export const fetchOrderApi = {
/** 获取下架服务提供者会员列表 */ /** 获取下架服务提供者会员列表 */
async getMemberListByMemberName(params) { async getMemberListByMemberName(params) {
const { data } = await postMemberManageLowerProviderPage({...params}, { ctlType: 'none' }) const { data } = await postMemberManageLowerProviderPage({ ...params }, { ctlType: 'none' })
return data return data
}, },
...@@ -22,17 +22,22 @@ export const fetchOrderApi = { ...@@ -22,17 +22,22 @@ export const fetchOrderApi = {
// }, // },
// async getPurchaseRequesitionMaterielList(params) { // async getPurchaseRequesitionMaterielList(params) {
// params.materialGroupId = params.materialGroupId ? params.materialGroupId?.pop() :'' // params.materialGroupId = params.materialGroupId ? params.materialGroupId?.pop() :''
// const { data } = await getProductGoodsGetGoodsByMemberList(params) // const { data } = await getProductGoodsGetGoodsByMemberList(params)
// return data // return data
// }, // },
/** 查询请购人 */ /** 查询请购人 */
async getMemberUserPageList (params) { async getMemberUserPageList(params) {
const {data} = await getMemberUserPage(params) const { data } = await getMemberUserPage(params)
return data; return data;
} },
/** 查询物料货源清单的供应商(列表) */
async getProductGoodsGetGoodsSupply(params) {
const { data } = await getProductGoodsGetGoodsSupplyList(params)
return data;
},
} }
...@@ -32,69 +32,66 @@ export const memberColumns: ColumnType<any>[] = [ ...@@ -32,69 +32,66 @@ export const memberColumns: ColumnType<any>[] = [
export const materialSupplyColumns: ColumnType<any>[] = [ export const materialSupplyColumns: ColumnType<any>[] = [
{ {
title: '采购商物料编号', title: '采购商物料编号',
key: '', key: 'code',
dataIndex: '', dataIndex: 'code',
}, },
{ {
title: '采购商物料摘要', title: '采购商物料名称',
key: '', key: 'name',
dataIndex: '', dataIndex: 'name',
}, },
{ {
title: '规格型号', title: '规格型号',
key: '', key: 'type',
dataIndex: '', dataIndex: 'type',
}, },
{ {
title: '品类', title: '品类',
key: '', key: 'customerCategory',
dataIndex: '', dataIndex: 'customerCategory',
render: (_text) => _text?.name
}, },
{ {
title: '品牌', title: '品牌',
key: '', key: 'brand',
dataIndex: '', dataIndex: 'brand',
render: (_text) => _text?.name
}, },
{ {
title: '单位', title: '单位',
key: '', key: 'unitName',
dataIndex: '', dataIndex: 'unitName',
}, },
{ {
title: '供应商', title: '供应商',
key: '', key: 'memberName',
dataIndex: '', dataIndex: 'memberName',
}, },
{ {
title: '供应商物料编号', title: '供应商物料编号',
key: '', key: 'goodsNo',
dataIndex: '', dataIndex: 'goodsNo',
},
{
title: '供应商物料摘要',
key: '',
dataIndex: '',
}, },
{ {
title: '生产厂家', title: '生产厂家',
key: '', key: 'manufacturer',
dataIndex: '', dataIndex: 'manufacturer',
}, },
{ {
title: '起运地', title: '起运地',
key: '', key: 'departure',
dataIndex: '', dataIndex: 'departure',
}, },
, ,
{ {
title: '到货周期', title: '到货周期',
key: '', key: 'deliveryCycle',
dataIndex: '', dataIndex: 'deliveryCycle',
}, },
, ,
{ {
title: '交货方式', title: '交货方式',
key: '', key: 'deliveryMethod',
dataIndex: '', dataIndex: 'deliveryMethod',
}, },
] ]
...@@ -45,9 +45,9 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal ...@@ -45,9 +45,9 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal
const rowItem = ref.current.RowCtl.selectRow[0] const rowItem = ref.current.RowCtl.selectRow[0]
console.log(rowItem, 'row') console.log(rowItem, 'row')
if (rowItem) { if (rowItem) {
schemaAction.setFieldValue('vendorRoleId', rowItem.roleId) schemaAction.setFieldValue('vendorRoleId', rowItem.roleId || rowItem.memberRoleId)
schemaAction.setFieldValue('vendorMemberId', rowItem.memberId) schemaAction.setFieldValue('vendorMemberId', rowItem.memberId)
schemaAction.setFieldValue('vendorMemberName', rowItem.name) schemaAction.setFieldValue('vendorMemberName', rowItem.name || rowItem.memberName)
} }
confirmModal && confirmModal() confirmModal && confirmModal()
setLik(rowItem) setLik(rowItem)
...@@ -103,7 +103,6 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal ...@@ -103,7 +103,6 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal
title={drawer?.title} title={drawer?.title}
visible={visible} visible={visible}
onClose={() => setVisible(false)} onClose={() => setVisible(false)}
onCancel={() => setVisible(false)}
width={drawer?.width} width={drawer?.width}
{...otherProps} {...otherProps}
> >
...@@ -126,7 +125,7 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal ...@@ -126,7 +125,7 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal
columns={materialSupplyColumns} columns={materialSupplyColumns}
scroll={{ x: '100vw' }} scroll={{ x: '100vw' }}
schema={materialSupplySchema} schema={materialSupplySchema}
fetchdata={(params) => fetchOrderApi.getMemberListByMemberName({ ...params })} fetchdata={(params) => fetchOrderApi.getProductGoodsGetGoodsSupply({ ...params })}
/> />
</Tabs.TabPane> </Tabs.TabPane>
</Tabs> </Tabs>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment