Commit 6d6a7d7d authored by lujunye's avatar lujunye

修复已知入库详情显示bug

parent 139be52b
...@@ -69,6 +69,10 @@ class InGoodsDetailDataGoodsResModel: Mappable { ...@@ -69,6 +69,10 @@ class InGoodsDetailDataGoodsResModel: Mappable {
var report_sn : String? var report_sn : String?
var file_url : String? var file_url : String?
var batch_id:Int?
var ven_name:String?
var ven_id:Int?
required init?( map: Map) { required init?( map: Map) {
} }
...@@ -89,6 +93,10 @@ class InGoodsDetailDataGoodsResModel: Mappable { ...@@ -89,6 +93,10 @@ class InGoodsDetailDataGoodsResModel: Mappable {
inventory <- map["inventory"] inventory <- map["inventory"]
report_sn <- map["report_sn"] report_sn <- map["report_sn"]
file_url <- map["file_url"] file_url <- map["file_url"]
ven_name <- map["ven_name"]
batch_id <- map["batch_id"]
ven_id <- map["ven_id"]
} }
} }
...@@ -10,6 +10,7 @@ import UIKit ...@@ -10,6 +10,7 @@ import UIKit
protocol GYSListViewControllerDelegate { protocol GYSListViewControllerDelegate {
func GYSListViewControllerGetGYS(sender:VendorListDataModel) func GYSListViewControllerGetGYS(sender:VendorListDataModel)
} }
class GYSListViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate,UISearchBarDelegate,SearchBarViewDelegate,GYSGLViewControllerDelegate{ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate,UISearchBarDelegate,SearchBarViewDelegate,GYSGLViewControllerDelegate{
func GYSGLViewControllerFinish() { func GYSGLViewControllerFinish() {
listView.mj_header?.beginRefreshing() listView.mj_header?.beginRefreshing()
......
...@@ -464,6 +464,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -464,6 +464,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
return cell return cell
} }
print("abc=== ",model?.io_type,model?.status)
if model?.io_type == 1 || (model?.status!)! > 1 { //入库 if model?.io_type == 1 || (model?.status!)! > 1 { //入库
let cell = tableView.dequeueReusableCell(withIdentifier: "NewRKCell") as! NewRKCell let cell = tableView.dequeueReusableCell(withIdentifier: "NewRKCell") as! NewRKCell
...@@ -570,6 +571,15 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -570,6 +571,15 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
cell.baogao.text = "报告:" + "\(model.report_sn!)" cell.baogao.text = "报告:" + "\(model.report_sn!)"
} }
cell.pi_ci_lbl.text = "商品批次:无"
if model.batch_id != nil {
cell.pi_ci_lbl.text = "商品批次:" + "\(model.batch_id!)"
}
cell.gys_lbl.text = "供应商:无"
if model.ven_name != nil {
cell.gys_lbl.text = "供应商:" + "\(model.ven_name!)"
}
return cell return cell
} }
...@@ -618,8 +628,15 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource, ...@@ -618,8 +628,15 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
} }
cell.baogao.isHidden = true cell.baogao.isHidden = true
cell.pi_ci_lbl.text = "商品批次:无"
if model.batch_id != nil {
cell.pi_ci_lbl.text = "商品批次:" + "\(model.batch_id!)"
}
cell.gys_lbl.text = "供应商:无"
if model.ven_name != nil {
cell.gys_lbl.text = "供应商:" + "\(model.ven_name!)"
}
return cell return cell
} }
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<constraint firstAttribute="height" constant="1" id="kGX-Nr-KTJ"/> <constraint firstAttribute="height" constant="1" id="kGX-Nr-KTJ"/>
</constraints> </constraints>
</view> </view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QfU-XN-RsA"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品批次:无" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QfU-XN-RsA">
<rect key="frame" x="15" y="266" width="315" height="18.5"/> <rect key="frame" x="15" y="266" width="315" height="18.5"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="18.5" id="Cka-T1-bE3"/> <constraint firstAttribute="height" constant="18.5" id="Cka-T1-bE3"/>
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<constraint firstAttribute="height" constant="1" id="vQc-bh-ein"/> <constraint firstAttribute="height" constant="1" id="vQc-bh-ein"/>
</constraints> </constraints>
</view> </view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7YJ-pG-OWQ"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="供应商:无" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7YJ-pG-OWQ">
<rect key="frame" x="15" y="315.5" width="315" height="18.5"/> <rect key="frame" x="15" y="315.5" width="315" height="18.5"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="18.5" id="7KK-29-r33"/> <constraint firstAttribute="height" constant="18.5" id="7KK-29-r33"/>
......
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