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
eccfb158
Commit
eccfb158
authored
7 years ago
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询库存精度问题/查看采购单、发运单/收货单显示规格
parent
145bda71
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
90 additions
and
71 deletions
+90
-71
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+1
-1
Info.plist
XFFruit/Info.plist
+27
-29
ICRAppMacro.h
XFFruit/Macro/ICRAppMacro.h
+3
-4
ProductBillCell.m
XFFruit/ViewControllers/Purchase/Views/ProductBillCell.m
+1
-1
PurchaseReceiveProductCell.m
...ewControllers/Purchase/Views/PurchaseReceiveProductCell.m
+1
-1
ShopDetaileViewController.m
...trollers/PurchaseNotice/Views/ShopDetaileViewController.m
+5
-5
ReceiveProductViewController.m
...lers/Receiving/Controllers/ReceiveProductViewController.m
+1
-1
ReceiveProductCell.h
XFFruit/ViewControllers/Receiving/Views/ReceiveProductCell.h
+1
-0
ReceiveProductCell.m
XFFruit/ViewControllers/Receiving/Views/ReceiveProductCell.m
+9
-2
NewTransferViewController.m
...trollers/Transfer/Controllers/NewTransferViewController.m
+2
-2
TransferProductViewController.m
...lers/Transfer/Controllers/TransferProductViewController.m
+1
-1
TransferProductCell.h
XFFruit/ViewControllers/Transfer/Views/TransferProductCell.h
+1
-0
TransferProductCell.m
XFFruit/ViewControllers/Transfer/Views/TransferProductCell.m
+11
-4
NewTransportViewController.m
...ollers/Transport/Controllers/NewTransportViewController.m
+4
-4
TransportProductViewController.m
...rs/Transport/Controllers/TransportProductViewController.m
+1
-1
TransportPurchaseViewController.m
...s/Transport/Controllers/TransportPurchaseViewController.m
+7
-4
TransportCreateProductCell.h
...wControllers/Transport/Views/TransportCreateProductCell.h
+1
-1
TransportCreateProductCell.m
...wControllers/Transport/Views/TransportCreateProductCell.m
+12
-9
TransportPurductCell.m
...it/ViewControllers/Transport/Views/TransportPurductCell.m
+1
-1
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
eccfb158
...
@@ -4464,7 +4464,7 @@
...
@@ -4464,7 +4464,7 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
CODE_SIGN_IDENTITY
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Info.plist
View file @
eccfb158
...
@@ -15,18 +15,42 @@
...
@@ -15,18 +15,42 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.4
1
<
/string
>
<
string
>
2.0.
1
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.2.4
1
<
/string
>
<
string
>
2.0.
1
<
/string
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
NSAllowsArbitraryLoads
<
/k
e
y
>
<
k
e
y
>
NSAllowsArbitraryLoads
<
/k
e
y
>
<
tru
e
/
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
NSAppleMusicUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问媒体资料库
<
/string
>
<
k
e
y
>
NSBluetoothPeripheralUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问蓝牙
<
/string
>
<
k
e
y
>
NSCalendarsUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问日历
<
/string
>
<
k
e
y
>
NSCameraUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问相机
<
/string
>
<
k
e
y
>
NSHealthShareUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问健康分享
<
/string
>
<
k
e
y
>
NSHealthUpdateUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问健康更新
<
/string
>
<
k
e
y
>
NSLocationAlwaysUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能始终访问位置
<
/string
>
<
k
e
y
>
NSLocationUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问位置
<
/string
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
string
><
/string
>
<
string
>
App
需要您的同意,才能在使用期间访问位置
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问麦克风
<
/string
>
<
k
e
y
>
NSMotionUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问运动与健身
<
/string
>
<
k
e
y
>
NSPhotoLibraryUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问相册
<
/string
>
<
k
e
y
>
NSRemindersUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问提醒事项
<
/string
>
<
k
e
y
>
UILaunchStoryboardName
<
/k
e
y
>
<
k
e
y
>
UILaunchStoryboardName
<
/k
e
y
>
<
string
>
LaunchScreen
<
/string
>
<
string
>
LaunchScreen
<
/string
>
<
k
e
y
>
UIRequiredDeviceCapabilities
<
/k
e
y
>
<
k
e
y
>
UIRequiredDeviceCapabilities
<
/k
e
y
>
...
@@ -37,32 +61,6 @@
...
@@ -37,32 +61,6 @@
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
NSAppleMusicUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问媒体资料库
<
/string
>
<
k
e
y
>
NSBluetoothPeripheralUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问蓝牙
<
/string
>
<
k
e
y
>
NSCalendarsUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问日历
<
/string
>
<
k
e
y
>
NSCameraUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问相机
<
/string
>
<
k
e
y
>
NSHealthShareUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问健康分享
<
/string
>
<
k
e
y
>
NSHealthUpdateUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问健康更新
<
/string
>
<
k
e
y
>
NSLocationAlwaysUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能始终访问位置
<
/string
>
<
k
e
y
>
NSLocationUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问位置
<
/string
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能在使用期间访问位置
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问麦克风
<
/string
>
<
k
e
y
>
NSMotionUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问运动与健身
<
/string
>
<
k
e
y
>
NSPhotoLibraryUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问相册
<
/string
>
<
k
e
y
>
NSRemindersUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问提醒事项
<
/string
>
<
k
e
y
>
UISupportedInterfaceOrientations
~
ipad
<
/k
e
y
>
<
k
e
y
>
UISupportedInterfaceOrientations
~
ipad
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Macro/ICRAppMacro.h
View file @
eccfb158
...
@@ -33,12 +33,11 @@
...
@@ -33,12 +33,11 @@
//#define HTTP_REST_API_BASE_URL @"http://gomoredev:8090/cruiser-server/rest"
//#define HTTP_REST_API_BASE_URL @"http://gomoredev:8090/cruiser-server/rest"
//********测试环境********
//********测试环境********
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7280/cruiser-server/rest"
//
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7280/cruiser-server/rest"
//********正式环境*********
//********正式环境*********
//#define HTTP_REST_API_BASE_URL
#define HTTP_REST_API_BASE_URL @"http://app.xianfengsg.com:7380/cruiser-server/rest"
//@"http://122.224.171.126:7380/cruiser-server/rest"
#define HTTP_REST_REPORT_BASE_URL @"http://app.xianfengsg.com:7380"
#define HTTP_REST_REPORT_BASE_URL @"http://122.224.171.126:7380"
#endif
#endif
// HTTP
// HTTP
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Views/ProductBillCell.m
View file @
eccfb158
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
billProduct
.
qty
,
billProduct
.
unit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,
billProduct
.
qty
,
billProduct
.
unit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
billProduct
.
baseQty
,
billProduct
.
baseUnit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
billProduct
.
baseQty
,
billProduct
.
baseUnit
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%.2f元"
,[
billProduct
.
price
floatValue
]];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%.2f元"
,[
billProduct
.
price
floatValue
]];
self
.
showBasePriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%.
2
f元"
,[
billProduct
.
basePrice
floatValue
]];
self
.
showBasePriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%.
4
f元"
,[
billProduct
.
basePrice
floatValue
]];
self
.
showTotalLabel
.
text
=
[
NSString
stringWithFormat
:
@"总金额:%@元"
,[
billProduct
.
total
stringValue
]];
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
.
showCounterNum
.
text
=
[
NSString
stringWithFormat
:
@"柜号:%@"
,
billProduct
.
vnum
];
self
.
showCounterNum
.
text
=
[
NSString
stringWithFormat
:
@"柜号:%@"
,
billProduct
.
vnum
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Views/PurchaseReceiveProductCell.m
View file @
eccfb158
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
self
.
titleLabel
.
text
=
transferProduct
.
productName
;
self
.
titleLabel
.
text
=
transferProduct
.
productName
;
self
.
dscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%lu%@"
,
transferProduct
.
qty
.
integerValue
-
transferProduct
.
rctQty
.
integerValue
,
transferProduct
.
unit
];
self
.
dscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%lu%@"
,
transferProduct
.
qty
.
integerValue
-
transferProduct
.
rctQty
.
integerValue
,
transferProduct
.
unit
];
self
.
yscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
rctQty
?[
transferProduct
.
rctQty
stringValue
]:
@"0"
,
transferProduct
.
unit
];
self
.
yscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
rctQty
?[
transferProduct
.
rctQty
stringValue
]:
@"0"
,
transferProduct
.
unit
];
self
.
labelShipPkgCount
.
text
=
[
NSString
stringWithFormat
:
@"%lu
"
,
transferProduct
.
shippedQty
.
integerValue
];
self
.
labelShipPkgCount
.
text
=
[
NSString
stringWithFormat
:
@"%lu
, %@"
,
transferProduct
.
shippedQty
.
integerValue
,
transferProduct
.
unit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,[
transferProduct
.
qpc
stringValue
],
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
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/ShopDetaileViewController.m
View file @
eccfb158
...
@@ -217,7 +217,7 @@ typedef enum : NSUInteger {
...
@@ -217,7 +217,7 @@ typedef enum : NSUInteger {
[
hud
hide
:
YES
];
[
hud
hide
:
YES
];
[
IBTLoadingView
hideHUDForView
:
weakSelf
.
view
];
[
IBTLoadingView
hideHUDForView
:
weakSelf
.
view
];
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>在总部系统的库存不足!"
,
billNumber
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>在总部系统的库存不足!"
,
billNumber
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
@@ -229,7 +229,7 @@ typedef enum : NSUInteger {
...
@@ -229,7 +229,7 @@ typedef enum : NSUInteger {
if
(
self
.
shopDetail
.
foundationQuantity
.
floatValue
>
model
.
qty
.
floatValue
)
{
if
(
self
.
shopDetail
.
foundationQuantity
.
floatValue
>
model
.
qty
.
floatValue
)
{
CLog
(
@"库存不足"
);
CLog
(
@"库存不足"
);
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>在总部系统的库存不足!"
,
billNumber
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>在总部系统的库存不足!"
,
billNumber
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
@@ -566,7 +566,7 @@ typedef enum : NSUInteger {
...
@@ -566,7 +566,7 @@ typedef enum : NSUInteger {
// kLOG(@"----%@", futureString);
// kLOG(@"----%@", futureString);
NSInteger
flag
=
0
;
NSInteger
flag
=
0
;
NSInteger
pointNum
=
0
;
//用于标记小数点的数量,只能有一个小数点
NSInteger
pointNum
=
0
;
//用于标记小数点的数量,只能有一个小数点
const
NSInteger
limited
=
2
;
//限制小数点后面的位数
const
NSInteger
limited
=
4
;
//限制小数点后面的位数
for
(
int
i
=
(
int
)
futureString
.
length
-
1
;
i
>=
0
;
i
--
)
{
for
(
int
i
=
(
int
)
futureString
.
length
-
1
;
i
>=
0
;
i
--
)
{
...
@@ -671,13 +671,13 @@ typedef enum : NSUInteger {
...
@@ -671,13 +671,13 @@ typedef enum : NSUInteger {
-
(
void
)
setUnitAndPackPrice
{
-
(
void
)
setUnitAndPackPrice
{
if
(
totalMoney
.
text
.
length
>
0
)
{
if
(
totalMoney
.
text
.
length
>
0
)
{
if
(
packageQuantity
.
text
.
length
>
0
&&
[
packageQuantity
.
text
floatValue
]
>
0
)
{
if
(
packageQuantity
.
text
.
length
>
0
&&
[
packageQuantity
.
text
floatValue
]
>
0
)
{
NSDecimalNumber
*
packagePrice
=
[
CalculateHelper
calculateNum1
:
self
.
totalPrice
num2
:
packageQuantity
.
text
type
:
CalculateTypeDiv
roundingType
:
NSRoundBankers
cutLenth
:
2
];
NSDecimalNumber
*
packagePrice
=
[
CalculateHelper
calculateNum1
:
self
.
totalPrice
num2
:
packageQuantity
.
text
type
:
CalculateTypeDiv
roundingType
:
NSRoundBankers
cutLenth
:
4
];
packageUnitPrice
.
text
=
packagePrice
.
stringValue
;
packageUnitPrice
.
text
=
packagePrice
.
stringValue
;
self
.
packPrice
=
packagePrice
;
self
.
packPrice
=
packagePrice
;
}
}
if
(
foundationQuantity
.
text
.
length
>
0
&&
[
foundationQuantity
.
text
floatValue
]
>
0
)
{
if
(
foundationQuantity
.
text
.
length
>
0
&&
[
foundationQuantity
.
text
floatValue
]
>
0
)
{
NSDecimalNumber
*
packagePrice
=
[
CalculateHelper
calculateNum1
:
self
.
totalPrice
num2
:
foundationQuantity
.
text
type
:
CalculateTypeDiv
roundingType
:
NSRoundBankers
cutLenth
:
2
];
NSDecimalNumber
*
packagePrice
=
[
CalculateHelper
calculateNum1
:
self
.
totalPrice
num2
:
foundationQuantity
.
text
type
:
CalculateTypeDiv
roundingType
:
NSRoundBankers
cutLenth
:
4
];
foundationUnitPrice
.
text
=
packagePrice
.
stringValue
;
foundationUnitPrice
.
text
=
packagePrice
.
stringValue
;
self
.
basePrice
=
packagePrice
;
self
.
basePrice
=
packagePrice
;
}
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Receiving/Controllers/ReceiveProductViewController.m
View file @
eccfb158
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
[
self
.
view
addSubview
:
self
.
tableView
];
[
self
.
view
addSubview
:
self
.
tableView
];
NSArray
*
arr
=
@[
@"商品"
,
@"待收包装数"
,
@"已收包装数"
];
NSArray
*
arr
=
@[
@"商品"
,
@"
规格"
,
@"
待收包装数"
,
@"已收包装数"
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenAdd
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenAdd
];
[
self
.
view
addSubview
:
headCell
];
[
self
.
view
addSubview
:
headCell
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Receiving/Views/ReceiveProductCell.h
View file @
eccfb158
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
dscountLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
dscountLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
yscountLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
yscountLabel
;
@property
(
strong
,
nonatomic
)
UILabel
*
qpcLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
lineLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
lineLabel
;
@property
(
nonatomic
,
strong
)
UIView
*
showView
;
@property
(
nonatomic
,
strong
)
UIView
*
showView
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Receiving/Views/ReceiveProductCell.m
View file @
eccfb158
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
-
(
void
)
bulidLayout
-
(
void
)
bulidLayout
{
{
CGFloat
headWidth
=
(
ScreenSize
.
width
-
LeftWidth
*
2
-
SpaceMargin
*
(
3
-
1
))
/
3
;
CGFloat
headWidth
=
(
ScreenSize
.
width
-
LeftWidth
*
2
-
SpaceMargin
*
(
4
-
1
))
/
4
;
self
.
smallImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
(
TableHeight
-
SmallSize
)
/
2
,
SmallSize
,
SmallSize
)];
self
.
smallImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
(
TableHeight
-
SmallSize
)
/
2
,
SmallSize
,
SmallSize
)];
self
.
smallImageView
.
image
=
[
UIImage
imageNamed
:
@"arrowright"
];
self
.
smallImageView
.
image
=
[
UIImage
imageNamed
:
@"arrowright"
];
...
@@ -48,7 +48,12 @@
...
@@ -48,7 +48,12 @@
self
.
titleLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
titleLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
titleLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
titleLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
dscountLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
titleLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
qpcLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
titleLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
qpcLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
qpcLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
qpcLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
dscountLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
qpcLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
dscountLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
dscountLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
dscountLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
dscountLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
dscountLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
dscountLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
...
@@ -139,6 +144,7 @@
...
@@ -139,6 +144,7 @@
[
self
.
contentView
addSubview
:
self
.
smallImageView
];
[
self
.
contentView
addSubview
:
self
.
smallImageView
];
[
self
.
contentView
addSubview
:
self
.
seqLabel
];
[
self
.
contentView
addSubview
:
self
.
seqLabel
];
[
self
.
contentView
addSubview
:
self
.
titleLabel
];
[
self
.
contentView
addSubview
:
self
.
titleLabel
];
[
self
.
contentView
addSubview
:
self
.
qpcLabel
];
[
self
.
contentView
addSubview
:
self
.
dscountLabel
];
[
self
.
contentView
addSubview
:
self
.
dscountLabel
];
[
self
.
contentView
addSubview
:
self
.
yscountLabel
];
[
self
.
contentView
addSubview
:
self
.
yscountLabel
];
[
self
.
contentView
addSubview
:
self
.
editBtn
];
[
self
.
contentView
addSubview
:
self
.
editBtn
];
...
@@ -166,6 +172,7 @@
...
@@ -166,6 +172,7 @@
{
{
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
.
qpcLabel
.
text
=
[
transferProduct
.
qpcStr
stringByAppendingString
:
transferProduct
.
baseUnit
];
self
.
dscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%lu%@"
,
transferProduct
.
qty
.
integerValue
-
transferProduct
.
rctQty
.
integerValue
,
transferProduct
.
unit
];
self
.
dscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%lu%@"
,
transferProduct
.
qty
.
integerValue
-
transferProduct
.
rctQty
.
integerValue
,
transferProduct
.
unit
];
self
.
yscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
rctQty
?[
transferProduct
.
rctQty
stringValue
]:
@"0"
,
transferProduct
.
unit
];
self
.
yscountLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@%@"
,
transferProduct
.
rctQty
?[
transferProduct
.
rctQty
stringValue
]:
@"0"
,
transferProduct
.
unit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,[
transferProduct
.
qpc
stringValue
],
transferProduct
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,[
transferProduct
.
qpc
stringValue
],
transferProduct
.
baseUnit
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transfer/Controllers/NewTransferViewController.m
View file @
eccfb158
...
@@ -279,7 +279,7 @@ typedef enum : NSUInteger {
...
@@ -279,7 +279,7 @@ typedef enum : NSUInteger {
[
HTTP
purchaseStockWithPurchaseUuid
:
billNum
success
:
^
(
id
succ
)
{
[
HTTP
purchaseStockWithPurchaseUuid
:
billNum
success
:
^
(
id
succ
)
{
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
[
IBTLoadingView
hideHUDWithText
:
@""
];
[
IBTLoadingView
hideHUDWithText
:
@""
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>在总部系统的库存不足!"
,
billNum
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>在总部系统的库存不足!"
,
billNum
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
@@ -294,7 +294,7 @@ typedef enum : NSUInteger {
...
@@ -294,7 +294,7 @@ typedef enum : NSUInteger {
CLog
(
@"库存不足"
);
CLog
(
@"库存不足"
);
[
IBTLoadingView
hideHUDWithText
:
@""
];
[
IBTLoadingView
hideHUDWithText
:
@""
];
self
.
purchaseAddStockCheckNumber
=
0
;
self
.
purchaseAddStockCheckNumber
=
0
;
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>的商品%@在总部系统的库存不足!"
,
billNum
,
detail
.
productName
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>的商品%@在总部系统的库存不足!"
,
billNum
,
detail
.
productName
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transfer/Controllers/TransferProductViewController.m
View file @
eccfb158
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
[
self
.
view
addSubview
:
self
.
tableView
];
[
self
.
view
addSubview
:
self
.
tableView
];
NSArray
*
arr
=
@[
@"商品"
,
@"待收包装数"
,
@"已收包装数量"
];
NSArray
*
arr
=
@[
@"商品"
,
@"
规格"
,
@"
待收包装数"
,
@"已收包装数量"
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenEdit
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenEdit
];
[
self
.
view
addSubview
:
headCell
];
[
self
.
view
addSubview
:
headCell
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transfer/Views/TransferProductCell.h
View file @
eccfb158
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
priceLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
priceLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
countLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
countLabel
;
@property
(
strong
,
nonatomic
)
UILabel
*
qpcLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
transferedCount
;
@property
(
nonatomic
,
strong
)
UILabel
*
transferedCount
;
@property
(
nonatomic
,
strong
)
UILabel
*
lineLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
lineLabel
;
@property
(
strong
,
nonatomic
)
UILabel
*
showBasePrice
;
@property
(
strong
,
nonatomic
)
UILabel
*
showBasePrice
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transfer/Views/TransferProductCell.m
View file @
eccfb158
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
-
(
void
)
bulidLayout
-
(
void
)
bulidLayout
{
{
CGFloat
headWidth
=
(
ScreenSize
.
width
-
LeftWidth
*
2
-
SpaceMargin
*
(
3
-
1
))
/
3
;
CGFloat
headWidth
=
(
ScreenSize
.
width
-
LeftWidth
*
2
-
SpaceMargin
*
(
4
-
1
))
/
4
;
self
.
smallImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
(
TableHeight
-
SmallSize
)
/
2
,
SmallSize
,
SmallSize
)];
self
.
smallImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
(
TableHeight
-
SmallSize
)
/
2
,
SmallSize
,
SmallSize
)];
self
.
smallImageView
.
image
=
[
UIImage
imageNamed
:
@"arrowright"
];
self
.
smallImageView
.
image
=
[
UIImage
imageNamed
:
@"arrowright"
];
...
@@ -47,7 +47,12 @@
...
@@ -47,7 +47,12 @@
self
.
titleLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
titleLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
titleLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
titleLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
priceLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
titleLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
qpcLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
titleLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
qpcLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
qpcLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
qpcLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
priceLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
qpcLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
priceLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
priceLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
priceLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
priceLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
priceLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
priceLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
...
@@ -131,6 +136,7 @@
...
@@ -131,6 +136,7 @@
[
self
.
contentView
addSubview
:
self
.
countLabel
];
[
self
.
contentView
addSubview
:
self
.
countLabel
];
[
self
.
contentView
addSubview
:
self
.
editBtn
];
[
self
.
contentView
addSubview
:
self
.
editBtn
];
[
self
.
contentView
addSubview
:
self
.
showView
];
[
self
.
contentView
addSubview
:
self
.
showView
];
[
self
.
contentView
addSubview
:
self
.
qpcLabel
];
[
self
.
showView
addSubview
:
self
.
showNameLabel
];
[
self
.
showView
addSubview
:
self
.
showNameLabel
];
[
self
.
showView
addSubview
:
self
.
showStandLabel
];
[
self
.
showView
addSubview
:
self
.
showStandLabel
];
...
@@ -151,8 +157,9 @@
...
@@ -151,8 +157,9 @@
-
(
void
)
setPdtDetail
:
(
TransferPdtDetail
*
)
pdtDetail
row
:
(
NSInteger
)
row
{
-
(
void
)
setPdtDetail
:
(
TransferPdtDetail
*
)
pdtDetail
row
:
(
NSInteger
)
row
{
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
:
@"%.0f"
,
pdtDetail
.
qty
.
doubleValue
-
pdtDetail
.
rctQty
.
doubleValue
];
self
.
qpcLabel
.
text
=
[
pdtDetail
.
qpcStr
stringByAppendingString
:
pdtDetail
.
baseUnit
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.0f"
,
pdtDetail
.
rctQty
.
doubleValue
];
self
.
priceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.0f%@"
,
pdtDetail
.
qty
.
doubleValue
-
pdtDetail
.
rctQty
.
doubleValue
,
pdtDetail
.
unit
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.0f%@"
,
pdtDetail
.
rctQty
.
doubleValue
,
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
stringValue
],
pdtDetail
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,[
pdtDetail
.
qpc
stringValue
],
pdtDetail
.
baseUnit
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/NewTransportViewController.m
View file @
eccfb158
...
@@ -236,7 +236,7 @@ typedef enum : NSUInteger {
...
@@ -236,7 +236,7 @@ typedef enum : NSUInteger {
[
HTTP
purchaseStockWithPurchaseUuid
:
billNum
success
:
^
(
id
succ
)
{
[
HTTP
purchaseStockWithPurchaseUuid
:
billNum
success
:
^
(
id
succ
)
{
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
[
IBTLoadingView
hideHUDWithText
:
@""
];
[
IBTLoadingView
hideHUDWithText
:
@""
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>在总部系统的库存不足!"
,
billNum
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>在总部系统的库存不足!"
,
billNum
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
@@ -247,11 +247,11 @@ typedef enum : NSUInteger {
...
@@ -247,11 +247,11 @@ typedef enum : NSUInteger {
for
(
TransportPdtDetail
*
detail
in
arrProducts
)
{
for
(
TransportPdtDetail
*
detail
in
arrProducts
)
{
if
([
detail
.
productCode
isEqualToString
:
model
.
productCode
])
{
if
([
detail
.
productCode
isEqualToString
:
model
.
productCode
])
{
if
(
detail
.
baseQty
.
floatValue
>
model
.
qty
.
float
Value
)
{
if
(
detail
.
baseQty
.
doubleValue
>
model
.
qty
.
double
Value
)
{
CLog
(
@"库存不足"
);
CLog
(
@"库存不足"
);
[
IBTLoadingView
hideHUDWithText
:
@""
];
[
IBTLoadingView
hideHUDWithText
:
@""
];
purchaseAddStockCheckNumber
=
0
;
purchaseAddStockCheckNumber
=
0
;
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>的商品%@在总部系统的库存不足!"
,
billNum
,
detail
.
productName
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>的商品%@在总部系统的库存不足!"
,
billNum
,
detail
.
productName
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
@@ -548,7 +548,7 @@ typedef enum : NSUInteger {
...
@@ -548,7 +548,7 @@ typedef enum : NSUInteger {
billProduct
.
qty
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
packageQuantity
floatValue
]];
billProduct
.
qty
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
packageQuantity
floatValue
]];
billProduct
.
packprice
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
packageUnitPrice
floatValue
]];
billProduct
.
packprice
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
packageUnitPrice
floatValue
]];
billProduct
.
price
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
foundationUnitPrice
floatValue
]];
billProduct
.
price
=
[
NSNumber
numberWithFloat
:[
shopDetail
.
foundationUnitPrice
floatValue
]];
billProduct
.
baseQty
=
[
NSNumber
numberWith
Float
:[
shopDetail
.
foundationQuantity
float
Value
]];
billProduct
.
baseQty
=
[
NSNumber
numberWith
Double
:[
shopDetail
.
foundationQuantity
double
Value
]];
// billProduct.total = [NSNumber numberWithFloat:[shopDetail.totalMoney floatValue]];
// billProduct.total = [NSNumber numberWithFloat:[shopDetail.totalMoney floatValue]];
billProduct
.
note
=
shopDetail
.
remark
;
billProduct
.
note
=
shopDetail
.
remark
;
billProduct
.
qpcStr
=
shopDetail
.
packageQpcStr
?
shopDetail
.
packageQpcStr
:
@"无"
;
billProduct
.
qpcStr
=
shopDetail
.
packageQpcStr
?
shopDetail
.
packageQpcStr
:
@"无"
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/TransportProductViewController.m
View file @
eccfb158
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
self
.
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
[
self
.
view
addSubview
:
self
.
tableView
];
[
self
.
view
addSubview
:
self
.
tableView
];
NSArray
*
arr
=
@[
@"商品"
,
@"待收包装数"
,
@"已收包装数"
];
NSArray
*
arr
=
@[
@"商品"
,
@"
规格"
,
@"
待收包装数"
,
@"已收包装数"
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenEdit
];
HeaderCell
*
headCell
=
[[
HeaderCell
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
38
)
withArr
:
arr
withHiddenEdit
:
self
.
isHiddenEdit
];
[
self
.
view
addSubview
:
headCell
];
[
self
.
view
addSubview
:
headCell
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Controllers/TransportPurchaseViewController.m
View file @
eccfb158
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#import "TransportPdtDetail.h"
#import "TransportPdtDetail.h"
#import "MJRefresh.h"
#import "MJRefresh.h"
#import "ProductStockModel.h"
#import "ProductStockModel.h"
#import "CalculateHelper.h"
#define TopMargin 50
#define TopMargin 50
#define TableHeight 50
#define TableHeight 50
NSInteger
purchaseStockCheckNumber
=
0
;
NSInteger
purchaseStockCheckNumber
=
0
;
...
@@ -345,8 +346,10 @@ NSInteger purchaseStockCheckNumber = 0;
...
@@ -345,8 +346,10 @@ NSInteger purchaseStockCheckNumber = 0;
for
(
TransportPdtDetail
*
detail
in
self
.
indexArr
)
{
for
(
TransportPdtDetail
*
detail
in
self
.
indexArr
)
{
detail
.
purchasePdtDetail
=
detail
.
uuid
;
detail
.
purchasePdtDetail
=
detail
.
uuid
;
detail
.
uuid
=
nil
;
detail
.
uuid
=
nil
;
detail
.
baseQty
=
@
(
detail
.
qpc
.
floatValue
*
detail
.
qty
.
floatValue
);
detail
.
baseQty
=
[
CalculateHelper
calculateNum1
:
detail
.
qpc
num2
:
detail
.
qty
type
:
CalculateTypeMul
roundingType
:
NSRoundBankers
cutLenth
:
4
];
detail
.
total
=
@
(
detail
.
qty
.
doubleValue
*
detail
.
packprice
.
doubleValue
);
// detail.baseQty = @(detail.qpc.doubleValue * detail.qty.doubleValue);
detail
.
total
=
[
CalculateHelper
calculateNum1
:
detail
.
qty
num2
:
detail
.
packprice
type
:
(
CalculateTypeMul
)
roundingType
:
NSRoundBankers
cutLenth
:
4
];
// detail.total = @(detail.qty.doubleValue * detail.packprice.doubleValue);
[
arr
addObject
:
detail
];
[
arr
addObject
:
detail
];
}
}
...
@@ -419,7 +422,7 @@ NSInteger purchaseStockCheckNumber = 0;
...
@@ -419,7 +422,7 @@ NSInteger purchaseStockCheckNumber = 0;
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
if
(
!
[
succ
[
@"data"
]
isKindOfClass
:[
NSArray
class
]])
{
[
IBTLoadingView
hideHUDWithText
:
@""
];
[
IBTLoadingView
hideHUDWithText
:
@""
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>在总部系统的库存不足!"
,
billNum
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>在总部系统的库存不足!"
,
billNum
];
purchaseStockCheckNumber
=
0
;
purchaseStockCheckNumber
=
0
;
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
...
@@ -435,7 +438,7 @@ NSInteger purchaseStockCheckNumber = 0;
...
@@ -435,7 +438,7 @@ NSInteger purchaseStockCheckNumber = 0;
[
IBTLoadingView
hideHUDWithText
:
@""
];
[
IBTLoadingView
hideHUDWithText
:
@""
];
CLog
(
@"库存不足"
);
CLog
(
@"库存不足"
);
purchaseStockCheckNumber
=
0
;
purchaseStockCheckNumber
=
0
;
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
该批次
<%@>的商品%@在总部系统的库存不足!"
,
billNum
,
detail
.
productName
];
NSString
*
msg
=
[
NSString
stringWithFormat
:
@"
采购单
<%@>的商品%@在总部系统的库存不足!"
,
billNum
,
detail
.
productName
];
ShowMessage
(
msg
);
ShowMessage
(
msg
);
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Views/TransportCreateProductCell.h
View file @
eccfb158
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* 已收包装数
* 已收包装数
*/
*/
@property
(
nonatomic
,
strong
)
UILabel
*
recievedQtyLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
recievedQtyLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
shippedQty
Label
;
@property
(
nonatomic
,
strong
)
UILabel
*
qpc
Label
;
@property
(
nonatomic
,
strong
)
UILabel
*
lineLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
lineLabel
;
@property
(
strong
,
nonatomic
)
UILabel
*
showBasePrice
;
@property
(
strong
,
nonatomic
)
UILabel
*
showBasePrice
;
@property
(
nonatomic
,
strong
)
UIView
*
showView
;
@property
(
nonatomic
,
strong
)
UIView
*
showView
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Views/TransportCreateProductCell.m
View file @
eccfb158
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
-
(
void
)
bulidLayout
-
(
void
)
bulidLayout
{
{
CGFloat
headWidth
=
(
ScreenSize
.
width
-
LeftWidth
*
2
-
SpaceMargin
*
(
3
-
1
))
/
3
;
CGFloat
headWidth
=
(
ScreenSize
.
width
-
LeftWidth
*
2
-
SpaceMargin
*
(
4
-
1
))
/
4
;
self
.
smallImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
(
TableHeight
-
SmallSize
)
/
2
,
SmallSize
,
SmallSize
)];
self
.
smallImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
(
TableHeight
-
SmallSize
)
/
2
,
SmallSize
,
SmallSize
)];
self
.
smallImageView
.
image
=
[
UIImage
imageNamed
:
@"arrowright"
];
self
.
smallImageView
.
image
=
[
UIImage
imageNamed
:
@"arrowright"
];
...
@@ -48,7 +48,13 @@
...
@@ -48,7 +48,13 @@
self
.
titleLabel
.
text
=
@"苹果桃子"
;
self
.
titleLabel
.
text
=
@"苹果桃子"
;
self
.
titleLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
titleLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
waitRecieveQtyLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
titleLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
qpcLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
titleLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
qpcLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
qpcLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
qpcLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
qpcLabel
.
text
=
@"规格"
;
self
.
waitRecieveQtyLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
CGRectGetMaxX
(
self
.
qpcLabel
.
frame
)
+
SpaceMargin
,
0
,
headWidth
,
TableHeight
))];
self
.
waitRecieveQtyLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
waitRecieveQtyLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
waitRecieveQtyLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
waitRecieveQtyLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
waitRecieveQtyLabel
.
text
=
@"80"
;
self
.
waitRecieveQtyLabel
.
text
=
@"80"
;
...
@@ -60,10 +66,7 @@
...
@@ -60,10 +66,7 @@
self
.
recievedQtyLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
recievedQtyLabel
.
textColor
=
GXF_CONTENT_COLOR
;
self
.
recievedQtyLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
self
.
recievedQtyLabel
.
font
=
GXF_SIXTEENTEH_SIZE
;
// self.shippedQtyLabel = [[UILabel alloc]initWithFrame:(CGRectMake(CGRectGetMaxX(self.recievedQtyLabel.frame) + SpaceMargin, 0, headWidth, TableHeight))];
// self.shippedQtyLabel.textAlignment = NSTextAlignmentCenter;
// self.shippedQtyLabel.textColor = GXF_CONTENT_COLOR;
// self.shippedQtyLabel.font = GXF_SIXTEENTEH_SIZE;
...
@@ -158,7 +161,7 @@
...
@@ -158,7 +161,7 @@
[
self
.
contentView
addSubview
:
self
.
titleLabel
];
[
self
.
contentView
addSubview
:
self
.
titleLabel
];
[
self
.
contentView
addSubview
:
self
.
waitRecieveQtyLabel
];
[
self
.
contentView
addSubview
:
self
.
waitRecieveQtyLabel
];
[
self
.
contentView
addSubview
:
self
.
recievedQtyLabel
];
[
self
.
contentView
addSubview
:
self
.
recievedQtyLabel
];
[
self
.
contentView
addSubview
:
self
.
shippedQty
Label
];
[
self
.
contentView
addSubview
:
self
.
qpc
Label
];
[
self
.
contentView
addSubview
:
self
.
editBtn
];
[
self
.
contentView
addSubview
:
self
.
editBtn
];
[
self
.
contentView
addSubview
:
self
.
showView
];
[
self
.
contentView
addSubview
:
self
.
showView
];
...
@@ -187,11 +190,11 @@
...
@@ -187,11 +190,11 @@
self
.
recievedQtyLabel
.
text
=
@"0"
;
self
.
recievedQtyLabel
.
text
=
@"0"
;
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
pdtDetail
.
productName
,
pdtDetail
.
productCode
];
self
.
showNameLabel
.
text
=
[
NSString
stringWithFormat
:
@"商品:%@[%@]"
,
pdtDetail
.
productName
,
pdtDetail
.
productCode
];
self
.
qpcLabel
.
text
=
[
pdtDetail
.
qpcStr
stringByAppendingString
:
pdtDetail
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,[
pdtDetail
.
qpc
stringValue
],
pdtDetail
.
baseUnit
];
self
.
showStandLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装规格:1*%@%@"
,[
pdtDetail
.
qpc
stringValue
],
pdtDetail
.
baseUnit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,[
pdtDetail
.
qty
stringValue
],
pdtDetail
.
unit
];
self
.
showCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装数量:%@%@"
,[
pdtDetail
.
qty
stringValue
],
pdtDetail
.
unit
];
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
pdtDetail
.
baseQty
,
self
.
showBaseCountLabel
.
text
=
[
NSString
stringWithFormat
:
@"基础数量:%@%@"
,
pdtDetail
.
baseQty
,
pdtDetail
.
u
nit
];
pdtDetail
.
baseU
nit
];
self
.
showBasePrice
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%@元"
,
pdtDetail
.
price
];
self
.
showBasePrice
.
text
=
[
NSString
stringWithFormat
:
@"基础单价:%@元"
,
pdtDetail
.
price
];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%.2f元"
,[
pdtDetail
.
packprice
floatValue
]];
self
.
showPriceLabel
.
text
=
[
NSString
stringWithFormat
:
@"包装单价:%.2f元"
,[
pdtDetail
.
packprice
floatValue
]];
self
.
showPurchaseLabel
.
text
=
[
NSString
stringWithFormat
:
@"采购单号:%@"
,
pdtDetail
.
purchasebillnumber
.
length
>
0
?
pdtDetail
.
purchasebillnumber
:
@"无"
];
self
.
showPurchaseLabel
.
text
=
[
NSString
stringWithFormat
:
@"采购单号:%@"
,
pdtDetail
.
purchasebillnumber
.
length
>
0
?
pdtDetail
.
purchasebillnumber
:
@"无"
];
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Transport/Views/TransportPurductCell.m
View file @
eccfb158
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
-
(
void
)
setPdtDetail
:
(
TransportPdtDetail
*
)
pdtDetail
row
:
(
NSInteger
)
row
{
-
(
void
)
setPdtDetail
:
(
TransportPdtDetail
*
)
pdtDetail
row
:
(
NSInteger
)
row
{
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
.
qpcLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.
1
f"
,[
pdtDetail
.
qpc
floatValue
]];
self
.
qpcLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.
2
f"
,[
pdtDetail
.
qpc
floatValue
]];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
pdtDetail
.
receivedQty
];
self
.
countLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
pdtDetail
.
receivedQty
];
NSInteger
validShioCount
=
pdtDetail
.
receivedQty
.
integerValue
-
pdtDetail
.
shippedQty
.
integerValue
;
NSInteger
validShioCount
=
pdtDetail
.
receivedQty
.
integerValue
-
pdtDetail
.
shippedQty
.
integerValue
;
self
.
shippedQtyLabel
.
text
=
[
NSString
stringWithFormat
:
@"%lu"
,
validShioCount
];
self
.
shippedQtyLabel
.
text
=
[
NSString
stringWithFormat
:
@"%lu"
,
validShioCount
];
...
...
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