Commit 8d332eb7 authored by Sandy's avatar Sandy

bug fix

parent 47f6aad1
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.2.27</string> <string>1.2.28</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.2.27</string> <string>1.2.28</string>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
<dict> <dict>
<key>NSAllowsArbitraryLoads</key> <key>NSAllowsArbitraryLoads</key>
......
...@@ -117,7 +117,8 @@ typedef enum : NSUInteger { ...@@ -117,7 +117,8 @@ typedef enum : NSUInteger {
}; };
void(^fail)(id) = ^(id data) { void(^fail)(id) = ^(id data) {
[IBTLoadingView hideHUDWithText:nil]; [IBTLoadingView hideHUDWithText:nil];
[IBTLoadingView showTips:data]; ShowMessage(((NSError *)data).localizedDescription);
// [IBTLoadingView showTips:data];
}; };
[IBTLoadingView showProgressLabel:@"正在加载..."]; [IBTLoadingView showProgressLabel:@"正在加载..."];
[[ICRHTTPController sharedController] getPurchaseResultWithPurchaseUuid:self.purchaseBill.uuid success:succ failure:fail]; [[ICRHTTPController sharedController] getPurchaseResultWithPurchaseUuid:self.purchaseBill.uuid success:succ failure:fail];
...@@ -336,7 +337,8 @@ typedef enum : NSUInteger { ...@@ -336,7 +337,8 @@ typedef enum : NSUInteger {
} }
} }
}else{ }else{
[IBTLoadingView showTips:message]; ShowMessage(message);
// [IBTLoadingView showTips:message];
} }
} }
}; };
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
for (TransferPdtDetail *pdt in self.productArr) { for (TransferPdtDetail *pdt in self.productArr) {
NSString *sourceBillNumber = pdt.sourcebillnumber ? pdt.sourcebillnumber : @" "; NSString *sourceBillNumber = pdt.sourcebillnumber ? pdt.sourcebillnumber : @" ";
if (![self.arrBillNumber containsObject:pdt.sourcebillnumber]) { if (![self.arrBillNumber containsObject:sourceBillNumber]) {
[self.arrBillNumber addObject:sourceBillNumber]; [self.arrBillNumber addObject:sourceBillNumber];
} }
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
[arrTemp addObject:pdt]; [arrTemp addObject:pdt];
} }
CLog(@"%@", self.dictData);
} }
......
...@@ -374,6 +374,7 @@ typedef enum : NSUInteger { ...@@ -374,6 +374,7 @@ typedef enum : NSUInteger {
TransportPurchaseViewController *tpv = [TransportPurchaseViewController new]; TransportPurchaseViewController *tpv = [TransportPurchaseViewController new];
tpv.isTransportIn = NO; tpv.isTransportIn = NO;
tpv.receiveWrhUuid = _sheetView.warehouseUuid;
tpv.getProchaseProduct = ^(NSArray *products){ tpv.getProchaseProduct = ^(NSArray *products){
if (products.count > 0) { if (products.count > 0) {
NSMutableArray *arr = [self coverTransferProduct:products]; NSMutableArray *arr = [self coverTransferProduct:products];
......
...@@ -126,6 +126,10 @@ ...@@ -126,6 +126,10 @@
}else if(indexPath.row == 2){ }else if(indexPath.row == 2){
contentLabel.text = @"选择类型"; contentLabel.text = @"选择类型";
self.typeLabel = contentLabel; self.typeLabel = contentLabel;
self.typeLabel.text = @"普通";
self.typeLabel.textColor = GXF_CONTENT_COLOR;
self.type = GXF_Normal;
self.selectType = GXF_Normal;
}else if(indexPath.row == 5){ }else if(indexPath.row == 5){
contentLabel.text = @"选择预计到货时间"; contentLabel.text = @"选择预计到货时间";
......
...@@ -20,5 +20,9 @@ typedef void(^GetPurchaseProduct)(NSArray *products); ...@@ -20,5 +20,9 @@ typedef void(^GetPurchaseProduct)(NSArray *products);
@property (nonatomic, assign) BOOL isTransportIn; @property (nonatomic, assign) BOOL isTransportIn;
@property (weak, nonatomic) NSMutableDictionary *dicProduct; @property (weak, nonatomic) NSMutableDictionary *dicProduct;
/**
* 采购单的收货仓库(即转运单、发运单的发货仓库)
*/
@property (strong, nonatomic) NSString *receiveWrhUuid;
@end @end
...@@ -86,7 +86,7 @@ NSInteger purchaseStockCheckNumber = 0; ...@@ -86,7 +86,7 @@ NSInteger purchaseStockCheckNumber = 0;
} }
NSDictionary *dict; NSDictionary *dict;
// if (self.isTransportIn) { if (self.isTransportIn) {
dict = @{ dict = @{
@"state":PURCHASE_STATE_RECEIVED, @"state":PURCHASE_STATE_RECEIVED,
@"queryOrders":orderArr, @"queryOrders":orderArr,
...@@ -96,17 +96,17 @@ NSInteger purchaseStockCheckNumber = 0; ...@@ -96,17 +96,17 @@ NSInteger purchaseStockCheckNumber = 0;
@"isProductCenter":@(1), @"isProductCenter":@(1),
@"pageNumber":@(_currentPage), @"pageNumber":@(_currentPage),
@"pageSize":@(20)}; @"pageSize":@(20)};
// }else{ }else{
// dict = @{ dict = @{
// @"state":[NSNull null], @"state":PURCHASE_STATE_RECEIVED,
// @"stateNotIn":@[PURCHASE_STATE_ABORTED,PURCHASE_STATE_REJECTED], @"queryOrders":orderArr,
// @"queryOrders":orderArr, @"userUuid":userUtil.userId,
// @"userUuid":userUtil.userId, @"billNumberProductLike":billNumberObject,
// @"billNumberProductLike":billNumberObject, @"fetchParts":@"products",
// @"fetchParts":@"products", @"receiveWrhUuid":self.receiveWrhUuid,
// @"pageNumber":@(_currentPage), @"pageNumber":@(_currentPage),
// @"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{
......
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