Commit 9771b2dc authored by lujunye's avatar lujunye

asdfadfafdasdfas

parent aaee33d5
......@@ -353,6 +353,8 @@
E0AD92FA2550FD1500D82C17 /* GYS_FX_SearchViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0AD92F82550FD1500D82C17 /* GYS_FX_SearchViewController.xib */; };
E0AF740225FB16BA006AA336 /* queryStore_model.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0AF740125FB16BA006AA336 /* queryStore_model.swift */; };
E0AF740A25FB1747006AA336 /* queryStoreInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0AF740925FB1747006AA336 /* queryStoreInterface.swift */; };
E0AFE970261D45AF00BD2A74 /* NonSelectPiCi_View.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0AFE96F261D45AF00BD2A74 /* NonSelectPiCi_View.swift */; };
E0AFE975261D45BA00BD2A74 /* NonSelectPiCi_View.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0AFE974261D45BA00BD2A74 /* NonSelectPiCi_View.xib */; };
E0B28DAC24D3B15E00997C69 /* HuoLaLaDiZhiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B28DAA24D3B15E00997C69 /* HuoLaLaDiZhiCell.swift */; };
E0B28DAD24D3B15E00997C69 /* HuoLaLaDiZhiCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0B28DAB24D3B15E00997C69 /* HuoLaLaDiZhiCell.xib */; };
E0B5307E247266F400FFCC15 /* DKXDAdrCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B5307C247266F400FFCC15 /* DKXDAdrCell.swift */; };
......@@ -1139,6 +1141,8 @@
E0AD92F82550FD1500D82C17 /* GYS_FX_SearchViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GYS_FX_SearchViewController.xib; sourceTree = "<group>"; };
E0AF740125FB16BA006AA336 /* queryStore_model.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = queryStore_model.swift; sourceTree = "<group>"; };
E0AF740925FB1747006AA336 /* queryStoreInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = queryStoreInterface.swift; sourceTree = "<group>"; };
E0AFE96F261D45AF00BD2A74 /* NonSelectPiCi_View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NonSelectPiCi_View.swift; sourceTree = "<group>"; };
E0AFE974261D45BA00BD2A74 /* NonSelectPiCi_View.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NonSelectPiCi_View.xib; sourceTree = "<group>"; };
E0B28DAA24D3B15E00997C69 /* HuoLaLaDiZhiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HuoLaLaDiZhiCell.swift; sourceTree = "<group>"; };
E0B28DAB24D3B15E00997C69 /* HuoLaLaDiZhiCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HuoLaLaDiZhiCell.xib; sourceTree = "<group>"; };
E0B5307C247266F400FFCC15 /* DKXDAdrCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DKXDAdrCell.swift; sourceTree = "<group>"; };
......@@ -3532,6 +3536,8 @@
F97E73312552A22000A11F98 /* DistributorSettingAlertView.xib */,
E0F038FB2599C5F500721011 /* GLTimeSelectView.swift */,
E0F039002599C60200721011 /* GLTimeSelectView.xib */,
E0AFE96F261D45AF00BD2A74 /* NonSelectPiCi_View.swift */,
E0AFE974261D45BA00BD2A74 /* NonSelectPiCi_View.xib */,
);
path = AlertView;
sourceTree = "<group>";
......@@ -3934,6 +3940,7 @@
E0239203249069FD00C4C632 /* CGDXQVc.xib in Resources */,
F9B9FAC824DE409300ACDC8F /* UpBillDataTableViewCell.xib in Resources */,
E042F73D245288F800CDFA12 /* WenDuCell.xib in Resources */,
E0AFE975261D45BA00BD2A74 /* NonSelectPiCi_View.xib in Resources */,
E0974D6D25C140A600E3C86B /* S_Y_Detail_Vc.xib in Resources */,
E02DDD92244FE55400ABB707 /* NewCreateHeader.xib in Resources */,
F9956B1C2463D941001A617D /* WorkSelectTimeView.xib in Resources */,
......@@ -4453,6 +4460,7 @@
E0DA8AAA25E8F3D800425099 /* HLBLEManager.m in Sources */,
E0273DDD24551D4500B3FCAE /* OnlyLabelCell.swift in Sources */,
F950FDD724518B9500C40530 /* FSCalendarCollectionView.m in Sources */,
E0AFE970261D45AF00BD2A74 /* NonSelectPiCi_View.swift in Sources */,
E077DC5F255124B8000B0DA5 /* GYS_HZ_Vc.swift in Sources */,
E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */,
E09B03C62445BF6700211A51 /* NavBarView.swift in Sources */,
......
......@@ -282,8 +282,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate,UITabBarCont
let v2 = GoodsManageListVC()
let v3 = WorkCViewController()
// let v3 = CZ_Vc()
// let v3 = WorkCViewController()
let v3 = P_P_H_Adr_VC()
let v4 = WarehoseMangementListVC()
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" 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"/>
<dependencies>
<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="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>
......@@ -62,7 +63,7 @@
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="U7V-00-9eL" firstAttribute="centerX" secondItem="dR0-fY-HSt" secondAttribute="centerX" id="J1f-XI-0a7"/>
<constraint firstItem="3UA-fV-YPC" firstAttribute="top" secondItem="dR0-fY-HSt" secondAttribute="top" constant="15" id="Qig-rb-5VD"/>
......@@ -84,6 +85,7 @@
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="H1b-gu-ySU"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="dR0-fY-HSt" firstAttribute="centerY" secondItem="YjS-pf-BSo" secondAttribute="centerY" constant="-50" id="Ip1-Ql-Las"/>
......@@ -93,7 +95,6 @@
<constraint firstItem="1xk-Rr-MEN" firstAttribute="leading" secondItem="YjS-pf-BSo" secondAttribute="leading" id="oU0-wa-Eqf"/>
<constraint firstAttribute="trailing" secondItem="1xk-Rr-MEN" secondAttribute="trailing" id="tGm-8y-zbR"/>
</constraints>
<viewLayoutGuide key="safeArea" id="H1b-gu-ySU"/>
<point key="canvasLocation" x="-430" y="100"/>
</view>
</objects>
......@@ -106,5 +107,8 @@
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// NonSelectPiCi_View.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/4/7.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol NonSelectPiCi_View_Delegate {
func NonSelectPiCi_View_Submit()
}
class NonSelectPiCi_View: UIView {
var contentView:UIView!
var delegate:NonSelectPiCi_View_Delegate?
@IBAction func closeAction(_ sender: Any) {
self.removeFromSuperview()
}
@IBAction func submitAction(_ sender: Any) {
delegate?.NonSelectPiCi_View_Submit()
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
}
}
<?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="NonSelectPiCi_View" customModule="TestClass" customModuleProvider="target"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" alpha="0.40000000000000002" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="D5a-zD-aLA">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<color key="backgroundColor" name="标题字颜色"/>
<connections>
<action selector="closeAction:" destination="-1" eventType="touchUpInside" id="HRR-CG-wT3"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oCr-WU-W2z">
<rect key="frame" x="40" y="328.5" width="334" height="239"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="是否确认发货?" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iQa-dg-Oqa">
<rect key="frame" x="0.0" y="0.0" width="334" height="39"/>
<constraints>
<constraint firstAttribute="height" constant="39" id="5yd-eV-P2T"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="y86-Kn-KWV">
<rect key="frame" x="0.0" y="39" width="334" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="qGl-hO-Woj"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1. 若直接点击发货,未选择商品格利批次号,系统将自动选择批次号。" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xjJ-Kz-Uxs">
<rect key="frame" x="25" y="65" width="284" height="42"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2. 若不直接发货,请选择商品格利批次号发货。" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BPo-Dx-oe3">
<rect key="frame" x="25" y="122" width="284" height="42"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OlY-1d-4hQ">
<rect key="frame" x="0.0" y="189" width="334" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="OdG-tE-s7K"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="c4X-ME-gY5">
<rect key="frame" x="166.5" y="190" width="1" height="49"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="Dkq-dc-Rxx"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="SK1-TR-ezt">
<rect key="frame" x="167.5" y="190" width="166.5" height="49"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<state key="normal" title="确定">
<color key="titleColor" name="按钮背景颜色"/>
</state>
<connections>
<action selector="submitAction:" destination="-1" eventType="touchUpInside" id="6y0-4i-hG5"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mCd-aY-wHC">
<rect key="frame" x="0.0" y="190" width="166.5" height="49"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<state key="normal" title="取消">
<color key="titleColor" name="多选按钮字体颜色"/>
</state>
<connections>
<action selector="closeAction:" destination="-1" eventType="touchUpInside" id="4ik-rC-nsb"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="OlY-1d-4hQ" secondAttribute="bottom" constant="49" id="19Z-KL-5Vs"/>
<constraint firstItem="OlY-1d-4hQ" firstAttribute="leading" secondItem="oCr-WU-W2z" secondAttribute="leading" id="3JM-Y1-wzd"/>
<constraint firstAttribute="trailing" secondItem="xjJ-Kz-Uxs" secondAttribute="trailing" constant="25" id="3hb-2I-QBb"/>
<constraint firstItem="BPo-Dx-oe3" firstAttribute="leading" secondItem="oCr-WU-W2z" secondAttribute="leading" constant="25" id="58G-Px-WoH"/>
<constraint firstItem="mCd-aY-wHC" firstAttribute="top" secondItem="OlY-1d-4hQ" secondAttribute="bottom" id="6uk-bE-kJw"/>
<constraint firstItem="SK1-TR-ezt" firstAttribute="top" secondItem="OlY-1d-4hQ" secondAttribute="bottom" id="79V-gE-TiT"/>
<constraint firstAttribute="height" constant="239" id="8pF-gK-CHx"/>
<constraint firstItem="y86-Kn-KWV" firstAttribute="leading" secondItem="oCr-WU-W2z" secondAttribute="leading" id="CMx-ba-2Ae"/>
<constraint firstItem="iQa-dg-Oqa" firstAttribute="leading" secondItem="oCr-WU-W2z" secondAttribute="leading" id="D0E-VX-75n"/>
<constraint firstAttribute="trailing" secondItem="y86-Kn-KWV" secondAttribute="trailing" id="DDS-0n-b6Q"/>
<constraint firstItem="xjJ-Kz-Uxs" firstAttribute="leading" secondItem="oCr-WU-W2z" secondAttribute="leading" constant="25" id="Exf-ae-CDB"/>
<constraint firstItem="y86-Kn-KWV" firstAttribute="top" secondItem="iQa-dg-Oqa" secondAttribute="bottom" id="GEt-id-yEa"/>
<constraint firstAttribute="trailing" secondItem="SK1-TR-ezt" secondAttribute="trailing" id="Hci-Ru-6qn"/>
<constraint firstAttribute="bottom" secondItem="mCd-aY-wHC" secondAttribute="bottom" id="JMv-RQ-snS"/>
<constraint firstItem="BPo-Dx-oe3" firstAttribute="top" secondItem="xjJ-Kz-Uxs" secondAttribute="bottom" constant="15" id="Jus-im-PG9"/>
<constraint firstItem="c4X-ME-gY5" firstAttribute="top" secondItem="OlY-1d-4hQ" secondAttribute="bottom" id="Rwn-Mg-fCZ"/>
<constraint firstItem="c4X-ME-gY5" firstAttribute="centerX" secondItem="oCr-WU-W2z" secondAttribute="centerX" id="Vrk-bk-kZI"/>
<constraint firstItem="SK1-TR-ezt" firstAttribute="leading" secondItem="c4X-ME-gY5" secondAttribute="trailing" id="Xo3-Pj-2hv"/>
<constraint firstAttribute="trailing" secondItem="BPo-Dx-oe3" secondAttribute="trailing" constant="25" id="Yx8-qC-2mY"/>
<constraint firstAttribute="bottom" secondItem="SK1-TR-ezt" secondAttribute="bottom" id="cMa-g8-fwq"/>
<constraint firstItem="c4X-ME-gY5" firstAttribute="leading" secondItem="mCd-aY-wHC" secondAttribute="trailing" id="d5S-El-afT"/>
<constraint firstItem="mCd-aY-wHC" firstAttribute="leading" secondItem="oCr-WU-W2z" secondAttribute="leading" id="gXV-1S-NCU"/>
<constraint firstAttribute="trailing" secondItem="iQa-dg-Oqa" secondAttribute="trailing" id="tMz-II-zB8"/>
<constraint firstAttribute="trailing" secondItem="OlY-1d-4hQ" secondAttribute="trailing" id="ub5-ME-rCg"/>
<constraint firstItem="iQa-dg-Oqa" firstAttribute="top" secondItem="oCr-WU-W2z" secondAttribute="top" id="vNk-6V-WJH"/>
<constraint firstItem="xjJ-Kz-Uxs" firstAttribute="top" secondItem="y86-Kn-KWV" secondAttribute="bottom" constant="25" id="vhD-s6-BiA"/>
<constraint firstAttribute="bottom" secondItem="c4X-ME-gY5" secondAttribute="bottom" id="wwf-wt-bqZ"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="D5a-zD-aLA" secondAttribute="trailing" id="6Ln-d3-vSi"/>
<constraint firstAttribute="bottom" secondItem="D5a-zD-aLA" secondAttribute="bottom" id="9j3-lo-936"/>
<constraint firstItem="oCr-WU-W2z" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="HQN-lC-NKg"/>
<constraint firstItem="D5a-zD-aLA" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="QPW-Gj-VSR"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="oCr-WU-W2z" secondAttribute="trailing" constant="40" id="aCZ-t3-rzL"/>
<constraint firstItem="oCr-WU-W2z" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="40" id="bLU-Cv-Gsb"/>
<constraint firstItem="D5a-zD-aLA" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="rOQ-5k-li5"/>
</constraints>
<point key="canvasLocation" x="140.57971014492756" y="90.401785714285708"/>
</view>
</objects>
<resources>
<namedColor name="多选按钮字体颜色">
<color red="0.41176470588235292" green="0.41176470588235292" blue="0.41176470588235292" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮背景颜色">
<color red="0.2199999988079071" green="0.45500001311302185" blue="0.82700002193450928" 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>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
......@@ -231,47 +231,6 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
}
//MARK: - initUI
func initUI(){
let img = UIImageView()
img.image = UIImage(named: "beijing")
view.addSubview(img)
img.snp.makeConstraints { (make) in
make.top.right.left.equalTo(0)
make.height.equalTo(200)
}
let btn = LGButton()
btn.titleString = "确定"
btn.titleColor = UIColor.white
btn.titleFontSize = 13
btn.gradientStartColor = UIColor(named: "按钮渐变色上")
btn.gradientEndColor = UIColor(named: "按钮渐变色下,字体颜色")
btn.gradientHorizontal = true
btn.cornerRadius = 3
btn.addTarget(self, action: #selector(submitAction), for: .touchUpInside)
self.view.addSubview(btn)
btn.snp.makeConstraints { (make) in
make.top.equalTo(60)
make.right.equalTo(-20)
make.width.equalTo(60)
make.height.equalTo(30)
}
let btn2 = UIButton()
btn2.setTitle("取消", for: .normal)
btn2.backgroundColor = UIColor(named: "灰色分界线")
btn2.setTitleColor(UIColor(named: "个人中心灰色字体"), for: .normal)
btn2.titleLabel?.font = UIFont.systemFont(ofSize: 13)
btn2.addTarget(self, action: #selector(backAction), for: .touchUpInside)
self.view.addSubview(btn2)
btn2.snp.makeConstraints { (make) in
make.top.equalTo(60)
make.left.equalTo(20)
make.width.equalTo(60)
make.height.equalTo(30)
}
}
func initBtmView(view:UIView){
let tbv = UITableView()
tbv.separatorStyle = .none
......
......@@ -16,12 +16,12 @@ class CZ_Vc: BaseViewController {
@IBOutlet weak var bank_name: UILabel!
@IBOutlet weak var user_account: UILabel!
@IBAction func copy_action(_ sender: UIButton) {
// let pastboard = UIPasteboard.general
// pastboard.string = bank_account_number.text
// HUD.flash(.success, delay: 0.5)
let pastboard = UIPasteboard.general
pastboard.string = bank_account_number.text
HUD.flash(.success, delay: 0.5)
let view = P_P_H_Time_Select_View(frame: self.view.bounds)
self.view.addSubview(view)
// let view = P_P_H_Time_Select_View(frame: self.view.bounds)
// self.view.addSubview(view)
}
override func viewDidLoad() {
super.viewDidLoad()
......
......@@ -7,15 +7,151 @@
//
import UIKit
import SwiftyJSON
class P_P_H_Adr_VC: BaseViewController {
class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerViewDataSource, UIPickerViewDelegate {
var dzStr = ""
var detailDzStr = ""
var btmView:UIView?
var bgBtn:UIButton?
//选择的省索引
var provinceIndex = 0
//选择的市索引
var cityIndex = 0
//选择的区(县)索引
var areaIndex = 0
func SJMapViewControllerSelectArd(adr: String, cityData: String) {
dzStr = cityData
let arr = cityData.components(separatedBy: "-")
for i in 0 ..< addressArray.count {
let provinceData = addressArray[i] as! Dictionary<String,Any>
if provinceData["area_name"] as! String == arr.first! {
let cityArr = provinceData["city_list"] as! Array<Dictionary<String,Any>>
for j in 0 ..< cityArr.count {
let cityData = cityArr[j]
if cityData["area_name"] as! String == arr[1] {
let areaArr = cityData["district_list"] as! Array<Dictionary<String,Any>>
for k in 0 ..< areaArr.count {
let areaData = areaArr[k]
if areaData["area_name"] as! String == arr.last {
provinceIndex = i
cityIndex = j
areaIndex = k
}
}
}
}
}
}
detailDzStr = adr
}
@IBAction func submit_action(_ sender: Any) {
}
@IBAction func map_select_loc(_ sender: Any) {
let vc = SJMapViewController()
vc.delegate = self
self.navigationController?.pushViewController(vc, animated: true)
}
@objc func adrSelectFinish(sender:UIButton){
var proName = ""
var cityName = ""
var areaName = ""
let proDict = addressArray[provinceIndex] as! Dictionary<String,Any>
proName = proDict["area_name"] as! String
if (proDict["city_list"] as! NSArray).count > 0 {
let cityDict = (proDict["city_list"] as! NSArray)[cityIndex] as! [String: AnyObject]
cityName = cityDict["area_name"] as! String
if (cityDict["district_list"] as! NSArray).count > 0 {
let areaDict = (cityDict["district_list"] as! NSArray)[areaIndex] as! Dictionary<String,Any>
areaName = areaDict["area_name"] as! String
}
}
var selectAdr = proName
if cityName.count > 0 {
selectAdr = proName + "-" + cityName
if areaName.count > 0 {
selectAdr = proName + "-" + cityName + "-" + areaName
}
}
dzStr = selectAdr
bgBtn?.removeFromSuperview()
btmView?.subviews.forEach({ (view) in
view.removeFromSuperview()
})
btmView?.removeFromSuperview()
btmView = nil
bgBtn = nil
}
@objc func closeAction(sender:UIButton){
bgBtn?.removeFromSuperview()
btmView?.subviews.forEach({ (view) in
view.removeFromSuperview()
})
btmView?.removeFromSuperview()
btmView = nil
bgBtn = nil
}
@IBAction func adr_select_action(_ sender: UIButton) {
if bgBtn == nil {
let btn = UIButton()
self.view.addSubview(btn)
btn.backgroundColor = UIColor.black
btn.alpha = 0.4
btn.addTarget(self, action: #selector(closeAction(sender:)), for: .touchUpInside)
btn.snp.makeConstraints { (make) in
make.top.right.bottom.left.equalTo(0)
}
bgBtn = btn
}
if btmView == nil {
let view = UIView()
view.backgroundColor = UIColor.white
btmView = view
self.view.addSubview(btmView!)
btmView!.snp.makeConstraints { (make) in
make.left.bottom.right.equalTo(0)
make.height.equalTo(230)
}
showAreaSelect(view:btmView!)
let rightBtn = UIButton()
rightBtn.setTitle("确定", for: .normal)
rightBtn.setTitleColor(UIColor(named: "蓝色字体颜色"), for: .normal)
rightBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
rightBtn.addTarget(self, action: #selector(adrSelectFinish(sender:)), for: .touchUpInside)
btmView?.addSubview(rightBtn)
rightBtn.snp.makeConstraints { (make) in
make.right.equalTo(-15)
make.top.equalTo(0)
make.height.equalTo(30)
make.width.equalTo(50)
}
let leftBtn = UIButton()
leftBtn.setTitle("取消", for: .normal)
leftBtn.setTitleColor(UIColor(named: "多选按钮字体颜色"), for: .normal)
leftBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
leftBtn.addTarget(self, action: #selector(closeAction(sender:)), for: .touchUpInside)
btmView?.addSubview(leftBtn)
leftBtn.snp.makeConstraints { (make) in
make.left.equalTo(15)
make.top.equalTo(0)
make.height.equalTo(30)
make.width.equalTo(50)
}
}
}
@IBOutlet weak var city_lbl: UILabel!
@IBOutlet weak var top_view: UIView!
override func viewDidLoad() {
......@@ -29,17 +165,183 @@ class P_P_H_Adr_VC: BaseViewController {
make.right.equalTo(-15)
make.height.equalTo(200)
}
getIndex()
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
func getIndex(){
let path = Bundle.main.path(forResource: "address_new", ofType: "json")
let url = URL(fileURLWithPath: path!)
// 带throws的方法需要抛异常
do {
let data = try Data(contentsOf: url)
let jsonData = JSON(data)
print("地址文件数据",jsonData["data"])
self.addressArray = jsonData["data"].arrayObject!
for i in 0 ..< addressArray.count {
let item = addressArray[i] as! Dictionary<String,Any>
if item["area_id"] as! Int == provinceIndex {
let citys = item["city_list"] as! Array<Dictionary<String,Any>>
if citys.count == 0 {
provinceIndex = i
dzStr = item["area_name"]! as! String
}
for j in 0 ..< citys.count {
let cItem = citys[j]
if cItem["area_id"] as! Int == cityIndex {
let districts = cItem["district_list"] as! Array<Dictionary<String,Any>>
if districts.count == 0 {
cityIndex = j
dzStr = "\(item["area_name"]!)-\(cItem["area_name"]!)"
}
for k in 0 ..< districts.count{
let dItem = districts[k]
if dItem["area_id"] as! Int == areaIndex{
provinceIndex = i
cityIndex = j
areaIndex = k
dzStr = "\(item["area_name"]!)-\(cItem["area_name"]!)-\(dItem["area_name"]!)"
break
}
}
}
}
}else{
provinceIndex = 0
cityIndex = 0
areaIndex = 0
}
}
} catch let error as Error? {
print("读取本地数据出现错误!",error as Any)
}
}
*/
//MARK:--地址选择器
func showAreaSelect(view:UIView){
//创建选择器
pickerView=UIPickerView()
//将dataSource设置成自己
pickerView.dataSource=self
//将delegate设置成自己
pickerView.delegate=self
view.addSubview(pickerView)
pickerView.snp.makeConstraints { (make) in
make.top.equalTo(30)
make.left.right.bottom.equalTo(0)
}
pickerView.selectRow(provinceIndex, inComponent: 0, animated: false)
pickerView(pickerView, didSelectRow: provinceIndex, inComponent: 0)
pickerView.selectRow(cityIndex, inComponent: 1, animated: false)
pickerView(pickerView, didSelectRow: cityIndex, inComponent: 1)
pickerView.selectRow(areaIndex, inComponent: 2, animated: false)
pickerView(pickerView, didSelectRow: areaIndex, inComponent: 2)
}
//选择器
var pickerView:UIPickerView!
//所以地址数据集合
var addressArray:Array<Any> = []
//设置选择框的列数为3列,继承于UIPickerViewDataSource协议
func numberOfComponents(in pickerView: UIPickerView) -> Int {
return 3
}
//设置选择框的行数,继承于UIPickerViewDataSource协议
func pickerView(_ pickerView: UIPickerView,
numberOfRowsInComponent component: Int) -> Int {
if component == 0 {
return self.addressArray.count
} else if component == 1 {
print("alkjdflkasd == ",provinceIndex)
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
return (province["city_list"]! as! NSArray).count
} else {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
if (province["city_list"] as! NSArray).count == 0 {
return 0
}
if let city = (province["city_list"] as! NSArray)[cityIndex]
as? [String: AnyObject] {
print(city["district_list"] as Any)
return (city["district_list"]! as! NSArray).count
} else {
return 0
}
}
}
//设置选择框各选项的内容,继承于UIPickerViewDelegate协议
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int,
forComponent component: Int) -> String? {
if component == 0 {
let rowDic = self.addressArray[row] as! Dictionary<String,Any>
return rowDic["area_name"] as? String
}else if component == 1 {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[row]
as! [String: AnyObject]
return city["area_name"] as? String
}else {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[cityIndex]
as! [String: AnyObject]
let area = (city["district_list"] as! NSArray)[row] as! Dictionary<String,Any>
return area["area_name"] as? String
}
}
//选中项改变事件(将在滑动停止后触发)
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int,
inComponent component: Int) {
//根据列、行索引判断需要改变数据的区域
switch (component) {
case 0:
provinceIndex = row;
pickerView.reloadComponent(1);
pickerView.reloadComponent(2);
pickerView.selectRow(cityIndex, inComponent: 1, animated: false)
pickerView.selectRow(areaIndex, inComponent: 2, animated: false)
case 1:
cityIndex = row;
pickerView.reloadComponent(2);
pickerView.selectRow(areaIndex, inComponent: 2, animated: false)
case 2:
areaIndex = row;
default:
break;
}
}
//自定义UIPickerView
func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
let genderLbl = UILabel()
genderLbl.textAlignment = .center
genderLbl.font = UIFont.systemFont(ofSize: 15)
genderLbl.textColor = UIColor.init(named: "标题字颜色")
if component == 0 {
let rowDic = self.addressArray[row] as! Dictionary<String,Any>
genderLbl.text = rowDic["area_name"] as? String
}else if component == 1 {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[row]
as! [String: AnyObject]
genderLbl.text = city["area_name"] as? String
}else {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[cityIndex]
as! [String: AnyObject]
let area = (city["district_list"] as! NSArray)[row] as! Dictionary<String,Any>
genderLbl.text = area["area_name"] as? String
}
return genderLbl
}
}
......@@ -177,6 +177,9 @@
<constraint firstAttribute="width" constant="60" id="uUx-C1-i6n"/>
</constraints>
<state key="normal" image="Gloc"/>
<connections>
<action selector="map_select_loc:" destination="-1" eventType="touchUpInside" id="zwk-BV-FQf"/>
</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="hi6-hO-U5J">
<rect key="frame" x="10" y="0.0" width="39" height="49"/>
......
......@@ -11,7 +11,17 @@ import Photos
protocol OrderDViewControllerDelegate {
func refishingOrderDchange()
}
class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GuanLianKehuVCDelegate,OrderDViewFooterViewDelegate,TitleAndTFCellDelegate,GeliAlertViewDelegate,GLAlertSelectViewDelegate,XiuGaiYuShouJiaViewControllerDelegate,ChangeGoodsPriceVCDelegate,GeliAlertTextFiledDelegate,GeliAlertTextViewDelegate,UpBillDataTableViewCellDelegate, DaiKeXiaDanGouWuCellDelegate, S_Y_View_Delegate, PiCiXuanZeViewControllerDelegate1{
class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GuanLianKehuVCDelegate,OrderDViewFooterViewDelegate,TitleAndTFCellDelegate,GeliAlertViewDelegate,GLAlertSelectViewDelegate,XiuGaiYuShouJiaViewControllerDelegate,ChangeGoodsPriceVCDelegate,GeliAlertTextFiledDelegate,GeliAlertTextViewDelegate,UpBillDataTableViewCellDelegate, DaiKeXiaDanGouWuCellDelegate, S_Y_View_Delegate, PiCiXuanZeViewControllerDelegate1,NonSelectPiCi_View_Delegate{
func NonSelectPiCi_View_Submit() {
sendOut(["user_token":UserToken as Any,"order_id" : self.dataMdoel?.order_res?.order_id as Any,"goods_info":[] as Any], success: { (data) in
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
self.delegate?.refishingOrderDchange()
self.loadData()
}) { (error) in
}
}
var piCiArr:Array<Array<GetGoodBatchDataModel>>? = []
func PiCiXuanZeViewControllerPiCiSelect(data: Array<GetGoodBatchDataModel>, p_id: Int) {
......@@ -1631,6 +1641,56 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self.view.window?.addSubview(alertView)
break
case "发货":
piciData = ""
var goodsInfoArr:Array<Any> = []
for i in 0 ..< (dataMdoel?.order_goods?.count)! {
let item = dataMdoel?.order_goods![i]
var count = 0
let pici = piCiArr![i]
if pici.count == 0 {
HUD.flash(.label("请选择出库商品批次"), delay: 1.2)
let vc = NonSelectPiCi_View(frame: self.view.bounds)
vc.delegate = self
self.view.window?.addSubview(vc)
return
}
for data in pici {
count += data.chuHuoLiang!
}
var batchInfo:Array<Any> = []
piCiArr!.forEach { (batchArr) in
batchArr.forEach { (model) in
let batch = [
"w_id":model.w_id as Any,
"p_id":model.p_id as Any,
"number":model.chuHuoLiang as Any,
"production_data":model.production_data as Any,
"shelf_life":model.shelf_life as Any,
"valid_date":model.valid_date as Any,
"batch_id":model.batch_id as Any,
"report_id":model.report_id as Any,
"ven_id":model.ven_id as Any
]
batchInfo.append(batch)
}
}
let goods = [
"goods_id":item!.goods_id as Any,
"goods_name":item!.goods_name as Any,
"goods_spec":item!.goods_attr as Any,
"sku_id":item!.sku_id as Any,
"number":count as Any,
"batch_info":batchInfo as Any,
]
goodsInfoArr.append(goods)
}
piciData = dataChangeString(sender: goodsInfoArr)
let alertView = GeliAlertView(frame: self.view.window!.bounds)
alertView.delegate = self;
alertView.tishiLbl.text = ""
......@@ -1803,6 +1863,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
//MARK:--确认和取消订单
//MARK:--弹窗代理 --还有其他弹窗,根据tag分类
var piciData = ""
func sureGeliAlertViewAction(sender: UIButton) {
if sender.tag == 1001 {
......@@ -1840,51 +1901,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}else{
var goodsInfoArr:Array<Any> = []
for i in 0 ..< (dataMdoel?.order_goods?.count)! {
let item = dataMdoel?.order_goods![i]
var count = 0
let pici = piCiArr![i]
if pici.count == 0 {
HUD.flash(.label("请选择出库商品批次"), delay: 1.2)
return
}
for data in pici {
count += data.chuHuoLiang!
}
var batchInfo:Array<Any> = []
piCiArr!.forEach { (batchArr) in
batchArr.forEach { (model) in
let batch = [
"w_id":model.w_id as Any,
"p_id":model.p_id as Any,
"number":model.chuHuoLiang as Any,
"production_data":model.production_data as Any,
"shelf_life":model.shelf_life as Any,
"valid_date":model.valid_date as Any,
"batch_id":model.batch_id as Any,
"report_id":model.report_id as Any,
"ven_id":model.ven_id as Any
]
batchInfo.append(batch)
}
}
let goods = [
"goods_id":item!.goods_id as Any,
"goods_name":item!.goods_name as Any,
"goods_spec":item!.goods_attr as Any,
"sku_id":item!.sku_id as Any,
"number":count as Any,
"batch_info":batchInfo as Any,
]
goodsInfoArr.append(goods)
}
sendOut(["user_token":UserToken as Any,"order_id" : self.dataMdoel?.order_res?.order_id as Any,"goods_info":dataChangeString(sender: goodsInfoArr) as Any], success: { (data) in
sendOut(["user_token":UserToken as Any,"order_id" : self.dataMdoel?.order_res?.order_id as Any,"goods_info":piciData as Any], success: { (data) in
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"),delay: 1.2)
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
self.delegate?.refishingOrderDchange()
......
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