Commit e91feef6 authored by zhu's avatar zhu

no message

parent 6c8790c8
...@@ -60,4 +60,4 @@ SPEC CHECKSUMS: ...@@ -60,4 +60,4 @@ SPEC CHECKSUMS:
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29 SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
SSKeychain: 3f42991739c6c60a9cf1bbd4dff6c0d3694bcf3d SSKeychain: 3f42991739c6c60a9cf1bbd4dff6c0d3694bcf3d
COCOAPODS: 0.37.1 COCOAPODS: 0.38.2
...@@ -86,6 +86,9 @@ typedef NS_ENUM(NSUInteger, ICRHTTPAction) { ...@@ -86,6 +86,9 @@ typedef NS_ENUM(NSUInteger, ICRHTTPAction) {
//加工单 //加工单
XFFHttp_QueryProcess, XFFHttp_QueryProcess,
XFFHttp_GetProcess, XFFHttp_GetProcess,
//采购通知单
XFFHttp_PurchaseNoticeSave,// 保存采购通知单(写)
//采购单 //采购单
XFFHttp_PurchaseSave, XFFHttp_PurchaseSave,
......
...@@ -49,11 +49,11 @@ ...@@ -49,11 +49,11 @@
//颜色 //颜色
#define GXF_LABLE_TINT_COLOR HexColor(@"444444") #define GXF_LABLE_TINT_COLOR HexColor(@"444444")
#define GXF_LABLE_BG_COLOR XXFBgColor #define GXF_LABLE_BG_COLOR XXFBgColor
#define GXF_GREEN_COLOR HexColor(@"50bd62") #define GXF_GREEN_COLOR HexColor(@"50bd62")
#define GXF_ORIGIN_COLOR HexColor(@"f69100") #define GXF_ORIGIN_COLOR HexColor(@"f69100")
#define GXF_GRAY_COLOR HexColor(@"444444") #define GXF_GRAY_COLOR HexColor(@"444444")
//字体大小 //字体大小
#define GXF_LABLE_FONT FontSize(15) #define GXF_LABLE_FONT FontSize(15)
// 高度 // 高度
......
...@@ -52,7 +52,6 @@ typedef enum : NSUInteger { ...@@ -52,7 +52,6 @@ typedef enum : NSUInteger {
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
self.view.backgroundColor = XXFBgColor;
[self initData]; [self initData];
[self createTableView]; [self createTableView];
[self createRefresh]; [self createRefresh];
...@@ -62,6 +61,7 @@ typedef enum : NSUInteger { ...@@ -62,6 +61,7 @@ typedef enum : NSUInteger {
} }
- (void)initData{ - (void)initData{
self.view.backgroundColor = XXFBgColor;
self.dataArr = [NSMutableArray array]; self.dataArr = [NSMutableArray array];
for (NSInteger i = 0; i < 6; i++) { for (NSInteger i = 0; i < 6; i++) {
PurchaseBill *bill = [PurchaseBill new]; PurchaseBill *bill = [PurchaseBill new];
...@@ -91,10 +91,10 @@ typedef enum : NSUInteger { ...@@ -91,10 +91,10 @@ typedef enum : NSUInteger {
} }
} }
- (void)getData{ - (void)getData{
[ICRUserUtil sharedInstance].needFresh = NO; [ICRUserUtil sharedInstance].needFresh = NO;
__weak typeof(self)weakSelf = self; __weak typeof(self)weakSelf = self;
void(^succ)(id) = ^(id data) { void(^succ)(id) = ^(id data) {
[IBTLoadingView hideHUDWithText:nil]; [IBTLoadingView hideHUDWithText:nil];
__strong __typeof(weakSelf)strongSelf = weakSelf; __strong __typeof(weakSelf)strongSelf = weakSelf;
[strongSelf fetchtPuchaseList:data]; [strongSelf fetchtPuchaseList:data];
}; };
...@@ -149,6 +149,7 @@ typedef enum : NSUInteger { ...@@ -149,6 +149,7 @@ typedef enum : NSUInteger {
[orderArr addObject:[order dictForCommit]]; [orderArr addObject:[order dictForCommit]];
} }
// 网络请求
NSDictionary *dict = @{ NSDictionary *dict = @{
@"billNumberLike":billObject, @"billNumberLike":billObject,
@"state":stateObject, @"state":stateObject,
...@@ -161,6 +162,7 @@ typedef enum : NSUInteger { ...@@ -161,6 +162,7 @@ typedef enum : NSUInteger {
@"pageSize":@(20)}; @"pageSize":@(20)};
[[ICRHTTPController sharedController] queryPurchaseWithData:dict success:succ failure:fail]; [[ICRHTTPController sharedController] queryPurchaseWithData:dict success:succ failure:fail];
} }
//刷新列表
- (void)fetchtPuchaseList:(id)data{ - (void)fetchtPuchaseList:(id)data{
if (data) { if (data) {
NSInteger success = [data[@"success"] integerValue]; NSInteger success = [data[@"success"] integerValue];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment