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
5fe58fc7
Commit
5fe58fc7
authored
Sep 17, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择商品
parent
7d001db7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
NewTransportViewController.m
...ollers/Transport/Controllers/NewTransportViewController.m
+1
-0
TransportPurchaseViewController.m
...s/Transport/Controllers/TransportPurchaseViewController.m
+4
-2
No files found.
XFFruit/ViewControllers/Transport/Controllers/NewTransportViewController.m
View file @
5fe58fc7
...
...
@@ -163,6 +163,7 @@ typedef enum : NSUInteger {
[
IBTLoadingView
showTips
:[
NSString
stringWithFormat
:
@"当前单据%@已保存成功"
,
billNumberS
]];
}
else
{
//提交成功
TransportViewController
*
svc
=
[
TransportViewController
new
];
svc
.
title
=
@"发运单列表"
;
[
self
PushViewController
:
svc
animated
:
YES
];
}
}
else
{
...
...
XFFruit/ViewControllers/Transport/Controllers/TransportPurchaseViewController.m
View file @
5fe58fc7
...
...
@@ -95,7 +95,7 @@
for
(
NSDictionary
*
purchaseBillDict
in
recodesArr
)
{
PurchaseBill
*
purchaseBill
=
[[
PurchaseBill
alloc
]
init
];
[
purchaseBill
setValuesForKeysWithDictionary
:
purchaseBillDict
];
purchaseBill
.
products
=
[
self
coverTransportDetProduct
:
purchaseBillDict
[
@"products"
]];
purchaseBill
.
products
=
[
self
coverTransportDetProduct
:
purchaseBillDict
[
@"products"
]
purchaseBill
:
purchaseBill
];
[
self
.
dataArr
addObject
:
purchaseBill
];
}
...
...
@@ -118,11 +118,12 @@
[
IBTLoadingView
showTips
:
@" 无记录 "
];
}
}
-
(
NSMutableArray
*
)
coverTransportDetProduct
:
(
NSArray
*
)
arr
{
-
(
NSMutableArray
*
)
coverTransportDetProduct
:
(
NSArray
*
)
arr
purchaseBill
:
(
PurchaseBill
*
)
purchaseBill
{
NSMutableArray
*
transArr
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
arrDict
in
arr
)
{
TransportPdtDetail
*
detail
=
[
TransportPdtDetail
new
];
[
detail
setValuesForKeysWithDictionary
:
arrDict
];
detail
.
purchasebillnumber
=
purchaseBill
.
billNumber
;
detail
.
productUuid
=
arrDict
[
@"product_uuid"
];
detail
.
productCode
=
arrDict
[
@"product_code"
];
detail
.
productName
=
arrDict
[
@"product_name"
];
...
...
@@ -227,6 +228,7 @@
if
(
self
.
indexArr
.
count
>
0
)
{
NSMutableArray
*
arr
=
[
NSMutableArray
array
];
for
(
TransportPdtDetail
*
detail
in
self
.
indexArr
)
{
detail
.
purchasePdtDetail
=
detail
.
uuid
;
detail
.
uuid
=
nil
;
[
arr
addObject
:
detail
];
}
...
...
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