Commit 64d51b76 authored by lujunye's avatar lujunye

新任务界面基本完成

parent d8a56224
...@@ -86,6 +86,10 @@ ...@@ -86,6 +86,10 @@
E027E37125B5693A00CBCA65 /* print_bottom_cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E027E36F25B5693A00CBCA65 /* print_bottom_cell.xib */; }; E027E37125B5693A00CBCA65 /* print_bottom_cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E027E36F25B5693A00CBCA65 /* print_bottom_cell.xib */; };
E02870C2258C547400271055 /* AMap.bundle in Resources */ = {isa = PBXBuildFile; fileRef = E02870C1258C547400271055 /* AMap.bundle */; }; E02870C2258C547400271055 /* AMap.bundle in Resources */ = {isa = PBXBuildFile; fileRef = E02870C1258C547400271055 /* AMap.bundle */; };
E02870C7258C547E00271055 /* MAMapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E02870C6258C547E00271055 /* MAMapKit.framework */; }; E02870C7258C547E00271055 /* MAMapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E02870C6258C547E00271055 /* MAMapKit.framework */; };
E02A3CAF25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02A3CAD25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.swift */; };
E02A3CB025C3ED0400A4E369 /* S_P_K_C_Detail_Vc.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02A3CAE25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.xib */; };
E02A3CD525C3F4E700A4E369 /* S_P_K_C_Report_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02A3CD325C3F4E700A4E369 /* S_P_K_C_Report_Cell.swift */; };
E02A3CD625C3F4E700A4E369 /* S_P_K_C_Report_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02A3CD425C3F4E700A4E369 /* S_P_K_C_Report_Cell.xib */; };
E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */; }; E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */; };
E02C88272456B24F00925766 /* WuLiuGenZongViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */; }; E02C88272456B24F00925766 /* WuLiuGenZongViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */; };
E02C882A2456B4BA00925766 /* WLGZCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02C88282456B4BA00925766 /* WLGZCell.swift */; }; E02C882A2456B4BA00925766 /* WLGZCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02C88282456B4BA00925766 /* WLGZCell.swift */; };
...@@ -801,6 +805,10 @@ ...@@ -801,6 +805,10 @@
E027E36F25B5693A00CBCA65 /* print_bottom_cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = print_bottom_cell.xib; sourceTree = "<group>"; }; E027E36F25B5693A00CBCA65 /* print_bottom_cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = print_bottom_cell.xib; sourceTree = "<group>"; };
E02870C1258C547400271055 /* AMap.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = AMap.bundle; sourceTree = "<group>"; }; E02870C1258C547400271055 /* AMap.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = AMap.bundle; sourceTree = "<group>"; };
E02870C6258C547E00271055 /* MAMapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MAMapKit.framework; sourceTree = "<group>"; }; E02870C6258C547E00271055 /* MAMapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MAMapKit.framework; sourceTree = "<group>"; };
E02A3CAD25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = S_P_K_C_Detail_Vc.swift; sourceTree = "<group>"; };
E02A3CAE25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S_P_K_C_Detail_Vc.xib; sourceTree = "<group>"; };
E02A3CD325C3F4E700A4E369 /* S_P_K_C_Report_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = S_P_K_C_Report_Cell.swift; sourceTree = "<group>"; };
E02A3CD425C3F4E700A4E369 /* S_P_K_C_Report_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S_P_K_C_Report_Cell.xib; sourceTree = "<group>"; };
E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WuLiuGenZongViewController.swift; sourceTree = "<group>"; }; E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WuLiuGenZongViewController.swift; sourceTree = "<group>"; };
E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WuLiuGenZongViewController.xib; sourceTree = "<group>"; }; E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WuLiuGenZongViewController.xib; sourceTree = "<group>"; };
E02C88282456B4BA00925766 /* WLGZCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WLGZCell.swift; sourceTree = "<group>"; }; E02C88282456B4BA00925766 /* WLGZCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WLGZCell.swift; sourceTree = "<group>"; };
...@@ -1752,6 +1760,17 @@ ...@@ -1752,6 +1760,17 @@
path = "分销员管理"; path = "分销员管理";
sourceTree = "<group>"; sourceTree = "<group>";
}; };
E02A3CAC25C3ECCD00A4E369 /* 商品库存 */ = {
isa = PBXGroup;
children = (
E02A3CAD25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.swift */,
E02A3CAE25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.xib */,
E02A3CD325C3F4E700A4E369 /* S_P_K_C_Report_Cell.swift */,
E02A3CD425C3F4E700A4E369 /* S_P_K_C_Report_Cell.xib */,
);
path = "商品库存";
sourceTree = "<group>";
};
E02C88232456B23400925766 /* 物流跟踪 */ = { E02C88232456B23400925766 /* 物流跟踪 */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -2234,6 +2253,7 @@ ...@@ -2234,6 +2253,7 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = { E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
E02A3CAC25C3ECCD00A4E369 /* 商品库存 */,
E06FBA9025BFE3B100E9C2BA /* 溯源 */, E06FBA9025BFE3B100E9C2BA /* 溯源 */,
E06B1AE925B52684002F3C65 /* 打印订单 */, E06B1AE925B52684002F3C65 /* 打印订单 */,
E0272A82259C2506008142BB /* 分销员管理 */, E0272A82259C2506008142BB /* 分销员管理 */,
...@@ -3717,6 +3737,7 @@ ...@@ -3717,6 +3737,7 @@
E06524FA24581A7900CA22E2 /* ChuKuCell.xib in Resources */, E06524FA24581A7900CA22E2 /* ChuKuCell.xib in Resources */,
E0CC848824823EC1009B1FE9 /* CRKCell.xib in Resources */, E0CC848824823EC1009B1FE9 /* CRKCell.xib in Resources */,
E030515424E2304600AFB9E9 /* OnlyViewCell.xib in Resources */, E030515424E2304600AFB9E9 /* OnlyViewCell.xib in Resources */,
E02A3CD625C3F4E700A4E369 /* S_P_K_C_Report_Cell.xib in Resources */,
E0337EF62464FCFC00952EF4 /* GYSListViewController.xib in Resources */, E0337EF62464FCFC00952EF4 /* GYSListViewController.xib in Resources */,
F96E48AA24CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib in Resources */, F96E48AA24CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib in Resources */,
E0706EF524B40BE800D8251C /* TitleAndTfYuanCell.xib in Resources */, E0706EF524B40BE800D8251C /* TitleAndTfYuanCell.xib in Resources */,
...@@ -3740,6 +3761,7 @@ ...@@ -3740,6 +3761,7 @@
F95567A82453DA86009674AB /* WarehoseMangementListVC.xib in Resources */, F95567A82453DA86009674AB /* WarehoseMangementListVC.xib in Resources */,
E0C4F4BE244EF53D00CC7E2F /* BindStepTwoViewController.xib in Resources */, E0C4F4BE244EF53D00CC7E2F /* BindStepTwoViewController.xib in Resources */,
E00B0B1C24629E99006DC846 /* SJMapCell.xib in Resources */, E00B0B1C24629E99006DC846 /* SJMapCell.xib in Resources */,
E02A3CB025C3ED0400A4E369 /* S_P_K_C_Detail_Vc.xib in Resources */,
F90D37FA25529984001F3AED /* GLAlertTbAddViewCell.xib in Resources */, F90D37FA25529984001F3AED /* GLAlertTbAddViewCell.xib in Resources */,
E00CDE742474BBB60018AEF8 /* EPViewController.xib in Resources */, E00CDE742474BBB60018AEF8 /* EPViewController.xib in Resources */,
E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */, E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */,
...@@ -4287,6 +4309,7 @@ ...@@ -4287,6 +4309,7 @@
F93E32112473E05C00524DFC /* GeliAlertTextView.swift in Sources */, F93E32112473E05C00524DFC /* GeliAlertTextView.swift in Sources */,
E0F97B022451228A001BD600 /* GLAlertSelectView.swift in Sources */, E0F97B022451228A001BD600 /* GLAlertSelectView.swift in Sources */,
F96E9D5C246656A700B5B94A /* HGImagePickerCell.swift in Sources */, F96E9D5C246656A700B5B94A /* HGImagePickerCell.swift in Sources */,
E02A3CAF25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.swift in Sources */,
F95567AB2453E40B009674AB /* OrderListViewController.swift in Sources */, F95567AB2453E40B009674AB /* OrderListViewController.swift in Sources */,
E06B1AF625B52AD3002F3C65 /* PrintListMgVc.swift in Sources */, E06B1AF625B52AD3002F3C65 /* PrintListMgVc.swift in Sources */,
E00E48C22457C0D600F16545 /* XuanZeShangPinViewController.swift in Sources */, E00E48C22457C0D600F16545 /* XuanZeShangPinViewController.swift in Sources */,
...@@ -4308,6 +4331,7 @@ ...@@ -4308,6 +4331,7 @@
F9531F442465108800724BEE /* JXPhotoBrowserFadeAnimator.swift in Sources */, F9531F442465108800724BEE /* JXPhotoBrowserFadeAnimator.swift in Sources */,
E007B1DB248F8F57004D14CC /* PurchaseInterface.swift in Sources */, E007B1DB248F8F57004D14CC /* PurchaseInterface.swift in Sources */,
F956D5AD246A2D9C003FF510 /* LMNLine.m in Sources */, F956D5AD246A2D9C003FF510 /* LMNLine.m in Sources */,
E02A3CD525C3F4E700A4E369 /* S_P_K_C_Report_Cell.swift in Sources */,
E0CC848724823EC1009B1FE9 /* CRKCell.swift in Sources */, E0CC848724823EC1009B1FE9 /* CRKCell.swift in Sources */,
F961153724E22E0700EB3458 /* HuolalaCancelViewController.swift in Sources */, F961153724E22E0700EB3458 /* HuolalaCancelViewController.swift in Sources */,
E088CC8D24470BF0000DAA8A /* CodeView.swift in Sources */, E088CC8D24470BF0000DAA8A /* CodeView.swift in Sources */,
......
<?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.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <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"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<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"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
...@@ -18,7 +19,7 @@ ...@@ -18,7 +19,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/> <rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7yt-Tb-VMT"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7yt-Tb-VMT">
<rect key="frame" x="325" y="0.0" width="50" height="100"/> <rect key="frame" x="325" y="0.0" width="50" height="100"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="wBf-0M-8Ms"/> <constraint firstAttribute="width" constant="50" id="wBf-0M-8Ms"/>
...@@ -72,14 +73,14 @@ ...@@ -72,14 +73,14 @@
</userDefinedRuntimeAttribute> </userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</imageView> </imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RqJ-Pm-7z4"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RqJ-Pm-7z4">
<rect key="frame" x="115" y="0.0" width="35" height="100"/> <rect key="frame" x="115" y="0.0" width="35" height="100"/>
<connections> <connections>
<action selector="editAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="xhC-vf-Kd9"/> <action selector="editAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="xhC-vf-Kd9"/>
</connections> </connections>
</button> </button>
</subviews> </subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints> <constraints>
<constraint firstAttribute="bottom" secondItem="RqJ-Pm-7z4" secondAttribute="bottom" id="0Zb-zu-2v5"/> <constraint firstAttribute="bottom" secondItem="RqJ-Pm-7z4" secondAttribute="bottom" id="0Zb-zu-2v5"/>
<constraint firstAttribute="width" constant="150" id="CrJ-kZ-8Ru"/> <constraint firstAttribute="width" constant="150" id="CrJ-kZ-8Ru"/>
...@@ -130,5 +131,8 @@ ...@@ -130,5 +131,8 @@
<namedColor name="蓝色字体颜色"> <namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources> </resources>
</document> </document>
//
// S_P_K_C_Detail_Vc.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/1/29.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class S_P_K_C_Detail_Vc: BaseViewController,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,UITableViewDelegate,UITableViewDataSource {
var titles = ["商品格利批次号","商品状态","库存数量","仓库","库位","保质期","入库时间","商品生产日期","商品过期日期","检测报告"]
var datasArr:Array<Int> = [1,2,3]
@IBOutlet weak var topBarViewH: NSLayoutConstraint!
@IBOutlet weak var topBarView: UIView!
var selectIdx = IndexPath(item: 0, section: 0)
var layout = UICollectionViewFlowLayout()
var collectView:UICollectionView?
@IBOutlet weak var list_view: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "商品库存详情"
self.view.addSubview(navbar)
if datasArr.count > 0 {
SetTopFrame(view: topBarView, height: topBarViewH.constant)
if collectView == nil {
let collectionView = UICollectionView(frame: CGRect(x: 0, y: 0, width: 0, height: 0), collectionViewLayout: layout)
collectionView.backgroundColor = UIColor.white
collectionView.delegate = self
collectionView.dataSource = self
topBarView.addSubview(collectionView)
collectionView.snp.makeConstraints { (make) in
make.bottom.left.right.equalTo(0)
make.height.equalTo(topBarViewH.constant)
}
collectionView.showsHorizontalScrollIndicator = false
collectionView.isPagingEnabled = true
var w:CGFloat = 0
if datasArr.count < 5 {
w = fullScreenWidth/CGFloat(datasArr.count)
}else{
w = fullScreenWidth * 0.2
}
layout.itemSize = CGSize(width: w, height:topBarViewH.constant)
layout.scrollDirection = .horizontal
collectionView.collectionViewLayout = layout
collectionView.register(UINib(nibName: "ItemCell", bundle: nil), forCellWithReuseIdentifier: "ItemCell")
collectView = collectionView
}
}else{
SetTopFrame(view: topBarView, height: 0)
topBarViewH.constant = 0
}
list_view.separatorStyle = .none
list_view.showsVerticalScrollIndicator = false
list_view.register(UINib(nibName: "TitleAndLblCell", bundle: nil), forCellReuseIdentifier: "TitleAndLblCell")
list_view.register(UINib(nibName: "S_P_K_C_Report_Cell", bundle: nil), forCellReuseIdentifier: "S_P_K_C_Report_Cell")
}
//MARK: - COLLECTIONVIEW DELEGATE
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
return 0
}
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return datasArr.count
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "ItemCell", for: indexPath)
as! ItemCell
cell.tag = indexPath.item
cell.nameLbl.text = "库存" + "\(indexPath.item+1)"
if indexPath == selectIdx {
cell.nameLbl.textColor = UIColor(named: "蓝色字体颜色")
cell.lineView.isHidden = false
}else{
cell.nameLbl.textColor = UIColor(named: "标题字颜色")
cell.lineView.isHidden = true
}
return cell
}
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
selectIdx = indexPath
list_view.reloadData()
collectionView.reloadData()
}
//MARK: - TABLEVIEWDELEGATE
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 10
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 9 {
return 125
}
return 49
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.row == 9 {
let cell = tableView.dequeueReusableCell(withIdentifier: "S_P_K_C_Report_Cell") as! S_P_K_C_Report_Cell
cell.nameLbl.text = titles[indexPath.row]
cell.img_view.image = UIImage(named: "blue_add")
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndLblCell") as! TitleAndLblCell
cell.nameLbl.text = titles[indexPath.row]
cell.contentLbl.text = StringByInt(number: datasArr[selectIdx.row])
return cell
}
}
<?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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="S_P_K_C_Detail_Vc" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="list_view" destination="nAd-u0-dNo" id="VSJ-Pk-OIZ"/>
<outlet property="topBarView" destination="QcN-mN-y2W" id="saM-ad-o7h"/>
<outlet property="topBarViewH" destination="z3Q-Nq-2L0" id="Ixg-Rj-h0A"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QcN-mN-y2W">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="z3Q-Nq-2L0"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="nAd-u0-dNo">
<rect key="frame" x="0.0" y="88" width="414" height="808"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="YYC-e9-TyJ"/>
<outlet property="delegate" destination="-1" id="Q7k-2Q-nS6"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="nAd-u0-dNo" secondAttribute="bottom" id="54u-Fg-NBY"/>
<constraint firstItem="nAd-u0-dNo" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="7EG-xC-a9v"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="nAd-u0-dNo" secondAttribute="trailing" id="9mD-b2-kD4"/>
<constraint firstItem="QcN-mN-y2W" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="GWj-4N-Wxp"/>
<constraint firstItem="QcN-mN-y2W" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="WSR-zC-bjf"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="QcN-mN-y2W" secondAttribute="trailing" id="Xbz-wU-9Jc"/>
<constraint firstItem="nAd-u0-dNo" firstAttribute="top" secondItem="QcN-mN-y2W" secondAttribute="bottom" id="q11-GU-I3H"/>
</constraints>
<point key="canvasLocation" x="142" y="79"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// S_P_K_C_Report_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/1/29.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class S_P_K_C_Report_Cell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
self.selectionStyle = .none
}
@IBOutlet weak var img_view: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
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_P_K_C_Report_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="125"/>
<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="125"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RjO-0Y-GDN">
<rect key="frame" x="13" y="53.5" width="33" height="18.5"/>
<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="C9p-lY-hV5">
<rect key="frame" x="230" y="15" width="130" height="95"/>
<constraints>
<constraint firstAttribute="width" constant="130" id="EBI-QG-Biu"/>
<constraint firstAttribute="height" constant="95" id="SrK-uK-xA2"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
</subviews>
<constraints>
<constraint firstItem="RjO-0Y-GDN" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="13" id="2jk-EX-hDy"/>
<constraint firstItem="RjO-0Y-GDN" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="UGd-qY-PHo"/>
<constraint firstAttribute="trailing" secondItem="C9p-lY-hV5" secondAttribute="trailing" constant="15" id="Uv9-oP-un2"/>
<constraint firstItem="C9p-lY-hV5" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="fUU-te-NYg"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="img_view" destination="C9p-lY-hV5" id="O7G-fR-3xs"/>
<outlet property="nameLbl" destination="RjO-0Y-GDN" id="es0-Fd-LQ1"/>
</connections>
<point key="canvasLocation" x="142" y="79"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
...@@ -976,7 +976,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo ...@@ -976,7 +976,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if indexPath.row == 4 { if indexPath.row == 4 {
//MARK: - 查看库存详情
print("abc") print("abc")
// let vc = S_P_K_C_Detail_Vc()
// self.navigationController?.pushViewController(vc, animated: true)
} }
} }
//MARK: - 底部广告软文跳转 && 编辑 //MARK: - 底部广告软文跳转 && 编辑
......
...@@ -467,7 +467,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -467,7 +467,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case 59: //地址管理 case 59: //地址管理
// HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
// return // return
let vc = DZGLViewController() let vc = S_P_K_C_Detail_Vc()
// let vc = DZGLViewController()
self.navigationController?.pushViewController(vc, animated: true ) self.navigationController?.pushViewController(vc, animated: true )
return return
case 61: //库存商品 case 61: //库存商品
......
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