Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
7d474984
Commit
7d474984
authored
Jun 09, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择采购日期
parent
93f8bc21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+20
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7d474984
No preview for this file type
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
7d474984
...
...
@@ -8,7 +8,7 @@
import
UIKit
class
XinCaiGouViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CGDCellDelegate
,
XuanZeShangPinViewControllerDelegate
{
class
XinCaiGouViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CGDCellDelegate
,
XuanZeShangPinViewControllerDelegate
,
ShowTimeSelectViewDelegate
{
func
XuanZeShangPinViewControllerSubmitAction
(
selectArr
:
Array
<
GetGoodsInfoDataModel
>
)
{
for
item
in
selectArr
{
datas
.
append
(
item
)
...
...
@@ -58,6 +58,19 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
if
indexPath
.
section
==
0
{
switch
indexPath
.
row
{
case
0
:
//时间
print
(
"跳转日期选择"
)
let
timeSelectV
=
ShowTimeSelectView
(
frame
:
self
.
view
.
window
!.
bounds
)
timeSelectV
.
moreSelection
=
false
//把默认值传回去
// if data.createDay != nil {
// let time = TimeInterval(exactly: data.createDay!)
// timeSelectV.BeginDate = Date(timeIntervalSince1970: time!)
// timeSelectV.EndDate = Date(timeIntervalSince1970: time!)//无用处
//
// }
timeSelectV
.
titleLbl
.
text
=
"请选择采购日期"
timeSelectV
.
delegate
=
self
self
.
view
.
window
?
.
addSubview
(
timeSelectV
)
break
case
1
:
//供应商
let
vc
=
GYSListViewController
()
...
...
@@ -71,7 +84,12 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
//MARK:--选择时间回调数据
func
showTimeSelectByData
(
timeStr
:
String
,
beginDate
:
Date
,
endginDate
:
Date
)
{
let
timeInterval
:
TimeInterval
=
beginDate
.
timeIntervalSince1970
print
(
timeStr
,
"采购日期"
,
timeInterval
)
}
//MARK: - 添加商品
@objc
func
addItemAction
(){
...
...
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