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
7115ba6e
Commit
7115ba6e
authored
Mar 17, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
e4bea804
bceb5830
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
modifyDirectChannel.tsx
src/pages/commodity/products/modifyDirectChannel.tsx
+2
-1
index.tsx
...haseOrder/orderCollect/components/selectAddress/index.tsx
+1
-1
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+3
-1
No files found.
src/pages/commodity/products/modifyDirectChannel.tsx
View file @
7115ba6e
...
...
@@ -123,7 +123,6 @@ const ModifyDirectChannel:React.FC<{}> = () => {
// 获取商品规格列表
const
fetchSpecData
=
()
=>
{
setLoading
(
true
)
console
.
log
(
priceTableData
,
'priceTableData'
)
PublicApi
.
postProductChannelCommodityGetCommodityUnitPriceByChannel
({
id
:
history
.
location
.
query
.
id
,
idList
:
priceTableData
.
map
(
item
=>
item
.
id
)
...
...
@@ -250,6 +249,8 @@ const ModifyDirectChannel:React.FC<{}> = () => {
setPriceTableData
([...
priceTableData
,
...
selectSpecRow
])
setVisibleAddSpec
(
false
)
flagRef
.
current
=
true
// 清空之前选中
setSelectSpecRow
([])
}
}
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/selectAddress/index.tsx
View file @
7115ba6e
...
...
@@ -123,7 +123,7 @@ const SelectAddress = (props: ISchemaFieldComponentProps) => {
<
Col
>
{
v
.
receiverName
}
</
Col
>
<
Col
>
/
</
Col
>
<
Col
>
{
v
.
phone
}
</
Col
>
{
v
.
isDefault
&&
<
Col
style=
{
{
marginLeft
:
6
}
}
><
Tag
color=
'default'
>
默认
</
Tag
></
Col
>
}
{
v
.
isDefault
?
<
Col
style=
{
{
marginLeft
:
6
}
}
><
Tag
color=
'default'
>
默认
</
Tag
></
Col
>
:
null
}
</
Row
>
<
div
style=
{
{
color
:
'#909399'
}
}
>
{
v
.
fullAddress
}
</
div
>
</
div
>
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
7115ba6e
...
...
@@ -163,6 +163,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
useEffect
(()
=>
{
if
(
id
)
{
setFormLoading
(
true
)
// @ts-ignore
PublicApi
.
getOrderProcurementOrderDetails
({
id
}).
then
(
res
=>
{
...
...
@@ -291,8 +292,9 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
if
(
!
judgementByPay
||
judgementByPay
.
includes
(
false
)){
throw
new
Error
(
'请选择支付方式或支付渠道'
)
}
let
totalRatio
=
params
.
paymentInformationResponses
.
reduce
((
a
,
b
)
=>
a
+
Number
(
b
.
payRatio
||
0
),
0
)
let
judgementByRatio
=
params
.
paymentInformationResponses
?.
length
&&
params
.
paymentInformationResponses
.
map
(
item
=>
{
if
(
Number
(
item
.
payRatio
)
>
0
&&
Number
(
item
.
payRatio
)
<=
100
){
if
(
Number
(
item
.
payRatio
)
>
0
&&
Number
(
item
.
payRatio
)
<=
100
&&
totalRatio
===
100
){
return
true
}
else
{
return
false
...
...
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