Commit 84e58190 authored by 刘俊宏's avatar 刘俊宏

修改仓库编辑 必填

parent 6fe41933
<?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="17156" 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="17126"/>
<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="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
...@@ -19,10 +19,7 @@ ...@@ -19,10 +19,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="仓库类型:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nns-NP-fAD"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="仓库类型:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nns-NP-fAD">
<rect key="frame" x="15" y="0.0" width="80" height="44"/> <rect key="frame" x="15" y="0.0" width="66.5" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="80" id="bdp-Qd-CdZ"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/> <color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -42,12 +39,12 @@ ...@@ -42,12 +39,12 @@
</constraints> </constraints>
</view> </view>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入库位名" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="zsG-fB-Zeb"> <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入库位名" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="zsG-fB-Zeb">
<rect key="frame" x="95" y="0.0" width="180" height="43"/> <rect key="frame" x="81.5" y="0.0" width="193.5" height="43"/>
<color key="textColor" name="标题字颜色"/> <color key="textColor" name="标题字颜色"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<textInputTraits key="textInputTraits"/> <textInputTraits key="textInputTraits"/>
</textField> </textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uEc-pe-iBV"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uEc-pe-iBV">
<rect key="frame" x="285" y="0.0" width="35" height="44"/> <rect key="frame" x="285" y="0.0" width="35" height="44"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections> <connections>
...@@ -63,7 +60,7 @@ ...@@ -63,7 +60,7 @@
</constraints> </constraints>
<color key="onTintColor" name="蓝色字体颜色"/> <color key="onTintColor" name="蓝色字体颜色"/>
</switch> </switch>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7Ya-ff-0NB"> <button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7Ya-ff-0NB">
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/> <rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
<connections> <connections>
<action selector="btnAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="0b7-xP-8hW"/> <action selector="btnAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="0b7-xP-8hW"/>
......
...@@ -23,7 +23,8 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa ...@@ -23,7 +23,8 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
@IBOutlet weak var btnTitleLbl: UILabel! @IBOutlet weak var btnTitleLbl: UILabel!
@IBOutlet weak var listView: UITableView! @IBOutlet weak var listView: UITableView!
var titleStr:String? var titleStr:String?
let titleArr = ["仓库名称:","仓库类型:","包含库位:","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"] let titleArr = ["仓库名称(必填):","仓库类型(必填):","包含库位(必填):","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"]
let titleArr1 = ["仓库名称:","仓库类型:","包含库位:","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"]
let placeHArr = ["请输入仓库名称","请选择仓库类型","请输入库位名","请输入仓库地址","请输入仓库容积","请输入仓库面积","请输入联系人","请输入联系人电话"] let placeHArr = ["请输入仓库名称","请选择仓库类型","请输入库位名","请输入仓库地址","请输入仓库容积","请输入仓库面积","请输入联系人","请输入联系人电话"]
var kuWeiArr:Array<ShopWarehouseDetailDataPositionModel>? = [] var kuWeiArr:Array<ShopWarehouseDetailDataPositionModel>? = []
...@@ -116,7 +117,11 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa ...@@ -116,7 +117,11 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
cell.delegate = self cell.delegate = self
if indexPath.section == 0 {//仓库名称等 if indexPath.section == 0 {//仓库名称等
cell.whSwitch.isHidden = true cell.whSwitch.isHidden = true
cell.titleLbl.text = titleArr[indexPath.row] if btnTitleLbl.text == "编辑" {
cell.titleLbl.text = titleArr1[indexPath.row]
}else{
cell.titleLbl.text = titleArr[indexPath.row]
}
cell.detailTF.placeholder = placeHArr[indexPath.row] cell.detailTF.placeholder = placeHArr[indexPath.row]
cell.btnImg.isHidden = true cell.btnImg.isHidden = true
cell.detailTF.returnKeyType = .done cell.detailTF.returnKeyType = .done
......
<?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="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" 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>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<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>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CheckWareHourseViewController" customModule="GeliBusinessPlatform" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CheckWareHourseViewController" customModule="TestClass" customModuleProvider="target">
<connections> <connections>
<outlet property="btnTitleLbl" destination="Il1-TV-CC8" id="ZxK-s6-x8I"/> <outlet property="btnTitleLbl" destination="Il1-TV-CC8" id="ZxK-s6-x8I"/>
<outlet property="listView" destination="wre-tZ-eDu" id="rds-VX-rIT"/> <outlet property="listView" destination="wre-tZ-eDu" id="rds-VX-rIT"/>
...@@ -22,7 +24,7 @@ ...@@ -22,7 +24,7 @@
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3xa-Lo-irO" customClass="LGButton" customModule="LGButton"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3xa-Lo-irO" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="83"/> <rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
<userDefinedRuntimeAttributes> <userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor"> <userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/> <color key="value" name="按钮渐变色上"/>
...@@ -60,6 +62,7 @@ ...@@ -60,6 +62,7 @@
<color key="backgroundColor" name="app底色"/> <color key="backgroundColor" name="app底色"/>
</tableView> </tableView>
</subviews> </subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints> <constraints>
<constraint firstItem="wre-tZ-eDu" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="LRd-R4-QoR"/> <constraint firstItem="wre-tZ-eDu" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="LRd-R4-QoR"/>
...@@ -74,10 +77,14 @@ ...@@ -74,10 +77,14 @@
<constraint firstItem="wre-tZ-eDu" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="uBn-YT-LCq"/> <constraint firstItem="wre-tZ-eDu" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="uBn-YT-LCq"/>
<constraint firstItem="wre-tZ-eDu" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="zh0-3b-lf1"/> <constraint firstItem="wre-tZ-eDu" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="zh0-3b-lf1"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="110.49107142857143"/> <point key="canvasLocation" x="131.8840579710145" y="110.49107142857143"/>
</view> </view>
</objects> </objects>
<designables>
<designable name="3xa-Lo-irO">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<resources> <resources>
<namedColor name="app底色"> <namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
...@@ -91,5 +98,8 @@ ...@@ -91,5 +98,8 @@
<namedColor name="白色背景色"> <namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="1" green="1" blue="1" 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>
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