Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
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
Maple
TOSTUMI
Commits
d84c7021
Commit
d84c7021
authored
Jan 04, 2021
by
cellee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'final' of
http://120.77.240.215:9701/Maple/tostumi.git
into final
parents
34977cee
0491040e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
25 deletions
+24
-25
ServiceProvider.ts
src/models/ServiceProvider.ts
+9
-1
Card.tsx
src/pages/CommercialService/Card.tsx
+1
-0
AccoutingContent.less
...anagement/ServiceProviderManagement/AccoutingContent.less
+1
-9
AccoutingContent.tsx
...Management/ServiceProviderManagement/AccoutingContent.tsx
+9
-6
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+4
-9
No files found.
src/models/ServiceProvider.ts
View file @
d84c7021
...
...
@@ -65,7 +65,7 @@ export default {
// message.error("Service scope selection error!!!")
Modal
.
error
({
title
:
'Service selection error'
,
content
:
'No multiple selection are
not
allowed once Accounting or Security server is being selected!'
,
content
:
'No multiple selection are allowed once Accounting or Security server is being selected!'
,
});
return
;
}
...
...
@@ -98,6 +98,14 @@ export default {
yield
put
({
type
:
'returnCurData'
,
CurData
});
return
;
}
// 小区选择错误
if
(
resp
.
error_code
===
"0004"
)
{
let
CurData
:
Boolean
=
false
;
yield
put
({
type
:
"returnCurData"
,
CurData
});
message
.
error
(
"Company name already exists!"
)
return
;
}
},
//获取服务商保安根据服务商名
...
...
src/pages/CommercialService/Card.tsx
View file @
d84c7021
...
...
@@ -31,6 +31,7 @@ const Card = (props: any) => {
[
3
,
'Received'
],
];
// [0,业主],[1,家人],[2,租客]
const
apply_relation
=
[
[
0
,
'Owner'
],
[
1
,
'Family Member'
],
...
...
src/pages/UserManagement/ServiceProviderManagement/AccoutingContent.less
View file @
d84c7021
...
...
@@ -48,15 +48,7 @@
}
.box1item2 {
position: absolute;
left: 154px;
}
.box1item3 {
position: absolute;
left: 499px;
}
.box1item4 {
position: absolute;
left: 648px;
left: 189px;
}
.box2 {
...
...
src/pages/UserManagement/ServiceProviderManagement/AccoutingContent.tsx
View file @
d84c7021
...
...
@@ -110,15 +110,15 @@ const AccoutingContent = (props: {
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
<
div
className=
{
styles
.
box1item2
}
>
{
SaveChooseData
.
providerName
}
</
div
>
<
div
className=
{
styles
.
box1item3
}
>
Office Address
</
div
>
<
div
className=
{
styles
.
box1item4
}
>
{
SaveChooseData
.
providerAddress
}
</
div
>
</
div
>
<
Line
/>
<
div
style=
{
{
marginBottom
:
28
}
}
>
Service Community
</
div
>
<
ShowOptions
list=
{
SaveChooseData
.
serviceCommunityList
}
/>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Office Address
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
{
SaveChooseData
.
providerAddress
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
Accounting
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
Accounting
Service
</
div
>
</
div
>
<
div
className=
{
styles
.
box2
}
>
...
...
@@ -140,6 +140,9 @@ const AccoutingContent = (props: {
复制
</
Button
>
</
div
>
<
div
style=
{
{
marginBottom
:
28
,
marginTop
:
30
}
}
>
Service Community
</
div
>
<
ShowOptions
list=
{
SaveChooseData
.
serviceCommunityList
}
/>
</
Spin
>
)
:
(
<></>
...
...
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
d84c7021
...
...
@@ -67,22 +67,18 @@ const Edit = (props: any) => {
useEffect
(()
=>
{
if
(
SaveChooseData
!=
null
)
{
console
.
log
(
optionsList
);
console
.
log
(
SaveChooseData
);
setCList
(
SaveChooseData
.
serviceCommunityList
);
if
(
SaveChooseData
.
serviceScopeList
.
length
<=
1
)
{
// 处理服务范围数据
optionsList
.
forEach
((
v
)
=>
{
optionsList
.
forEach
((
v
,
index
)
=>
{
if
(
v
.
serviceName
===
SaveChooseData
.
serviceScope
)
{
SaveChooseData
.
serviceScopeList
=
v
.
serviceCode
;
SaveChooseData
.
serviceScopeList
[
index
]
=
v
.
serviceCode
;
}
});
}
else
{
console
.
log
(
1122
);
// 处理服务范围数据
optionsList
.
forEach
((
v1
)
=>
{
SaveChooseData
.
serviceScopeList
.
forEach
((
v2
:
string
,
index
:
number
)
=>
{
console
.
log
(
v1
.
serviceName
);
console
.
log
(
v1
.
serviceName
===
v2
);
if
(
v1
.
serviceName
===
v2
)
{
SaveChooseData
.
serviceScopeList
[
index
]
=
v1
.
serviceCode
;
}
...
...
@@ -105,11 +101,11 @@ const Edit = (props: any) => {
val
.
serviceCommunityList
=
CList
;
val
.
creator
=
'admin'
;
val
.
updater
=
'admin'
;
// val.serviceScopeList = val.serviceScopeList;
if
(
SaveChooseData
)
{
val
.
id
=
SaveChooseData
.
id
;
}
console
.
log
(
val
);
setload
(
true
);
TosTosServiceProviderSave
(
val
);
};
...
...
@@ -250,7 +246,6 @@ function mapStateToProps(state: any) {
const
{
CurData
,
SaveChooseData
}
=
state
.
ServiceProvider
;
const
{
DataServices
}
=
state
.
User
;
const
{
CommunityList
}
=
state
.
Init
;
console
.
log
(
CurData
);
return
{
CurData
,
SaveChooseData
,
...
...
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