Commit 377450c7 authored by 陈俊俊's avatar 陈俊俊

列表的筛选要也要添加按照”提交系统处理“、”系统处理失败“这两个状态的查询。

parent 7adc37d4
...@@ -275,7 +275,7 @@ typedef enum : NSUInteger { ...@@ -275,7 +275,7 @@ typedef enum : NSUInteger {
_boltView.backgroundColor = XXFBgColor; _boltView.backgroundColor = XXFBgColor;
_boltView.delegate = self; _boltView.delegate = self;
//initial(未提交)submitted(已提交)rejected(已拒绝)approved(已审批)shipping(发运中)finished(已完成) //initial(未提交)submitted(已提交)rejected(已拒绝)approved(已审批)shipping(发运中)finished(已完成)
_boltView.dataArr = [[NSMutableArray alloc]initWithObjects:@"未提交",@"未审批",@"已拒绝" ,@"发运中",@"已作废",@"已完成",nil]; _boltView.dataArr = [[NSMutableArray alloc]initWithObjects:@"未提交",@"未审批",@"已拒绝" ,@"发运中",@"已作废",@"已完成",@"提交系统处理",@"系统处理失败",nil];
[_maskView addSubview:_boltView]; [_maskView addSubview:_boltView];
[UIView animateWithDuration:0.25 animations:^{ [UIView animateWithDuration:0.25 animations:^{
CGRect sortFrame = _boltView.frame; CGRect sortFrame = _boltView.frame;
...@@ -411,7 +411,15 @@ typedef enum : NSUInteger { ...@@ -411,7 +411,15 @@ typedef enum : NSUInteger {
self.productLike = @""; self.productLike = @"";
} }
} }
#pragma mark - 隐藏maskView
- (void)hiddenMaskView{
if (_sortView) {
[self hiddenSortMaskView:YES];
}
if (_boltView) {
[self hiddenBoltMaskView:YES];
}
}
#pragma mark - 协议方法 #pragma mark - 协议方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1; return 1;
......
...@@ -60,6 +60,10 @@ ...@@ -60,6 +60,10 @@
_currentIndexPath = [NSIndexPath indexPathForRow:4 inSection:0]; _currentIndexPath = [NSIndexPath indexPathForRow:4 inSection:0];
}else if ([self.state isEqualToString:PURCHASE_STATE_FINISHED]) { }else if ([self.state isEqualToString:PURCHASE_STATE_FINISHED]) {
_currentIndexPath = [NSIndexPath indexPathForRow:5 inSection:0]; _currentIndexPath = [NSIndexPath indexPathForRow:5 inSection:0];
}else if ([self.state isEqualToString:PURCHASE_STATE_PROCESS]) {
_currentIndexPath = [NSIndexPath indexPathForRow:6 inSection:0];
}else if ([self.state isEqualToString:PURCHASE_STATE_PROCESSFAIL]) {
_currentIndexPath = [NSIndexPath indexPathForRow:7 inSection:0];
} }
self.billFiled.hidden = YES; self.billFiled.hidden = YES;
if(self.billNumber.length > 0){ if(self.billNumber.length > 0){
...@@ -84,7 +88,7 @@ ...@@ -84,7 +88,7 @@
{ {
_leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, LeftMargin,self.frame.size.height- BottomHeight)]; _leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, LeftMargin,self.frame.size.height- BottomHeight)];
[self addSubview:_leftView]; [self addSubview:_leftView];
NSArray *arr = @[@"按状态",@"采购单号",@"标题",@"供应商Uuid",@"商品单号"]; NSArray *arr = @[@"按状态",@"采购单号",@"标题",@"供应商Uuid",@"商品"];
for (NSInteger i = 0; i<arr.count; i++) { for (NSInteger i = 0; i<arr.count; i++) {
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.frame = CGRectMake(0, LeftHeight * i , LeftMargin ,LeftHeight); button.frame = CGRectMake(0, LeftHeight * i , LeftMargin ,LeftHeight);
...@@ -109,7 +113,7 @@ ...@@ -109,7 +113,7 @@
[self addSubview:_clearBtn]; [self addSubview:_clearBtn];
} }
- (void)createRightView{ - (void)createRightView{
NSArray *arr = @[@"输入类似采购单号",@"输入类似标题",@"输入类似供应商Uuid",@"输入类似商品单号"]; NSArray *arr = @[@"输入类似采购单号",@"输入类似标题",@"输入类似供应商Uuid",@"输入类似商品"];
UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(LeftMargin, 0, ScreenSize.width - LeftMargin, self.frame.size.height - BottomHeight)]; UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(LeftMargin, 0, ScreenSize.width - LeftMargin, self.frame.size.height - BottomHeight)];
contentView.backgroundColor = [UIColor whiteColor]; contentView.backgroundColor = [UIColor whiteColor];
[self addSubview:contentView]; [self addSubview:contentView];
...@@ -279,6 +283,10 @@ ...@@ -279,6 +283,10 @@
stateStr = PURCHASE_STATE_ABORTED; stateStr = PURCHASE_STATE_ABORTED;
}else if(indexPath.row == 5){ }else if(indexPath.row == 5){
stateStr = PURCHASE_STATE_FINISHED; stateStr = PURCHASE_STATE_FINISHED;
}else if(indexPath.row == 6){
stateStr = PURCHASE_STATE_PROCESS;
}else if(indexPath.row == 7){
stateStr = PURCHASE_STATE_PROCESSFAIL;
} }
[self.delegate getBoltValueSelectRow:stateStr]; [self.delegate getBoltValueSelectRow:stateStr];
} }
......
...@@ -263,7 +263,7 @@ typedef enum : NSUInteger { ...@@ -263,7 +263,7 @@ typedef enum : NSUInteger {
_boltView.backgroundColor = XXFBgColor; _boltView.backgroundColor = XXFBgColor;
_boltView.delegate = self; _boltView.delegate = self;
_boltView.dataArr = [[NSMutableArray alloc]initWithObjects:@"未提交",@"待收货",@"已收货",@"已作废",nil]; _boltView.dataArr = [[NSMutableArray alloc]initWithObjects:@"未提交",@"待收货",@"已收货",@"已作废",@"提交系统处理",@"系统处理失败",nil];
[_maskView addSubview:_boltView]; [_maskView addSubview:_boltView];
[UIView animateWithDuration:0.25 animations:^{ [UIView animateWithDuration:0.25 animations:^{
CGRect sortFrame = _boltView.frame; CGRect sortFrame = _boltView.frame;
...@@ -393,7 +393,15 @@ typedef enum : NSUInteger { ...@@ -393,7 +393,15 @@ typedef enum : NSUInteger {
self.productLike = @""; self.productLike = @"";
} }
} }
#pragma mark - 隐藏maskView
- (void)hiddenMaskView{
if (_sortView) {
[self hiddenSortMaskView:YES];
}
if (_boltView) {
[self hiddenBoltMaskView:YES];
}
}
#pragma mark - 协议方法 #pragma mark - 协议方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1; return 1;
......
...@@ -56,6 +56,10 @@ ...@@ -56,6 +56,10 @@
_currentIndexPath = [NSIndexPath indexPathForRow:2 inSection:0]; _currentIndexPath = [NSIndexPath indexPathForRow:2 inSection:0];
}else if ([self.state isEqualToString:TRANSPORT_STATE_ABORTED]) { }else if ([self.state isEqualToString:TRANSPORT_STATE_ABORTED]) {
_currentIndexPath = [NSIndexPath indexPathForRow:3 inSection:0]; _currentIndexPath = [NSIndexPath indexPathForRow:3 inSection:0];
}else if ([self.state isEqualToString:TRANSPORT_STATE_PROCESS]) {
_currentIndexPath = [NSIndexPath indexPathForRow:4 inSection:0];
}else if ([self.state isEqualToString:TRANSPORT_STATE_PROCESSFAIL]) {
_currentIndexPath = [NSIndexPath indexPathForRow:5 inSection:0];
} }
self.userFiled.hidden = YES; self.userFiled.hidden = YES;
if(self.userNumber.length > 0){ if(self.userNumber.length > 0){
...@@ -76,7 +80,7 @@ ...@@ -76,7 +80,7 @@
{ {
_leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, LeftMargin,self.frame.size.height- BottomHeight)]; _leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, LeftMargin,self.frame.size.height- BottomHeight)];
[self addSubview:_leftView]; [self addSubview:_leftView];
NSArray *arr = @[@"按状态",@"创建人代码",@"调研单号",@"商品单号"]; NSArray *arr = @[@"按状态",@"创建人代码",@"调研单号",@"商品"];
for (NSInteger i = 0; i<arr.count; i++) { for (NSInteger i = 0; i<arr.count; i++) {
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.frame = CGRectMake(0, LeftHeight * i , LeftMargin ,LeftHeight); button.frame = CGRectMake(0, LeftHeight * i , LeftMargin ,LeftHeight);
...@@ -103,7 +107,7 @@ ...@@ -103,7 +107,7 @@
- (void)createRightView{ - (void)createRightView{
NSArray *arr = @[@"输入类似创建人代码",@"输入类似调研单号",@"输入类似商品单号"]; NSArray *arr = @[@"输入类似创建人代码",@"输入类似调研单号",@"输入类似商品"];
UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(LeftMargin, 0, ScreenSize.width - LeftMargin, self.frame.size.height - BottomHeight)]; UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(LeftMargin, 0, ScreenSize.width - LeftMargin, self.frame.size.height - BottomHeight)];
contentView.backgroundColor = [UIColor whiteColor]; contentView.backgroundColor = [UIColor whiteColor];
[self addSubview:contentView]; [self addSubview:contentView];
...@@ -255,6 +259,10 @@ ...@@ -255,6 +259,10 @@
stateStr = TRANSFER_STATE_RECEIVED; stateStr = TRANSFER_STATE_RECEIVED;
}else if(indexPath.row == 3){ }else if(indexPath.row == 3){
stateStr = TRANSFER_STATE_ABORTED; stateStr = TRANSFER_STATE_ABORTED;
}else if(indexPath.row == 4){
stateStr = TRANSFER_STATE_PROCESS;
}else if(indexPath.row == 5){
stateStr = TRANSFER_STATE_PROCESSFAIL;
} }
[self.delegate getBoltValueSelectRow:stateStr]; [self.delegate getBoltValueSelectRow:stateStr];
} }
......
...@@ -266,7 +266,7 @@ typedef enum : NSUInteger { ...@@ -266,7 +266,7 @@ typedef enum : NSUInteger {
_boltView.backgroundColor = XXFBgColor; _boltView.backgroundColor = XXFBgColor;
_boltView.delegate = self; _boltView.delegate = self;
_boltView.dataArr = [[NSMutableArray alloc]initWithObjects:@"未提交",@"待收货",@"已收货",@"已作废",nil]; _boltView.dataArr = [[NSMutableArray alloc]initWithObjects:@"未提交",@"待收货",@"已收货",@"已作废",@"提交系统处理",@"系统处理失败",nil];
[_maskView addSubview:_boltView]; [_maskView addSubview:_boltView];
[UIView animateWithDuration:0.25 animations:^{ [UIView animateWithDuration:0.25 animations:^{
CGRect sortFrame = _boltView.frame; CGRect sortFrame = _boltView.frame;
...@@ -395,7 +395,15 @@ typedef enum : NSUInteger { ...@@ -395,7 +395,15 @@ typedef enum : NSUInteger {
self.productLike = @""; self.productLike = @"";
} }
} }
#pragma mark - 隐藏maskView
- (void)hiddenMaskView{
if (_sortView) {
[self hiddenSortMaskView:YES];
}
if (_boltView) {
[self hiddenBoltMaskView:YES];
}
}
#pragma mark - 协议方法 #pragma mark - 协议方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1; return 1;
......
...@@ -55,6 +55,10 @@ ...@@ -55,6 +55,10 @@
_currentIndexPath = [NSIndexPath indexPathForRow:2 inSection:0]; _currentIndexPath = [NSIndexPath indexPathForRow:2 inSection:0];
}else if ([self.state isEqualToString:TRANSPORT_STATE_ABORTED]) { }else if ([self.state isEqualToString:TRANSPORT_STATE_ABORTED]) {
_currentIndexPath = [NSIndexPath indexPathForRow:3 inSection:0]; _currentIndexPath = [NSIndexPath indexPathForRow:3 inSection:0];
}else if ([self.state isEqualToString:TRANSPORT_STATE_PROCESS]) {
_currentIndexPath = [NSIndexPath indexPathForRow:4 inSection:0];
}else if ([self.state isEqualToString:TRANSPORT_STATE_PROCESSFAIL]) {
_currentIndexPath = [NSIndexPath indexPathForRow:5 inSection:0];
} }
self.userFiled.hidden = YES; self.userFiled.hidden = YES;
if(self.userNumber.length > 0){ if(self.userNumber.length > 0){
...@@ -75,7 +79,7 @@ ...@@ -75,7 +79,7 @@
{ {
_leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, LeftMargin,self.frame.size.height- BottomHeight)]; _leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, LeftMargin,self.frame.size.height- BottomHeight)];
[self addSubview:_leftView]; [self addSubview:_leftView];
NSArray *arr = @[@"按状态",@"创建人代码",@"调研单号",@"商品单号"]; NSArray *arr = @[@"按状态",@"创建人代码",@"调研单号",@"商品"];
for (NSInteger i = 0; i<arr.count; i++) { for (NSInteger i = 0; i<arr.count; i++) {
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.frame = CGRectMake(0, LeftHeight * i , LeftMargin ,LeftHeight); button.frame = CGRectMake(0, LeftHeight * i , LeftMargin ,LeftHeight);
...@@ -102,7 +106,7 @@ ...@@ -102,7 +106,7 @@
- (void)createRightView{ - (void)createRightView{
NSArray *arr = @[@"输入类似创建人代码",@"输入类似调研单号",@"输入类似商品单号"]; NSArray *arr = @[@"输入类似创建人代码",@"输入类似调研单号",@"输入类似商品"];
UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(LeftMargin, 0, ScreenSize.width - LeftMargin, self.frame.size.height - BottomHeight)]; UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(LeftMargin, 0, ScreenSize.width - LeftMargin, self.frame.size.height - BottomHeight)];
contentView.backgroundColor = [UIColor whiteColor]; contentView.backgroundColor = [UIColor whiteColor];
[self addSubview:contentView]; [self addSubview:contentView];
...@@ -251,7 +255,12 @@ ...@@ -251,7 +255,12 @@
stateStr = TRANSPORT_STATE_RECEIVED; stateStr = TRANSPORT_STATE_RECEIVED;
}else if(indexPath.row == 3){ }else if(indexPath.row == 3){
stateStr = TRANSPORT_STATE_ABORTED; stateStr = TRANSPORT_STATE_ABORTED;
}else if(indexPath.row == 4){
stateStr = TRANSPORT_STATE_PROCESS;
}else if(indexPath.row == 5){
stateStr = TRANSPORT_STATE_PROCESSFAIL;
} }
[self.delegate getBoltValueSelectRow:stateStr]; [self.delegate getBoltValueSelectRow:stateStr];
} }
......
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