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
fac0ecd9
Commit
fac0ecd9
authored
Dec 02, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加代客退货申请
parent
9507af71
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
95 additions
and
0 deletions
+95
-0
returnManageRoute.ts
config/routes/afterServiceRoute/returnManageRoute.ts
+7
-0
menu.ts
src/locales/zh-CN/menu.ts
+1
-0
index.ts
...tion/returnPrSubmit/components/ReturnForm/schema/index.ts
+2
-0
index.ts
...terService/returnManage/returnValetApply/effects/index.ts
+27
-0
useBusinessEffects.ts
...turnManage/returnValetApply/effects/useBusinessEffects.ts
+58
-0
index.less
...ges/afterService/returnManage/returnValetApply/index.less
+0
-0
index.tsx
...ages/afterService/returnManage/returnValetApply/index.tsx
+0
-0
schema.ts
...ages/afterService/returnManage/returnValetApply/schema.ts
+0
-0
No files found.
config/routes/afterServiceRoute/returnManageRoute.ts
View file @
fac0ecd9
...
@@ -252,6 +252,13 @@ const route: RouterChild = {
...
@@ -252,6 +252,13 @@ const route: RouterChild = {
hideInMenu
:
true
,
hideInMenu
:
true
,
noMargin
:
true
,
noMargin
:
true
,
},
},
// 代客退货申请
{
path
:
'/memberCenter/afterService/returnManage/returnValetApply/index'
,
name
:
'returnValetApply'
,
component
:
'@/pages/afterService/returnManage/returnValetApply/index'
,
noMargin
:
true
,
},
]
]
};
};
...
...
src/locales/zh-CN/menu.ts
View file @
fac0ecd9
...
@@ -632,6 +632,7 @@ export default {
...
@@ -632,6 +632,7 @@ export default {
'menu.afterService.returnManage.verifyReturnPrReceived'
:
'确认退货收货'
,
'menu.afterService.returnManage.verifyReturnPrReceived'
:
'确认退货收货'
,
'menu.afterService.returnManage.returnPrReturn'
:
'待退款'
,
'menu.afterService.returnManage.returnPrReturn'
:
'待退款'
,
'menu.afterService.returnManage.verifyReturnPrReturn'
:
'确认退款'
,
'menu.afterService.returnManage.verifyReturnPrReturn'
:
'确认退款'
,
'menu.afterService.returnManage.returnValetApply'
:
'代客退货申请'
,
'menu.afterService.returnManage.orderPreview'
:
'查看订单'
,
'menu.afterService.returnManage.orderPreview'
:
'查看订单'
,
'menu.afterService.repairApplication'
:
'维修申请'
,
'menu.afterService.repairApplication'
:
'维修申请'
,
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/schema/index.ts
View file @
fac0ecd9
...
@@ -469,6 +469,7 @@ export const addSchema = (orderType: number): ISchema => {
...
@@ -469,6 +469,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
'x-component-props'
:
{
isDefaultAddress
:
true
,
isDefaultAddress
:
true
,
echo
:
true
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
...
@@ -485,6 +486,7 @@ export const addSchema = (orderType: number): ISchema => {
...
@@ -485,6 +486,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
'x-component-props'
:
{
isDefaultAddress
:
true
,
isDefaultAddress
:
true
,
echo
:
true
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
...
...
src/pages/afterService/returnManage/returnValetApply/effects/index.ts
0 → 100644
View file @
fac0ecd9
/*
* @Author: XieZhiXiong
* @Date: 2021-12-02 19:00:53
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-12-02 19:53:36
* @Description:
*/
import
{
useBusinessEffects
}
from
'./useBusinessEffects'
;
import
{
getLogisticsSelectListShipperAddress
}
from
'@/services/LogisticsV2Api'
;
export
const
createEffects
=
(
context
,
actions
)
=>
{
const
{
setFieldState
}
=
actions
;
useBusinessEffects
(
context
,
actions
);
// 获取发货地址
getLogisticsSelectListShipperAddress
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setFieldState
(
'*(shippingAddress,pickupAddress)'
,
state
=>
{
state
.
props
[
'x-component-props'
].
dataSource
=
res
.
data
;
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
});
};
\ No newline at end of file
src/pages/afterService/returnManage/returnValetApply/effects/useBusinessEffects.ts
0 → 100644
View file @
fac0ecd9
/*
* @Author: XieZhiXiong
* @Date: 2021-12-02 19:01:00
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-12-02 19:01:01
* @Description:
*/
import
{
FormEffectHooks
}
from
'@formily/antd'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
const
{
onFieldInputChange$
,
onFieldValueChange$
,
}
=
FormEffectHooks
;
export
const
useBusinessEffects
=
(
context
,
actions
)
=>
{
const
{
getFieldValue
,
setFieldValue
,
}
=
actions
;
const
linkage
=
useLinkageUtils
();
// 联动配送方式
onFieldValueChange$
(
'deliveryType'
).
subscribe
(
fieldState
=>
{
const
{
name
,
value
}
=
fieldState
;
switch
(
value
)
{
// 物流
case
1
:
{
linkage
.
show
(
'shippingAddress'
);
linkage
.
hide
(
'pickupAddress'
);
break
;
};
// 自提
case
2
:
{
linkage
.
hide
(
'shippingAddress'
);
linkage
.
show
(
'pickupAddress'
);
break
;
};
// 无需物流
case
3
:
{
linkage
.
hide
(
'*(shippingAddress,pickupAddress)'
);
break
;
};
default
:
break
};
});
// 供应会员、售后订单类型联动 单据明细
onFieldInputChange$
(
'*(supplierMember,orderType)'
).
subscribe
(
fieldState
=>
{
const
replaceGoodsListValue
=
getFieldValue
(
'returnGoodsList'
);
if
(
replaceGoodsListValue
&&
replaceGoodsListValue
.
length
)
{
setFieldValue
(
'returnGoodsList'
,
[]);
}
});
}
\ No newline at end of file
src/pages/afterService/returnManage/returnValetApply/index.less
0 → 100644
View file @
fac0ecd9
src/pages/afterService/returnManage/returnValetApply/index.tsx
0 → 100644
View file @
fac0ecd9
This diff is collapsed.
Click to expand it.
src/pages/afterService/returnManage/returnValetApply/schema.ts
0 → 100644
View file @
fac0ecd9
This diff is collapsed.
Click to expand it.
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