Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
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
wms
Commits
2fadafaa
Commit
2fadafaa
authored
Jul 20, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重置表格设置
parent
9de05491
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
775 additions
and
60 deletions
+775
-60
routes.js
config/routes.js
+8
-3
mtable copy.jsx
src/components/AutoTable/mtable copy.jsx
+69
-31
mtable.jsx
src/components/AutoTable/mtable.jsx
+58
-25
fields.js
src/pages/system/Area/fields.js
+46
-0
fieldstore.js
src/pages/system/Area/fieldstore.js
+36
-0
index.jsx
src/pages/system/Area/index.jsx
+226
-0
store.js
src/pages/system/Area/store.js
+331
-0
fields.js
src/pages/system/Reservoir/fields.js
+0
-0
index.jsx
src/pages/system/Reservoir/index.jsx
+0
-0
detailTotalCard.js
src/utils/detailTotalCard.js
+1
-1
No files found.
config/routes.js
View file @
2fadafaa
...
...
@@ -217,9 +217,14 @@ export default [
component
:
'./platform/Custom'
,
},
{
path
:
'/store/reservoir'
,
name
:
'库区库位'
,
component
:
'./platform/Reservoir'
,
path
:
'/store/location'
,
name
:
'库位管理'
,
component
:
'./system/Reservoir'
,
},
{
path
:
'/store/area'
,
name
:
'库区管理'
,
component
:
'./system/Area'
,
},
{
component
:
"./404"
,
...
...
src/components/AutoTable/mtable copy.jsx
View file @
2fadafaa
...
...
@@ -350,37 +350,75 @@ class Mtable extends PureComponent {
columnsState=
{
{
value
:
this
.
state
.
valueColumns
,
onChange
:
(
val
,
state
)
=>
{
let
submitdata
=
{
...
this
.
state
.
valueColumns
,
...
val
,
};
this
.
setState
(
{
valueColumns
:
submitdata
,
},
(
state
)
=>
{
if
(
!
this
.
props
.
path
)
return
;
doFetch
({
url
:
"/ngic-base-business/paFieldScene/save"
,
params
:
{
sceneMark
:
extraparams
?
path
+
bodyParse
(
extraparams
)
:
activeTabKey
?
path
+
activeTabKey
:
path
,
controList
:
Object
.
keys
(
submitdata
).
map
((
it
)
=>
{
return
{
fieldKey
:
it
,
fieldWidth
:
submitdata
[
it
].
width
,
fieldOrder
:
submitdata
[
it
].
order
,
fieldFixed
:
submitdata
[
it
].
fixed
,
fieldShow
:
submitdata
[
it
].
show
,
};
}),
},
});
}
);
if
(
Object
.
keys
(
val
).
length
===
0
)
{
console
.
log
(
val
,
valueColumns
);
let
submitdata
=
{
...
s
,
...
this
.
state
.
valueColumns
,
};
let
controList
=
Object
.
keys
(
submitdata
).
map
((
it
,
i
)
=>
{
return
{
fieldKey
:
it
,
fieldWidth
:
submitdata
[
it
].
width
,
fieldOrder
:
i
,
fieldFixed
:
submitdata
[
it
].
fixed
,
fieldShow
:
true
,
};
});
this
.
setState
(
{
valueColumns
:
controList
,
},
(
s
)
=>
{
if
(
!
this
.
props
.
path
)
return
;
doFetch
({
url
:
"/ngic-base-business/paFieldScene/save"
,
params
:
{
sceneMark
:
extraparams
?
path
+
bodyParse
(
extraparams
)
:
activeTabKey
?
path
+
activeTabKey
:
path
,
controList
:
controList
,
},
});
}
);
}
else
{
let
submitdata
=
{
...
this
.
state
.
valueColumns
,
...
val
,
};
this
.
setState
(
{
valueColumns
:
submitdata
,
},
(
state
)
=>
{
if
(
!
this
.
props
.
path
)
return
;
doFetch
({
url
:
"/ngic-base-business/paFieldScene/save"
,
params
:
{
sceneMark
:
extraparams
?
path
+
bodyParse
(
extraparams
)
:
activeTabKey
?
path
+
activeTabKey
:
path
,
controList
:
Object
.
keys
(
submitdata
).
map
((
it
)
=>
{
return
{
fieldKey
:
it
,
fieldWidth
:
submitdata
[
it
].
width
,
fieldOrder
:
submitdata
[
it
].
order
,
fieldFixed
:
submitdata
[
it
].
fixed
,
fieldShow
:
submitdata
[
it
].
show
,
};
}),
},
});
}
);
}
},
}
}
scroll=
{
{
...
...
src/components/AutoTable/mtable.jsx
View file @
2fadafaa
...
...
@@ -263,32 +263,65 @@ const Mtable = (props) => {
columnsState=
{
{
value
:
valueColumns
,
onChange
:
(
val
,
state
)
=>
{
setvalueColumns
((
s
)
=>
{
let
submitdata
=
{
...
s
,
...
val
,
};
doFetch
({
url
:
"/ngic-base-business/paFieldScene/save"
,
params
:
{
sceneMark
:
extraparams
?
path
+
bodyParse
(
extraparams
)
:
activeTabKey
?
path
+
activeTabKey
:
path
,
controList
:
Object
.
keys
(
submitdata
).
map
((
it
)
=>
{
return
{
fieldKey
:
it
,
fieldWidth
:
submitdata
[
it
].
width
,
fieldOrder
:
submitdata
[
it
].
order
,
fieldFixed
:
submitdata
[
it
].
fixed
,
fieldShow
:
submitdata
[
it
].
show
,
};
}),
},
console
.
log
(
val
);
if
(
Object
.
keys
(
val
).
length
===
0
)
{
console
.
log
(
val
,
valueColumns
);
setvalueColumns
((
s
)
=>
{
let
submitdata
=
{
...
s
,
...
valueColumns
,
};
let
controList
=
Object
.
keys
(
submitdata
).
map
((
it
,
i
)
=>
{
return
{
fieldKey
:
it
,
fieldWidth
:
submitdata
[
it
].
width
,
fieldOrder
:
i
,
fieldFixed
:
submitdata
[
it
].
fixed
,
fieldShow
:
true
,
};
});
doFetch
({
url
:
"/ngic-base-business/paFieldScene/save"
,
params
:
{
sceneMark
:
extraparams
?
path
+
bodyParse
(
extraparams
)
:
activeTabKey
?
path
+
activeTabKey
:
path
,
controList
:
controList
,
},
});
return
controList
;
});
return
submitdata
;
});
}
else
{
setvalueColumns
((
s
)
=>
{
let
submitdata
=
{
...
s
,
...
val
,
};
doFetch
({
url
:
"/ngic-base-business/paFieldScene/save"
,
params
:
{
sceneMark
:
extraparams
?
path
+
bodyParse
(
extraparams
)
:
activeTabKey
?
path
+
activeTabKey
:
path
,
controList
:
Object
.
keys
(
submitdata
).
map
((
it
)
=>
{
return
{
fieldKey
:
it
,
fieldWidth
:
submitdata
[
it
].
width
,
fieldOrder
:
submitdata
[
it
].
order
,
fieldFixed
:
submitdata
[
it
].
fixed
,
fieldShow
:
submitdata
[
it
].
show
,
};
}),
},
});
return
submitdata
;
});
}
},
}
}
pagination=
{
...
...
src/pages/system/Area/fields.js
0 → 100644
View file @
2fadafaa
import
{
factorySelect
}
from
"@/services/system"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
export
default
{
"storeCode"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"仓库编号"
,
"name"
:
[
"storeCode"
],
"required"
:
false
},
"storeName"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"仓库名称"
,
"name"
:
[
"storeName"
],
"required"
:
true
},
"storeType"
:
{
"value"
:
null
,
"type"
:
"select"
,
"title"
:
"仓库类型"
,
"name"
:
[
"storeType"
],
"required"
:
true
,
"options"
:
{
database
:()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryStoreTypeSelect"
,
params
:{}}),
params
:{}
}
},
"factoryId"
:
{
"value"
:
null
,
"type"
:
"select"
,
"title"
:
"所属工厂"
,
"name"
:
[
"factoryId"
],
"required"
:
true
,
"options"
:
{
"database"
:
factorySelect
,
"params"
:
{},
},
}
};
src/pages/system/Area/fieldstore.js
0 → 100644
View file @
2fadafaa
import
{
doFetch
}
from
"@/utils/doFetch"
;
export
default
{
"storePositionName"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"库位名称"
,
"name"
:
[
"storePositionName"
],
"required"
:
true
},
"storeAreaCode"
:
{
"value"
:
null
,
"type"
:
"select"
,
"title"
:
"所属库区"
,
"name"
:
[
"storeAreaCode"
],
"required"
:
true
,
"options"
:
{
"database"
:()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryStorePositionSelect"
}),
"params"
:
{}
}
},
"description"
:
{
"value"
:
null
,
"type"
:
"textarea"
,
"title"
:
"描述"
,
"name"
:
[
"description"
],
"required"
:
false
,
col
:{
span
:
24
}
}
};
src/pages/system/Area/index.jsx
0 → 100644
View file @
2fadafaa
import
React
,
{
useEffect
,
useRef
,
useReducer
}
from
"react"
;
import
{
Button
,
Tooltip
,
Row
,
Divider
,
Drawer
}
from
"antd"
;
import
AutoTable
from
"@/components/AutoTable"
;
import
getPrem
from
"@/utils/getPrem"
;
//权限判断fn
import
{
useRequest
}
from
"umi"
;
import
defaultFields
from
"./fields"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
DrawInitForm
from
"@/components/DrawInitForm"
;
import
StoreApp
from
'./store'
const
initState
=
{
vs
:
false
,
fields
:
{},
iftype
:
{},
curitem
:
{},
detail
:
{
dataSource
:
{},
totalCard
:
[],
},
visible
:
false
,
},
otherBasic
=
{
productionLineName
:
"产线(加工中心)"
,
sectionName
:
"工段"
,
processLineName
:
"工艺路线"
,
groupName
:
"班组"
,
shiftName
:
"班次"
,
};
function
reducer
(
state
,
action
)
{
let
{
type
}
=
action
,
newState
=
{};
switch
(
type
)
{
case
"add"
:
newState
=
{
...
state
,
vs
:
true
,
iftype
:
{
title
:
"新增仓库"
,
val
:
type
,
},
fields
:
{
...
action
.
fields
},
};
break
;
case
"edit"
:
newState
=
{
...
state
,
vs
:
true
,
iftype
:
{
title
:
"编辑仓库"
,
val
:
type
,
},
fields
:
{
...
action
.
fields
},
curitem
:
action
.
curitem
,
};
break
;
case
"see"
:
newState
=
{
...
state
,
curitem
:
action
.
curitem
,
visible
:
true
,
};
break
;
case
"close"
:
newState
=
{
...
state
,
curitem
:
{},
vs
:
false
,
visible
:
false
,
};
break
;
}
return
newState
;
}
const
Store
=
(
props
)
=>
{
let
actionRef
=
useRef
(),
ChildRef
=
null
;
function
reload
()
{
actionRef
?.
current
?.
reload
();
ChildRef
?.
onRefresh
();
}
const
{
run
,
loading
}
=
useRequest
(
doFetch
,
{
manual
:
true
,
formatResult
:
(
res
)
=>
res
,
onSuccess
:
(
result
,
params
)
=>
{
if
(
result
.
code
==
"0000"
)
{
reload
();
dispatch
({
type
:
"close"
});
}
},
}),
[
state
,
dispatch
]
=
useReducer
(
reducer
,
initState
),
{
vs
,
fields
,
iftype
,
curitem
,
detail
,
visible
}
=
state
,
columns
=
[
{
"title"
:
"仓库编号"
,
"dataIndex"
:
"storeCode"
,
"key"
:
"storeCode"
},
{
"title"
:
"仓库名称"
,
"dataIndex"
:
"storeName"
,
"key"
:
"storeName"
},
{
"title"
:
"仓库类型"
,
"dataIndex"
:
"storeTypeName"
,
"key"
:
"storeType"
,
"valueType"
:
"select"
,
"options"
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryStoreTypeSelect"
,
params
:
{}
}),
params
:
{}
}
},
{
"title"
:
"工厂名"
,
"dataIndex"
:
"factoryName"
,
"key"
:
"factoryName"
},
{
title
:
"操作"
,
dataIndex
:
"option_dataindex"
,
key
:
"option_dataindex"
,
valueType
:
"option"
,
width
:
135
,
render
:
(
text
,
row
,
_
,
action
)
=>
extraAction
(
text
,
row
,
_
,
action
),
},
];
function
extraAction
(
text
,
record
,
_
,
action
)
{
return
[
getPrem
(
"sysDepartment_save"
,
action
,
"库位管理"
,
()
=>
{
dispatch
({
type
:
"see"
,
curitem
:
record
});
}),
getPrem
(
"sysDepartment_save"
,
action
,
"修改"
,
()
=>
{
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
record
[
i
];
}
dispatch
({
type
:
"edit"
,
fields
:
defaultFields
,
curitem
:
record
});
}),
getPrem
(
"sysDepartment_deleteById"
,
action
,
"删除"
,
null
,
{
title
:
"确认删除该仓库?"
,
onConfirm
:
()
=>
{
run
({
url
:
"/ngic-auth/sysStore/deleteById"
,
params
:
{
id
:
record
.
id
},
});
},
}),
];
}
let
saveData
=
(
values
,
fn
)
=>
{
let
newfields
=
JSON
.
parse
(
JSON
.
stringify
(
values
));
//新增&修改
let
difrid
=
iftype
.
val
==
"edit"
?
{
id
:
curitem
.
id
}
:
{};
run
({
url
:
"/ngic-auth/sysStore/save"
,
params
:
{
...
newfields
,
...
difrid
},
});
};
let
extrarender
=
[
<
Button
disabled=
{
!
getPrem
(
"sysDepartment_save"
,
"ifs"
)
}
type=
"primary"
onClick=
{
()
=>
{
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
null
;
defaultFields
[
i
].
disabled
=
false
;
}
dispatch
({
type
:
"add"
,
fields
:
defaultFields
});
}
}
>
新增
</
Button
>,
];
return
(
<
div
>
<
AutoTable
pagetitle=
{
props
.
route
.
name
}
//页面标题
pageextra=
{
extrarender
}
//页面操作 新增or批量删除
columns=
{
columns
}
path=
"/ngic-auth/sysStore/queryList"
actionRef=
{
actionRef
}
onRef=
{
(
node
)
=>
(
ChildRef
=
node
)
}
></
AutoTable
>
<
DrawInitForm
title=
{
iftype
.
title
}
visible=
{
vs
}
onClose=
{
()
=>
dispatch
({
type
:
"close"
})
}
footer=
{
false
}
destroyOnClose=
{
true
}
fields=
{
fields
}
submitData=
{
(
values
)
=>
{
saveData
(
values
);
}
}
onChange=
{
(
changedValues
,
allValues
)
=>
{
//联动操作
}
}
submitting=
{
loading
||
!
vs
}
width=
{
"60%"
}
>
</
DrawInitForm
>
<
Drawer
visible=
{
visible
}
onClose=
{
()
=>
dispatch
({
type
:
"close"
})
}
title=
"库位列表"
footer=
{
false
}
destroyOnClose=
{
true
}
width=
{
"100%"
}
getContainer=
{
false
}
style=
{
{
position
:
"absolute"
}
}
>
<
StoreApp
curitem=
{
curitem
}
></
StoreApp
>
</
Drawer
>
</
div
>
);
};
export
default
Store
;
src/pages/system/Area/store.js
0 → 100644
View file @
2fadafaa
import
React
,
{
useState
,
useRef
,
useReducer
}
from
"react"
;
import
{
Button
,
Tooltip
,
Row
,
Divider
}
from
"antd"
;
import
AutoTable
from
"@/components/Tableform"
;
import
getPrem
from
"@/utils/getPrem"
;
//权限判断fn
import
{
useRequest
}
from
"umi"
;
import
defaultFields
from
"./fieldstore"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
DrawInitForm
from
"@/components/DrawInitForm"
;
import
{
ProDescriptions
}
from
'@ant-design/pro-components'
;
import
JsBarcode
from
'jsbarcode'
import
{
useReactToPrint
}
from
'react-to-print'
;
import
PrintProvider
,
{
Print
,
NoPrint
}
from
'react-easy-print'
;
const
pageStyle
=
`
@media all {
.page-break {
display: none;
}
}
@media print {
html, body {
height: initial !important;
overflow: initial !important;
-webkit-print-color-adjust: exact;
}
}
@media print {
.page-break {
margin-top:0;
display: block;
page-break-before: auto;
}
}
@media print {
.page-noprint {
display: none !important;
}
}
@page {
size: auto;
margin: 0px;
}
`
;
const
initState
=
{
vs
:
false
,
fields
:
{},
iftype
:
{},
curitem
:
{},
detail
:
{
dataSource
:
{},
totalCard
:
[],
},
vs
:
false
,
};
function
reducer
(
state
,
action
)
{
let
{
type
}
=
action
,
newState
=
{};
switch
(
type
)
{
case
"add"
:
newState
=
{
...
state
,
vs
:
true
,
iftype
:
{
title
:
"新增库位"
,
val
:
type
,
},
fields
:
{
...
action
.
fields
},
};
break
;
case
"only"
:
newState
=
{
...
state
,
vs
:
true
,
iftype
:
{
title
:
"打印预览"
,
val
:
type
,
},
};
break
;
case
"edit"
:
newState
=
{
...
state
,
vs
:
true
,
iftype
:
{
title
:
"编辑库位"
,
val
:
type
,
},
fields
:
{
...
action
.
fields
},
curitem
:
action
.
curitem
,
};
break
;
case
"see"
:
newState
=
{
...
state
,
curitem
:
action
.
curitem
,
vs
:
true
,
};
break
;
case
"close"
:
newState
=
{
...
state
,
curitem
:
{},
vs
:
false
,
};
break
;
}
return
newState
;
}
const
StoreApp
=
(
props
)
=>
{
let
actionRef
=
useRef
(),
ChildRef
=
null
,
printRef
=
useRef
();
const
[
selectedRowKeys
,
setselectedRowKeys
]
=
useState
([]);
function
reload
()
{
actionRef
?.
current
?.
reload
();
ChildRef
?.
onRefresh
();
}
const
{
run
,
loading
}
=
useRequest
(
doFetch
,
{
manual
:
true
,
formatResult
:
(
res
)
=>
res
,
onSuccess
:
(
result
,
params
)
=>
{
if
(
result
.
code
==
"0000"
)
{
reload
();
dispatch
({
type
:
"close"
});
}
},
}),
[
state
,
dispatch
]
=
useReducer
(
reducer
,
initState
),
{
vs
,
fields
,
iftype
,
curitem
}
=
state
,
columns
=
[
{
"title"
:
"库位名称"
,
"dataIndex"
:
"storePositionName"
,
"key"
:
"storePositionName"
},
{
"title"
:
"所属库区"
,
"dataIndex"
:
"storeAreaName"
,
"key"
:
"storeAreaName"
,
"valueType"
:
"select"
,
"options"
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryStorePositionSelect"
}),
params
:
{}
}
},
{
"title"
:
"描述"
,
"dataIndex"
:
"description"
,
"key"
:
"description"
,
"search"
:
false
},
{
title
:
"操作"
,
dataIndex
:
"option_dataindex"
,
key
:
"option_dataindex"
,
valueType
:
"option"
,
width
:
135
,
render
:
(
text
,
row
,
_
,
action
)
=>
extraAction
(
text
,
row
,
_
,
action
),
},
];
function
extraAction
(
text
,
record
,
_
,
action
)
{
return
[
getPrem
(
"sysDepartment_save"
,
action
,
"修改"
,
()
=>
{
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
record
[
i
];
}
dispatch
({
type
:
"edit"
,
fields
:
defaultFields
,
curitem
:
record
});
}),
getPrem
(
"sysDepartment_deleteById"
,
action
,
"删除"
,
null
,
{
title
:
"确认删除该库位?"
,
onConfirm
:
()
=>
{
run
({
url
:
"/ngic-auth/sysStorePosition/deleteById"
,
params
:
{
id
:
record
.
id
},
});
},
}),
];
}
let
saveData
=
(
values
,
fn
)
=>
{
let
newfields
=
JSON
.
parse
(
JSON
.
stringify
(
values
));
//新增&修改
let
difrid
=
iftype
.
val
==
"edit"
?
{
id
:
curitem
.
id
,
storeId
:
props
?.
curitem
?.
id
}
:
{
storeId
:
props
?.
curitem
?.
id
};
run
({
url
:
"/ngic-auth/sysStorePosition/save"
,
params
:
{
...
newfields
,
...
difrid
},
});
};
let
print
=
selectedRowKeys
.
length
>
0
?
[
<
Button
disabled
=
{
!
getPrem
(
"sysDepartment_save"
,
"ifs"
)}
type
=
"danger"
style
=
{{
marginLeft
:
12
}}
onClick
=
{
async
()
=>
{
await
dispatch
({
type
:
"only"
});
setTimeout
(
async
()
=>
{
await
Promise
.
all
(
selectedRowKeys
.
map
(
async
(
it
)
=>
{
await
JsBarcode
(
"#s"
+
it
.
id
,
it
.
id
,
{
width
:
4
,
height
:
200
,
fontSize
:
36
,
});
}))
},
600
)
}}
>
打印
<
/Button
>
]
:
[]
const
handlePrint
=
useReactToPrint
({
content
:
()
=>
printRef
.
current
,
});
let
extrarender
=
[
<
Button
disabled
=
{
!
getPrem
(
"sysDepartment_save"
,
"ifs"
)}
type
=
"primary"
onClick
=
{()
=>
{
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
null
;
defaultFields
[
i
].
disabled
=
false
;
}
dispatch
({
type
:
"add"
,
fields
:
defaultFields
});
}}
>
新增
<
/Button>
,
...
print
];
return
(
<
div
>
<
ProDescriptions
columns
=
{[
{
"title"
:
"仓库编号"
,
"dataIndex"
:
"storeCode"
,
"key"
:
"storeCode"
},
{
"title"
:
"仓库名称"
,
"dataIndex"
:
"storeName"
,
"key"
:
"storeName"
},
{
"title"
:
"仓库类型"
,
"dataIndex"
:
"storeTypeName"
,
"key"
:
"storeTypeName"
,
},
{
"title"
:
"工厂名"
,
"dataIndex"
:
"factoryName"
,
"key"
:
"factoryName"
}]}
dataSource
=
{
props
.
curitem
}
column
=
{
4
}
/
>
<
AutoTable
pagetitle
=
{
"库位管理"
}
//页面标题
pageextra
=
{
extrarender
}
//页面操作 新增or批量删除
columns
=
{
columns
}
path
=
"/ngic-auth/sysStorePosition/queryList"
actionRef
=
{
actionRef
}
onRef
=
{(
node
)
=>
(
ChildRef
=
node
)}
extraparams
=
{{
storeId
:
props
?.
curitem
?.
id
??
"0"
}}
rowSelection
=
{{
onChange
:
(
selectedRowKeys
,
selectedRows
)
=>
{
setselectedRowKeys
(
selectedRows
)
},
}}
><
/AutoTable
>
<
DrawInitForm
visible
=
{
false
}
title
=
{
iftype
?.
title
}
visible
=
{
vs
}
onClose
=
{()
=>
dispatch
({
type
:
"close"
})}
footer
=
{
false
}
destroyOnClose
=
{
true
}
fields
=
{
fields
}
submitData
=
{(
values
)
=>
{
saveData
(
values
);
}}
onChange
=
{(
changedValues
,
allValues
)
=>
{
//联动操作
}}
submitting
=
{
loading
||
!
vs
}
width
=
{
"60%"
}
val
=
{
iftype
.
val
}
width
=
{
iftype
.
val
==
"only"
?
690
:
600
}
extra
=
{
iftype
.
val
==
"only"
?
<
Button
onClick
=
{
handlePrint
}
>
打印
<
/Button> : null
}
>
<
PrintProvider
>
<
style
type
=
"text/css"
media
=
"print"
>
{
pageStyle
}
<
/style
>
<
div
ref
=
{
printRef
}
>
{
selectedRowKeys
.
map
((
it
,
i
)
=>
{
return
<
div
key
=
{
i
}
>
<
NoPrint
>
<
span
className
=
"page-noprint"
>
{
it
.
storePositionName
}
<
/span
>
<
/NoPrint
>
<
svg
id
=
{
"s"
+
it
.
id
}
/
>
<
span
className
=
"page-break"
><
/span
>
<
/div
>
})
}
<
/div
>
<
/PrintProvider
>
<
/DrawInitForm
>
<
/div
>
);
};
export
default
StoreApp
;
src/pages/
platfor
m/Reservoir/fields.js
→
src/pages/
syste
m/Reservoir/fields.js
View file @
2fadafaa
File moved
src/pages/
platfor
m/Reservoir/index.jsx
→
src/pages/
syste
m/Reservoir/index.jsx
View file @
2fadafaa
File moved
src/utils/detailTotalCard.js
View file @
2fadafaa
...
...
@@ -253,7 +253,7 @@ const userDetails = [
},
{
title
:
"备注"
,
key
:
"remark
s
"
,
key
:
"remark"
,
col
:
{
span
:
24
},
},
],
...
...
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