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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
42 deletions
+43
-42
api.config.js
api.config.js
+1
-1
index.ts
config/routes/index.ts
+1
-1
index.ts
...ion/purchaseRequisition/increaseRequisition/apis/index.ts
+11
-6
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 @@
// 0418 token
module
.
exports
=
[
{
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
:
'PayV2'
,
token
:
'ed541f0943fbc761e47c5d413a7776186bf67c43f99d1e91214ae122cee465c0'
,
categoryIds
:
[
0
],
},
// 支付服务
{
name
:
'SearchV2'
,
token
:
'b0423596740a30283a6b70343800e2e174a6560a127232194771573848f67163'
,
categoryIds
:
[
0
],
},
// 搜索服务V2
...
...
config/routes/index.ts
View file @
b7aea7a7
...
...
@@ -48,7 +48,7 @@ const homeRoute = {
};
// isDev ? [ homeRoute, OrderRoute ] :
// const routes = asyncRoutes;
const
routes
=
isDev
?
[
homeRoute
,
Order
Route
]
:
asyncRoutes
;
const
routes
=
isDev
?
[
homeRoute
,
Procurement
Route
]
:
asyncRoutes
;
const
memberCenterRoute
=
{
path
:
'/memberCenter'
,
...
...
src/pages/transaction/purchaseRequisition/increaseRequisition/apis/index.ts
View file @
b7aea7a7
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
=
{
/** 弹窗获取商品列表 */
...
...
@@ -10,7 +10,7 @@ export const fetchOrderApi = {
/** 获取下架服务提供者会员列表 */
async
getMemberListByMemberName
(
params
)
{
const
{
data
}
=
await
postMemberManageLowerProviderPage
({
...
params
},
{
ctlType
:
'none'
})
const
{
data
}
=
await
postMemberManageLowerProviderPage
({
...
params
},
{
ctlType
:
'none'
})
return
data
},
...
...
@@ -28,11 +28,16 @@ export const fetchOrderApi = {
// return data
// },
/** 查询请购人 */
async
getMemberUserPageList
(
params
)
{
const
{
data
}
=
await
getMemberUserPage
(
params
)
/** 查询请购人 */
async
getMemberUserPageList
(
params
)
{
const
{
data
}
=
await
getMemberUserPage
(
params
)
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>[] = [
export
const
materialSupplyColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'采购商物料编号'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
code
'
,
dataIndex
:
'
code
'
,
},
{
title
:
'采购商物料
摘要
'
,
key
:
''
,
dataIndex
:
''
,
title
:
'采购商物料
名称
'
,
key
:
'
name
'
,
dataIndex
:
'
name
'
,
},
{
title
:
'规格型号'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
type
'
,
dataIndex
:
'
type
'
,
},
{
title
:
'品类'
,
key
:
''
,
dataIndex
:
''
,
key
:
'customerCategory'
,
dataIndex
:
'customerCategory'
,
render
:
(
_text
)
=>
_text
?.
name
},
{
title
:
'品牌'
,
key
:
''
,
dataIndex
:
''
,
key
:
'brand'
,
dataIndex
:
'brand'
,
render
:
(
_text
)
=>
_text
?.
name
},
{
title
:
'单位'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
unitName
'
,
dataIndex
:
'
unitName
'
,
},
{
title
:
'供应商'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
memberName
'
,
dataIndex
:
'
memberName
'
,
},
{
title
:
'供应商物料编号'
,
key
:
''
,
dataIndex
:
''
,
},
{
title
:
'供应商物料摘要'
,
key
:
''
,
dataIndex
:
''
,
key
:
'goodsNo'
,
dataIndex
:
'goodsNo'
,
},
{
title
:
'生产厂家'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
manufacturer
'
,
dataIndex
:
'
manufacturer
'
,
},
{
title
:
'起运地'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
departure
'
,
dataIndex
:
'
departure
'
,
},
,
{
title
:
'到货周期'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
deliveryCycle
'
,
dataIndex
:
'
deliveryCycle
'
,
},
,
{
title
:
'交货方式'
,
key
:
''
,
dataIndex
:
''
,
key
:
'
deliveryMethod
'
,
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
const
rowItem
=
ref
.
current
.
RowCtl
.
selectRow
[
0
]
console
.
log
(
rowItem
,
'row'
)
if
(
rowItem
)
{
schemaAction
.
setFieldValue
(
'vendorRoleId'
,
rowItem
.
roleId
)
schemaAction
.
setFieldValue
(
'vendorRoleId'
,
rowItem
.
roleId
||
rowItem
.
memberRoleId
)
schemaAction
.
setFieldValue
(
'vendorMemberId'
,
rowItem
.
memberId
)
schemaAction
.
setFieldValue
(
'vendorMemberName'
,
rowItem
.
name
)
schemaAction
.
setFieldValue
(
'vendorMemberName'
,
rowItem
.
name
||
rowItem
.
memberName
)
}
confirmModal
&&
confirmModal
()
setLik
(
rowItem
)
...
...
@@ -103,7 +103,6 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal
title=
{
drawer
?.
title
}
visible=
{
visible
}
onClose=
{
()
=>
setVisible
(
false
)
}
onCancel=
{
()
=>
setVisible
(
false
)
}
width=
{
drawer
?.
width
}
{
...
otherProps
}
>
...
...
@@ -126,7 +125,7 @@ const NewMemberModalTable: React.FC<MemberModalTableProps> = (props: MemberModal
columns=
{
materialSupplyColumns
}
scroll=
{
{
x
:
'100vw'
}
}
schema=
{
materialSupplySchema
}
fetchdata=
{
(
params
)
=>
fetchOrderApi
.
get
MemberListByMemberName
({
...
params
})
}
fetchdata=
{
(
params
)
=>
fetchOrderApi
.
get
ProductGoodsGetGoodsSupply
({
...
params
})
}
/>
</
Tabs
.
TabPane
>
</
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