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
76e4563b
Commit
76e4563b
authored
Jul 25, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认库区
parent
14d5c9ff
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
85 additions
and
60 deletions
+85
-60
index.jsx
src/components/InitForm/index.jsx
+2
-1
fields.js
src/pages/craft/Materiel/fields.js
+2
-0
index.jsx
src/pages/craft/Materiel/index.jsx
+7
-1
index.jsx
src/pages/system/Area/index.jsx
+5
-5
fields.js
src/pages/system/Reservoir/fields.js
+3
-1
index.jsx
src/pages/system/Reservoir/index.jsx
+34
-25
fields.js
src/pages/system/Station/fields.js
+2
-2
index.jsx
src/pages/system/Station/index.jsx
+30
-25
No files found.
src/components/InitForm/index.jsx
View file @
76e4563b
...
...
@@ -102,7 +102,8 @@ function formartData(item, val) {
)
:
[];
}
else
if
(
item
.
type
==
"select"
||
item
.
type
==
"treeselect"
)
{
formartValue
=
val
==
0
||
val
?
val
:
item
.
multiple
?
[]
:
""
;
formartValue
=
val
==
0
||
val
?
val
:
item
.
multiple
?
[]
:
null
;
console
.
log
(
formartValue
);
}
else
if
(
item
.
type
==
"input"
||
!
item
.
type
)
{
formartValue
=
val
?
val
?.
replace
(
/^
\s
+|
\s
+$/g
,
""
)
:
""
;
}
...
...
src/pages/craft/Materiel/fields.js
View file @
76e4563b
...
...
@@ -89,6 +89,7 @@ export default {
value
:
0
,
type
:
"inputnumber"
,
title
:
"铁损"
,
max
:
999999
,
name
:
[
"ironLoss"
],
required
:
false
,
precision
:
3
,
...
...
@@ -97,6 +98,7 @@ export default {
value
:
0
,
type
:
"inputnumber"
,
title
:
"片厚"
,
max
:
999999
,
name
:
[
"sheetThickness"
],
required
:
false
,
precision
:
3
,
...
...
src/pages/craft/Materiel/index.jsx
View file @
76e4563b
...
...
@@ -264,6 +264,7 @@ const Materiel = (props) => {
title
:
"默认库区"
,
dataIndex
:
"storeAreaName"
,
key
:
"storeAreaName"
,
search
:
false
},
{
...
...
@@ -365,11 +366,16 @@ const Materiel = (props) => {
formRef
.
validateFields
()
.
then
((
firstValues
)
=>
{
console
.
log
(
"1231231"
,
firstValues
);
for
(
let
i
in
firstValues
)
{
if
(
firstValues
[
i
]
===
undefined
)
{
firstValues
[
i
]
=
null
;
}
}
params
=
{
...
firstValues
,
...
difrid
,
};
console
.
log
(
params
);
url
=
"/ngic-workmanship/pmMaterie/save"
;
run
({
url
,
params
});
})
...
...
src/pages/system/Area/index.jsx
View file @
76e4563b
...
...
@@ -106,11 +106,11 @@ const Store = (props) => {
"title"
:
"所属仓库"
,
"dataIndex"
:
"storeName"
,
"key"
:
"storeName"
,
"valueType"
:
"select"
,
"options"
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryStoreTypeSelect"
,
params
:
{}
}),
params
:
{}
}
//
"valueType": "select",
//
"options": {
//
database: () => doFetch({ url: "/ngic-base-business/sysDic/queryStoreTypeSelect", params: {} }),
//
params: {}
//
}
},
{
"title"
:
"描述"
,
...
...
src/pages/system/Reservoir/fields.js
View file @
76e4563b
...
...
@@ -82,9 +82,11 @@ export default {
},
],
},
/* `isMovePosition` 是对象中表示表单字段的属性。它的类型为“radio”,这意味着它将在表单中呈现为单选按钮组。用户可以选择“是”(是)或“否”(否)作为该字段的值。 */
/* `isMovePosition` 是对象中表示表单字段的属性。它的类型为“radio”,这意味着它将在表单中呈现为单选按钮组。用户可以选择“是”(是)或“否”(否)作为该字段的值。 */
isMovePosition
:
{
value
:
1
,
type
:
"
radio
"
,
type
:
"
select
"
,
name
:
[
"isMovePosition"
],
title
:
"是否为移库库位"
,
required
:
false
,
...
...
src/pages/system/Reservoir/index.jsx
View file @
76e4563b
...
...
@@ -226,26 +226,26 @@ const Materiel = (props) => {
title
:
"所属仓库"
,
dataIndex
:
"storeName"
,
key
:
"storeName"
,
valueType
:
"select"
,
options
:
{
database
:
storeselectionBoxAll
,
},
//
valueType: "select",
//
options: {
//
database: storeselectionBoxAll,
//
},
},
{
title
:
"所属库区"
,
dataIndex
:
"storeAreaName"
,
key
:
"storeAreaName"
,
options
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieControlSelect"
,
}),
params
:
{},
},
valueType
:
"select"
,
formItemProps
:
{
name
:
"materieControl"
,
},
//
options: {
//
database: () =>
//
doFetch({
//
url: "/ngic-base-business/sysDic/queryMaterieControlSelect",
//
}),
//
params: {},
//
},
//
valueType: "select",
//
formItemProps: {
//
name: "materieControl",
//
},
},
{
title
:
"排"
,
...
...
@@ -278,26 +278,31 @@ const Materiel = (props) => {
title
:
"更新人"
,
dataIndex
:
"updateUserName"
,
key
:
"updateUserName"
,
search
:
false
,
},
{
title
:
"更新时间"
,
dataIndex
:
"updateTime"
,
key
:
"updateTime"
,
search
:
false
search
:
false
,
},
{
title
:
"是否为移库仓位"
,
dataIndex
:
"isMovePosition"
,
key
:
"isMovePosition"
,
valueType
:
'select'
,
options
:
[{
value
:
'1'
,
label
:
'是'
},
{
value
:
'2'
,
label
:
'否'
}],
valueType
:
"select"
,
search
:
false
,
options
:
[
{
value
:
"1"
,
label
:
"是"
,
},
{
value
:
"2"
,
label
:
"否"
,
},
],
render
:
(
_
,
row
)
=>
{
return
row
?.
isMovePosition
?
"是"
:
"否"
;
},
...
...
@@ -415,7 +420,11 @@ const Materiel = (props) => {
conversionRate
:
it
.
conversionRate
,
};
});
for
(
let
i
in
firstValues
)
{
if
(
firstValues
[
i
]
===
undefined
)
{
firstValues
[
i
]
=
null
;
}
}
params
=
{
...
firstValues
,
...
difrid
,
...
...
src/pages/system/Station/fields.js
View file @
76e4563b
...
...
@@ -37,14 +37,14 @@ export default {
type
:
"select"
,
title
:
"启用状态"
,
name
:
[
"status"
],
required
:
fals
e
,
required
:
tru
e
,
options
:
[
{
label
:
"启用"
,
value
:
1
,
},
{
label
:
"
停
用"
,
label
:
"
禁
用"
,
value
:
0
,
},
],
...
...
src/pages/system/Station/index.jsx
View file @
76e4563b
...
...
@@ -104,37 +104,38 @@ const Station = (props) => {
title
:
"工位名称"
,
dataIndex
:
"stationName"
,
key
:
"stationName"
,
render
:
(
_
,
row
)
=>
{
return
(
<
Tooltip
title=
{
row
.
stationName
}
>
<
a
className=
"table-cell"
onClick=
{
()
=>
{
doFetch
({
url
:
"/ngic-auth/sysStation/queryById"
,
params
:
{
id
:
row
.
id
},
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"0000"
)
{
let
dataSource
=
res
?.
data
?.
data
??
{};
dispatch
({
type
:
"see"
,
dataSource
});
}
});
}
}
>
{
row
.
stationName
}
</
a
>
</
Tooltip
>
);
},
//
render: (_, row) => {
//
return (
//
<Tooltip title={row.stationName}>
//
<a
//
className="table-cell"
//
onClick={() => {
//
doFetch({
//
url: "/ngic-auth/sysStation/queryById",
//
params: { id: row.id },
//
}).then((res) => {
//
if (res.code == "0000") {
//
let dataSource = res?.data?.data ?? {};
//
dispatch({ type: "see", dataSource });
//
}
//
});
//
}}
//
>
//
{row.stationName}
//
</a>
//
</Tooltip>
//
);
//
},
},
{
title
:
"启用状态"
,
dataIndex
:
"factoryName"
,
key
:
"factoryName"
,
search
:
false
,
required
:
true
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
return
row
?.
status
?
'启用'
:
'禁用'
}
return
row
?.
status
?
"启用"
:
"禁用"
;
}
,
},
{
title
:
"描述"
,
...
...
@@ -192,6 +193,7 @@ const Station = (props) => {
}
let
saveData
=
(
values
,
fn
)
=>
{
let
newfields
=
JSON
.
parse
(
JSON
.
stringify
(
values
));
//新增&修改
let
difrid
=
iftype
.
val
==
"edit"
?
{
id
:
curitem
.
id
}
:
{};
run
({
...
...
@@ -207,6 +209,9 @@ const Station = (props) => {
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
null
;
defaultFields
[
i
].
disabled
=
false
;
if
(
i
==
"status"
)
{
defaultFields
[
i
].
value
=
1
;
}
}
dispatch
({
type
:
"add"
,
fields
:
defaultFields
});
}
}
...
...
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