Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Car-iOS-Merchant
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
张杰
Car-iOS-Merchant
Commits
cd2eb4ae
Commit
cd2eb4ae
authored
8 years ago
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对账
parent
ee92fd8c
master
No related merge requests found
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
1297 additions
and
368 deletions
+1297
-368
Car Release.plist
Car Release.plist
+2
-2
project.pbxproj
Car.xcodeproj/project.pbxproj
+10
-10
Contents.json
...ssets.xcassets/main/radious_select.imageset/Contents.json
+23
-0
radious_select.png
....xcassets/main/radious_select.imageset/radious_select.png
+0
-0
radious_select@2x.png
...assets/main/radious_select.imageset/radious_select@2x.png
+0
-0
radious_select@3x.png
...assets/main/radious_select.imageset/radious_select@3x.png
+0
-0
Contents.json
...ets.xcassets/main/radious_unselect.imageset/Contents.json
+23
-0
radious_unselect.png
...ssets/main/radious_unselect.imageset/radious_unselect.png
+0
-0
radious_unselect@2x.png
...ts/main/radious_unselect.imageset/radious_unselect@2x.png
+0
-0
radious_unselect@3x.png
...ts/main/radious_unselect.imageset/radious_unselect@3x.png
+0
-0
Main.storyboard
Car/Base.lproj/Main.storyboard
+301
-53
AccountRecordViewController.m
...ss/Account/ViewConstrollers/AccountRecordViewController.m
+3
-0
AccountViewController.m
...odeClass/Account/ViewConstrollers/AccountViewController.m
+9
-3
OrderListTableViewCell.h
Car/CodeClass/Main/Cells/OrderListTableViewCell.h
+2
-1
OrderListTableViewCell.m
Car/CodeClass/Main/Cells/OrderListTableViewCell.m
+29
-7
OrderListModel.h
Car/CodeClass/Main/Models/OrderListModel.h
+2
-0
OrderListModel.m
Car/CodeClass/Main/Models/OrderListModel.m
+12
-0
MainViewController.m
Car/CodeClass/Main/ViewControllers/MainViewController.m
+210
-80
OrderListFilterViewController.m
...lass/Main/ViewControllers/OrderListFilterViewController.m
+86
-51
Info.plist
Car/Info.plist
+2
-2
PrefixHeader.pch
Car/PrefixHeader.pch
+1
-1
URL.h
Car/URL.h
+2
-1
car_objc_json_client.h
Car/car_objc_json_client.h
+438
-115
car_objc_json_client.m
Car/car_objc_json_client.m
+142
-42
No files found.
Car Release.plist
View file @
cd2eb4ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<
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.0.
2
<
/string
>
<
string
>
1.0.
4
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0.
2
<
/string
>
<
string
>
1.0.
4
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
wechat
<
/string
>
<
string
>
wechat
<
/string
>
...
...
This diff is collapsed.
Click to expand it.
Car.xcodeproj/project.pbxproj
View file @
cd2eb4ae
...
@@ -812,7 +812,7 @@
...
@@ -812,7 +812,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
8F97C2B71E0CC4BE00D8A57D
=
{
8F97C2B71E0CC4BE00D8A57D
=
{
CreatedOnToolsVersion
=
8.1
;
CreatedOnToolsVersion
=
8.1
;
DevelopmentTeam
=
W54V2VB863
;
DevelopmentTeam
=
3KJ9G3LC6T
;
ProvisioningStyle
=
Automatic
;
ProvisioningStyle
=
Automatic
;
SystemCapabilities
=
{
SystemCapabilities
=
{
com.apple.BackgroundModes
=
{
com.apple.BackgroundModes
=
{
...
@@ -836,7 +836,7 @@
...
@@ -836,7 +836,7 @@
TestTargetID
=
8F97C2B71E0CC4BE00D8A57D
;
TestTargetID
=
8F97C2B71E0CC4BE00D8A57D
;
};
};
8FFE3DDA1E14AC6700BEB6A6
=
{
8FFE3DDA1E14AC6700BEB6A6
=
{
DevelopmentTeam
=
W54V2VB863
;
DevelopmentTeam
=
3KJ9G3LC6T
;
};
};
};
};
};
};
...
@@ -1264,7 +1264,7 @@
...
@@ -1264,7 +1264,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
@@ -1276,7 +1276,7 @@
...
@@ -1276,7 +1276,7 @@
INFOPLIST_FILE
=
Car/Info.plist
;
INFOPLIST_FILE
=
Car/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
};
...
@@ -1288,7 +1288,7 @@
...
@@ -1288,7 +1288,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
@@ -1300,7 +1300,7 @@
...
@@ -1300,7 +1300,7 @@
INFOPLIST_FILE
=
Car/Info.plist
;
INFOPLIST_FILE
=
Car/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
};
...
@@ -1376,7 +1376,7 @@
...
@@ -1376,7 +1376,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
@@ -1387,7 +1387,7 @@
...
@@ -1387,7 +1387,7 @@
INFOPLIST_FILE
=
"$(SRCROOT)/Car Release.plist"
;
INFOPLIST_FILE
=
"$(SRCROOT)/Car Release.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
};
...
@@ -1399,7 +1399,7 @@
...
@@ -1399,7 +1399,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Car/Car.entitlements
;
DEVELOPMENT_TEAM
=
W54V2VB863
;
DEVELOPMENT_TEAM
=
3KJ9G3LC6T
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Car/PrefixHeader.pch"
;
...
@@ -1410,7 +1410,7 @@
...
@@ -1410,7 +1410,7 @@
INFOPLIST_FILE
=
"$(SRCROOT)/Car Release.plist"
;
INFOPLIST_FILE
=
"$(SRCROOT)/Car Release.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore
.car
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
czt
.car
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(SRCROOT)/**"
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_select.imageset/Contents.json
0 → 100644
View file @
cd2eb4ae
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"radious_select.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_select@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_select@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_select.imageset/radious_select.png
0 → 100644
View file @
cd2eb4ae
1.3 KB
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_select.imageset/radious_select@2x.png
0 → 100644
View file @
cd2eb4ae
1.79 KB
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_select.imageset/radious_select@3x.png
0 → 100644
View file @
cd2eb4ae
1.76 KB
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_unselect.imageset/Contents.json
0 → 100644
View file @
cd2eb4ae
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"radious_unselect.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_unselect@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"radious_unselect@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_unselect.imageset/radious_unselect.png
0 → 100644
View file @
cd2eb4ae
1014 Bytes
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_unselect.imageset/radious_unselect@2x.png
0 → 100644
View file @
cd2eb4ae
1.05 KB
This diff is collapsed.
Click to expand it.
Car/Assets.xcassets/main/radious_unselect.imageset/radious_unselect@3x.png
0 → 100644
View file @
cd2eb4ae
1.08 KB
This diff is collapsed.
Click to expand it.
Car/Base.lproj/Main.storyboard
View file @
cd2eb4ae
This diff is collapsed.
Click to expand it.
Car/CodeClass/Account/ViewConstrollers/AccountRecordViewController.m
View file @
cd2eb4ae
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
-
(
void
)
httpRequest
{
-
(
void
)
httpRequest
{
WS
(
weakSelf
);
WS
(
weakSelf
);
[
MBProgressHUD
j_loading
];
[
MBProgressHUD
j_loading
];
[
kHttp
POST
:
kUserCashRecord
parameters
:[
self
.
param
toDictionary
]
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
kHttp
POST
:
kUserCashRecord
parameters
:[
self
.
param
toDictionary
]
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
MBProgressHUD
j_hideLoadingView
];
[
MBProgressHUD
j_hideLoadingView
];
if
(
kRsSuccess
(
response
))
{
if
(
kRsSuccess
(
response
))
{
...
@@ -59,7 +60,9 @@
...
@@ -59,7 +60,9 @@
order
.
direction
=
@"desc"
;
order
.
direction
=
@"desc"
;
_param
.
orders
=
(
NSArray
<
QueryOrder
>
*
)@[
order
];
_param
.
orders
=
(
NSArray
<
QueryOrder
>
*
)@[
order
];
_param
.
userId
=
kUser
.
fid
;
_param
.
userId
=
kUser
.
fid
;
_param
.
pageSize
=
self
.
pageSize
;
}
}
_param
.
pageNumber
=
self
.
page
;
return
_param
;
return
_param
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Car/CodeClass/Account/ViewConstrollers/AccountViewController.m
View file @
cd2eb4ae
...
@@ -122,6 +122,12 @@
...
@@ -122,6 +122,12 @@
}
break
;
}
break
;
case
AccountViewControllerTypeBinding
:
{
case
AccountViewControllerTypeBinding
:
{
WS
(
weakSelf
);
WS
(
weakSelf
);
kCanNotBeNil
(
self
.
textFieldScore
.
text
,
@"请输入提现工分!"
);
if
([
self
.
textFieldScore
.
text
doubleValue
]
>
[
self
.
labelValidScore
.
text
doubleValue
])
{
[
MBProgressHUD
j_error
:
@"可用工分不足!"
complete
:
nil
];
break
;
}
[
self
alertTitle
:
@"确认提交?"
[
self
alertTitle
:
@"确认提交?"
msg
:
nil
msg
:
nil
okAction
:^
(
UIAlertAction
*
_Nullable
action
)
{
okAction
:^
(
UIAlertAction
*
_Nullable
action
)
{
...
@@ -176,9 +182,10 @@
...
@@ -176,9 +182,10 @@
@"unionId"
:
uid
};
@"unionId"
:
uid
};
WS
(
weakSelf
);
WS
(
weakSelf
);
[
kHttp
POST
:
kModifyUserWxUid
parameters
:
param
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
kHttp
POST
:
kModifyUserWxUid
parameters
:
param
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
if
(
kRs
Msg
(
response
))
{
if
(
kRs
Success
(
response
))
{
[
MBProgressHUD
j_success
:
@"绑定成功!"
complete
:
^
{
[
MBProgressHUD
j_success
:
@"绑定成功!"
complete
:
^
{
kUser
.
wxOpenId
=
response
[
@"data"
];
kUser
.
wxOpenId
=
response
[
@"data"
];
weakSelf
.
type
=
AccountViewControllerTypeBinding
;
[
weakSelf
isBinding
];
[
weakSelf
isBinding
];
}];
}];
}
else
{
}
else
{
...
@@ -190,7 +197,6 @@
...
@@ -190,7 +197,6 @@
-
(
void
)
httpSubmit
{
-
(
void
)
httpSubmit
{
[
MBProgressHUD
j_loading
];
[
MBProgressHUD
j_loading
];
WS
(
weakSelf
);
WS
(
weakSelf
);
kCanNotBeNil
(
self
.
textFieldScore
.
text
,
@"请输入要兑换的工分数!"
);
[
kHttp
POST
:
kCashApply
[
kHttp
POST
:
kCashApply
parameters
:[
self
.
param
toDictionary
]
parameters
:[
self
.
param
toDictionary
]
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
...
@@ -214,7 +220,7 @@
...
@@ -214,7 +220,7 @@
if
(
kRsSuccess
(
response
))
{
if
(
kRsSuccess
(
response
))
{
StationUserAcctEntity
*
acc
=
[[
StationUserAcctEntity
alloc
]
initWithDictionary
:
response
[
@"data"
]
error
:
nil
];
StationUserAcctEntity
*
acc
=
[[
StationUserAcctEntity
alloc
]
initWithDictionary
:
response
[
@"data"
]
error
:
nil
];
weakSelf
.
labelTotalScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
balance
];
weakSelf
.
labelTotalScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
balance
];
weakSelf
.
labelValidScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
drawBalance
];
weakSelf
.
labelValidScore
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
acc
.
drawBalance
?
acc
.
drawBalance
:
@"0"
];
}
}
}];
}];
}
}
...
...
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/Cells/OrderListTableViewCell.h
View file @
cd2eb4ae
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelOil
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelOil
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelBillNumber
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelBillNumber
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelPrice
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelPrice
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
btnIsChecked
;
-
(
void
)
configCellArray
:(
NSMutableArray
*
)
array
indexPath
:(
NSIndexPath
*
)
indexPath
;
-
(
void
)
configCellArray
:(
NSMutableArray
*
)
array
indexPath
:(
NSIndexPath
*
)
indexPath
isShow
:(
BOOL
)
isShow
isAll
:(
BOOL
)
isAll
;
@end
@end
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/Cells/OrderListTableViewCell.m
View file @
cd2eb4ae
...
@@ -8,20 +8,42 @@
...
@@ -8,20 +8,42 @@
#import "OrderListTableViewCell.h"
#import "OrderListTableViewCell.h"
#import "OrderListModel.h"
#import "OrderListModel.h"
@interface
OrderListTableViewCell
()
@property
(
strong
,
nonatomic
)
OrderListModel
*
model
;
@end
@implementation
OrderListTableViewCell
@implementation
OrderListTableViewCell
-
(
void
)
awakeFromNib
{
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
[
super
awakeFromNib
];
[
self
.
btnIsChecked
setBackgroundImage
:[
UIImage
imageNamed
:
@"radious_select"
]
forState
:
UIControlStateDisabled
|
UIControlStateSelected
];
// Initialization code
// Initialization code
}
}
-
(
void
)
configCellArray
:
(
NSMutableArray
*
)
array
indexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
configCellArray
:
(
NSMutableArray
*
)
array
indexPath
:
(
NSIndexPath
*
)
indexPath
isShow
:
(
BOOL
)
isShow
isAll
:
(
BOOL
)
isAll
{
OrderListModel
*
model
=
array
[
indexPath
.
row
];
OrderListModel
*
model
=
array
[
indexPath
.
row
];
self
.
model
=
model
;
self
.
labelTime
.
text
=
model
.
payTime
;
self
.
labelTime
.
text
=
model
.
payTime
;
self
.
labelStation
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
stationName
,
model
.
stationUserName
];
self
.
labelStation
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
stationName
,
model
.
stationUserName
];
self
.
labelOil
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
gasItemName
,
model
.
oilGunName
];
self
.
labelOil
.
text
=
[
NSString
stringWithFormat
:
@"%@ - %@"
,
model
.
gasItemName
,
model
.
oilGunName
];
self
.
labelBillNumber
.
text
=
model
.
billNumber
;
self
.
labelBillNumber
.
text
=
model
.
billNumber
;
self
.
labelPrice
.
text
=
[
CalculateHelper
getMoneyStringFrom
:
model
.
realPayTotal
];
self
.
labelPrice
.
text
=
[
CalculateHelper
getMoneyStringFrom
:
model
.
realPayTotal
];
self
.
btnIsChecked
.
selected
=
model
.
isSelected
;
if
([
model
.
checkState
isEqualToString
:
@"checked"
])
{
self
.
btnIsChecked
.
enabled
=
NO
;
}
else
{
self
.
btnIsChecked
.
enabled
=
YES
;
}
self
.
btnIsChecked
.
hidden
=
!
isShow
;
}
-
(
IBAction
)
actionCheck
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
isSelected
;
self
.
model
.
isSelected
=
sender
.
isSelected
;
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
kNotiSelectBill
object
:
self
.
model
];
}
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
...
...
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/Models/OrderListModel.h
View file @
cd2eb4ae
...
@@ -27,4 +27,6 @@
...
@@ -27,4 +27,6 @@
@property
(
strong
,
nonatomic
)
NSString
*
printStateString
;
@property
(
strong
,
nonatomic
)
NSString
*
printStateString
;
@property
(
nonatomic
,
assign
)
BOOL
isSelected
;
@end
@end
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/Models/OrderListModel.m
View file @
cd2eb4ae
...
@@ -11,6 +11,18 @@
...
@@ -11,6 +11,18 @@
@implementation
OrderListModel
@implementation
OrderListModel
-
(
instancetype
)
initWithDictionary
:(
NSDictionary
*
)
dict
error
:(
NSError
*
__autoreleasing
*
)
err
{
self
=
[
super
initWithDictionary
:
dict
error
:
err
];
if
(
self
)
{
if
([
self
.
checkState
isEqualToString
:
@"checked"
])
{
self
.
isSelected
=
YES
;
}
else
{
self
.
isSelected
=
NO
;
}
}
return
self
;
}
-
(
NSString
*
)
paymentString
{
-
(
NSString
*
)
paymentString
{
if
(
!
_paymentString
)
{
if
(
!
_paymentString
)
{
if
([
self
.
payMethod
isEqualToString
:
@"weixin_pub"
])
{
if
([
self
.
payMethod
isEqualToString
:
@"weixin_pub"
])
{
...
...
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/ViewControllers/MainViewController.m
View file @
cd2eb4ae
...
@@ -15,6 +15,13 @@
...
@@ -15,6 +15,13 @@
@interface
MainViewController
()
@interface
MainViewController
()
@property
(
strong
,
nonatomic
)
OrderListFilterViewController
*
filterVC
;
@property
(
strong
,
nonatomic
)
OrderListFilterViewController
*
filterVC
;
@property
(
strong
,
nonatomic
)
OrderQueryDefintion
*
param
;
@property
(
strong
,
nonatomic
)
OrderQueryDefintion
*
param
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
constraintTop
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
btnSelectAll
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
btnCheck
;
@property
(
strong
,
nonatomic
)
NSMutableArray
*
arrBillIdToCheck
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelCount
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
labelAmount
;
@property
(
strong
,
nonatomic
)
TradeStatisticsResult
*
total
;
@end
@end
@implementation
MainViewController
@implementation
MainViewController
...
@@ -22,6 +29,9 @@
...
@@ -22,6 +29,9 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
[
self
httpRequest
];
[
self
httpRequest
];
self
.
constraintTop
.
constant
=
0
;
[
self
.
view
layoutIfNeeded
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
actionNoti
:
)
name
:
kNotiSelectBill
object
:
nil
];
}
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
...
@@ -35,17 +45,23 @@
...
@@ -35,17 +45,23 @@
NSDictionary
*
param
=
[
self
.
param
toDictionary
];
NSDictionary
*
param
=
[
self
.
param
toDictionary
];
[
MBProgressHUD
j_loading
:
@"加载中…"
];
[
MBProgressHUD
j_loading
:
@"加载中…"
];
WS
(
weakSelf
);
WS
(
weakSelf
);
[
kHttp
POST
:
kOrderQueryUrl
parameters
:
param
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
kHttp
POST
:
kOrderQueryUrl
parameters
:
param
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
MBProgressHUD
j_hideLoadingView
];
[
MBProgressHUD
j_hideLoadingView
];
if
(
kRsSuccess
(
response
))
{
if
(
kRsSuccess
(
response
))
{
weakSelf
.
total
=
[[
TradeStatisticsResult
alloc
]
initWithDictionary
:
response
[
@"data"
][
@"total"
]
error
:
nil
];
for
(
NSDictionary
*
dict
in
response
[
@"data"
][
@"records"
])
{
for
(
NSDictionary
*
dict
in
response
[
@"data"
][
@"records"
])
{
OrderListModel
*
model
=
[[
OrderListModel
alloc
]
initWithDictionary
:
dict
error
:
nil
];
OrderListModel
*
model
=
[[
OrderListModel
alloc
]
initWithDictionary
:
dict
error
:
nil
];
if
(
weakSelf
.
btnSelectAll
.
isSelected
)
{
model
.
isSelected
=
YES
;
}
[
weakSelf
.
arrData
addObject
:
model
];
[
weakSelf
.
arrData
addObject
:
model
];
}
}
[
weakSelf
listTableViewReloadData
];
[
weakSelf
listTableViewReloadData
];
}
else
{
}
else
{
kShowRsMsg
(
response
);
kShowRsMsg
(
response
);
[
weakSelf
.
tableView
j_endRefresh
];
[
weakSelf
.
tableView
j_endRefresh
];
if
(
self
.
page
>
0
)
{
if
(
self
.
page
>
0
)
{
...
@@ -67,16 +83,22 @@
...
@@ -67,16 +83,22 @@
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
OrderListTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"OrderListTableViewCell"
forIndexPath
:
indexPath
];
OrderListTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"OrderListTableViewCell"
forIndexPath
:
indexPath
];
[
cell
configCellArray
:
self
.
arrData
indexPath
:
indexPath
];
[
cell
configCellArray
:
self
.
arrData
indexPath
:
indexPath
isShow
:
self
.
btnCheck
.
isSelected
isAll
:
self
.
btnSelectAll
.
selected
];
return
cell
;
return
cell
;
}
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
[
super
tableView
:
tableView
didSelectRowAtIndexPath
:
indexPath
];
[
super
tableView
:
tableView
didSelectRowAtIndexPath
:
indexPath
];
kDebugIndex
(
indexPath
);
kDebugIndex
(
indexPath
);
}
}
-
(
void
)
listDidSelect
:
(
id
)
model
{
-
(
void
)
listDidSelect
:
(
id
)
model
{
if
(
self
.
btnCheck
.
isSelected
)
{
return
;
}
OrderDetailViewController
*
detailVC
=
[
OrderDetailViewController
viewControllerWithStoryBoardType
:
STORYBOARD_TYPE_MAIN
];
OrderDetailViewController
*
detailVC
=
[
OrderDetailViewController
viewControllerWithStoryBoardType
:
STORYBOARD_TYPE_MAIN
];
detailVC
.
model
=
model
;
detailVC
.
model
=
model
;
[
self
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
detailVC
animated
:
YES
];
...
@@ -86,7 +108,7 @@
...
@@ -86,7 +108,7 @@
-
(
IBAction
)
actionLeft
:
(
UIBarButtonItem
*
)
sender
{
-
(
IBAction
)
actionLeft
:
(
UIBarButtonItem
*
)
sender
{
if
(
kGlobal
.
sideSlipVC
.
isShowLeft
)
{
if
(
kGlobal
.
sideSlipVC
.
isShowLeft
)
{
[
kGlobal
.
sideSlipVC
showMainView
];
[
kGlobal
.
sideSlipVC
showMainView
];
}
else
{
}
else
{
[
kGlobal
.
sideSlipVC
showLeftView
];
[
kGlobal
.
sideSlipVC
showLeftView
];
}
}
}
}
...
@@ -94,12 +116,94 @@
...
@@ -94,12 +116,94 @@
-
(
IBAction
)
actionRight
:
(
id
)
sender
{
-
(
IBAction
)
actionRight
:
(
id
)
sender
{
if
(
self
.
filterVC
.
isOpen
)
{
if
(
self
.
filterVC
.
isOpen
)
{
[
self
.
filterVC
hideFilterView
];
[
self
.
filterVC
hideFilterView
];
}
else
{
}
else
{
self
.
filterVC
.
view
.
frame
=
self
.
view
.
bounds
;
self
.
filterVC
.
view
.
frame
=
self
.
view
.
bounds
;
[
self
.
view
addSubview
:
self
.
filterVC
.
view
];
[
self
.
view
addSubview
:
self
.
filterVC
.
view
];
[
self
.
filterVC
showFilterView
];
[
self
.
filterVC
showFilterView
];
}
}
}
}
-
(
IBAction
)
actionCheck
:
(
UIButton
*
)
sender
{
if
(
!
sender
.
isSelected
)
{
sender
.
selected
=
YES
;
[
self
.
tableView
reloadData
];
self
.
constraintTop
.
constant
=
44
;
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
[
self
.
view
layoutIfNeeded
];
}];
}
else
{
if
(
self
.
arrBillIdToCheck
.
count
==
0
)
{
[
MBProgressHUD
j_error
:
@"请选择对账的单据!"
complete
:
nil
];
return
;
}
[
self
httpCheckBill
];
}
}
/**
全选操作
@param isAll 是否全选
*/
-
(
void
)
configSelectData
:
(
BOOL
)
isAll
{
for
(
OrderListModel
*
model
in
self
.
arrData
)
{
if
(
!
[
model
.
checkState
isEqualToString
:
@"checked"
])
{
model
.
isSelected
=
isAll
;
}
}
[
self
.
tableView
reloadData
];
}
-
(
void
)
setTotal
:
(
TradeStatisticsResult
*
)
total
{
_total
=
total
;
self
.
labelCount
.
text
=
[
NSString
stringWithFormat
:
@"%lld"
,
total
.
orderCount
];
self
.
labelAmount
.
text
=
[
NSString
stringWithFormat
:
@"¥ %.2f"
,
total
.
totalAmount
?
total
.
totalAmount
:
0
];
}
-
(
IBAction
)
actionSelectAll
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
isSelected
;
[
self
configSelectData
:
sender
.
isSelected
];
}
-
(
IBAction
)
actionCancelCheck
:
(
id
)
sender
{
self
.
constraintTop
.
constant
=
0
;
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
[
self
.
view
layoutIfNeeded
];
}];
self
.
btnCheck
.
selected
=
NO
;
[
self
.
tableView
reloadData
];
}
-
(
void
)
actionNoti
:
(
NSNotification
*
)
noti
{
NSLog
(
@"%@"
,
noti
);
OrderListModel
*
model
=
noti
.
object
;
if
(
model
.
isSelected
)
{
[
self
.
arrBillIdToCheck
addObject
:
model
.
fid
];
}
else
{
[
self
.
arrBillIdToCheck
removeObject
:
model
.
fid
];
}
self
.
btnSelectAll
.
selected
=
[
self
configIsAll
];
}
-
(
BOOL
)
configIsAll
{
for
(
OrderListModel
*
model
in
self
.
arrData
)
{
if
(
!
[
model
.
checkState
isEqualToString
:
@"checked"
])
{
if
(
!
model
.
isSelected
)
{
return
NO
;
}
}
}
return
YES
;
}
-
(
void
)
showShadow
{
-
(
void
)
showShadow
{
self
.
shadow
.
hidden
=
NO
;
self
.
shadow
.
hidden
=
NO
;
...
@@ -109,6 +213,22 @@
...
@@ -109,6 +213,22 @@
self
.
shadow
.
hidden
=
YES
;
self
.
shadow
.
hidden
=
YES
;
}
}
-
(
void
)
httpCheckBill
{
CheckOrderRequest
*
request
=
[[
CheckOrderRequest
alloc
]
init
];
request
.
userId
=
kUser
.
fid
;
request
.
orderIds
=
self
.
arrBillIdToCheck
;
WS
(
weakSelf
);
[
kHttp
POST
:
kUrlCheck
parameters
:
request
.
toDictionary
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
if
(
kRsSuccess
(
response
))
{
[
MBProgressHUD
j_success
:
@"对账成功!"
complete
:
nil
];
[
weakSelf
actionCancelCheck
:
nil
];
[
weakSelf
.
arrBillIdToCheck
removeAllObjects
];
}
else
{
kShowRsMsg
(
response
);
}
}];
}
#pragma mark - lazy
#pragma mark - lazy
-
(
OrderListFilterViewController
*
)
filterVC
{
-
(
OrderListFilterViewController
*
)
filterVC
{
if
(
!
_filterVC
)
{
if
(
!
_filterVC
)
{
...
@@ -129,13 +249,23 @@
...
@@ -129,13 +249,23 @@
QueryOrder
*
order
=
[[
QueryOrder
alloc
]
init
];
QueryOrder
*
order
=
[[
QueryOrder
alloc
]
init
];
order
.
field
=
@"payTime"
;
order
.
field
=
@"payTime"
;
order
.
direction
=
@"desc"
;
order
.
direction
=
@"desc"
;
_param
.
orders
=
(
NSArray
<
QueryOrder
>
*
)@[
order
];
_param
.
orders
=
(
NSArray
<
QueryOrder
>
*
)
@[
order
];
_param
.
userId
=
kUser
.
fid
;
_param
.
userId
=
kUser
.
fid
;
_param
.
state
=
@"paid"
;
_param
.
state
=
@"paid, invalid"
;
_param
.
beginDate
=
[[[
NSDate
date
]
yearMonthDayString
]
stringByAppendingString
:
@" 00:00:00"
];
_param
.
endDate
=
[[[
NSDate
date
]
yearMonthDayString
]
stringByAppendingString
:
@" 23:59:59"
];
}
}
return
_param
;
return
_param
;
}
}
-
(
NSMutableArray
*
)
arrBillIdToCheck
{
if
(
!
_arrBillIdToCheck
)
{
_arrBillIdToCheck
=
[
NSMutableArray
array
];
}
return
_arrBillIdToCheck
;
}
-
(
UIView
*
)
shadow
{
-
(
UIView
*
)
shadow
{
if
(
!
_shadow
)
{
if
(
!
_shadow
)
{
_shadow
=
[[
UIView
alloc
]
initWithFrame
:
self
.
view
.
bounds
];
_shadow
=
[[
UIView
alloc
]
initWithFrame
:
self
.
view
.
bounds
];
...
...
This diff is collapsed.
Click to expand it.
Car/CodeClass/Main/ViewControllers/OrderListFilterViewController.m
View file @
cd2eb4ae
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#import "OrderListFilterViewController.h"
#import "OrderListFilterViewController.h"
@interface
OrderListFilterViewController
()
@interface
OrderListFilterViewController
()
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
constraintHeight
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
constraintHeight
;
/**
/**
阴影
阴影
...
@@ -27,16 +27,16 @@
...
@@ -27,16 +27,16 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
textFieldBillNumber
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
textFieldBillNumber
;
/**
/**
日期
日期
开始时间
*/
*/
@property
(
weak
,
nonatomic
)
IBOutlet
DateTextField
*
textFieldDate
;
@property
(
weak
,
nonatomic
)
IBOutlet
DateTextField
*
textFieldDate
;
@property
(
weak
,
nonatomic
)
IBOutlet
DateTextField
*
textFieldEndDate
;
/**
/**
加油员
加油员
*/
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
textFieldStationUser
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
textFieldStationUser
;
@end
@end
@implementation
OrderListFilterViewController
@implementation
OrderListFilterViewController
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
self
.
view
.
backgroundColor
=
[
UIColor
clearColor
];
self
.
view
.
backgroundColor
=
[
UIColor
clearColor
];
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
self
.
textFieldDate
.
type
=
DateTextFieldYearMonthDay
;
self
.
textFieldDate
.
type
=
DateTextFieldYearMonthDay
;
self
.
textFieldEndDate
.
type
=
DateTextFieldYearMonthDay
;
}
}
-
(
IBAction
)
actionBac
:
(
id
)
sender
{
-
(
IBAction
)
actionBac
:
(
id
)
sender
{
...
@@ -55,8 +56,8 @@
...
@@ -55,8 +56,8 @@
-
(
void
)
configParam
{
-
(
void
)
configParam
{
self
.
param
.
billNumberLike
=
self
.
textFieldBillNumber
.
text
;
self
.
param
.
billNumberLike
=
self
.
textFieldBillNumber
.
text
;
self
.
param
.
userNameLike
=
self
.
textFieldStationUser
.
text
;
self
.
param
.
userNameLike
=
self
.
textFieldStationUser
.
text
;
self
.
param
.
endDate
=
kIf
(
self
.
textFieldDate
.
text
.
length
>
0
,
[
self
.
textFieldDate
.
text
stringByAppendingString
:
@" 23:59:59
"
],
nil
);
self
.
param
.
beginDate
=
kIf
(
self
.
textFieldDate
.
text
.
length
>
0
,
[
self
.
textFieldDate
.
text
stringByAppendingString
:
@" 00:00:00
"
],
nil
);
self
.
param
.
endDate
=
kIf
(
self
.
textFieldEndDate
.
text
.
length
>
0
,
[
self
.
textFieldEndDate
.
text
stringByAppendingString
:
@" 23:59:59"
],
nil
);
}
}
#pragma mark - actions
#pragma mark - actions
...
@@ -84,6 +85,40 @@
...
@@ -84,6 +85,40 @@
}
}
}
}
-
(
IBAction
)
actionChooseIsChecked
:
(
UIButton
*
)
sender
{
UIAlertController
*
alert
=
[
UIAlertController
alertControllerWithTitle
:
@"请选择"
message
:
nil
preferredStyle
:
UIAlertControllerStyleAlert
];
WS
(
weakSelf
);
UIAlertAction
*
actionAll
=
[
UIAlertAction
actionWithTitle
:
@"全部"
style
:(
UIAlertActionStyleDefault
)
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[
sender
setTitle
:
@"全部"
forState
:
UIControlStateNormal
];
weakSelf
.
param
.
checkState
=
nil
;
}];
[
alert
addAction
:
actionAll
];
UIAlertAction
*
actionChecked
=
[
UIAlertAction
actionWithTitle
:
@"已对账"
style
:(
UIAlertActionStyleDefault
)
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[
sender
setTitle
:
@"已对账"
forState
:
UIControlStateNormal
];
weakSelf
.
param
.
checkState
=
@"checked"
;
}];
[
alert
addAction
:
actionChecked
];
UIAlertAction
*
actionUnchecked
=
[
UIAlertAction
actionWithTitle
:
@"未对账"
style
:(
UIAlertActionStyleDefault
)
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[
sender
setTitle
:
@"未对账"
forState
:
UIControlStateNormal
];
weakSelf
.
param
.
checkState
=
@"unchecked"
;
}];
[
alert
addAction
:
actionUnchecked
];
UIAlertAction
*
actionCancel
=
[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleDestructive
handler
:
nil
];
[
alert
addAction
:
actionCancel
];
[
self
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
-
(
void
)
hideFilterView
{
-
(
void
)
hideFilterView
{
HIDE_KEYBOARD
;
HIDE_KEYBOARD
;
self
.
isOpen
=
NO
;
self
.
isOpen
=
NO
;
...
@@ -104,7 +139,7 @@
...
@@ -104,7 +139,7 @@
-
(
void
)
showFilterView
{
-
(
void
)
showFilterView
{
self
.
isOpen
=
YES
;
self
.
isOpen
=
YES
;
self
.
constraintHeight
.
constant
=
2
20
;
self
.
constraintHeight
.
constant
=
3
20
;
[
UIView
animateWithDuration
:
0
.
7
[
UIView
animateWithDuration
:
0
.
7
delay
:
0
delay
:
0
usingSpringWithDamping
:
0
.
9
usingSpringWithDamping
:
0
.
9
...
...
This diff is collapsed.
Click to expand it.
Car/Info.plist
View file @
cd2eb4ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<
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.0.
0
<
/string
>
<
string
>
1.0.
3
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0.
0
<
/string
>
<
string
>
1.0.
3
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
wechat
<
/string
>
<
string
>
wechat
<
/string
>
...
...
This diff is collapsed.
Click to expand it.
Car/PrefixHeader.pch
View file @
cd2eb4ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
//主题色
//主题色
#define kMainColor kMainOrangeColor
#define kMainColor kMainOrangeColor
static NSString *const kNotiSelectBill = @"kNotiSelectBill";
#ifdef DEBUG
#ifdef DEBUG
#define CLog(format, ...) \
#define CLog(format, ...) \
...
...
This diff is collapsed.
Click to expand it.
Car/URL.h
View file @
cd2eb4ae
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#ifdef test
#ifdef test
static
NSString
*
const
VersionName
=
@"车族通测试版"
;
static
NSString
*
const
VersionName
=
@"车族通测试版"
;
static
NSString
*
const
BASE_IP
=
@"http://test.gomoretech.com"
;
static
NSString
*
const
BASE_IP
=
@"http://
car
test.gomoretech.com"
;
#else
#else
static
NSString
*
const
VersionName
=
@"车族通正式版"
;
static
NSString
*
const
VersionName
=
@"车族通正式版"
;
static
NSString
*
const
BASE_IP
=
@"http://whcar.gomoretech.com"
;
static
NSString
*
const
BASE_IP
=
@"http://whcar.gomoretech.com"
;
...
@@ -42,5 +42,6 @@ static NSString *const kUserCashRecord = @"cash/query";
...
@@ -42,5 +42,6 @@ static NSString *const kUserCashRecord = @"cash/query";
static
NSString
*
const
kCashApply
=
@"cash/apply"
;
static
NSString
*
const
kCashApply
=
@"cash/apply"
;
//绑定用户微信unionId
//绑定用户微信unionId
static
NSString
*
const
kModifyUserWxUid
=
@"stationUser/save/openId"
;
static
NSString
*
const
kModifyUserWxUid
=
@"stationUser/save/openId"
;
static
NSString
*
const
kUrlCheck
=
@"order/check"
;
#endif
/* URL_h */
#endif
/* URL_h */
This diff is collapsed.
Click to expand it.
Car/car_objc_json_client.h
View file @
cd2eb4ae
This diff is collapsed.
Click to expand it.
Car/car_objc_json_client.m
View file @
cd2eb4ae
...
@@ -92,6 +92,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -92,6 +92,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
CheckOrderRequest
@synthesize
userId
;
@synthesize
orderIds
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
ResetPasswordRequest
@implementation
ResetPasswordRequest
...
@@ -239,6 +251,44 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -239,6 +251,44 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
CouponStockEntity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
couponNumber
;
@synthesize
name
;
@synthesize
type
;
@synthesize
total
;
@synthesize
realToal
;
@synthesize
state
;
@synthesize
memberId
;
@synthesize
memberName
;
@synthesize
orderNumber
;
@synthesize
validBeginDate
;
@synthesize
validEndDate
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@end
@implementation
GasItemEntity
@implementation
GasItemEntity
...
@@ -386,6 +436,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -386,6 +436,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@synthesize
invoiceId
;
@synthesize
invoiceId
;
@synthesize
alipayBuyerId
;
@synthesize
alipayBuyerId
;
@synthesize
alipaybuyerLogonId
;
@synthesize
alipaybuyerLogonId
;
@synthesize
checkState
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -791,10 +842,10 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -791,10 +842,10 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@end
@end
@implementation
AjaxJson
@implementation
AjaxJson
@synthesize
msg
;
@synthesize
attributes
;
@synthesize
attributes
;
@synthesize
obj
;
@synthesize
success
;
@synthesize
success
;
@synthesize
msg
;
@synthesize
obj
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -1049,6 +1100,40 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1049,6 +1100,40 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
CouponEntity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
sysCompanyCode
;
@synthesize
name
;
@synthesize
type
;
@synthesize
total
;
@synthesize
realTotal
;
@synthesize
state
;
@synthesize
probability
;
@synthesize
validateDays
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@end
@implementation
DrawCashBillEntity
@implementation
DrawCashBillEntity
...
@@ -1144,6 +1229,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1144,6 +1229,18 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
TradeStatisticsResult
@synthesize
orderCount
;
@synthesize
totalAmount
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
LoginResult
@implementation
LoginResult
...
@@ -1224,17 +1321,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1224,17 +1321,7 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@implementation
OrderQueryResult
@implementation
OrderQueryResult
@synthesize
records
;
@synthesize
records
;
@synthesize
total
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
WithdrawQueryResult
@synthesize
records
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -1264,6 +1351,29 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1264,6 +1351,29 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
TSBaseUser
@synthesize
userType
;
@synthesize
departid
;
@synthesize
signature
;
@synthesize
browser
;
@synthesize
userKey
;
@synthesize
status
;
@synthesize
activitiSync
;
@synthesize
password
;
@synthesize
userName
;
@synthesize
realName
;
@synthesize
currentDepart
;
@synthesize
userOrgList
;
@synthesize
deleteFlag
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
TSDepart
@implementation
TSDepart
...
@@ -1293,20 +1403,8 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1293,20 +1403,8 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
@end
@end
@implementation
TSBaseUser
@implementation
WithdrawQueryResult
@synthesize
userType
;
@synthesize
records
;
@synthesize
departid
;
@synthesize
signature
;
@synthesize
browser
;
@synthesize
userKey
;
@synthesize
status
;
@synthesize
activitiSync
;
@synthesize
password
;
@synthesize
userName
;
@synthesize
realName
;
@synthesize
currentDepart
;
@synthesize
userOrgList
;
@synthesize
deleteFlag
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
{
...
@@ -1326,21 +1424,6 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1326,21 +1424,6 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
OrderQueryDefintion
@synthesize
userId
;
@synthesize
userNameLike
;
@synthesize
billNumberLike
;
@synthesize
endDate
;
@synthesize
state
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
WxMassBillEntity
@implementation
WxMassBillEntity
...
@@ -1382,6 +1465,23 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
...
@@ -1382,6 +1465,23 @@ NSString * const QUERYORDERDIRECTION_DESC = @"desc";
}
}
@end
@implementation
OrderQueryDefintion
@synthesize
userId
;
@synthesize
userNameLike
;
@synthesize
billNumberLike
;
@synthesize
endDate
;
@synthesize
state
;
@synthesize
beginDate
;
@synthesize
checkState
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@end
@implementation
WithdrawQueryDefintion
@implementation
WithdrawQueryDefintion
...
...
This diff is collapsed.
Click to expand it.
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