Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
IFS
Project
Project
Details
Activity
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
张杰
IFS
Commits
489718cc
Commit
489718cc
authored
Mar 28, 2018
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
392c40c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
project.pbxproj
IFS/IFS.xcodeproj/project.pbxproj
+2
-2
RepairOrderAddViewModel.swift
...iness/RepairOrder/ViewModel/RepairOrderAddViewModel.swift
+4
-3
RepairOrderDetailViewModel.swift
...ss/RepairOrder/ViewModel/RepairOrderDetailViewModel.swift
+6
-3
No files found.
IFS/IFS.xcodeproj/project.pbxproj
View file @
489718cc
...
...
@@ -1394,7 +1394,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
2G3393EZPN
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
INFOPLIST_FILE
=
"$(SRCROOT)/IFS/Resource/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
...
@@ -1415,7 +1415,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
2G3393EZPN
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
INFOPLIST_FILE
=
"$(SRCROOT)/IFS/Resource/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
...
IFS/IFS/Main/Business/RepairOrder/ViewModel/RepairOrderAddViewModel.swift
View file @
489718cc
...
...
@@ -352,11 +352,12 @@ extension RepairOrderAddViewModel {
let
deviceModel
=
result
[
index
!
]
let
choiceModel
=
choices
.
first
!
controller
.
deviceTitleLabel
.
text
=
choiceModel
.
title
controller
.
deviceLocationLabel
.
text
=
deviceModel
.
position
.
name
if
deviceModel
.
position
!=
nil
{
controller
.
deviceLocationLabel
.
text
=
deviceModel
.
position
.
name
}
controller
.
deviceTitleLabel
.
textColor
=
kBlackColor
controller
.
deviceLocationLabel
.
textColor
=
kBlackColor
let
model
=
result
[
index
!
]
let
device
=
UCN
(
model
.
code
,
model
.
name
,
model
.
uuid
)
let
device
=
UCN
(
deviceModel
.
code
,
deviceModel
.
name
,
deviceModel
.
uuid
)
self
?
.
saveOrderModel
.
device
=
device
})
controller
.
pushVC
(
publicFilterVc
)
...
...
IFS/IFS/Main/Business/RepairOrder/ViewModel/RepairOrderDetailViewModel.swift
View file @
489718cc
...
...
@@ -209,8 +209,12 @@ extension RepairOrderDetailViewModel {
// MARK: - 工单详情赋值
func
billDetailAssignment
(
_
controller
:
RepairOrderDetailViewController
)
{
var
source
:
String
?
if
billDetailModel
.
source
==
"租区"
{
source
=
String
(
format
:
"%@,商户: (%@)"
,
billDetailModel
.
source
,
billDetailModel
.
tenant
.
name
)
if
billDetailModel
.
source
==
"租区"
{
if
billDetailModel
.
tenant
!=
nil
{
source
=
String
(
format
:
"%@,商户: (%@)"
,
billDetailModel
.
source
,
billDetailModel
.
tenant
.
name
)
}
else
{
source
=
String
(
format
:
"%@,商户: ---"
,
billDetailModel
.
source
)
}
}
else
{
source
=
String
(
format
:
"%@"
,
billDetailModel
.
source
)
}
...
...
@@ -233,7 +237,6 @@ extension RepairOrderDetailViewModel {
if
billDetailModel
.
position
!=
nil
{
controller
.
positionLabel
.
text
=
disposeEmpty
(
billDetailModel
.
position
.
name
)
}
controller
.
deviceLocationLab
.
text
=
disposeEmpty
(
billDetailModel
.
deviceadree
)
controller
.
descriptionLab
.
text
=
disposeEmpty
(
billDetailModel
.
descriptionField
)
controller
.
billNumberLab
.
text
=
billDetailModel
.
workNo
controller
.
isSolveLabel
.
text
=
billDetailModel
.
finish
?
"是"
:
"否"
...
...
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