Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
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
张杰
total
Commits
174063ef
Commit
174063ef
authored
Jan 17, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.oschina.net/gomore/total
parents
32ff642a
b3681334
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
312 additions
and
144 deletions
+312
-144
project.pbxproj
total.xcodeproj/project.pbxproj
+26
-6
NewObtainViewController.m
total/GTOApp/Business/NewObtainViewController.m
+4
-1
NewOrderViewController.m
total/GTOApp/Business/NewOrderViewController.m
+15
-9
NewRequestViewController.m
total/GTOApp/Business/NewRequestViewController.m
+48
-17
OrderDetailsViewController.m
total/GTOApp/Business/OrderDetailsViewController.m
+22
-19
QueryModel.h
total/GTOApp/Business/QueryModel.h
+46
-0
QueryModel.m
total/GTOApp/Business/QueryModel.m
+41
-0
SeeObtainViewController.m
total/GTOApp/Business/SeeObtainViewController.m
+16
-9
SeeOrderViewController.m
total/GTOApp/Business/SeeOrderViewController.m
+1
-1
SeePriceViewController.m
total/GTOApp/Business/SeePriceViewController.m
+83
-68
SeeRequestViewController.m
total/GTOApp/Business/SeeRequestViewController.m
+1
-3
PromptTableViewController.m
total/GTOApp/UserUtil/PromptTableViewController.m
+1
-0
Info.plist
total/Info.plist
+2
-2
GTOAppMacro.h
total/Macro/GTOAppMacro.h
+6
-9
No files found.
total.xcodeproj/project.pbxproj
View file @
174063ef
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
2933CC571D213377000F8EE6
/* OrderDetailsViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933CC561D213377000F8EE6
/* OrderDetailsViewController.m */
;
};
2933CC571D213377000F8EE6
/* OrderDetailsViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933CC561D213377000F8EE6
/* OrderDetailsViewController.m */
;
};
2933CC5B1D213AF2000F8EE6
/* SelectOrderViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933CC5A1D213AF2000F8EE6
/* SelectOrderViewController.m */
;
};
2933CC5B1D213AF2000F8EE6
/* SelectOrderViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933CC5A1D213AF2000F8EE6
/* SelectOrderViewController.m */
;
};
2933CC5F1D213C41000F8EE6
/* SelectOrderTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933CC5E1D213C41000F8EE6
/* SelectOrderTableViewCell.m */
;
};
2933CC5F1D213C41000F8EE6
/* SelectOrderTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2933CC5E1D213C41000F8EE6
/* SelectOrderTableViewCell.m */
;
};
293ADF491E23726D005C1AEB
/* NSDictionary+Category.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
293ADF481E23726D005C1AEB
/* NSDictionary+Category.m */
;
};
293ADF4D1E2372E8005C1AEB
/* QueryModel.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
293ADF4C1E2372E8005C1AEB
/* QueryModel.m */
;
};
294137691D50A17900AA86C3
/* SubTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294137681D50A17900AA86C3
/* SubTableViewCell.m */
;
};
294137691D50A17900AA86C3
/* SubTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294137681D50A17900AA86C3
/* SubTableViewCell.m */
;
};
294154321D1CFBDE00B3B761
/* total_objc_json_client.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294154311D1CFBDE00B3B761
/* total_objc_json_client.m */
;
};
294154321D1CFBDE00B3B761
/* total_objc_json_client.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294154311D1CFBDE00B3B761
/* total_objc_json_client.m */
;
};
294154361D1CFD3000B3B761
/* HttpRequestManager.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294154351D1CFD3000B3B761
/* HttpRequestManager.m */
;
};
294154361D1CFD3000B3B761
/* HttpRequestManager.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
294154351D1CFD3000B3B761
/* HttpRequestManager.m */
;
};
...
@@ -348,6 +350,10 @@
...
@@ -348,6 +350,10 @@
2933CC5A1D213AF2000F8EE6
/* SelectOrderViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SelectOrderViewController.m
;
sourceTree
=
"<group>"
;
};
2933CC5A1D213AF2000F8EE6
/* SelectOrderViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SelectOrderViewController.m
;
sourceTree
=
"<group>"
;
};
2933CC5D1D213C41000F8EE6
/* SelectOrderTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
SelectOrderTableViewCell.h
;
sourceTree
=
"<group>"
;
};
2933CC5D1D213C41000F8EE6
/* SelectOrderTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
SelectOrderTableViewCell.h
;
sourceTree
=
"<group>"
;
};
2933CC5E1D213C41000F8EE6
/* SelectOrderTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SelectOrderTableViewCell.m
;
sourceTree
=
"<group>"
;
};
2933CC5E1D213C41000F8EE6
/* SelectOrderTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SelectOrderTableViewCell.m
;
sourceTree
=
"<group>"
;
};
293ADF471E23726D005C1AEB
/* NSDictionary+Category.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSDictionary+Category.h"
;
sourceTree
=
"<group>"
;
};
293ADF481E23726D005C1AEB
/* NSDictionary+Category.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSDictionary+Category.m"
;
sourceTree
=
"<group>"
;
};
293ADF4B1E2372E8005C1AEB
/* QueryModel.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
QueryModel.h
;
sourceTree
=
"<group>"
;
};
293ADF4C1E2372E8005C1AEB
/* QueryModel.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
QueryModel.m
;
sourceTree
=
"<group>"
;
};
294137671D50A17900AA86C3
/* SubTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
SubTableViewCell.h
;
sourceTree
=
"<group>"
;
};
294137671D50A17900AA86C3
/* SubTableViewCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
SubTableViewCell.h
;
sourceTree
=
"<group>"
;
};
294137681D50A17900AA86C3
/* SubTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SubTableViewCell.m
;
sourceTree
=
"<group>"
;
};
294137681D50A17900AA86C3
/* SubTableViewCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SubTableViewCell.m
;
sourceTree
=
"<group>"
;
};
294154301D1CFBDE00B3B761
/* total_objc_json_client.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
total_objc_json_client.h
;
sourceTree
=
"<group>"
;
};
294154301D1CFBDE00B3B761
/* total_objc_json_client.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
total_objc_json_client.h
;
sourceTree
=
"<group>"
;
};
...
@@ -1034,6 +1040,15 @@
...
@@ -1034,6 +1040,15 @@
name
=
view
;
name
=
view
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
293ADF4A1E2372D5005C1AEB
/* Models */
=
{
isa
=
PBXGroup
;
children
=
(
293ADF4B1E2372E8005C1AEB
/* QueryModel.h */
,
293ADF4C1E2372E8005C1AEB
/* QueryModel.m */
,
);
name
=
Models
;
sourceTree
=
"<group>"
;
};
2941542E1D1CFB3300B3B761
/* JSONModel */
=
{
2941542E1D1CFB3300B3B761
/* JSONModel */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
...
@@ -1264,6 +1279,7 @@
...
@@ -1264,6 +1279,7 @@
children
=
(
children
=
(
29F143B31D18E1C800083975
/* SeePriceViewController.h */
,
29F143B31D18E1C800083975
/* SeePriceViewController.h */
,
29F143B41D18E1C800083975
/* SeePriceViewController.m */
,
29F143B41D18E1C800083975
/* SeePriceViewController.m */
,
293ADF4A1E2372D5005C1AEB
/* Models */
,
29F143D21D18F10000083975
/* view */
,
29F143D21D18F10000083975
/* view */
,
);
);
name
=
"SeePrice(查看油品价格)"
;
name
=
"SeePrice(查看油品价格)"
;
...
@@ -1882,6 +1898,8 @@
...
@@ -1882,6 +1898,8 @@
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
3506EDB01BA0194300897EBE
/* NSData+EncodeAdditions.h */
,
3506EDB01BA0194300897EBE
/* NSData+EncodeAdditions.h */
,
293ADF471E23726D005C1AEB
/* NSDictionary+Category.h */
,
293ADF481E23726D005C1AEB
/* NSDictionary+Category.m */
,
3506EDB11BA0194300897EBE
/* NSData+EncodeAdditions.m */
,
3506EDB11BA0194300897EBE
/* NSData+EncodeAdditions.m */
,
3506EDB21BA0194300897EBE
/* NSDate+FormatterAdditions.h */
,
3506EDB21BA0194300897EBE
/* NSDate+FormatterAdditions.h */
,
3506EDB31BA0194300897EBE
/* NSDate+FormatterAdditions.m */
,
3506EDB31BA0194300897EBE
/* NSDate+FormatterAdditions.m */
,
...
@@ -2792,6 +2810,7 @@
...
@@ -2792,6 +2810,7 @@
3506EDD71BA0194300897EBE
/* UIApplication+CheckFirstRun.m in Sources */
,
3506EDD71BA0194300897EBE
/* UIApplication+CheckFirstRun.m in Sources */
,
35EB8E681BE32C2800411E45
/* GTOLicenceBoltView.m in Sources */
,
35EB8E681BE32C2800411E45
/* GTOLicenceBoltView.m in Sources */
,
35E3BB191BF087AE0081232D
/* GTOAlertInfoPatrolPlanViewController.m in Sources */
,
35E3BB191BF087AE0081232D
/* GTOAlertInfoPatrolPlanViewController.m in Sources */
,
293ADF491E23726D005C1AEB
/* NSDictionary+Category.m in Sources */
,
29BE72341D4077BE001D60EE
/* NoteTableViewCell.m in Sources */
,
29BE72341D4077BE001D60EE
/* NoteTableViewCell.m in Sources */
,
3506ED5C1BA0164E00897EBE
/* IBTUITextField.m in Sources */
,
3506ED5C1BA0164E00897EBE
/* IBTUITextField.m in Sources */
,
35EB8E621BE3208500411E45
/* GTOLicence.m in Sources */
,
35EB8E621BE3208500411E45
/* GTOLicence.m in Sources */
,
...
@@ -2805,6 +2824,7 @@
...
@@ -2805,6 +2824,7 @@
35B2E59F1BAC171F00AB8582
/* ICRPlaceholderTextView.m in Sources */
,
35B2E59F1BAC171F00AB8582
/* ICRPlaceholderTextView.m in Sources */
,
35B2E58F1BAC140500AB8582
/* ICRAttachmentUnit.m in Sources */
,
35B2E58F1BAC140500AB8582
/* ICRAttachmentUnit.m in Sources */
,
35D66A401BE75670004476F0
/* GTOLicenceResultTopCellContentView.m in Sources */
,
35D66A401BE75670004476F0
/* GTOLicenceResultTopCellContentView.m in Sources */
,
293ADF4D1E2372E8005C1AEB
/* QueryModel.m in Sources */
,
3506ED4B1BA0164E00897EBE
/* IBTTableViewUserInfo.m in Sources */
,
3506ED4B1BA0164E00897EBE
/* IBTTableViewUserInfo.m in Sources */
,
35B2E5761BAC064600AB8582
/* GTOPatrolPlanInfoItemView.m in Sources */
,
35B2E5761BAC064600AB8582
/* GTOPatrolPlanInfoItemView.m in Sources */
,
29603D831D1CD52B00951670
/* BookingTableViewCell.m in Sources */
,
29603D831D1CD52B00951670
/* BookingTableViewCell.m in Sources */
,
...
@@ -3124,8 +3144,8 @@
...
@@ -3124,8 +3144,8 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -3142,7 +3162,7 @@
...
@@ -3142,7 +3162,7 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
"
c2d977b5-adac-45f6-bfbb-3a53616b54d7
"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
...
@@ -3157,8 +3177,8 @@
...
@@ -3157,8 +3177,8 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
...
@@ -3175,7 +3195,7 @@
...
@@ -3175,7 +3195,7 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
"
c2d977b5-adac-45f6-bfbb-3a53616b54d7
"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
...
...
total/GTOApp/Business/NewObtainViewController.m
View file @
174063ef
...
@@ -556,6 +556,9 @@
...
@@ -556,6 +556,9 @@
#pragma mark -删除区
#pragma mark -删除区
-
(
void
)
deleteSectionAction
:
(
UIButton
*
)
btn
-
(
void
)
deleteSectionAction
:
(
UIButton
*
)
btn
{
{
if
(
self
.
tankNumber
<=
1
)
{
[
IBTLoadingView
showTextOnly
:
@"默认保留一个油罐"
];
return
;
}
NSInteger
index
=
btn
.
tag
;
NSInteger
index
=
btn
.
tag
;
UIAlertController
*
alertView
=
[
UIAlertController
alertControllerWithTitle
:
@"提示"
message
:
@"请确认是否删除"
preferredStyle
:
UIAlertControllerStyleAlert
];
UIAlertController
*
alertView
=
[
UIAlertController
alertControllerWithTitle
:
@"提示"
message
:
@"请确认是否删除"
preferredStyle
:
UIAlertControllerStyleAlert
];
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
...
@@ -1044,10 +1047,10 @@
...
@@ -1044,10 +1047,10 @@
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
[
orderBill
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
[
orderBill
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
if
(
!
boolValue
)
{
if
(
!
boolValue
)
{
block
(
returnValue
[
@"data"
][
@"uuid"
]);
return
;
block
(
returnValue
[
@"data"
][
@"uuid"
]);
return
;
}
}
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
SeeObtainViewController
*
orderBill
=
[
weakSelf
.
storyboard
instantiateViewControllerWithIdentifier
:
@"SeeObtainViewController"
];
SeeObtainViewController
*
orderBill
=
[
weakSelf
.
storyboard
instantiateViewControllerWithIdentifier
:
@"SeeObtainViewController"
];
orderBill
.
orderUUIDString
=
returnValue
[
@"data"
][
@"uuid"
];
orderBill
.
orderUUIDString
=
returnValue
[
@"data"
][
@"uuid"
];
...
...
total/GTOApp/Business/NewOrderViewController.m
View file @
174063ef
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
//油站经营类型
//油站经营类型
order
.
operatingType
=
self
.
recordSelectGasStation
[
@"operatingType"
];
order
.
operatingType
=
self
.
recordSelectGasStation
[
@"operatingType"
];
//订单状态
//订单状态
order
.
state
=
boolValue
?
@"initial"
:
@"submit
"
;
order
.
state
=
@"initial
"
;
//所属业主公司
//所属业主公司
UCN
*
company
=
[[
UCN
alloc
]
init
];
UCN
*
company
=
[[
UCN
alloc
]
init
];
company
.
code
=
user
.
orgCode
;
company
.
code
=
user
.
orgCode
;
...
@@ -416,14 +416,7 @@
...
@@ -416,14 +416,7 @@
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
saveSuccess
(
returnValue
[
@"data"
],
order
);
saveSuccess
(
returnValue
[
@"data"
],
order
);
if
(
!
boolValue
)
return
;
//提交调用保存时不需要跳转到详情
if
(
!
boolValue
)
return
;
//提交调用保存时不需要跳转到详情
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
weakSelf
gotoOrderDetail
:
returnValue
[
@"data"
][
@"uuid"
]];
OrderDetailsViewController
*
orderDetail
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"OrderDetailsViewController"
];
orderDetail
.
orderUUIDString
=
returnValue
[
@"data"
][
@"uuid"
];
orderDetail
.
oilTypeListDatasArray
=
self
.
oilTypeListDatasArray
;
orderDetail
.
title
=
@"订油单详情"
;
orderDetail
.
boolValue
=
YES
;
[
weakSelf
PushViewController
:
orderDetail
animated
:
YES
];
});
}
else
{
}
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
}
}
...
@@ -434,6 +427,18 @@
...
@@ -434,6 +427,18 @@
}];
}];
}
}
#pragma mark -订单详情
-
(
void
)
gotoOrderDetail
:
(
NSString
*
)
uuid
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
OrderDetailsViewController
*
orderDetail
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"OrderDetailsViewController"
];
orderDetail
.
orderUUIDString
=
uuid
;
orderDetail
.
oilTypeListDatasArray
=
self
.
oilTypeListDatasArray
;
orderDetail
.
title
=
@"订油单详情"
;
orderDetail
.
boolValue
=
YES
;
[
self
PushViewController
:
orderDetail
animated
:
YES
];
});
}
#pragma mark -提交订油单
#pragma mark -提交订油单
-
(
void
)
commitOilOrder
-
(
void
)
commitOilOrder
...
@@ -470,6 +475,7 @@
...
@@ -470,6 +475,7 @@
}
else
{
}
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
weakSelf
gotoOrderDetail
:
dict
[
@"uuid"
]];
}
}
}
withFailed
:^
(
NSError
*
failed
)
{
}
withFailed
:^
(
NSError
*
failed
)
{
...
...
total/GTOApp/Business/NewRequestViewController.m
View file @
174063ef
...
@@ -270,6 +270,16 @@
...
@@ -270,6 +270,16 @@
{
{
TypeTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"TypeTableViewCell"
forIndexPath
:
indexPath
];
TypeTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"TypeTableViewCell"
forIndexPath
:
indexPath
];
cell
.
titleLabe
.
text
=
@"配送区域:"
;
cell
.
titleLabe
.
text
=
@"配送区域:"
;
//只有一个配送区域情况
if
(
self
.
distributionArray
.
count
==
1
)
{
self
.
distributionDict
=
[
self
.
distributionArray
firstObject
];
cell
.
contentLabe
.
text
=
self
.
distributionDict
[
@"name"
];
}
//无配送区域情况
if
(
!
self
.
distributionArray
.
count
)
{
cell
.
contentLabe
.
text
=
@"无"
;
}
cell
.
userInteractionEnabled
=
self
.
distributionArray
.
count
>
1
;
if
(
self
.
isSaveDetails
)
{
if
(
self
.
isSaveDetails
)
{
cell
.
contentLabe
.
text
=
self
.
orderDetails
.
deliveryArea
.
name
;
cell
.
contentLabe
.
text
=
self
.
orderDetails
.
deliveryArea
.
name
;
}
}
...
@@ -380,15 +390,20 @@
...
@@ -380,15 +390,20 @@
break
;
break
;
case
1
:
//配送区域
case
1
:
//配送区域
{
{
TypeTableViewCell
*
cell
=
[
tableView
cellForRowAtIndexPath
:
indexPath
];
TypeTableViewCell
*
cell
=
[
tableView
cellForRowAtIndexPath
:
indexPath
];
if
(
!
[
ICRUserUtil
sharedInstance
].
storeArray
.
count
)
{
[
IBTLoadingView
showTextOnly
:
@"当前用户没有所属油站,不能选择配送区域"
];
return
;
}
PromptTableViewController
*
selectArea
=
[[
PromptTableViewController
alloc
]
init
];
PromptTableViewController
*
selectArea
=
[[
PromptTableViewController
alloc
]
init
];
selectArea
.
title
=
@"选择配送区域"
;
selectArea
.
title
=
@"选择配送区域"
;
NSMutableArray
*
tempArray
=
[
NSMutableArray
array
];
NSMutableArray
*
tempArray
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
dict
in
self
.
distributionArray
)
{
for
(
NSDictionary
*
dict
in
self
.
distributionArray
)
{
if
(
!
[
tempArray
containsObject
:
dict
[
@"name"
]])
{
[
tempArray
addObject
:
dict
[
@"name"
]];
[
tempArray
addObject
:
dict
[
@"name"
]];
}
}
}
selectArea
.
datasArray
=
tempArray
;
selectArea
.
datasArray
=
tempArray
;
//选择配送区后回调
//选择配送区后回调
[
selectArea
setSelectCellTitle
:
^
(
NSString
*
title
,
NSInteger
cellindex
)
{
[
selectArea
setSelectCellTitle
:
^
(
NSString
*
title
,
NSInteger
cellindex
)
{
cell
.
contentLabe
.
text
=
title
?
title
:
@"请选择"
;
cell
.
contentLabe
.
text
=
title
?
title
:
@"请选择"
;
...
@@ -466,8 +481,15 @@
...
@@ -466,8 +481,15 @@
#pragma mark -UITextField监听
#pragma mark -UITextField监听
-
(
void
)
changeTextfieldString
:
(
UITextField
*
)
textField
-
(
void
)
changeTextfieldString
:
(
UITextField
*
)
textField
{
{
if
(
!
self
.
oilPrice
.
records
.
count
)
{
[
IBTLoadingView
showTextOnly
:
@"油品价格异常"
];
textField
.
text
=
nil
;
return
;
}
if
(
!
[
self
isPureInt
:
textField
.
text
])
{
if
(
!
[
self
isPureInt
:
textField
.
text
])
{
[
IBTLoadingView
showTextOnly
:
@"只支持整数、浮点数"
];
[
IBTLoadingView
showTextOnly
:
@"只支持整数、浮点数"
];
textField
.
text
=
nil
;
return
;
}
}
//申请总额
//申请总额
NumberTableViewCell
*
numberCell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
]];
NumberTableViewCell
*
numberCell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
]];
...
@@ -501,6 +523,7 @@
...
@@ -501,6 +523,7 @@
}
}
TimeSelectTableViewCell
*
cell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
2
inSection
:
0
]];
TimeSelectTableViewCell
*
cell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
2
inSection
:
0
]];
DepotRequestBill
*
orderBill
=
[[
DepotRequestBill
alloc
]
init
];
DepotRequestBill
*
orderBill
=
[[
DepotRequestBill
alloc
]
init
];
orderBill
.
version
=
self
.
orderDetails
.
version
;
ICRUserUtil
*
user
=
[
ICRUserUtil
sharedInstance
];
ICRUserUtil
*
user
=
[
ICRUserUtil
sharedInstance
];
//状态
//状态
orderBill
.
state
=
@"initial"
;
orderBill
.
state
=
@"initial"
;
...
@@ -543,13 +566,13 @@
...
@@ -543,13 +566,13 @@
time
.
endDateTime
=
[
NSString
stringWithFormat
:
@"%@ 23:59:59"
,[
cell
.
endTimeButton
currentTitle
]];
time
.
endDateTime
=
[
NSString
stringWithFormat
:
@"%@ 23:59:59"
,[
cell
.
endTimeButton
currentTitle
]];
orderBill
.
deliveryTime
=
time
;
orderBill
.
deliveryTime
=
time
;
//申请价格
//申请价格
orderBill
.
reqPrice
=
[
NSNumber
numberWith
Float
:[[
self
.
oilPrice
.
records
firstObject
][
@"salePrice"
]
doubleValue
]];
orderBill
.
reqPrice
=
[
NSNumber
numberWith
Double
:[[
self
.
oilPrice
.
records
firstObject
][
@"salePrice"
]
doubleValue
]];
NumberTableViewCell
*
numberCell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
]];
NumberTableViewCell
*
numberCell
=
[
self
.
createWarehouseTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
5
inSection
:
0
]];
if
([
orderBill
.
reqPrice
isEqualToNumber
:
@0
])
{
if
([
orderBill
.
reqPrice
isEqualToNumber
:
@0
])
{
[
IBTLoadingView
showTextOnly
:
@"价格异常"
];
return
;
[
IBTLoadingView
showTextOnly
:
@"价格异常"
];
return
;
}
}
//申请数量
//申请数量
orderBill
.
quantity
=
[
NSNumber
numberWith
Float
:[
numberCell
.
createNumberField
.
text
doubleValue
]];
orderBill
.
quantity
=
[
NSNumber
numberWith
Double
:[
numberCell
.
createNumberField
.
text
doubleValue
]];
if
([
orderBill
.
quantity
isEqualToNumber
:
@0
])
{
if
([
orderBill
.
quantity
isEqualToNumber
:
@0
])
{
[
IBTLoadingView
showTextOnly
:
@"数量异常"
];
return
;
[
IBTLoadingView
showTextOnly
:
@"数量异常"
];
return
;
}
}
...
@@ -563,18 +586,12 @@
...
@@ -563,18 +586,12 @@
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
[
orderBill
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
[
orderBill
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
(
!
isPushDetails
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
block
(
returnValue
[
@"data"
],
orderBill
);
return
;
}
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
block
(
returnValue
[
@"data"
],
orderBill
);
[
weakSelf
saveOrderSuccess
:
returnValue
[
@"data"
][
@"uuid"
]];
if
(
!
isPushDetails
)
return
;
//是否需要跳转太详情页
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
NewRequestViewController
*
details
=
[
weakSelf
.
storyboard
instantiateViewControllerWithIdentifier
:
@"NewRequestViewController"
];
details
.
orderUUID
=
returnValue
[
@"data"
][
@"uuid"
];
details
.
isSaveDetails
=
YES
;
details
.
title
=
@"修改建仓单"
;
details
.
oilTypeDict
=
weakSelf
.
oilTypeDict
;
details
.
distributionDict
=
weakSelf
.
distributionDict
;
[
weakSelf
PushViewController
:
details
animated
:
YES
];
});
}
}
else
{
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
...
@@ -586,11 +603,24 @@
...
@@ -586,11 +603,24 @@
}];
}];
}
}
#pragma mark -保存成功
-
(
void
)
saveOrderSuccess
:
(
NSString
*
)
uuidString
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
NewRequestViewController
*
details
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"NewRequestViewController"
];
details
.
orderUUID
=
uuidString
;
details
.
isSaveDetails
=
YES
;
details
.
title
=
@"建仓申请单明细"
;
details
.
oilTypeDict
=
self
.
oilTypeDict
;
details
.
distributionDict
=
self
.
distributionDict
;
[
self
PushViewController
:
details
animated
:
YES
];
});
}
#pragma mark -提交建仓单
#pragma mark -提交建仓单
-
(
void
)
commitOrder
-
(
void
)
commitOrder
{
{
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
saveOrderBill
:
NO
returnSaveSateBlock
:
^
(
NSDictionary
*
dict
,
DepotRequestBill
*
orderbBill
)
{
[
self
saveOrderBill
:
NO
returnSaveSateBlock
:
^
(
NSDictionary
*
dict
,
DepotRequestBill
*
orderbBill
)
{
[
IBTLoadingView
showProgressLabel
:
@"提交中..."
];
[
IBTLoadingView
showProgressLabel
:
@"提交中..."
];
...
@@ -615,6 +645,7 @@
...
@@ -615,6 +645,7 @@
}
else
{
}
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
weakSelf
saveOrderSuccess
:
dict
[
@"uuid"
]];
}
}
}
withFailed
:^
(
NSError
*
failed
)
{
}
withFailed
:^
(
NSError
*
failed
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
[
IBTLoadingView
hideHUDWithText
:
nil
];
...
...
total/GTOApp/Business/OrderDetailsViewController.m
View file @
174063ef
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
//油站经营类型
//油站经营类型
order
.
operatingType
=
self
.
orderDetails
.
operatingType
;
order
.
operatingType
=
self
.
orderDetails
.
operatingType
;
//订单状态
//订单状态
order
.
state
=
boolValue
?
@"initial"
:
@"submit
"
;
order
.
state
=
@"initial
"
;
order
.
version
=
self
.
orderDetails
.
version
;
order
.
version
=
self
.
orderDetails
.
version
;
order
.
uuid
=
self
.
orderDetails
.
uuid
;
order
.
uuid
=
self
.
orderDetails
.
uuid
;
order
.
billnumber
=
self
.
orderDetails
.
billnumber
;
order
.
billnumber
=
self
.
orderDetails
.
billnumber
;
...
@@ -415,17 +415,13 @@
...
@@ -415,17 +415,13 @@
NSDictionary
*
orderDict
=
[
order
toDictionary
];
NSDictionary
*
orderDict
=
[
order
toDictionary
];
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
orderDict
withSuccess
:^
(
id
returnValue
)
{
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
orderDict
withSuccess
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
(
!
boolValue
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
saveSuccess
(
returnValue
[
@"data"
],
order
);
return
;
}
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
saveSuccess
(
returnValue
[
@"data"
],
order
);
[
weakSelf
gotoOrderDetail
:
returnValue
[
@"data"
][
@"uuid"
]];
if
(
!
boolValue
)
return
;
//提交调用保存时不需要跳转到详情
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
OrderDetailsViewController
*
orderDetail
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"OrderDetailsViewController"
];
orderDetail
.
orderUUIDString
=
returnValue
[
@"data"
][
@"uuid"
];
orderDetail
.
oilTypeListDatasArray
=
self
.
oilTypeListDatasArray
;
orderDetail
.
title
=
@"订油单详情"
;
orderDetail
.
boolValue
=
YES
;
[
weakSelf
PushViewController
:
orderDetail
animated
:
YES
];
});
}
else
}
else
{
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
...
@@ -436,6 +432,19 @@
...
@@ -436,6 +432,19 @@
}];
}];
}
}
#pragma mark -订单详情
-
(
void
)
gotoOrderDetail
:
(
NSString
*
)
uuid
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
OrderDetailsViewController
*
orderDetail
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"OrderDetailsViewController"
];
orderDetail
.
orderUUIDString
=
uuid
;
orderDetail
.
oilTypeListDatasArray
=
self
.
oilTypeListDatasArray
;
orderDetail
.
title
=
@"订油单详情"
;
orderDetail
.
boolValue
=
YES
;
[
self
PushViewController
:
orderDetail
animated
:
YES
];
});
}
#pragma mark -提交订油单
#pragma mark -提交订油单
-
(
void
)
commitOilOrder
-
(
void
)
commitOilOrder
...
@@ -462,17 +471,11 @@
...
@@ -462,17 +471,11 @@
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
[
IBTLoadingView
hideHUDWithText
:
@"提交成功"
];
[
IBTLoadingView
hideHUDWithText
:
@"提交成功"
];
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
weakSelf
gotoOrderDetail
:
dict
[
@"uuid"
]];
OrderDetailsViewController
*
orderDetail
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"OrderDetailsViewController"
];
orderDetail
.
orderUUIDString
=
dict
[
@"uuid"
];
orderDetail
.
oilTypeListDatasArray
=
self
.
oilTypeListDatasArray
;
orderDetail
.
title
=
@"订油单详情"
;
orderDetail
.
boolValue
=
YES
;
[
weakSelf
PushViewController
:
orderDetail
animated
:
YES
];
});
}
else
{
}
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
weakSelf
gotoOrderDetail
:
dict
[
@"uuid"
]];
}
}
}
withFailed
:^
(
NSError
*
failed
)
{
}
withFailed
:^
(
NSError
*
failed
)
{
...
...
total/GTOApp/Business/QueryModel.h
0 → 100644
View file @
174063ef
//
// QueryModel.h
// total
//
// Created by 曹云霄 on 2017/1/9.
// Copyright © 2017年 Delevin. All rights reserved.
//
#import <JSONModel/JSONModel.h>
@class
Orders
,
Condition
;
@
protocol
Orders
@end
@protocol
Condition
@end
@interface
QueryModel
:
JSONModel
@property
(
nonatomic
,
strong
)
NSArray
<
Orders
>
*
orders
;
@property
(
nonatomic
,
assign
)
NSInteger
pageNumber
;
@property
(
nonatomic
,
assign
)
NSInteger
pageSize
;
@property
(
nonatomic
,
strong
)
NSArray
<
Condition
>
*
conditions
;
@end
@interface
Orders
:
JSONModel
@property
(
nonatomic
,
copy
)
NSString
*
field
;
@property
(
nonatomic
,
copy
)
NSString
*
direction
;
@end
@interface
Condition
:
JSONModel
@property
(
nonatomic
,
copy
)
NSString
*
operation
;
@property
(
nonatomic
,
strong
)
NSArray
<
NSString
*>*
parameters
;
@end
total/GTOApp/Business/QueryModel.m
0 → 100644
View file @
174063ef
//
// QueryModel.m
// total
//
// Created by 曹云霄 on 2017/1/9.
// Copyright © 2017年 Delevin. All rights reserved.
//
#import "QueryModel.h"
@implementation
QueryModel
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
Orders
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
Condition
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
total/GTOApp/Business/SeeObtainViewController.m
View file @
174063ef
...
@@ -1003,22 +1003,16 @@
...
@@ -1003,22 +1003,16 @@
self
.
orderDetails
.
remark
=
self
.
userInputArray
[
ONE
][
9
];
self
.
orderDetails
.
remark
=
self
.
userInputArray
[
ONE
][
9
];
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/receiveBill/save?operId=%@&operName=%@&time=%@"
,
HTTP_REST_API_BASE_URL
,
user
.
f_user_uuid
,
user
.
f_user_name
,[
GTOCommonTools
GetCurrenttime
]];
NSString
*
urlString
=
[
NSString
stringWithFormat
:
@"%@/receiveBill/save?operId=%@&operName=%@&time=%@"
,
HTTP_REST_API_BASE_URL
,
user
.
f_user_uuid
,
user
.
f_user_name
,[
GTOCommonTools
GetCurrenttime
]];
NSString
*
string
=
[
urlString
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSString
*
string
=
[
urlString
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSLog
(
@"%@"
,[
self
.
orderDetails
toDictionary
]);
[
IBTLoadingView
showProgressLabel
:
@"保存中..."
];
[
IBTLoadingView
showProgressLabel
:
@"保存中..."
];
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
[
self
.
orderDetails
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
[
HttpRequestManager
requestNetworkwithURL
:
string
withRequestType
:
ZERO
withParameter
:
[
self
.
orderDetails
toDictionary
]
withSuccess
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
if
([
returnValue
[
@"success"
]
isEqualToNumber
:
@1
])
{
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
if
(
!
boolValue
)
{
if
(
!
boolValue
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
bolck
(
returnValue
[
@"data"
][
@"uuid"
]);
return
;
bolck
(
returnValue
[
@"data"
][
@"uuid"
]);
return
;
}
}
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
IBTLoadingView
hideHUDWithText
:
@"保存成功"
];
SeeObtainViewController
*
orderBill
=
[
weakSelf
.
storyboard
instantiateViewControllerWithIdentifier
:
@"SeeObtainViewController"
];
[
weakSelf
saveOrderSuccess
:
returnValue
[
@"data"
][
@"uuid"
]];
orderBill
.
orderUUIDString
=
returnValue
[
@"data"
][
@"uuid"
];
orderBill
.
storeDict
=
self
.
storeDict
;
//油站
orderBill
.
isReturnRootVC
=
YES
;
[
weakSelf
PushViewController
:
orderBill
animated
:
YES
];
});
}
else
{
}
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
}
}
...
@@ -1053,6 +1047,7 @@
...
@@ -1053,6 +1047,7 @@
}
else
{
}
else
{
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
IBTLoadingView
hideHUDWithText
:
returnValue
[
@"message"
]];
[
weakSelf
saveOrderSuccess
:
uuidString
];
}
}
}
withFailed
:^
(
NSError
*
failed
)
{
}
withFailed
:^
(
NSError
*
failed
)
{
...
@@ -1063,6 +1058,18 @@
...
@@ -1063,6 +1058,18 @@
}
isPushDetails
:
NO
];
}
isPushDetails
:
NO
];
}
}
#pragma mark -保存收油单成功
-
(
void
)
saveOrderSuccess
:
(
NSString
*
)
uuidString
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
SeeObtainViewController
*
orderBill
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"SeeObtainViewController"
];
orderBill
.
orderUUIDString
=
uuidString
;
orderBill
.
storeDict
=
self
.
storeDict
;
//油站
orderBill
.
isReturnRootVC
=
YES
;
[
self
PushViewController
:
orderBill
animated
:
YES
];
});
}
#pragma mark -返回提示信息
#pragma mark -返回提示信息
-
(
NSString
*
)
returnPromptInformation
:
(
NSInteger
)
index
-
(
NSString
*
)
returnPromptInformation
:
(
NSInteger
)
index
...
...
total/GTOApp/Business/SeeOrderViewController.m
View file @
174063ef
...
@@ -319,7 +319,7 @@ typedef enum : NSUInteger {
...
@@ -319,7 +319,7 @@ typedef enum : NSUInteger {
NewRequestViewController
*
details
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"NewRequestViewController"
];
NewRequestViewController
*
details
=
[
self
.
storyboard
instantiateViewControllerWithIdentifier
:
@"NewRequestViewController"
];
details
.
orderUUID
=
dict
[
@"uuid"
];
details
.
orderUUID
=
dict
[
@"uuid"
];
details
.
isSaveDetails
=
YES
;
details
.
isSaveDetails
=
YES
;
details
.
title
=
@"
修改建仓单
"
;
details
.
title
=
@"
建仓申请单明细
"
;
details
.
oilTypeDict
=
dict
[
@"item"
];
details
.
oilTypeDict
=
dict
[
@"item"
];
details
.
distributionDict
=
dict
[
@"deliveryArea"
];
details
.
distributionDict
=
dict
[
@"deliveryArea"
];
[
self
PushViewController
:
details
animated
:
YES
];
[
self
PushViewController
:
details
animated
:
YES
];
...
...
total/GTOApp/Business/SeePriceViewController.m
View file @
174063ef
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/SeeRequestViewController.m
View file @
174063ef
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
cell
.
establishWarehouseUnitLabe
.
text
=
self
.
orderDetails
.
org
.
name
;
cell
.
establishWarehouseUnitLabe
.
text
=
self
.
orderDetails
.
org
.
name
;
cell
.
establishName
.
text
=
self
.
orderDetails
.
createInfo
.
operator
.
operName
;
cell
.
establishName
.
text
=
self
.
orderDetails
.
createInfo
.
operator
.
operName
;
cell
.
establishDate
.
text
=
self
.
orderDetails
.
createInfo
.
time
;
cell
.
establishDate
.
text
=
self
.
orderDetails
.
createInfo
.
time
;
if
([
self
.
orderDetails
.
stat
e
isEqualToString
:
@"general"
])
{
if
([
self
.
orderDetails
.
typ
e
isEqualToString
:
@"general"
])
{
cell
.
typeLabe
.
text
=
@"普通"
;
cell
.
typeLabe
.
text
=
@"普通"
;
}
}
cell
.
distributionLabe
.
text
=
self
.
orderDetails
.
deliveryArea
.
name
;
cell
.
distributionLabe
.
text
=
self
.
orderDetails
.
deliveryArea
.
name
;
...
@@ -324,8 +324,6 @@
...
@@ -324,8 +324,6 @@
options
:
WYPopoverAnimationOptionFadeWithScale
];
options
:
WYPopoverAnimationOptionFadeWithScale
];
}
}
#pragma mark -删除或者作废后返回此订单UUID
#pragma mark -删除或者作废后返回此订单UUID
-
(
void
)
returnUUIDsingAfterDeleteOrCancel
:
(
BOOL
)
isDelete
-
(
void
)
returnUUIDsingAfterDeleteOrCancel
:
(
BOOL
)
isDelete
{
{
...
...
total/GTOApp/UserUtil/PromptTableViewController.m
View file @
174063ef
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
#pragma mark -确定
#pragma mark -确定
-
(
void
)
completeButtonClick
:
(
UIBarButtonItem
*
)
item
-
(
void
)
completeButtonClick
:
(
UIBarButtonItem
*
)
item
{
{
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
if
(
self
.
selectTitle
||
self
.
currentTitle
)
{
if
(
self
.
selectTitle
||
self
.
currentTitle
)
{
if
(
self
.
selectCellTitle
)
{
if
(
self
.
selectCellTitle
)
{
self
.
selectCellTitle
(
self
.
selectTitle
?
self
.
selectTitle
:
self
.
currentTitle
,
self
.
indexpathSelect
.
row
);
self
.
selectCellTitle
(
self
.
selectTitle
?
self
.
selectTitle
:
self
.
currentTitle
,
self
.
indexpathSelect
.
row
);
...
...
total/Info.plist
View file @
174063ef
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.
7
<
/string
>
<
string
>
1.2.
9
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.2.
7
<
/string
>
<
string
>
1.2.
9
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
...
...
total/Macro/GTOAppMacro.h
View file @
174063ef
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#import "NSData+EncodeAdditions.h"
#import "NSData+EncodeAdditions.h"
#import "UIScrollView+Content.h"
#import "UIScrollView+Content.h"
#import "GTOCommonTools.h"
#import "GTOCommonTools.h"
#import "NSDictionary+Category.h"
...
@@ -78,21 +79,17 @@
...
@@ -78,21 +79,17 @@
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:7580/total-server/rest" //
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:7580/total-server/rest" //
//#define HTTP_LOCAL_BASE_URL @"http://218.244.151.129:7580"
//#define HTTP_LOCAL_BASE_URL @"http://218.244.151.129:7580"
//
//
正式环境
//正式环境
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:7080/total-server/rest"
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:7080/total-server/rest"
//#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
//#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
//测试环境
//测试环境
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8180/total-server/rest"
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8180/total-server/rest"
//#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:8180"
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:8180"
//
//测试环境
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8080/total-server/rest"
//开发环境
//开发环境
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
//
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
//
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
#define HTTP_WEATHER_URL @"http://apis.baidu.com/heweather/weather/free"
#define HTTP_WEATHER_URL @"http://apis.baidu.com/heweather/weather/free"
...
...
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