Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
IFS-iOS
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-iOS
Commits
4ebacbf1
Commit
4ebacbf1
authored
Sep 25, 2018
by
哈南
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e0abf551
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
Urls.swift
IFS/IFS/Expand/Const/Urls.swift
+4
-4
RepairOrderAddTableViewController.swift
...rOrder/Controller/RepairOrderAddTableViewController.swift
+1
-1
RepairOrderAddViewModel.swift
...iness/RepairOrder/ViewModel/RepairOrderAddViewModel.swift
+4
-4
RepairOrderDetailViewModel.swift
...ss/RepairOrder/ViewModel/RepairOrderDetailViewModel.swift
+1
-1
Info.plist
IFS/IFS/Resource/Info.plist
+2
-2
No files found.
IFS/IFS/Expand/Const/Urls.swift
View file @
4ebacbf1
...
...
@@ -28,12 +28,12 @@ import Foundation
//public let BaseAttachmentUrl: String = "http://222.180.250.18:7090"
//测试环境
//
public let BaseUrl: String="http://222.180.250.18:7080/ifs-server/rest/"
//
public let BaseAttachmentUrl: String="http://222.180.250.18:7080"
public
let
BaseUrl
:
String
=
"http://222.180.250.18:7080/ifs-server/rest/"
public
let
BaseAttachmentUrl
:
String
=
"http://222.180.250.18:7080"
//外网开发环境
public
let
BaseUrl
:
String
=
"http://dev.gomoretech.com/ifs-server/rest/"
public
let
BaseAttachmentUrl
:
String
=
"http://dev.gomoretech.com"
//
public let BaseUrl: String = "http://dev.gomoretech.com/ifs-server/rest/"
//
public let BaseAttachmentUrl: String = "http://dev.gomoretech.com"
/// 登录
public
let
loginUrl
:
String
=
"/user/login/%@"
...
...
IFS/IFS/Main/Business/RepairOrder/Controller/RepairOrderAddTableViewController.swift
View file @
4ebacbf1
...
...
@@ -82,7 +82,7 @@ class RepairOrderAddTableViewController: BaseTableViewController {
//设置初始值
func
getUserMobile
(){
originatorTimeLabel
.
text
=
Date
()
.
toString
(
format
:
"yyyy-MM-dd HH:mm:ss"
)
self
.
repairOrderAddViewModel
.
saveOrderModel
.
re
quest
Time
=
Date
()
.
toString
(
format
:
"yyyy-MM-dd HH:mm:ss"
)
self
.
repairOrderAddViewModel
.
saveOrderModel
.
re
ceive
Time
=
Date
()
.
toString
(
format
:
"yyyy-MM-dd HH:mm:ss"
)
self
.
originatorTimeLabel
.
textColor
=
kBlackColor
Network
.
request
(
target
:
Service
.
queryUserMobile
(
kUser
()
.
userCode
),
success
:
{[
weak
self
]
(
respone
)
in
...
...
IFS/IFS/Main/Business/RepairOrder/ViewModel/RepairOrderAddViewModel.swift
View file @
4ebacbf1
...
...
@@ -297,8 +297,8 @@ extension RepairOrderAddViewModel {
// let defaultDate = controller.originatorTimeLabel.text == "工单接报时间" ? NSDate().httpParameterString() : controller.originatorTimeLabel.text
let
defaultDate
=
controller
.
originatorTimeLabel
.
text
var
date
:
Date
?
if
saveOrderModel
.
re
quest
Time
!=
nil
{
date
=
Date
(
fromString
:
saveOrderModel
.
re
quest
Time
,
format
:
"yyyy-MM-dd HH:mm:ss"
)
!
if
saveOrderModel
.
re
ceive
Time
!=
nil
{
date
=
Date
(
fromString
:
saveOrderModel
.
re
ceive
Time
,
format
:
"yyyy-MM-dd HH:mm:ss"
)
!
}
YXPickerManager
.
share
()
.
showDatePickerView
(
kMainColor
,
datePickerModel
:
UIDatePickerMode
.
dateAndTime
,
minimumDate
:
Date
(),
maximumDate
:
nil
,
defaultDate
:
defaultDate
,
commit
:
{[
weak
self
]
(
time
)
in
controller
.
originatorTimeLabel
.
text
=
time
...
...
@@ -309,8 +309,8 @@ extension RepairOrderAddViewModel {
case
IndexPath
(
row
:
8
,
section
:
0
):
let
defaultDate
=
controller
.
specifiedTimeLabel
.
text
==
"工单指定时间"
?
NSDate
()
.
httpParameterString
()
:
controller
.
originatorTimeLabel
.
text
var
date
=
Date
()
if
saveOrderModel
.
re
ceive
Time
!=
nil
{
date
=
Date
(
fromString
:
saveOrderModel
.
re
ceive
Time
,
format
:
"yyyy-MM-dd HH:mm:ss"
)
!
if
saveOrderModel
.
re
quest
Time
!=
nil
{
date
=
Date
(
fromString
:
saveOrderModel
.
re
quest
Time
,
format
:
"yyyy-MM-dd HH:mm:ss"
)
!
}
YXPickerManager
.
share
()
.
showDatePickerView
(
kMainColor
,
datePickerModel
:
UIDatePickerMode
.
dateAndTime
,
minimumDate
:
date
,
maximumDate
:
nil
,
defaultDate
:
defaultDate
,
commit
:
{[
weak
self
]
(
time
)
in
controller
.
specifiedTimeLabel
.
text
=
time
...
...
IFS/IFS/Main/Business/RepairOrder/ViewModel/RepairOrderDetailViewModel.swift
View file @
4ebacbf1
...
...
@@ -228,7 +228,7 @@ extension RepairOrderDetailViewModel {
controller
.
userLab
.
text
=
disposeEmpty
(
billDetailModel
.
reportUser
.
name
)
}
controller
.
phoneLab
.
text
=
disposeEmpty
(
billDetailModel
.
reporterPhone
)
controller
.
createTimeLab
.
text
=
disposeEmpty
(
billDetailModel
.
creat
eTime
)
controller
.
createTimeLab
.
text
=
disposeEmpty
(
billDetailModel
.
receiv
eTime
)
controller
.
requestTimeLab
.
text
=
disposeEmpty
(
billDetailModel
.
requestTime
)
if
billDetailModel
.
device
!=
nil
{
controller
.
deviceLocationLab
.
text
=
disposeEmpty
(
billDetailModel
.
deviceadree
)
...
...
IFS/IFS/Resource/Info.plist
View file @
4ebacbf1
...
...
@@ -17,9 +17,9 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.1.
3
<
/string
>
<
string
>
1.1.
6
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.1.
3
<
/string
>
<
string
>
1.1.
6
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
...
...
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