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
Show 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 @@
...
@@ -1394,7 +1394,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
2G3393EZPN
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
INFOPLIST_FILE
=
"$(SRCROOT)/IFS/Resource/Info.plist"
;
INFOPLIST_FILE
=
"$(SRCROOT)/IFS/Resource/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
@@ -1415,7 +1415,7 @@
...
@@ -1415,7 +1415,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
2G3393EZPN
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
INFOPLIST_FILE
=
"$(SRCROOT)/IFS/Resource/Info.plist"
;
INFOPLIST_FILE
=
"$(SRCROOT)/IFS/Resource/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
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 {
...
@@ -352,11 +352,12 @@ extension RepairOrderAddViewModel {
let
deviceModel
=
result
[
index
!
]
let
deviceModel
=
result
[
index
!
]
let
choiceModel
=
choices
.
first
!
let
choiceModel
=
choices
.
first
!
controller
.
deviceTitleLabel
.
text
=
choiceModel
.
title
controller
.
deviceTitleLabel
.
text
=
choiceModel
.
title
if
deviceModel
.
position
!=
nil
{
controller
.
deviceLocationLabel
.
text
=
deviceModel
.
position
.
name
controller
.
deviceLocationLabel
.
text
=
deviceModel
.
position
.
name
}
controller
.
deviceTitleLabel
.
textColor
=
kBlackColor
controller
.
deviceTitleLabel
.
textColor
=
kBlackColor
controller
.
deviceLocationLabel
.
textColor
=
kBlackColor
controller
.
deviceLocationLabel
.
textColor
=
kBlackColor
let
model
=
result
[
index
!
]
let
device
=
UCN
(
deviceModel
.
code
,
deviceModel
.
name
,
deviceModel
.
uuid
)
let
device
=
UCN
(
model
.
code
,
model
.
name
,
model
.
uuid
)
self
?
.
saveOrderModel
.
device
=
device
self
?
.
saveOrderModel
.
device
=
device
})
})
controller
.
pushVC
(
publicFilterVc
)
controller
.
pushVC
(
publicFilterVc
)
...
...
IFS/IFS/Main/Business/RepairOrder/ViewModel/RepairOrderDetailViewModel.swift
View file @
489718cc
...
@@ -210,7 +210,11 @@ extension RepairOrderDetailViewModel {
...
@@ -210,7 +210,11 @@ extension RepairOrderDetailViewModel {
func
billDetailAssignment
(
_
controller
:
RepairOrderDetailViewController
)
{
func
billDetailAssignment
(
_
controller
:
RepairOrderDetailViewController
)
{
var
source
:
String
?
var
source
:
String
?
if
billDetailModel
.
source
==
"租区"
{
if
billDetailModel
.
source
==
"租区"
{
if
billDetailModel
.
tenant
!=
nil
{
source
=
String
(
format
:
"%@,商户: (%@)"
,
billDetailModel
.
source
,
billDetailModel
.
tenant
.
name
)
source
=
String
(
format
:
"%@,商户: (%@)"
,
billDetailModel
.
source
,
billDetailModel
.
tenant
.
name
)
}
else
{
source
=
String
(
format
:
"%@,商户: ---"
,
billDetailModel
.
source
)
}
}
else
{
}
else
{
source
=
String
(
format
:
"%@"
,
billDetailModel
.
source
)
source
=
String
(
format
:
"%@"
,
billDetailModel
.
source
)
}
}
...
@@ -233,7 +237,6 @@ extension RepairOrderDetailViewModel {
...
@@ -233,7 +237,6 @@ extension RepairOrderDetailViewModel {
if
billDetailModel
.
position
!=
nil
{
if
billDetailModel
.
position
!=
nil
{
controller
.
positionLabel
.
text
=
disposeEmpty
(
billDetailModel
.
position
.
name
)
controller
.
positionLabel
.
text
=
disposeEmpty
(
billDetailModel
.
position
.
name
)
}
}
controller
.
deviceLocationLab
.
text
=
disposeEmpty
(
billDetailModel
.
deviceadree
)
controller
.
descriptionLab
.
text
=
disposeEmpty
(
billDetailModel
.
descriptionField
)
controller
.
descriptionLab
.
text
=
disposeEmpty
(
billDetailModel
.
descriptionField
)
controller
.
billNumberLab
.
text
=
billDetailModel
.
workNo
controller
.
billNumberLab
.
text
=
billDetailModel
.
workNo
controller
.
isSolveLabel
.
text
=
billDetailModel
.
finish
?
"是"
:
"否"
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