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
ec8e277a
Commit
ec8e277a
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节修改
parent
b6648fe0
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
72 additions
and
216 deletions
+72
-216
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+6
-12
ChooseProductUnitViewController.h
...rs/ChooseViewController/ChooseProductUnitViewController.h
+0
-0
ChooseProductUnitViewController.m
...rs/ChooseViewController/ChooseProductUnitViewController.m
+0
-0
PurchaseDetailViewController.m
...llers/Purchase/Controllers/PurchaseDetailViewController.m
+1
-2
FollowUpRecordViewController.m
...PurchaseNotice/Controllers/FollowUpRecordViewController.m
+11
-30
PurchaseNoticeViewController.m
...PurchaseNotice/Controllers/PurchaseNoticeViewController.m
+5
-8
SeePurchaseNoticeViewController.m
...chaseNotice/Controllers/SeePurchaseNoticeViewController.m
+8
-28
NoticeRecord.h
XFFruit/ViewControllers/PurchaseNotice/Models/NoticeRecord.h
+1
-1
NotuceRecordCell.m
...t/ViewControllers/PurchaseNotice/Views/NotuceRecordCell.m
+39
-21
PurchaseNoticeCell.m
...ViewControllers/PurchaseNotice/Views/PurchaseNoticeCell.m
+1
-2
SelectCompanyViewController.h
...ollers/PurchaseNotice/Views/SelectCompanyViewController.h
+0
-17
SelectCompanyViewController.m
...ollers/PurchaseNotice/Views/SelectCompanyViewController.m
+0
-90
ShopDetaileViewController.m
...trollers/PurchaseNotice/Views/ShopDetaileViewController.m
+0
-5
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
ec8e277a
...
...
@@ -12,13 +12,11 @@
0414FF171B94959700C7B00E
/* NewPurchaseNoticeViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414FF0C1B94959700C7B00E
/* NewPurchaseNoticeViewController.m */
;
};
0414FF181B94959700C7B00E
/* SeePurchaseNoticeViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414FF0E1B94959700C7B00E
/* SeePurchaseNoticeViewController.m */
;
};
0414FF191B94959700C7B00E
/* PurchaseNoticeCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414FF121B94959700C7B00E
/* PurchaseNoticeCell.m */
;
};
0414FF1A1B94959700C7B00E
/* SelectCompanyViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414FF141B94959700C7B00E
/* SelectCompanyViewController.m */
;
};
0414FF1B1B94959700C7B00E
/* ShopDetaileViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0414FF161B94959700C7B00E
/* ShopDetaileViewController.m */
;
};
0460F6711BA8B3FC004A073D
/* FollowUpRecordViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0460F6701BA8B3FC004A073D
/* FollowUpRecordViewController.m */
;
};
0460F6741BA8B7A3004A073D
/* NotuceRecordCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0460F6731BA8B7A3004A073D
/* NotuceRecordCell.m */
;
};
0460F6771BA8BA30004A073D
/* NoticeRecord.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0460F6761BA8BA30004A073D
/* NoticeRecord.m */
;
};
04B4A3871B9CAAD700D88D68
/* ShopDetail.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B4A3861B9CAAD700D88D68
/* ShopDetail.m */
;
};
04E721E01BA73CE2008F9158
/* ChooseProductUnitViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E721DF1BA73CE2008F9158
/* ChooseProductUnitViewController.m */
;
};
04E721E31BA755FD008F9158
/* ProductUnit.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E721E21BA755FD008F9158
/* ProductUnit.m */
;
};
04F6E70A1B9B08A500550849
/* PurchaseNoticeViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F6E7091B9B08A500550849
/* PurchaseNoticeViewController.m */
;
};
300DD94A1B184B450080EE12
/* ICRPatrolPlan.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
300DD9491B184B450080EE12
/* ICRPatrolPlan.m */
;
};
...
...
@@ -126,6 +124,7 @@
7281A0C81B89BFE60052B1AC
/* Vendor.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7281A0C71B89BFE60052B1AC
/* Vendor.m */
;
};
72873CEB1BA27BA6007B3387
/* GXFPopView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72873CEA1BA27BA6007B3387
/* GXFPopView.m */
;
};
72873CEE1BA280DD007B3387
/* GXFPopCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72873CED1BA280DD007B3387
/* GXFPopCell.m */
;
};
72882D8B1BA9121E00935BA6
/* ChooseProductUnitViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72882D8A1BA9121E00935BA6
/* ChooseProductUnitViewController.m */
;
};
72B3C0C11B9D3C7300025D81
/* CostViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72B3C0AC1B9D3C7300025D81
/* CostViewController.m */
;
};
72B3C0C21B9D3C7300025D81
/* NewCostViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72B3C0AE1B9D3C7300025D81
/* NewCostViewController.m */
;
};
72B3C0C31B9D3C7300025D81
/* NewTransportViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
72B3C0B01B9D3C7300025D81
/* NewTransportViewController.m */
;
};
...
...
@@ -468,8 +467,6 @@
0414FF0E1B94959700C7B00E
/* SeePurchaseNoticeViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SeePurchaseNoticeViewController.m
;
sourceTree
=
"<group>"
;
};
0414FF111B94959700C7B00E
/* PurchaseNoticeCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PurchaseNoticeCell.h
;
sourceTree
=
"<group>"
;
};
0414FF121B94959700C7B00E
/* PurchaseNoticeCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PurchaseNoticeCell.m
;
sourceTree
=
"<group>"
;
};
0414FF131B94959700C7B00E
/* SelectCompanyViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
SelectCompanyViewController.h
;
sourceTree
=
"<group>"
;
};
0414FF141B94959700C7B00E
/* SelectCompanyViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
SelectCompanyViewController.m
;
sourceTree
=
"<group>"
;
};
0414FF151B94959700C7B00E
/* ShopDetaileViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ShopDetaileViewController.h
;
sourceTree
=
"<group>"
;
};
0414FF161B94959700C7B00E
/* ShopDetaileViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ShopDetaileViewController.m
;
sourceTree
=
"<group>"
;
};
0460F66F1BA8B3FC004A073D
/* FollowUpRecordViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
FollowUpRecordViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -480,8 +477,6 @@
0460F6761BA8BA30004A073D
/* NoticeRecord.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
NoticeRecord.m
;
sourceTree
=
"<group>"
;
};
04B4A3851B9CAAD700D88D68
/* ShopDetail.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ShopDetail.h
;
sourceTree
=
"<group>"
;
};
04B4A3861B9CAAD700D88D68
/* ShopDetail.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ShopDetail.m
;
sourceTree
=
"<group>"
;
};
04E721DE1BA73CE2008F9158
/* ChooseProductUnitViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ChooseProductUnitViewController.h
;
sourceTree
=
"<group>"
;
};
04E721DF1BA73CE2008F9158
/* ChooseProductUnitViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ChooseProductUnitViewController.m
;
sourceTree
=
"<group>"
;
};
04E721E11BA755FD008F9158
/* ProductUnit.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ProductUnit.h
;
sourceTree
=
"<group>"
;
};
04E721E21BA755FD008F9158
/* ProductUnit.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ProductUnit.m
;
sourceTree
=
"<group>"
;
};
04F6E7081B9B08A500550849
/* PurchaseNoticeViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PurchaseNoticeViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -655,6 +650,8 @@
72873CEA1BA27BA6007B3387
/* GXFPopView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
GXFPopView.m
;
sourceTree
=
"<group>"
;
};
72873CEC1BA280DD007B3387
/* GXFPopCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
GXFPopCell.h
;
sourceTree
=
"<group>"
;
};
72873CED1BA280DD007B3387
/* GXFPopCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
GXFPopCell.m
;
sourceTree
=
"<group>"
;
};
72882D891BA9121E00935BA6
/* ChooseProductUnitViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ChooseProductUnitViewController.h
;
sourceTree
=
"<group>"
;
};
72882D8A1BA9121E00935BA6
/* ChooseProductUnitViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ChooseProductUnitViewController.m
;
sourceTree
=
"<group>"
;
};
72B3C0AB1B9D3C7300025D81
/* CostViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
CostViewController.h
;
sourceTree
=
"<group>"
;
};
72B3C0AC1B9D3C7300025D81
/* CostViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
CostViewController.m
;
sourceTree
=
"<group>"
;
};
72B3C0AD1B9D3C7300025D81
/* NewCostViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
NewCostViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1105,10 +1102,6 @@
0414FF121B94959700C7B00E
/* PurchaseNoticeCell.m */
,
0460F6721BA8B7A3004A073D
/* NotuceRecordCell.h */
,
0460F6731BA8B7A3004A073D
/* NotuceRecordCell.m */
,
0414FF131B94959700C7B00E
/* SelectCompanyViewController.h */
,
0414FF141B94959700C7B00E
/* SelectCompanyViewController.m */
,
04E721DE1BA73CE2008F9158
/* ChooseProductUnitViewController.h */
,
04E721DF1BA73CE2008F9158
/* ChooseProductUnitViewController.m */
,
0414FF151B94959700C7B00E
/* ShopDetaileViewController.h */
,
0414FF161B94959700C7B00E
/* ShopDetaileViewController.m */
,
72F9D4801BA7EC9600795A00
/* NoticeProductViewController.h */
,
...
...
@@ -1350,6 +1343,8 @@
724171641B9D30660094DF55
/* ChooseViewController */
=
{
isa
=
PBXGroup
;
children
=
(
72882D891BA9121E00935BA6
/* ChooseProductUnitViewController.h */
,
72882D8A1BA9121E00935BA6
/* ChooseProductUnitViewController.m */
,
724171651B9D30660094DF55
/* ChooseProductViewController.h */
,
724171661B9D30660094DF55
/* ChooseProductViewController.m */
,
724171671B9D30660094DF55
/* ChooseTypeViewController.h */
,
...
...
@@ -2589,7 +2584,6 @@
C159184B1AC062460013B391
/* IBTTabBarController.m in Sources */
,
C142D2BE1AC3A155000109A7
/* UIView+FindUIViewController.m in Sources */
,
35C3C0BF1AE95F1D0035AC8A
/* UIImage+Rotate.m in Sources */
,
04E721E01BA73CE2008F9158
/* ChooseProductUnitViewController.m in Sources */
,
04F6E70A1B9B08A500550849
/* PurchaseNoticeViewController.m in Sources */
,
35CF337E1B953FFF001211EF
/* GXFProcessProduct.m in Sources */
,
C11A344D1B1BE27200079129
/* ICRPatrolAllStoreViewController.m in Sources */
,
...
...
@@ -2629,7 +2623,6 @@
C1D017171AD8EF8100CD9CB8
/* IBTSegmentedControl.m in Sources */
,
C10C90901AE54FE300B911CD
/* IBTDatePickerViewController.m in Sources */
,
72F9D4881BA8065500795A00
/* PurchaseNoticeListCell.m in Sources */
,
0414FF1A1B94959700C7B00E
/* SelectCompanyViewController.m in Sources */
,
C1C5644B1AD66EB4006A1050
/* ICRTaskListViewController.m in Sources */
,
35CF33981B96BB02001211EF
/* GXFPaging.m in Sources */
,
721B5DB01BA02A0C006CA199
/* GXFProcessBoltView.m in Sources */
,
...
...
@@ -2805,6 +2798,7 @@
C1E1085D1ADA577500620375
/* ICRTaskDetailContentView.m in Sources */
,
C14BE30E1ADB86DB0049F1AA
/* NSData+EncodeAdditions.m in Sources */
,
FEA2F3031B8453C700D64735
/* GoodsViewController.m in Sources */
,
72882D8B1BA9121E00935BA6
/* ChooseProductUnitViewController.m in Sources */
,
72B3C0D61B9D769A00025D81
/* TransportProductViewController.m in Sources */
,
FE0C9B091B7C543D00335B39
/* User.m in Sources */
,
C1E093041AC8E8E0003B7126
/* ICRCheckBox.m in Sources */
,
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/
PurchaseNotice/Views
/ChooseProductUnitViewController.h
→
XFFruit/ViewControllers/
ChooseViewController
/ChooseProductUnitViewController.h
View file @
ec8e277a
File moved
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/
PurchaseNotice/Views
/ChooseProductUnitViewController.m
→
XFFruit/ViewControllers/
ChooseViewController
/ChooseProductUnitViewController.m
View file @
ec8e277a
File moved
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Purchase/Controllers/PurchaseDetailViewController.m
View file @
ec8e277a
...
...
@@ -102,7 +102,6 @@ typedef enum : NSUInteger {
[
self
.
view
addSubview
:
_scrollView
];
[
self
createBtn
];
[
self
createBottomView
];
[
self
createPurchaseView
];
}
...
...
@@ -361,7 +360,7 @@ typedef enum : NSUInteger {
}
else
if
([
self
.
bill
.
state
isEqualToString
:
PURCHASE_STATE_SHIPPING
])
{
self
.
stateLabel
.
textColor
=
[
UIColor
grayColor
];
self
.
stateLabel
.
text
=
@"发运中"
;
}
else
if
([
self
.
bill
.
state
isEqualToString
:
PURCHASE_
ACTION_ABORT
])
{
}
else
if
([
self
.
bill
.
state
isEqualToString
:
PURCHASE_
STATE_ABORTED
])
{
self
.
stateLabel
.
textColor
=
[
UIColor
grayColor
];
self
.
stateLabel
.
text
=
@"已作废"
;
}
else
if
([
self
.
bill
.
state
isEqualToString
:
PURCHASE_STATE_FINISHED
])
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Controllers/FollowUpRecordViewController.m
View file @
ec8e277a
...
...
@@ -9,7 +9,7 @@
#import "FollowUpRecordViewController.h"
#import "NotuceRecordCell.h"
#import "NoticeRecord.h"
#define TableHeight
7
0
#define TableHeight
13
0
@interface
FollowUpRecordViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
UITextFieldDelegate
>
@end
...
...
@@ -20,7 +20,6 @@
[
super
viewDidLoad
];
[
self
bulidLayout
];
[
self
getDataFromServer
];
// Do any additional setup after loading the view.
}
-
(
void
)
bulidLayout
{
self
.
productArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
@""
,
@""
,
nil
];
...
...
@@ -57,13 +56,11 @@
[
IBTLoadingView
showTips
:
data
];
};
[
IBTLoadingView
showProgressLabel
:
@"正在加载..."
];
[[
ICRHTTPController
sharedController
]
getPurchaseNoticeRecodWithData
:
self
.
purchaseNotice
.
billnumber
success
:
succ
failure
:
fail
];
[[
ICRHTTPController
sharedController
]
getPurchaseNoticeRecodWithData
:
self
.
purchaseNotice
.
uuid
success
:
succ
failure
:
fail
];
}
#pragma mark - 协议方法
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
return
1
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
...
...
@@ -71,34 +68,18 @@
return
self
.
productArr
.
count
;
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
static
NSString
*
cellID
=
@"NotuceRecordCell"
;
NotuceRecordCell
*
notuceRecordCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
cellID
];
static
NSString
*
CellID
=
@"CellID"
;
NotuceRecordCell
*
Cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
CellID
];
if
(
Cell
==
nil
)
{
Cell
=
[[
NotuceRecordCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
CellID
];
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
Cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
}
Cell
.
uuidLable
.
text
=
self
.
noticeRecord
.
uuid
;
//唯一标识
Cell
.
traceIdLable
.
text
=
[
NSString
stringWithFormat
:
@"采购通知单:%@"
,
self
.
noticeRecord
.
traceId
];
//采购通知单
Cell
.
typeLable
.
text
=
self
.
noticeRecord
.
type
;
//业务类型
Cell
.
creatorLable
.
text
=
self
.
noticeRecord
.
creator
;
//业务人
Cell
.
createdLable
.
text
=
[[
NSString
alloc
]
initWithData
:
self
.
noticeRecord
.
created
encoding
:
NSUTF8StringEncoding
];
//业务时间
Cell
.
remarkLable
.
text
=
self
.
noticeRecord
.
remark
;
//日志描述信息
return
Cell
;
if
(
notuceRecordCell
==
nil
)
{
notuceRecordCell
=
[[
NotuceRecordCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
cellID
];
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
notuceRecordCell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
}
return
notuceRecordCell
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
TableHeight
;
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Controllers/PurchaseNoticeViewController.m
View file @
ec8e277a
...
...
@@ -105,9 +105,9 @@ typedef enum : NSUInteger {
[
orderArr
addObject
:[
order
dictForCommit
]];
}
}
id
notic
eObject
=
[
NSNull
null
];
id
titl
eObject
=
[
NSNull
null
];
if
(
self
.
titleLike
.
length
>
0
)
{
notic
eObject
=
self
.
titleLike
;
titl
eObject
=
self
.
titleLike
;
if
(
self
.
orderDirection
.
length
>
0
&&
!
[
self
.
orderDirection
isEqualToString
:
@"none"
])
{
QueryOrder
*
order
=
[
QueryOrder
new
];
order
.
field
=
@"titleLike"
;
...
...
@@ -125,10 +125,8 @@ typedef enum : NSUInteger {
NSDictionary
*
dict
=
@{
@"billNumberLike"
:
billObject
,
@"state"
:
stateObject
,
@"title"
:
[
NSNull
null
],
@"orderField"
:
@"created"
,
@"orderDirection"
:
@"desc"
,
// @"queryOrders":orderArr,
@"title"
:
titleObject
,
@"queryOrders"
:
orderArr
,
@"pageNumber"
:
@
(
_currentPage
),
@"pageSize"
:
@
(
20
)};
[[
ICRHTTPController
sharedController
]
getPurchaseNoticeListWithData
:
dict
success
:
succ
failure
:
fail
];
...
...
@@ -415,13 +413,12 @@ typedef enum : NSUInteger {
[
self
PushViewController
:
nvc
animated
:
YES
];
}
else
{
SeePurchaseNoticeViewController
*
pvc
=
[
SeePurchaseNoticeViewController
new
];
pvc
.
title
=
@"查看采购单"
;
pvc
.
title
=
@"查看采购单
通知单
"
;
pvc
.
purchaseNotice
=
purchaseNotice
;
[
self
PushViewController
:
pvc
animated
:
YES
];
}
}
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
TableHeight
;
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Controllers/SeePurchaseNoticeViewController.m
View file @
ec8e277a
...
...
@@ -140,8 +140,6 @@ typedef enum : NSUInteger {
[
self
createBtn
];
[
self
createPurchaseView
];
[
self
createMingXiTableView
];
//自定义
}
-
(
void
)
hiddenBottomBtn
{
...
...
@@ -271,18 +269,20 @@ typedef enum : NSUInteger {
}
-
(
void
)
createMingXiTableView
{
_bottomView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
CGRectGetMaxY
(
_purchaseView
.
frame
)
+
TopMargin
,
ScreenSize
.
width
,
200
)];
_bottomView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
_scrollView
addSubview
:
_bottomView
];
_shopeArr
=
[[
NSMutableArray
alloc
]
initWithObjects
:
nil
];
selectCellAry
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
1000
];
mingXiTableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
2
*
LeftMargin
+
_purchaseView
.
frame
.
size
.
height
,
ScreenSize
.
width
,
ScreenSize
.
height
-
_purchaseView
.
height
-
ScreenSize
.
height
/
5
)];
mingXiTableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
_bottomView
.
height
)];
mingXiTableView
.
backgroundColor
=
[
UIColor
whiteColor
];
mingXiTableView
.
tag
=
1002
;
mingXiTableView
.
bounces
=
NO
;
mingXiTableView
.
delegate
=
self
;
mingXiTableView
.
dataSource
=
self
;
UIView
*
footView2
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
TableHeight
)];
footView2
.
backgroundColor
=
[
UIColor
clearColor
];
NSArray
*
ary
=
[
NSArray
arrayWithObjects
:
@"商品"
,
@"包装规格"
,
@"包装数量"
,
nil
];
// NSArray *ary=[NSArray arrayWithObjects: nil];
CGFloat
gipWidth
=
(
ScreenSize
.
width
-
leftWidth
-
RightWidth
)
/
3
;
for
(
int
i
=
0
;
i
<
ary
.
count
;
i
++
)
{
...
...
@@ -296,8 +296,6 @@ typedef enum : NSUInteger {
if
(
i
==
2
)
{
lable
.
frame
=
CGRectMake
(
leftWidth
+
2
*
gipWidth
+
2
,
0
,
gipWidth
,
TableHeight
);
}
// UILabel *lable=[[UILabel alloc]initWithFrame:CGRectMake(LeftWidth + (SpaceMargin + headWidth)*i,0, headWidth, 50)];
lable
.
text
=
[
ary
objectAtIndex
:
i
];
lable
.
textColor
=
GXF_PLACEHOLDER_COLOR
;
lable
.
font
=
GXF_FIFTEENTEN_SIZE
;
...
...
@@ -318,20 +316,13 @@ typedef enum : NSUInteger {
self
.
HeardLabel
=
[[
UILabel
alloc
]
initWithFrame
:(
CGRectMake
(
LeftMargin
,
0
,
footView3
.
size
.
width
-
2
*
LeftMargin
,
1
))];
self
.
HeardLabel
.
backgroundColor
=
HexColor
(
@"e5e5e5"
);
self
.
HeardLabel
.
font
=
FontSize
(
TitleSize
);
//HexColor(@"e5e5e5")
[
footView3
addSubview
:
self
.
addDetailedButton
];
[
footView3
addSubview
:
self
.
HeardLabel
];
[
footView3
addSubview
:
self
.
FootLabel
];
mingXiTableView
.
tableFooterView
=
footView3
;
mingXiTableView
.
tableHeaderView
=
footView2
;
[
_
scroll
View
addSubview
:
mingXiTableView
];
[
_
bottom
View
addSubview
:
mingXiTableView
];
}
-
(
void
)
createBottomView
{
_bottomView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
CGRectGetMaxY
(
_purchaseView
.
frame
)
+
TopMargin
,
ScreenSize
.
width
,
200
)];
_bottomView
.
backgroundColor
=
[
UIColor
whiteColor
];
[
_scrollView
addSubview
:
_bottomView
];
}
-
(
void
)
createPurchaseView
{
_leftArr
=
@[
@"单号:"
,
@"创建人:"
,
@"标题:"
,
@"状态:"
,
@"采购员:"
,
@"合计基础数量:"
,
@"备注:"
];
...
...
@@ -361,12 +352,8 @@ typedef enum : NSUInteger {
}
else
if
(
i
==
4
){
self
.
userLabel
=
rightLabel
;
}
else
if
(
i
==
5
){
CGRect
leftFame
=
leftLabel
.
frame
;
leftFame
.
size
.
width
=
110
;
leftLabel
.
frame
=
leftFame
;
CGRect
rightFrame
=
rightLabel
.
frame
;
rightFrame
.
origin
.
x
=
CGRectGetMaxX
(
leftLabel
.
frame
);
rightLabel
.
frame
=
rightFrame
;
leftLabel
.
width
=
110
;
rightLabel
.
x
=
leftLabel
.
right
;
self
.
countLabel
=
rightLabel
;
}
else
if
(
i
==
_leftArr
.
count
-
1
){
rightLabel
.
numberOfLines
=
0
;
...
...
@@ -507,13 +494,6 @@ typedef enum : NSUInteger {
FollowUpRecordViewController
*
nvc
=
[
FollowUpRecordViewController
new
];
nvc
.
title
=
@"查看跟进记录"
;
nvc
.
purchaseNotice
=
self
.
purchaseNotice
;
// nvc.choseNoticeProduct = ^(NoticeProduct *product,NSIndexPath *indexPath){
// if (product) {
// [_shopeArr addObject:product];
// [mingXiTableView reloadData];
// }
// };
[
self
PushViewController
:
nvc
animated
:
YES
];
}
-
(
void
)
showShopDetail
:
(
PurchaseNoticeCell
*
)
Cell
indexPath
:
(
NSIndexPath
*
)
indexPath
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Models/NoticeRecord.h
View file @
ec8e277a
...
...
@@ -13,7 +13,7 @@
@property
(
nonatomic
,
strong
)
NSString
*
traceId
;
//采购通知单uuid
@property
(
nonatomic
,
strong
)
NSString
*
type
;
//业务类型
@property
(
nonatomic
,
strong
)
NSString
*
creator
;
//业务人
@property
(
nonatomic
,
strong
)
NS
Data
*
created
;
//业务时间
@property
(
nonatomic
,
strong
)
NS
String
*
created
;
//业务时间
@property
(
nonatomic
,
strong
)
NSString
*
remark
;
//日志描述信息
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/NotuceRecordCell.m
View file @
ec8e277a
...
...
@@ -7,7 +7,7 @@
//
#import "NotuceRecordCell.h"
#define LeftMargin 10
@implementation
NotuceRecordCell
-
(
void
)
awakeFromNib
{
...
...
@@ -17,35 +17,53 @@
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
];
if
(
self
)
{
[
self
initdata
];
[
self
bulidLayout
];
}
return
self
;
}
-
(
void
)
initdata
{
self
.
uuidLable
=
[[
UILabel
alloc
]
init
];
//唯一标识
self
.
traceIdLable
=
[[
UILabel
alloc
]
init
];
//采购通知单uuid
self
.
typeLable
=
[[
UILabel
alloc
]
init
];
//业务类型
self
.
creatorLable
=
[[
UILabel
alloc
]
init
];
//业务人
self
.
createdLable
=
[[
UILabel
alloc
]
init
];
//业务时间
self
.
remarkLable
=
[[
UILabel
alloc
]
init
];
//日志描述信息
}
-
(
void
)
bulidLayout
{
self
.
createdLable
.
frame
=
CGRectMake
(
0
,
0
,
self
.
frame
.
size
.
width
-
30
-
100
,
self
.
frame
.
size
.
height
/
5
);
self
.
creatorLable
.
frame
=
CGRectMake
(
self
.
frame
.
size
.
width
-
30
-
70
,
0
,
70
,
self
.
frame
.
size
.
height
/
5
);
self
.
traceIdLable
.
frame
=
CGRectMake
(
0
,
self
.
frame
.
size
.
height
/
5
,
self
.
frame
.
size
.
width
,
self
.
frame
.
size
.
height
/
5
);
self
.
remarkLable
.
frame
=
CGRectMake
(
0
,
self
.
frame
.
size
.
height
/
5
*
2
,
self
.
frame
.
size
.
width
,
self
.
frame
.
size
.
height
/
5
*
3
);
self
.
contentView
.
backgroundColor
=
XXFBgColor
;
UIView
*
bgView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
20
,
5
,
ScreenSize
.
width
-
40
,
130
-
10
)];
bgView
.
backgroundColor
=
[
UIColor
whiteColor
];
bgView
.
layer
.
cornerRadius
=
5
;
bgView
.
layer
.
masksToBounds
=
YES
;
[
self
.
contentView
addSubview
:
bgView
];
self
.
createdLable
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
LeftMargin
,
0
,
bgView
.
width
-
100
,
30
)];
//业务时间
self
.
createdLable
.
font
=
GXF_FIFTEENTEN_SIZE
;
self
.
createdLable
.
text
=
@"2015-04-05 09:05:05"
;
self
.
creatorLable
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
self
.
createdLable
.
right
,
0
,
bgView
.
width
-
self
.
createdLable
.
width
-
LeftMargin
*
2
,
30
)];
//业务人
self
.
creatorLable
.
font
=
GXF_FIFTEENTEN_SIZE
;
self
.
creatorLable
.
textAlignment
=
NSTextAlignmentRight
;
self
.
creatorLable
.
text
=
@"张三"
;
self
.
traceIdLable
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
self
.
createdLable
.
x
,
self
.
createdLable
.
bottom
,
bgView
.
width
-
LeftMargin
*
2
,
20
)];
//采购通知单uuid
self
.
traceIdLable
.
font
=
GXF_FIFTEENTEN_SIZE
;
self
.
traceIdLable
.
text
=
@"采购通知单号:1358959008854"
;
self
.
typeLable
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
self
.
createdLable
.
x
,
self
.
traceIdLable
.
bottom
,
bgView
.
width
-
LeftMargin
*
2
,
20
)];
//业务类型
self
.
typeLable
.
font
=
GXF_FIFTEENTEN_SIZE
;
self
.
typeLable
.
text
=
@"类型:接受任务"
;
self
.
remarkLable
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
self
.
createdLable
.
x
,
self
.
typeLable
.
bottom
,
bgView
.
width
-
LeftMargin
*
2
,
20
)];
//日志描述信息
self
.
remarkLable
.
font
=
GXF_FIFTEENTEN_SIZE
;
self
.
remarkLable
.
text
=
@"描述:fdsafdsaggjgoirjohgjfdl"
;
[
bgView
addSubview
:
self
.
createdLable
];
[
bgView
addSubview
:
self
.
creatorLable
];
[
bgView
addSubview
:
self
.
traceIdLable
];
[
bgView
addSubview
:
self
.
remarkLable
];
[
bgView
addSubview
:
self
.
typeLable
];
[
bgView
addSubview
:
self
.
uuidLable
];
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/PurchaseNoticeCell.m
View file @
ec8e277a
...
...
@@ -136,7 +136,6 @@
[
self
.
contentView
addSubview
:
self
.
BzggLabel
];
[
self
.
contentView
addSubview
:
self
.
HeardLabel
];
[
self
.
contentView
addSubview
:
self
.
arrowView
];
// [self.contentView addSubview:self.FootLabel];
}
-
(
void
)
setTitleStr
:
(
NSString
*
)
str
...
...
@@ -144,7 +143,7 @@
}
}
-
(
void
)
awakeFromNib
{
// Initialization code
}
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/SelectCompanyViewController.h
deleted
100644 → 0
View file @
b6648fe0
//
// SelectCompanyViewController.h
// XFFruit
//
// Created by mac on 15/8/31.
// Copyright (c) 2015年 Xummer. All rights reserved.
//
#import "ICRBaseViewController.h"
#import "MaskCell.h"
typedef
void
(
^
ChosePackaging
)(
NSString
*
Packaging
);
@interface
SelectCompanyViewController
:
ICRBaseViewController
@property
(
nonatomic
,
copy
)
ChosePackaging
chosePackaging
;
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/SelectCompanyViewController.m
deleted
100644 → 0
View file @
b6648fe0
//
// SelectCompanyViewController.m
// XFFruit
//
// Created by mac on 15/8/31.
// Copyright (c) 2015年 Xummer. All rights reserved.
//
#import "SelectCompanyViewController.h"
#define TableHeight 45
@interface
SelectCompanyViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
>
{
}
@property
(
nonatomic
,
strong
)
NSMutableArray
*
dataArr
;
@property
(
nonatomic
,
strong
)
UITableView
*
tableView
;
@end
@implementation
SelectCompanyViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
initData
];
[
self
initView
];
// Do any additional setup after loading the view.
}
-
(
void
)
initData
{
self
.
dataArr
=
[
NSMutableArray
arrayWithObjects
:
@"筐"
,
@"斤"
,
nil
];
self
.
title
=
@"选择包装单位"
;
}
-
(
void
)
initView
{
self
.
tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenSize
.
width
,
ScreenSize
.
height
)
style
:(
UITableViewStylePlain
)];
self
.
tableView
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
tableView
.
delegate
=
self
;
self
.
tableView
.
dataSource
=
self
;
[
self
.
view
addSubview
:
self
.
tableView
];
}
#pragma mark - 协议方法
-
(
NSInteger
)
numberOfSectionsInTableView
:
(
UITableView
*
)
tableView
{
return
1
;
}
-
(
NSInteger
)
tableView
:
(
UITableView
*
)
tableView
numberOfRowsInSection
:
(
NSInteger
)
section
{
return
self
.
dataArr
.
count
;
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
static
NSString
*
cellID
=
@"MaskCell"
;
MaskCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
cellID
];
if
(
cell
==
nil
)
{
cell
=
[[
MaskCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
cellID
totalWidth
:
ScreenSize
.
width
totalHeight
:
TableHeight
];
tableView
.
separatorStyle
=
UITableViewCellSeparatorStyleNone
;
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
textAlignment
=
UITextAlignmentCenter
;
cell
.
textLabel
.
text
=
self
.
dataArr
[
indexPath
.
row
];
cell
.
Commitbtn
.
hidden
=
YES
;
}
return
cell
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
40
;
}
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
NSString
*
ChosePackaging
=
self
.
dataArr
[
indexPath
.
row
];
//block 回调
self
.
chosePackaging
(
ChosePackaging
);
[
self
PopViewControllerAnimated
:
YES
];
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/PurchaseNotice/Views/ShopDetaileViewController.m
View file @
ec8e277a
...
...
@@ -12,7 +12,6 @@
#import "StartTimeView.h"
#import "ChosePersonViewController.h"
#import "ChooseProductViewController.h"
#import "SelectCompanyViewController.h"
#import "ChooseProductUnitViewController.h"
#import "GXFSearchVendorViewController.h"
#import "GXFProductUnit.h"
...
...
@@ -235,11 +234,7 @@ typedef enum : NSUInteger {
return
_dataArr
.
count
;
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
// if (indexPath.row == 0){
// return TableHeight*2;
// }else{
return
TableHeight
;
// }
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
static
NSString
*
cellID
=
@"cellID"
;
...
...
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