Commit d3d6cfba authored by lujunye's avatar lujunye

撒打发士大夫撒旦法112

parent 9cdffb8c
......@@ -172,6 +172,8 @@
E0402603259C186800EDF182 /* KHXQ_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0402601259C186800EDF182 /* KHXQ_Cell.xib */; };
E040399624D14D37008CF965 /* LalamoveModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E040399524D14D37008CF965 /* LalamoveModel.swift */; };
E040399824D14E0E008CF965 /* LalamoveInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E040399724D14E0E008CF965 /* LalamoveInterface.swift */; };
E0404A89264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0404A87264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift */; };
E0404A8A264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0404A88264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib */; };
E042F730245272FF00CDFA12 /* XiaYunDanViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E042F72E245272FF00CDFA12 /* XiaYunDanViewController.swift */; };
E042F731245272FF00CDFA12 /* XiaYunDanViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E042F72F245272FF00CDFA12 /* XiaYunDanViewController.xib */; };
E042F734245274F200CDFA12 /* YunDanLieBiaoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E042F732245274F200CDFA12 /* YunDanLieBiaoCell.swift */; };
......@@ -443,6 +445,10 @@
E0CC848824823EC1009B1FE9 /* CRKCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CC848624823EC1009B1FE9 /* CRKCell.xib */; };
E0CC848B24824291009B1FE9 /* CRKListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0CC848924824291009B1FE9 /* CRKListVC.swift */; };
E0CC848C24824291009B1FE9 /* CRKListVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CC848A24824291009B1FE9 /* CRKListVC.xib */; };
E0CD52FB264E1BE4007EBB1E /* XY_DZ_GL_VC.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0CD52F9264E1BE4007EBB1E /* XY_DZ_GL_VC.swift */; };
E0CD52FC264E1BE4007EBB1E /* XY_DZ_GL_VC.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CD52FA264E1BE4007EBB1E /* XY_DZ_GL_VC.xib */; };
E0CD5305264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0CD5303264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift */; };
E0CD5306264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CD5304264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib */; };
E0D11BD525C12C540066DB21 /* img_title_cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D11BD325C12C540066DB21 /* img_title_cell.swift */; };
E0D11BD625C12C540066DB21 /* img_title_cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0D11BD425C12C540066DB21 /* img_title_cell.xib */; };
E0D197BA2448431C002B080C /* BabyDefine.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197A92448431B002B080C /* BabyDefine.m */; };
......@@ -985,6 +991,8 @@
E0402601259C186800EDF182 /* KHXQ_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KHXQ_Cell.xib; sourceTree = "<group>"; };
E040399524D14D37008CF965 /* LalamoveModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LalamoveModel.swift; sourceTree = "<group>"; };
E040399724D14E0E008CF965 /* LalamoveInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LalamoveInterface.swift; sourceTree = "<group>"; };
E0404A87264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GYS_FX_Product_VC_Cell.swift; sourceTree = "<group>"; };
E0404A88264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GYS_FX_Product_VC_Cell.xib; sourceTree = "<group>"; };
E042F72E245272FF00CDFA12 /* XiaYunDanViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XiaYunDanViewController.swift; sourceTree = "<group>"; };
E042F72F245272FF00CDFA12 /* XiaYunDanViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XiaYunDanViewController.xib; sourceTree = "<group>"; };
E042F732245274F200CDFA12 /* YunDanLieBiaoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YunDanLieBiaoCell.swift; sourceTree = "<group>"; };
......@@ -1273,6 +1281,10 @@
E0CC848624823EC1009B1FE9 /* CRKCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CRKCell.xib; sourceTree = "<group>"; };
E0CC848924824291009B1FE9 /* CRKListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CRKListVC.swift; sourceTree = "<group>"; };
E0CC848A24824291009B1FE9 /* CRKListVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CRKListVC.xib; sourceTree = "<group>"; };
E0CD52F9264E1BE4007EBB1E /* XY_DZ_GL_VC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XY_DZ_GL_VC.swift; sourceTree = "<group>"; };
E0CD52FA264E1BE4007EBB1E /* XY_DZ_GL_VC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XY_DZ_GL_VC.xib; sourceTree = "<group>"; };
E0CD5303264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XY_DZ_GL_VC_Cell.swift; sourceTree = "<group>"; };
E0CD5304264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XY_DZ_GL_VC_Cell.xib; sourceTree = "<group>"; };
E0D11BD325C12C540066DB21 /* img_title_cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = img_title_cell.swift; sourceTree = "<group>"; };
E0D11BD425C12C540066DB21 /* img_title_cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = img_title_cell.xib; sourceTree = "<group>"; };
E0D197A82448431B002B080C /* BabyCentralManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BabyCentralManager.h; sourceTree = "<group>"; };
......@@ -2568,6 +2580,7 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup;
children = (
E0CD52F8264E1BBF007EBB1E /* 下游店长管理 */,
E0892137264BAB5F0040A6F5 /* 上游供应商管理 */,
E0122C66264A221C00E15289 /* New分销商品 */,
E0F503DD2648DE22000F9633 /* 下游代理商管理 */,
......@@ -2895,6 +2908,8 @@
E0AD92F82550FD1500D82C17 /* GYS_FX_SearchViewController.xib */,
E07337F62579E8660039767A /* GYS_FX_Product_ListVc.swift */,
E07337F72579E8660039767A /* GYS_FX_Product_ListVc.xib */,
E0404A87264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift */,
E0404A88264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib */,
);
path = "供应商分销商品管理";
sourceTree = "<group>";
......@@ -2971,6 +2986,17 @@
path = "应付账款";
sourceTree = "<group>";
};
E0CD52F8264E1BBF007EBB1E /* 下游店长管理 */ = {
isa = PBXGroup;
children = (
E0CD52F9264E1BE4007EBB1E /* XY_DZ_GL_VC.swift */,
E0CD52FA264E1BE4007EBB1E /* XY_DZ_GL_VC.xib */,
E0CD5303264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift */,
E0CD5304264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib */,
);
path = "下游店长管理";
sourceTree = "<group>";
};
E0D11BD225C12C400066DB21 /* cell */ = {
isa = PBXGroup;
children = (
......@@ -4174,6 +4200,8 @@
F96E48AA24CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib in Resources */,
E0706EF524B40BE800D8251C /* TitleAndTfYuanCell.xib in Resources */,
E0337EF22464F69000952EF4 /* YingFuZKListViewController.xib in Resources */,
E0404A8A264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib in Resources */,
E0CD5306264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib in Resources */,
E0DA8AAF25E8F3D800425099 /* SVProgressHUD.bundle in Resources */,
E002465324A8697B00049DBC /* TitleAndTFBtnCell.xib in Resources */,
E0B9462C2456AABE00FBEC9A /* YuShouWeiKuanFaHuoCell.xib in Resources */,
......@@ -4190,6 +4218,7 @@
F9A1D4AB255B7AF70018DA8A /* RetailManageHeaderView.xib in Resources */,
E00CBA0224820CF000701D9D /* CRKSumCell.xib in Resources */,
E0206335246CE45A007A40C4 /* HeaderOnlyTitleView.xib in Resources */,
E0CD52FC264E1BE4007EBB1E /* XY_DZ_GL_VC.xib in Resources */,
E0E5605425C1672E0004BA56 /* Print_Gprinter_View.xib in Resources */,
E0F83BAA25F7085400D31672 /* NewPiCiCell.xib in Resources */,
E0B903CA259B11C20041EF62 /* FXSY_Detail_ViewController.xib in Resources */,
......@@ -4487,6 +4516,7 @@
F950FDE224518B9500C40530 /* FSCalendarCalculator.m in Sources */,
E0D197C12448431C002B080C /* BabyToy.m in Sources */,
E0F97B0C24516B1F001BD600 /* AddImgCell.swift in Sources */,
E0CD5305264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift in Sources */,
E0A804BB25B81B790082F56B /* printOrderInterface.swift in Sources */,
E0B9462B2456AABE00FBEC9A /* YuShouWeiKuanFaHuoCell.swift in Sources */,
E09B03C32445BD9500211A51 /* NavViewController.swift in Sources */,
......@@ -4613,6 +4643,7 @@
F9DDBE962457D3EC00A32CB2 /* WebViewController.swift in Sources */,
F993C66E24CADE2400493CC7 /* WayBillStautsTableViewCell.swift in Sources */,
F90F882324C841280050EF02 /* UITableViewIndexView.swift in Sources */,
E0CD52FB264E1BE4007EBB1E /* XY_DZ_GL_VC.swift in Sources */,
F956D5AA246A2D9C003FF510 /* LMNBulletsLine.m in Sources */,
E0E4456B24B0221500EF788E /* LogisticsInterface.swift in Sources */,
E06524F924581A7900CA22E2 /* ChuKuCell.swift in Sources */,
......@@ -4789,6 +4820,7 @@
F956D5B5246A2D9C003FF510 /* LMNStore.m in Sources */,
F956D5A7246A2D9C003FF510 /* LMNLineChain+Numbering.m in Sources */,
E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */,
E0404A89264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift in Sources */,
F9023F62244999F500DD5A63 /* WarehoseMangementCell.swift in Sources */,
F956D5B1246A2D9C003FF510 /* LMNFolder.m in Sources */,
E0A409D424640B8300CFF109 /* DZGLViewController.swift in Sources */,
......
......@@ -283,7 +283,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate,UITabBarCont
let v2 = GoodsManageListVC()
let v3 = WorkCViewController()
// let v3 = RetailListMgVC()
// let v3 = GYS_FX_Product_ListVc()
let v4 = WarehoseMangementListVC()
......
{
"images" : [
{
"filename" : "icon_pilingzhongxin.png",
"filename" : "商店.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "icon_pilingzhongxin@2x.png",
"filename" : "商店@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "icon_pilingzhongxin@3x.png",
"filename" : "商店@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
......
{
"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
}
}
......@@ -64,13 +64,14 @@ class SY_GYS_GL_VC: BaseViewController , UISearchBarDelegate, SearchBarViewDeleg
@objc func loadMoreData(){}
var blackBtnView:UIButton! = nil
@objc func removeBlackBtnView(){
if blackBtnView != nil {
blackBtnView.removeFromSuperview()
searchV!.resignFirstResponder()
}
}
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
print("调起搜索后添加个蒙版本")
blackBtnView = UIButton ()
......
//
// XY_DZ_GL_VC.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/14.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class XY_DZ_GL_VC: BaseViewController, UISearchBarDelegate, SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource,XY_DZ_GL_VC_Cell_Delegate {
func XY_DZ_GL_VC_Cell_Del(cell: XY_DZ_GL_VC_Cell) {
print("del \(cell.tag)")
}
let UserToken = UserDefaults.standard.value(forKey: "user_token")
var keyword = ""
//MARK: - TABLEVIEWDELEGATE
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableView.automaticDimension
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "XY_DZ_GL_VC_Cell") as! XY_DZ_GL_VC_Cell
cell.delegate = self
cell.tag = indexPath.row
return cell
}
func rightBtnClick() {
print("新增店铺")
}
@IBOutlet weak var list_view: UITableView!
@IBOutlet weak var contentV: UIView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "下游店长管理"
navbar.rightTitle = "新增店铺"
self.view.addSubview(navbar)
SetTopFrame(view: contentV, height: 45)
let searchBr = SearchBarView.init()
searchV = searchBr
self.contentV.addSubview(searchBr)
searchV?.changecornerRadius(cornerRadius: 35*0.5)
searchBr.placeholderStr = "请输入分销商名称"
searchBr.delegate = self
searchBr.delegateL = self
searchBr.snp.makeConstraints { (make) in
make.left.equalTo(0)
make.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(35)
}
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "XY_DZ_GL_VC_Cell", bundle: nil), forCellReuseIdentifier: "XY_DZ_GL_VC_Cell")
headerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadData))
list_view.mj_header = self.headerMJ
list_view.mj_header?.beginRefreshing()
footerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadMoreData))
list_view.mj_footer = self.footerMJ
}
@objc func loadData(){}
@objc func loadMoreData(){}
var blackBtnView:UIButton! = nil
@objc func removeBlackBtnView(){
if blackBtnView != nil {
blackBtnView.removeFromSuperview()
searchV!.resignFirstResponder()
}
}
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
print("调起搜索后添加个蒙版本")
blackBtnView = UIButton ()
blackBtnView.backgroundColor = UIColor.init(named: "提示视图背景色")
self.view.addSubview(blackBtnView)
blackBtnView.snp.makeConstraints { (make) in
make.top.equalTo(contentV!.snp_bottom)
make.left.right.bottom.equalToSuperview()
}
blackBtnView.addTarget(self, action: #selector(removeBlackBtnView), for: .touchUpInside)
blackBtnView.isUserInteractionEnabled = false
return true
}
weak var searchV: SearchBarView? = nil
func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
print("点击搜索进行--")
searchBar.resignFirstResponder()
keyword = searchBar.text!
removeBlackBtnView()
if keyword.count > 0 {
list_view.mj_header?.beginRefreshing()
}
}
//MARK:--取消搜索代理
func clearSearchAction() {
print("取消搜索代理了--")
}
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
print("编辑即将结束了--")
removeBlackBtnView()
if keyword.count > 0 {
keyword = searchBar.text!
if keyword.count == 0 {
list_view.mj_header?.beginRefreshing()
}
}
}
}
<?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="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="XY_DZ_GL_VC" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="contentV" destination="mc2-cz-O4q" id="GEO-07-D0y"/>
<outlet property="list_view" destination="o1x-LO-BcH" id="oNy-An-goE"/>
<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="mc2-cz-O4q">
<rect key="frame" x="0.0" y="44" width="414" height="45"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="4kU-Gh-rM4"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="o1x-LO-BcH">
<rect key="frame" x="0.0" y="89" width="414" height="807"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<connections>
<outlet property="dataSource" destination="-1" id="w8d-cY-Bz3"/>
<outlet property="delegate" destination="-1" id="Xic-LS-l48"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="o1x-LO-BcH" secondAttribute="bottom" id="69l-I5-hUd"/>
<constraint firstItem="mc2-cz-O4q" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="73O-zH-AD1"/>
<constraint firstItem="o1x-LO-BcH" firstAttribute="top" secondItem="mc2-cz-O4q" secondAttribute="bottom" id="Ptl-pS-2lm"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="mc2-cz-O4q" secondAttribute="trailing" id="TR0-sV-OQc"/>
<constraint firstItem="mc2-cz-O4q" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="nds-3a-Qwm"/>
<constraint firstItem="o1x-LO-BcH" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="qDt-ZU-Gkt"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="o1x-LO-BcH" secondAttribute="trailing" id="w5l-lz-h5U"/>
</constraints>
<point key="canvasLocation" x="141" y="64"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// XY_DZ_GL_VC_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/14.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol XY_DZ_GL_VC_Cell_Delegate {
func XY_DZ_GL_VC_Cell_Del(cell:XY_DZ_GL_VC_Cell)
}
class XY_DZ_GL_VC_Cell: UITableViewCell {
var delegate:XY_DZ_GL_VC_Cell_Delegate?
@IBAction func del_action(_ sender: Any) {
delegate?.XY_DZ_GL_VC_Cell_Del(cell: self)
}
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
......@@ -61,7 +61,7 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "供应商分销商品管理"
navbar.rightImg = UIImage(named: "ss_dark")
// navbar.rightImg = UIImage(named: "ss_dark")
self.view.addSubview(navbar)
SetTopFrameView(view: contentV, btmView: self.view)
......
......@@ -8,7 +8,59 @@
import UIKit
class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource,GYS_FX_ProductCellDelegate{
class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource,GYS_FX_ProductCellDelegate, UISearchBarDelegate, SearchBarViewDelegate{
@IBOutlet weak var contentV: UIView!
var keyword = ""
var blackBtnView:UIButton! = nil
@objc func removeBlackBtnView(){
if blackBtnView != nil {
blackBtnView.removeFromSuperview()
searchV!.resignFirstResponder()
}
}
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
print("调起搜索后添加个蒙版本")
blackBtnView = UIButton ()
blackBtnView.backgroundColor = UIColor.init(named: "提示视图背景色")
self.view.addSubview(blackBtnView)
blackBtnView.snp.makeConstraints { (make) in
make.top.equalTo(contentV!.snp_bottom)
make.left.right.bottom.equalToSuperview()
}
blackBtnView.addTarget(self, action: #selector(removeBlackBtnView), for: .touchUpInside)
blackBtnView.isUserInteractionEnabled = false
return true
}
weak var searchV: SearchBarView? = nil
func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
print("点击搜索进行--")
searchBar.resignFirstResponder()
keyword = searchBar.text!
removeBlackBtnView()
if keyword.count > 0 {
home_list_tbv.mj_header?.beginRefreshing()
}
}
//MARK:--取消搜索代理
func clearSearchAction() {
print("取消搜索代理了--")
}
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
print("编辑即将结束了--")
removeBlackBtnView()
if keyword.count > 0 {
keyword = searchBar.text!
if keyword.count == 0 {
home_list_tbv.mj_header?.beginRefreshing()
}
}
}
func GYS_FX_ProductCellTableViewCellSelect(idx: Int) {
}
......@@ -77,8 +129,21 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
override func viewDidLoad() {
super.viewDidLoad()
home_list_tbv.register(UINib(nibName: "GYS_FX_ProductCellTableViewCell", bundle: nil), forCellReuseIdentifier: "GYS_FX_ProductCellTableViewCell")
let searchBr = SearchBarView.init()
searchV = searchBr
self.contentV.addSubview(searchBr)
searchV?.changecornerRadius(cornerRadius: 35*0.5)
searchBr.placeholderStr = "请输入商品名称"
searchBr.delegate = self
searchBr.delegateL = self
searchBr.snp.makeConstraints { (make) in
make.left.equalTo(0)
make.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(35)
}
home_list_tbv.register(UINib(nibName: "GYS_FX_Product_VC_Cell", bundle: nil), forCellReuseIdentifier: "GYS_FX_Product_VC_Cell")
home_list_tbv.delegate = self
home_list_tbv.separatorStyle = .none
home_list_tbv.dataSource = self
......@@ -167,49 +232,49 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "GYS_FX_ProductCellTableViewCell") as! GYS_FX_ProductCellTableViewCell
let cell = tableView.dequeueReusableCell(withIdentifier: "GYS_FX_Product_VC_Cell") as! GYS_FX_Product_VC_Cell
if self.title!.contains("已铺货") {
cell.submitBtn.setTitle("取消铺货", for: .normal)
}else{
cell.submitBtn.setTitle("铺货", for: .normal)
}
cell.tag = indexPath.row
cell.delegate = self
let model = datas[indexPath.row]
cell.title_Lbl.text = model.goods_name
if model.dbt_sale != nil {
cell.sell_total_Lbl.text = "销量: " + StringByInt(number: model.dbt_sale!)
}else{
cell.sell_total_Lbl.text = "销量: -"
}
if model.inventory != nil {
cell.store_lbl.text = "库存: " + StringByInt(number: model.inventory!)
}else{
cell.store_lbl.text = "库存: -"
}
if model.commission_type == 1 {
cell.FX_Percent_Lbl.text = StringByInt(number: model.commission_per!) + "%"
cell.FX_Percent_Lbl.isHidden = false
// cell.submitBtn.setTitle("取消铺货", for: .normal)
}else{
cell.FX_Percent_Lbl.isHidden = true
// cell.submitBtn.setTitle("铺货", for: .normal)
}
cell.old_price_line.isHidden = false
cell.new_price_Lbl.isHidden = false
if model.dbt_price == nil {
cell.old_price_line.isHidden = true
cell.new_price_Lbl.text = ""
}else{
cell.new_price_Lbl.text = "¥" + model.dbt_price!
}
cell.old_price_Lbl.text = model.price
cell.item_Icon_Img.sd_setImage(with:URL(string:SERVERCE_ImageHost + model.goods_thumb!), placeholderImage: nil,options:.allowInvalidSSLCertificates)
// cell.tag = indexPath.row
// cell.delegate = self
// let model = datas[indexPath.row]
// cell.title_Lbl.text = model.goods_name
// if model.dbt_sale != nil {
// cell.sell_total_Lbl.text = "销量: " + StringByInt(number: model.dbt_sale!)
// }else{
// cell.sell_total_Lbl.text = "销量: -"
// }
// if model.inventory != nil {
// cell.store_lbl.text = "库存: " + StringByInt(number: model.inventory!)
// }else{
// cell.store_lbl.text = "库存: -"
// }
// if model.commission_type == 1 {
// cell.FX_Percent_Lbl.text = StringByInt(number: model.commission_per!) + "%"
// cell.FX_Percent_Lbl.isHidden = false
// }else{
// cell.FX_Percent_Lbl.isHidden = true
// }
//
//
// cell.old_price_line.isHidden = false
// cell.new_price_Lbl.isHidden = false
// if model.dbt_price == nil {
// cell.old_price_line.isHidden = true
// cell.new_price_Lbl.text = ""
// }else{
// cell.new_price_Lbl.text = "¥" + model.dbt_price!
// }
// cell.old_price_Lbl.text = model.price
// cell.item_Icon_Img.sd_setImage(with:URL(string:SERVERCE_ImageHost + model.goods_thumb!), placeholderImage: nil,options:.allowInvalidSSLCertificates)
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 125
return 144
}
}
//
// GYS_FX_Product_VC_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/14.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class GYS_FX_Product_VC_Cell: UITableViewCell {
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
}
}
......@@ -82,12 +82,14 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
var role_type = 1
var inc_exp_type = 0
@IBOutlet weak var last_btn: UIButton!
var keyword = ""
@IBAction func top_btn_click(_ sender: UIButton) {
removeBlackBtnView()
if sender == left_btn {
left_btn.isSelected = true
right_btn.isSelected = false
last_btn.isSelected = false
self.bottom_line.snp.updateConstraints { (make) in
make.width.equalTo(ScreenWidth*0.5)
make.height.equalTo(3)
......@@ -95,12 +97,23 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
make.top.equalTo(self.left_btn.snp_bottom)
}
role_type = 1
}else{
}else if sender == right_btn{
left_btn.isSelected = false
right_btn.isSelected = true
last_btn.isSelected = false
role_type = 2
self.bottom_line.snp.updateConstraints { (make) in
make.left.width.equalTo(ScreenWidth*0.5)
make.left.width.equalTo(ScreenWidth*0.33)
make.height.equalTo(3)
make.top.equalTo(self.left_btn.snp_bottom)
}
}else{
left_btn.isSelected = false
right_btn.isSelected = false
last_btn.isSelected = true
// role_type = 2
self.bottom_line.snp.updateConstraints { (make) in
make.left.width.equalTo(ScreenWidth*0.66)
make.height.equalTo(3)
make.top.equalTo(self.left_btn.snp_bottom)
}
......
......@@ -620,80 +620,118 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
vc.isSQ = true
self.navigationController?.pushViewController(vc, animated: true)
return
case 131: //分销管理
HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 134: //分销商管理
// case 131: //分销管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 134: //分销商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
//// let vc = GYS_HZ_Vc()
//// vc.title_str = "分销商管理"
// let vc = DZGL_VC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 133: //供应商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = GYS_HZ_Vc()
// vc.title_str = "分销商管理"
let vc = DZGL_VC()
self.navigationController?.pushViewController(vc, animated: true)
return
case 133: //供应商管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = GYS_HZ_Vc()
vc.title_str = "供应商管理"
self.navigationController?.pushViewController(vc, animated: true)
return
case 139: //分销员管理
let vc = FXYGL_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 140://待审核分销员管理
let vc = DSHFXY_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 141://分销客户管理
let vc = KHXQ_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 142://分销收益管理
let vc = FXSY_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 136: //分销商品管理
// vc.title_str = "供应商管理"
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 139: //分销员管理
// let vc = FXYGL_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 140://待审核分销员管理
// let vc = DSHFXY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 141://分销客户管理
// let vc = KHXQ_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 142://分销收益管理
// let vc = FXSY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 136: //分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = FX_Product_GuanLiVC()
self.navigationController?.pushViewController(vc, animated: true)
return
case 137: //分销分账设置
// let vc = FX_Product_GuanLiVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 137: //分销分账设置
//只有当其为供应商才可以进入
// HUD.flash(.label("敬请期待"),delay: 1.2)
HUD.flash(.progress)
let UserToken = UserDefaults.standard.value(forKey: "user_token")
getDbtRule(["user_token":UserToken as Any]) { (data) in
let dataM = data as! getDbtRuleModel
if dataM.data?.is_sup == 1 {
HUD.hide()
let vc = DistributorSettingViewController()
vc.dataM = dataM.data
self.navigationController?.pushViewController(vc, animated: true)
}else{
HUD.flash(.label("仅供应商可使用该功能"),delay: 2.0)
}
} failture: { (error) in
}
return
case 132: //分销订单管理
let vc = RetailListMgVC()
self.navigationController?.pushViewController(vc, animated: true)
return
case 135: //供应商分销商品管理
// HUD.flash(.progress)
// let UserToken = UserDefaults.standard.value(forKey: "user_token")
// getDbtRule(["user_token":UserToken as Any]) { (data) in
// let dataM = data as! getDbtRuleModel
// if dataM.data?.is_sup == 1 {
// HUD.hide()
// let vc = DistributorSettingViewController()
// vc.dataM = dataM.data
// self.navigationController?.pushViewController(vc, animated: true)
// }else{
// HUD.flash(.label("仅供应商可使用该功能"),delay: 2.0)
// }
//
// } failture: { (error) in
//
// }
// return
// case 132: //分销订单管理
// let vc = RetailListMgVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 135: //供应商分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = GYS_FX_Product_ListVc()
self.navigationController?.pushViewController(vc, animated: true)
return
case 146://店长申请审核
let vc = DZSH_Mg_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
return
// let vc = GYS_FX_Product_ListVc()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 146://店长申请审核
// let vc = DZSH_Mg_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
// return
case 148://下游代理商管理
break
case 149://店长审核管理
break
case 150://下游店长管理
break
case 151://分销员审核管理
break
case 152://分销员管理
break
case 153://设置分销商品
break
case 154://设置代理商品
break
case 155://分销分账管理
break
case 156://分销客户管理
break
case 157://分销订单管理
break
case 159://上游供应商管理
break
case 160://下游店长管理
break
case 161://上游代理商商品
break
case 162://代理订单管理
break
case 164://上游供应商管理
break
case 165://上游代理商管理
break
case 166://上游供应商商品
break
case 167://上游代理商商品管理
break
case 168://店长订单管理
break
default:
break;
}
......
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