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
805d1f66
Commit
805d1f66
authored
Jul 27, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
鲜丰水果正式版2.0.4
parent
eccfb158
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
894 additions
and
16 deletions
+894
-16
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+865
-2
Info.plist
XFFruit/Info.plist
+2
-2
ICRAppMacro.h
XFFruit/Macro/ICRAppMacro.h
+5
-2
IBTConstants.h
XFFruit/Utilities/IBTUIKit/IBTConstants.h
+4
-2
PurchaseDetailViewController.m
...llers/Purchase/Controllers/PurchaseDetailViewController.m
+1
-1
PurchaseReceiveProductCell.m
...ewControllers/Purchase/Views/PurchaseReceiveProductCell.m
+1
-1
ShopDetail.h
XFFruit/ViewControllers/PurchaseNotice/Models/ShopDetail.h
+1
-0
ShopDetaileViewController.m
...trollers/PurchaseNotice/Views/ShopDetaileViewController.m
+3
-0
ReceiveProductViewController.m
...lers/Receiving/Controllers/ReceiveProductViewController.m
+8
-3
NewTransportViewController.m
...ollers/Transport/Controllers/NewTransportViewController.m
+2
-1
TransportDetailViewController.m
...ers/Transport/Controllers/TransportDetailViewController.m
+2
-2
XFFruit_DEV.plist
XFFruit_DEV.plist
+0
-0
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
805d1f66
This diff is collapsed.
Click to expand it.
XFFruit/Info.plist
View file @
805d1f66
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
<
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
>
2.0.
1
<
/string
>
<
string
>
2.0.
4
<
/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
>
2.0.
1
<
/string
>
<
string
>
2.0.
4
<
/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
>
...
...
XFFruit/Macro/ICRAppMacro.h
View file @
805d1f66
...
@@ -28,9 +28,12 @@
...
@@ -28,9 +28,12 @@
@"http://jdcg.demo.hd123.cn:7080/cruiser-server/rest"
@"http://jdcg.demo.hd123.cn:7080/cruiser-server/rest"
#define HTTP_REST_REPORT_BASE_URL @"http://jdcg.demo.hd123.cn:7080"
#define HTTP_REST_REPORT_BASE_URL @"http://jdcg.demo.hd123.cn:7080"
#else
#elif XFFruit_DEV
//********开发环境********
//********开发环境********
//#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_REPORT_BASE_URL @"http://gomoredev:8090"
#else
//********测试环境********
//********测试环境********
//#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"
...
...
XFFruit/Utilities/IBTUIKit/IBTConstants.h
View file @
805d1f66
...
@@ -214,17 +214,19 @@
...
@@ -214,17 +214,19 @@
#define RECEIVE_STATE_PROCESS @"process"//提交系统处理
#define RECEIVE_STATE_PROCESS @"process"//提交系统处理
#define RECEIVE_STATE_PROCESSFAIL @"processFail"//系统处理失败
#define RECEIVE_STATE_PROCESSFAIL @"processFail"//系统处理失败
//权限列表vendorapprove 采购单
//权限列表vendorapprove 采购单
#define PURCHASE_PERMISSIONS_MANAGEAPPROVE @"500405"
#define PURCHASE_PERMISSIONS_MANAGEAPPROVE @"500405"
#define PURCHASE_PERMISSIONS_VENDORAPPROVE @"500406"
#define PURCHASE_PERMISSIONS_VENDORAPPROVE @"500406"
#define PURCHASE_PERMISSIONS_FINISH @"500407"
#define PURCHASE_PERMISSIONS_FINISH @"500407"
#define PURCHASE_PERMISSIONS_ABORT @"500408"
#define PURCHASE_PERMISSIONS_ABORT @"500408"
#define PURCHASE_PERMISSIONS_REVCEIVE @"500409"//采购单收货权
//转运单
//转运单
#define TRANSFER_ACTION_ABORT @"500605" //作废权
#define TRANSFER_ACTION_ABORT @"500605" //作废权
#define RECEIVE_ACTION_RECEIVE @"500803" //收货权
#define RECEIVE_ACTION_RECEIVE @"500803" //收货权
#define TRANSFER_ACTION_NEW @"500601" //新建权
#define TRANSFER_ACTION_NEW @"500601" //新建权
//采购通知单权限
//采购通知单权限
#define NOTICE_PERMISSIONS_ACCEPTTASK @"500304"//接受任务
#define NOTICE_PERMISSIONS_ACCEPTTASK @"500304"//接受任务
#define NOTICE_PERMISSIONS_CREATEBILL @"500305"//新建权
#define NOTICE_PERMISSIONS_CREATEBILL @"500305"//新建权
...
@@ -233,7 +235,7 @@
...
@@ -233,7 +235,7 @@
#define TRANSPORT_ACTION_FINISH @"500504" //结束权
#define TRANSPORT_ACTION_FINISH @"500504" //结束权
#define TRANSPORT_ACTION_ABORT @"500505" //作废权
#define TRANSPORT_ACTION_ABORT @"500505" //作废权
#define TRANSPORT_ACTION_NEW @"500501" //新建权
#define TRANSPORT_ACTION_NEW @"500501" //新建权
#define TRANSPORT_ACTION_RECEIVE @"500506" //发运单收货权
//选中的颜色
//选中的颜色
#define BASESELECT_COLOR RGBA(255, 127, 0, 1)
#define BASESELECT_COLOR RGBA(255, 127, 0, 1)
...
...
XFFruit/ViewControllers/Purchase/Controllers/PurchaseDetailViewController.m
View file @
805d1f66
...
@@ -241,7 +241,7 @@ typedef enum : NSUInteger {
...
@@ -241,7 +241,7 @@ typedef enum : NSUInteger {
[
self
hiddenTwoBtn
];
[
self
hiddenTwoBtn
];
}
}
}
else
if
([
self
.
bill
.
state
isEqualToString
:
PURCHASE_STATE_WAITE_RECIEVE
]){
}
else
if
([
self
.
bill
.
state
isEqualToString
:
PURCHASE_STATE_WAITE_RECIEVE
]){
if
([
IBTCommon
checkIsPermission
:
RECEIVE_ACTION_RE
CEIVE
])
{
if
([
IBTCommon
checkIsPermission
:
PURCHASE_PERMISSIONS_REV
CEIVE
])
{
[
self
createBtnWithArr
:@[
@"保存"
,
@"收货"
]];
[
self
createBtnWithArr
:@[
@"保存"
,
@"收货"
]];
}
else
{
}
else
{
[
self
hiddenTwoBtn
];
[
self
hiddenTwoBtn
];
...
...
XFFruit/ViewControllers/Purchase/Views/PurchaseReceiveProductCell.m
View file @
805d1f66
...
@@ -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
,
transferProduct
.
unit
];
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
];
...
...
XFFruit/ViewControllers/PurchaseNotice/Models/ShopDetail.h
View file @
805d1f66
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
@property
(
nonatomic
,
strong
)
NSNumber
*
foundationUnitPrice
;
//基础单价
@property
(
nonatomic
,
strong
)
NSNumber
*
foundationUnitPrice
;
//基础单价
@property
(
nonatomic
,
strong
)
NSNumber
*
packageUnitPrice
;
//包装单价
@property
(
nonatomic
,
strong
)
NSNumber
*
packageUnitPrice
;
//包装单价
@property
(
nonatomic
,
strong
)
NSNumber
*
totalMoney
;
//总金额
@property
(
nonatomic
,
strong
)
NSNumber
*
totalMoney
;
//总金额
@property
(
nonatomic
,
strong
)
NSNumber
*
total
;
@property
(
nonatomic
,
strong
)
NSString
*
remark
;
//备注
@property
(
nonatomic
,
strong
)
NSString
*
remark
;
//备注
@property
(
nonatomic
,
assign
)
BOOL
IsDeleted
;
//是否删除
@property
(
nonatomic
,
assign
)
BOOL
IsDeleted
;
//是否删除
@property
(
nonatomic
,
assign
)
BOOL
IsXiuGai
;
//是否删除
@property
(
nonatomic
,
assign
)
BOOL
IsXiuGai
;
//是否删除
...
...
XFFruit/ViewControllers/PurchaseNotice/Views/ShopDetaileViewController.m
View file @
805d1f66
...
@@ -466,6 +466,9 @@ typedef enum : NSUInteger {
...
@@ -466,6 +466,9 @@ typedef enum : NSUInteger {
textField
.
placeholder
=
@"输入基础单价"
;
textField
.
placeholder
=
@"输入基础单价"
;
[
textField
addTarget
:
self
action
:
@selector
(
textChange
:
)
forControlEvents
:
UIControlEventAllEditingEvents
];
[
textField
addTarget
:
self
action
:
@selector
(
textChange
:
)
forControlEvents
:
UIControlEventAllEditingEvents
];
foundationUnitPrice
=
textField
;
//基础单价
foundationUnitPrice
=
textField
;
//基础单价
if
(
self
.
intertype
==
ShopDetailInterTypeTranfer
){
cell
.
userInteractionEnabled
=
YES
;
}
}
else
if
([
title
isEqualToString
:
@"包装单价"
])
{
}
else
if
([
title
isEqualToString
:
@"包装单价"
])
{
label
.
text
=
@"元"
;
label
.
text
=
@"元"
;
[
textField
addTarget
:
self
action
:
@selector
(
textChange
:
)
forControlEvents
:
UIControlEventAllEditingEvents
];
[
textField
addTarget
:
self
action
:
@selector
(
textChange
:
)
forControlEvents
:
UIControlEventAllEditingEvents
];
...
...
XFFruit/ViewControllers/Receiving/Controllers/ReceiveProductViewController.m
View file @
805d1f66
...
@@ -88,8 +88,13 @@
...
@@ -88,8 +88,13 @@
}
}
-
(
void
)
editClick
:
(
UIButton
*
)
btn
{
-
(
void
)
editClick
:
(
UIButton
*
)
btn
{
TransferPdtDetail
*
billProduct
=
self
.
productArr
[
btn
.
tag
];
NSInteger
section
=
btn
.
tag
/
1000
;
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
KNOTIFICATION_EditReceiveProduct
object
:
nil
userInfo
:
@{
@"transferPdtDetail"
:
billProduct
,
@"indexPath"
:
@
(
btn
.
tag
)}];
NSInteger
row
=
btn
.
tag
%
1000
;
NSMutableArray
*
arrSection
=
[
self
.
dictData
objectForKey
:
self
.
arrBillNumber
[
section
]];
TransferPdtDetail
*
pdDetail
=
arrSection
[
row
];
NSInteger
index
=
[
self
.
productArr
indexOfObject
:
pdDetail
];
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
KNOTIFICATION_EditReceiveProduct
object
:
nil
userInfo
:
@{
@"transferPdtDetail"
:
pdDetail
,
@"indexTag"
:
@
(
index
)}];
}
}
#pragma mark - 协议方法
#pragma mark - 协议方法
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
...
@@ -162,7 +167,7 @@
...
@@ -162,7 +167,7 @@
cell
.
showView
.
frame
=
showfrmame
;
cell
.
showView
.
frame
=
showfrmame
;
cell
.
backgroundColor
=
[
UIColor
whiteColor
];
cell
.
backgroundColor
=
[
UIColor
whiteColor
];
}
}
cell
.
editBtn
.
tag
=
indexPath
.
row
;
cell
.
editBtn
.
tag
=
indexPath
.
section
*
1000
+
indexPath
.
row
;
[
cell
.
editBtn
addTarget
:
self
action
:
@selector
(
editClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
cell
.
editBtn
addTarget
:
self
action
:
@selector
(
editClick
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
if
(
self
.
productArr
.
count
>
0
)
{
if
(
self
.
productArr
.
count
>
0
)
{
...
...
XFFruit/ViewControllers/Transport/Controllers/NewTransportViewController.m
View file @
805d1f66
...
@@ -549,7 +549,7 @@ typedef enum : NSUInteger {
...
@@ -549,7 +549,7 @@ typedef enum : NSUInteger {
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
numberWithDouble
:[
shopDetail
.
foundationQuantity
doubleValue
]];
billProduct
.
baseQty
=
[
NSNumber
numberWithDouble
:[
shopDetail
.
foundationQuantity
doubleValue
]];
// billProduct.total = [NSNumber numberWithFloat:[shopDetail.totalMoney floatValue]]
;
billProduct
.
total
=
shopDetail
.
total
;
billProduct
.
note
=
shopDetail
.
remark
;
billProduct
.
note
=
shopDetail
.
remark
;
billProduct
.
qpcStr
=
shopDetail
.
packageQpcStr
?
shopDetail
.
packageQpcStr
:
@"无"
;
billProduct
.
qpcStr
=
shopDetail
.
packageQpcStr
?
shopDetail
.
packageQpcStr
:
@"无"
;
billProduct
.
baseUnit
=
shopDetail
.
packageQpcUnit
;
billProduct
.
baseUnit
=
shopDetail
.
packageQpcUnit
;
...
@@ -573,6 +573,7 @@ typedef enum : NSUInteger {
...
@@ -573,6 +573,7 @@ typedef enum : NSUInteger {
shopDetail
.
foundationUnitPrice
=
billProduct
.
price
;
shopDetail
.
foundationUnitPrice
=
billProduct
.
price
;
shopDetail
.
foundationQuantity
=
[
billProduct
.
baseQty
stringValue
];
shopDetail
.
foundationQuantity
=
[
billProduct
.
baseQty
stringValue
];
shopDetail
.
totalMoney
=
billProduct
.
total
;
shopDetail
.
totalMoney
=
billProduct
.
total
;
shopDetail
.
total
=
billProduct
.
total
;
shopDetail
.
remark
=
billProduct
.
note
;
shopDetail
.
remark
=
billProduct
.
note
;
shopDetail
.
sourceDetail
=
billProduct
.
purchasePdtDetail
;
shopDetail
.
sourceDetail
=
billProduct
.
purchasePdtDetail
;
shopDetail
.
sourceBillNumber
=
billProduct
.
purchasebillnumber
;
shopDetail
.
sourceBillNumber
=
billProduct
.
purchasebillnumber
;
...
...
XFFruit/ViewControllers/Transport/Controllers/TransportDetailViewController.m
View file @
805d1f66
...
@@ -411,7 +411,7 @@ typedef enum : NSUInteger {
...
@@ -411,7 +411,7 @@ typedef enum : NSUInteger {
}
else
{
}
else
{
[
self
createBtnWithArr
:
arr
];
[
self
createBtnWithArr
:
arr
];
}
}
}
else
if
([
self
.
transport
.
state
isEqualToString
:
TRANSPORT_STATE_UNRECEIVED
]
&&
!
self
.
isWms
&&
[
IBTCommon
checkIsPermission
:
RECEIVE
_ACTION_RECEIVE
]){
}
else
if
([
self
.
transport
.
state
isEqualToString
:
TRANSPORT_STATE_UNRECEIVED
]
&&
!
self
.
isWms
&&
[
IBTCommon
checkIsPermission
:
TRANSPORT
_ACTION_RECEIVE
]){
[
self
createBtnWithArr
:@[
@"保存"
,
@"收货"
]];
[
self
createBtnWithArr
:@[
@"保存"
,
@"收货"
]];
...
@@ -598,7 +598,7 @@ typedef enum : NSUInteger {
...
@@ -598,7 +598,7 @@ typedef enum : NSUInteger {
-
(
void
)
editReceiveProduct
:
(
NSNotification
*
)
fination
{
-
(
void
)
editReceiveProduct
:
(
NSNotification
*
)
fination
{
NewReceiveProductViewController
*
nvc
=
[
NewReceiveProductViewController
new
];
NewReceiveProductViewController
*
nvc
=
[
NewReceiveProductViewController
new
];
NSInteger
indexTag
=
[[[
fination
userInfo
]
objectForKey
:
@"index
Path
"
]
integerValue
];
NSInteger
indexTag
=
[[[
fination
userInfo
]
objectForKey
:
@"index
Tag
"
]
integerValue
];
TransferPdtDetail
*
transferPdtDetail
=
[[
fination
userInfo
]
objectForKey
:
@"transferPdtDetail"
];
TransferPdtDetail
*
transferPdtDetail
=
[[
fination
userInfo
]
objectForKey
:
@"transferPdtDetail"
];
if
(
transferPdtDetail
)
{
if
(
transferPdtDetail
)
{
nvc
.
navTitle
=
@"商品明细"
;
nvc
.
navTitle
=
@"商品明细"
;
...
...
XFFruit_DEV.plist
0 → 100644
View file @
805d1f66
File added
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