Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
红
红星美凯龙管理在线APP 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
张杰
红星美凯龙管理在线APP IOS
Commits
846ad7e6
Commit
846ad7e6
authored
9 years ago
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善部分在线抽查
parent
b8d1f808
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
8 deletions
+16
-8
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Url.h
redstar/Classes/Macro/Url.h
+1
-3
OnLineViewController.m
...on/OnLine/AddOnLine/ViewController/OnLineViewController.m
+4
-3
LookOnLineDetailViewController.m
...ineDetail/ViewController/LookOnLineDetailViewController.m
+6
-1
SpotCheckOnLineViewController.m
...heckOnLine/ViewController/SpotCheckOnLineViewController.m
+5
-1
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
846ad7e6
No preview for this file type
This diff is collapsed.
Click to expand it.
redstar/Classes/Macro/Url.h
View file @
846ad7e6
...
@@ -10,9 +10,7 @@
...
@@ -10,9 +10,7 @@
#define Url_h
#define Url_h
// url
// url
//#define kRedStarURL @"http://218.244.151.129:7580/"
// #define kRedStarURL @"http://218.244.151.129:7580/"
#define kRedStarURL @"http://219.235.234.225:7580/"
#define kRedStarURL @"http://219.235.234.225:7580/"
...
...
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/OnLine/AddOnLine/ViewController/OnLineViewController.m
View file @
846ad7e6
...
@@ -89,7 +89,8 @@
...
@@ -89,7 +89,8 @@
_uuidArray
=
[
NSMutableArray
array
];
_uuidArray
=
[
NSMutableArray
array
];
for
(
TreeNodeModel
*
model
in
array
)
{
for
(
TreeNodeModel
*
model
in
array
)
{
nameStr
=
[
nameStr
stringByAppendingString
:[
NSString
stringWithFormat
:
@"%@,"
,
model
.
name
]];
nameStr
=
[
nameStr
stringByAppendingString
:[
NSString
stringWithFormat
:
@"%@,"
,
model
.
name
]];
[
_uuidArray
addObject
:
model
.
uuid
];
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
model
.
uuid
,
@"store_uuid"
,
model
.
code
,
@"store_code"
,
model
.
name
,
@"store_name"
,
nil
];
[
_uuidArray
addObject
:
dict
];
}
}
NSIndexPath
*
indexPath
=
[
NSIndexPath
indexPathForRow
:
0
inSection
:
0
];
NSIndexPath
*
indexPath
=
[
NSIndexPath
indexPathForRow
:
0
inSection
:
0
];
_storeName
=
nameStr
;
_storeName
=
nameStr
;
...
@@ -104,7 +105,7 @@
...
@@ -104,7 +105,7 @@
NSDate
*
date
=
[
NSDate
date
];
NSDate
*
date
=
[
NSDate
date
];
NSDateFormatter
*
dateFormatter
=
[[
NSDateFormatter
alloc
]
init
];
NSDateFormatter
*
dateFormatter
=
[[
NSDateFormatter
alloc
]
init
];
[
dateFormatter
setDateFormat
:
@"YYYY-MM-dd
+
hh:mm:ss"
];
[
dateFormatter
setDateFormat
:
@"YYYY-MM-dd
hh:mm:ss"
];
NSString
*
dateString
=
[
dateFormatter
stringFromDate
:
date
];
NSString
*
dateString
=
[
dateFormatter
stringFromDate
:
date
];
NSString
*
operId
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"user_code"
];
NSString
*
operId
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"user_code"
];
...
@@ -121,7 +122,7 @@
...
@@ -121,7 +122,7 @@
@"content"
:
self
.
footView
.
contentTextView
.
text
,
@"content"
:
self
.
footView
.
contentTextView
.
text
,
@"endDate"
:
dateString
,
@"endDate"
:
dateString
,
@"state"
:
@"initial"
,
@"state"
:
@"initial"
,
//
@"stores":_uuidArray
@"stores"
:
_uuidArray
};
};
NSLog
(
@"发起抽查par = %@"
,
parameters
);
NSLog
(
@"发起抽查par = %@"
,
parameters
);
[
httpClient
saveSportCheckWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
httpClient
saveSportCheckWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
...
...
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/OnLine/LookOnLineDetail/ViewController/LookOnLineDetailViewController.m
View file @
846ad7e6
...
@@ -47,9 +47,14 @@
...
@@ -47,9 +47,14 @@
self
.
imageNameArray
=
[
NSMutableArray
array
];
self
.
imageNameArray
=
[
NSMutableArray
array
];
[
self
requestOnLineDetail
];
_rowNumber
=
1
;
_rowNumber
=
1
;
}
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
[
self
requestOnLineDetail
];
}
#pragma mark - Private Mothods
#pragma mark - Private Mothods
-
(
void
)
setNav
-
(
void
)
setNav
...
...
This diff is collapsed.
Click to expand it.
redstar/Classes/Module/Function/OnLine/SpotCheckOnLine/ViewController/SpotCheckOnLineViewController.m
View file @
846ad7e6
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
self
.
tableView
.
delegate
=
self
;
self
.
tableView
.
delegate
=
self
;
self
.
tableView
.
dataSource
=
self
;
self
.
tableView
.
dataSource
=
self
;
[
self
requestSpotCheckList
];
_page
=
0
;
_page
=
0
;
}
}
...
@@ -69,6 +68,8 @@
...
@@ -69,6 +68,8 @@
{
{
[
super
viewWillAppear
:
animated
];
[
super
viewWillAppear
:
animated
];
self
.
tabBarController
.
tabBar
.
hidden
=
YES
;
self
.
tabBarController
.
tabBar
.
hidden
=
YES
;
[
self
requestSpotCheckList
];
}
}
...
@@ -176,12 +177,15 @@
...
@@ -176,12 +177,15 @@
[
spot
setValuesForKeysWithDictionary
:
dict
];
[
spot
setValuesForKeysWithDictionary
:
dict
];
[
tempArray
addObject
:
spot
];
[
tempArray
addObject
:
spot
];
}
}
[
_allSpotCheckList
addObjectsFromArray
:
tempArray
];
[
_allSpotCheckList
addObjectsFromArray
:
tempArray
];
if
(
tempArray
.
count
<
10
)
{
if
(
tempArray
.
count
<
10
)
{
[
self
.
tableView
.
footer
noticeNoMoreData
];
[
self
.
tableView
.
footer
noticeNoMoreData
];
}
else
{
}
else
{
[
self
.
tableView
.
footer
endRefreshing
];
[
self
.
tableView
.
footer
endRefreshing
];
}
}
[
MBProgressHUD
hideHUDForView
:
self
.
view
animated
:
YES
];
[
self
.
tableView
reloadData
];
[
self
.
tableView
reloadData
];
}];
}];
}
}
...
...
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