Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
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
wuhao
ems3.3
Commits
145f9b29
Commit
145f9b29
authored
Sep 26, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1711
parent
ca9e3cf5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
11 deletions
+55
-11
global.less
src/global.less
+1
-1
index.jsx
src/pages/lease/devicedata/index.jsx
+1
-1
columns.js
src/pages/lease/ledger/columns.js
+5
-5
index.jsx
src/pages/lease/ledger/index.jsx
+1
-1
columns.js
src/pages/setting/users/columns.js
+34
-1
index.jsx
src/pages/setting/users/index.jsx
+13
-2
No files found.
src/global.less
View file @
145f9b29
...
...
@@ -432,7 +432,7 @@ ol {
width: 5px;
/*高宽分别对应横竖滚动条的尺寸*/
height:
5
px;
height:
8
px;
}
...
...
src/pages/lease/devicedata/index.jsx
View file @
145f9b29
...
...
@@ -159,7 +159,7 @@ const Devicedata = () => {
</
div
>
<
div
className=
{
styles
.
ledgercontent
}
>
<
div
className=
{
`${styles.ledgerleft} boxcontianbox`
}
>
<
TreeRender
url=
"/auth/sysFactory/getTree"
onselected=
{
onselecteTree
}
noaction=
{
true
}
maxWidth=
{
215
}
/>
<
TreeRender
url=
"/auth/sysFactory/get
Factory
Tree"
onselected=
{
onselecteTree
}
noaction=
{
true
}
maxWidth=
{
215
}
/>
</
div
>
<
div
className=
{
`${styles.ledgerright} ledgerf boxcontianbox`
}
>
<
Tabs
destroyInactiveTabPane
activeKey=
{
activeKey
}
onChange=
{
(
key
)
=>
{
...
...
src/pages/lease/ledger/columns.js
View file @
145f9b29
...
...
@@ -139,7 +139,7 @@ function getcolumns(setdrawer) {
hideInTable
:
true
,
hideInDescriptions
:
true
,
colProps
:
{
span
:
8
},
options
:
{
path
:
'/auth/sysFactory/get
AllFactorySelection
'
,
params
:
{}
},
options
:
{
path
:
'/auth/sysFactory/get
FactorySelectBox
'
,
params
:
{}
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
fieldProps
:
{
disabled
:
true
...
...
@@ -150,7 +150,7 @@ function getcolumns(setdrawer) {
dataIndex
:
'factoryName'
,
key
:
'factoryId'
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysFactory/get
AllFactorySelection
'
,
params
:
{}
},
options
:
{
path
:
'/auth/sysFactory/get
FactorySelectBox
'
,
params
:
{}
},
hideInForm
:
true
,
colProps
:
{
span
:
8
},
fieldProps
:
{
...
...
@@ -165,7 +165,7 @@ function getcolumns(setdrawer) {
hideInSearch
:
true
,
hideInTable
:
true
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysShop/getShopSelect
ionByFactory
'
,
linkParams
:
{
factoryId
:
''
}
},
options
:
{
path
:
'/auth/sysShop/getShopSelect
Box
'
,
linkParams
:
{
factoryId
:
''
}
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
colProps
:
{
span
:
8
},
fieldProps
:
{
...
...
@@ -181,7 +181,7 @@ function getcolumns(setdrawer) {
hideInTable
:
true
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysSection/get
AllSectionSelectionByShop
'
,
path
:
'/auth/sysSection/get
SectionSelectBox
'
,
linkParams
:
{
shopId
:
''
},
},
colProps
:
{
span
:
8
}
...
...
@@ -194,7 +194,7 @@ function getcolumns(setdrawer) {
hideInSearch
:
true
,
hideInTable
:
true
,
options
:
{
path
:
'/auth/sysProductionLine/get
AllProductLineSelectionByShop
'
,
path
:
'/auth/sysProductionLine/get
ProductLineSelectBox
'
,
linkParams
:
{
shopId
:
''
},
},
colProps
:
{
span
:
8
}
...
...
src/pages/lease/ledger/index.jsx
View file @
145f9b29
...
...
@@ -342,7 +342,7 @@ const Ledger = () => {
</
div
>
<
div
className=
{
styles
.
ledgercontent
}
>
<
div
className=
{
`${styles.ledgerleft} boxcontianbox`
}
>
<
TreeRender
url=
"/auth/sysFactory/getTree"
onselected=
{
onselecteTree
}
noaction=
{
true
}
maxWidth=
{
215
}
/>
<
TreeRender
url=
"/auth/sysFactory/get
Factory
Tree"
onselected=
{
onselecteTree
}
noaction=
{
true
}
maxWidth=
{
215
}
/>
</
div
>
<
div
className=
{
`${styles.ledgerright} boxcontianbox`
}
>
<
AutoTable
...
...
src/pages/setting/users/columns.js
View file @
145f9b29
...
...
@@ -291,6 +291,34 @@ function getcolumns(setDrawer, ifs, formRef, isLease) {
hideInForm
:
true
,
hideInTable
:
true
,
},
{
title
:
'负责工厂'
,
dataIndex
:
'factoryNames'
,
key
:
'factoryIdList'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
mode
:
'multiple'
,
disabled
:
true
},
width
:
120
,
valueType
:
'select'
,
options
:
{
linkParams
:
{
customerId
:
'id'
,
},
path
:
'/lease/umLeaseCustomer/getFactorySelectionByCustomerId'
},
showAll
:
true
,
hideInTable
:
true
,
hideInSearch
:
true
,
hideInDescriptions
:
true
,
hideInForm
:
{
customerType
:
{
reverse
:
[
2
],
},
},
},
{
title
:
'负责工厂'
,
dataIndex
:
'factoryNames'
,
...
...
@@ -305,7 +333,12 @@ function getcolumns(setDrawer, ifs, formRef, isLease) {
searchKey
:
'factoryNames'
,
searchValueType
:
'input'
,
options
:
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
params
:
{}
},
showAll
:
true
showAll
:
true
,
hideInForm
:
{
customerType
:
{
reverse
:
[
1
],
},
},
},
{
title
:
'负责车间'
,
...
...
src/pages/setting/users/index.jsx
View file @
145f9b29
...
...
@@ -155,8 +155,19 @@ function User(props) {
}
});
}
if
(
i
==
'customerId'
)
{
console
.
log
(
changedValues
[
i
]);
doFetch
({
url
:
'/lease/umLeaseCustomer/getFactorySelectionByCustomerId'
,
params
:
{
id
:
changedValues
[
i
]
}
}).
then
(
res
=>
{
if
(
res
.
code
==
'0000'
)
{
setDrawer
((
s
)
=>
({
...
s
,
item
:
{
...(
s
?.
item
??
{}),
factoryIdList
:
res
?.
data
?.
dataList
?.
map
(
it
=>
it
.
value
)
??
[]
}
}));
formRef
?.
current
?.
setFieldsValue
({
factoryIdList
:
res
?.
data
?.
dataList
?.
map
(
it
=>
it
.
value
)
??
[]
});
}
})
}
}
}
function
selectType
(
type
)
{
switch
(
type
)
{
...
...
@@ -301,6 +312,7 @@ function User(props) {
/>
<
DrawerPro
{
...
drawer
}
fields=
{
columns
}
// detailpath={urlParams.detail}
// params={{ id: drawer?.item?.id }}
...
...
@@ -313,7 +325,6 @@ function User(props) {
visible
:
false
,
}));
}
}
{
...
drawer
}
>
{
selectType
(
drawer
?.
type
)
}
</
DrawerPro
>
...
...
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