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
49d9bb98
Commit
49d9bb98
authored
Jan 06, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
16
parent
a88ea068
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
102 additions
and
102 deletions
+102
-102
mtable.jsx
src/components/AutoTable/mtable.jsx
+7
-6
index.jsx
src/pages/spare/personalstore/index.jsx
+1
-1
columns.js
src/pages/spare/record/columns.js
+92
-93
index.jsx
src/pages/spare/record/index.jsx
+1
-1
index.jsx
src/pages/welcome/index.jsx
+1
-1
No files found.
src/components/AutoTable/mtable.jsx
View file @
49d9bb98
...
@@ -43,6 +43,7 @@ const Mtable = (props) => {
...
@@ -43,6 +43,7 @@ const Mtable = (props) => {
dataSource
,
dataSource
,
}
=
props
;
}
=
props
;
console
.
log
(
'this is path:'
,
path
);
const
actionRefs
=
actionRef
??
useRef
(),
const
actionRefs
=
actionRef
??
useRef
(),
formRefs
=
formRef
??
useRef
(),
formRefs
=
formRef
??
useRef
(),
ifspagination
=
pagination
==
'false'
||
pagination
===
false
,
ifspagination
=
pagination
==
'false'
||
pagination
===
false
,
...
@@ -225,12 +226,12 @@ const Mtable = (props) => {
...
@@ -225,12 +226,12 @@ const Mtable = (props) => {
//初始化操作数据
//初始化操作数据
const
initDrage
=
async
()
=>
{
const
initDrage
=
async
()
=>
{
if
(
!
path
)
return
;
if
(
!
path
)
return
;
//
let res = await doFetch({
let
res
=
await
doFetch
({
//
url: '/ngic-base-business/paFieldScene/queryContro',
url
:
'/ngic-base-business/paFieldScene/queryContro'
,
//
params: {
params
:
{
//
sceneMark: activeTabKey ? path + activeTabKey : path,
sceneMark
:
activeTabKey
?
path
+
activeTabKey
:
path
,
//
},
},
//
});
});
if
(
res
.
code
==
'0000'
)
{
if
(
res
.
code
==
'0000'
)
{
//datalist:接口返回状态
//datalist:接口返回状态
let
datalist
=
{};
let
datalist
=
{};
...
...
src/pages/spare/personalstore/index.jsx
View file @
49d9bb98
...
@@ -117,7 +117,7 @@ function Personalstore(props) {
...
@@ -117,7 +117,7 @@ function Personalstore(props) {
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
...
...
src/pages/spare/record/columns.js
View file @
49d9bb98
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
setdrawer
)
{
return
{
return
{
"columns"
:
[
columns
:
[
{
{
"title"
:
"操作时间"
,
title
:
'操作时间'
,
"dataIndex"
:
"operateTime"
,
dataIndex
:
'operateTime'
,
"key"
:
"operateTimeList"
,
key
:
'operateTimeList'
,
"valueType"
:
"dateRange"
valueType
:
'dateRange'
,
},
},
{
{
"title"
:
"操作人"
,
title
:
'操作人'
,
"dataIndex"
:
"operateUserName"
,
dataIndex
:
'operateUserName'
,
"key"
:
"operateUserId"
,
key
:
'operateUserId'
,
"valueType"
:
"select"
,
valueType
:
'select'
,
"options"
:
{
options
:
{
"path"
:
"/auth/sysUser/selection"
,
path
:
'/auth/sysUser/selection'
,
"params"
:
{}
params
:
{},
},
},
"hideInSearch"
:
false
,
hideInSearch
:
false
,
"hideInTable"
:
false
hideInTable
:
false
,
},
},
{
{
"title"
:
"备件料号"
,
title
:
'备件料号'
,
"dataIndex"
:
"sparePartNo"
,
dataIndex
:
'sparePartNo'
,
"key"
:
"sparePartNo"
,
key
:
'sparePartNo'
,
"hideInSearch"
:
false
,
hideInSearch
:
false
,
"hideInTable"
:
false
hideInTable
:
false
,
},
},
{
{
"title"
:
"备件名"
,
title
:
'备件名'
,
"dataIndex"
:
"sparePartName"
,
dataIndex
:
'sparePartName'
,
"key"
:
"sparePartName"
key
:
'sparePartName'
,
},
},
{
{
"title"
:
"供应商编号"
,
title
:
'供应商编号'
,
"dataIndex"
:
"supplierNo"
,
dataIndex
:
'supplierNo'
,
"key"
:
"supplierNo"
key
:
'supplierNo'
,
},
},
{
{
"title"
:
"供应商名称"
,
title
:
'供应商名称'
,
"dataIndex"
:
"supplierName"
,
dataIndex
:
'supplierName'
,
"key"
:
"supplierName"
key
:
'supplierName'
,
},
},
{
{
"title"
:
"库存单位"
,
title
:
'库存单位'
,
"dataIndex"
:
"unit"
,
dataIndex
:
'unit'
,
"key"
:
"unit"
key
:
'unit'
,
},
},
{
{
"title"
:
"入库仓库"
,
title
:
'入库仓库'
,
"dataIndex"
:
"inWarehouseName"
,
dataIndex
:
'inWarehouseName'
,
"key"
:
"inWarehouseName"
key
:
'inWarehouseName'
,
},
},
{
{
"title"
:
"出库仓库"
,
title
:
'出库仓库'
,
"dataIndex"
:
"outWarehouseName"
,
dataIndex
:
'outWarehouseName'
,
"key"
:
"outWarehouseName"
key
:
'outWarehouseName'
,
},
},
{
{
"title"
:
"出入库类型"
,
title
:
'出入库类型'
,
"dataIndex"
:
"operateTypeName"
,
dataIndex
:
'operateTypeName'
,
"key"
:
"operateTypeName"
key
:
'operateTypeName'
,
},
},
{
{
"title"
:
"操作后的备件库存"
,
title
:
'操作后的备件库存'
,
"dataIndex"
:
"actualStock"
,
dataIndex
:
'actualStock'
,
"key"
:
"actualStock"
key
:
'actualStock'
,
},
},
{
{
"title"
:
"操作数量"
,
title
:
'操作数量'
,
"dataIndex"
:
"operateNum"
,
dataIndex
:
'operateNum'
,
"key"
:
"operateNum"
key
:
'operateNum'
,
},
},
{
{
"title"
:
"相关单号"
,
title
:
'相关单号'
,
"dataIndex"
:
"relationNo"
,
dataIndex
:
'relationNo'
,
"key"
:
"relationNo"
key
:
'relationNo'
,
}
},
],
],
"pathconfig"
:
{
pathconfig
:
{
"enableadd"
:
false
,
enableadd
:
false
,
"enableedit"
:
false
,
enableedit
:
false
,
"enabledelete"
:
false
,
enabledelete
:
false
,
"enabledetail"
:
false
,
enabledetail
:
false
,
"add"
:
""
,
add
:
''
,
"edit"
:
""
,
edit
:
''
,
"list"
:
"/sparepart/spareStockAccess/queryList"
,
list
:
'/sparepart/spareStockAccess/queryList'
,
"delete"
:
""
,
delete
:
''
,
"detail"
:
""
detail
:
''
,
}
},
};
};
}
}
export
default
getcolumns
;
export
default
getcolumns
;
\ No newline at end of file
src/pages/spare/record/index.jsx
View file @
49d9bb98
...
@@ -108,7 +108,7 @@ function Record(props) {
...
@@ -108,7 +108,7 @@ function Record(props) {
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
...
...
src/pages/welcome/index.jsx
View file @
49d9bb98
...
@@ -98,7 +98,7 @@ function Welcome(props) {
...
@@ -98,7 +98,7 @@ function Welcome(props) {
columns=
{
columns
}
columns=
{
columns
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
pageextra=
{
'add'
}
pageextra=
{
'add'
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
...
...
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