Commit d576a5e2 authored by lujunye's avatar lujunye

完善出入库显示

parent 7374c551
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<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.2" 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"/> <deployment identifier="iOS"/>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<resources> <resources>
<image name="jinru" width="13" height="23"/> <image name="jinru" width="13" height="23"/>
<namedColor name="个人中心灰色字体"> <namedColor name="个人中心灰色字体">
<color red="0.3919999897480011" green="0.3919999897480011" blue="0.3919999897480011" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.38823529411764707" green="0.38823529411764707" blue="0.38823529411764707" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<namedColor name="标题字颜色"> <namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
...@@ -99,7 +99,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -99,7 +99,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
let dict = ["user_token":UserToken as Any,"io_id":model?.io_id as Any] let dict = ["user_token":UserToken as Any,"io_id":model?.io_id as Any]
let strs = model!.io_type_cn?.components(separatedBy: ":") let strs = model!.io_type_cn?.components(separatedBy: ":")
let str = strs?.last! as! String let str = strs?.last! as! String
...@@ -394,7 +394,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -394,7 +394,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
} }
}else{ }else{
if w_id != nil { if w_id != nil {
WarehouseDetail(["user_token":UserToken as Any,"w_id":w_id as Any], success: { (data) in WarehouseDetail(["user_token":UserToken as Any,"w_id":w_id as Any], success: { (data) in
let mo = data as! ShopWarehouseDetailModel let mo = data as! ShopWarehouseDetailModel
...@@ -474,7 +474,19 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -474,7 +474,19 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
if data.goods_spec!.count > 0{ if data.goods_spec!.count > 0{
cell.guiGe.text = data.goods_spec cell.guiGe.text = data.goods_spec
} }
cell.rukuShu.text = "入库数量:" + "\(data.number!)"
if navbar.title == "商品入库详情" {
cell.rukuShu.text = "入库数量:" + "\(data.number!)"
cell.rkjg.text = "入库价格:¥" + data.amount!
cell.rkzj.text = "入库总价:¥" + data.subtotal!
}else{
cell.rukuShu.text = "出库数量:" + "\(data.number!)"
cell.rkjg.text = "仓库名:" + data.w_name!
cell.rkzj.text = "库位名:" + data.p_name!
}
cell.scrq.text = "生产日期:---" cell.scrq.text = "生产日期:---"
if data.production_data! != 0 { if data.production_data! != 0 {
cell.scrq.text = "生产日期:" + dayByDouble(sender: data.production_data!) cell.scrq.text = "生产日期:" + dayByDouble(sender: data.production_data!)
...@@ -483,8 +495,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -483,8 +495,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
if data.valid_date! != 0 { if data.valid_date! != 0 {
cell.gqrq.text = "过期日期:" + dayByDouble(sender:data.valid_date!) cell.gqrq.text = "过期日期:" + dayByDouble(sender:data.valid_date!)
} }
cell.rkjg.text = "入库价格:¥" + data.amount!
cell.rkzj.text = "入库总价:¥" + data.subtotal!
cell.baozhiQ.text = "保质期:---" cell.baozhiQ.text = "保质期:---"
if data.shelf_life != 0 { if data.shelf_life != 0 {
cell.baozhiQ.text = "保质期:" + "\(data.shelf_life!)天" cell.baozhiQ.text = "保质期:" + "\(data.shelf_life!)天"
...@@ -521,9 +532,12 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -521,9 +532,12 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
if model.valid_date! != 0 { if model.valid_date! != 0 {
cell.gqrq.text = "过期日期:" + dayByDouble(sender:model.valid_date!) cell.gqrq.text = "过期日期:" + dayByDouble(sender:model.valid_date!)
} }
cell.rukuShu.text = "入库数量:" + "\(model.number!)" cell.rukuShu.text = "入库数量:" + "\(model.number!)"
cell.rkjg.text = "入库价格:¥" + "\(model.amount!)" cell.rkjg.text = "入库价格:¥" + "\(model.amount!)"
cell.rkzj.text = "入库总价:¥" + "\(model.subtotal!)" cell.rkzj.text = "入库总价:¥" + "\(model.subtotal!)"
cell.baozhiQ.text = "保质期:---" cell.baozhiQ.text = "保质期:---"
if model.shelf_life != 0 { if model.shelf_life != 0 {
cell.baozhiQ.text = "保质期:" + "\(model.shelf_life!)天" cell.baozhiQ.text = "保质期:" + "\(model.shelf_life!)天"
......
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