Commit 57cea19e authored by lujunye's avatar lujunye

溯源单窗完成

parent 97410ffa
......@@ -188,6 +188,8 @@
E06B1AF625B52AD3002F3C65 /* PrintListMgVc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E06B1AF425B52AD3002F3C65 /* PrintListMgVc.swift */; };
E06B1AF725B52AD3002F3C65 /* PrintListMgVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06B1AF525B52AD3002F3C65 /* PrintListMgVc.xib */; };
E06FBA9E25BFE3DA00E9C2BA /* libGSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E06FBA9D25BFE3DA00E9C2BA /* libGSDK.a */; };
E06FBAA325BFEFB200E9C2BA /* S_Y_View.swift in Sources */ = {isa = PBXBuildFile; fileRef = E06FBAA225BFEFB200E9C2BA /* S_Y_View.swift */; };
E06FBAA825BFEFBC00E9C2BA /* S_Y_View.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06FBAA725BFEFBC00E9C2BA /* S_Y_View.xib */; };
E0706EF424B40BE800D8251C /* TitleAndTfYuanCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0706EF224B40BE800D8251C /* TitleAndTfYuanCell.swift */; };
E0706EF524B40BE800D8251C /* TitleAndTfYuanCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0706EF324B40BE800D8251C /* TitleAndTfYuanCell.xib */; };
E0706EF824B4796400D8251C /* CGDListCell2.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0706EF624B4796400D8251C /* CGDListCell2.swift */; };
......@@ -893,6 +895,8 @@
E06FBA9B25BFE3DA00E9C2BA /* TscCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TscCommand.h; sourceTree = "<group>"; };
E06FBA9C25BFE3DA00E9C2BA /* BLKWrite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLKWrite.h; sourceTree = "<group>"; };
E06FBA9D25BFE3DA00E9C2BA /* libGSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libGSDK.a; sourceTree = "<group>"; };
E06FBAA225BFEFB200E9C2BA /* S_Y_View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = S_Y_View.swift; sourceTree = "<group>"; };
E06FBAA725BFEFBC00E9C2BA /* S_Y_View.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S_Y_View.xib; sourceTree = "<group>"; };
E0706EF124B4088500D8251C /* Bridge_Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Bridge_Header.h; sourceTree = "<group>"; };
E0706EF224B40BE800D8251C /* TitleAndTfYuanCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleAndTfYuanCell.swift; sourceTree = "<group>"; };
E0706EF324B40BE800D8251C /* TitleAndTfYuanCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleAndTfYuanCell.xib; sourceTree = "<group>"; };
......@@ -1972,6 +1976,8 @@
E06FBA9025BFE3B100E9C2BA /* 溯源 */ = {
isa = PBXGroup;
children = (
E06FBAA225BFEFB200E9C2BA /* S_Y_View.swift */,
E06FBAA725BFEFBC00E9C2BA /* S_Y_View.xib */,
);
path = "溯源";
sourceTree = "<group>";
......@@ -3769,6 +3775,7 @@
F97E73322552A22000A11F98 /* DistributorSettingAlertView.xib in Resources */,
E02FD9F72455790800E10E27 /* DiZhiGuanLiCell.xib in Resources */,
F9ECC929255CD7FD00990B61 /* RetailManageDetailViewController.xib in Resources */,
E06FBAA825BFEFBC00E9C2BA /* S_Y_View.xib in Resources */,
F9C2F6F9254FE14900516E00 /* DistributorSettingViewController.xib in Resources */,
E0BE8AA5245AA31400E80134 /* YingFuZhangKuanXQViewController.xib in Resources */,
E0BFFAA5259C2E6D00CC8CA3 /* ADD_FXY_View.xib in Resources */,
......@@ -4141,6 +4148,7 @@
F9023F692449A50900DD5A63 /* TitleContentCell.swift in Sources */,
F95A9ED8245520E500867849 /* OrderListVC.swift in Sources */,
F995CEA62547CAC000202BA8 /* InvoiceInfoModel.swift in Sources */,
E06FBAA325BFEFB200E9C2BA /* S_Y_View.swift in Sources */,
E03549A8245820C2008BD021 /* PiCiXuanZeCell.swift in Sources */,
F9C2F6F8254FE14900516E00 /* DistributorSettingViewController.swift in Sources */,
F9217E012485E6E800C4CF67 /* MessageListModel.swift in Sources */,
......
{
"images" : [
{
"filename" : "编组.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "编组@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "编组@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -8,7 +8,11 @@
import UIKit
class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,UITableViewDataSource, DaiKeXiaDanGouWuCellDelegate{
class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,UITableViewDataSource, DaiKeXiaDanGouWuCellDelegate, S_Y_View_Delegate{
func S_Y_View_Check_Detail() {
print("查看溯源")
}
func DaiKeXiaDanGouWuCellDelAction(cell: DaiKeXiaDanGouWuCell) {
//此处无用
}
......@@ -20,6 +24,9 @@ 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
self.view.addSubview(vc)
}
......@@ -106,7 +113,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
cell.nameLbl.text = self.dataMdoel?.order_res?.user_name
cell.contentLbl.text = self.dataMdoel?.order_res!.pay_status_cn
cell.contentLbl.textColor = UIColor(named: "蓝色字体颜色")
cell.contentLbl_right.constant = -12
cell.contentLbl_right.constant = -8
cell.gotoImgV.isHidden = true
return cell
case 1:
......
//
// S_Y_View.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/1/26.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol S_Y_View_Delegate {
func S_Y_View_Check_Detail()
}
class S_Y_View: UIView {
var contentView:UIView!
var delegate:S_Y_View_Delegate?
@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()
}
@IBOutlet weak var check_detail_btn: UIButton!
@IBAction func close_action(_ sender: UIButton) {
self.removeFromSuperview()
}
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
This diff is collapsed.
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