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
shenshaokai
jinfa-platform
Commits
0b5d5389
Commit
0b5d5389
authored
Apr 13, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418' of…
Merge branch 'v2-220418' of
ssh://gitlab.shushangyun.com:8122/linkseeks-design/pro-platform
into feat-memberLevel
parents
ca8e1106
da376f14
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
9 deletions
+37
-9
add.tsx
src/pages/commodity/material/materialPendingAdd/add.tsx
+15
-1
index.tsx
src/pages/commodity/material/materialPendingAdd/index.tsx
+3
-2
add.tsx
...ages/commodity/material/materialPendingAdd/schema/add.tsx
+1
-0
index.tsx
...iveryPlanManagement/deliveryPlanAwaitSRM/schema/index.tsx
+6
-0
index.tsx
...deliveryPlanManagement/deliveryPlanQuery/schema/index.tsx
+6
-0
index.tsx
src/pages/systemSetting/parameterSetting/index.tsx
+6
-6
No files found.
src/pages/commodity/material/materialPendingAdd/add.tsx
View file @
0b5d5389
...
@@ -68,6 +68,8 @@ const MaterialAdd = (props) => {
...
@@ -68,6 +68,8 @@ const MaterialAdd = (props) => {
formActions
.
setFieldState
(
'sourceListCard'
,
(
state
)
=>
{
formActions
.
setFieldState
(
'sourceListCard'
,
(
state
)
=>
{
FormPath
.
setIn
(
state
,
'visible'
,
true
);
FormPath
.
setIn
(
state
,
'visible'
,
true
);
})
})
console
.
log
(
state
.
dataSource
)
if
(
!
state
.
dataSource
)
{
if
(
!
state
.
dataSource
)
{
message
.
error
(
intl
.
formatMessage
({
id
:
'material.should.select.purchaseSelection'
,
defaultMessage
:
'请选择采购选品'
}));
message
.
error
(
intl
.
formatMessage
({
id
:
'material.should.select.purchaseSelection'
,
defaultMessage
:
'请选择采购选品'
}));
}
}
...
@@ -135,6 +137,17 @@ const MaterialAdd = (props) => {
...
@@ -135,6 +137,17 @@ const MaterialAdd = (props) => {
</
UploadFiles
>
</
UploadFiles
>
)
)
const
createDescriptionElement
=
()
=>
{
return
{
desc
()
{
if
(
query
?.
type
!==
'sourceData'
)
{
return
null
;
}
return
React
.
createElement
(
'div'
,
{
className
:
styles
[
'label-required'
]
},
`参考品牌:
${
state
.
dataSource
?.
referenceBrand
}
`);
}
}
};
const handleSubmit = async (value) => {
const handleSubmit = async (value) => {
console.log("values", value);
console.log("values", value);
const {
const {
...
@@ -299,7 +312,8 @@ const MaterialAdd = (props) => {
...
@@ -299,7 +312,8 @@ const MaterialAdd = (props) => {
// renderListTableRemove: renderListTableRemove,
// renderListTableRemove: renderListTableRemove,
renderAddition: renderAddition(),
renderAddition: renderAddition(),
uploadContainer: uploadContainer,
uploadContainer: uploadContainer,
customizeFileItemRender
:
customizeFileItemRender
customizeFileItemRender: customizeFileItemRender,
...createDescriptionElement(),
}}
}}
effects={($, actions) => {
effects={($, actions) => {
useAsyncCascader('category', fetchCategoryData)
useAsyncCascader('category', fetchCategoryData)
...
...
src/pages/commodity/material/materialPendingAdd/index.tsx
View file @
0b5d5389
...
@@ -264,7 +264,7 @@ const MaterialQuery = () => {
...
@@ -264,7 +264,7 @@ const MaterialQuery = () => {
name
:
target
.
name
,
name
:
target
.
name
,
goodsId
:
target
.
id
,
goodsId
:
target
.
id
,
type
:
target
.
type
,
type
:
target
.
type
,
b
rand
:
target
.
brand
?.
name
,
referenceB
rand
:
target
.
brand
?.
name
,
goodsPic
:
target
.
goodsPic
?.
map
((
_item
)
=>
{
goodsPic
:
target
.
goodsPic
?.
map
((
_item
)
=>
{
return
{
return
{
name
:
_item
,
name
:
_item
,
...
@@ -288,6 +288,7 @@ const MaterialQuery = () => {
...
@@ -288,6 +288,7 @@ const MaterialQuery = () => {
// rowSelection: selectRow
// rowSelection: selectRow
rowSelection
:
selectRow
rowSelection
:
selectRow
}
}
}
}
keepAlive=
{
false
}
columns=
{
columns
}
columns=
{
columns
}
currentRef=
{
ref
}
currentRef=
{
ref
}
fetchTableData=
{
fetchListData
}
fetchTableData=
{
fetchListData
}
...
@@ -300,7 +301,7 @@ const MaterialQuery = () => {
...
@@ -300,7 +301,7 @@ const MaterialQuery = () => {
effects=
{
(
$
,
actions
)
=>
{
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'code'
,
FORM_FILTER_PATH
);
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'code'
,
FORM_FILTER_PATH
);
useAsyncCascader
(
'materialGroupId'
,
fetchTreeData
)
useAsyncCascader
(
'materialGroupId'
,
fetchTreeData
)
useAsyncCascader
(
'categoryId'
,
fetchCategoryData
)
useAsyncCascader
(
'c
ustomerC
ategoryId'
,
fetchCategoryData
)
useAsyncSelect
(
'brandId'
,
fetchBrand
,
[
"name"
,
"id"
])
useAsyncSelect
(
'brandId'
,
fetchBrand
,
[
"name"
,
"id"
])
}
}
}
}
/>
/>
...
...
src/pages/commodity/material/materialPendingAdd/schema/add.tsx
View file @
0b5d5389
...
@@ -128,6 +128,7 @@ export const getSchema = (schema: ISchema): ISchema => {
...
@@ -128,6 +128,7 @@ export const getSchema = (schema: ISchema): ISchema => {
'x-component-props'
:
{
'x-component-props'
:
{
showSearch
:
true
,
showSearch
:
true
,
},
},
description
:
`{{desc()}}`
},
},
category
:
{
category
:
{
title
:
intl
.
formatMessage
({
id
:
'material.category'
,
defaultMessage
:
'品类'
}),
title
:
intl
.
formatMessage
({
id
:
'material.category'
,
defaultMessage
:
'品类'
}),
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanAwaitSRM/schema/index.tsx
View file @
0b5d5389
...
@@ -48,6 +48,12 @@ export const deliveryPlanManagementAwaitSRMSchema: ISchema = {
...
@@ -48,6 +48,12 @@ export const deliveryPlanManagementAwaitSRMSchema: ISchema = {
},
},
},
},
properties
:
{
properties
:
{
digest
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'计划摘要'
,
}
},
'[startTime, endTime]'
:
{
'[startTime, endTime]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'x-component-props'
:
{
...
...
src/pages/order/deliveryPlanManagement/deliveryPlanQuery/schema/index.tsx
View file @
0b5d5389
...
@@ -48,6 +48,12 @@ export const deliveryPlanManagementQuerySchema: ISchema = {
...
@@ -48,6 +48,12 @@ export const deliveryPlanManagementQuerySchema: ISchema = {
},
},
},
},
properties
:
{
properties
:
{
digest
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'计划摘要'
,
}
},
'[startTime, endTime]'
:
{
'[startTime, endTime]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'x-component-props'
:
{
...
...
src/pages/systemSetting/parameterSetting/index.tsx
View file @
0b5d5389
...
@@ -312,12 +312,12 @@ const ParameterSetting: React.FC<{}> = () => {
...
@@ -312,12 +312,12 @@ const ParameterSetting: React.FC<{}> = () => {
<
p
>
{
item
.
description
}
</
p
>
<
p
>
{
item
.
description
}
</
p
>
</
div
>
</
div
>
<
div
className=
{
styles
.
setItemRight
}
>
<
div
className=
{
styles
.
setItemRight
}
>
<
AuthButton
btnCode=
'parameterSetting.setup'
>
{
{
item
.
isSettting
?
item
.
isSettting
?
<
AuthButton
btnCode=
'parameterSetting.setup'
>
<
a
onClick=
{
()
=>
handleVisibleModalType
(
item
.
id
)
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.parameterSetting.setApplicableMall'
})
}
</
a
>
:
<
a
onClick=
{
()
=>
handleVisibleModalType
(
item
.
id
)
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.shezhicanshu'
,
defaultMessage
:
'设置参数'
})
}
</
a
>
<
a
onClick=
{
()
=>
handleVisibleModalType
(
item
.
id
)
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.parameterSetting.setApplicableMall'
})
}
</
a
>
:
<
a
onClick=
{
()
=>
handleVisibleModalType
(
item
.
id
)
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.shezhicanshu'
,
defaultMessage
:
'设置参数'
})
}
</
a
>
</
AuthButton
>
:
null
}
}
</
AuthButton
>
{
/* <Switch defaultChecked={item.isSettting} onChange={(v) => onChangeShowSetBtn(v, item.id)} /> */
}
{
/* <Switch defaultChecked={item.isSettting} onChange={(v) => onChangeShowSetBtn(v, item.id)} /> */
}
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -516,11 +516,11 @@ const ParameterSetting: React.FC<{}> = () => {
...
@@ -516,11 +516,11 @@ const ParameterSetting: React.FC<{}> = () => {
>
>
{
({
getFieldValue
})
=>
getFieldValue
(
'status'
)
&&
(
{
({
getFieldValue
})
=>
getFieldValue
(
'status'
)
&&
(
<>
<>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'systemSetting.dangedingdanyunxushiyong'
,
defaultMessage
:
'单个订单允许使用积分上限'
})
}
name=
'userScoreLimit'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.qingshurudangedingdanyun'
,
defaultMessage
:
'请输入单个订单允许使用积分上限'
})
},
{
pattern
:
/^
[
1-9
]\d
*$/
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.jifenshangxianzhengshuxingbi'
,
defaultMessage
:
'积分上限整数型必须大于0'
})
}]
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'systemSetting.dangedingdanyunxushiyong'
,
defaultMessage
:
'单个订单允许使用积分上限'
})
}
name=
'userScoreLimit'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.qingshurudangedingdanyun'
,
defaultMessage
:
'请输入单个订单允许使用积分上限'
})
},
{
pattern
:
/^
[
1-9
]\d
*$/
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.jifenshangxianzhengshuxingbi'
,
defaultMessage
:
'积分上限整数型必须大于0'
})
}]
}
>
<
Input
/>
<
Input
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Space
>
<
Space
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'systemSetting.jifendikoujinebili1'
,
defaultMessage
:
'积分抵扣金额比例'
})
}
name=
'deductionRate'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.qingshurujifendikoujin'
,
defaultMessage
:
'请输入积分抵扣金额比例'
})
},
{
pattern
:
/^
[
1-9
]\d
*$/
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.jifendikoujinebili'
,
defaultMessage
:
'积分抵扣金额比例整数型必须大于0'
})
}]
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'systemSetting.jifendikoujinebili1'
,
defaultMessage
:
'积分抵扣金额比例'
})
}
name=
'deductionRate'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.qingshurujifendikoujin'
,
defaultMessage
:
'请输入积分抵扣金额比例'
})
},
{
pattern
:
/^
[
1-9
]\d
*$/
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.jifendikoujinebili'
,
defaultMessage
:
'积分抵扣金额比例整数型必须大于0'
})
}]
}
>
<
Input
/>
<
Input
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
div
style=
{
{
marginBottom
:
'24px'
,
color
:
'#909399'
}
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.jifendikou'
,
defaultMessage
:
'积分可抵扣:¥1.00元'
})
}
</
div
>
<
div
style=
{
{
marginBottom
:
'24px'
,
color
:
'#909399'
}
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.jifendikou'
,
defaultMessage
:
'积分可抵扣:¥1.00元'
})
}
</
div
>
...
@@ -569,8 +569,8 @@ const ParameterSetting: React.FC<{}> = () => {
...
@@ -569,8 +569,8 @@ const ParameterSetting: React.FC<{}> = () => {
>
>
{
({
getFieldValue
})
=>
getFieldValue
(
'status'
)
&&
(
{
({
getFieldValue
})
=>
getFieldValue
(
'status'
)
&&
(
<
Space
>
<
Space
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'systemSetting.dingdanjineman'
,
defaultMessage
:
'订单金额满'
})
}
name=
'orderAmount'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.qingshurudingdanjineman'
,
defaultMessage
:
'请输入订单金额满'
})
},
{
pattern
:
/^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.dingdanjinemanbixuda'
,
defaultMessage
:
'订单金额满必须大于0,最多保留2位小数'
})
}]
}
>
<
Form
.
Item
label=
{
intl
.
formatMessage
({
id
:
'systemSetting.dingdanjineman'
,
defaultMessage
:
'订单金额满'
})
}
name=
'orderAmount'
rules=
{
[{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.qingshurudingdanjineman'
,
defaultMessage
:
'请输入订单金额满'
})
},
{
pattern
:
/^
([
1-9
]\d
*
(\.\d
{1,2}
)?
|
([
0
](\.([
0
][
1-9
]
|
[
1-9
]\d
{0,1}
))))
$/
,
message
:
intl
.
formatMessage
({
id
:
'systemSetting.dingdanjinemanbixuda'
,
defaultMessage
:
'订单金额满必须大于0,最多保留2位小数'
})
}]
}
>
<
Input
addonBefore=
{
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})
}
/>
<
Input
addonBefore=
{
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
div
style=
{
{
marginBottom
:
'24px'
,
color
:
'#909399'
}
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.yuanmianyunfei'
,
defaultMessage
:
'元免运费'
})
}
</
div
>
<
div
style=
{
{
marginBottom
:
'24px'
,
color
:
'#909399'
}
}
>
{
intl
.
formatMessage
({
id
:
'systemSetting.yuanmianyunfei'
,
defaultMessage
:
'元免运费'
})
}
</
div
>
</
Space
>
</
Space
>
...
...
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