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
2 years ago
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) => {
dataSource
,
}
=
props
;
console
.
log
(
'this is path:'
,
path
);
const
actionRefs
=
actionRef
??
useRef
(),
formRefs
=
formRef
??
useRef
(),
ifspagination
=
pagination
==
'false'
||
pagination
===
false
,
...
...
@@ -225,12 +226,12 @@ const Mtable = (props) => {
//初始化操作数据
const
initDrage
=
async
()
=>
{
if
(
!
path
)
return
;
//
let res = await doFetch({
//
url: '/ngic-base-business/paFieldScene/queryContro',
//
params: {
//
sceneMark: activeTabKey ? path + activeTabKey : path,
//
},
//
});
let
res
=
await
doFetch
({
url
:
'/ngic-base-business/paFieldScene/queryContro'
,
params
:
{
sceneMark
:
activeTabKey
?
path
+
activeTabKey
:
path
,
},
});
if
(
res
.
code
==
'0000'
)
{
//datalist:接口返回状态
let
datalist
=
{};
...
...
This diff is collapsed.
Click to expand it.
src/pages/spare/personalstore/index.jsx
View file @
49d9bb98
...
...
@@ -117,7 +117,7 @@ function Personalstore(props) {
actionRef=
{
actionRef
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
// access: 'sysDepartment_save',
btn
:
{
...
...
This diff is collapsed.
Click to expand it.
src/pages/spare/record/columns.js
View file @
49d9bb98
function
getcolumns
(
setdrawer
)
{
return
{
"columns"
:
[
{
"title"
:
"操作时间"
,
"dataIndex"
:
"operateTime"
,
"key"
:
"operateTimeList"
,
"valueType"
:
"dateRange"
},
{
"title"
:
"操作人"
,
"dataIndex"
:
"operateUserName"
,
"key"
:
"operateUserId"
,
"valueType"
:
"select"
,
"options"
:
{
"path"
:
"/auth/sysUser/selection"
,
"params"
:
{}
},
"hideInSearch"
:
false
,
"hideInTable"
:
false
},
{
"title"
:
"备件料号"
,
"dataIndex"
:
"sparePartNo"
,
"key"
:
"sparePartNo"
,
"hideInSearch"
:
false
,
"hideInTable"
:
false
},
{
"title"
:
"备件名"
,
"dataIndex"
:
"sparePartName"
,
"key"
:
"sparePartName"
},
{
"title"
:
"供应商编号"
,
"dataIndex"
:
"supplierNo"
,
"key"
:
"supplierNo"
},
{
"title"
:
"供应商名称"
,
"dataIndex"
:
"supplierName"
,
"key"
:
"supplierName"
},
{
"title"
:
"库存单位"
,
"dataIndex"
:
"unit"
,
"key"
:
"unit"
},
{
"title"
:
"入库仓库"
,
"dataIndex"
:
"inWarehouseName"
,
"key"
:
"inWarehouseName"
},
{
"title"
:
"出库仓库"
,
"dataIndex"
:
"outWarehouseName"
,
"key"
:
"outWarehouseName"
},
{
"title"
:
"出入库类型"
,
"dataIndex"
:
"operateTypeName"
,
"key"
:
"operateTypeName"
},
{
"title"
:
"操作后的备件库存"
,
"dataIndex"
:
"actualStock"
,
"key"
:
"actualStock"
},
{
"title"
:
"操作数量"
,
"dataIndex"
:
"operateNum"
,
"key"
:
"operateNum"
},
{
"title"
:
"相关单号"
,
"dataIndex"
:
"relationNo"
,
"key"
:
"relationNo"
}
],
"pathconfig"
:
{
"enableadd"
:
false
,
"enableedit"
:
false
,
"enabledelete"
:
false
,
"enabledetail"
:
false
,
"add"
:
""
,
"edit"
:
""
,
"list"
:
"/sparepart/spareStockAccess/queryList"
,
"delete"
:
""
,
"detail"
:
""
}
};
}
export
default
getcolumns
;
\ No newline at end of file
return
{
columns
:
[
{
title
:
'操作时间'
,
dataIndex
:
'operateTime'
,
key
:
'operateTimeList'
,
valueType
:
'dateRange'
,
},
{
title
:
'操作人'
,
dataIndex
:
'operateUserName'
,
key
:
'operateUserId'
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysUser/selection'
,
params
:
{},
},
hideInSearch
:
false
,
hideInTable
:
false
,
},
{
title
:
'备件料号'
,
dataIndex
:
'sparePartNo'
,
key
:
'sparePartNo'
,
hideInSearch
:
false
,
hideInTable
:
false
,
},
{
title
:
'备件名'
,
dataIndex
:
'sparePartName'
,
key
:
'sparePartName'
,
},
{
title
:
'供应商编号'
,
dataIndex
:
'supplierNo'
,
key
:
'supplierNo'
,
},
{
title
:
'供应商名称'
,
dataIndex
:
'supplierName'
,
key
:
'supplierName'
,
},
{
title
:
'库存单位'
,
dataIndex
:
'unit'
,
key
:
'unit'
,
},
{
title
:
'入库仓库'
,
dataIndex
:
'inWarehouseName'
,
key
:
'inWarehouseName'
,
},
{
title
:
'出库仓库'
,
dataIndex
:
'outWarehouseName'
,
key
:
'outWarehouseName'
,
},
{
title
:
'出入库类型'
,
dataIndex
:
'operateTypeName'
,
key
:
'operateTypeName'
,
},
{
title
:
'操作后的备件库存'
,
dataIndex
:
'actualStock'
,
key
:
'actualStock'
,
},
{
title
:
'操作数量'
,
dataIndex
:
'operateNum'
,
key
:
'operateNum'
,
},
{
title
:
'相关单号'
,
dataIndex
:
'relationNo'
,
key
:
'relationNo'
,
},
],
pathconfig
:
{
enableadd
:
false
,
enableedit
:
false
,
enabledelete
:
false
,
enabledetail
:
false
,
add
:
''
,
edit
:
''
,
list
:
'/sparepart/spareStockAccess/queryList'
,
delete
:
''
,
detail
:
''
,
},
};
}
export
default
getcolumns
;
This diff is collapsed.
Click to expand it.
src/pages/spare/record/index.jsx
View file @
49d9bb98
...
...
@@ -108,7 +108,7 @@ function Record(props) {
actionRef=
{
actionRef
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
// access: 'sysDepartment_save',
btn
:
{
...
...
This diff is collapsed.
Click to expand it.
src/pages/welcome/index.jsx
View file @
49d9bb98
...
...
@@ -98,7 +98,7 @@ function Welcome(props) {
columns=
{
columns
}
actionRef=
{
actionRef
}
pageextra=
{
'add'
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
// access: 'sysDepartment_save',
btn
:
{
...
...
This diff is collapsed.
Click to expand it.
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