//
//  SaleInputViewModel.h
//  HDMall
//
//  Created by Javen on 2017/7/31.
//  Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HMSaleInputDetail.h"
#import "PicViewModel.h"
typedef void (^blockCallBack)(BOOL isSuccess);
typedef NS_ENUM(NSInteger, SaleInputType) {
    SaleInputTypeCreate,
    SaleInputTypeEdit,
    SaleInputTypeReadOnly
};
@interface SaleInputViewModel : NSObject
@property (assign, nonatomic) SaleInputType type;
@property (strong, nonatomic) PicViewModel *picVM;
@property (strong, nonatomic) NSMutableArray *arrPayments;
/** 创建销售录入单的请求体 */
@property (strong, nonatomic) HMSaleInputDetail *request;

/** 获取销售录入单详情 */
@property (strong, nonatomic) HMSaleInputDetail *detail;

/**
 获取全部支付方式

 @param callBack 获取到支付方式的回调（如果arrPayments = nil， 则代表请求失败）
 */
- (void)httpAllPayments:(blockCallBack)callBack;

- (void)httpSubmit:(blockCallBack)callBack;

- (void)httpDetailWithUuid:(NSString *)uuid callBack:(blockCallBack)callBack;
@end
