Commit 5fe58fc7 authored by 陈俊俊's avatar 陈俊俊

选择商品

parent 7d001db7
......@@ -163,6 +163,7 @@ typedef enum : NSUInteger {
[IBTLoadingView showTips:[NSString stringWithFormat:@"当前单据%@已保存成功",billNumberS]];
}else{//提交成功
TransportViewController *svc = [TransportViewController new];
svc.title = @"发运单列表";
[self PushViewController:svc animated:YES];
}
}else{
......
......@@ -95,7 +95,7 @@
for (NSDictionary *purchaseBillDict in recodesArr) {
PurchaseBill *purchaseBill = [[PurchaseBill alloc]init];
[purchaseBill setValuesForKeysWithDictionary:purchaseBillDict];
purchaseBill.products = [self coverTransportDetProduct:purchaseBillDict[@"products"]];
purchaseBill.products = [self coverTransportDetProduct:purchaseBillDict[@"products"] purchaseBill:purchaseBill];
[self.dataArr addObject:purchaseBill];
}
......@@ -118,11 +118,12 @@
[IBTLoadingView showTips:@" 无记录 "];
}
}
- (NSMutableArray *)coverTransportDetProduct:(NSArray *)arr{
- (NSMutableArray *)coverTransportDetProduct:(NSArray *)arr purchaseBill:(PurchaseBill *)purchaseBill{
NSMutableArray *transArr = [NSMutableArray array];
for (NSDictionary *arrDict in arr) {
TransportPdtDetail *detail = [TransportPdtDetail new];
[detail setValuesForKeysWithDictionary:arrDict];
detail.purchasebillnumber = purchaseBill.billNumber;
detail.productUuid = arrDict[@"product_uuid"];
detail.productCode = arrDict[@"product_code"];
detail.productName = arrDict[@"product_name"];
......@@ -227,6 +228,7 @@
if (self.indexArr.count > 0) {
NSMutableArray*arr = [NSMutableArray array];
for (TransportPdtDetail *detail in self.indexArr) {
detail.purchasePdtDetail = detail.uuid;
detail.uuid = nil;
[arr addObject:detail];
}
......
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