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

修改仓库编辑 必填

parent 6fe41933
<?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"/>
<dependencies>
<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="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......@@ -19,10 +19,7 @@
<autoresizingMask key="autoresizingMask"/>
<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">
<rect key="frame" x="15" y="0.0" width="80" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="80" id="bdp-Qd-CdZ"/>
</constraints>
<rect key="frame" x="15" y="0.0" width="66.5" height="44"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
......@@ -42,12 +39,12 @@
</constraints>
</view>
<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="标题字颜色"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<textInputTraits key="textInputTraits"/>
</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"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
......@@ -63,7 +60,7 @@
</constraints>
<color key="onTintColor" name="蓝色字体颜色"/>
</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"/>
<connections>
<action selector="btnAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="0b7-xP-8hW"/>
......
......@@ -23,7 +23,8 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
@IBOutlet weak var btnTitleLbl: UILabel!
@IBOutlet weak var listView: UITableView!
var titleStr:String?
let titleArr = ["仓库名称:","仓库类型:","包含库位:","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"]
let titleArr = ["仓库名称(必填):","仓库类型(必填):","包含库位(必填):","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"]
let titleArr1 = ["仓库名称:","仓库类型:","包含库位:","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"]
let placeHArr = ["请输入仓库名称","请选择仓库类型","请输入库位名","请输入仓库地址","请输入仓库容积","请输入仓库面积","请输入联系人","请输入联系人电话"]
var kuWeiArr:Array<ShopWarehouseDetailDataPositionModel>? = []
......@@ -116,7 +117,11 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
cell.delegate = self
if indexPath.section == 0 {//仓库名称等
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.btnImg.isHidden = true
cell.detailTF.returnKeyType = .done
......
<?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"/>
<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="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="CheckWareHourseViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CheckWareHourseViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="btnTitleLbl" destination="Il1-TV-CC8" id="ZxK-s6-x8I"/>
<outlet property="listView" destination="wre-tZ-eDu" id="rds-VX-rIT"/>
......@@ -22,7 +24,7 @@
<subviews>
<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"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
......@@ -60,6 +62,7 @@
<color key="backgroundColor" name="app底色"/>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="wre-tZ-eDu" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="LRd-R4-QoR"/>
......@@ -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="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="zh0-3b-lf1"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="110.49107142857143"/>
</view>
</objects>
<designables>
<designable name="3xa-Lo-irO">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......@@ -91,5 +98,8 @@
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</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