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
ae3d951b
Commit
ae3d951b
authored
Jul 15, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
f1164823
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
159 additions
and
66 deletions
+159
-66
index.jsx
src/pages/platform/Custom/index.jsx
+14
-3
detailTotalCard.js
src/utils/detailTotalCard.js
+145
-63
No files found.
src/pages/platform/Custom/index.jsx
View file @
ae3d951b
...
...
@@ -7,7 +7,7 @@ import { useRequest } from "umi";
import
defaultFields
from
"./fields"
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
deviceprovideDetail
,
deleteProvideCheck
}
from
"@/services/device"
;
import
{
deviceprovide
Details
}
from
"@/utils/detailTotalCard"
;
import
{
usercus
Details
}
from
"@/utils/detailTotalCard"
;
import
Details
from
"@/components/Details"
;
import
{
useAsyncEffect
}
from
'ahooks'
;
import
tempfields
from
'@/utils/tempfields'
...
...
@@ -48,11 +48,23 @@ function reducer(state, action) {
}
break
;
case
"cdetails"
:
let
special
=
action
?.
dataSource
?.
customerCharList
?.
map
?.(
it
=>
{
return
{
"title"
:
it
?.
fieldName
,
"key"
:
it
?.
fieldCharValue
,
}
})
let
extraspecial
=
[{
cardTitle
:
'特殊属性'
,
itemData
:
special
}]
newState
=
{
...
state
,
details
:
{
dataSource
:
action
.
dataSource
,
totalCard
:
[...
deviceprovideDetails
]
totalCard
:
[...
usercusDetails
,...
extraspecial
]
},
visible
:
true
}
...
...
@@ -304,7 +316,6 @@ const Deviceprovide = (props) => {
onClose=
{
()
=>
dispatch
({
type
:
"close"
})
}
destroyOnClose=
{
true
}
afterVisibleChange=
{
(
v
)
=>
{
}
}
width=
"100%"
className=
"drawerDetails"
...
...
src/utils/detailTotalCard.js
View file @
ae3d951b
...
...
@@ -263,86 +263,167 @@ const userDetails = [
const
deviceprovideDetails
=
[
//设备供应商详情
{
cardTitle
:
'基本信息'
,
itemData
:
[
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"
:
"供应商编号"
,
"key"
:
"supplierNo"
,
"title"
:
"联系人姓名"
,
"dataIndex"
:
"userName"
,
"key"
:
"userName"
,
"search"
:
false
},
{
"title"
:
"供应商名称"
,
"key"
:
"supplierName"
"title"
:
"联系电话"
,
"dataIndex"
:
"telephone"
,
"key"
:
"telephone"
,
"search"
:
false
},
{
"title"
:
"公司官网"
,
"key"
:
"officialWebsite"
"title"
:
"邮箱"
,
"dataIndex"
:
"email"
,
"key"
:
"email"
,
"search"
:
false
},
{
"title"
:
"联系电话"
,
"key"
:
"telephone"
"title"
:
"职位"
,
"dataIndex"
:
"title"
,
"key"
:
"title"
,
"search"
:
false
},
]
}
]
},
];
const
usercusDetails
=
[
//设备客户详情
{
cardTitle
:
'基本信息'
,
itemData
:
[
{
"title"
:
"客户编号"
,
"key"
:
"customerNo"
,
},
{
"title"
:
"客户名称"
,
"key"
:
"customerName"
},
{
"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"
:
"customerUserList"
,
type
:
"table"
,
col
:
{
span
:
24
},
columns
:
[
{
"title"
:
"邮箱"
,
"key"
:
"email"
"title"
:
"联系人姓名"
,
"dataIndex"
:
"userName"
,
"key"
:
"userName"
,
"search"
:
false
},
{
"title"
:
"地址"
,
"key"
:
"address"
"title"
:
"联系电话"
,
"dataIndex"
:
"telephone"
,
"key"
:
"telephone"
,
"search"
:
false
},
{
"title"
:
"评分"
,
"key"
:
"score"
,
type
:
"rate"
,
allowHalf
:
true
,
disabled
:
true
"title"
:
"邮箱"
,
"dataIndex"
:
"email"
,
"key"
:
"email"
,
"search"
:
false
},
{
"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
},
]
}
]
"title"
:
"职位"
,
"dataIndex"
:
"title"
,
"key"
:
"title"
,
"search"
:
false
},
]
}
]
},
];
const
userCheckDetails
=
[
//个人详情-----待审核
{
...
...
@@ -669,7 +750,7 @@ const materielDetail = [
dataIndex
:
"conversionRate"
,
key
:
"conversionRate"
,
search
:
false
,
width
:
200
width
:
200
},
],
},
...
...
@@ -1148,5 +1229,6 @@ export {
shopplanDetail
,
dispatchorderDetail
,
labeltemplateDetail
,
deviceprovideDetails
deviceprovideDetails
,
usercusDetails
};
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