Commit 8ad1e0f2 authored by 刘俊宏's avatar 刘俊宏

选择生产时间待完善

parent 48dee4c3
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import LGButton import LGButton
class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, NewOnlyRKCellDelegate,NewSelectItemVcDelegate,NewSelectWarehouseVCDelegate,GLAlertSelectViewDelegate,GeliAlertTextViewDelegate{ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, NewOnlyRKCellDelegate,NewSelectItemVcDelegate,NewSelectWarehouseVCDelegate,GLAlertSelectViewDelegate,GeliAlertTextViewDelegate, ShowTimeSelectViewDelegate{
//MARK: - 提交申请 //MARK: - 提交申请
func sureGeliAlertTextViewAction(sender: String) { func sureGeliAlertTextViewAction(sender: String) {
...@@ -340,11 +340,27 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne ...@@ -340,11 +340,27 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
data.DayType = sender data.DayType = sender
} }
//MARK:---跳转日期选择
func NewOnlyRKCellDateSelect(cell: NewOnlyRKCell) { func NewOnlyRKCellDateSelect(cell: NewOnlyRKCell) {
//跳转日期选择 print("跳转日期选择")
let timeSelectV = ShowTimeSelectView(frame: self.view.window!.bounds)
//把默认值传回去
// if time_start != 0 && time_end != 0{
// var time = TimeInterval(exactly: time_start!)
// timeSelectV.BeginDate = Date(timeIntervalSince1970: time!)
// time = TimeInterval(exactly: time_end!)
// timeSelectV.EndDate = Date(timeIntervalSince1970: time!)
// }
timeSelectV.titleLbl.text = "请选择生产日期"
timeSelectV.delegate = self
self.view.window?.addSubview(timeSelectV)
}
//MARK:--选择时间回调数据
func showTimeSelectByData(timeStr: String, beginDate: Date, endginDate: Date) {
let timeInterval:TimeInterval = beginDate.timeIntervalSince1970
let timeIntervalEnd:TimeInterval = endginDate.timeIntervalSince1970
print("开始时间",timeInterval,"结束时间",timeIntervalEnd)
} }
func NewOnlyRKCellAddRepord(cell: NewOnlyRKCell) { func NewOnlyRKCellAddRepord(cell: NewOnlyRKCell) {
//添加检测报告 //添加检测报告
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment