Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
c8199aad
Commit
c8199aad
authored
May 12, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发运单详情界面增加字段创建人、创建时间、审核人、审核时间、收货人、收货时间、有效期
parent
7cd4ec37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
193 additions
and
56 deletions
+193
-56
PurchaseDetailViewController.m
...llers/Purchase/Controllers/PurchaseDetailViewController.m
+21
-1
NewTransportViewController.m
...ollers/Transport/Controllers/NewTransportViewController.m
+27
-1
TransportDetailViewController.m
...ers/Transport/Controllers/TransportDetailViewController.m
+115
-53
TransportPurchaseViewController.h
...s/Transport/Controllers/TransportPurchaseViewController.h
+1
-0
TransportPurchaseViewController.m
...s/Transport/Controllers/TransportPurchaseViewController.m
+8
-0
Transport.h
XFFruit/ViewControllers/Transport/Models/Transport.h
+18
-1
TopTransportView.m
XFFruit/ViewControllers/Transport/Views/TopTransportView.m
+3
-0
No files found.
XFFruit/ViewControllers/Purchase/Controllers/PurchaseDetailViewController.m
View file @
c8199aad
...
...
@@ -60,13 +60,33 @@ typedef enum : NSUInteger {
@property
(
nonatomic
,
strong
)
UILabel
*
otherPriceLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
totalPriceLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
noteLabel
;
/**
* 创建时间
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelCreateTime
;
/**
* 审核人
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelInspector
;
/**
* 审核时间
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelInspectTime
;
/**
* 收货人
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelReciever
;
/**
* 收货时间
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelRecieveTime
;
/**
* 有效期
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelExpiredDate
;
/**
* 外部单据号
*/
@property
(
strong
,
nonatomic
)
UILabel
*
labelOutSideNum
;
@property
(
nonatomic
,
assign
)
BOOL
isNotShowEdit
;
//@property (nonatomic,strong)RejectView *rejectView;
...
...
XFFruit/ViewControllers/Transport/Controllers/NewTransportViewController.m
View file @
c8199aad
...
...
@@ -15,6 +15,7 @@
#import "FeeAcountDetail.h"
#import "TransportViewController.h"
#import "ShopDetaileViewController.h"
#import "PurchaseBill.h"
typedef
enum
:
NSUInteger
{
SaveTag
=
7000
,
CommitTag
,
...
...
@@ -36,6 +37,10 @@ typedef enum : NSUInteger {
}
@property
(
nonatomic
,
strong
)
NSString
*
state
;
/**
* 用户选择的第一个商品的采购单
*/
@property
(
strong
,
nonatomic
)
PurchaseBill
*
firstBill
;
@end
@implementation
NewTransportViewController
...
...
@@ -203,7 +208,6 @@ typedef enum : NSUInteger {
for
(
FeeAcountDetail
*
fee
in
_bottomView
.
costVC
.
costArr
)
{
[
costs
addObject
:[
fee
dictForCommit
]];
}
// self.state = state;
NSDictionary
*
dict
=
@{
@"uuid"
:
uuidObject
,
@"version"
:
versionObject
,
...
...
@@ -289,15 +293,37 @@ typedef enum : NSUInteger {
return
YES
;
}
-
(
void
)
setFirstBill
:
(
PurchaseBill
*
)
firstBill
{
_firstBill
=
firstBill
;
/**
* @property (nonatomic,strong)NSString *receiveWrh_uuid;//收货uuid
@property (nonatomic,strong)NSString *receiveWrh_code;//收货代码
@property (nonatomic,strong)NSString *receiveWrh_name;//收货姓名
*
*/
_sheetView
.
warehouseCode
=
firstBill
.
receiveWrh_code
;
_sheetView
.
warehouseName
=
firstBill
.
receiveWrh_name
;
_sheetView
.
warehouseUuid
=
firstBill
.
receiveWrh_uuid
;
_sheetView
.
warehouseLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@[%@]"
,
_sheetView
.
warehouseName
,
_sheetView
.
warehouseCode
];
_sheetView
.
warehouseLabel
.
textColor
=
GXF_CONTENT_COLOR
;
}
-
(
void
)
choseTransportPurchase
{
__weak
NewTransportViewController
*
weakSelf
=
self
;
TransportPurchaseViewController
*
tpv
=
[
TransportPurchaseViewController
new
];
tpv
.
getProchaseProduct
=
^
(
NSArray
*
products
){
if
(
products
.
count
>
0
)
{
[
_bottomView
reProduct
:
products
];
}
};
tpv
.
blockFirstWarehouse
=
^
(
NSArray
*
bills
){
if
(
bills
.
count
>
0
)
{
weakSelf
.
firstBill
=
bills
[
0
];
}
};
[
self
PushViewController
:
tpv
animated
:
YES
];
}
-
(
void
)
addTransportCost
:
(
NSNotification
*
)
fination
{
...
...
XFFruit/ViewControllers/Transport/Controllers/TransportDetailViewController.m
View file @
c8199aad
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/TransportPurchaseViewController.h
View file @
c8199aad
...
...
@@ -13,4 +13,5 @@ typedef void(^GetPurchaseProduct)(NSArray *products);
@interface
TransportPurchaseViewController
:
ICRBaseViewController
@property
(
nonatomic
,
copy
)
GetPurchaseProduct
getProchaseProduct
;
@property
(
nonatomic
,
copy
)
GetPurchaseProduct
blockFirstWarehouse
;
@end
XFFruit/ViewControllers/Transport/Controllers/TransportPurchaseViewController.m
View file @
c8199aad
...
...
@@ -293,6 +293,14 @@ NSInteger purchaseStockCheckNumber = 0;
[
arr
addObject
:
detail
];
}
weakSelf
.
getProchaseProduct
(
arr
);
for
(
PurchaseBill
*
bill
in
self
.
dataArr
)
{
if
([
array
containsObject
:
bill
.
billNumber
])
{
if
(
weakSelf
.
blockFirstWarehouse
)
{
weakSelf
.
blockFirstWarehouse
(@[
bill
]);
}
break
;
}
}
}
}];
...
...
XFFruit/ViewControllers/Transport/Models/Transport.h
View file @
c8199aad
...
...
@@ -35,6 +35,23 @@
@property
(
nonatomic
,
strong
)
NSArray
*
pdtDetails
;
//商品
@property
(
nonatomic
,
strong
)
NSArray
*
accountDetails
;
//费用
@property
(
nonatomic
,
strong
)
NSString
*
approv_time
;
//审核时间
@property
(
nonatomic
,
strong
)
NSString
*
approv_id
;
//审核人id
@property
(
nonatomic
,
strong
)
NSString
*
approv_operName
;
//审核人
/*
receive_time
收货时间
receive_id
收货人代码
receive_operName
收货人名称
expiredDate
到效日期
*/
@property
(
strong
,
nonatomic
)
NSString
*
receive_time
;
@property
(
strong
,
nonatomic
)
NSString
*
receive_id
;
@property
(
strong
,
nonatomic
)
NSString
*
receive_operName
;
@property
(
strong
,
nonatomic
)
NSString
*
expiredDate
;
@end
XFFruit/ViewControllers/Transport/Views/TopTransportView.m
View file @
c8199aad
...
...
@@ -124,6 +124,9 @@
}
else
if
(
indexPath
.
row
==
2
){
contentLabel
.
text
=
@"选择类型"
;
self
.
typeLabel
=
contentLabel
;
self
.
typeLabel
.
text
=
@"普通"
;
self
.
typeLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
type
=
GXF_Normal
;
}
else
if
(
indexPath
.
row
==
5
){
contentLabel
.
text
=
@"选择预计到货时间"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment