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
7acf5074
Commit
7acf5074
authored
Dec 02, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对接代客换货申请
parent
44e62fbe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
index.ts
.../exchangePrSubmit/components/ExchangeForm/schema/index.ts
+3
-0
index.tsx
.../afterService/exchangeManage/exchangeValetApply/index.tsx
+0
-0
schema.ts
.../afterService/exchangeManage/exchangeValetApply/schema.ts
+8
-3
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/schema/index.ts
View file @
7acf5074
...
...
@@ -475,6 +475,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
isDefaultAddress
:
true
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
@@ -491,6 +492,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component'
:
'CustomAddressSelect'
,
'x-component-props'
:
{
isDefaultAddress
:
true
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
@@ -507,6 +509,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component-props'
:
{
isDefaultAddress
:
true
,
addressType
:
1
,
echo
:
true
,
},
'x-rules'
:
[
{
...
...
src/pages/afterService/exchangeManage/exchangeValetApply/index.tsx
View file @
7acf5074
This diff is collapsed.
Click to expand it.
src/pages/afterService/exchangeManage/exchangeValetApply/schema.ts
View file @
7acf5074
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-12-02 14:15:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-12-02 1
5:38:37
* @LastEditTime: 2021-12-02 1
7:37:22
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -19,6 +19,7 @@ import {
ORDER_TYPE2_POINTS
,
ORDER_TYPE2_CHANNEL_POINTS
,
}
from
'@/constants/order'
;
import
{
getAuth
}
from
'@/utils/auth'
;
import
{
isMaterialOrder
}
from
'../../utils'
;
const
orderTypeArr
=
GlobalConfig
.
web
.
orderType
.
map
((
item
)
=>
({
...
...
@@ -26,6 +27,8 @@ const orderTypeArr = GlobalConfig.web.orderType.map((item) => ({
value
:
item
.
id
,
}));
const
userInfo
=
getAuth
();
export
const
addSchema
=
(
orderType
:
number
):
ISchema
=>
{
const
isPoints
=
orderType
===
ORDER_TYPE2_POINTS
||
orderType
===
ORDER_TYPE2_CHANNEL_POINTS
;
const
isMateriel
=
isMaterialOrder
(
orderType
);
...
...
@@ -75,6 +78,9 @@ export const addSchema = (orderType: number): ISchema => {
enum
:
[],
'x-component-props'
:
{
showSearch
:
true
,
defaultActiveFirstOption
:
false
,
showArrow
:
false
,
filterOption
:
false
,
onSearch
:
'{{handlePurchaserSearch}}'
},
required
:
true
,
...
...
@@ -82,7 +88,7 @@ export const addSchema = (orderType: number): ISchema => {
supplierMember
:
{
type
:
'string'
,
title
:
'供应会员'
,
default
:
'123'
,
default
:
userInfo
.
company
,
editable
:
false
,
},
orderType
:
{
...
...
@@ -382,7 +388,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