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
be8eed64
Commit
be8eed64
authored
Jul 21, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
a4479aff
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
716 additions
and
625 deletions
+716
-625
index.jsx
src/components/InitForm/index.jsx
+11
-4
Welcome.jsx
src/pages/Welcome.jsx
+2
-2
fields.js
src/pages/craft/Materiel/fields.js
+96
-93
index.jsx
src/pages/craft/Materiel/index.jsx
+25
-69
Index.jsx
src/pages/schedule/Shiftgroup/Index.jsx
+4
-4
index.jsx
src/pages/system/Area/index.jsx
+2
-2
fields.js
src/pages/system/Reservoir/fields.js
+121
-169
index.jsx
src/pages/system/Reservoir/index.jsx
+451
-279
index.jsx
src/pages/system/Store/index.jsx
+1
-0
detailTotalCard.js
src/utils/detailTotalCard.js
+3
-3
No files found.
src/components/InitForm/index.jsx
View file @
be8eed64
...
@@ -17,6 +17,7 @@ import {
...
@@ -17,6 +17,7 @@ import {
Cascader
,
Cascader
,
ConfigProvider
,
ConfigProvider
,
Rate
,
Rate
,
Divider
,
}
from
"antd"
;
}
from
"antd"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
React
,
{
useEffect
,
useMemo
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useMemo
,
useState
}
from
"react"
;
...
@@ -141,7 +142,6 @@ let InitForm = ({
...
@@ -141,7 +142,6 @@ let InitForm = ({
[
ind
,
cind
]
=
useState
(
0
);
[
ind
,
cind
]
=
useState
(
0
);
form
=
formRef
?
formRef
:
form
;
form
=
formRef
?
formRef
:
form
;
useEffect
(()
=>
{
useEffect
(()
=>
{
let
Doms
=
[],
let
Doms
=
[],
klink
=
{},
klink
=
{},
...
@@ -378,7 +378,7 @@ let InitForm = ({
...
@@ -378,7 +378,7 @@ let InitForm = ({
);
);
let
getOptions
=
async
(
options
,
item
)
=>
{
let
getOptions
=
async
(
options
,
item
)
=>
{
let
curkey
=
item
.
name
[
0
];
let
curkey
=
item
?
.
name
[
0
];
if
(
Array
.
isArray
(
options
))
{
if
(
Array
.
isArray
(
options
))
{
if
(
JSON
.
stringify
(
optiondom
[
curkey
])
!==
JSON
.
stringify
(
options
))
{
if
(
JSON
.
stringify
(
optiondom
[
curkey
])
!==
JSON
.
stringify
(
options
))
{
cdom
((
optiondom
)
=>
{
cdom
((
optiondom
)
=>
{
...
@@ -627,8 +627,9 @@ let InitForm = ({
...
@@ -627,8 +627,9 @@ let InitForm = ({
},
},
item
.
name
[
0
].
indexOf
(
"phone"
)
!=
-
1
item
.
name
[
0
].
indexOf
(
"phone"
)
!=
-
1
?
{
?
{
pattern
:
/^
(((\d
{3,4}-
)?[
0-9
]
{7,8}
)
|
(
1
(
3|4|5|6|7|8|9
)\d
{9}
))
$/
,
pattern
:
message
:
item
.
title
+
"格式不正确"
,
/^
(((\d
{3,4}-
)?[
0-9
]
{7,8}
)
|
(
1
(
3|4|5|6|7|8|9
)\d
{9}
))
$/
,
message
:
item
.
title
+
"格式不正确"
,
}
}
:
item
.
name
[
0
].
indexOf
(
"mail"
)
!=
-
1
:
item
.
name
[
0
].
indexOf
(
"mail"
)
!=
-
1
?
{
?
{
...
@@ -1244,6 +1245,12 @@ let InitForm = ({
...
@@ -1244,6 +1245,12 @@ let InitForm = ({
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
)
:
null
;
)
:
null
;
}
else
if
(
item
.
type
==
"split"
)
{
return
!
extraprops
.
hides
?
(
<
Col
key=
{
i
}
{
...
getCol
(
item
.
col
)}
>
<
Divider
orientation=
"left"
style=
{
{
fontWeight
:
600
,
fontSize
:
14
}
}
>
{
item
.
title
}
</
Divider
>
</
Col
>
)
:
null
;
}
}
})
}
})
}
{
bottomNode
&&
<
Col
span=
{
24
}
>
{
bottomNode
}
</
Col
>
}
{
bottomNode
&&
<
Col
span=
{
24
}
>
{
bottomNode
}
</
Col
>
}
...
...
src/pages/Welcome.jsx
View file @
be8eed64
...
@@ -85,8 +85,8 @@ function Table({ route }) {
...
@@ -85,8 +85,8 @@ function Table({ route }) {
},
},
{
{
"title": "角色",
"title": "角色",
"dataIndex": "roleName
s
",
"dataIndex": "roleName",
"key": "roleName
s
"
"key": "roleName"
},
},
{
{
"title": "直属领导",
"title": "直属领导",
...
...
src/pages/craft/Materiel/fields.js
View file @
be8eed64
...
@@ -8,10 +8,16 @@ import {
...
@@ -8,10 +8,16 @@ import {
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
export
default
{
export
default
{
jbsx
:
{
title
:
"基本属性"
,
type
:
"split"
,
col
:
{
span
:
24
},
name
:
[
"jbsx"
],
},
materieCode
:
{
materieCode
:
{
value
:
null
,
value
:
null
,
type
:
"input"
,
type
:
"input"
,
title
:
"物料编
号
"
,
title
:
"物料编
码
"
,
name
:
[
"materieCode"
],
name
:
[
"materieCode"
],
required
:
true
,
required
:
true
,
},
},
...
@@ -25,12 +31,16 @@ export default {
...
@@ -25,12 +31,16 @@ export default {
materieTypeId
:
{
materieTypeId
:
{
value
:
null
,
value
:
null
,
type
:
"treeselect"
,
type
:
"treeselect"
,
title
:
"物料类
别
"
,
title
:
"物料类
型
"
,
name
:
[
"materieTypeId"
],
name
:
[
"materieTypeId"
],
required
:
true
,
required
:
true
,
options
:
{
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-workmanship/pmMaterieType/queryTreeList"
,
params
}),
database
:
(
params
)
=>
params
:
{}
doFetch
({
url
:
"/ngic-workmanship/pmMaterieType/queryTreeList"
,
params
,
}),
params
:
{},
},
},
},
},
materieControl
:
{
materieControl
:
{
...
@@ -40,24 +50,75 @@ export default {
...
@@ -40,24 +50,75 @@ export default {
name
:
[
"materieControl"
],
name
:
[
"materieControl"
],
required
:
true
,
required
:
true
,
options
:
{
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieControlSelect"
,
params
}),
database
:
(
params
)
=>
params
:
{}
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieControlSelect"
,
params
,
}),
params
:
{},
},
},
},
},
inventoryMin
:
{
specificationModel
:
{
value
:
null
,
type
:
"input"
,
title
:
"规格型号"
,
name
:
[
"specificationModel"
],
required
:
true
,
},
issueType
:
{
type
:
"select"
,
title
:
"发料类型"
,
name
:
[
"issueType"
],
required
:
true
,
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieTypeSelect"
,
params
,
}),
params
:
{},
},
},
scsx
:
{
title
:
"生产属性"
,
type
:
"split"
,
col
:
{
span
:
24
},
name
:
[
"scsx"
],
},
ironLoss
:
{
value
:
null
,
type
:
"inputnumber"
,
title
:
"铁损"
,
name
:
[
"ironLoss"
],
required
:
false
,
},
sheetThickness
:
{
value
:
null
,
type
:
"inputnumber"
,
title
:
"片厚"
,
name
:
[
"sheetThickness"
],
required
:
false
,
},
unilateralThickness
:
{
value
:
null
,
value
:
null
,
type
:
"inputnumber"
,
type
:
"inputnumber"
,
title
:
"
库存下限
"
,
title
:
"
宽度
"
,
name
:
[
"
inventoryMin
"
],
name
:
[
"
unilateralThickness
"
],
required
:
false
,
required
:
false
,
},
},
inventoryMax
:
{
shopSign
:
{
value
:
null
,
value
:
null
,
type
:
"inputnumber"
,
type
:
"inputnumber"
,
title
:
"
库存上限
"
,
title
:
"
牌号
"
,
name
:
[
"
inventoryMax
"
],
name
:
[
"
shopSign
"
],
required
:
false
,
required
:
false
,
},
},
cksx
:
{
title
:
"仓库属性"
,
type
:
"split"
,
name
:
[
"cksx"
],
col
:
{
span
:
24
},
},
productionUnit
:
{
productionUnit
:
{
value
:
null
,
value
:
null
,
type
:
"select"
,
type
:
"select"
,
...
@@ -65,94 +126,36 @@ export default {
...
@@ -65,94 +126,36 @@ export default {
name
:
[
"productionUnit"
],
name
:
[
"productionUnit"
],
required
:
true
,
required
:
true
,
options
:
{
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieUnitSelect"
,
params
}),
database
:
(
params
)
=>
params
:
{}
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieUnitSelect"
,
params
,
}),
params
:
{},
},
},
},
},
qualityGuaranteePerio
d
:
{
storeI
d
:
{
value
:
null
,
value
:
null
,
type
:
"
inputnumber
"
,
type
:
"
select
"
,
title
:
"
保质期
"
,
title
:
"
默认仓库
"
,
name
:
[
"
qualityGuaranteePerio
d"
],
name
:
[
"
storeI
d"
],
required
:
false
,
required
:
false
,
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBoxAll"
,
params
}),
params
:
{},
},
},
},
qualityGuaranteePeriodUnit
:
{
storeAreaId
:
{
value
:
null
,
value
:
null
,
type
:
"select"
,
type
:
"select"
,
title
:
"保质期单位"
,
title
:
"默认库区"
,
name
:
[
"qualityGuaranteePeriodUnit"
],
name
:
[
"storeAreaId"
],
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-auth/sysStoreArea/selection"
,
params
}),
params
:
{},
},
required
:
false
,
required
:
false
,
options
:
[
{
label
:
"天"
,
value
:
1
,
},
{
label
:
"月"
,
value
:
2
,
},
{
label
:
"年"
,
value
:
3
,
}
],
},
},
issueType
:
{
value
:
1
,
type
:
"radio"
,
title
:
"发料类型"
,
name
:
[
"issueType"
],
required
:
true
,
options
:
[
{
label
:
"散发"
,
value
:
1
,
},
{
label
:
"整发"
,
value
:
2
,
}
],
},
materieProductUnitList
:
{
value
:
[],
title
:
"转换单位"
,
type
:
"table"
,
col
:
{
span
:
24
},
name
:
[
"materieProductUnitList"
],
required
:
false
,
columns
:
[
{
title
:
"辅助单位"
,
dataIndex
:
"productionUnit"
,
key
:
"productionUnit"
,
search
:
false
,
valueType
:
"select"
,
request
:
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieUnitSelect"
,
params
:{}})
return
res
?.
data
?.
dataList
},
},
{
title
:
"转换比 库存单位=辅助单位*转换比”"
,
dataIndex
:
"conversionRate"
,
key
:
"conversionRate"
,
search
:
false
,
valueType
:
"digit"
,
width
:
200
},
{
title
:
"操作"
,
valueType
:
"option"
,
width
:
70
,
render
:
(
text
,
record
,
_
,
action
)
=>
[
<
a
key
=
"delete"
onClick
=
{()
=>
{
}}
>
删除
<
/a>
,
],
},
],
rowKey
:
"id"
,
},
};
};
src/pages/craft/Materiel/index.jsx
View file @
be8eed64
...
@@ -167,7 +167,7 @@ const Materiel = (props) => {
...
@@ -167,7 +167,7 @@ const Materiel = (props) => {
}
=
state
,
}
=
state
,
columns
=
[
columns
=
[
{
{
title
:
"物料编
号
"
,
title
:
"物料编
码
"
,
dataIndex
:
"materieCode"
,
dataIndex
:
"materieCode"
,
key
:
"materieCode"
,
key
:
"materieCode"
,
},
},
...
@@ -228,7 +228,7 @@ const Materiel = (props) => {
...
@@ -228,7 +228,7 @@ const Materiel = (props) => {
search
:
false
,
search
:
false
,
},
},
{
{
title
:
"
物料管控
"
,
title
:
"
管控方式
"
,
dataIndex
:
"materieControlName"
,
dataIndex
:
"materieControlName"
,
key
:
"materieControlName"
,
key
:
"materieControlName"
,
options
:
{
options
:
{
...
@@ -244,43 +244,32 @@ const Materiel = (props) => {
...
@@ -244,43 +244,32 @@ const Materiel = (props) => {
},
},
},
},
{
{
title
:
"保质期"
,
title
:
"铁损"
,
dataIndex
:
"qualityGuaranteePeriod"
,
dataIndex
:
"ironLoss"
,
key
:
"qualityGuaranteePeriod"
,
key
:
"ironLoss"
,
search
:
false
,
valueType
:
"digit"
,
render
:
(
text
,
row
)
=>
{
return
(
(
row
.
qualityGuaranteePeriod
??
""
)
+
" - "
+
(
row
.
qualityGuaranteePeriodUnitName
??
""
)
);
},
},
},
{
{
title
:
"
库存上限
"
,
title
:
"
片厚
"
,
dataIndex
:
"
inventoryMax
"
,
dataIndex
:
"
sheetThickness
"
,
key
:
"inventoryMax
"
,
valueType
:
"digit
"
,
search
:
false
,
key
:
"sheetThickness"
,
},
},
{
{
title
:
"库存下限"
,
title
:
"宽度"
,
dataIndex
:
"inventoryMin"
,
dataIndex
:
"unilateralThickness"
,
key
:
"inventoryMin"
,
key
:
"unilateralThickness"
,
search
:
false
,
},
{
title
:
"牌号"
,
dataIndex
:
"shopSign"
,
key
:
"shopSign"
,
},
},
{
{
title
:
"库存单位"
,
title
:
"默认库区"
,
dataIndex
:
"productionUnitName"
,
dataIndex
:
"storeAreaName"
,
key
:
"productionUnit"
,
key
:
"storeAreaName"
,
options
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-base-business/sysDic/queryMaterieUnitSelect"
,
}),
params
:
{},
},
valueType
:
"select"
,
},
},
{
{
...
@@ -305,7 +294,7 @@ const Materiel = (props) => {
...
@@ -305,7 +294,7 @@ const Materiel = (props) => {
return
[
return
[
getPrem
(
"sysDepartment_save"
,
action
,
"修改"
,
()
=>
{
getPrem
(
"sysDepartment_save"
,
action
,
"修改"
,
()
=>
{
doFetch
({
doFetch
({
url
:
"/ngic-workmanship/pmMaterie/query
Update
ById"
,
url
:
"/ngic-workmanship/pmMaterie/queryById"
,
params
:
{
id
:
record
.
id
},
params
:
{
id
:
record
.
id
},
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"0000"
)
{
if
(
res
.
code
==
"0000"
)
{
...
@@ -386,27 +375,6 @@ const Materiel = (props) => {
...
@@ -386,27 +375,6 @@ const Materiel = (props) => {
.
validateFields
()
.
validateFields
()
.
then
((
secondFields
)
=>
{
.
then
((
secondFields
)
=>
{
let
secondFieldsKeys
=
Object
.
keys
(
secondFields
);
let
secondFieldsKeys
=
Object
.
keys
(
secondFields
);
let
materieCharList
=
defaultSpecificFileds
.
map
((
it
)
=>
{
if
(
secondFieldsKeys
.
indexOf
(
it
.
fieldsKey
)
!=
-
1
)
{
it
.
fieldRealValue
=
secondFields
[
it
.
fieldsKey
];
}
const
el
=
{
fieldType
:
it
.
fieldType
,
fieldTypeName
:
it
.
fieldTypeName
,
fieldCondName
:
it
.
fieldCondName
,
fieldCondKey
:
it
.
fieldCondKey
,
optCondName
:
it
.
optCondName
,
optCondKey
:
it
.
optCondKey
,
fieldId
:
it
.
fieldId
,
fieldName
:
it
.
fieldName
,
fieldChar
:
it
.
fieldChar
,
fieldCharName
:
it
.
fieldCharName
,
fieldCharValue
:
it
.
fieldCharValue
,
fieldRealValue
:
it
.
fieldRealValue
,
valueList
:
it
.
valueList
,
};
return
el
;
});
let
materieProductUnitList
=
let
materieProductUnitList
=
firstValues
?.
materieProductUnitList
?.
map
((
it
)
=>
{
firstValues
?.
materieProductUnitList
?.
map
((
it
)
=>
{
return
{
return
{
...
@@ -417,7 +385,6 @@ const Materiel = (props) => {
...
@@ -417,7 +385,6 @@ const Materiel = (props) => {
params
=
{
params
=
{
...
firstValues
,
...
firstValues
,
materieCharList
,
...
difrid
,
...
difrid
,
materieProductUnitList
,
materieProductUnitList
,
};
};
...
@@ -473,9 +440,9 @@ const Materiel = (props) => {
...
@@ -473,9 +440,9 @@ const Materiel = (props) => {
)
{
)
{
defaultFields
[
i
].
required
=
false
;
defaultFields
[
i
].
required
=
false
;
}
}
if
(
i
==
"issueType"
)
{
//
if (i == "issueType")
{
defaultFields
[
i
].
value
=
1
;
//
defaultFields[i].value = 1;
}
//
}
if
(
i
==
"materieTypeId"
)
{
if
(
i
==
"materieTypeId"
)
{
defaultFields
[
i
].
value
=
defaultFields
[
i
].
value
=
materieTypeId
==
"00000000"
?
null
:
materieTypeId
;
materieTypeId
==
"00000000"
?
null
:
materieTypeId
;
...
@@ -587,17 +554,6 @@ const Materiel = (props) => {
...
@@ -587,17 +554,6 @@ const Materiel = (props) => {
return
null
;
return
null
;
}
}
}
}
></
InitForm
>
></
InitForm
>
<
div
style=
{
{
fontSize
:
16
,
fontWeight
:
"bold"
,
marginBottom
:
15
}
}
>
特定属性
</
div
>
<
InitForm
formRef=
{
formRefs
}
fields=
{
specificFileds
}
onChange=
{
(
changedValues
,
allValues
)
=>
{}
}
actions=
{
()
=>
{
return
null
;
}
}
></
InitForm
>
</>
</>
}
}
<
Button
<
Button
...
...
src/pages/schedule/Shiftgroup/Index.jsx
View file @
be8eed64
...
@@ -192,8 +192,8 @@ const Shiftgroup = (props) => {
...
@@ -192,8 +192,8 @@ const Shiftgroup = (props) => {
},
},
{
{
title
:
"角色"
,
title
:
"角色"
,
dataIndex
:
"roleName
s
"
,
dataIndex
:
"roleName"
,
key
:
"roleName
s
"
,
key
:
"roleName"
,
search
:
false
,
search
:
false
,
},
},
],
],
...
@@ -236,8 +236,8 @@ const Shiftgroup = (props) => {
...
@@ -236,8 +236,8 @@ const Shiftgroup = (props) => {
},
},
{
{
title
:
"角色"
,
title
:
"角色"
,
dataIndex
:
"roleName
s
"
,
dataIndex
:
"roleName"
,
key
:
"roleName
s
"
,
key
:
"roleName"
,
search
:
false
,
search
:
false
,
},
},
{
{
...
...
src/pages/system/Area/index.jsx
View file @
be8eed64
...
@@ -34,7 +34,7 @@ function reducer(state, action) {
...
@@ -34,7 +34,7 @@ function reducer(state, action) {
...
state
,
...
state
,
vs
:
true
,
vs
:
true
,
iftype
:
{
iftype
:
{
title
:
"新增
仓库
"
,
title
:
"新增
库区
"
,
val
:
type
,
val
:
type
,
},
},
fields
:
{
...
action
.
fields
},
fields
:
{
...
action
.
fields
},
...
@@ -45,7 +45,7 @@ function reducer(state, action) {
...
@@ -45,7 +45,7 @@ function reducer(state, action) {
...
state
,
...
state
,
vs
:
true
,
vs
:
true
,
iftype
:
{
iftype
:
{
title
:
"编辑
仓库
"
,
title
:
"编辑
库区
"
,
val
:
type
,
val
:
type
,
},
},
fields
:
{
...
action
.
fields
},
fields
:
{
...
action
.
fields
},
...
...
src/pages/system/Reservoir/fields.js
View file @
be8eed64
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
factorySelect
}
from
"@/services/system"
;
export
default
{
export
default
{
"customerNo"
:
{
storePositionCode
:
{
"value"
:
null
,
value
:
null
,
"type"
:
"input"
,
type
:
"input"
,
"title"
:
"仓位编码"
,
title
:
"库位编码"
,
"name"
:
[
name
:
[
"storePositionCode"
],
"customerNo"
required
:
true
,
],
},
"required"
:
false
storePositionName
:
{
value
:
null
,
type
:
"input"
,
title
:
"库位名称"
,
name
:
[
"storePositionName"
],
required
:
true
,
},
factoryId
:
{
value
:
null
,
type
:
"select"
,
title
:
"所属工厂"
,
name
:
[
"factoryId"
],
required
:
true
,
options
:
{
database
:
factorySelect
,
params
:
{},
},
},
"customerName"
:
{
linked
:
true
,
"value"
:
null
,
},
"type"
:
"input"
,
storeId
:
{
"title"
:
"仓位名称"
,
value
:
null
,
"name"
:
[
type
:
"select"
,
"customerName"
title
:
"所属仓库"
,
],
name
:
[
"storeId"
],
"required"
:
true
required
:
true
,
linked
:
true
,
belinked
:
{
options
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
params
:
{}
}),
params
:
{
factoryId
:
"linked"
,
},
},
},
},
"officialWebsite"
:
{
},
"value"
:
null
,
storeAreaId
:
{
"type"
:
"input"
,
value
:
null
,
"title"
:
"所属仓库"
,
type
:
"select"
,
"name"
:
[
title
:
"所属库区"
,
"officialWebsite"
name
:
[
"storeAreaId"
],
],
required
:
true
,
"required"
:
false
belinked
:
{
},
options
:
{
"telephone"
:
{
database
:
()
=>
"value"
:
null
,
doFetch
({
url
:
"/ngic-auth/sysStoreArea/selection"
,
params
:
{}
}),
"type"
:
"input"
,
params
:
{
"title"
:
"所属库区"
,
storeId
:
"linked"
,
"name"
:
[
},
"telephone"
},
],
"required"
:
false
},
"email"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"排"
,
"name"
:
[
"email"
],
"required"
:
false
},
"address"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"列"
,
"name"
:
[
"address"
],
"required"
:
false
},
"score"
:
{
"value"
:
null
,
"type"
:
"rate"
,
"title"
:
"层"
,
"name"
:
[
"score"
],
"required"
:
false
,
allowHalf
:
true
,
},
"status"
:
{
"value"
:
1
,
"type"
:
"select"
,
"title"
:
"启停状态"
,
"name"
:
[
"status"
],
"required"
:
true
,
options
:
[
{
label
:
"启用"
,
value
:
1
},
{
label
:
"停用"
,
value
:
0
},
]
},
"remark"
:
{
"value"
:
null
,
"type"
:
"textarea"
,
"title"
:
"备注"
,
"name"
:
[
"remark"
],
"required"
:
false
,
col
:
{
span
:
24
}
},
},
linked
:
true
,
},
status
:
{
value
:
1
,
type
:
"select"
,
name
:
[
"status"
],
title
:
"库位状态"
,
required
:
true
,
options
:
[
{
label
:
"启用"
,
value
:
1
,
},
{
label
:
"停用"
,
value
:
2
,
},
],
},
wzpz
:
{
type
:
"split"
,
title
:
"位置配置"
,
name
:
[
"wzpz"
],
col
:
{
span
:
24
},
},
row
:
{
value
:
null
,
type
:
"input"
,
title
:
"排"
,
name
:
[
"row"
],
required
:
false
,
},
line
:
{
value
:
null
,
type
:
"input"
,
title
:
"列"
,
name
:
[
"line"
],
required
:
false
,
},
level
:
{
value
:
null
,
type
:
"input"
,
title
:
"层"
,
name
:
[
"level"
],
required
:
false
,
allowHalf
:
true
,
},
roadway
:
{
value
:
null
,
type
:
"input"
,
title
:
"巷道"
,
name
:
[
"roadway"
],
required
:
false
,
allowHalf
:
true
,
},
"customerUserList"
:
{
remark
:
{
"value"
:
null
,
value
:
null
,
"editable"
:
true
,
type
:
"textarea"
,
"type"
:
"table"
,
title
:
"备注"
,
"title"
:
"联系人"
,
name
:
[
"remark"
],
"name"
:
[
required
:
false
,
"customerUserList"
col
:
{
span
:
24
},
],
},
"required"
:
false
,
};
"columns"
:
[
{
"title"
:
"联系人姓名"
,
"dataIndex"
:
"userName"
,
"key"
:
"userName"
,
"search"
:
false
,
"valueType"
:
"input"
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
}
},
{
"title"
:
"联系电话"
,
"dataIndex"
:
"telephone"
,
"key"
:
"telephone"
,
"search"
:
false
,
"valueType"
:
"input"
,
formItemProps
:
{
rules
:
[
{
required
:
false
,
pattern
:
/^
(((\d{3,4}
-
)?[
0-9
]{7,8})
|
(
1
(
3|4|5|6|7|8|9
)\d{9}))
$/
,
message
:
'手机号格式不正确'
},
],
}
},
{
"title"
:
"邮箱"
,
"dataIndex"
:
"email"
,
"key"
:
"email"
,
"search"
:
false
,
"valueType"
:
"input"
,
formItemProps
:
{
rules
:
[
{
required
:
false
,
pattern
:
/^
[
a-z0-9A-Z
]
+
[
- | a-z0-9A-Z . _
]
+@
([
a-z0-9A-Z
]
+
(
-
[
a-z0-9A-Z
]
+
)?\.)
+
[
a-z
]{2,}
$/
,
message
:
'邮箱格式不正确'
},
],
}
},
{
"title"
:
"职位"
,
"dataIndex"
:
"title"
,
"key"
:
"title"
,
"search"
:
false
,
"valueType"
:
"input"
},
{
title
:
'操作'
,
valueType
:
'option'
,
render
:
()
=>
{
return
null
;
},
},
],
"editable"
:
true
,
"rowKey"
:
"id"
,
"rowName"
:
""
,
"dataSource"
:
[],
col
:
{
span
:
24
}
}
}
\ No newline at end of file
src/pages/system/Reservoir/index.jsx
View file @
be8eed64
This diff is collapsed.
Click to expand it.
src/pages/system/Store/index.jsx
View file @
be8eed64
...
@@ -136,6 +136,7 @@ const Store = (props) => {
...
@@ -136,6 +136,7 @@ const Store = (props) => {
for
(
let
i
in
defaultFields
)
{
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
record
[
i
];
defaultFields
[
i
].
value
=
record
[
i
];
}
}
console
.
log
(
defaultFields
);
dispatch
({
type
:
"edit"
,
fields
:
defaultFields
,
curitem
:
record
});
dispatch
({
type
:
"edit"
,
fields
:
defaultFields
,
curitem
:
record
});
}),
}),
getPrem
(
"sysDepartment_deleteById"
,
action
,
"删除"
,
null
,
{
getPrem
(
"sysDepartment_deleteById"
,
action
,
"删除"
,
null
,
{
...
...
src/utils/detailTotalCard.js
View file @
be8eed64
...
@@ -241,7 +241,7 @@ const userDetails = [
...
@@ -241,7 +241,7 @@ const userDetails = [
},
},
{
{
title
:
"角色"
,
title
:
"角色"
,
key
:
"roleName
s
"
,
key
:
"roleName"
,
},
},
{
{
title
:
"直属领导"
,
title
:
"直属领导"
,
...
@@ -835,8 +835,8 @@ const shiftgroupDetail = [
...
@@ -835,8 +835,8 @@ const shiftgroupDetail = [
},
},
{
{
title
:
"角色"
,
title
:
"角色"
,
dataIndex
:
"roleName
s
"
,
dataIndex
:
"roleName"
,
key
:
"roleName
s
"
,
key
:
"roleName"
,
search
:
false
,
search
:
false
,
},
},
{
{
...
...
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