Commit d02e4496 authored by lujunye's avatar lujunye

调整时间显示,调整不输入数量上传为0bug

parent 1cc019bf
......@@ -213,10 +213,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
}
self.btmLbl.text = "提交申请"
// if self.authArr.contains("64"){
// self.isGm = true
// self.btmLbl.text = "直接出库"
// }
if self.authArr.contains("64"){
self.isGm = true
self.btmLbl.text = "直接出库"
}
self.listView.reloadData()
}) { (error) in
......@@ -271,6 +271,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
cell.ckCountTf.text = "\(data.chuKuLiang!)"
}else{
cell.ckCountTf.text = "1"
data.chuKuLiang = 1
}
return cell
......
......@@ -529,8 +529,9 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
}
cell.rkzj.text = "保质期:" + "\(model.shelf_life!)天"
let month = model.shelf_life!/30
let day = model.shelf_life!%30
if month > 0 {
cell.rkzj.text = "保质期:" + "\(month)月"
cell.rkzj.text = "保质期:" + "\(month)月" + "\(day)天"
}
cell.baozhiQ.text = "报告:无"
......
......@@ -2,6 +2,7 @@
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
......
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