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
3195eeaa
Commit
3195eeaa
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择
parent
bdc0ca20
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
14 deletions
+49
-14
BusinessViewController.m
XFFruit/ViewControllers/Business/BusinessViewController.m
+1
-1
ChooseProductUnitViewController.m
...rs/ChooseViewController/ChooseProductUnitViewController.m
+1
-2
PurchaseViewController.h
...Controllers/Purchase/Controllers/PurchaseViewController.h
+1
-1
PurchaseViewController.m
...Controllers/Purchase/Controllers/PurchaseViewController.m
+2
-2
ProductBillCell.m
XFFruit/ViewControllers/Purchase/Views/ProductBillCell.m
+2
-2
CostViewController.m
...iewControllers/Transport/Controllers/CostViewController.m
+6
-3
TransportPurchaseViewController.m
...s/Transport/Controllers/TransportPurchaseViewController.m
+36
-3
No files found.
XFFruit/ViewControllers/Business/BusinessViewController.m
View file @
3195eeaa
...
...
@@ -186,7 +186,7 @@
{
PurchaseViewController
*
tVC
=
[[
PurchaseViewController
alloc
]
init
];
tVC
.
title
=
@"审核采购单"
;
tVC
.
assessor
State
=
PURCHASE_STATE_SUBMITTED
;
tVC
.
assessor
Vendor
=
[
ICRUserUtil
sharedInstance
].
userId
;
[
self
PushViewController
:
tVC
animated
:
YES
];
}
break
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/ChooseViewController/ChooseProductUnitViewController.m
View file @
3195eeaa
...
...
@@ -79,7 +79,6 @@
[
cell
setTitleStr
:[
NSString
stringWithFormat
:
@"上次更新时间:%@"
,
dateStr
]];
}
else
{
GXFProductUnit
*
product
=
self
.
dataArr
[
indexPath
.
row
];
cell
.
titleLabel
.
textColor
=
GXF_LEFTSIX_COLOR
;
NSString
*
proStr
=
[
NSString
stringWithFormat
:
@"%@"
,
product
.
name
];
[
cell
setTitleStr
:
proStr
];
}
...
...
@@ -98,7 +97,7 @@
if
(
!
self
.
isMoreChose
)
{
for
(
NSInteger
i
=
1
;
i
<
self
.
dataArr
.
count
;
i
++
)
{
GXFProductUnit
*
type
=
self
.
dataArr
[
i
];
if
([
type
.
uuid
isEqualToString
:
self
.
selectStr
])
{
if
([
type
.
name
isEqualToString
:
self
.
selectStr
])
{
NSIndexPath
*
indexPath
=
[
NSIndexPath
indexPathForRow
:
i
inSection
:
0
];
self
.
currentIndexPath
=
indexPath
;
break
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/PurchaseViewController.h
View file @
3195eeaa
...
...
@@ -10,6 +10,6 @@
@interface
PurchaseViewController
:
ICRBaseViewController
@property
(
nonatomic
,
strong
)
NSString
*
assessor
State
;
//从审核采购单跳转过来的
@property
(
nonatomic
,
strong
)
NSString
*
assessor
Vendor
;
//从审核采购单跳转过来的
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/PurchaseViewController.m
View file @
3195eeaa
...
...
@@ -65,8 +65,8 @@ typedef enum : NSUInteger {
}
-
(
void
)
initData
{
self
.
dataArr
=
[
NSMutableArray
array
];
if
(
self
.
assessor
State
.
length
>
0
)
{
self
.
state
=
self
.
assessorState
;
if
(
self
.
assessor
Vendor
.
length
>
0
)
{
self
.
vendorLike
=
self
.
assessorVendor
;
}
}
-
(
void
)
getData
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Views/ProductBillCell.m
View file @
3195eeaa
...
...
@@ -181,8 +181,8 @@
[
attributeStr1
appendAttributedString
:[
IBTCommon
setTextViewFontOfString
:
str
paragraphStyle
:
0
fontSize
:
13
color
:
[
UIColor
redColor
]]];
self
.
showShippedFlag
.
attributedText
=
attributeStr1
;
self
.
showShippedBaseQty
.
text
=
[
NSString
stringWithFormat
:
@"发运包装数量:%@"
,
[
billProduct
.
shippedBaseQty
stringValue
]
];
self
.
showShippedQty
.
text
=
[
NSString
stringWithFormat
:
@"发运基础数量:%@"
,
[
billProduct
.
shippedQty
stringValue
]
];
self
.
showShippedBaseQty
.
text
=
[
NSString
stringWithFormat
:
@"发运包装数量:%@"
,
billProduct
.
shippedBaseQty
?
[
billProduct
.
shippedBaseQty
stringValue
]:
@"0"
];
self
.
showShippedQty
.
text
=
[
NSString
stringWithFormat
:
@"发运基础数量:%@"
,
billProduct
.
shippedQty
?
[
billProduct
.
shippedQty
stringValue
]:
@"0"
];
[
self
.
showView
addSubview
:
self
.
showShippedFlag
];
[
self
.
showView
addSubview
:
self
.
showShippedQty
];
[
self
.
showView
addSubview
:
self
.
showShippedBaseQty
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/CostViewController.m
View file @
3195eeaa
...
...
@@ -10,7 +10,7 @@
#import "HeaderCell.h"
#import "FooterCell.h"
#import "CostCell.h"
@interface
CostViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
FooterCellDelegate
>
@interface
CostViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
FooterCellDelegate
,
HeaderCellDelegate
>
{
CGRect
_tableFrame
;
}
...
...
@@ -38,7 +38,8 @@
NSArray
*
arr
=
@[
@"费用"
,
@"应付金额"
,
@"已付金额"
,
@"尾款"
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenEdit
];
headCell
.
delegate
=
self
;
[
self
.
view
addSubview
:
headCell
];
self
.
tableView
.
tableHeaderView
=
headCell
;
if
(
!
self
.
isHiddenEdit
)
{
...
...
@@ -48,7 +49,9 @@
self
.
tableView
.
tableFooterView
=
footCell
;
}
}
-
(
void
)
addClickList
{
[
self
addClick
];
}
-
(
void
)
addClick
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
KNOTIFICATION_AddTransportCost
object
:
nil
];
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/TransportPurchaseViewController.m
View file @
3195eeaa
...
...
@@ -18,11 +18,13 @@
BOOL
_isRefresh
;
BOOL
_isLoadMore
;
NSInteger
_currentPage
;
id
billNumberObject
;
}
@property
(
nonatomic
,
strong
)
NSMutableArray
*
indexArr
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
dataArr
;
@property
(
nonatomic
,
strong
)
UITableView
*
tableView
;
@property
(
nonatomic
,
strong
)
UITextField
*
selectTextFiled
;
@property
(
nonatomic
,
strong
)
NSString
*
contentStr
;
@end
@implementation
TransportPurchaseViewController
...
...
@@ -49,6 +51,8 @@
self
.
dataArr
=
[
NSMutableArray
array
];
self
.
indexArr
=
[
NSMutableArray
array
];
}
-
(
void
)
getData
{
[
ICRUserUtil
sharedInstance
].
needFresh
=
NO
;
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
@@ -70,10 +74,14 @@
order
.
field
=
@"billNumber"
;
order
.
direction
=
@"desc"
;
[
orderArr
addObject
:[
order
dictForCommit
]];
}
billNumberObject
=
[
NSNull
null
];
if
(
self
.
contentStr
.
length
>
0
)
{
billNumberObject
=
self
.
contentStr
;
}
NSDictionary
*
dict
=
@{
@"state"
:
@"submitted"
,
@"state"
:
@"shipping"
,
@"billNumberLike"
:
billNumberObject
,
@"queryOrders"
:
orderArr
,
@"userUuid"
:
userUtil
.
userId
,
@"fetchParts"
:
@"products"
,
...
...
@@ -134,18 +142,43 @@
}
return
transArr
;
}
-
(
void
)
checkWithBillNumber
{
if
(
self
.
indexArr
.
count
>
0
)
{
[
self
.
indexArr
removeAllObjects
];
}
[
self
.
selectTextFiled
resignFirstResponder
];
if
(
self
.
selectTextFiled
.
text
.
length
>
0
)
{
self
.
contentStr
=
self
.
selectTextFiled
.
text
;
}
else
{
self
.
contentStr
=
@""
;
}
[
self
getData
];
}
#pragma mark - 布局
-
(
void
)
bulidLayout
{
self
.
selectTextFiled
=
[[
UITextField
alloc
]
initWithFrame
:
CGRectMake
(
20
,
5
,
ScreenSize
.
width
-
4
0
,
TopMargin
-
10
)];
self
.
selectTextFiled
=
[[
UITextField
alloc
]
initWithFrame
:
CGRectMake
(
20
,
5
,
ScreenSize
.
width
-
10
0
,
TopMargin
-
10
)];
self
.
selectTextFiled
.
textAlignment
=
NSTextAlignmentLeft
;
self
.
selectTextFiled
.
background
=
[
UIImage
imageNamed
:
@"textFiled"
];
self
.
selectTextFiled
.
delegate
=
self
;
self
.
selectTextFiled
.
placeholder
=
@"输入类似采购单号"
;
self
.
selectTextFiled
.
font
=
GXF_FIFTEENTEN_SIZE
;
[
self
.
view
addSubview
:
self
.
selectTextFiled
];
UIButton
*
btn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
btn
.
frame
=
CGRectMake
(
self
.
selectTextFiled
.
right
+
5
,
10
,
60
,
TopMargin
-
20
);
[
btn
setTitle
:
@"开始查询"
forState
:
UIControlStateNormal
];
btn
.
titleLabel
.
font
=
FontSize
(
13
);
btn
.
layer
.
cornerRadius
=
5
;
btn
.
layer
.
masksToBounds
=
YES
;
btn
.
backgroundColor
=
GXF_NAVIGAYION_COLOR
;
[
btn
addTarget
:
self
action
:
@selector
(
checkWithBillNumber
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
view
addSubview
:
btn
];
UIImageView
*
leftView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
35
,
40
)];
leftView
.
image
=
[
UIImage
imageNamed
:
@"search"
];
self
.
selectTextFiled
.
leftView
=
leftView
;
...
...
This diff is collapsed.
Click to expand it.
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