Commit d02e4496 authored by lujunye's avatar lujunye

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

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