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
b77cf01b
Commit
b77cf01b
authored
Jul 24, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new 7.24
parent
be8eed64
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
81 additions
and
108 deletions
+81
-108
routes.js
config/routes.js
+5
-5
fields.js
src/pages/craft/Materiel/fields.js
+42
-13
fields.js
src/pages/system/Reservoir/fields.js
+9
-5
index.jsx
src/pages/system/Reservoir/index.jsx
+0
-1
fields.js
src/pages/system/Station/fields.js
+11
-65
index.jsx
src/pages/system/Station/index.jsx
+7
-18
index.jsx
src/pages/system/Store/index.jsx
+0
-1
system.js
src/services/system.js
+7
-0
No files found.
config/routes.js
View file @
b77cf01b
...
...
@@ -211,11 +211,11 @@ export default [
name
:
'供应商管理'
,
component
:
'./platform/Provide'
,
},
{
path
:
'/store/customer'
,
name
:
'客户管理'
,
component
:
'./platform/Custom'
,
},
//
{
//
path: '/store/customer',
//
name: '客户管理',
//
component: './platform/Custom',
//
},
{
path
:
'/store/location'
,
name
:
'库位管理'
,
...
...
src/pages/craft/Materiel/fields.js
View file @
b77cf01b
import
regValue
from
"@/utils/regValue"
;
import
{
unitSelect
,
serialNumberRuleSelect
,
processLineSelect
,
bmTableSelect
,
}
from
"@/services/craft"
;
import
{
selectionBoxAll
,
StoreAreaselection
,
factorySelect
,
storeselectionBoxAll
}
from
"@/services/system.js"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
export
default
{
...
...
@@ -139,10 +133,10 @@ export default {
type
:
"select"
,
title
:
"默认仓库"
,
name
:
[
"storeId"
],
linked
:
true
,
required
:
false
,
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBoxAll"
,
params
}),
database
:
selectionBoxAll
,
params
:
{},
},
},
...
...
@@ -151,11 +145,46 @@ export default {
type
:
"select"
,
title
:
"默认库区"
,
name
:
[
"storeAreaId"
],
options
:
{
database
:
(
params
)
=>
doFetch
({
url
:
"/ngic-auth/sysStoreArea/selection"
,
params
}),
params
:
{},
belinked
:
{
options
:
{
database
:
StoreAreaselection
,
params
:
{
storeId
:
"linked"
,
},
},
},
linked
:
true
,
required
:
false
,
},
// factoryId: {
// value: null,
// type: "select",
// title: "所属工厂",
// name: ["factoryId"],
// required: true,
// options: {
// database: factorySelect,
// params: {},
// },
// linked: true,
// },
// storeId: {
// value: null,
// type: "select",
// title: "所属仓库",
// name: ["storeId"],
// required: true,
// linked: true,
// belinked: {
// options: {
// database: storeselectionBoxAll,
// params: {
// factoryId: "linked",
// },
// },
// },
// },
};
src/pages/system/Reservoir/fields.js
View file @
b77cf01b
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
factorySelect
}
from
"@/services/system"
;
import
{
factorySelect
,
shopSelectByFactory
,
StoreAreaselection
,
storeselectionBoxAll
,
}
from
"@/services/system"
;
export
default
{
storePositionCode
:
{
value
:
null
,
...
...
@@ -36,8 +41,7 @@ export default {
linked
:
true
,
belinked
:
{
options
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-auth/sysStore/selectionBox"
,
params
:
{}
}),
database
:
storeselectionBoxAll
,
params
:
{
factoryId
:
"linked"
,
},
...
...
@@ -52,8 +56,7 @@ export default {
required
:
true
,
belinked
:
{
options
:
{
database
:
()
=>
doFetch
({
url
:
"/ngic-auth/sysStoreArea/selection"
,
params
:
{}
}),
database
:
StoreAreaselection
,
params
:
{
storeId
:
"linked"
,
},
...
...
@@ -61,6 +64,7 @@ export default {
},
linked
:
true
,
},
status
:
{
value
:
1
,
type
:
"select"
,
...
...
src/pages/system/Reservoir/index.jsx
View file @
b77cf01b
...
...
@@ -394,7 +394,6 @@ const Materiel = (props) => {
params
=
{
...
firstValues
,
...
difrid
,
factoryId
:
materieTypeId
,
materieProductUnitList
,
};
url
=
"/ngic-auth/sysStorePosition/save"
;
...
...
src/pages/system/Station/fields.js
View file @
b77cf01b
...
...
@@ -6,11 +6,11 @@ import {
}
from
"@/services/system"
;
import
regValue
from
"@/utils/regValue"
;
export
default
{
station
Code
:
{
station
No
:
{
value
:
null
,
type
:
"input"
,
title
:
"工位编号"
,
name
:
[
"station
Code
"
],
name
:
[
"station
No
"
],
required
:
true
,
},
stationName
:
{
...
...
@@ -32,78 +32,23 @@ export default {
},
linked
:
true
,
},
shopId
:
{
value
:
null
,
type
:
"select"
,
title
:
"所属车间"
,
name
:
[
"shopId"
],
required
:
true
,
belinked
:
{
options
:
{
database
:
shopSelectByFactory
,
params
:
{
factoryId
:
"linked"
},
},
},
linked
:
true
,
},
sectionId
:
{
value
:
null
,
type
:
"select"
,
title
:
"所属工段"
,
name
:
[
"sectionId"
],
required
:
true
,
belinked
:
{
options
:
{
database
:
sectionSelectByShop
,
params
:
{
shopId
:
"linked"
,
factoryId
:
"linked"
},
},
},
},
productionLineId
:
{
value
:
null
,
type
:
"select"
,
title
:
"所属产线"
,
name
:
[
"productionLineId"
],
required
:
true
,
belinked
:
{
options
:
{
database
:
productionLineSelectByShop
,
params
:
{
shopId
:
"linked"
,
factoryId
:
"linked"
},
},
},
},
stationType
:
{
remark
:
{
value
:
null
,
type
:
"select"
,
title
:
"
工位类型
"
,
name
:
[
"
stationType
"
],
title
:
"
启用状态
"
,
name
:
[
"
remark
"
],
required
:
false
,
options
:
[
{
label
:
"
待加工
"
,
value
:
0
,
label
:
"
启用
"
,
value
:
1
,
},
{
label
:
"
在加工
"
,
value
:
1
,
label
:
"
停用
"
,
value
:
2
,
},
],
},
stationDifficultyCoefficient
:
{
value
:
null
,
type
:
"inputnumber"
,
title
:
"难易系数"
,
name
:
[
"stationDifficultyCoefficient"
],
required
:
false
,
...
regValue
(
null
,
6
,
3
),
},
capacity
:
{
value
:
null
,
type
:
"inputnumber"
,
title
:
"能力"
,
name
:
[
"capacity"
],
required
:
false
,
...
regValue
(
null
,
6
,
3
),
col
:
{
span
:
24
},
},
remark
:
{
value
:
null
,
...
...
@@ -111,6 +56,7 @@ export default {
title
:
"描述"
,
name
:
[
"remark"
],
required
:
false
,
col
:
{
span
:
24
},
},
};
src/pages/system/Station/index.jsx
View file @
b77cf01b
...
...
@@ -97,8 +97,8 @@ const Station = (props) => {
columns
=
[
{
title
:
"工位编号"
,
dataIndex
:
"station
Code
"
,
key
:
"station
Code
"
,
dataIndex
:
"station
No
"
,
key
:
"station
No
"
,
},
{
title
:
"工位名称"
,
...
...
@@ -128,24 +128,13 @@ const Station = (props) => {
},
},
{
title
:
"
所属工厂
"
,
title
:
"
启用状态
"
,
dataIndex
:
"factoryName"
,
key
:
"factoryName"
,
},
{
title
:
"所属车间"
,
dataIndex
:
"shopName"
,
key
:
"shopName"
,
},
{
title
:
"所属工段"
,
dataIndex
:
"sectionName"
,
key
:
"sectionName"
,
},
{
title
:
"所属产线"
,
dataIndex
:
"productionLineName"
,
key
:
"productionLineName"
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
return
row
?.
status
?
'启用'
:
'禁用'
}
},
{
title
:
"描述"
,
...
...
src/pages/system/Store/index.jsx
View file @
b77cf01b
...
...
@@ -136,7 +136,6 @@ const Store = (props) => {
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
record
[
i
];
}
console
.
log
(
defaultFields
);
dispatch
({
type
:
"edit"
,
fields
:
defaultFields
,
curitem
:
record
});
}),
getPrem
(
"sysDepartment_deleteById"
,
action
,
"删除"
,
null
,
{
...
...
src/services/system.js
View file @
b77cf01b
...
...
@@ -36,6 +36,13 @@ export async function storeselectionBoxAll(params) {
data
:
params
,
});
}
//库区下拉
export
async
function
StoreAreaselection
(
params
)
{
return
request
(
`/srwms/ngic-auth/sysStoreArea/selection`
,
{
method
:
"POST"
,
data
:
params
,
});
}
//根据工厂id查询车间下拉
export
async
function
storeselectionBox
(
params
)
{
return
request
(
`/srwms/ngic-auth/sysStore/selectionBox`
,
{
...
...
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