Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
IFS
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
张杰
IFS
Commits
e45207fc
Commit
e45207fc
authored
6 years ago
by
Tiank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待办列表添加内容预览
parent
af6e6022
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
62 deletions
+77
-62
TodoViewController.swift
...FS/Main/Business/Todo/Controller/TodoViewController.swift
+0
-20
TodoTableViewCell.swift
IFS/IFS/Main/Business/Todo/View/TodoTableViewCell.swift
+3
-1
HomeTableViewController.swift
IFS/IFS/Main/Home/Controller/HomeTableViewController.swift
+3
-12
HomeTableViewCell.swift
IFS/IFS/Main/Home/View/HomeTableViewCell.swift
+3
-1
Function.storyboard
IFS/IFS/Main/Storyboards/Function.storyboard
+30
-9
Home.storyboard
IFS/IFS/Main/Storyboards/Home.storyboard
+36
-17
Info.plist
IFS/IFS/Resource/Info.plist
+2
-2
No files found.
IFS/IFS/Main/Business/Todo/Controller/TodoViewController.swift
View file @
e45207fc
...
...
@@ -90,34 +90,14 @@ class TodoViewController: BaseTableViewPullController {
let
lindanVC
=
HomeLinDanController
.
instantiateViewController
(
.
Function
)
as!
HomeLinDanController
lindanVC
.
model
=
model
pushVC
(
lindanVC
)
// ShowAlertView(hint, "请确认是否领单?", [cancel,sure], .alert, {[weak self] (index) in
// if index == kZERO { return }
// self?.orderDetailViewModel.getChildBillAction(model.entityUuid).subscribe(onNext: { () in
// self?.loadDataWhenDraw()
// ShowMessage("领取成功")
// Network.request(target: Service.ChildOrderComplete(model.entityUuid, "drew"), success: { (json) in
//
// }, failure: { (error) in
//
// })
// }).disposed(by: self!.disposeBag)
// })
break
case
TODO_STATE
.
DREW
:
// if !PermissionsManager.saveChildPermissions() {
// ShowMessage("当前用户对此工单没有编辑权限!")
// return;
// }
let
childBillVc
=
RepairOrderEditSonOrderViewController
.
instantiateViewController
(
.
Function
)
as!
RepairOrderEditSonOrderViewController
childBillVc
.
billModel
=
BillDetailExecute
(
fromJson
:
JSON
(
model
.
toDictionary
()))
childBillVc
.
billModel
.
uuid
=
model
.
entityUuid
pushVC
(
childBillVc
)
break
case
TODO_STATE
.
PROCESSING
:
// if !PermissionsManager.childViewPermissions() {
// ShowMessage("当前用户对此工单没有查看权限!")
// return;
// }
let
childBillVc
=
RepairOrderChildBillDetailViewController
.
instantiateViewController
(
.
Function
)
as!
RepairOrderChildBillDetailViewController
childBillVc
.
billModel
=
BillDetailExecute
(
fromJson
:
JSON
(
model
.
toDictionary
()))
childBillVc
.
billModel
.
uuid
=
model
.
entityUuid
...
...
This diff is collapsed.
Click to expand it.
IFS/IFS/Main/Business/Todo/View/TodoTableViewCell.swift
View file @
e45207fc
...
...
@@ -10,7 +10,8 @@ import UIKit
class
TodoTableViewCell
:
UITableViewCell
{
/// 内容
@IBOutlet
weak
var
contentLabel
:
UILabel
!
/// 标题 + code
@IBOutlet
weak
var
titleCodeLabel
:
UILabel
!
/// 操作时间
...
...
@@ -34,6 +35,7 @@ class TodoTableViewCell: UITableViewCell {
}
operationDateLabel
.
text
=
String
(
format
:
"%@"
,
model
.
createTime
)
todoStateLabel
.
text
=
model
.
workState
.
getStateString
()
contentLabel
.
text
=
model
.
content
}
}
This diff is collapsed.
Click to expand it.
IFS/IFS/Main/Home/Controller/HomeTableViewController.swift
View file @
e45207fc
...
...
@@ -72,9 +72,9 @@ class HomeTableViewController: BaseTableViewPullController {
return
todoViewModel
.
todoResultArray
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
60
}
//
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
//
return 60
//
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
tableView
.
deselectRow
(
at
:
indexPath
,
animated
:
true
)
...
...
@@ -96,21 +96,12 @@ class HomeTableViewController: BaseTableViewPullController {
pushVC
(
lindanVC
)
break
case
TODO_STATE
.
DREW
:
// if !PermissionsManager.saveChildPermissions() {
// ShowMessage("当前用户对此工单没有编辑权限!")
// return;
// }
let
childBillVc
=
RepairOrderEditSonOrderViewController
.
instantiateViewController
(
.
Function
)
as!
RepairOrderEditSonOrderViewController
childBillVc
.
billModel
=
BillDetailExecute
(
fromJson
:
JSON
(
model
.
toDictionary
()))
childBillVc
.
billModel
.
uuid
=
model
.
entityUuid
pushVC
(
childBillVc
)
break
case
TODO_STATE
.
PROCESSING
:
// if !PermissionsManager.childViewPermissions() {
// ShowMessage("当前用户对此工单没有查看权限!")
// return;
// }
let
childBillVc
=
RepairOrderChildBillDetailViewController
.
instantiateViewController
(
.
Function
)
as!
RepairOrderChildBillDetailViewController
childBillVc
.
billModel
=
BillDetailExecute
(
fromJson
:
JSON
(
model
.
toDictionary
()))
childBillVc
.
billModel
.
uuid
=
model
.
entityUuid
...
...
This diff is collapsed.
Click to expand it.
IFS/IFS/Main/Home/View/HomeTableViewCell.swift
View file @
e45207fc
...
...
@@ -9,7 +9,8 @@
import
UIKit
class
HomeTableViewCell
:
UITableViewCell
{
/** 内容 */
@IBOutlet
weak
var
contentLabel
:
UILabel
!
/// 部门(代码)
@IBOutlet
weak
var
departmentLabel
:
UILabel
!
/// 单据时间
...
...
@@ -28,6 +29,7 @@ class HomeTableViewCell: UITableViewCell {
departmentLabel
.
text
=
model
.
dept
.
name
+
titleString
}
orderTimeLabel
.
text
=
String
(
format
:
"创建时间:%@"
,
model
.
createTime
)
contentLabel
.
text
=
model
.
content
}
}
This diff is collapsed.
Click to expand it.
IFS/IFS/Main/Storyboards/Function.storyboard
View file @
e45207fc
This diff is collapsed.
Click to expand it.
IFS/IFS/Main/Storyboards/Home.storyboard
View file @
e45207fc
This diff is collapsed.
Click to expand it.
IFS/IFS/Resource/Info.plist
View file @
e45207fc
...
...
@@ -17,9 +17,9 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.1.
7
<
/string
>
<
string
>
1.1.
9
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.1.
7
<
/string
>
<
string
>
1.1.
9
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
...
...
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