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
af310a86
Commit
af310a86
authored
Dec 14, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复非代客申请售后地址默认值不会回填的问题
parent
4b8fdcbc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
6 deletions
+37
-6
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+13
-0
index.ts
.../exchangePrSubmit/components/ExchangeForm/schema/index.ts
+0
-3
index.tsx
...pplication/repairPrSubmit/components/RepairForm/index.tsx
+12
-0
index.ts
...tion/repairPrSubmit/components/RepairForm/schema/index.ts
+0
-1
index.tsx
...pplication/returnPrSubmit/components/ReturnForm/index.tsx
+12
-0
index.ts
...tion/returnPrSubmit/components/ReturnForm/schema/index.ts
+0
-2
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
af310a86
...
...
@@ -357,6 +357,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
shopName
,
shopId
,
shopLogo
,
agentFlag
,
...
rest
}
=
res
.
data
;
...
...
@@ -367,6 +368,11 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
}
);
addSchemaAction
.
setFieldState
(
'*(shippingAddress,pickupAddress,deliveryAddress)'
,
(
state
)
=>
{
// 非代客申请 echo 设置成 false
state
.
props
[
'x-component-props'
].
echo
=
agentFlag
===
0
?
false
:
true
;
});
setOrderTypeValue
(
rest
.
orderType
);
setDetailInfo
({
proofFileList
:
faultFileList
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
...
...
@@ -779,6 +785,13 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
field
.
visible
=
false
;
});
}
if
(
id
)
{
addSchemaAction
.
setFieldState
(
'*(shippingAddress,pickupAddress,deliveryAddress)'
,
(
state
)
=>
{
// 非代客申请 echo 设置成 false
state
.
props
[
'x-component-props'
].
isDefaultAddress
=
false
;
});
}
});
onFieldInputChange$
(
'supplierMember'
).
subscribe
(()
=>
{
...
...
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/schema/index.ts
View file @
af310a86
...
...
@@ -478,7 +478,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
isDefaultAddress
:
true
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
@@ -495,7 +494,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
isDefaultAddress
:
true
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
@@ -512,7 +510,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component-props'
:
{
isDefaultAddress
:
true
,
addressType
:
1
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/index.tsx
View file @
af310a86
...
...
@@ -265,6 +265,7 @@ const RepairForm: React.FC<BillsFormProps> = ({
shopName
,
shopId
,
shopLogo
,
agentFlag
,
...
rest
}
=
res
.
data
;
...
...
@@ -275,6 +276,11 @@ const RepairForm: React.FC<BillsFormProps> = ({
}
);
addSchemaAction
.
setFieldState
(
'repairAddress'
,
(
state
)
=>
{
// 非代客申请 echo 设置成 false
state
.
props
[
'x-component-props'
].
echo
=
agentFlag
===
0
?
false
:
true
;
});
getRepairGoods
({
shopName
,
shopId
,
...
...
@@ -645,6 +651,12 @@ const RepairForm: React.FC<BillsFormProps> = ({
field
.
visible
=
false
;
});
}
if
(
id
)
{
addSchemaAction
.
setFieldState
(
'repairAddress'
,
(
state
)
=>
{
state
.
props
[
'x-component-props'
].
isDefaultAddress
=
false
;
});
}
});
onFieldInputChange$
(
'orderType'
).
subscribe
(
fieldState
=>
{
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/schema/index.ts
View file @
af310a86
...
...
@@ -448,7 +448,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component-props'
:
{
isDefaultAddress
:
true
,
addressType
:
1
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/index.tsx
View file @
af310a86
...
...
@@ -365,6 +365,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
shopName
,
shopId
,
shopLogo
,
agentFlag
,
...
rest
}
=
res
.
data
;
...
...
@@ -375,6 +376,11 @@ const ReturnForm: React.FC<BillsFormProps> = ({
}
);
addSchemaAction
.
setFieldState
(
'*(shippingAddress,pickupAddress)'
,
(
state
)
=>
{
// 非代客申请 echo 设置成 false
state
.
props
[
'x-component-props'
].
echo
=
agentFlag
===
0
?
false
:
true
;
});
setDetailInfo
({
proofFileList
:
faultFileList
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
// 物流
...
...
@@ -850,6 +856,12 @@ const ReturnForm: React.FC<BillsFormProps> = ({
// field.value = +outerOrderType;
});
}
if
(
id
)
{
addSchemaAction
.
setFieldState
(
'*(shippingAddress,pickupAddress)'
,
(
state
)
=>
{
state
.
props
[
'x-component-props'
].
isDefaultAddress
=
false
;
});
}
});
onFieldInputChange$
(
'orderType'
).
subscribe
(
fieldState
=>
{
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/schema/index.ts
View file @
af310a86
...
...
@@ -472,7 +472,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
isDefaultAddress
:
true
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
@@ -489,7 +488,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
isDefaultAddress
:
true
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
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