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
linweijiong
jinfa-platform
Commits
4faa7273
Commit
4faa7273
authored
Oct 20, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新增需求报价
parent
8b4c208f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
40 deletions
+51
-40
productModal.tsx
...ges/transaction/enquirySubmit/components/productModal.tsx
+5
-4
basicInfo.tsx
...ction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
+1
-0
enquiryGoods.tsx
...on/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
+45
-36
No files found.
src/pages/transaction/enquirySubmit/components/productModal.tsx
View file @
4faa7273
...
...
@@ -46,6 +46,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
const
handletOk
=
async
()
=>
{
try
{
const
v
=
await
form
.
validateFields
();
console
.
log
(
v
,
1008611
)
props
.
onOK
(
v
)
}
catch
(
err
)
{
message
.
error
(
'有必填项没填写请检查!'
)
...
...
@@ -65,7 +66,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
}
},
[])
const
onChange
=
(
e
,
attrItem
)
=>
{
cons
t
{
value
}
=
e
.
target
cons
ole
.
log
(
e
,
attrItem
,
10086
)
}
const
renderTabPanchildren
=
(
item
:
any
)
=>
{
...
...
@@ -76,7 +77,6 @@ const comfirmDialog: React.FC<Params> = (props) => {
const
options
=
attrItem
.
attributeValueList
.
map
((
item
:
any
)
=>
({
value
:
item
.
value
}))
console
.
log
(
attrItem
,
10086
)
return
(
<
Fragment
key=
{
attrItem
.
id
}
>
{
...
...
@@ -121,9 +121,10 @@ const comfirmDialog: React.FC<Params> = (props) => {
}]
}
>
<
Checkbox
.
Group
onChange=
{
(
v
)
=>
onChange
(
v
,
attrItem
)
}
>
{
attrItem
.
customerAttributeValueList
.
length
&&
attrItem
.
customerA
ttributeValueList
.
map
((
item
:
any
,
index
:
string
)
=>
(
<
Checkbox
key=
{
item
.
id
}
value=
{
item
.
id
}
>
{
item
.
value
}
</
Checkbox
>
attrItem
.
attributeValueList
.
length
&&
attrItem
.
a
ttributeValueList
.
map
((
item
:
any
,
index
:
string
)
=>
(
<
Checkbox
key=
{
item
.
id
}
value=
{
item
.
value
}
>
{
item
.
value
}
</
Checkbox
>
))
}
</
Checkbox
.
Group
>
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
View file @
4faa7273
...
...
@@ -98,6 +98,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
// }]
// }
const
fetchMemberList
=
async
(
params
)
=>
{
console
.
log
(
params
)
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberManageLowerMerchantProviderPage
(
params
).
then
(
res
=>
{
resolve
(
res
.
data
)
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
View file @
4faa7273
...
...
@@ -170,43 +170,52 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
}]
// 模拟数据
// const data = [{
// commodityId: 1,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 2,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 3,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 4,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 5,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }]
// const data = {
// totalCount: 6,
// data: [{
// commodityId: 1,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 2,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 3,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 4,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }, {
// commodityId: 5,
// name: '进口头层黄牛皮荔枝纹/红色/XXL',
// customerCategoryName: '牛皮',
// brandName: 'PELLE',
// unitName: '个',
// }]
// }
const
fetchGoodsList
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManageLowerProviderPage
(
params
)
return
res
.
data
console
.
log
(
params
)
return
new
Promise
((
resolve
,
reject
)
=>
{
// setTimeout(() => {
// resolve(data);
// }, 1000);
PublicApi
.
getProductCommodityCommonGetCommodityListByBuyer
({...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
})
// return new Promise((resolve, reject) => {
// console.log(data, params)
// setTimeout(() => {
...
...
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