Commit 47f6aad1 authored by Sandy's avatar Sandy

转运单必须先选择发货仓库才能选择采购单

parent d169f1ef
......@@ -367,6 +367,11 @@ typedef enum : NSUInteger {
#pragma mark - 通知选择采购单
- (void)choseTransferPurchase{
if (_sheetView.warehouseName.length == 0 ) {
ShowMessage(@"发货仓库不能为空!");
return;
}
TransportPurchaseViewController *tpv = [TransportPurchaseViewController new];
tpv.isTransportIn = NO;
tpv.getProchaseProduct = ^(NSArray *products){
......@@ -381,6 +386,10 @@ typedef enum : NSUInteger {
}
#pragma mark - 通知选择发运单
- (void)chooseTransportProduct{
if (_sheetView.warehouseName.length == 0 ) {
ShowMessage(@"发货仓库不能为空!");
return;
}
ChooseTransportViewController *tpv = [ChooseTransportViewController new];
tpv.getTransferProduct = ^(NSArray *products){
if (products.count > 0) {
......@@ -392,6 +401,10 @@ typedef enum : NSUInteger {
}
- (void)chooseTransferProduct{
if (_sheetView.warehouseName.length == 0 ) {
ShowMessage(@"发货仓库不能为空!");
return;
}
ChooseTransferViewController *ctv = [ChooseTransferViewController new];
ctv.chooseTransferProduct = ^(NSArray *products){
if (products.count > 0) {
......
......@@ -70,7 +70,7 @@
- (void)addClickList{
if (!self.popView) {
// NSArray *arr = @[@"添加商品明细",@"选择采购单",@"选择发运单",@"选择转运单"];
NSArray *arr = @[@"选择采购单",@"选择发运单",@"选择转运单"];
NSArray *arr = @[@"选择采购单"];
self.popView = [[GXFPopView alloc]initWithFrame:CGRectMake(0, 0, ScreenSize.width, ScreenSize.height) withArr:arr];
self.popView.delegate = self;
......
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