Commit 1b4e56e8 authored by lujunye's avatar lujunye

修改溯源新样式完成

parent 6d6a7d7d
......@@ -236,6 +236,8 @@
E08A7AE124652E2C00F934F2 /* BingDingKeHuViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E08A7ADF24652E2C00F934F2 /* BingDingKeHuViewController.xib */; };
E08B0674244A98B2001D2E01 /* WareHouseSpCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E08B0672244A98B2001D2E01 /* WareHouseSpCell.swift */; };
E08B0675244A98B2001D2E01 /* WareHouseSpCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E08B0673244A98B2001D2E01 /* WareHouseSpCell.xib */; };
E09330E125E3626F007A346A /* S_Y_View_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09330DF25E3626F007A346A /* S_Y_View_Cell.swift */; };
E09330E225E3626F007A346A /* S_Y_View_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E09330E025E3626F007A346A /* S_Y_View_Cell.xib */; };
E095C42624874BDA00922571 /* CKNonGmCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E095C42424874BDA00922571 /* CKNonGmCell.swift */; };
E095C42724874BDA00922571 /* CKNonGmCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E095C42524874BDA00922571 /* CKNonGmCell.xib */; };
E095C42A24874E6100922571 /* CKGmCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E095C42824874E6100922571 /* CKGmCell.swift */; };
......@@ -963,6 +965,8 @@
E08A7ADF24652E2C00F934F2 /* BingDingKeHuViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = BingDingKeHuViewController.xib; sourceTree = "<group>"; };
E08B0672244A98B2001D2E01 /* WareHouseSpCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WareHouseSpCell.swift; sourceTree = "<group>"; };
E08B0673244A98B2001D2E01 /* WareHouseSpCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WareHouseSpCell.xib; sourceTree = "<group>"; };
E09330DF25E3626F007A346A /* S_Y_View_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = S_Y_View_Cell.swift; sourceTree = "<group>"; };
E09330E025E3626F007A346A /* S_Y_View_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S_Y_View_Cell.xib; sourceTree = "<group>"; };
E095C42424874BDA00922571 /* CKNonGmCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CKNonGmCell.swift; sourceTree = "<group>"; };
E095C42524874BDA00922571 /* CKNonGmCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CKNonGmCell.xib; sourceTree = "<group>"; };
E095C42824874E6100922571 /* CKGmCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CKGmCell.swift; sourceTree = "<group>"; };
......@@ -2648,6 +2652,8 @@
E0974D5D25C12E8D00E3C86B /* two_title_cell.xib */,
E0974D6325C12FAA00E3C86B /* scv_cell.swift */,
E0974D6425C12FAA00E3C86B /* scv_cell.xib */,
E09330DF25E3626F007A346A /* S_Y_View_Cell.swift */,
E09330E025E3626F007A346A /* S_Y_View_Cell.xib */,
);
path = cell;
sourceTree = "<group>";
......@@ -3641,6 +3647,7 @@
E01E5472254FABFD00A2620C /* GYS_FX_ProductCellTableViewCell.xib in Resources */,
F9023F63244999F500DD5A63 /* WarehoseMangementCell.xib in Resources */,
E051EBD824A1F0ED00892DA9 /* CGDCell.xib in Resources */,
E09330E225E3626F007A346A /* S_Y_View_Cell.xib in Resources */,
E01E5485254FD34C00A2620C /* GYS_GuanLi_Cell.xib in Resources */,
E077DC6B25512E94000B0DA5 /* FX_Product_GuanLiVC.xib in Resources */,
F96E48A024CA7930000AB8D4 /* WaybillDetailViewController.xib in Resources */,
......@@ -4055,6 +4062,7 @@
E0BE8A9C245A9E5900E80134 /* YingFuZhangKuanXQCell.swift in Sources */,
F956D59D246A2D9C003FF510 /* LMNTextStorage.m in Sources */,
E02C882A2456B4BA00925766 /* WLGZCell.swift in Sources */,
E09330E125E3626F007A346A /* S_Y_View_Cell.swift in Sources */,
F950FDE824518CD800C40530 /* TimeSelectView.swift in Sources */,
F933F6C72452C68B00189561 /* PKHUDWideBaseView.swift in Sources */,
F9A0E1DF246D1B1E00D7F26F /* GetGoodsInfoModel.swift in Sources */,
......
......@@ -319,7 +319,7 @@ class OrderDetailGoodsModel: Mappable {
var is_edit : Int? = 0 //订单商品是否有修改,1是0非--前端自主添加的字段
var commission_val:String? //这个商品的总佣金
var remark:String?//商品备注
var goods_source:OrderDetailGoodsSourceModel?//溯源信息
var goods_source:Array<OrderDetailGoodsSourceModel>?//溯源信息
required init?( map: Map) {
}
......
......@@ -637,7 +637,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
if model.ven_name != nil {
cell.gys_lbl.text = "供应商:" + "\(model.ven_name!)"
}
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "NewCKCell") as! NewCKCell
......
......@@ -9,19 +9,16 @@
import UIKit
class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,UITableViewDataSource, DaiKeXiaDanGouWuCellDelegate, S_Y_View_Delegate{
func S_Y_View_Check_Detail(view: S_Y_View) {
func S_Y_View_Check_Detail(data: OrderDetailGoodsSourceModel) {
print("查看溯源")
if view.data == nil {
return
}
let browser = JXPhotoBrowser()
browser.numberOfItems = {
(view.data?.report_picture!.count)!
(data.report_picture!.count)
}
browser.pageIndex = 0
browser.reloadCellAtIndex = { context in
let browserCell = context.cell as? JXPhotoBrowserImageCell
let url = URL(string:SERVERCE_ImageHost + (view.data?.report_picture![context.index])!)
let url = URL(string:SERVERCE_ImageHost + (data.report_picture![context.index]))
browserCell?.imageView.sd_setImage(with: url, placeholderImage: nil, options: [], completed: { (_, _, _, _) in
browserCell?.setNeedsLayout()
})
......@@ -29,7 +26,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
browser.show()
}
func DaiKeXiaDanGouWuCellDelAction(cell: DaiKeXiaDanGouWuCell) {
//此处无用
......@@ -42,16 +39,16 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
func DaiKeXiaDanGouWuCell_check(cell: DaiKeXiaDanGouWuCell) {
//查溯源
print("check S_Y")
let vc = S_Y_View(frame: self.view.bounds)
vc.delegate = self
if (dataMdoel?.order_goods!.count)! > 0 {
let vc = S_Y_View(frame: self.view.bounds)
vc.delegate = self
let target = dataMdoel?.order_goods![cell.tag]
vc.data = target?.goods_source
self.view.addSubview(vc)
}
self.view.addSubview(vc)
}
let goodsTitleArr = ["商品合计"]
let fenxiaoTitleArr = ["分销角色","结算方式","佣金方式","佣金结算时间","佣金分销结算"]
let orderTitleArr = ["订单编号","下单时间","订单来源","支付方式","支付状态","买家留言","订单备注"]
......@@ -98,7 +95,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
self.listView.isHidden = true
}
}
}
func numberOfSections(in tableView: UITableView) -> Int {
if self.dataMdoel == nil {
......@@ -126,7 +123,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
switch indexPath.section {
case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: "GLKHCell") as! GLKHCell
......@@ -145,7 +142,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
cell.imgView?.sd_setImage(with: URL(string: SERVERCE_ImageHost + (rowModel?.goods_thumb)!))
if rowModel?.goods_attr != nil {
cell.detailLbl.text = "规格:" + (rowModel?.goods_attr)!
}else{
cell.detailLbl.text = "规格:-"
}
......@@ -162,7 +159,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
case 2:
cell.nameLbl.text = goodsTitleArr[indexPath.row]
cell.textTF.text = "¥" + (self.dataMdoel?.order_res!.goods_amount)!
case 3:
switch indexPath.row {
case 0:
......@@ -178,10 +175,10 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
case 1:
if self.dataMdoel?.dbt_info?.dbt_type == 1 {
cell.textTF.text = "人工结算"
}else if self.dataMdoel?.dbt_info?.dbt_type == 2{
cell.textTF.text = "自动结算"
}else{
cell.textTF.text = "-"
}
......@@ -189,10 +186,10 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
if self.dataMdoel?.dbt_info?.commission_type != nil{
if (self.dataMdoel?.dbt_info?.commission_type!.count)! > 0{
cell.textTF.text = self.dataMdoel?.dbt_info?.commission_type
}else{
cell.textTF.text = "-"
}
}else{
cell.textTF.text = "-"
......@@ -201,15 +198,15 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
if self.dataMdoel?.dbt_info?.commission_time != nil{
if (self.dataMdoel?.dbt_info?.commission_time!.count)! > 0{
cell.textTF.text = self.dataMdoel?.dbt_info?.commission_time
}else{
cell.textTF.text = "-"
}
}else{
cell.textTF.text = "-"
}
case 4:
cell.textTF.text = "¥" + (self.dataMdoel?.order_res!.sum_commission_val)!
default:
......@@ -217,7 +214,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
break
}
cell.nameLbl.text = fenxiaoTitleArr[indexPath.row]
case 4:
cell.nameLbl.text = orderTitleArr[indexPath.row]
switch indexPath.row {
......@@ -245,7 +242,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
cell.textTF.text = ""
break
}
default:
break
}
......@@ -260,7 +257,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if section == 3 || section == 4 {
return 39
}
return 0.5
}
......@@ -282,7 +279,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
view.addSubview(view1)
return view
default:
break
}
......@@ -308,6 +305,6 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
return 10
}
return 0.5
}
}
......@@ -8,36 +8,47 @@
import UIKit
protocol S_Y_View_Delegate {
func S_Y_View_Check_Detail(view:S_Y_View)
func S_Y_View_Check_Detail(data:OrderDetailGoodsSourceModel)
}
class S_Y_View: UIView {
var contentView:UIView!
var delegate:S_Y_View_Delegate?
var data:OrderDetailGoodsSourceModel? {
class S_Y_View: UIView ,UITableViewDelegate,UITableViewDataSource,S_Y_View_Cell_delegate{
func S_Y_View_Cell_btn_click(cell: S_Y_View_Cell) {
if cell.data == nil {
return
}
delegate?.S_Y_View_Check_Detail(data: cell.data!)
}
var data:Array<OrderDetailGoodsSourceModel>? {
didSet{
if data != nil {
bao_zhi_qi_lbl.text = data?.valid_date
sheng_chan_ri_qi_lbl.text = data?.production_data
chan_di_lbl.text = data?.product_origin
ru_ku_time_lbl.text = data?.add_time
pi_ci_number_lbl.text = StringByInt(number:(data?.batch_id)!)
gys_name_lbl.text = data?.ven_name
check_img.sd_setImage(with:URL(string:SERVERCE_ImageHost + ((data?.report_picture?.first)!)!))
if data!.count > 1 {
viewHiehgt.constant = 425
}
listView.reloadData()
}
}
}
@IBOutlet weak var bao_zhi_qi_lbl: UILabel!
@IBOutlet weak var sheng_chan_ri_qi_lbl: UILabel!
@IBOutlet weak var chan_di_lbl: UILabel!
@IBOutlet weak var ru_ku_time_lbl: UILabel!
@IBOutlet weak var pi_ci_number_lbl: UILabel!
@IBOutlet weak var gys_name_lbl: UILabel!
@IBAction func check_detail(_ sender: UIButton) {
delegate?.S_Y_View_Check_Detail(view:self)
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return data!.count
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 309
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "S_Y_View_Cell") as! S_Y_View_Cell
cell.tag = indexPath.row
cell.data = data![indexPath.row]
cell.delegate = self
return cell
}
@IBOutlet weak var check_img: UIImageView!
@IBOutlet weak var viewHiehgt: NSLayoutConstraint!
var contentView:UIView!
var delegate:S_Y_View_Delegate?
@IBOutlet weak var listView: UITableView!
@IBAction func close_action(_ sender: UIButton) {
self.removeFromSuperview()
}
......@@ -49,12 +60,8 @@ class S_Y_View: UIView {
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
bao_zhi_qi_lbl.text = "-"
sheng_chan_ri_qi_lbl.text = "-"
chan_di_lbl.text = "-"
ru_ku_time_lbl.text = "-"
pi_ci_number_lbl.text = "-"
gys_name_lbl.text = "-"
listView.register(UINib(nibName: "S_Y_View_Cell", bundle: nil), forCellReuseIdentifier: "S_Y_View_Cell")
listView.separatorStyle = .none
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
......@@ -64,12 +71,14 @@ class S_Y_View: UIView {
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
bao_zhi_qi_lbl.text = "-"
sheng_chan_ri_qi_lbl.text = "-"
chan_di_lbl.text = "-"
ru_ku_time_lbl.text = "-"
pi_ci_number_lbl.text = "-"
gys_name_lbl.text = "-"
listView.register(UINib(nibName: "S_Y_View_Cell", bundle: nil), forCellReuseIdentifier: "S_Y_View_Cell")
listView.separatorStyle = .none
// bao_zhi_qi_lbl.text = "-"
// sheng_chan_ri_qi_lbl.text = "-"
// chan_di_lbl.text = "-"
// ru_ku_time_lbl.text = "-"
// pi_ci_number_lbl.text = "-"
// gys_name_lbl.text = "-"
}
//加载xib
func loadViewFromNib() -> UIView {
......
......@@ -12,13 +12,8 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="S_Y_View" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="bao_zhi_qi_lbl" destination="oK3-v4-fM5" id="XCf-Xz-eP1"/>
<outlet property="chan_di_lbl" destination="YhV-Hc-qgt" id="RIa-9z-Oz7"/>
<outlet property="check_img" destination="g7c-Hg-37A" id="efP-H9-mCQ"/>
<outlet property="gys_name_lbl" destination="S0r-Yy-7uV" id="eYU-j8-rPV"/>
<outlet property="pi_ci_number_lbl" destination="Nhb-9N-Ghw" id="zYt-JF-NqD"/>
<outlet property="ru_ku_time_lbl" destination="2hu-oz-DAD" id="M4i-sj-7Ip"/>
<outlet property="sheng_chan_ri_qi_lbl" destination="vGw-L2-745" id="lUu-YB-hqP"/>
<outlet property="listView" destination="Ago-gJ-gI4" id="d7i-56-dUj"/>
<outlet property="viewHiehgt" destination="cEM-sN-GiV" id="0Lb-Ej-H36"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
......@@ -69,143 +64,32 @@
<action selector="close_action:" destination="-1" eventType="touchUpInside" id="kBA-v9-GWL"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="所属供应商:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KoV-8K-ohF">
<rect key="frame" x="15" y="54" width="68.5" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="格利批次号:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V04-rj-IfP">
<rect key="frame" x="15" y="87.5" width="69" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="入库时间:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gOe-TM-QuF">
<rect key="frame" x="15" y="121.5" width="56" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="产品产地:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dGh-Dd-DM6">
<rect key="frame" x="15" y="155.5" width="56" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品生产日期:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PCS-cE-KjY">
<rect key="frame" x="15" y="189.5" width="82" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品保质期:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PZb-IT-gNN">
<rect key="frame" x="15" y="223.5" width="69" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S0r-Yy-7uV">
<rect key="frame" x="286" y="54" width="33" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nhb-9N-Ghw">
<rect key="frame" x="286" y="88" width="33" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2hu-oz-DAD">
<rect key="frame" x="286" y="122" width="33" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YhV-Hc-qgt">
<rect key="frame" x="286" y="156" width="33" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vGw-L2-745">
<rect key="frame" x="286" y="190" width="33" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oK3-v4-fM5">
<rect key="frame" x="286" y="224" width="33" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="检查报告:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FPA-Fy-Ayh">
<rect key="frame" x="15" y="284" width="56" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="g7c-Hg-37A">
<rect key="frame" x="114" y="256.5" width="106" height="74.5"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6Md-jt-BE3">
<rect key="frame" x="114" y="256.5" width="106" height="74.5"/>
<constraints>
<constraint firstAttribute="width" constant="106" id="GgQ-KH-ldk"/>
<constraint firstAttribute="height" constant="74.5" id="bY6-ej-DjZ"/>
</constraints>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Ago-gJ-gI4">
<rect key="frame" x="0.0" y="39" width="334" height="307"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<connections>
<action selector="check_detail:" destination="-1" eventType="touchUpInside" id="N6h-jL-QlK"/>
<outlet property="dataSource" destination="-1" id="Z1e-uC-cfh"/>
<outlet property="delegate" destination="-1" id="q0P-Br-sur"/>
</connections>
</button>
</tableView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="g7c-Hg-37A" firstAttribute="centerX" secondItem="6Md-jt-BE3" secondAttribute="centerX" id="24H-sE-EF2"/>
<constraint firstItem="PZb-IT-gNN" firstAttribute="top" secondItem="PCS-cE-KjY" secondAttribute="bottom" constant="15" id="4D6-EQ-70K"/>
<constraint firstItem="g7c-Hg-37A" firstAttribute="centerY" secondItem="6Md-jt-BE3" secondAttribute="centerY" id="4a0-2Q-Wm3"/>
<constraint firstAttribute="trailing" secondItem="oK3-v4-fM5" secondAttribute="trailing" constant="15" id="5ql-c1-d6s"/>
<constraint firstItem="PCS-cE-KjY" firstAttribute="top" secondItem="dGh-Dd-DM6" secondAttribute="bottom" constant="15" id="7Vo-HF-vox"/>
<constraint firstItem="6Md-jt-BE3" firstAttribute="centerX" secondItem="91i-Pc-519" secondAttribute="centerX" id="9U4-ou-Q3Y"/>
<constraint firstItem="PI4-cK-Eme" firstAttribute="top" secondItem="91i-Pc-519" secondAttribute="top" id="AFG-TQ-ldH"/>
<constraint firstItem="gOe-TM-QuF" firstAttribute="top" secondItem="V04-rj-IfP" secondAttribute="bottom" constant="15" id="C9C-Ir-lRb"/>
<constraint firstAttribute="trailing" secondItem="Fpi-Qx-vzu" secondAttribute="trailing" constant="15" id="EgP-32-mAm"/>
<constraint firstItem="oK3-v4-fM5" firstAttribute="top" secondItem="vGw-L2-745" secondAttribute="bottom" constant="15" id="FLh-tt-xgW"/>
<constraint firstItem="g7c-Hg-37A" firstAttribute="height" secondItem="6Md-jt-BE3" secondAttribute="height" id="GNH-PL-jsP"/>
<constraint firstItem="21E-nO-je8" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" id="HkZ-zw-Tst"/>
<constraint firstItem="dGh-Dd-DM6" firstAttribute="top" secondItem="gOe-TM-QuF" secondAttribute="bottom" constant="15" id="JDv-3E-8aE"/>
<constraint firstItem="Nhb-9N-Ghw" firstAttribute="top" secondItem="S0r-Yy-7uV" secondAttribute="bottom" constant="15" id="K1L-Fy-sxo"/>
<constraint firstAttribute="bottom" secondItem="6Md-jt-BE3" secondAttribute="bottom" constant="15" id="Kzp-up-x5b"/>
<constraint firstAttribute="trailing" secondItem="2hu-oz-DAD" secondAttribute="trailing" constant="15" id="P0v-LW-HVp"/>
<constraint firstAttribute="trailing" secondItem="Ago-gJ-gI4" secondAttribute="trailing" id="Khz-hH-MEv"/>
<constraint firstAttribute="trailing" secondItem="21E-nO-je8" secondAttribute="trailing" id="Qac-Yf-vxJ"/>
<constraint firstItem="KoV-8K-ohF" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="SKe-Do-SSS"/>
<constraint firstItem="S0r-Yy-7uV" firstAttribute="top" secondItem="21E-nO-je8" secondAttribute="bottom" constant="15" id="Uac-jq-Ioj"/>
<constraint firstAttribute="bottom" secondItem="Ago-gJ-gI4" secondAttribute="bottom" id="S25-KE-4hN"/>
<constraint firstItem="Fpi-Qx-vzu" firstAttribute="top" secondItem="91i-Pc-519" secondAttribute="top" constant="15" id="V0K-QY-yvT"/>
<constraint firstItem="g7c-Hg-37A" firstAttribute="width" secondItem="6Md-jt-BE3" secondAttribute="width" id="V4b-Vz-6dD"/>
<constraint firstAttribute="trailing" secondItem="PI4-cK-Eme" secondAttribute="trailing" id="WZM-NR-zS0"/>
<constraint firstAttribute="trailing" secondItem="vGw-L2-745" secondAttribute="trailing" constant="15" id="YM6-hE-vF8"/>
<constraint firstItem="PZb-IT-gNN" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="YzV-KN-5dq"/>
<constraint firstAttribute="trailing" secondItem="YhV-Hc-qgt" secondAttribute="trailing" constant="15" id="ZsQ-dt-2NU"/>
<constraint firstAttribute="trailing" secondItem="S0r-Yy-7uV" secondAttribute="trailing" constant="15" id="c6O-8J-a1d"/>
<constraint firstAttribute="height" constant="346" id="cEM-sN-GiV"/>
<constraint firstItem="gOe-TM-QuF" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="deS-ZJ-dUn"/>
<constraint firstItem="Ago-gJ-gI4" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" id="cRb-2h-bWJ"/>
<constraint firstItem="21E-nO-je8" firstAttribute="top" secondItem="PI4-cK-Eme" secondAttribute="bottom" id="fRh-ea-7RU"/>
<constraint firstAttribute="trailing" secondItem="nZl-Ot-P0e" secondAttribute="trailing" id="fiE-KK-cbk"/>
<constraint firstItem="vGw-L2-745" firstAttribute="top" secondItem="YhV-Hc-qgt" secondAttribute="bottom" constant="15" id="h4V-qO-DzY"/>
<constraint firstItem="KoV-8K-ohF" firstAttribute="top" secondItem="21E-nO-je8" secondAttribute="bottom" constant="15" id="hbf-tO-paA"/>
<constraint firstItem="2hu-oz-DAD" firstAttribute="top" secondItem="Nhb-9N-Ghw" secondAttribute="bottom" constant="15" id="k3X-KS-Eic"/>
<constraint firstAttribute="trailing" secondItem="Nhb-9N-Ghw" secondAttribute="trailing" constant="15" id="krH-j3-Chn"/>
<constraint firstItem="dGh-Dd-DM6" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="lFt-fn-OP8"/>
<constraint firstItem="nZl-Ot-P0e" firstAttribute="top" secondItem="91i-Pc-519" secondAttribute="top" id="nZk-Xs-6ff"/>
<constraint firstAttribute="bottom" secondItem="FPA-Fy-Ayh" secondAttribute="bottom" constant="43" id="ndu-w5-nsI"/>
<constraint firstItem="V04-rj-IfP" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="oKu-3r-IhN"/>
<constraint firstItem="PI4-cK-Eme" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" id="qDY-tI-wwa"/>
<constraint firstItem="YhV-Hc-qgt" firstAttribute="top" secondItem="2hu-oz-DAD" secondAttribute="bottom" constant="15" id="qkQ-5E-9zs"/>
<constraint firstItem="PCS-cE-KjY" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="qo4-Hc-6jJ"/>
<constraint firstItem="FPA-Fy-Ayh" firstAttribute="leading" secondItem="91i-Pc-519" secondAttribute="leading" constant="15" id="sWS-QF-O6v"/>
<constraint firstItem="V04-rj-IfP" firstAttribute="top" secondItem="KoV-8K-ohF" secondAttribute="bottom" constant="15" id="uSN-hT-RHE"/>
<constraint firstItem="Ago-gJ-gI4" firstAttribute="top" secondItem="21E-nO-je8" secondAttribute="bottom" id="rjB-nd-TCi"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
......@@ -237,9 +121,6 @@
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
......
//
// S_Y_View_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/2/22.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol S_Y_View_Cell_delegate {
func S_Y_View_Cell_btn_click(cell:S_Y_View_Cell)
}
class S_Y_View_Cell: UITableViewCell {
@IBOutlet weak var gys_name_lbl: UILabel!
@IBOutlet weak var pi_ci_number_lbl: UILabel!
@IBOutlet weak var ru_ku_time_lbl: UILabel!
@IBOutlet weak var chan_di_lbl: UILabel!
@IBOutlet weak var sheng_chan_ri_qi_lbl: UILabel!
@IBOutlet weak var img_btn: UIButton!
@IBOutlet weak var img: UIImageView!
@IBOutlet weak var bao_zhi_qi_lbl: UILabel!
var delegate:S_Y_View_Cell_delegate?
@IBAction func img_btn_click(_ sender: UIButton) {
delegate?.S_Y_View_Cell_btn_click(cell: self)
}
var data:OrderDetailGoodsSourceModel? {
didSet{
if data != nil {
bao_zhi_qi_lbl.text = data?.valid_date
sheng_chan_ri_qi_lbl.text = data?.production_data
chan_di_lbl.text = data?.product_origin
ru_ku_time_lbl.text = data?.add_time
pi_ci_number_lbl.text = StringByInt(number:(data?.batch_id)!)
gys_name_lbl.text = data?.ven_name
img.sd_setImage(with: URL(string:SERVERCE_ImageHost + ((data?.report_picture?.first)!)!))
}
}
}
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" 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="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="S_Y_View_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="309"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="309"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mwS-rt-U5J">
<rect key="frame" x="15" y="306" width="360" height="3"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="3" id="4im-zW-XQA"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="所属供应商:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lHc-ot-zVP">
<rect key="frame" x="15" y="15" width="68.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="格利批次号:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J1x-5M-LH3">
<rect key="frame" x="15" y="49" width="68.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="入库时间:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ync-fo-pl0">
<rect key="frame" x="15" y="83" width="55.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品生产日期:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jxl-bH-ppp">
<rect key="frame" x="15" y="151" width="81.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="产品产地:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Q14-rd-KZ9">
<rect key="frame" x="15" y="117" width="55.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品保质期:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0xa-PE-4H4">
<rect key="frame" x="15" y="185" width="68.5" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X0m-e5-qhS">
<rect key="frame" x="352" y="15.5" width="8" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZPu-aR-NPC">
<rect key="frame" x="352" y="49.5" width="8" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HSU-ms-2e3">
<rect key="frame" x="352" y="117.5" width="8" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EsG-Ax-bUM">
<rect key="frame" x="352" y="83.5" width="8" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="w0G-lT-9Eg">
<rect key="frame" x="352" y="151.5" width="8" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dRP-dJ-XKV">
<rect key="frame" x="352" y="185.5" width="8" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="检查报告:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4Ky-z4-QnM">
<rect key="frame" x="15" y="244" width="55.5" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleAspectFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yWO-Ep-7ut">
<rect key="frame" x="134.5" y="216" width="106" height="74.5"/>
<constraints>
<constraint firstAttribute="height" constant="74.5" id="oBr-RJ-beS"/>
<constraint firstAttribute="width" constant="106" id="roo-pt-DQZ"/>
</constraints>
<connections>
<action selector="img_btn_click:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="umn-iV-wX0"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="qOg-GG-cVG">
<rect key="frame" x="134.5" y="216" width="106" height="74.5"/>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="EsG-Ax-bUM" secondAttribute="trailing" constant="15" id="1vC-6F-unu"/>
<constraint firstItem="4Ky-z4-QnM" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="48g-Gy-RDL"/>
<constraint firstAttribute="trailing" secondItem="mwS-rt-U5J" secondAttribute="trailing" id="4Po-5N-zeC"/>
<constraint firstItem="Q14-rd-KZ9" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="4TO-WL-c33"/>
<constraint firstItem="EsG-Ax-bUM" firstAttribute="centerY" secondItem="ync-fo-pl0" secondAttribute="centerY" id="6bc-dq-ByE"/>
<constraint firstAttribute="trailing" secondItem="HSU-ms-2e3" secondAttribute="trailing" constant="15" id="C2z-bU-lWB"/>
<constraint firstAttribute="bottom" secondItem="mwS-rt-U5J" secondAttribute="bottom" id="Dal-CA-EwE"/>
<constraint firstItem="ync-fo-pl0" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="G26-wI-MY6"/>
<constraint firstItem="J1x-5M-LH3" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="HFg-Dv-G3s"/>
<constraint firstItem="mwS-rt-U5J" firstAttribute="top" secondItem="4Ky-z4-QnM" secondAttribute="bottom" constant="43.5" id="LUD-pJ-mx3"/>
<constraint firstAttribute="trailing" secondItem="ZPu-aR-NPC" secondAttribute="trailing" constant="15" id="LZK-K6-L30"/>
<constraint firstItem="yWO-Ep-7ut" firstAttribute="centerY" secondItem="4Ky-z4-QnM" secondAttribute="centerY" id="Mj4-bc-CHX"/>
<constraint firstItem="ZPu-aR-NPC" firstAttribute="centerY" secondItem="J1x-5M-LH3" secondAttribute="centerY" id="NMh-7e-lmy"/>
<constraint firstItem="yWO-Ep-7ut" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="Nlz-6M-fVe"/>
<constraint firstItem="qOg-GG-cVG" firstAttribute="bottom" secondItem="yWO-Ep-7ut" secondAttribute="bottom" id="Oht-u0-JaZ"/>
<constraint firstItem="qOg-GG-cVG" firstAttribute="trailing" secondItem="yWO-Ep-7ut" secondAttribute="trailing" id="P4G-Ly-TR8"/>
<constraint firstItem="0xa-PE-4H4" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="ST3-kI-eBT"/>
<constraint firstItem="0xa-PE-4H4" firstAttribute="top" secondItem="Jxl-bH-ppp" secondAttribute="bottom" constant="15" id="Sw7-cW-8Yd"/>
<constraint firstItem="X0m-e5-qhS" firstAttribute="centerY" secondItem="lHc-ot-zVP" secondAttribute="centerY" id="TKG-lu-pyN"/>
<constraint firstItem="lHc-ot-zVP" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="WL3-jT-uUf"/>
<constraint firstAttribute="trailing" secondItem="X0m-e5-qhS" secondAttribute="trailing" constant="15" id="Wsn-lk-lXJ"/>
<constraint firstItem="qOg-GG-cVG" firstAttribute="leading" secondItem="yWO-Ep-7ut" secondAttribute="leading" id="XEP-om-F9d"/>
<constraint firstItem="qOg-GG-cVG" firstAttribute="top" secondItem="yWO-Ep-7ut" secondAttribute="top" id="Zy0-Gg-ZT8"/>
<constraint firstAttribute="trailing" secondItem="w0G-lT-9Eg" secondAttribute="trailing" constant="15" id="aMm-6D-g2H"/>
<constraint firstItem="Jxl-bH-ppp" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="dnj-JL-izd"/>
<constraint firstAttribute="trailing" secondItem="dRP-dJ-XKV" secondAttribute="trailing" constant="15" id="gON-A1-iek"/>
<constraint firstItem="ync-fo-pl0" firstAttribute="top" secondItem="J1x-5M-LH3" secondAttribute="bottom" constant="15" id="gug-UZ-A5w"/>
<constraint firstItem="w0G-lT-9Eg" firstAttribute="centerY" secondItem="Jxl-bH-ppp" secondAttribute="centerY" id="io7-gx-csf"/>
<constraint firstItem="dRP-dJ-XKV" firstAttribute="centerY" secondItem="0xa-PE-4H4" secondAttribute="centerY" id="kdN-wh-Sdy"/>
<constraint firstItem="lHc-ot-zVP" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="rn6-In-x47"/>
<constraint firstItem="HSU-ms-2e3" firstAttribute="centerY" secondItem="Q14-rd-KZ9" secondAttribute="centerY" id="t3z-d6-fom"/>
<constraint firstItem="Jxl-bH-ppp" firstAttribute="top" secondItem="Q14-rd-KZ9" secondAttribute="bottom" constant="15" id="tqw-Fr-iJl"/>
<constraint firstItem="mwS-rt-U5J" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="wEj-sr-oO0"/>
<constraint firstItem="Q14-rd-KZ9" firstAttribute="top" secondItem="ync-fo-pl0" secondAttribute="bottom" constant="15" id="wum-2r-hi6"/>
<constraint firstItem="J1x-5M-LH3" firstAttribute="top" secondItem="lHc-ot-zVP" secondAttribute="bottom" constant="15" id="ycv-7f-GTs"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="bao_zhi_qi_lbl" destination="dRP-dJ-XKV" id="YU9-wY-Bai"/>
<outlet property="chan_di_lbl" destination="HSU-ms-2e3" id="XZ2-ou-hwV"/>
<outlet property="gys_name_lbl" destination="X0m-e5-qhS" id="yP6-ee-97C"/>
<outlet property="img" destination="qOg-GG-cVG" id="agd-aI-Bdx"/>
<outlet property="img_btn" destination="yWO-Ep-7ut" id="qRb-Jm-FHp"/>
<outlet property="pi_ci_number_lbl" destination="ZPu-aR-NPC" id="pPd-Ec-wal"/>
<outlet property="ru_ku_time_lbl" destination="EsG-Ax-bUM" id="3cx-tn-7UZ"/>
<outlet property="sheng_chan_ri_qi_lbl" destination="w0G-lT-9Eg" id="pO6-HZ-NLe"/>
</connections>
<point key="canvasLocation" x="139.85507246376812" y="69.977678571428569"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="个人中心灰色字体">
<color red="0.38823529411764707" green="0.38823529411764707" blue="0.38823529411764707" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -705,8 +705,8 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
let rowModel = self.dataArr[indexPath.row]
let vc = OrderDViewController()
vc.delegate = self
vc.orderId = rowModel.order_id!
// vc.orderId = 12637
// vc.orderId = rowModel.order_id!
vc.orderId = 12746
vc.order_type = rowModel.order_type
vc.lmIdx = orderStatus
self.navigationController?.pushViewController(vc, animated: true)
......
......@@ -26,19 +26,17 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
}
func S_Y_View_Check_Detail(view: S_Y_View) {
func S_Y_View_Check_Detail(data: OrderDetailGoodsSourceModel) {
print("查看溯源")
if view.data == nil {
return
}
let browser = JXPhotoBrowser()
browser.numberOfItems = {
(view.data?.report_picture!.count)!
(data.report_picture!.count)
}
browser.pageIndex = 0
browser.reloadCellAtIndex = { context in
let browserCell = context.cell as? JXPhotoBrowserImageCell
let url = URL(string:SERVERCE_ImageHost + (view.data?.report_picture![context.index])!)
let url = URL(string:SERVERCE_ImageHost + (data.report_picture![context.index]))
browserCell?.imageView.sd_setImage(with: url, placeholderImage: nil, options: [], completed: { (_, _, _, _) in
browserCell?.setNeedsLayout()
})
......@@ -47,7 +45,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
func DaiKeXiaDanGouWuCellDelAction(cell: DaiKeXiaDanGouWuCell) {
//此处无用
......@@ -60,13 +58,13 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
func DaiKeXiaDanGouWuCell_check(cell: DaiKeXiaDanGouWuCell) {
print("溯源")
print("check S_Y")
let vc = S_Y_View(frame: self.view.bounds)
vc.delegate = self
if (dataMdoel?.order_goods!.count)! > 0 {
let vc = S_Y_View(frame: self.view.bounds)
vc.delegate = self
let target = dataMdoel?.order_goods![cell.tag]
vc.data = target?.goods_source
self.view.addSubview(vc)
}
self.view.addSubview(vc)
}
......
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