Commit c1961cd9 authored by lujunye's avatar lujunye

日期显示修正

parent 745c6b0c
...@@ -477,8 +477,9 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -477,8 +477,9 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
cell.rkzj.text = "入库总价:¥" + data.subtotal! cell.rkzj.text = "入库总价:¥" + data.subtotal!
cell.baozhiQ.text = "保质期:" + "\(data.shelf_life!)天" cell.baozhiQ.text = "保质期:" + "\(data.shelf_life!)天"
let month = data.shelf_life!/30 let month = data.shelf_life!/30
let day = data.shelf_life! % 30
if month > 0 { if month > 0 {
cell.baozhiQ.text = "保质期:" + "\(month)月" cell.baozhiQ.text = "保质期:" + "\(month)月" + "\(day)天"
} }
cell.baogao.text = "报告:无" cell.baogao.text = "报告:无"
......
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