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
8dd552f1
Commit
8dd552f1
authored
Nov 19, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理同步平台后台对接接口异常
parent
f0f18294
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
index.tsx
src/pages/classAndProperty/class/index.tsx
+1
-2
index.tsx
...on/saleOrder/agentOrder/components/addressModal/index.tsx
+19
-13
index.tsx
src/pages/transaction/saleOrder/agentOrder/index.tsx
+2
-2
No files found.
src/pages/classAndProperty/class/index.tsx
View file @
8dd552f1
...
...
@@ -10,7 +10,7 @@ import { createFormActions, LifeCycleTypes, FormButtonGroup } from '@formily/ant
import
{
classSchema
}
from
'./schema'
import
{
useTreeTabs
}
from
'@/hooks/useTreeTabs'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
getProductCustomerGetCustomerCategory
,
getProductCustomerGetCustomerCategoryTree
,
getProductPlatformGetCategoryTree
,
postProductCustomerDeleteCustomerCategory
,
postProductCustomerSaveOrUpdateCustomerCategory
}
from
'@/services/ProductV2Api'
;
import
{
getProductCustomerGetCustomerCategory
,
getProductCustomerGetCustomerCategoryTree
,
getProductPlatformGetCategoryTree
,
postProductCustomerDeleteCustomerCategory
,
postProductCustomerSaveOrUpdateCustomerCategory
,
postProductCustomerSyncCategory
}
from
'@/services/ProductV2Api'
;
const
{
ON_FORM_INPUT_CHANGE
}
=
LifeCycleTypes
...
...
@@ -157,7 +157,6 @@ const ClassProperty: React.FC<{}> = () => {
setSyncLoading
(
true
)
const
syncIds
=
syncTreeActions
.
getSelectKeys
()
if
(
syncIds
.
length
)
{
// @ts-ignore
postProductCustomerSyncCategory
({
idList
:
Array
.
from
(
new
Set
([...
syncIds
,
...
syncTreeActions
.
getExpandedKeys
()]))}).
then
(
res
=>
{
resetMenu
()
syncTreeActions
.
setSelectKeys
([])
...
...
src/pages/transaction/saleOrder/agentOrder/components/addressModal/index.tsx
View file @
8dd552f1
...
...
@@ -7,6 +7,8 @@ import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect'
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
import
{
getManageCountryAreaGetTelCode
}
from
'@/services/ManageV2Api'
import
{
postLogisticsReceiverAddressAgentAdd
,
postLogisticsReceiverAddressAgentUpdate
}
from
'@/services/LogisticsV2Api'
import
{
getManageAreaAll
}
from
'@/services/ManageV2Api/id8689'
import
{
message
}
from
'antd'
export
interface
AddressModalProps
{
mode
:
'add'
|
'edit'
|
'preview'
|
'default'
,
...
...
@@ -67,20 +69,24 @@ const AddressModal:React.FC<AddressModalProps> = (props) => {
const
roleId
=
ctx
.
getFieldValue
(
'buyerRoleId'
)
const
memberId
=
ctx
.
getFieldValue
(
'buyerMemberId'
)
const
params
=
{
...
value
,
isDefault
:
Number
(
!!
value
.
isDefault
),
provinceName
,
cityName
,
districtName
,
roleId
,
memberId
if
(
roleId
&&
memberId
)
{
const
params
=
{
...
value
,
isDefault
:
Number
(
!!
value
.
isDefault
),
provinceName
,
cityName
,
districtName
,
roleId
,
memberId
}
const
fn
=
mode
===
'edit'
?
postLogisticsReceiverAddressAgentUpdate
:
postLogisticsReceiverAddressAgentAdd
await
fn
(
params
)
resetForm
()
props
.
currentRef
.
current
.
setVisible
(
false
)
props
.
reloadAddress
&&
props
.
reloadAddress
()
}
else
{
message
.
error
(
'请先选择采购会员'
)
}
const
fn
=
mode
===
'edit'
?
postLogisticsReceiverAddressAgentUpdate
:
postLogisticsReceiverAddressAgentAdd
await
fn
(
params
)
resetForm
()
props
.
currentRef
.
current
.
setVisible
(
false
)
props
.
reloadAddress
&&
props
.
reloadAddress
()
}
return
(
<
ModalForm
...
...
src/pages/transaction/saleOrder/agentOrder/index.tsx
View file @
8dd552f1
...
...
@@ -30,7 +30,7 @@ import FormDetailWrapper from '@/components/FormDetailWrapper'
import
{
useFormDetail
}
from
'@/formSchema/effects/useFormDetail'
import
moment
from
'moment'
import
{
getLogisticsReceiverAddressGet
,
getLogisticsSelectListMemberShipperAddress
,
postLogisticsFreightTemplateCalFreightPrice
}
from
'@/services/LogisticsV2Api'
import
{
getOrderBuyerCreateDetail
,
postOrderVendorCreateAgentOrder
}
from
'@/services/OrderNewV2Api'
import
{
getOrderBuyerCreateDetail
,
postOrder
BuyerValidateSubmitBatch
,
postOrder
VendorCreateAgentOrder
}
from
'@/services/OrderNewV2Api'
export
interface
AgentOrderDetailProps
{}
...
...
@@ -304,7 +304,7 @@ const AgentOrderDetail:React.FC<AgentOrderDetailProps> = (props) => {
params
.
shopName
=
shop
[
'label'
]
if
(
id
)
{
// fnResult = await postOrderBuyerCreate
B2b
Update({..._params, orderId: id})
// fnResult = await postOrderBuyerCreate
AgentOrder
Update({..._params, orderId: id})
}
else
{
fnResult
=
await
postOrderVendorCreateAgentOrder
(
_params
)
}
...
...
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