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
黄庭坚
jinfa-platform
Commits
e30c8a0b
Commit
e30c8a0b
authored
Nov 09, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
7bdbe8ff
28eee96e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
432 additions
and
85 deletions
+432
-85
logisticsRoutes.ts
config/routes/logisticsRoutes.ts
+7
-0
demandQduote.ts
config/routes/tranactionRoute/demandQduote.ts
+6
-6
basicInfo.tsx
...logistics/logisticsSubmit/detail/components/basicInfo.tsx
+174
-11
index.tsx
src/pages/logistics/logisticsSubmit/detail/index.tsx
+46
-3
toOrderSubmitDetail.tsx
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
+44
-44
details.tsx
...es/transaction/confirmInquiryQuote/components/details.tsx
+23
-10
detail.tsx
src/pages/transaction/enquiryOffer/enquirySearch/detail.tsx
+3
-3
index.less
src/pages/transaction/enquiryOffer/enquirySearch/index.less
+119
-0
detail.tsx
src/pages/transaction/enquiryOffer/toAddSubmit/detail.tsx
+4
-2
index.tsx
src/pages/transaction/enquirySubmit/toAddSubmit/index.tsx
+2
-2
basicInfo.tsx
...ction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
+3
-3
basicInfo.tsx
...ion/inquiryQuote/addInquiryOrder/components/basicInfo.tsx
+1
-1
No files found.
config/routes/logisticsRoutes.ts
View file @
e30c8a0b
...
@@ -152,6 +152,13 @@ const LogisticsRoute: RouterChild = {
...
@@ -152,6 +152,13 @@ const LogisticsRoute: RouterChild = {
name
:
'addToOrderSubmit'
,
name
:
'addToOrderSubmit'
,
component
:
'@/pages/logistics/logisticsSubmit/toOrderSubmitDetail'
,
component
:
'@/pages/logistics/logisticsSubmit/toOrderSubmitDetail'
,
hideInMenu
:
true
hideInMenu
:
true
},
// 待提交物流单-新增
{
path
:
'/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/newAdd'
,
name
:
'addToOrderSubmit'
,
component
:
'@/pages/logistics/logisticsSubmit/detail'
,
hideInMenu
:
true
},
},
// 待提交物流单-编辑
// 待提交物流单-编辑
{
{
...
...
config/routes/tranactionRoute/demandQduote.ts
View file @
e30c8a0b
...
@@ -17,7 +17,7 @@ export default [{
...
@@ -17,7 +17,7 @@ export default [{
{
{
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquirySearch/preview'
,
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquirySearch/preview'
,
name
:
'enquirySearchPreview'
,
name
:
'enquirySearchPreview'
,
component
:
'@/pages/transaction/enquiryOffer/
components
/detail'
,
component
:
'@/pages/transaction/enquiryOffer/
enquirySearch
/detail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
// 报价单查询-列表
// 报价单查询-列表
...
@@ -37,7 +37,7 @@ export default [{
...
@@ -37,7 +37,7 @@ export default [{
{
{
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquiryOfferSearch/demand/preview'
,
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquiryOfferSearch/demand/preview'
,
name
:
'enquiryOfferSearchDemandPreview'
,
name
:
'enquiryOfferSearchDemandPreview'
,
component
:
'@/pages/transaction/enquiryOffer/
components
/detail'
,
component
:
'@/pages/transaction/enquiryOffer/
enquirySearch
/detail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
// 待新建报价单-列表
// 待新建报价单-列表
...
@@ -78,7 +78,7 @@ export default [{
...
@@ -78,7 +78,7 @@ export default [{
{
{
path
:
'/memberCenter/tranactionAbility/enquiryOffer/toAddSubmitList/demand/preview'
,
path
:
'/memberCenter/tranactionAbility/enquiryOffer/toAddSubmitList/demand/preview'
,
name
:
'toAddSubmitListDemandPreview'
,
name
:
'toAddSubmitListDemandPreview'
,
component
:
'@/pages/transaction/enquiryOffer/
components
/detail'
,
component
:
'@/pages/transaction/enquiryOffer/
enquirySearch
/detail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
// 待新建报价单-详情
// 待新建报价单-详情
...
@@ -105,7 +105,7 @@ export default [{
...
@@ -105,7 +105,7 @@ export default [{
{
{
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquiryOne/demand/preview'
,
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquiryOne/demand/preview'
,
name
:
'enquiryOneDemandPreview'
,
name
:
'enquiryOneDemandPreview'
,
component
:
'@/pages/transaction/enquiryOffer/
components
/detail'
,
component
:
'@/pages/transaction/enquiryOffer/
enquirySearch
/detail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
// 待审核报价单(一级)-详情
// 待审核报价单(一级)-详情
...
@@ -132,7 +132,7 @@ export default [{
...
@@ -132,7 +132,7 @@ export default [{
{
{
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquiryTwo/demand/preview'
,
path
:
'/memberCenter/tranactionAbility/enquiryOffer/enquiryTwo/demand/preview'
,
name
:
'enquiryTwoDemandPreview'
,
name
:
'enquiryTwoDemandPreview'
,
component
:
'@/pages/transaction/enquiryOffer/
components
/detail'
,
component
:
'@/pages/transaction/enquiryOffer/
enquirySearch
/detail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
// 待审核报价单(二级)-详情
// 待审核报价单(二级)-详情
...
@@ -159,7 +159,7 @@ export default [{
...
@@ -159,7 +159,7 @@ export default [{
{
{
path
:
'/memberCenter/tranactionAbility/enquiryOffer/toSubmit/demand/preview'
,
path
:
'/memberCenter/tranactionAbility/enquiryOffer/toSubmit/demand/preview'
,
name
:
'toSubmitDemandPreview'
,
name
:
'toSubmitDemandPreview'
,
component
:
'@/pages/transaction/enquiryOffer/
components
/detail'
,
component
:
'@/pages/transaction/enquiryOffer/
enquirySearch
/detail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
// 待提交报价单-详情
// 待提交报价单-详情
...
...
src/pages/logistics/logisticsSubmit/detail/components/basicInfo.tsx
View file @
e30c8a0b
...
@@ -3,24 +3,186 @@
...
@@ -3,24 +3,186 @@
* @Date: 2020-11-06
* @Date: 2020-11-06
* @Author: HJX
* @Author: HJX
*/
*/
import
React
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
}
from
'antd'
;
import
{
Form
,
Input
,
Button
,
Select
}
from
'antd'
;
import
moment
from
'moment'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
ShippingModal
from
'../../../components/sumbitOrderModal'
;
import
InvoicesModal
from
'../../../components/sumbitOrderModal'
;
const
{
Search
}
=
Input
;
const
{
Option
}
=
Select
;
const
layout
:
any
=
{
const
layout
:
any
=
{
colon
:
false
,
colon
:
false
,
labelCol
:
{
style
:
{
width
:
'174px'
}
},
labelCol
:
{
style
:
{
width
:
'174px'
}
},
wrapperCol
:
{
span
:
9
},
wrapperCol
:
{
span
:
9
},
labelAlign
:
"left"
labelAlign
:
"left"
};
};
const
BasicInfo
:
React
.
FC
<
{}
>
=
()
=>
{
export
interface
interfaceinfo
{
return
(
parmas
?:
any
,
<
Form
handleRevise
?:
Function
{
...
layout
}
}
>
</
Form
>
const
BasicInfo
:
React
.
FC
<
interfaceinfo
>
=
(
props
)
=>
{
const
{
parmas
,
handleRevise
}
=
props
;
const
[
listcompany
,
setlistcompany
]
=
useState
<
any
>
([]);
//物流服务商
const
[
shipperaddress
,
setshipperaddress
]
=
useState
<
any
>
([]);
//发货地址
const
[
shippingvisible
,
setshippingvisible
]
=
useState
<
boolean
>
(
false
);
const
[
invoicesvisible
,
setinvoicesvisible
]
=
useState
<
boolean
>
(
false
);
const
[
form
]
=
Form
.
useForm
();
//获取物流服务商
const
getListCompany
=
()
=>
{
const
company
=
new
Promise
(
resolve
=>
{
PublicApi
.
getLogisticsSelectListCompany
({
cooperateType
:
'1'
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
})
return
company
}
//获取发货地址
const
getShipperAddress
=
()
=>
{
const
address
=
new
Promise
(
resolve
=>
{
PublicApi
.
getLogisticsSelectListShipperAddress
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
})
return
address
}
useEffect
(()
=>
{
Promise
.
all
([
getListCompany
(),
getShipperAddress
()]).
then
(
res
=>
{
setlistcompany
(
res
[
0
]);
setshipperaddress
(
res
[
1
]);
})
},
[])
// 对应发货单 columns
const
shippingColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'发货单号'
,
dataIndex
:
'invoicesNo'
,
},
{
title
:
'对应订单号'
,
dataIndex
:
'orderNo'
,
},
{
title
:
'单据摘要'
,
dataIndex
:
'invoicesAbstract'
,
},
{
title
:
'对应仓库'
,
dataIndex
:
'inventory'
,
},
{
title
:
'单据类型'
,
dataIndex
:
'invoicesType'
,
},
{
title
:
'单据时间'
,
dataIndex
:
'transactionTime'
,
render
:
(
text
:
any
)
=>
<>
{
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
</>
}
]
// 对应订单 columns
const
invoicesColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'单据号'
,
dataIndex
:
'orderNo'
,
},
{
title
:
'单据摘要'
,
dataIndex
:
'orderThe'
,
},
{
title
:
'会员名称'
,
dataIndex
:
'supplyMembersName'
,
},
{
title
:
'单据时间'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
)
=>
<>
{
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
</>
}
]
// 确定
const
handleShipping
=
(
type
:
any
,
values
:
any
,
param
:
any
)
=>
{
handleRevise
(
values
[
0
],
1
);
form
.
setFieldsValue
({
shipmentOrderCode
:
values
[
0
].
invoicesNo
})
setshippingvisible
(
false
);
}
const
handleInvoices
=
(
type
:
any
,
values
:
any
,
param
:
any
)
=>
{
handleRevise
(
values
[
0
],
2
);
form
.
setFieldsValue
({
invoicesNo
:
values
[
0
].
orderNo
})
setinvoicesvisible
(
false
);
}
return
(
<>
<
Form
{
...
layout
}
form=
{
form
}
>
<
Form
.
Item
label=
"单据摘要"
name=
"digest"
rules=
{
[{
required
:
true
,
message
:
'请输入单据摘要'
}]
}
>
<
Input
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"物流服务商"
name=
"companyId"
rules=
{
[{
required
:
true
,
message
:
'请选择流服务商'
}]
}
>
<
Select
allowClear
>
{
listcompany
.
map
((
item
:
any
,
index
:
number
)
=>
(
<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
>
{
item
.
name
}
</
Option
>
))
}
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"物流单号"
name=
'receiverName1'
><
span
></
span
></
Form
.
Item
>
<
Form
.
Item
label=
'对应发货单号'
name=
'shipmentOrderCode'
>
<
Search
value=
{
parmas
.
shipmentOrderCode
||
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setshippingvisible
(
true
)
}
/>
{
/* <Button type='link'>查看单号详情</Button> */
}
</
Form
.
Item
>
<
Form
.
Item
label=
'对应订单号/售后单'
name=
'invoicesNo'
>
<
Search
value=
{
parmas
.
invoicesNo
||
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setinvoicesvisible
(
true
)
}
/>
{
/* <Button type='link'>查看单号详情</Button> */
}
</
Form
.
Item
>
<
Form
.
Item
label=
"收货方"
name=
'receiverName'
><
span
>
{
parmas
.
receiverName
}
</
span
></
Form
.
Item
>
<
Form
.
Item
label=
"收货地址"
name=
'receiverFullAddress'
>
<
div
style=
{
{
lineHeight
:
'36px'
}
}
>
{
parmas
.
memberName
}
/
{
parmas
.
phone
}
</
div
>
<
div
>
{
parmas
.
receiverFullAddress
}
</
div
>
</
Form
.
Item
>
<
Form
.
Item
label=
"发货地址"
name=
"shipperAddressId"
>
<
Select
allowClear
>
{
shipperaddress
.
map
((
item
:
any
,
index
:
number
)
=>
(
<
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
>
{
item
.
fullAddress
}
</
Option
>
))
}
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"单据时间"
name=
'voucherTime'
><
span
></
span
></
Form
.
Item
>
<
Form
.
Item
label=
"外部状态"
name=
'externalState'
><
span
></
span
></
Form
.
Item
>
</
Form
>
<
ShippingModal
title=
'选择发货单'
columns=
{
shippingColumns
}
type=
{
2
}
onOk=
{
(
type
,
values
,
param
)
=>
handleShipping
(
type
,
values
,
param
)
}
dialogVisible=
{
shippingvisible
}
onCancel=
{
()
=>
setshippingvisible
(
false
)
}
/>
<
InvoicesModal
title=
'选择订单'
columns=
{
invoicesColumns
}
type=
{
1
}
onOk=
{
(
type
,
values
,
param
)
=>
handleInvoices
(
type
,
values
,
param
)
}
dialogVisible=
{
invoicesvisible
}
onCancel=
{
()
=>
setinvoicesvisible
(
false
)
}
/>
</>
)
)
}
}
export
default
BasicInfo
;
export
default
BasicInfo
;
\ No newline at end of file
src/pages/logistics/logisticsSubmit/detail/index.tsx
View file @
e30c8a0b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Date: 2020-11-06
* @Date: 2020-11-06
* @Author: HJX
* @Author: HJX
*/
*/
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Button
,
Card
,
Tabs
}
from
'antd'
;
import
{
Button
,
Card
,
Tabs
}
from
'antd'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
ReturnEle
from
'@/components/ReturnEle'
;
import
ReturnEle
from
'@/components/ReturnEle'
;
...
@@ -14,16 +14,59 @@ import Goods from './components/goods';//物流单明细
...
@@ -14,16 +14,59 @@ import Goods from './components/goods';//物流单明细
const
{
TabPane
}
=
Tabs
const
{
TabPane
}
=
Tabs
const
AddEditLogistics
:
React
.
FC
<
{}
>
=
()
=>
{
const
AddEditLogistics
:
React
.
FC
<
{}
>
=
()
=>
{
// 用于提交的
const
[
parmas
,
setParmas
]
=
useState
<
any
>
({
digest
:
''
,
//单据摘要
companyId
:
''
,
//物流服务商id
shipmentOrderId
:
''
,
//发货单id 1
shipmentOrderCode
:
''
,
//发货单号 1
relevanceOrderId
:
''
,
//对应订单id
invoicesNo
:
''
,
//对应单据编号 1
relevanceType
:
''
,
//对应单据类型 1-订单 2-换货申请单(退货发货) 3-换货申请单(换货发货) 4-退货申请单
receiverName
:
''
,
//收货方名称1
receiverAddressId
:
''
,
//收货方id 1
shipperAddressId
:
''
,
//发货方id
phone
:
''
,
receiverFullAddress
:
''
,
detailList
:
[],
//物流单明细列表 ,LogisticsOrderDetailRequest
})
const
[
data
,
setData
]
=
useState
<
any
>
({})
// 调用修改Fn
const
handleRevise
=
(
value
:
any
,
index
:
number
)
=>
{
console
.
log
(
value
,
'传过来的数据'
)
const
data
=
{
...
parmas
};
if
(
index
===
1
)
{
data
.
invoicesNo
=
value
.
orderNo
;
//对应单据编号
data
.
receiverAddressId
=
value
.
deliveryAddresId
;
//收货方id
data
.
shipmentOrderId
=
value
.
id
;
//发货单id
data
.
shipmentOrderCode
=
value
.
invoicesNo
;
//发货单号
}
else
if
(
index
===
2
)
{
data
.
phone
=
value
.
phone
;
data
.
receiverName
=
value
.
receiverName
;
//收货方名称
data
.
receiverFullAddress
=
value
.
fullAddress
;
data
.
memberName
=
value
.
supplyMembersName
}
setParmas
(
data
)
}
// 提交数据
const
handleSubmit
=
()
=>
{
console
.
log
(
'提交数据'
);
}
return
(
return
(
<
PageHeaderWrapper
<
PageHeaderWrapper
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReturnEle
description=
'返回'
/>
}
backIcon=
{
<
ReturnEle
description=
'返回'
/>
}
extra=
{
<
Button
type=
"primary"
>
保存
</
Button
>
}
extra=
{
<
Button
type=
"primary"
onClick=
{
handleSubmit
}
>
保存
</
Button
>
}
>
>
<
Card
>
<
Card
>
<
Tabs
type=
"card"
>
<
Tabs
type=
"card"
>
<
TabPane
key=
'tab-1'
tab=
'基本信息'
>
<
TabPane
key=
'tab-1'
tab=
'基本信息'
>
<
BasicInfo
/>
<
BasicInfo
parmas=
{
parmas
}
handleRevise=
{
handleRevise
}
/>
</
TabPane
>
</
TabPane
>
<
TabPane
key=
'tab-2'
tab=
'物流单明细'
>
<
TabPane
key=
'tab-2'
tab=
'物流单明细'
>
<
Goods
/>
<
Goods
/>
...
...
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
View file @
e30c8a0b
...
@@ -299,61 +299,56 @@ const Deatail: React.FC<{}> = () => {
...
@@ -299,61 +299,56 @@ const Deatail: React.FC<{}> = () => {
}
}
})
})
}
}
console
.
log
(
'query'
,
query
)
//从销售订单来
//从销售订单来
if
(
query
.
orderId
)
{
if
(
query
.
orderId
)
{
PublicApi
.
getOrderPurchaseOrderDetails
({
id
:
query
.
orderId
}).
then
(
res
=>
{
PublicApi
.
getOrderPurchaseOrderDetails
({
id
:
query
.
orderId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
const
data
=
res
.
data
;
console
.
log
(
res
.
data
,
'查询销售订单详情'
)
console
.
log
(
res
.
data
,
'查询销售订单详情'
)
actions
.
setFieldValue
(
'receiverName'
,
data
.
receiverName
);
// 收货人
actions
.
setFieldValue
(
'receiverAddressId'
,
data
.
deliveryAddresId
);
//收货地址id
actions
.
setFieldValue
(
'receiverFullAddress'
,
data
.
fullAddress
);
// 收货地址
setshipmentOrderCode
(
data
.
deliverNo
);
setinvoicesNo
(
data
.
orderNo
);
}
}
})
})
//发货单号
//发货单号
//
if (query.shipmentOrderCode) {
if
(
query
.
shipmentOrderCode
)
{
//
setshipmentOrderCode(query.shipmentOrderCode)
setshipmentOrderCode
(
query
.
shipmentOrderCode
)
//
}
}
//设置地址 发货单id 逻辑有物流单的用物流单优先 无物流单用订单 二选一
//设置地址 发货单id 逻辑有物流单的用物流单优先 无物流单用订单 二选一
//
setShipmentOrderID(query.orderDeliveryDetailsId || null)//发货单id
setShipmentOrderID
(
query
.
orderDeliveryDetailsId
||
null
)
//发货单id
//
setInvoicesId(query.invoicesId || null)//订单id
setInvoicesId
(
query
.
invoicesId
||
null
)
//订单id
//订单号
//订单号
//
if (query.invoicesNo) {
if
(
query
.
invoicesNo
)
{
//
setinvoicesNo(query.invoicesNo)
setinvoicesNo
(
query
.
invoicesNo
)
//
}
}
//
if (query.orderDeliveryDetailsId) {//发货单
if
(
query
.
orderDeliveryDetailsId
)
{
//发货单
//
PublicApi.getWarehouseInvoicesList({
PublicApi
.
getWarehouseInvoicesList
({
//
current: '1',
current
:
'1'
,
//
pageSize: '100000'
pageSize
:
'100000'
//
}).then(res => {
}).
then
(
res
=>
{
//
if (res.code === 1000) {
if
(
res
.
code
===
1000
)
{
//
console.log(res.data, 100086)
console
.
log
(
res
.
data
,
100086
)
//
let v = res.data.data.filter(v => v.id == query.orderDeliveryDetailsId).map(v => v)
let
v
=
res
.
data
.
data
.
filter
(
v
=>
v
.
id
==
query
.
orderDeliveryDetailsId
).
map
(
v
=>
v
)
//
let { memberName, fullAddress, deliveryAddresId } = v[0] || {}
let
{
memberName
,
fullAddress
,
deliveryAddresId
}
=
v
[
0
]
||
{}
//
actions.setFieldValue('receiverName', memberName)
actions
.
setFieldValue
(
'receiverName'
,
memberName
)
//
actions.setFieldValue('receiverAddressId', deliveryAddresId)
actions
.
setFieldValue
(
'receiverAddressId'
,
deliveryAddresId
)
//
actions.setFieldValue('receiverFullAddress', fullAddress)
actions
.
setFieldValue
(
'receiverFullAddress'
,
fullAddress
)
//
}
}
//
})
})
//
return
return
//
}
}
//
if(query.invoicesId){//订单
if
(
query
.
invoicesId
){
//订单
//
PublicApi.getOrderLogisticsOrderList({
PublicApi
.
getOrderLogisticsOrderList
({
//
current: '1',
current
:
'1'
,
//
pageSize: '100000'
pageSize
:
'100000'
//
}).then(res => {
}).
then
(
res
=>
{
//
if (res.code === 1000) {
if
(
res
.
code
===
1000
)
{
//
let v = res.data.data.filter(v => v.id == query.invoicesId).map(v => v)
let
v
=
res
.
data
.
data
.
filter
(
v
=>
v
.
id
==
query
.
invoicesId
).
map
(
v
=>
v
)
//
let { memberName, fullAddress, deliveryAddresId } = v[0] || {}
let
{
memberName
,
fullAddress
,
deliveryAddresId
}
=
v
[
0
]
||
{}
//
actions.setFieldValue('receiverName', memberName)
actions
.
setFieldValue
(
'receiverName'
,
memberName
)
//
actions.setFieldValue('receiverAddressId', deliveryAddresId)
actions
.
setFieldValue
(
'receiverAddressId'
,
deliveryAddresId
)
//
actions.setFieldValue('receiverFullAddress', fullAddress)
actions
.
setFieldValue
(
'receiverFullAddress'
,
fullAddress
)
//
}
}
//
})
})
//
}
}
}
}
return
()
=>
{
return
()
=>
{
...
@@ -361,6 +356,11 @@ const Deatail: React.FC<{}> = () => {
...
@@ -361,6 +356,11 @@ const Deatail: React.FC<{}> = () => {
}
}
},
[])
},
[])
// const { form } = useFormSpy({ selector: [['onFieldValueChange', 'detailList']], reducer: v => v })
// console.log(form);
// const detailData;// = form.getFieldValue('detailList')
//具体可以看 formProduct
//具体可以看 formProduct
const
formSearch
:
ISchema
=
{
const
formSearch
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
...
...
src/pages/transaction/confirmInquiryQuote/components/details.tsx
View file @
e30c8a0b
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
style
from
'./index.less'
import
style
from
'./index.less'
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
Button
,
Card
,
Tabs
,
Steps
,
Table
}
from
'antd'
;
import
{
Button
,
Card
,
Tabs
,
Steps
,
Table
}
from
'antd'
;
...
@@ -6,6 +6,7 @@ import { LinkOutlined } from '@ant-design/icons';
...
@@ -6,6 +6,7 @@ import { LinkOutlined } from '@ant-design/icons';
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
EyeOutlined
,
ClockCircleOutlined
,
UpOutlined
,
DownOutlined
,
StopOutlined
,
CheckSquareOutlined
}
from
'@ant-design/icons'
import
{
EyeOutlined
,
ClockCircleOutlined
,
UpOutlined
,
DownOutlined
,
StopOutlined
,
CheckSquareOutlined
}
from
'@ant-design/icons'
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
{
StandardTable
}
from
'god'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
StatusColors
from
'@/pages/transaction/components/StatusColors'
;
import
StatusColors
from
'@/pages/transaction/components/StatusColors'
;
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../common/tableStatusList'
;
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../common/tableStatusList'
;
...
@@ -32,6 +33,7 @@ export interface parmas {
...
@@ -32,6 +33,7 @@ export interface parmas {
const
Details
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
Details
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
[
visible
,
setvisible
]
=
useState
(
false
)
const
[
visible
,
setvisible
]
=
useState
(
false
)
const
ref
=
useRef
<
any
>
({});
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
//view: 1.询价单号,2.报价单号
const
{
id
,
page_type
}
=
props
;
const
{
id
,
page_type
}
=
props
;
...
@@ -244,17 +246,20 @@ const Details: React.FC<parmas> = (props) => {
...
@@ -244,17 +246,20 @@ const Details: React.FC<parmas> = (props) => {
setview
(
2
)
setview
(
2
)
PublicApi
.
getOrderNotarizeEnquiryProductQuotationDetails
({
id
}).
then
(
res
=>
{
PublicApi
.
getOrderNotarizeEnquiryProductQuotationDetails
({
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setdata
(
res
.
data
)
setdata
(
res
.
data
)
;
}
}
})
})
;
}
}
// PublicApi.getOrderNotarizeEnquiryQuotedPriceDetails({ id }).then(res => {
// if (res.code === 1000) {
// setdata(res.data)
// }
// })
},
[])
},
[])
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getOrderInquiryDetails
({...
params
,
id
}).
then
(
res
=>
{
console
.
log
(
res
,
10086
)
resolve
(
res
.
data
)
})
})
}
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
Object
.
keys
(
data
).
length
>
0
)
{
if
(
Object
.
keys
(
data
).
length
>
0
)
{
...
@@ -416,8 +421,16 @@ const Details: React.FC<parmas> = (props) => {
...
@@ -416,8 +421,16 @@ const Details: React.FC<parmas> = (props) => {
</
Card
>
</
Card
>
<
Card
className=
{
style
.
item_wrap
}
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
询价商品
</
div
>
<
div
className=
{
style
.
mainCol_title
}
style=
{
view
===
2
?
{
paddingBottom
:
'0px'
}:
{
paddingBottom
:
'24px'
}
}
>
询价商品
</
div
>
<
Table
columns=
{
inquiryGoods
}
pagination=
{
false
}
rowKey=
'id'
dataSource=
{
data
.
inquiryListProductRequests
}
/>
{
view
===
1
&&
<
Table
columns=
{
inquiryGoods
}
pagination=
{
false
}
rowKey=
'id'
dataSource=
{
data
.
inquiryListProductRequests
}
/>
}
{
view
===
2
&&
<
StandardTable
currentRef=
{
ref
}
columns=
{
inquiryGoods
}
tableProps=
{
{
rowKew
:
'id'
}
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
/>
}
</
Card
>
</
Card
>
<
Card
className=
{
style
.
item_wrap
}
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
{
infoTem
[(
Number
(
page_type
)
===
1
||
Number
(
page_type
)
===
5
)
?
'freight'
:
'base'
].
title
}
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
{
infoTem
[(
Number
(
page_type
)
===
1
||
Number
(
page_type
)
===
5
)
?
'freight'
:
'base'
].
title
}
</
div
>
...
...
src/pages/transaction/enquiryOffer/enquirySearch/detail.tsx
View file @
e30c8a0b
...
@@ -57,7 +57,7 @@ interface dataInfoType {
...
@@ -57,7 +57,7 @@ interface dataInfoType {
settlementWay
:
string
settlementWay
:
string
}
}
const
detailInfo
:
React
.
FC
<
{}
>
=
()
=>
{
const
EnquiryDetail
:
React
.
FC
<
{}
>
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
const
ref
=
useRef
<
any
>
({})
const
[
pagetype
,
setpagetype
]
=
useState
(
history
.
location
.
query
.
page_type
)
const
[
pagetype
,
setpagetype
]
=
useState
(
history
.
location
.
query
.
page_type
)
let
interiorStateList
=
[]
let
interiorStateList
=
[]
...
@@ -726,4 +726,4 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -726,4 +726,4 @@ const detailInfo: React.FC<{}> = () => {
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
}
}
export
default
detailInfo
export
default
EnquiryDetail
\ No newline at end of file
\ No newline at end of file
src/pages/transaction/enquiryOffer/enquirySearch/index.less
0 → 100644
View file @
e30c8a0b
@import "../../../member/components/index.less";
.count{
font-size: 24px;
color: #303133;
font-weight: 500;
}
.add-btn{
margin-bottom: 24px;
padding: 6px 0;
text-align: center;
background: #FAFBFC;
}
.alignCenter{
text-align: center;
}
.alignLeft{
text-align: left;
}
.hidden{
display: none;
}
.block{
display: block;
}
.selectBtn {
margin: 0 16px;
}
.filter-btn{
width : 112px;
margin: 0 0 0 16px;
}
.select {
width : 160px;
&:nth-last-of-type(1) {
margin-right: 0;
}
}
.mainCol {
background-color: #fff;
margin-bottom : 24px;
padding : 0 24px;
box-sizing : border-box;
&-title {
font-size : 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color : #303133;
padding : 20px 0;
}
&:nth-last-of-type(1) {
margin: 0;
}
&-row {
display : flex;
flex-wrap : wrap;
padding-bottom: 16px;
&-col {
display: flex;
width : calc(100% / 3);
padding: 16px 0;
&-option {
flex : 1;
font-size : 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color : #909399;
&:nth-last-of-type(1) {
flex : 3;
padding-right: 20px;
box-sizing : border-box;
color : #303133;
}
}
}
}
&-rows {
display : flex;
padding-bottom: 16px;
&-cols {
flex: 1;
.cols-main {
display: flex;
padding: 16px 0;
&:nth-last-of-type(1) {
padding-bottom: 0;
}
&-options {
flex : 1;
font-size : 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color : #909399;
&:nth-last-of-type(1) {
flex : 3;
padding-right: 20px;
box-sizing : border-box;
color : #303133;
}
}
}
}
}
}
\ No newline at end of file
src/pages/transaction/enquiryOffer/toAddSubmit/detail.tsx
View file @
e30c8a0b
...
@@ -27,7 +27,7 @@ import { history } from 'umi'
...
@@ -27,7 +27,7 @@ import { history } from 'umi'
import
{
LinkOutlined
,
PlusOutlined
,
QuestionCircleOutlined
,
MinusOutlined
,
MinusCircleOutlined
}
from
'@ant-design/icons'
import
{
LinkOutlined
,
PlusOutlined
,
QuestionCircleOutlined
,
MinusOutlined
,
MinusCircleOutlined
}
from
'@ant-design/icons'
import
{
import
{
Row
,
Col
,
Card
,
Button
,
Table
,
Popconfirm
,
Radio
,
DatePicker
,
Row
,
Col
,
Card
,
Button
,
Table
,
Popconfirm
,
Radio
,
DatePicker
,
Form
,
Spin
,
Select
,
Switch
,
Cascader
,
Tabs
,
Input
,
Tooltip
,
Space
Form
,
Spin
,
Select
,
Switch
,
Cascader
,
Tabs
,
Input
,
Tooltip
,
Space
,
message
}
from
'antd'
;
}
from
'antd'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
moment
from
'moment'
import
moment
from
'moment'
...
@@ -816,6 +816,8 @@ const Detail: React.FC<{}> = () => {
...
@@ -816,6 +816,8 @@ const Detail: React.FC<{}> = () => {
})
})
}
}
}).
catch
(
err
=>
{
message
.
error
(
'请检查!有必填项没填写或选择'
)
})
})
}
}
...
@@ -977,7 +979,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -977,7 +979,7 @@ const Detail: React.FC<{}> = () => {
<
PageHeaderWrapper
<
PageHeaderWrapper
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
title=
{
headerTitle
}
//
title={headerTitle}
extra=
{
extra=
{
<
Button
type=
"primary"
onClick=
{
handleSubmitTabForm
}
>
保存
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleSubmitTabForm
}
>
保存
</
Button
>
}
}
...
...
src/pages/transaction/enquirySubmit/toAddSubmit/index.tsx
View file @
e30c8a0b
...
@@ -166,7 +166,7 @@ const List:React.FC<{}> = () => {
...
@@ -166,7 +166,7 @@ const List:React.FC<{}> = () => {
* @param {type}
* @param {type}
* @return {type}
* @return {type}
*/
*/
const
handleDelete
=
(
arr
:
number
[]
|
string
[]
)
=>
{
const
handleDelete
=
(
arr
:
number
[])
=>
{
PublicApi
.
postOrderRequisitionFormDeleteAll
({
ids
:
arr
}).
then
(
res
=>
{
PublicApi
.
postOrderRequisitionFormDeleteAll
({
ids
:
arr
}).
then
(
res
=>
{
ref
.
current
.
reload
()
ref
.
current
.
reload
()
})
})
...
@@ -174,7 +174,7 @@ const List:React.FC<{}> = () => {
...
@@ -174,7 +174,7 @@ const List:React.FC<{}> = () => {
//批量提交
//批量提交
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
const
handleSubmitAll
=
(
ids
:
number
[])
=>
{
PublicApi
.
postOrder
SubmitRequisitionForm
All
({
ids
:
ids
}).
then
(
res
=>
{
PublicApi
.
postOrder
NewRequisitionFormAudit
All
({
ids
:
ids
}).
then
(
res
=>
{
ref
.
current
.
reload
()
ref
.
current
.
reload
()
})
})
}
}
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
View file @
e30c8a0b
...
@@ -6,7 +6,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable';
...
@@ -6,7 +6,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable';
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
ModalTable
from
'@/components/ModalTable'
import
ModalTable
from
'@/components/ModalTable'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
StatusColors
from
'@/pages/transaction/components/StatusColors
'
import
{
history
}
from
'umi
'
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../../common/tableStatusList'
;
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../../common/tableStatusList'
;
const
layout
:
any
=
{
const
layout
:
any
=
{
...
@@ -94,7 +94,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -94,7 +94,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
// 选择会员弹框结束
// 选择会员弹框结束
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
memberName
)
{
if
(
memberName
)
{
basicform
.
setFieldsValue
({
'memberId'
:
memberId
?
14
:
undefined
})
basicform
.
setFieldsValue
({
'memberId'
:
memberId
?
memberId
:
undefined
})
}
}
},[
memberName
])
},[
memberName
])
/************* 页面的一些操作start *************/
/************* 页面的一些操作start *************/
...
@@ -152,7 +152,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -152,7 +152,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'被询价会员'
name=
'memberId'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Form
.
Item
label=
'被询价会员'
name=
'memberId'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Search
value=
{
memberName
?
memberName
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
<
Search
value=
{
memberName
?
memberName
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
{
memberName
&&
<
Button
type=
'link'
>
查看会员详情
</
Button
>
}
{
memberName
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/shop?shopId=${btoa(JSON.stringify({memberId}))}`
)
}
>
查看会员详情
</
Button
>
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'询价单号'
name=
'orderNumber'
>
<
Form
.
Item
label=
'询价单号'
name=
'orderNumber'
>
<
span
>
{
Object
.
keys
(
editData
).
length
>
0
?
editData
.
inquiryListNo
:
'-'
}
</
span
>
<
span
>
{
Object
.
keys
(
editData
).
length
>
0
?
editData
.
inquiryListNo
:
'-'
}
</
span
>
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/components/basicInfo.tsx
View file @
e30c8a0b
...
@@ -148,7 +148,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -148,7 +148,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'对应询价单号'
name=
'inquiryListNo'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Form
.
Item
label=
'对应询价单号'
name=
'inquiryListNo'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Search
value=
{
Object
.
keys
(
inquiryNo
).
length
>
0
?
inquiryNo
.
orderNo
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
<
Search
value=
{
Object
.
keys
(
inquiryNo
).
length
>
0
?
inquiryNo
.
orderNo
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
{
Object
.
keys
(
inquiryNo
).
length
>
0
&&
<
Button
type=
'link'
>
查看询价单详情
</
Button
>
}
{
Object
.
keys
(
inquiryNo
).
length
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/rfq/preview?id=${inquiryNo.orderId}`
)
}
>
查看询价单详情
</
Button
>
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'报价单号'
name=
'quotationNo'
>
<
Form
.
Item
label=
'报价单号'
name=
'quotationNo'
>
<
span
>
{
Object
.
keys
(
editData
).
length
>
0
?
editData
.
quotationNo
:
'-'
}
</
span
>
<
span
>
{
Object
.
keys
(
editData
).
length
>
0
?
editData
.
quotationNo
:
'-'
}
</
span
>
...
...
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