Commit e593fd68 authored by 管鹏飞's avatar 管鹏飞

『新建采购单』增加费用明细、提交请求 Sandy

parent 8c03c5a1
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#import "NoticeProduct.h" #import "NoticeProduct.h"
#import "BottomPurchaseView.h" #import "BottomPurchaseView.h"
#import "NewCostViewController.h" #import "NewCostViewController.h"
#import "FeeAcountDetail.h"
#define TopHeight 328 #define TopHeight 328
#define BottomHeight 300 #define BottomHeight 300
#define SpaceHeight 20 #define SpaceHeight 20
...@@ -314,6 +315,11 @@ typedef enum : NSUInteger { ...@@ -314,6 +315,11 @@ typedef enum : NSUInteger {
for (PurchaseBillProduct *billProduct in _aBottomView.productVC.productArr) { [billProducts addObject:[billProduct dictForCommit]]; for (PurchaseBillProduct *billProduct in _aBottomView.productVC.productArr) { [billProducts addObject:[billProduct dictForCommit]];
} }
self.state = state; self.state = state;
NSMutableArray *costs = [NSMutableArray array];
for (FeeAcountDetail *fee in _aBottomView.costVC.costArr) {
[costs addObject:[fee dictForCommit]];
}
NSDictionary *dict = @{@"uuid":uuidObject, NSDictionary *dict = @{@"uuid":uuidObject,
@"version":versionObject, @"version":versionObject,
@"billnumber":billNumberObject, @"billnumber":billNumberObject,
...@@ -330,7 +336,8 @@ typedef enum : NSUInteger { ...@@ -330,7 +336,8 @@ typedef enum : NSUInteger {
@"total":_purchaseView.total, @"total":_purchaseView.total,
@"charge":_purchaseView.chargePurchase, @"charge":_purchaseView.chargePurchase,
@"remark":[IBTCommon checkString:_purchaseView.remark], @"remark":[IBTCommon checkString:_purchaseView.remark],
@"products":billProducts}; @"products":billProducts,
@"accountDetails":costs0};
[IBTLoadingView showProgressLabel:msg]; [IBTLoadingView showProgressLabel:msg];
[[ICRHTTPController sharedController] savePurchaseWithData:dict success:succ failure:fail]; [[ICRHTTPController sharedController] savePurchaseWithData:dict success:succ failure:fail];
} }
......
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