Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
IFS-iOS
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-iOS
Commits
5ac79384
Commit
5ac79384
authored
Apr 02, 2018
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化子工单费用信息,借用信息计算
parent
b6508b0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ChildBillDetailCostViewController.swift
...rOrder/Controller/ChildBillDetailCostViewController.swift
+3
-2
CostOrBorrowTableViewCell.swift
...Business/RepairOrder/View/CostOrBorrowTableViewCell.swift
+1
-2
No files found.
IFS/IFS/Main/Business/RepairOrder/Controller/ChildBillDetailCostViewController.swift
View file @
5ac79384
...
...
@@ -33,10 +33,11 @@ class ChildBillDetailCostViewController: BaseTableViewController {
// MARK: - 设置数据源
fileprivate
func
setupDataAction
()
{
let
useQty
=
costModel
.
getQty
-
costModel
.
backQty
logisticsLabel
.
text
=
costModel
.
materiel
.
name
priceLabel
.
text
=
String
(
format
:
"%.2f"
,
costModel
.
unitPrice
)
countLabel
.
text
=
String
(
format
:
"%.2f"
,
costModel
.
useQty
)
totalPriceLabel
.
text
=
String
(
format
:
"%.2f"
,
costModel
.
unitPrice
*
costModel
.
useQty
)
countLabel
.
text
=
String
(
format
:
"%.2f"
,
useQty
)
totalPriceLabel
.
text
=
String
(
format
:
"%.2f"
,
costModel
.
unitPrice
*
useQty
)
extractCountLabel
.
text
=
String
(
format
:
"%.2f"
,
costModel
.
getQty
)
returnCountLabel
.
text
=
String
(
format
:
"%.2f"
,
costModel
.
backQty
)
}
...
...
IFS/IFS/Main/Business/RepairOrder/View/CostOrBorrowTableViewCell.swift
View file @
5ac79384
...
...
@@ -29,8 +29,7 @@ class CostOrBorrowTableViewCell: UITableViewCell {
if
model
.
sourceType
==
CHILDORDERCOST_TYPE
.
BORROW
.
rawValue
{
detailLabel
.
text
=
model
.
outputbillno
}
else
{
detailLabel
.
text
=
String
(
format
:
"%.2f"
,
model
.
unitPrice
*
model
.
useQty
)
detailLabel
.
text
=
String
(
format
:
"%.2f"
,
model
.
unitPrice
*
(
model
.
getQty
-
model
.
backQty
)
)
}
}
}
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