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
f8d45583
Commit
f8d45583
authored
Sep 22, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:货品品牌非必填,商品阶梯价格起始阶段控制,商品阶梯价格设置切换异常
parent
4714db4d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
234 additions
and
58 deletions
+234
-58
CardCheckBox.tsx
src/components/NiceForm/components/CardCheckBox.tsx
+3
-2
addGoods.tsx
src/pages/commodity/goods/addGoods.tsx
+6
-6
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+3
-3
addRule.tsx
src/pages/transaction/transactionRules/addRule.tsx
+8
-6
RuleSetting.tsx
...s/transaction/transactionRules/components/RuleSetting.tsx
+66
-35
index.tsx
...tion/transactionRules/components/selectProcesss/index.tsx
+124
-0
index.tsx
src/pages/transaction/transactionRules/schema/index.tsx
+24
-6
No files found.
src/components/NiceForm/components/CardCheckBox.tsx
View file @
f8d45583
...
@@ -57,7 +57,7 @@ const RowStyleLayout = styled(props => <div {...props} />)`
...
@@ -57,7 +57,7 @@ const RowStyleLayout = styled(props => <div {...props} />)`
`
`
const
CardCheckBox
=
(
props
)
=>
{
const
CardCheckBox
=
(
props
)
=>
{
const
{
dataSource
=
[]
}
=
props
.
props
[
'x-component-props'
]
const
{
dataSource
=
[]
,
type
=
'checkbox'
}
=
props
.
props
[
'x-component-props'
]
const
value
:
number
[]
=
props
.
value
||
[]
const
value
:
number
[]
=
props
.
value
||
[]
const
handleChange
=
(
id
)
=>
{
const
handleChange
=
(
id
)
=>
{
...
@@ -69,7 +69,8 @@ const CardCheckBox = (props) => {
...
@@ -69,7 +69,8 @@ const CardCheckBox = (props) => {
const
newValue
=
findItemAndDelete
(
value
,
id
)
const
newValue
=
findItemAndDelete
(
value
,
id
)
props
.
mutators
.
change
(
newValue
)
props
.
mutators
.
change
(
newValue
)
}
else
{
}
else
{
props
.
mutators
.
change
([...
value
,
id
])
// 扩展单选模式
type
===
'radio'
?
props
.
mutators
.
change
([
id
])
:
props
.
mutators
.
change
([...
value
,
id
])
}
}
}
}
...
...
src/pages/commodity/goods/addGoods.tsx
View file @
f8d45583
...
@@ -222,12 +222,12 @@ const AddGoods = () => {
...
@@ -222,12 +222,12 @@ const AddGoods = () => {
<
Form
.
Item
<
Form
.
Item
name=
{
[
'brand'
,
'id'
]
}
name=
{
[
'brand'
,
'id'
]
}
label=
"品牌"
label=
"品牌"
rules=
{
[
//
rules={[
{
//
{
required
:
true
,
//
required: true,
message
:
'请填入品牌'
//
message: '请填入品牌'
},
//
},
]
}
//
]}
>
>
{
/* <Input placeholder="最长40个字符、20个汉字" /> */
}
{
/* <Input placeholder="最长40个字符、20个汉字" /> */
}
<
Select
<
Select
...
...
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
f8d45583
...
@@ -319,9 +319,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
...
@@ -319,9 +319,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
// console.log('生成传输数据', combineAttributeArray, attributeObjArr, attributeValObjArr, tableDataSource)
// console.log('生成传输数据', combineAttributeArray, attributeObjArr, attributeValObjArr, tableDataSource)
Array
.
isArray
(
combineAttributeArray
)
?
combineAttributeArray
.
map
((
item
,
index
)
=>
{
// 非数组情况下默认无组合 从table数据中获取 // 当属性减少的时候 这个combine数组还是之前的 /* code1 */
Array
.
isArray
(
combineAttributeArray
)
?
combineAttributeArray
.
map
((
item
,
index
)
=>
{
// 非数组情况下默认无组合 从table数据中获取 // 当属性减少的时候 这个combine数组还是之前的 /* code1 */
let
_tempArr
:
any
=
[]
let
_tempArr
:
any
=
[]
console
.
log
(
item
,
'0'
)
Array
.
isArray
(
item
)
?
item
.
map
((
_item
,
_index
)
=>
{
/* code2 */
Array
.
isArray
(
item
)
?
item
.
map
((
_item
,
_index
)
=>
{
/* code2 */
console
.
log
(
item
,
_item
,
'1'
)
let
_tempObject
:
any
=
{};
let
_tempObject
:
any
=
{};
_tempObject
.
customerAttribute
=
{
_tempObject
.
customerAttribute
=
{
...
@@ -507,8 +505,9 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
...
@@ -507,8 +505,9 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
[]
[]
)
)
let
result
=
range
.
reduce
((
a
,
b
)
=>
{
if
(
a
<
b
)
return
b
})
let
result
=
range
.
reduce
((
a
,
b
)
=>
{
if
(
a
<
b
)
return
b
})
// console.log(result, 'result')
// console.log(result,
range,
'result')
if
(
!
result
)
throw
new
Error
(
'请正确输入阶梯数量范围'
);
if
(
!
result
)
throw
new
Error
(
'请正确输入阶梯数量范围'
);
if
(
range
[
0
]
!==
minOrderNumber
)
throw
new
Error
(
'阶段的起始值必须为最小起订数'
);
callback
()
callback
()
}
}
}
catch
(
err
)
{
}
catch
(
err
)
{
...
@@ -521,6 +520,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
...
@@ -521,6 +520,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
setPriceForm
.
resetFields
()
// 先清空
setPriceForm
.
resetFields
()
// 先清空
setIsBatchSetting
(
true
)
// 点击置为true
setIsBatchSetting
(
true
)
// 点击置为true
setSetPriceModal
(
true
)
setSetPriceModal
(
true
)
setLadderPrice
(
false
)
}
}
/**
/**
...
...
src/pages/transaction/transactionRules/addRule.tsx
View file @
f8d45583
...
@@ -25,12 +25,14 @@ const AddRule:React.FC<{}> = (props) => {
...
@@ -25,12 +25,14 @@ const AddRule:React.FC<{}> = (props) => {
// 整体表单提交
// 整体表单提交
const
formSubmit
=
async
(
values
)
=>
{
const
formSubmit
=
async
(
values
)
=>
{
// const params = omit(values, ['NO_SUBMIT3'])
values
.
products
=
values
.
products
.
map
(
item
=>
({
productId
:
item
.
id
,
productName
:
item
.
name
,
category
:
item
.
customerCategoryName
,
productPrice
:
item
.
priceType
,
brand
:
item
.
brandName
}))
console
.
log
(
values
,
'values'
)
values
.
isElectronicContract
=
values
.
isElectronicContract
?
1
:
0
// await PublicApi.postOrderTradingRulesAdd(params)
const
params
=
omit
(
values
,
[
'state'
])
// 移除不需要的字段
// setTimeout(() => {
console
.
log
(
values
,
params
,
'values'
)
// history.goBack(-1)
await
PublicApi
.
postOrderTradingRulesAdd
(
params
)
// }, 1000)
setTimeout
(()
=>
{
history
.
goBack
(
-
1
)
},
1000
)
}
}
return
(
return
(
...
...
src/pages/transaction/transactionRules/components/RuleSetting.tsx
View file @
f8d45583
...
@@ -20,6 +20,7 @@ import SearchSelect from '@/components/NiceForm/components/SearchSelect'
...
@@ -20,6 +20,7 @@ import SearchSelect from '@/components/NiceForm/components/SearchSelect'
import
Search
from
'@/components/NiceForm/components/Search'
import
Search
from
'@/components/NiceForm/components/Search'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
import
Submit
from
'@/components/NiceForm/components/Submit'
import
Submit
from
'@/components/NiceForm/components/Submit'
import
SelectProcesss
from
'./selectProcesss'
export
interface
RuleSettingProps
{
export
interface
RuleSettingProps
{
addSchemaAction
:
ISchemaFormActions
,
addSchemaAction
:
ISchemaFormActions
,
...
@@ -31,7 +32,7 @@ export interface RuleSettingProps {
...
@@ -31,7 +32,7 @@ export interface RuleSettingProps {
const
RuleSetting
:
React
.
FC
<
RuleSettingProps
>
=
(
props
)
=>
{
const
RuleSetting
:
React
.
FC
<
RuleSettingProps
>
=
(
props
)
=>
{
const
{
addSchemaAction
,
schema
,
formSubmit
,
onFieldChange
=
()
=>
{}
}
=
props
const
{
addSchemaAction
,
schema
,
formSubmit
,
onFieldChange
=
()
=>
{}
}
=
props
const
[
visibleChannelRroduct
,
setVisibleChannelRroduct
]
=
useState
(
false
)
const
[
visibleChannelRroduct
,
setVisibleChannelRroduct
]
=
useState
(
false
)
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
productI
d'
})
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
i
d'
})
const
{
const
{
id
,
id
,
...
@@ -43,12 +44,20 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -43,12 +44,20 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
// useUnitPreview(initValue, addSchemaAction)
// useUnitPreview(initValue, addSchemaAction)
const
fetchProductList
=
async
(
params
)
=>
{
const
fetchProductList
=
async
(
params
)
=>
{
const
tradingRulesId
=
addSchemaAction
.
getFieldValue
(
'transactionProcesssId'
)
const
shopIds
=
addSchemaAction
.
getFieldValue
(
'shopIds'
)
const
res
=
await
PublicApi
.
getOrderTradingRulesProductList
({
if
(
shopIds
.
length
){
...
params
,
let
shopInfo
:
any
=
GlobalConfig
.
web
.
shopInfo
.
filter
(
item
=>
item
.
id
===
shopIds
[
0
])
tradingRulesId
,
})
const
res
=
await
PublicApi
.
getProductCommodityCommonGetCommodityDetailList
({
return
res
.
data
...
params
,
shopType
:
shopInfo
[
0
].
type
,
environment
:
shopInfo
[
0
].
environment
,
})
return
res
.
data
}
else
{
message
.
error
(
'请先选择适用商城!'
)
return
[]
}
}
}
// table删除商品
// table删除商品
...
@@ -74,35 +83,43 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -74,35 +83,43 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
tableColumns
=
[
const
tableColumns
=
[
{
{
dataIndex
:
'
productI
d'
,
dataIndex
:
'
i
d'
,
title
:
'ID'
,
title
:
'ID'
,
key
:
'
productI
d'
key
:
'
i
d'
},
},
{
{
dataIndex
:
'
productN
ame'
,
dataIndex
:
'
n
ame'
,
title
:
'商品名称'
,
title
:
'商品名称'
,
key
:
'
productN
ame'
,
key
:
'
n
ame'
,
render
:
(
_
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/commodityAbility/commodity/products/viewProducts?id=${record.
productI
d}`
}
>
{
_
}
</
EyePreview
>
render
:
(
_
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/commodityAbility/commodity/products/viewProducts?id=${record.
i
d}`
}
>
{
_
}
</
EyePreview
>
},
},
{
{
dataIndex
:
'c
ategory
'
,
dataIndex
:
'c
ustomerCategoryName
'
,
title
:
'品类'
,
title
:
'品类'
,
key
:
'c
ategory
'
key
:
'c
ustomerCategoryName
'
},
},
{
{
dataIndex
:
'brand'
,
dataIndex
:
'brand
Name
'
,
title
:
'品牌'
,
title
:
'品牌'
,
key
:
'brand'
key
:
'brand
Name
'
},
},
{
{
dataIndex
:
'productPrice'
,
dataIndex
:
'priceType'
,
title
:
'商品定价'
,
title
:
'商品定价'
,
key
:
'productPrice'
key
:
'priceType'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
if
(
text
===
1
)
return
'现货价格'
else
if
(
text
===
2
)
return
'价格需要询价'
else
if
(
text
===
3
)
return
'积分兑换商品'
},
},
},
{
{
dataIndex
:
'ctl'
,
dataIndex
:
'ctl'
,
title
:
'操作'
,
title
:
'操作'
,
render
:
(
_
,
record
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
handleDeleteTable
(
record
.
productI
d
)
}
>
删除
</
Button
>
render
:
(
_
,
record
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
handleDeleteTable
(
record
.
i
d
)
}
>
删除
</
Button
>
}
}
]
]
...
@@ -123,29 +140,37 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -123,29 +140,37 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
columnsSetProduct
:
any
[]
=
[
const
columnsSetProduct
:
any
[]
=
[
{
{
dataIndex
:
'
productI
d'
,
dataIndex
:
'
i
d'
,
title
:
'ID'
,
title
:
'ID'
,
key
:
'
productI
d'
key
:
'
i
d'
},
},
{
{
dataIndex
:
'
productN
ame'
,
dataIndex
:
'
n
ame'
,
title
:
'商品名称'
,
title
:
'商品名称'
,
key
:
'
productN
ame'
key
:
'
n
ame'
},
},
{
{
dataIndex
:
'c
ategory
'
,
dataIndex
:
'c
ustomerCategoryName
'
,
title
:
'品类'
,
title
:
'品类'
,
key
:
'c
ategory
'
key
:
'c
ustomerCategoryName
'
},
},
{
{
dataIndex
:
'brand'
,
dataIndex
:
'brand
Name
'
,
title
:
'品牌'
,
title
:
'品牌'
,
key
:
'brand'
key
:
'brand
Name
'
},
},
{
{
dataIndex
:
'pr
oductPric
e'
,
dataIndex
:
'pr
iceTyp
e'
,
title
:
'商品定价'
,
title
:
'商品定价'
,
key
:
'productPrice'
key
:
'priceType'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
if
(
text
===
1
)
return
'现货价格'
else
if
(
text
===
2
)
return
'价格需要询价'
else
if
(
text
===
3
)
return
'积分兑换商品'
},
},
},
]
]
...
@@ -153,7 +178,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -153,7 +178,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
formProduct
:
ISchema
=
{
const
formProduct
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
productN
ame
:
{
n
ame
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'ModalSearch'
,
'x-component'
:
'ModalSearch'
,
'x-component-props'
:
{
'x-component-props'
:
{
...
@@ -176,7 +201,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -176,7 +201,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
},
},
},
},
properties
:
{
properties
:
{
categoryId
:
{
c
ustomerC
ategoryId
:
{
type
:
'string'
,
type
:
'string'
,
"x-component"
:
'SearchSelect'
,
"x-component"
:
'SearchSelect'
,
"x-component-props"
:
{
"x-component-props"
:
{
...
@@ -223,6 +248,9 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -223,6 +248,9 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
tableColumns
,
tableColumns
,
tableAddButton
,
tableAddButton
,
}
}
}
}
components=
{
{
SelectProcesss
,
}
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
effects=
{
(
$
,
{
setFieldState
})
=>
{
FormEffectHooks
.
onFormInputChange$
().
subscribe
(()
=>
{
FormEffectHooks
.
onFormInputChange$
().
subscribe
(()
=>
{
onFieldChange
()
onFieldChange
()
...
@@ -252,12 +280,15 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -252,12 +280,15 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
{
{
ctx
:
{
ctx
:
{
schema
:
formProduct
,
schema
:
formProduct
,
components
:
{
ModalSearch
:
Search
,
SearchSelect
,
Submit
}
,
components
:
{
ModalSearch
:
Search
,
SearchSelect
,
Submit
,
}
,
effects
:
(
$
,
actions
)
=>
{
effects
:
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
useStateFilterSearchLinkageEffect
(
$
,
$
,
actions
,
actions
,
'
productN
ame'
,
'
n
ame'
,
FORM_FILTER_PATH
,
FORM_FILTER_PATH
,
);
);
}
}
...
@@ -265,7 +296,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
...
@@ -265,7 +296,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
}
}
}
}
tableProps=
{
{
tableProps=
{
{
rowKey
:
'
productI
d'
rowKey
:
'
i
d'
}
}
}
}
/>
/>
...
...
src/pages/transaction/transactionRules/components/selectProcesss/index.tsx
0 → 100644
View file @
f8d45583
import
React
,
{
useState
,
useRef
,
useEffect
}
from
'react'
import
styled
from
'styled-components'
import
{
ISchemaFormProps
,
ISchemaFieldProps
,
ISchemaFieldComponentProps
,
createFormActions
,
useFieldState
}
from
'@formily/antd'
import
{
Button
,
Space
,
Row
,
Col
,
Tag
}
from
'antd'
import
{
PlusOutlined
,
DeleteColumnOutlined
,
EditOutlined
,
DeleteOutlined
,
CaretUpOutlined
,
CaretDownOutlined
,
EyeOutlined
}
from
'@ant-design/icons'
import
cx
from
'classnames'
import
{
PublicApi
}
from
'@/services/api'
const
SelectStyles
=
styled
((
props
)
=>
<
div
className=
'select-list'
{
...
props
}
></
div
>)
`
.select_style_border {
border: 1px solid #EBECF0;
margin-top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 14px;
cursor: pointer;
line-height: 28px;
position:relative;
}
.select_style_border.active {
border: 1px solid #00B382;
}
.select_style_border.active::after {
content: '';
position: absolute;
width: 0;
height: 0;
border-bottom: 12px solid #00B37A;
border-left: 12px solid transparent;
bottom: 0;
right: 0;
z-index: 5;
}
`
enum
ProcessTagColor
{
'red'
,
'orange'
,
'purple'
,
'blue'
}
enum
ProcessTagType
{
'订单交易流程'
,
'售后换货流程'
,
'售后退货流程'
,
'售后维修流程'
}
const
SelectProcesss
=
(
props
:
ISchemaFieldComponentProps
)
=>
{
const
[
formInitValue
,
setFormInitValue
]
=
useState
<
any
>
(
null
)
const
[
state
,
setFieldState
]
=
useFieldState
({
dataSource
:
[],
showMore
:
false
})
const
{
dataSource
,
showMore
}
=
state
const
{
value
,
mutators
,
editable
}
=
props
useEffect
(()
=>
{
PublicApi
.
getOrderTradingRulesTransactionProcessList
().
then
(
res
=>
{
setFieldState
({
dataSource
:
res
.
data
,
showMore
})
})
},
[])
const
showDataSource
=
showMore
?
dataSource
:
[...
dataSource
].
splice
(
0
,
3
)
const
handleCheck
=
(
id
)
=>
{
if
(
editable
)
{
mutators
.
change
(
id
)
}
}
const
toogleMore
=
()
=>
{
setFieldState
({
dataSource
,
showMore
:
!
showMore
})
}
const
renderProcessType
=
(
v
:
any
)
=>
{
return
<
Tag
color=
{
ProcessTagColor
[
v
.
type
-
1
]
}
>
{
ProcessTagType
[
v
.
type
-
1
]
}
</
Tag
>
}
return
(
<
div
style=
{
{
width
:
'100%'
}
}
>
<
SelectStyles
>
{
showDataSource
.
map
(
v
=>
<
div
key=
{
v
.
id
}
onClick=
{
()
=>
handleCheck
(
v
.
id
)
}
className=
{
cx
(
'select_style_border'
,
value
===
v
.
id
?
'active'
:
''
)
}
>
<
div
>
<
Row
style=
{
{
color
:
'#172B4D'
}
}
>
<
Col
>
{
v
.
name
}
</
Col
>
<
Col
style=
{
{
marginLeft
:
6
}
}
>
{
renderProcessType
(
v
)
}
</
Col
>
</
Row
>
<
div
style=
{
{
color
:
'#6B778C'
}
}
>
{
v
.
explain
}
</
div
>
</
div
>
</
div
>)
}
</
SelectStyles
>
{
dataSource
.
length
>
3
&&
<
div
onClick=
{
toogleMore
}
style=
{
{
textAlign
:
'center'
,
cursor
:
'pointer'
}
}
>
显示更多
{
showMore
?
<
CaretDownOutlined
/>
:
<
CaretUpOutlined
/>
}
</
div
>
}
</
div
>
)
}
SelectProcesss
.
defaultProps
=
{}
SelectProcesss
.
isFieldComponent
=
true
;
export
default
SelectProcesss
\ No newline at end of file
src/pages/transaction/transactionRules/schema/index.tsx
View file @
f8d45583
...
@@ -52,13 +52,30 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({
...
@@ -52,13 +52,30 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({
"transactionProcesssId"
:
{
"transactionProcesssId"
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'流程选择'
,
title
:
'流程选择'
,
required
:
true
,
"x-component"
:
'SearchSelect'
,
"x-component"
:
'SelectProcesss'
,
"x-mega-props"
:
{
style
:
{
full
:
true
}
},
"x-component-props"
:
{
"x-component-props"
:
{
placeholder
:
'请选择交易流程'
,
dataSource
:
[]
className
:
'fixed-ant-selected-down'
,
fetchSearch
:
PublicApi
.
getOrderTradingRulesTransactionProcessList
,
},
},
"x-rules"
:
[
{
required
:
true
,
message
:
'请选择收货方式'
}
],
// required: true,
// "x-component": 'SearchSelect',
// "x-component-props": {
// placeholder: '请选择交易流程',
// className: 'fixed-ant-selected-down',
// fetchSearch: PublicApi.getOrderTradingRulesTransactionProcessList,
// },
},
},
MEGA_LAYOUT1_1
:
{
MEGA_LAYOUT1_1
:
{
type
:
'object'
,
type
:
'object'
,
...
@@ -110,7 +127,8 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({
...
@@ -110,7 +127,8 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({
"type"
:
"array:number"
,
"type"
:
"array:number"
,
"x-component"
:
'CardCheckBox'
,
"x-component"
:
'CardCheckBox'
,
"x-component-props"
:
{
"x-component-props"
:
{
dataSource
:
GlobalConfig
.
web
.
shopInfo
dataSource
:
GlobalConfig
.
web
.
shopInfo
,
type
:
'radio'
// CardCheckBox 单选模式
},
},
"title"
:
"适用商城"
,
"title"
:
"适用商城"
,
required
:
true
,
required
:
true
,
...
...
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