Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
84e58190
Commit
84e58190
authored
Nov 05, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改仓库编辑 必填
parent
6fe41933
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
15 deletions
+27
-15
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
+6
-9
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
...ontroller/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
+6
-1
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.xib
...wController/新增、编辑(查看)仓库/CheckWareHourseViewController.xib
+15
-5
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
84e58190
No preview for this file type
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
View file @
84e58190
<?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=
"1
6097.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=
"1
7156
"
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=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7126
"
/>
<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"
/>
...
...
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
View file @
84e58190
...
@@ -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
if
btnTitleLbl
.
text
==
"编辑"
{
cell
.
titleLbl
.
text
=
titleArr1
[
indexPath
.
row
]
}
else
{
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
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
...
...
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.xib
View file @
84e58190
<?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=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7156
"
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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment