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
3f90aae7
Commit
3f90aae7
authored
May 24, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复保存之后的单据提交闪退的bug
parent
f4b160b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
NewTransportViewController.m
...ollers/Transport/Controllers/NewTransportViewController.m
+15
-0
TransportPurchaseViewController.m
...s/Transport/Controllers/TransportPurchaseViewController.m
+1
-1
No files found.
XFFruit/ViewControllers/Transport/Controllers/NewTransportViewController.m
View file @
3f90aae7
...
...
@@ -110,6 +110,18 @@ typedef enum : NSUInteger {
_sheetView
.
transport
=
self
.
transport
;
[
_bottomView
refreshCost
:
self
.
transport
.
accountDetails
];
[
_bottomView
refreshTranProduct
:
self
.
transport
.
pdtDetails
];
//清空缓存,重新
[
self
.
dicProduct
removeAllObjects
];
for
(
TransportPdtDetail
*
pdtDetail
in
_bottomView
.
productVC
.
transportProductArr
)
{
NSMutableArray
*
arrProduct
=
[
self
.
dicProduct
objectForKey
:
pdtDetail
.
purchasebillnumber
];
if
(
!
arrProduct
)
{
arrProduct
=
[
NSMutableArray
array
];
[
self
.
dicProduct
setObject
:
arrProduct
forKey
:
pdtDetail
.
purchasebillnumber
];
}
[
arrProduct
addObject
:
pdtDetail
];
}
}
-
(
void
)
bulidLayout
{
...
...
@@ -150,6 +162,8 @@ typedef enum : NSUInteger {
break
;
case
CommitTag
:{
if
([
self
checkTransport
])
{
NSArray
*
array
=
self
.
dicProduct
.
allKeys
;
__weak
NewTransportViewController
*
weakSelf
=
self
;
//判断数量问题
...
...
@@ -170,6 +184,7 @@ typedef enum : NSUInteger {
}
-
(
void
)
stockValidWithDic
:
(
NSMutableDictionary
*
)
dic
billNumbers
:
(
NSArray
*
)
billNumbers
complete
:
(
void
(
^
)(
void
))
complete
{
//如果billNumbers数量为0,说明没有去选择
NSString
*
billNum
=
billNumbers
[
purchaseAddStockCheckNumber
];
NSMutableArray
*
arrProducts
=
[
dic
objectForKey
:
billNum
];
...
...
XFFruit/ViewControllers/Transport/Controllers/TransportPurchaseViewController.m
View file @
3f90aae7
...
...
@@ -310,7 +310,7 @@ NSInteger purchaseStockCheckNumber = 0;
for
(
TransportPdtDetail
*
detail
in
bill
.
products
)
{
detail
.
purchasebillnumber
=
bill
.
billNumber
;
if
([
self
.
indexArr
containsObject
:
detail
])
{
NSMutableArray
*
arrProduct
=
[
self
.
dicProduct
objectForKey
:
bill
.
billNumber
];
NSMutableArray
*
arrProduct
=
[
dicProduct
objectForKey
:
bill
.
billNumber
];
if
(
!
arrProduct
)
{
arrProduct
=
[
NSMutableArray
array
];
[
dicProduct
setObject
:
arrProduct
forKey
:
bill
.
billNumber
];
...
...
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