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
68eaa1ef
Commit
68eaa1ef
authored
Nov 10, 2015
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数量修改
parent
a4a53ec4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
62 additions
and
54 deletions
+62
-54
IBTCommon.h
XFFruit/Utilities/IBTUIKit/IBTCommon.h
+1
-0
IBTCommon.m
XFFruit/Utilities/IBTUIKit/IBTCommon.m
+11
-1
ProductBillCell.m
XFFruit/ViewControllers/Purchase/Views/ProductBillCell.m
+8
-8
NoticeProductViewController.m
...ollers/PurchaseNotice/Views/NoticeProductViewController.m
+3
-3
ShopDetaileViewController.m
...trollers/PurchaseNotice/Views/ShopDetaileViewController.m
+4
-4
NewReceiveProductViewController.m
...s/Receiving/Controllers/NewReceiveProductViewController.m
+12
-12
ReceiveProductCell.m
XFFruit/ViewControllers/Receiving/Views/ReceiveProductCell.m
+11
-11
BottomTransferView.m
XFFruit/ViewControllers/Transfer/Views/BottomTransferView.m
+0
-3
TransferProductCell.m
XFFruit/ViewControllers/Transfer/Views/TransferProductCell.m
+6
-6
TransportPurductCell.m
...it/ViewControllers/Transport/Views/TransportPurductCell.m
+6
-6
No files found.
XFFruit/Utilities/IBTUIKit/IBTCommon.h
View file @
68eaa1ef
...
@@ -46,4 +46,5 @@
...
@@ -46,4 +46,5 @@
+
(
BOOL
)
checkIsPermission
:(
NSString
*
)
permission
;
+
(
BOOL
)
checkIsPermission
:(
NSString
*
)
permission
;
+
(
UILabel
*
)
labelWithTitle
:(
NSString
*
)
title
frame
:(
CGRect
)
frame
textFont
:(
UIFont
*
)
titleFont
;
+
(
UILabel
*
)
labelWithTitle
:(
NSString
*
)
title
frame
:(
CGRect
)
frame
textFont
:(
UIFont
*
)
titleFont
;
+
(
UIButton
*
)
buttonWithTitle
:(
NSString
*
)
title
Image
:(
UIImage
*
)
image
frame
:(
CGRect
)
frame
fontSize
:(
float
)
fontSize
fontColor
:(
UIColor
*
)
color
;
+
(
UIButton
*
)
buttonWithTitle
:(
NSString
*
)
title
Image
:(
UIImage
*
)
image
frame
:(
CGRect
)
frame
fontSize
:(
float
)
fontSize
fontColor
:(
UIColor
*
)
color
;
+
(
UIButton
*
)
buttonWithImage
:(
UIImage
*
)
image
frame
:(
CGRect
)
frame
;
@end
@end
XFFruit/Utilities/IBTUIKit/IBTCommon.m
View file @
68eaa1ef
...
@@ -297,5 +297,15 @@
...
@@ -297,5 +297,15 @@
return
button
;
return
button
;
}
}
+
(
UIButton
*
)
buttonWithImage
:
(
UIImage
*
)
image
frame
:
(
CGRect
)
frame
{
UIButton
*
button
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
button
.
frame
=
frame
;
button
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentCenter
;
button
.
contentVerticalAlignment
=
UIControlContentVerticalAlignmentCenter
;
[
button
setImage
:
image
forState
:
UIControlStateNormal
];
return
button
;
}
@end
@end
XFFruit/ViewControllers/Purchase/Views/ProductBillCell.m
View file @
68eaa1ef
...
@@ -145,17 +145,17 @@
...
@@ -145,17 +145,17 @@
{
{
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
titleLabel
.
text
=
billProduct
.
product_name
;
self
.
titleLabel
.
text
=
billProduct
.
product_name
;
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,
billProduct
.
basePrice
];
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,
[
billProduct
.
basePrice
stringValue
]
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
billProduct
.
qty
,
billProduct
.
unit
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
[
billProduct
.
qty
stringValue
]
,
billProduct
.
unit
];
self
.
shippedQtyLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
billProduct
.
shippedBaseQty
?
[
billProduct
.
shippedBaseQty
stringValue
]:
@"0"
,
billProduct
.
unit
];
self
.
shippedQtyLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
billProduct
.
shippedBaseQty
?
[
billProduct
.
shippedBaseQty
stringValue
]:
@"0"
,
billProduct
.
unit
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
billProduct
.
product_name
,
billProduct
.
product_code
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
billProduct
.
product_name
,
billProduct
.
product_code
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
billProduct
.
qpc
,
billProduct
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
[
billProduct
.
qpc
stringValue
]
,
billProduct
.
baseUnit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
billProduct
.
qty
,
billProduct
.
unit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
[
billProduct
.
qty
stringValue
]
,
billProduct
.
unit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
billProduct
.
baseQty
,
billProduct
.
baseUnit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
[
billProduct
.
baseQty
stringValue
]
,
billProduct
.
baseUnit
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
billProduct
.
price
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
[
billProduct
.
price
stringValue
]
];
self
.
showBasePriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%@元"
,
billProduct
.
basePrice
];
self
.
showBasePriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%@元"
,
[
billProduct
.
basePrice
stringValue
]
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
billProduct
.
total
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
[
billProduct
.
total
stringValue
]
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
billProduct
.
remark
?
billProduct
.
remark
:
@"无"
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
billProduct
.
remark
?
billProduct
.
remark
:
@"无"
];
[
self
isShowShippingQty
:
billProduct
];
[
self
isShowShippingQty
:
billProduct
];
}
}
...
...
XFFruit/ViewControllers/PurchaseNotice/Views/NoticeProductViewController.m
View file @
68eaa1ef
...
@@ -274,20 +274,20 @@ typedef enum : NSUInteger {
...
@@ -274,20 +274,20 @@ typedef enum : NSUInteger {
if
(
_qpcQuantityField
.
text
.
length
>
0
)
{
//包装数量
if
(
_qpcQuantityField
.
text
.
length
>
0
)
{
//包装数量
//计算基础数量
//计算基础数量
float
baseCount
=
[
_qpcField
.
text
floatValue
]
*
[
_qpcQuantityField
.
text
floatValue
];
float
baseCount
=
[
_qpcField
.
text
floatValue
]
*
[
_qpcQuantityField
.
text
floatValue
];
_quantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
0
f"
,
baseCount
];
_quantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
2
f"
,
baseCount
];
}
}
}
else
if
(
textField
==
_qpcQuantityField
)
{
//包装数量
}
else
if
(
textField
==
_qpcQuantityField
)
{
//包装数量
if
(
_qpcField
.
text
.
length
>
0
)
{
//包装规格
if
(
_qpcField
.
text
.
length
>
0
)
{
//包装规格
//计算基础数量
//计算基础数量
float
baseCount
=
[
_qpcField
.
text
floatValue
]
*
[
_qpcQuantityField
.
text
floatValue
];
float
baseCount
=
[
_qpcField
.
text
floatValue
]
*
[
_qpcQuantityField
.
text
floatValue
];
_quantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
0
f"
,
baseCount
];
_quantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
2
f"
,
baseCount
];
}
}
}
else
if
(
textField
==
_quantityField
)
{
//基础数量
}
else
if
(
textField
==
_quantityField
)
{
//基础数量
if
(
_qpcField
.
text
.
length
>
0
)
{
//包装规格
if
(
_qpcField
.
text
.
length
>
0
)
{
//包装规格
//计算包装数量
//计算包装数量
if
([
_qpcField
.
text
integerValue
]
>
0
)
{
if
([
_qpcField
.
text
integerValue
]
>
0
)
{
float
packCount
=
[
_quantityField
.
text
floatValue
]
/
[
_qpcField
.
text
floatValue
];
float
packCount
=
[
_quantityField
.
text
floatValue
]
/
[
_qpcField
.
text
floatValue
];
_qpcQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
0
f"
,
packCount
];
_qpcQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
2
f"
,
packCount
];
}
}
}
}
}
}
...
...
XFFruit/ViewControllers/PurchaseNotice/Views/ShopDetaileViewController.m
View file @
68eaa1ef
...
@@ -118,7 +118,7 @@ typedef enum : NSUInteger {
...
@@ -118,7 +118,7 @@ typedef enum : NSUInteger {
self
.
shopDetail
.
packageQpcUnit
?
(
_baseCountLabel
.
text
=
self
.
shopDetail
.
packageQpcUnit
)
:
(
_baseCountLabel
.
text
=
@"斤"
);
self
.
shopDetail
.
packageQpcUnit
?
(
_baseCountLabel
.
text
=
self
.
shopDetail
.
packageQpcUnit
)
:
(
_baseCountLabel
.
text
=
@"斤"
);
//包装数量
//包装数量
if
([
self
.
shopDetail
.
packageQuantity
integer
Value
]
>
0
)
{
if
([
self
.
shopDetail
.
packageQuantity
float
Value
]
>
0
)
{
packageQuantity
.
text
=
self
.
shopDetail
.
packageQuantity
;
packageQuantity
.
text
=
self
.
shopDetail
.
packageQuantity
;
}
}
//基础数量
//基础数量
...
@@ -450,8 +450,8 @@ typedef enum : NSUInteger {
...
@@ -450,8 +450,8 @@ typedef enum : NSUInteger {
if
(
textField
==
packageSpecification
||
textField
==
packageQuantity
)
{
if
(
textField
==
packageSpecification
||
textField
==
packageQuantity
)
{
if
(
packageSpecification
.
text
.
length
>
0
&&
packageQuantity
.
text
.
length
>
0
)
{
if
(
packageSpecification
.
text
.
length
>
0
&&
packageQuantity
.
text
.
length
>
0
)
{
//计算基础数量 和 总金额和包装单价
//计算基础数量 和 总金额和包装单价
int
baseCount
=
[
packageSpecification
.
text
intValue
]
*
[
packageQuantity
.
text
in
tValue
];
float
baseCount
=
[
packageSpecification
.
text
floatValue
]
*
[
packageQuantity
.
text
floa
tValue
];
foundationQuantity
.
text
=
[
NSString
stringWithFormat
:
@"%
d
"
,
baseCount
];
foundationQuantity
.
text
=
[
NSString
stringWithFormat
:
@"%
.2f
"
,
baseCount
];
//如果基础单价有 会计算出包装单价和总价
//如果基础单价有 会计算出包装单价和总价
//如果包装单价有 会计算出基础单价和总价
//如果包装单价有 会计算出基础单价和总价
[
self
setTotalMoney
];
[
self
setTotalMoney
];
...
@@ -479,7 +479,7 @@ typedef enum : NSUInteger {
...
@@ -479,7 +479,7 @@ typedef enum : NSUInteger {
if
(
foundationQuantity
.
text
.
length
>
0
)
{
if
(
foundationQuantity
.
text
.
length
>
0
)
{
float
totalPrice
=
[
foundationUnitPrice
.
text
floatValue
]
*
[
foundationQuantity
.
text
floatValue
];
float
totalPrice
=
[
foundationUnitPrice
.
text
floatValue
]
*
[
foundationQuantity
.
text
floatValue
];
totalMoney
.
text
=
[
NSString
stringWithFormat
:
@"%.4f"
,
totalPrice
];
totalMoney
.
text
=
[
NSString
stringWithFormat
:
@"%.4f"
,
totalPrice
];
if
(
packageQuantity
.
text
.
length
>
0
&&
[
packageQuantity
.
text
integer
Value
]
>
0
)
{
if
(
packageQuantity
.
text
.
length
>
0
&&
[
packageQuantity
.
text
float
Value
]
>
0
)
{
float
packagePrice
=
totalPrice
/
[
packageQuantity
.
text
floatValue
];
float
packagePrice
=
totalPrice
/
[
packageQuantity
.
text
floatValue
];
packageUnitPrice
.
text
=
[
NSString
stringWithFormat
:
@"%.4f"
,
packagePrice
];
packageUnitPrice
.
text
=
[
NSString
stringWithFormat
:
@"%.4f"
,
packagePrice
];
}
}
...
...
XFFruit/ViewControllers/Receiving/Controllers/NewReceiveProductViewController.m
View file @
68eaa1ef
...
@@ -255,26 +255,26 @@
...
@@ -255,26 +255,26 @@
_choosePackUnitLabel
.
text
=
self
.
noticeProduct
.
unit
;
_choosePackUnitLabel
.
text
=
self
.
noticeProduct
.
unit
;
_choosePackStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"1*%@ %@"
,
self
.
noticeProduct
.
qpc
,
self
.
noticeProduct
.
baseUnit
];
_choosePackStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"1*%@ %@"
,
[
self
.
noticeProduct
.
qpc
stringValue
]
,
self
.
noticeProduct
.
baseUnit
];
_choosePackCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ %@"
,
self
.
noticeProduct
.
qty
,
self
.
noticeProduct
.
unit
];
_choosePackCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ %@"
,
[
self
.
noticeProduct
.
qty
stringValue
]
,
self
.
noticeProduct
.
unit
];
_chooseBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ %@"
,
self
.
noticeProduct
.
baseQty
,
self
.
noticeProduct
.
baseUnit
];
_chooseBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ %@"
,
[
self
.
noticeProduct
.
baseQty
stringValue
]
,
self
.
noticeProduct
.
baseUnit
];
_chooseTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,
self
.
noticeProduct
.
total
];
_chooseTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,
[
self
.
noticeProduct
.
total
stringValue
]
];
_choosePackPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ 元"
,
self
.
noticeProduct
.
packprice
];
_choosePackPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ 元"
,
[
self
.
noticeProduct
.
packprice
stringValue
]
];
_chooseBasePriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ 元"
,
self
.
noticeProduct
.
price
];
_chooseBasePriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ 元"
,
[
self
.
noticeProduct
.
price
stringValue
]
];
_shbzLabel
.
text
=
self
.
noticeProduct
.
unit
;
_shbzLabel
.
text
=
self
.
noticeProduct
.
unit
;
_shjcLabel
.
text
=
self
.
noticeProduct
.
baseUnit
;
_shjcLabel
.
text
=
self
.
noticeProduct
.
baseUnit
;
if
(
self
.
noticeProduct
.
rctBaseQty
)
{
if
(
self
.
noticeProduct
.
rctBaseQty
)
{
_shBaseQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
self
.
noticeProduct
.
rctBaseQty
];
_shBaseQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
[
self
.
noticeProduct
.
rctBaseQty
stringValue
]
];
}
}
if
(
self
.
noticeProduct
.
rctQty
)
{
if
(
self
.
noticeProduct
.
rctQty
)
{
_shPackField
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
self
.
noticeProduct
.
rctQty
];
_shPackField
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
[
self
.
noticeProduct
.
rctQty
stringValue
]
];
}
}
if
(
self
.
noticeProduct
.
rctTotal
)
{
if
(
self
.
noticeProduct
.
rctTotal
)
{
_chooseTotalPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ 元"
,
self
.
noticeProduct
.
rctTotal
];
_chooseTotalPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@ 元"
,
[
self
.
noticeProduct
.
rctTotal
stringValue
]
];
}
else
{
}
else
{
_chooseTotalPriceLabel
.
text
=
@"0.00元"
;
_chooseTotalPriceLabel
.
text
=
@"0.00
00
元"
;
}
}
}
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
}
}
_chooseTotalPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.4f元"
,
total
];
_chooseTotalPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.4f元"
,
total
];
_shBaseQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
0
f"
,
baseCount
];
_shBaseQuantityField
.
text
=
[
NSString
stringWithFormat
:
@"%.
2
f"
,
baseCount
];
}
}
}
else
if
(
textField
==
_shBaseQuantityField
)
{
}
else
if
(
textField
==
_shBaseQuantityField
)
{
if
(
_shBaseQuantityField
.
text
.
length
>
0
)
{
if
(
_shBaseQuantityField
.
text
.
length
>
0
)
{
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
}
}
_chooseTotalPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.4f元"
,
total
];
_chooseTotalPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.4f元"
,
total
];
_shPackField
.
text
=
[
NSString
stringWithFormat
:
@"%.
0
f"
,
baseCount
];
_shPackField
.
text
=
[
NSString
stringWithFormat
:
@"%.
2
f"
,
baseCount
];
}
}
}
}
}
}
...
...
XFFruit/ViewControllers/Receiving/Views/ReceiveProductCell.m
View file @
68eaa1ef
...
@@ -161,24 +161,24 @@
...
@@ -161,24 +161,24 @@
{
{
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
titleLabel
.
text
=
transferProduct
.
productName
;
self
.
titleLabel
.
text
=
transferProduct
.
productName
;
self
.
dscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
qty
,
transferProduct
.
unit
];
self
.
dscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
[
transferProduct
.
qty
stringValue
]
,
transferProduct
.
unit
];
self
.
yscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
rctQty
?
transferProduct
.
rctQty
:
@"0"
,
transferProduct
.
unit
];
self
.
yscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
rctQty
?
[
transferProduct
.
rctQty
stringValue
]
:
@"0"
,
transferProduct
.
unit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
transferProduct
.
qpc
,
transferProduct
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
[
transferProduct
.
qpc
stringValue
]
,
transferProduct
.
baseUnit
];
self
.
showbzdwLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单位:%@"
,
transferProduct
.
unit
];
self
.
showbzdwLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单位:%@"
,
transferProduct
.
unit
];
self
.
showbzCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
transferProduct
.
qty
,
transferProduct
.
unit
];
self
.
showbzCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
[
transferProduct
.
qty
stringValue
]
,
transferProduct
.
unit
];
self
.
showshCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量[实收]:%@%@"
,
transferProduct
.
rctQty
?(
transferProduct
.
rctQty
):
@"0"
,
transferProduct
.
unit
];
self
.
showshCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量[实收]:%@%@"
,
transferProduct
.
rctQty
?(
[
transferProduct
.
rctQty
stringValue
]
):
@"0"
,
transferProduct
.
unit
];
self
.
showjcCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
transferProduct
.
baseQty
,
transferProduct
.
baseUnit
];
self
.
showjcCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
[
transferProduct
.
baseQty
stringValue
]
,
transferProduct
.
baseUnit
];
self
.
showshjcCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量[实收]:%@%@"
,
transferProduct
.
rctBaseQty
?
transferProduct
.
rctBaseQty
:
@"0"
,
transferProduct
.
baseUnit
];
self
.
showshjcCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量[实收]:%@%@"
,
transferProduct
.
rctBaseQty
?
[
transferProduct
.
rctBaseQty
stringValue
]
:
@"0"
,
transferProduct
.
baseUnit
];
self
.
showbzPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
transferProduct
.
packprice
];
self
.
showbzPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
[
transferProduct
.
packprice
stringValue
]
];
self
.
showjcPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%@元"
,
transferProduct
.
price
];
self
.
showjcPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%@元"
,
[
transferProduct
.
price
stringValue
]
];
self
.
showshTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额[实收]:%@元"
,
transferProduct
.
rctTotal
?
transferProduct
.
rctTotal
:
@"0"
];
self
.
showshTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额[实收]:%@元"
,
transferProduct
.
rctTotal
?
[
transferProduct
.
rctTotal
stringValue
]
:
@"0"
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
transferProduct
.
total
?
transferProduct
.
total
:
@"0"
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
transferProduct
.
total
?
[
transferProduct
.
total
stringValue
]
:
@"0"
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
transferProduct
.
note
?
transferProduct
.
note
:
@"无"
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
transferProduct
.
note
?
transferProduct
.
note
:
@"无"
];
if
([
state
isEqualToString
:
@"YES"
])
{
if
([
state
isEqualToString
:
@"YES"
])
{
if
([
transferProduct
.
qty
floatValue
]
>
[
transferProduct
.
rctQty
floatValue
])
{
if
([
transferProduct
.
qty
floatValue
]
>
[
transferProduct
.
rctQty
floatValue
])
{
...
...
XFFruit/ViewControllers/Transfer/Views/BottomTransferView.m
View file @
68eaa1ef
...
@@ -90,7 +90,6 @@
...
@@ -90,7 +90,6 @@
-
(
void
)
addChildView
{
-
(
void
)
addChildView
{
self
.
productVC
=
[[
TransferProductViewController
alloc
]
init
];
self
.
productVC
=
[[
TransferProductViewController
alloc
]
init
];
// self.productVC.twoTitle = @"";
self
.
costVC
=
[[
CostViewController
alloc
]
init
];
self
.
costVC
=
[[
CostViewController
alloc
]
init
];
}
}
-
(
void
)
btnClick
:
(
UIButton
*
)
btn
{
-
(
void
)
btnClick
:
(
UIButton
*
)
btn
{
...
@@ -130,8 +129,6 @@
...
@@ -130,8 +129,6 @@
-
(
void
)
refreshCost
:
(
FeeAcountDetail
*
)
fee
indexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
refreshCost
:
(
FeeAcountDetail
*
)
fee
indexPath
:
(
NSIndexPath
*
)
indexPath
{
if
(
indexPath
)
{
if
(
indexPath
)
{
[
self
.
costVC
.
costArr
replaceObjectAtIndex
:
indexPath
.
row
withObject
:
fee
];
[
self
.
costVC
.
costArr
replaceObjectAtIndex
:
indexPath
.
row
withObject
:
fee
];
// NSArray *indexArray=[NSArray arrayWithObject:indexPath];
// [self.costVC.tableView reloadRowsAtIndexPaths:indexArray withRowAnimation:UITableViewRowAnimationAutomatic];
[
self
.
costVC
.
tableView
reloadData
];
[
self
.
costVC
.
tableView
reloadData
];
}
else
{
}
else
{
if
(
self
.
costVC
.
costArr
)
{
if
(
self
.
costVC
.
costArr
)
{
...
...
XFFruit/ViewControllers/Transfer/Views/TransferProductCell.m
View file @
68eaa1ef
...
@@ -145,12 +145,12 @@
...
@@ -145,12 +145,12 @@
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
titleLabel
.
text
=
pdtDetail
.
productName
;
self
.
titleLabel
.
text
=
pdtDetail
.
productName
;
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,[
pdtDetail
.
price
stringValue
]];
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,[
pdtDetail
.
price
stringValue
]];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
pdtDetail
.
qty
,
pdtDetail
.
unit
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
[
pdtDetail
.
qty
stringValue
]
,
pdtDetail
.
unit
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
pdtDetail
.
productName
,
pdtDetail
.
productCode
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
pdtDetail
.
productName
,
pdtDetail
.
productCode
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
pdtDetail
.
qpc
,
pdtDetail
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
[
pdtDetail
.
qpc
stringValue
]
,
pdtDetail
.
baseUnit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
pdtDetail
.
qty
,
pdtDetail
.
unit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
[
pdtDetail
.
qty
stringValue
]
,
pdtDetail
.
unit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
pdtDetail
.
baseQty
,
pdtDetail
.
baseUnit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
[
pdtDetail
.
baseQty
stringValue
]
,
pdtDetail
.
baseUnit
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
pdtDetail
.
packprice
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
[
pdtDetail
.
packprice
stringValue
]
];
NSString
*
sourceT
=
@""
;
NSString
*
sourceT
=
@""
;
if
([
pdtDetail
.
sourcetype
isEqualToString
:
@"none"
])
{
if
([
pdtDetail
.
sourcetype
isEqualToString
:
@"none"
])
{
sourceT
=
@"无"
;
sourceT
=
@"无"
;
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
self
.
showPurchaseLabel
.
text
=
[
NSString
stringWithFormat
:
@"来源类型:%@"
,
sourceT
];
self
.
showPurchaseLabel
.
text
=
[
NSString
stringWithFormat
:
@"来源类型:%@"
,
sourceT
];
self
.
showSourceNumberLabel
.
text
=
[
NSString
stringWithFormat
:
@"来源单号:%@"
,
pdtDetail
.
sourcebillnumber
.
length
>
0
?
pdtDetail
.
sourcebillnumber
:
@"无"
];
self
.
showSourceNumberLabel
.
text
=
[
NSString
stringWithFormat
:
@"来源单号:%@"
,
pdtDetail
.
sourcebillnumber
.
length
>
0
?
pdtDetail
.
sourcebillnumber
:
@"无"
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
pdtDetail
.
total
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
[
pdtDetail
.
total
stringValue
]
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
pdtDetail
.
note
?
pdtDetail
.
note
:
@"无"
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
pdtDetail
.
note
?
pdtDetail
.
note
:
@"无"
];
}
}
...
...
XFFruit/ViewControllers/Transport/Views/TransportPurductCell.m
View file @
68eaa1ef
...
@@ -151,14 +151,14 @@
...
@@ -151,14 +151,14 @@
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
seqLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
@
(
row
+
1
)];
self
.
titleLabel
.
text
=
pdtDetail
.
productName
;
self
.
titleLabel
.
text
=
pdtDetail
.
productName
;
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,[
pdtDetail
.
price
stringValue
]];
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@元"
,[
pdtDetail
.
price
stringValue
]];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
pdtDetail
.
qty
,
pdtDetail
.
unit
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
[
pdtDetail
.
qty
stringValue
]
,
pdtDetail
.
unit
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
pdtDetail
.
productName
,
pdtDetail
.
productCode
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
pdtDetail
.
productName
,
pdtDetail
.
productCode
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
pdtDetail
.
qpc
,
pdtDetail
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,
[
pdtDetail
.
qpc
stringValue
]
,
pdtDetail
.
baseUnit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
pdtDetail
.
qty
,
pdtDetail
.
unit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
[
pdtDetail
.
qty
stringValue
]
,
pdtDetail
.
unit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
pdtDetail
.
baseQty
,
pdtDetail
.
baseUnit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
[
pdtDetail
.
baseQty
stringValue
]
,
pdtDetail
.
baseUnit
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
pdtDetail
.
packprice
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%@元"
,
[
pdtDetail
.
packprice
stringValue
]
];
self
.
showPurchaseLabel
.
text
=
[
NSString
stringWithFormat
:
@"采购单号:%@"
,
pdtDetail
.
purchasebillnumber
.
length
>
0
?
pdtDetail
.
purchasebillnumber
:
@"无"
];
self
.
showPurchaseLabel
.
text
=
[
NSString
stringWithFormat
:
@"采购单号:%@"
,
pdtDetail
.
purchasebillnumber
.
length
>
0
?
pdtDetail
.
purchasebillnumber
:
@"无"
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
pdtDetail
.
total
];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,
[
pdtDetail
.
total
stringValue
]
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
pdtDetail
.
note
?
pdtDetail
.
note
:
@"无"
];
self
.
showNoteLabel
.
text
=
[
NSString
stringWithFormat
:
@"备注:%@"
,
pdtDetail
.
note
?
pdtDetail
.
note
:
@"无"
];
}
}
...
...
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