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
68c48c4e
Commit
68c48c4e
authored
Dec 23, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:处理仓位中获取仓位货品数量异常,处理采购询价下单删除商品运费变动异常和支付比例不为0的问题
parent
b93d4c2d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
PositionSetting.tsx
src/pages/repositories/components/PositionSetting.tsx
+0
-0
index.tsx
src/pages/repositories/effects/index.tsx
+1
-1
index.tsx
...eOrder/orderCollect/components/payInfoTableCell/index.tsx
+0
-0
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+4
-2
No files found.
src/pages/repositories/components/PositionSetting.tsx
View file @
68c48c4e
src/pages/repositories/effects/index.tsx
View file @
68c48c4e
...
...
@@ -7,7 +7,7 @@ const { onFieldValueChange$ } = FormEffectHooks
export
const
useWarehouseSelect
=
(
context
:
ISchemaFormActions
)
=>
{
onFieldValueChange$
(
'warehouseId'
).
subscribe
(
state
=>
{
// 货品ID
const
goodsId
=
context
.
getFieldValue
(
'
productId'
)
const
goodsId
=
context
.
getFieldValue
(
'
goodsId'
)
const
warehouseId
=
state
.
value
PublicApi
.
getWarehouseInventoryByItemNo
({
warehouseId
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/payInfoTableCell/index.tsx
View file @
68c48c4e
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
68c48c4e
...
...
@@ -79,6 +79,8 @@ export const MoneyTotalBox = registerVirtualBox('moneyTotalBox', props => {
setFreePrice
(
res
.
data
)
}
})
}
else
{
setFreePrice
(
0
)
}
}
},
[
data
])
...
...
@@ -211,14 +213,14 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
}
// 校验是否选择支付渠道
let
judgementByPay
=
params
.
paymentInformationResponses
.
map
(
item
=>
{
if
(
item
.
channel
&&
item
.
payWay
){
if
(
item
.
channel
&&
item
.
payWay
&&
Number
(
item
.
payRatio
)
){
return
true
}
else
{
return
false
}
})
if
(
judgementByPay
.
includes
(
false
)){
throw
new
Error
(
'请
选择支付方式或者支付渠道
'
)
throw
new
Error
(
'请
正确填写支付信息
'
)
}
// 校验采购数量
let
judgementByCount
=
params
.
orderProductRequests
.
map
(
item
=>
{
...
...
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