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
51ed0b35
Commit
51ed0b35
authored
Jan 13, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
e22207dd
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
525 additions
and
221 deletions
+525
-221
columns.js
src/pages/device/account/columns.js
+3
-0
index.jsx
src/pages/device/account/index.jsx
+4
-1
index.jsx
src/pages/maintain/criterion/index.jsx
+3
-3
columns.js
src/pages/maintain/plan/columns.js
+345
-58
index.jsx
src/pages/maintain/plan/index.jsx
+160
-152
columns.js
src/pages/setting/production/columns.js
+2
-2
index.jsx
src/pages/setting/production/index.jsx
+2
-1
columns.js
src/pages/setting/section/columns.js
+1
-0
columns.js
src/pages/setting/users/columns.js
+2
-2
index.jsx
src/pages/system/rules/index.jsx
+3
-2
No files found.
src/pages/device/account/columns.js
View file @
51ed0b35
...
@@ -121,6 +121,7 @@ function getcolumns(setdrawer) {
...
@@ -121,6 +121,7 @@ function getcolumns(setdrawer) {
},
},
options
:
{
options
:
{
path
:
'/auth/sysShop/getAllShopSelection'
,
path
:
'/auth/sysShop/getAllShopSelection'
,
params
:
{},
},
},
key
:
'shopId'
,
key
:
'shopId'
,
hideInForm
:
true
,
hideInForm
:
true
,
...
@@ -157,6 +158,7 @@ function getcolumns(setdrawer) {
...
@@ -157,6 +158,7 @@ function getcolumns(setdrawer) {
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
options
:
{
path
:
'/auth/sysSection/getAllSectionSelection'
,
path
:
'/auth/sysSection/getAllSectionSelection'
,
params
:
{},
},
},
hideInForm
:
true
,
hideInForm
:
true
,
hideInTable
:
true
,
hideInTable
:
true
,
...
@@ -192,6 +194,7 @@ function getcolumns(setdrawer) {
...
@@ -192,6 +194,7 @@ function getcolumns(setdrawer) {
key
:
'productLineId'
,
key
:
'productLineId'
,
options
:
{
options
:
{
path
:
'/auth/sysProductionLine/getAllProductLineSelection'
,
path
:
'/auth/sysProductionLine/getAllProductLineSelection'
,
params
:
{},
},
},
hideInForm
:
true
,
hideInForm
:
true
,
hideInTable
:
true
,
hideInTable
:
true
,
...
...
src/pages/device/account/index.jsx
View file @
51ed0b35
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-1
1 16:49:4
1
* @Last Modified time: 2023-01-1
3 09:46:1
1
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -1267,6 +1267,7 @@ function Model(props) {
...
@@ -1267,6 +1267,7 @@ function Model(props) {
},
},
options
:
{
options
:
{
path
:
'/auth/sysShop/getAllShopSelection'
,
path
:
'/auth/sysShop/getAllShopSelection'
,
params
:
{},
},
},
key
:
'shopId'
,
key
:
'shopId'
,
hideInForm
:
true
,
hideInForm
:
true
,
...
@@ -1304,6 +1305,7 @@ function Model(props) {
...
@@ -1304,6 +1305,7 @@ function Model(props) {
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
options
:
{
path
:
'/auth/sysSection/getAllSectionSelection'
,
path
:
'/auth/sysSection/getAllSectionSelection'
,
params
:
{},
},
},
hideInForm
:
true
,
hideInForm
:
true
,
hideInTable
:
true
,
hideInTable
:
true
,
...
@@ -1339,6 +1341,7 @@ function Model(props) {
...
@@ -1339,6 +1341,7 @@ function Model(props) {
key
:
'productLineId'
,
key
:
'productLineId'
,
options
:
{
options
:
{
path
:
'/auth/sysProductionLine/getAllProductLineSelection'
,
path
:
'/auth/sysProductionLine/getAllProductLineSelection'
,
params
:
{},
},
},
hideInForm
:
true
,
hideInForm
:
true
,
hideInTable
:
true
,
hideInTable
:
true
,
...
...
src/pages/maintain/criterion/index.jsx
View file @
51ed0b35
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2023-01-11 10:46:48
* @Date: 2023-01-11 10:46:48
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-1
1 13:57:52
* @Last Modified time: 2023-01-1
3 09:36:16
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -121,7 +121,7 @@ function Criterion(props) {
...
@@ -121,7 +121,7 @@ function Criterion(props) {
},
},
}
}
}
}
>
>
项目明细
保养项目
</
PremButton
>
</
PremButton
>
);
);
};
};
...
@@ -143,7 +143,7 @@ function Criterion(props) {
...
@@ -143,7 +143,7 @@ function Criterion(props) {
return
(
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
div
style=
{
{
position
:
'relative'
}
}
>
<
AutoTable
<
AutoTable
pagetitle=
" 保养标准"
pagetitle=
{
<
h3
className=
"page-title"
>
保养标准
</
h3
>
}
columns=
{
columns
}
columns=
{
columns
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
...
...
src/pages/maintain/plan/columns.js
View file @
51ed0b35
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
setdrawer
)
{
return
{
return
[
"pathconfig"
:
{
{
"enableadd"
:
false
,
tab
:
'未完成'
,
"enableedit"
:
false
,
key
:
'1'
,
"enabledelete"
:
false
,
columns
:
[
"enabledetail"
:
false
,
{
"add"
:
""
,
title
:
'保养计划号'
,
"edit"
:
""
,
dataIndex
:
'maintainNo'
,
"list"
:
"/repair/umRepairOrder/queryRepairOrderList"
,
key
:
'maintainNo'
,
"delete"
:
""
,
hideInForm
:
true
,
"detail"
:
""
},
},
{
"columns"
:
[
title
:
'设备编号'
,
{
dataIndex
:
'equipmentNo'
,
"title"
:
"维修单号"
,
key
:
'equipmentNo'
,
"dataIndex"
:
"repairOrderNo"
,
hideInForm
:
true
,
"key"
:
"repairOrderNo"
},
},
{
{
title
:
'设备名称'
,
"title"
:
"设备编号"
,
dataIndex
:
'equipmentName'
,
"dataIndex"
:
"equipmentNo"
,
key
:
'equipmentName'
,
"key"
:
"equipmentNo"
hideInForm
:
true
,
},
},
{
{
"title"
:
"设备名称"
,
title
:
'工厂名称'
,
"dataIndex"
:
"equipmentName"
,
dataIndex
:
'factoryName'
,
"key"
:
"equipmentName"
key
:
'factoryId'
,
},
valueType
:
'select'
,
{
fieldProps
:
{
"title"
:
"故障描述"
,
showSearch
:
true
,
"dataIndex"
:
"faultDescription"
,
},
"key"
:
"faultDescription"
mode
:
'radio'
,
},
options
:
{
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
"title"
:
"报修人员"
,
params
:
{},
"dataIndex"
:
"repairUserName"
,
},
"key"
:
"repairUserName"
hideInForm
:
true
,
},
},
{
{
"title"
:
"报修时间"
,
title
:
'车间名称'
,
"dataIndex"
:
"repairTime"
,
dataIndex
:
'shopName'
,
"key"
:
"repairTimeList"
,
key
:
'shopId'
,
"valueType"
:
"dateTimeRange"
fieldProps
:
{
},
showSearch
:
true
,
{
},
"title"
:
"报修单号"
,
valueType
:
'select'
,
"dataIndex"
:
"repairNo"
,
mode
:
'radio'
,
"key"
:
"repairNo"
options
:
{
},
path
:
'/auth/sysShop/getAllShopSelection'
,
{
params
:
{},
"title"
:
"工单状态"
,
},
"dataIndex"
:
"statusName"
,
hideInForm
:
true
,
"key"
:
"statusName"
},
}
{
]
title
:
'保养类型'
,
};
dataIndex
:
'maintainTypeName'
,
key
:
'maintainType'
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'自主保养'
,
value
:
'1'
,
},
{
label
:
'专业保养'
,
value
:
'2'
,
},
],
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'保养频次'
,
dataIndex
:
'maintainFrequencyName'
,
key
:
'maintainFrequency'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'周'
,
value
:
'0'
,
},
{
label
:
'月度'
,
value
:
'1'
,
},
{
label
:
'季度'
,
value
:
'2'
,
},
{
label
:
'半年'
,
value
:
'3'
,
},
{
label
:
'一年'
,
value
:
'4'
,
},
],
},
{
title
:
'计划类型'
,
dataIndex
:
'isCycle'
,
key
:
'isCycle'
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'单次'
,
value
:
'1'
,
},
{
label
:
'循环'
,
value
:
'2'
,
},
],
hideInForm
:
false
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
render
:
(
_
,
row
)
=>
{
return
row
?.
isCycle
==
1
?
'单次'
:
'循环'
;
},
},
{
title
:
'下次保养日期'
,
dataIndex
:
'nextMaintainDate'
,
key
:
'nextMaintainDateList'
,
valueType
:
'dateRange'
,
},
{
title
:
'状态'
,
dataIndex
:
'maintainStatusName'
,
key
:
'maintainStatus'
,
hideInForm
:
true
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'未开始'
,
value
:
'1'
,
},
{
label
:
'执行中'
,
value
:
'2'
,
},
],
},
],
pathconfig
:
{
enableadd
:
true
,
enableedit
:
true
,
enabledelete
:
true
,
enabledetail
:
true
,
add
:
'/maintain/umMaintainPlan/save'
,
edit
:
'/maintain/umMaintainPlan/save'
,
list
:
'/maintain/umMaintainPlan/queryList'
,
delete
:
'/maintain/umMaintainPlan/enableDeactivate'
,
detail
:
'/maintain/umMaintainPlan/queryById'
,
},
},
{
tab
:
'已完成'
,
key
:
'2'
,
columns
:
[
{
title
:
'保养计划号'
,
dataIndex
:
'maintainNo'
,
key
:
'maintainNo'
,
hideInForm
:
true
,
},
{
title
:
'设备编号'
,
dataIndex
:
'equipmentNo'
,
key
:
'equipmentNo'
,
hideInForm
:
true
,
},
{
title
:
'设备名称'
,
dataIndex
:
'equipmentName'
,
key
:
'equipmentName'
,
hideInForm
:
true
,
},
{
title
:
'工厂名称'
,
dataIndex
:
'factoryName'
,
key
:
'factoryId'
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
params
:
{},
},
hideInForm
:
true
,
},
{
title
:
'车间名称'
,
dataIndex
:
'shopName'
,
key
:
'shopId'
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
{
path
:
'/auth/sysShop/getAllShopSelection'
,
params
:
{},
},
hideInForm
:
true
,
},
{
title
:
'保养类型'
,
dataIndex
:
'maintainTypeName'
,
key
:
'maintainType'
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'自主保养'
,
value
:
'1'
,
},
{
label
:
'专业保养'
,
value
:
'2'
,
},
],
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'保养频次'
,
dataIndex
:
'maintainFrequencyName'
,
key
:
'maintainFrequency'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'周'
,
value
:
'0'
,
},
{
label
:
'月度'
,
value
:
'1'
,
},
{
label
:
'季度'
,
value
:
'2'
,
},
{
label
:
'半年'
,
value
:
'3'
,
},
{
label
:
'一年'
,
value
:
'4'
,
},
],
},
{
title
:
'计划类型'
,
dataIndex
:
'isCycle'
,
key
:
'isCycle'
,
valueType
:
'select'
,
mode
:
'radio'
,
options
:
[
{
label
:
'单次'
,
value
:
'1'
,
},
{
label
:
'循环'
,
value
:
'2'
,
},
],
hideInForm
:
false
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'关单日期'
,
dataIndex
:
'customsTime'
,
key
:
'customsTimeList'
,
valueType
:
'dateRange'
,
},
{
title
:
'状态'
,
dataIndex
:
'maintainStatusName'
,
key
:
'maintainStatus'
,
hideInForm
:
true
,
valueType
:
'input'
,
mode
:
'radio'
,
hideInSearch
:
true
,
},
],
pathconfig
:
{
enableadd
:
true
,
enableedit
:
true
,
enabledelete
:
true
,
enabledetail
:
true
,
add
:
'/maintain/umMaintainPlan/save'
,
edit
:
'/maintain/umMaintainPlan/save'
,
list
:
'/maintain/umMaintainPlan/queryList'
,
delete
:
'/maintain/umMaintainPlan/enableDeactivate'
,
detail
:
'/maintain/umMaintainPlan/queryById'
,
},
},
];
}
}
export
default
getcolumns
;
export
default
getcolumns
;
\ No newline at end of file
src/pages/maintain/plan/index.jsx
View file @
51ed0b35
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
function
Plan
(
props
)
{
function
Plan
(
props
)
{
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
formRef
=
useRef
();
formRef
=
useRef
();
const
[
drawer
,
setdrawer
]
=
useState
({
const
[
drawer
,
setdrawer
]
=
useState
({
open
:
false
,
open
:
false
,
}),
[
activeTabKey
,
setactiveTabKey
]
=
useState
(
'1'
);
const
{
run
,
loading
}
=
useRequest
(
doFetch
,
{
manual
:
true
,
onSuccess
:
(
res
,
params
)
=>
{
if
(
res
?.
code
==
'0000'
)
{
actionRef
?.
current
?.
reload
();
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
}
},
});
const
detail
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
<
PremButton
btn=
{
{
size
:
'small'
,
type
:
'link'
,
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
row
,
title
:
'详情'
,
val
:
'detail'
,
title
:
'详细信息'
,
}));
},
}
}
>
详情
</
PremButton
>
);
};
const
edit
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
<
PremButton
btn=
{
{
size
:
'small'
,
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
row
,
title
:
'编辑'
,
val
:
'edit'
,
}));
},
}
}
>
编辑
</
PremButton
>
);
};
const
remove
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
<
PremButton
pop=
{
{
title
:
'是否删除?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onConfirm
:
()
=>
{
run
({
url
:
pathconfig
?.
delete
||
'/delete'
,
params
:
{
id
:
row
?.
id
}
});
},
}
}
btn=
{
{
size
:
'small'
,
type
:
'danger'
,
}
}
>
删除
</
PremButton
>
);
};
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
columns
;
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
return
defcolumn
.
concat
({
title
:
'操作'
,
valueType
:
'option'
,
width
:
150
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
defpath
?.
enabledetail
&&
detail
(
text
,
row
,
_
,
action
),
defpath
?.
enableedit
&&
edit
(
text
,
row
,
_
,
action
),
defpath
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
],
});
});
const
pathconfig
=
useMemo
(()
=>
{
},
[
activeTabKey
]);
let
pathconf
=
getcolumns
(
setdrawer
)?.
pathconfig
??
{};
return
pathconf
;
},
[]);
const
{
run
,
loading
}
=
useRequest
(
doFetch
,
{
manual
:
true
,
onSuccess
:
(
res
,
params
)
=>
{
if
(
res
?.
code
==
'0000'
)
{
actionRef
?.
current
?.
reload
();
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
}
},
});
const
detail
=
(
text
,
row
,
_
,
action
)
=>
{
const
pathconfig
=
useMemo
(()
=>
{
return
(
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
<
PremButton
return
defpath
;
btn=
{
{
},
[
activeTabKey
]);
size
:
'small'
,
type
:
'link'
,
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
row
,
title
:
'详情'
,
val
:
'detail'
,
title
:
'详细信息'
,
}));
},
}
}
>
详情
</
PremButton
>
);
};
const
edit
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
PremButton
<
AutoTable
btn=
{
{
pagetitle=
{
<
h3
className=
"page-title"
>
保养计划
</
h3
>
}
size
:
'small'
,
columns=
{
columns
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
actionRef=
{
actionRef
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
false
}
addconfig=
{
{
// access: 'sysDepartment_save',
btn
:
{
disabled
:
false
,
onClick
:
()
=>
{
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
setdrawer
((
s
)
=>
({
...
s
,
...
s
,
open
:
true
,
open
:
true
,
item
:
row
,
item
:
null
,
title
:
'
编辑
'
,
title
:
'
新增
'
,
val
:
'
edit
'
,
val
:
'
add
'
,
}));
}));
},
},
}
}
},
>
}
}
编辑
tabList=
{
getcolumns
()
}
</
PremButton
>
activeTabKey=
{
activeTabKey
}
);
onTabChange=
{
(
key
)
=>
{
};
setactiveTabKey
(
key
);
}
}
const
remove
=
(
text
,
row
,
_
,
action
)
=>
{
/>
return
(
<
PremButton
pop=
{
{
title
:
'是否删除?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onConfirm
:
()
=>
{
run
({
url
:
pathconfig
?.
delete
||
'/delete'
,
params
:
{
id
:
row
?.
id
}
});
},
}
}
btn=
{
{
size
:
'small'
,
type
:
'danger'
,
}
}
>
删除
</
PremButton
>
);
};
const
columns
=
useMemo
(()
=>
{
<
DrawerPro
let
defcolumn
=
getcolumns
(
setdrawer
)?.
columns
;
fields=
{
columns
}
return
defcolumn
.
concat
({
detailpath=
{
pathconfig
?.
detail
||
null
}
title
:
'操作'
,
detailData=
{
drawer
?.
item
}
valueType
:
'option'
,
defaultFormValue=
{
drawer
?.
item
}
width
:
150
,
params=
{
{
id
:
drawer
?.
item
?.
id
}
}
render
:
(
text
,
row
,
_
,
action
)
=>
[
formRef=
{
formRef
}
pathconfig
?.
enabledetail
&&
detail
(
text
,
row
,
_
,
action
),
placement=
"right"
pathconfig
?.
enableedit
&&
edit
(
text
,
row
,
_
,
action
),
onClose=
{
()
=>
{
pathconfig
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
setdrawer
((
s
)
=>
({
],
...
s
,
});
open
:
false
,
},
[]);
}));
}
}
return
(
{
...
drawer
}
<
div
style=
{
{
position
:
'relative'
}
}
>
onFinish=
{
(
vals
)
=>
{
<
AutoTable
if
(
drawer
?.
val
==
'add'
)
{
pagetitle=
"保养计划"
run
({
url
:
pathconfig
?.
add
||
'/add'
,
params
:
{
...
vals
}
});
columns=
{
columns
}
}
else
if
(
drawer
?.
val
==
'edit'
)
{
actionRef=
{
actionRef
}
run
({
url
:
pathconfig
?.
edit
||
'/edit'
,
params
:
{
...
vals
,
id
:
drawer
?.
item
?.
id
}
});
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
}
}
resizeable=
{
true
}
/>
addconfig=
{
{
</
div
>
// access: 'sysDepartment_save',
);
btn
:
{
}
disabled
:
false
,
onClick
:
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
null
,
title
:
'新增'
,
val
:
'add'
,
}));
},
},
}
}
/>
<
DrawerPro
fields=
{
columns
}
params=
{
{
id
:
drawer
?.
item
?.
id
}
}
formRef=
{
formRef
}
placement=
"right"
detailpath=
{
pathconfig
?.
detail
||
null
}
detailData=
{
drawer
?.
item
}
defaultFormValue=
{
drawer
?.
item
}
onClose=
{
()
=>
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
}
}
{
...
drawer
}
onFinish=
{
(
vals
)
=>
{
if
(
drawer
?.
val
==
'add'
)
{
run
({
url
:
pathconfig
?.
add
||
'/add'
,
params
:
{
...
vals
}
});
}
else
if
(
drawer
?.
val
==
'edit'
)
{
run
({
url
:
pathconfig
?.
edit
||
'/edit'
,
params
:
{
...
vals
,
id
:
drawer
?.
item
?.
id
}
});
}
}
}
/>
</
div
>
);
}
export
default
Plan
;
export
default
Plan
;
\ No newline at end of file
src/pages/setting/production/columns.js
View file @
51ed0b35
...
@@ -14,6 +14,7 @@ function getcolumns(ifs) {
...
@@ -14,6 +14,7 @@ function getcolumns(ifs) {
fieldProps
:
{
fieldProps
:
{
showSearch
:
true
,
showSearch
:
true
,
},
},
hideInForm
:
true
,
key
:
'factoryId'
,
key
:
'factoryId'
,
width
:
180
,
width
:
180
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
...
@@ -42,7 +43,6 @@ function getcolumns(ifs) {
...
@@ -42,7 +43,6 @@ function getcolumns(ifs) {
width
:
180
,
width
:
180
,
hideInTable
:
true
,
hideInTable
:
true
,
search
:
false
,
search
:
false
,
hideInForm
:
true
,
fieldProps
:
{
fieldProps
:
{
disabled
:
ifs
,
disabled
:
ifs
,
},
},
...
@@ -63,7 +63,7 @@ function getcolumns(ifs) {
...
@@ -63,7 +63,7 @@ function getcolumns(ifs) {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
options
:
{
path
:
'/auth/sysShop/get
AllShopSelection
'
,
path
:
'/auth/sysShop/get
ShopSelectionByFactory
'
,
linkParams
:
{
linkParams
:
{
factoryId
:
''
,
//key 后面如果存在value 则该value会在调用接口时format
factoryId
:
''
,
//key 后面如果存在value 则该value会在调用接口时format
},
},
...
...
src/pages/setting/production/index.jsx
View file @
51ed0b35
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-09 14:43:54
* @Date: 2022-11-09 14:43:54
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-20 10:48:29
* @Last Modified time: 202
3-01-13 09:53:32
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -157,6 +157,7 @@ function Section(props) {
...
@@ -157,6 +157,7 @@ function Section(props) {
detailpath
:
null
,
detailpath
:
null
,
title
:
'新增'
,
title
:
'新增'
,
val
:
'add'
,
val
:
'add'
,
fields
:
getcolumns
(
false
),
onFinish
:
async
(
vals
)
=>
{
onFinish
:
async
(
vals
)
=>
{
let
params
=
{
let
params
=
{
...
vals
,
...
vals
,
...
...
src/pages/setting/section/columns.js
View file @
51ed0b35
...
@@ -66,6 +66,7 @@ function getcolumns(ifs) {
...
@@ -66,6 +66,7 @@ function getcolumns(ifs) {
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
options
:
{
path
:
'/auth/sysShop/getAllShopSelection'
,
path
:
'/auth/sysShop/getAllShopSelection'
,
params
:
{},
},
},
},
},
];
];
...
...
src/pages/setting/users/columns.js
View file @
51ed0b35
...
@@ -260,7 +260,6 @@ function getcolumns(setDrawer, ifs, formRef) {
...
@@ -260,7 +260,6 @@ function getcolumns(setDrawer, ifs, formRef) {
dataIndex
:
'roleNames'
,
dataIndex
:
'roleNames'
,
key
:
'roleIdList'
,
key
:
'roleIdList'
,
valueType
:
'select'
,
valueType
:
'select'
,
search
:
false
,
fieldProps
:
{
fieldProps
:
{
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
showSearch
:
true
,
showSearch
:
true
,
...
@@ -269,7 +268,9 @@ function getcolumns(setDrawer, ifs, formRef) {
...
@@ -269,7 +268,9 @@ function getcolumns(setDrawer, ifs, formRef) {
options
:
{
options
:
{
path
:
'/auth/sysRole/selection'
,
path
:
'/auth/sysRole/selection'
,
},
},
search
:
false
,
},
},
{
{
title
:
'直属领导'
,
title
:
'直属领导'
,
valueType
:
'select'
,
valueType
:
'select'
,
...
@@ -282,7 +283,6 @@ function getcolumns(setDrawer, ifs, formRef) {
...
@@ -282,7 +283,6 @@ function getcolumns(setDrawer, ifs, formRef) {
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
showSearch
:
true
,
showSearch
:
true
,
},
},
search
:
false
,
},
},
{
{
title
:
'状态'
,
title
:
'状态'
,
...
...
src/pages/system/rules/index.jsx
View file @
51ed0b35
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-14 18:27:22
* @Last Modified time: 202
3-01-11 19:37:17
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -66,6 +66,7 @@ function Rules(props) {
...
@@ -66,6 +66,7 @@ function Rules(props) {
title
:
'编辑'
,
title
:
'编辑'
,
val
:
'edit'
,
val
:
'edit'
,
onFinish
:
async
(
vals
)
=>
{
onFinish
:
async
(
vals
)
=>
{
console
.
log
(
'编辑'
,
vals
);
vals
.
nrList
.
other
=
_
.
pick
(
vals
.
nrList
.
other
,
[
vals
.
nrList
.
other
=
_
.
pick
(
vals
.
nrList
.
other
,
[
'formatType'
,
'formatType'
,
'increaseList'
,
'increaseList'
,
...
@@ -179,7 +180,7 @@ function Rules(props) {
...
@@ -179,7 +180,7 @@ function Rules(props) {
title
:
'新增'
,
title
:
'新增'
,
val
:
'add'
,
val
:
'add'
,
onFinish
:
async
(
vals
)
=>
{
onFinish
:
async
(
vals
)
=>
{
console
.
log
(
'
myvals
:'
,
vals
);
console
.
log
(
'
新增
:'
,
vals
);
let
params
=
{
...
vals
};
let
params
=
{
...
vals
};
//console.log('vals:', vals);
//console.log('vals:', vals);
// for (let i in vals)
{
// for (let i in vals)
{
...
...
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