Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
3c12f58a
Commit
3c12f58a
authored
Nov 14, 2022
by
shenshaokai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinfa-20221102' into 'jinfa-20221102'
fix: 待审核物料-隐藏高级筛选-品牌 See merge request
project/jinfa-admin!26
parents
af7536b0
57f8914a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
searchTableSchema.tsx
...pages/productManage/material/common/searchTableSchema.tsx
+17
-17
index.tsx
src/pages/productManage/material/materialQuery/index.tsx
+3
-4
No files found.
src/pages/productManage/material/common/searchTableSchema.tsx
View file @
3c12f58a
...
@@ -4,8 +4,8 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
...
@@ -4,8 +4,8 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
const
intl
=
getIntl
();
const
intl
=
getIntl
();
type
Options
=
{
type
Options
=
{
showStatus
:
boolean
showStatus
:
boolean
}
}
export
const
getSchema
=
(
options
:
Options
)
=>
{
export
const
getSchema
=
(
options
:
Options
)
=>
{
...
@@ -49,36 +49,36 @@ export const getSchema = (options: Options) => {
...
@@ -49,36 +49,36 @@ export const getSchema = (options: Options) => {
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'material.name'
,
defaultMessage
:
'物料名称'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'material.name'
,
defaultMessage
:
'物料名称'
}),
allowClear
:
true
,
allowClear
:
true
,
},
},
},
},
materialGroupId
:
{
materialGroupId
:
{
type
:
'string'
,
type
:
'string'
,
// 'x-component': 'Cascader',
// 'x-component': 'Cascader',
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'material.group.title'
,
defaultMessage
:
'物料组'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'material.group.title'
,
defaultMessage
:
'物料组'
}),
allowClear
:
true
,
allowClear
:
true
,
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
style
:
{
width
:
'150px'
},
style
:
{
width
:
'150px'
},
showSearch
:
true
showSearch
:
true
},
},
},
brandId
:
{
type
:
'string'
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'material.brand'
,
defaultMessage
:
'品牌'
}),
allowClear
:
true
,
showSearch
:
true
,
style
:
{
width
:
'150px'
},
},
},
},
// brandId: {
// type: 'string',
// enum: [],
// 'x-component-props': {
// placeholder: intl.formatMessage({ id: 'material.brand', defaultMessage: '品牌' }),
// allowClear: true,
// showSearch: true,
// style: { width: '150px' },
// },
// },
customerCategoryId
:
{
customerCategoryId
:
{
type
:
'string'
,
type
:
'string'
,
// 'x-component': 'Cascader',
// 'x-component': 'Cascader',
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'material.category'
,
defaultMessage
:
'品类'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'material.category'
,
defaultMessage
:
'品类'
}),
allowClear
:
true
,
allowClear
:
true
,
style
:
{
width
:
'150px'
},
style
:
{
width
:
'150px'
},
showSearch
:
true
,
showSearch
:
true
,
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
...
@@ -89,7 +89,7 @@ export const getSchema = (options: Options) => {
...
@@ -89,7 +89,7 @@ export const getSchema = (options: Options) => {
visible
:
options
.
showStatus
,
visible
:
options
.
showStatus
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'material.interiorStateName'
,
defaultMessage
:
'内部状态'
}),
placeholder
:
intl
.
formatMessage
({
id
:
'material.interiorStateName'
,
defaultMessage
:
'内部状态'
}),
allowClear
:
true
,
allowClear
:
true
,
enum
:
[],
enum
:
[],
},
},
},
},
...
...
src/pages/productManage/material/materialQuery/index.tsx
View file @
3c12f58a
...
@@ -134,7 +134,7 @@ const MaterialQuery = () => {
...
@@ -134,7 +134,7 @@ const MaterialQuery = () => {
/**
/**
* 冻结 0, 启动 1
* 冻结 0, 启动 1
* @param status
* @param status
*/
*/
const
handleBatchFrozen
=
async
(
status
:
0
|
1
,
reason
?:
string
)
=>
{
const
handleBatchFrozen
=
async
(
status
:
0
|
1
,
reason
?:
string
)
=>
{
const
selectedRowKeys
=
selectRowFns
.
selectedRowKeys
;
const
selectedRowKeys
=
selectRowFns
.
selectedRowKeys
;
...
@@ -235,7 +235,7 @@ const MaterialQuery = () => {
...
@@ -235,7 +235,7 @@ const MaterialQuery = () => {
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'code'
,
FORM_FILTER_PATH
);
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'code'
,
FORM_FILTER_PATH
);
useAsyncCascader
(
'materialGroupId'
,
fetchTreeData
)
useAsyncCascader
(
'materialGroupId'
,
fetchTreeData
)
useAsyncCascader
(
'customerCategoryId'
,
fetchCategoryData
)
useAsyncCascader
(
'customerCategoryId'
,
fetchCategoryData
)
useAsyncSelect
(
'brandId'
,
fetchBrand
,
[
"name"
,
"id"
])
//
useAsyncSelect('brandId', fetchBrand, ["name", "id"])
useAsyncSelect
(
'status'
,
fetchStatus
,
[
"name"
,
"status"
])
useAsyncSelect
(
'status'
,
fetchStatus
,
[
"name"
,
"status"
])
}
}
}
}
/>
/>
...
@@ -253,4 +253,4 @@ const MaterialQuery = () => {
...
@@ -253,4 +253,4 @@ const MaterialQuery = () => {
)
)
}
}
export
default
MaterialQuery
export
default
MaterialQuery
\ No newline at end of file
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