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
6d380451
Commit
6d380451
authored
Jun 16, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sad
parent
942abea9
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
767 additions
and
26 deletions
+767
-26
proxy.js
config/proxy.js
+1
-1
routes.js
config/routes.js
+5
-0
index.jsx
src/components/Deletecheck/index.jsx
+82
-0
fields.js
src/pages/platform/Provide/fields.js
+155
-0
index.jsx
src/pages/platform/Provide/index.jsx
+296
-0
index.jsx
src/pages/system/Charactor/index.jsx
+3
-3
index.jsx
src/pages/system/Staff/index.jsx
+12
-22
device.js
src/services/device.js
+133
-0
detailTotalCard.js
src/utils/detailTotalCard.js
+80
-0
No files found.
config/proxy.js
View file @
6d380451
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/"
:
{
"/wms/"
:
{
// 要代理的地址
// 要代理的地址
target
:
"http://192.168.40.1
5
:18040/"
,
//39:18040 23/wms/ //60 翔
target
:
"http://192.168.40.1
34
:18040/"
,
//39:18040 23/wms/ //60 翔
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
"^/wms"
:
""
,
"^/wms"
:
""
,
...
...
config/routes.js
View file @
6d380451
...
@@ -155,6 +155,11 @@ export default [
...
@@ -155,6 +155,11 @@ export default [
name
:
"标签模板"
,
name
:
"标签模板"
,
component
:
"./platform/Labeltemplate"
,
component
:
"./platform/Labeltemplate"
,
},
},
{
path
:
'/platform/provide'
,
name
:
'供应商管理'
,
component
:
'./platform/Provide'
,
},
{
{
component
:
"./404"
,
component
:
"./404"
,
},
},
...
...
src/components/Deletecheck/index.jsx
0 → 100644
View file @
6d380451
import
React
,
{
useState
}
from
'react'
;
import
{
Button
,
Popconfirm
}
from
'antd'
;
const
Deletecheck
=
props
=>
{
const
{
name
,
type
,
text
,
clickfn
,
pop
,
btnType
}
=
props
;
//点击删除按钮,若需要调取接口进行校验,需要传btnType,且值为deleteCheck
const
[
title
,
ct
]
=
useState
(
btnType
==
"deleteCheck"
?
""
:
pop
?.
title
),
[
visible
,
cv
]
=
useState
(
false
);
let
{
buttonPerm
}
=
{
buttonPerm
:
[]
};
//单独运行
let
res
=
buttonPerm
&&
buttonPerm
.
length
>
0
?
buttonPerm
.
filter
((
it
)
=>
{
return
it
.
typeName
==
name
})
:
[];
if
(
res
.
length
==
1
)
{
res
=
res
[
0
]
}
else
{
res
=
{}
}
let
ifs
=
name
===
false
?
false
:
true
;
if
(
type
==
"ifs"
)
{
return
ifs
}
return
pop
?
<
Popconfirm
disabled=
{
!
ifs
}
okText=
"确认"
cancelText=
"取消"
placement=
"bottomRight"
title=
{
title
}
onConfirm=
{
()
=>
{
if
(
!
ifs
)
{
return
}
pop
.
onConfirm
();
cv
(
false
);
}
}
visible=
{
visible
}
onCancel=
{
()
=>
{
cv
(
false
)
}
}
>
<
Button
size=
'small'
type=
{
type
?.
type
||
'default'
}
disabled=
{
!
ifs
}
danger
style=
{
{
userSelect
:
"none"
}
}
onClick=
{
()
=>
{
if
(
btnType
==
"deleteCheck"
)
{
clickfn
().
then
(
res
=>
{
if
(
res
.
code
==
"0000"
)
{
ct
(
res
?.
data
?.
msg
)
cv
(
true
)
}
})
}
else
{
clickfn
?
clickfn
()
:
null
;
cv
(
true
)
}
}
}
>
{
text
}
</
Button
>
</
Popconfirm
>
:
<
Button
size=
'small'
type=
{
type
?.
type
||
'primary'
}
disabled=
{
!
ifs
}
style=
{
{
userSelect
:
"none"
}
}
onClick=
{
()
=>
{
clickfn
?
clickfn
()
:
null
}
}
>
{
text
}
</
Button
>
}
export
default
Deletecheck
;
\ No newline at end of file
src/pages/platform/Provide/fields.js
0 → 100644
View file @
6d380451
export
default
{
"supplierNo"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"供应商编号"
,
"name"
:
[
"supplierNo"
],
"required"
:
false
},
"supplierName"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"供应商名称"
,
"name"
:
[
"supplierName"
],
"required"
:
true
},
"officialWebsite"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"公司官网"
,
"name"
:
[
"officialWebsite"
],
"required"
:
false
},
"telephone"
:
{
"value"
:
null
,
"type"
:
"input"
,
"title"
:
"联系电话"
,
"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
,
col
:
{
span
:
24
}
},
"remark"
:
{
"value"
:
null
,
"type"
:
"textarea"
,
"title"
:
"备注"
,
"name"
:
[
"remark"
],
"required"
:
false
,
col
:
{
span
:
24
}
},
"supplierUserList"
:
{
"value"
:
null
,
"editable"
:
true
,
"type"
:
"table"
,
"title"
:
"联系人"
,
"name"
:
[
"supplierUserList"
],
"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{11}
$/
,
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/platform/Provide/index.jsx
0 → 100644
View file @
6d380451
This diff is collapsed.
Click to expand it.
src/pages/system/Charactor/index.jsx
View file @
6d380451
...
@@ -200,11 +200,11 @@ const Charactor = (props) => {
...
@@ -200,11 +200,11 @@ const Charactor = (props) => {
});
});
})
}
})
}
</
Menu
.
Item
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
"key2"
>
{
/*
<Menu.Item key="key2">
{getPrem(true, null, "数据分权", () => {
{getPrem(true, null, "数据分权", () => {
//
dispatch(
{
type
:
"dataauth"
,
title
:
`给${record.roleName}添加数据权限`
,
curitem
:
record
})
dispatch({ type: "dataauth", title: `给${record.roleName}添加数据权限`, curitem: record })
})}
})}
</
Menu
.
Item
>
</Menu.Item>
*/
}
<
Menu
.
Item
key=
"key3"
>
<
Menu
.
Item
key=
"key3"
>
{
getPrem
(
true
,
null
,
"人员"
,
()
=>
{
{
getPrem
(
true
,
null
,
"人员"
,
()
=>
{
dispatch
({
dispatch
({
...
...
src/pages/system/Staff/index.jsx
View file @
6d380451
...
@@ -167,16 +167,16 @@ const Staff = (props) => {
...
@@ -167,16 +167,16 @@ const Staff = (props) => {
);
);
},
},
},
},
{
title
:
"组织"
,
dataIndex
:
"departmentName"
,
key
:
"departmentName"
,
},
{
{
title
:
"工厂"
,
title
:
"工厂"
,
dataIndex
:
"factoryName"
,
dataIndex
:
"factoryName"
,
key
:
"factoryName"
,
key
:
"factoryName"
,
},
},
{
title
:
"部门"
,
dataIndex
:
"departmentName"
,
key
:
"departmentName"
,
},
{
{
title
:
"负责仓库"
,
title
:
"负责仓库"
,
dataIndex
:
"chargeStoreName"
,
dataIndex
:
"chargeStoreName"
,
...
@@ -242,29 +242,19 @@ const Staff = (props) => {
...
@@ -242,29 +242,19 @@ const Staff = (props) => {
},
},
},
},
{
{
title
:
"工厂"
,
title
:
"组织"
,
dataIndex
:
"factoryName"
,
key
:
"factoryName"
,
},
{
title
:
"部门"
,
dataIndex
:
"departmentName"
,
dataIndex
:
"departmentName"
,
key
:
"departmentName"
,
key
:
"departmentName"
,
},
},
{
{
title
:
"负责车间"
,
title
:
"工厂"
,
dataIndex
:
"shopName"
,
dataIndex
:
"factoryName"
,
key
:
"shopName"
,
key
:
"factoryName"
,
},
{
title
:
"负责工段"
,
dataIndex
:
"sectionName"
,
key
:
"sectionName"
,
},
},
{
{
title
:
"负责
产线
"
,
title
:
"负责
仓库
"
,
dataIndex
:
"
productionLin
eName"
,
dataIndex
:
"
chargeStor
eName"
,
key
:
"
productionLin
eName"
,
key
:
"
chargeStor
eName"
,
},
},
{
{
...
...
src/services/device.js
0 → 100644
View file @
6d380451
import
request
from
'@/utils/request'
;
//设备型号下拉框
export
async
function
equipmentModelList
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentModel/query/selection'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备型号--(保养标准页面)下拉框
export
async
function
equipmentMaintainModelList
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentModel/query/selection/maintainStandard'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备型号--(点检标准页面)下拉框
export
async
function
equipmentCheckModelList
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentModel/query/selection/checkStandard'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//根据设备型号id查询是寿命件的备件
export
async
function
lifespareSelect
(
params
)
{
return
request
(
`/qj/ngic-equipment-asset/equipmentModelSpare/liveparts/selectionbox/byEquipmentModelId`
,
{
method
:
'POST'
,
data
:
params
});
}
//备件下拉框
export
async
function
mdmSpareList
(
params
)
{
return
request
(
`/qj/ngic-spare-parts/mdmSpareParts/mdmSpareList`
,
{
method
:
'POST'
,
data
:
params
});
}
//设备供应商详情
export
async
function
deviceprovideDetail
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentSupplier/query/detail'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//供应商下拉框
export
async
function
equipmentSupplierList
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentSupplier/query/selection'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备供应商删除前校验
export
async
function
deleteProvideCheck
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentSupplier/deleteById'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备信息
export
async
function
equipmentDetail
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipment/queryDetail'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//查询父设备id和子设备id,添加子设备时使用
export
async
function
equipmentChildren
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipment/queryChildren'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//履历详情
export
async
function
equipmentLogDetail
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentLog/query/detail'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备类型树查询
export
async
function
deviceTypequeryTreeList
(
params
)
{
return
request
(
`/qj/ngic-equipment-asset/equipmentType/queryTreeList`
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备详情
export
async
function
equipmentAllDetail
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipment/query/all/detail'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备型号详情
export
async
function
equipmentModelDetails
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentModelSpare/queryById'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备下拉框
export
async
function
equipmentList
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipment/query/selection'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//IOT设备下拉框
export
async
function
equipmentIotRelationList
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentIotRelation/query/device/selection'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//设备下拉框(过滤已报修)
export
async
function
canApplyRepair
(
params
)
{
return
request
(
'/qj/ngic-equipment-repair/omEquipmentApplyRepair/canApplyRepair/equipmens/selection'
,
{
method
:
'POST'
,
data
:
params
,
});
}
//关联备件
export
async
function
equipmentModelSpareImport
(
params
)
{
return
request
(
'/qj/ngic-equipment-asset/equipmentModelSpare/importExcel'
,
{
method
:
'POST'
,
data
:
params
,
type
:
"form"
});
}
\ No newline at end of file
src/utils/detailTotalCard.js
View file @
6d380451
...
@@ -259,6 +259,85 @@ const userDetails = [
...
@@ -259,6 +259,85 @@ const userDetails = [
],
],
},
},
];
];
const
deviceprovideDetails
=
[
//设备供应商详情
{
cardTitle
:
'基本信息'
,
itemData
:
[
{
"title"
:
"供应商编号"
,
"key"
:
"supplierNo"
,
},
{
"title"
:
"供应商名称"
,
"key"
:
"supplierName"
},
{
"title"
:
"公司官网"
,
"key"
:
"officialWebsite"
},
{
"title"
:
"联系电话"
,
"key"
:
"telephone"
},
{
"title"
:
"邮箱"
,
"key"
:
"email"
},
{
"title"
:
"地址"
,
"key"
:
"address"
},
{
"title"
:
"评分"
,
"key"
:
"score"
,
type
:
"rate"
,
allowHalf
:
true
,
disabled
:
true
},
{
"title"
:
"备注"
,
"key"
:
"remark"
,
col
:
{
span
:
24
}
}
]
},
{
cardTitle
:
'联系人'
,
itemData
:
[
{
"key"
:
"supplierUserList"
,
type
:
"table"
,
col
:
{
span
:
24
},
columns
:
[
{
"title"
:
"联系人姓名"
,
"dataIndex"
:
"userName"
,
"key"
:
"userName"
,
"search"
:
false
},
{
"title"
:
"联系电话"
,
"dataIndex"
:
"telephone"
,
"key"
:
"telephone"
,
"search"
:
false
},
{
"title"
:
"邮箱"
,
"dataIndex"
:
"email"
,
"key"
:
"email"
,
"search"
:
false
},
{
"title"
:
"职位"
,
"dataIndex"
:
"title"
,
"key"
:
"title"
,
"search"
:
false
},
]
}
]
},
];
const
userCheckDetails
=
[
const
userCheckDetails
=
[
//个人详情-----待审核
//个人详情-----待审核
...
@@ -1099,4 +1178,5 @@ export {
...
@@ -1099,4 +1178,5 @@ export {
shopplanDetail
,
shopplanDetail
,
dispatchorderDetail
,
dispatchorderDetail
,
labeltemplateDetail
,
labeltemplateDetail
,
deviceprovideDetails
};
};
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