Commit 21e2a3fd authored by 陈俊俊's avatar 陈俊俊

查看采购通知单

parent a7578035
......@@ -133,13 +133,21 @@ typedef enum : NSUInteger {
[self.view addSubview:_endBtn];
if ([self.purchaseNotice.state isEqualToString:PURCHASENOTICE_STATE_NOTACCEPTED]) {
if ([self checkIsPermission:NOTICE_PERMISSIONS_ACCEPTTASK]) {
if ([self checkIsPermission:NOTICE_PERMISSIONS_ACCEPTTASK] && [self checkIsPermission:NOTICE_PERMISSIONS_CREATEBILL]) {
_rejectBtn.tag = AcceptTag;
[_rejectBtn setTitle:@"接受任务" forState:UIControlStateNormal];
}
if ([self checkIsPermission:NOTICE_PERMISSIONS_CREATEBILL]) {
_endBtn.tag = NewTag;
_endBtn.backgroundColor = [UIColor grayColor];
[_endBtn setTitle:@"新建采购单" forState:UIControlStateNormal];
}else{
if ([self checkIsPermission:NOTICE_PERMISSIONS_ACCEPTTASK]) {
_rejectBtn.tag = AcceptTag;
[_rejectBtn setTitle:@"接受任务" forState:UIControlStateNormal];
}
if ([self checkIsPermission:NOTICE_PERMISSIONS_CREATEBILL]) {
_endBtn.tag = NewTag;
[_endBtn setTitle:@"新建采购单" forState:UIControlStateNormal];
}
}
}else if([self.purchaseNotice.state isEqualToString:PURCHASENOTICE_STATE_PURCHASEING]){
if([self checkIsPermission:NOTICE_PERMISSIONS_FINISH]){
......
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