Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
b7aea7a7
Commit
b7aea7a7
authored
Apr 24, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 物料货源清单的供应商接口引入
parent
6da53b97
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
43 deletions
+44
-43
api.config.js
api.config.js
+1
-1
index.ts
config/routes/index.ts
+1
-1
index.ts
...ion/purchaseRequisition/increaseRequisition/apis/index.ts
+12
-7
index.ts
...quisition/components/newMemberModalTable/columns/index.ts
+27
-30
index.tsx
...reaseRequisition/components/newMemberModalTable/index.tsx
+3
-4
No files found.
api.config.js
View file @
b7aea7a7
...
@@ -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
...
...
config/routes/index.ts
View file @
b7aea7a7
...
@@ -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
,
Order
Route
]
:
asyncRoutes
;
const
routes
=
isDev
?
[
homeRoute
,
Procurement
Route
]
:
asyncRoutes
;
const
memberCenterRoute
=
{
const
memberCenterRoute
=
{
path
:
'/memberCenter'
,
path
:
'/memberCenter'
,
...
...
src/pages/transaction/purchaseRequisition/increaseRequisition/apis/index.ts
View file @
b7aea7a7
import
{
getMemberUserPage
,
postMemberManageLowerProviderPage
}
from
"@/services/MemberV2Api"
import
{
getMemberUserPage
,
postMemberManageLowerProviderPage
}
from
"@/services/MemberV2Api"
import
{
getProductCommodityCommonGetCommodityListByBuyer
,
getProductGoodsGetGoods
ByMemberList
,
getProductGoodsGetGoods
List
}
from
"@/services/ProductV2Api"
import
{
getProductCommodityCommonGetCommodityListByBuyer
,
getProductGoodsGetGoods
Supply
List
}
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
;
},
}
}
src/pages/transaction/purchaseRequisition/increaseRequisition/components/newMemberModalTable/columns/index.ts
View file @
b7aea7a7
...
@@ -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
'
,
},
},
]
]
src/pages/transaction/purchaseRequisition/increaseRequisition/components/newMemberModalTable/index.tsx
View file @
b7aea7a7
...
@@ -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
.
get
MemberListByMemberName
({
...
params
})
}
fetchdata=
{
(
params
)
=>
fetchOrderApi
.
get
ProductGoodsGetGoodsSupply
({
...
params
})
}
/>
/>
</
Tabs
.
TabPane
>
</
Tabs
.
TabPane
>
</
Tabs
>
</
Tabs
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment