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
14033b12
Commit
14033b12
authored
Apr 29, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增、编辑客户
parent
f9b4b667
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
330 additions
and
2 deletions
+330
-2
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+24
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/moren.imageset/Contents.json
...sPlatform/Assets.xcassets/仓库/moren.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/仓库/moren.imageset/moren@2x.png
...ssPlatform/Assets.xcassets/仓库/moren.imageset/moren@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/moren.imageset/moren@3x.png
...ssPlatform/Assets.xcassets/仓库/moren.imageset/moren@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/订单管理/dianhua.imageset/Contents.json
...tform/Assets.xcassets/订单管理/dianhua.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/订单管理/dianhua.imageset/dianhua@2x.png
...form/Assets.xcassets/订单管理/dianhua.imageset/dianhua@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/订单管理/dianhua.imageset/dianhua@3x.png
...form/Assets.xcassets/订单管理/dianhua.imageset/dianhua@3x.png
+0
-0
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+2
-1
GeliBusinessPlatform/View/NavBarView/NavBarView.swift
GeliBusinessPlatform/View/NavBarView/NavBarView.swift
+5
-1
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeCell.xib
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeCell.xib
+4
-0
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.swift
...BusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.swift
+38
-0
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.xib
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.xib
+0
-0
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
...wController/客户管理/XinZengAndBianJiKeHuViewController.swift
+101
-0
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.xib
...iewController/客户管理/XinZengAndBianJiKeHuViewController.xib
+110
-0
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
14033b12
...
...
@@ -56,6 +56,8 @@
E0336DD6244EC40000380BE9
/* CreatNewSpecsViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
;
};
E03549A8245820C2008BD021
/* PiCiXuanZeCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03549A6245820C2008BD021
/* PiCiXuanZeCell.swift */
;
};
E03549A9245820C2008BD021
/* PiCiXuanZeCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03549A7245820C2008BD021
/* PiCiXuanZeCell.xib */
;
};
E03549AD24582828008BD021
/* KeHuGuanLiCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03549AB24582828008BD021
/* KeHuGuanLiCell.swift */
;
};
E03549AE24582828008BD021
/* KeHuGuanLiCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03549AC24582828008BD021
/* KeHuGuanLiCell.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 */
;
};
...
...
@@ -166,6 +168,8 @@
E0DDCB19244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB17244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib */
;
};
E0DDCB1D244AE81800DF54C7
/* GuanLianKeHuCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB1B244AE81800DF54C7
/* GuanLianKeHuCell.swift */
;
};
E0DDCB1E244AE81800DF54C7
/* GuanLianKeHuCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB1C244AE81800DF54C7
/* GuanLianKeHuCell.xib */
;
};
E0F3C2CB24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F3C2C924590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift */
;
};
E0F3C2CC24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F3C2CA24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.xib */
;
};
E0F97B022451228A001BD600
/* GLAlertSelectView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B012451228A001BD600
/* GLAlertSelectView.swift */
;
};
E0F97B0424512299001BD600
/* GLAlertSelectView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B0324512299001BD600
/* GLAlertSelectView.xib */
;
};
E0F97B082451620B001BD600
/* ProductDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B062451620B001BD600
/* ProductDetailViewController.swift */
;
};
...
...
@@ -341,6 +345,8 @@
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CreatNewSpecsViewController.xib
;
sourceTree
=
"<group>"
;
};
E03549A6245820C2008BD021
/* PiCiXuanZeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PiCiXuanZeCell.swift
;
sourceTree
=
"<group>"
;
};
E03549A7245820C2008BD021
/* PiCiXuanZeCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PiCiXuanZeCell.xib
;
sourceTree
=
"<group>"
;
};
E03549AB24582828008BD021
/* KeHuGuanLiCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KeHuGuanLiCell.swift
;
sourceTree
=
"<group>"
;
};
E03549AC24582828008BD021
/* KeHuGuanLiCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KeHuGuanLiCell.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>"
;
};
...
...
@@ -460,6 +466,8 @@
E0DDCB17244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
XiuGaiYuShouJiaViewController.xib
;
sourceTree
=
"<group>"
;
};
E0DDCB1B244AE81800DF54C7
/* GuanLianKeHuCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GuanLianKeHuCell.swift
;
sourceTree
=
"<group>"
;
};
E0DDCB1C244AE81800DF54C7
/* GuanLianKeHuCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GuanLianKeHuCell.xib
;
sourceTree
=
"<group>"
;
};
E0F3C2C924590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
XinZengAndBianJiKeHuViewController.swift
;
sourceTree
=
"<group>"
;
};
E0F3C2CA24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
XinZengAndBianJiKeHuViewController.xib
;
sourceTree
=
"<group>"
;
};
E0F97B012451228A001BD600
/* GLAlertSelectView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GLAlertSelectView.swift
;
sourceTree
=
"<group>"
;
};
E0F97B0324512299001BD600
/* GLAlertSelectView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GLAlertSelectView.xib
;
sourceTree
=
"<group>"
;
};
E0F97B062451620B001BD600
/* ProductDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ProductDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -783,6 +791,17 @@
path
=
"新增规格"
;
sourceTree
=
"<group>"
;
};
E03549AA24582806008BD021
/* 客户管理 */
=
{
isa
=
PBXGroup
;
children
=
(
E03549AB24582828008BD021
/* KeHuGuanLiCell.swift */
,
E03549AC24582828008BD021
/* KeHuGuanLiCell.xib */
,
E0F3C2C924590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift */
,
E0F3C2CA24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.xib */
,
);
path
=
"客户管理"
;
sourceTree
=
"<group>"
;
};
E042F72B245272AC00CDFA12
/* 代客下单(货运) */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -936,6 +955,7 @@
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
isa
=
PBXGroup
;
children
=
(
E03549AA24582806008BD021
/* 客户管理 */
,
E06524EA2458006600CA22E2
/* 入库 */
,
E02C88232456B23400925766
/* 物流跟踪 */
,
E02FD9F3245578D800E10E27
/* 地址管理 */
,
...
...
@@ -1587,6 +1607,7 @@
E0D197C7244845FD002B080C
/* PersonCenterViewController.xib in Resources */
,
E02DDD83244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib in Resources */
,
E00E48CB2457D96100F16545
/* ChuRuKuJiLuXQViewController.xib in Resources */
,
E03549AE24582828008BD021
/* KeHuGuanLiCell.xib in Resources */
,
E0A2E816245527CB00D6DB34
/* OrderSuccessViewController.xib in Resources */
,
F950FDB12451811A00C40530
/* TitleAndSelCalendarView.xib in Resources */
,
E0B946282456775000FBEC9A
/* DaiKeXiaDanGouWuCell.xib in Resources */
,
...
...
@@ -1656,6 +1677,7 @@
E042F74124528CD500CDFA12
/* TitleAndOnlyBtnCell.xib in Resources */
,
E0D46C5724503EC50087B564
/* TitleAndSelectCell.xib in Resources */
,
E0A2E82C24555D8600D6DB34
/* KuCunXiangQingCell.xib in Resources */
,
E0F3C2CC24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.xib in Resources */
,
E02C88272456B24F00925766
/* WuLiuGenZongViewController.xib in Resources */
,
E0C4F4A8244EC82A00CC7E2F
/* TitleAndBtnCell.xib in Resources */
,
E02FD9F72455790800E10E27
/* DiZhiGuanLiCell.xib in Resources */
,
...
...
@@ -1763,6 +1785,7 @@
E09B03C32445BD9500211A51
/* NavViewController.swift in Sources */
,
E06524F124580AAC00CA22E2
/* RuKuJiaGeCell.swift in Sources */
,
E042F7382452766100CDFA12
/* AdressSelectCell.swift in Sources */
,
E03549AD24582828008BD021
/* KeHuGuanLiCell.swift in Sources */
,
F95567A72453DA86009674AB
/* WarehoseMangementListVC.swift in Sources */
,
F933F6CF2452C68B00189561
/* PKHUDErrorView.swift in Sources */
,
F933F6C42452C68B00189561
/* PKHUD.swift in Sources */
,
...
...
@@ -1781,6 +1804,7 @@
F950FDE824518CD800C40530
/* TimeSelectView.swift in Sources */
,
F933F6C72452C68B00189561
/* PKHUDWideBaseView.swift in Sources */
,
E02DDD85244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift in Sources */
,
E0F3C2CB24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift in Sources */
,
E0D197C02448431C002B080C
/* BabyCentralManager.m in Sources */
,
F95D9CA424493E840080D6E3
/* ShopInfoViewController.swift in Sources */
,
F9171EFC245128B200359C2B
/* Interface.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
14033b12
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/仓库/moren.imageset/Contents.json
0 → 100644
View file @
14033b12
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"moren@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"moren@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/仓库/moren.imageset/moren@2x.png
0 → 100644
View file @
14033b12
3.34 KB
GeliBusinessPlatform/Assets.xcassets/仓库/moren.imageset/moren@3x.png
0 → 100644
View file @
14033b12
6.3 KB
GeliBusinessPlatform/Assets.xcassets/订单管理/dianhua.imageset/Contents.json
0 → 100644
View file @
14033b12
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"dianhua@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"dianhua@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/订单管理/dianhua.imageset/dianhua@2x.png
0 → 100644
View file @
14033b12
1.26 KB
GeliBusinessPlatform/Assets.xcassets/订单管理/dianhua.imageset/dianhua@3x.png
0 → 100644
View file @
14033b12
2.22 KB
GeliBusinessPlatform/SceneDelegate.swift
View file @
14033b12
...
...
@@ -41,7 +41,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
// vc.delegate = self
// let contentView = vc
let
vc
=
PiCiXuanZeViewController
()
let
vc
=
XinZengAndBianJiKeHuViewController
()
vc
.
titleStr
=
"新增"
let
contentView
=
vc
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
...
...
GeliBusinessPlatform/View/NavBarView/NavBarView.swift
View file @
14033b12
...
...
@@ -43,7 +43,11 @@ class NavBarView: BaseView {
}
}
}
var
rightBtnColor
:
UIColor
?{
didSet
{
rightBtn
.
setTitleColor
(
rightBtnColor
,
for
:
.
normal
)
}
}
var
leftImg
:
UIImage
?{
didSet
{
leftImgV
.
image
=
leftImg
...
...
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeCell.xib
View file @
14033b12
...
...
@@ -61,6 +61,7 @@
<constraints>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"gMi-WY-5yp"
/>
</constraints>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
...
...
@@ -141,5 +142,8 @@
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.swift
0 → 100644
View file @
14033b12
//
// KeHuGuanLiCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/28.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
KeHuGuanLiCell
:
UITableViewCell
{
@IBOutlet
weak
var
iconImg
:
UIImageView
!
@IBOutlet
weak
var
compenyLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
statusLbl1
:
UILabel
!
@IBOutlet
weak
var
statusLbl2
:
UILabel
!
@IBOutlet
weak
var
statusLbl3
:
UILabel
!
@IBAction
func
phoneCallAction
(
_
sender
:
Any
)
{
}
@IBAction
func
editAction
(
_
sender
:
Any
)
{
}
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
}
}
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.xib
0 → 100644
View file @
14033b12
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
0 → 100644
View file @
14033b12
//
// XinZengAndBianJiKeHuViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/29.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
import
LGButton
class
XinZengAndBianJiKeHuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
{
var
kehuName
:
String
=
""
var
phoneNum
:
String
=
""
var
companyName
:
String
=
""
var
bindKehu
:
String
=
""
var
KehuType
:
String
=
""
var
discount
:
String
=
""
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
var
titleStr
:
String
?
@IBOutlet
weak
var
bottomBtn
:
LGButton
!
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
titleStr
if
(
titleStr
?
.
contains
(
"编辑"
))
!
{
navbar
.
rightTitle
=
"删除"
navbar
.
rightBtnColor
=
UIColor
(
named
:
"#F57575"
)
}
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
listView
.
isScrollEnabled
=
false
listView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
height
.
equalTo
(
294
)
make
.
right
.
left
.
equalTo
(
0
)
}
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
if
discount
.
count
==
0
||
kehuName
.
count
==
0
||
KehuType
.
count
==
0
||
bindKehu
.
count
==
0
||
phoneNum
.
count
==
0
||
companyName
.
count
==
0
{
bottomBtn
.
alpha
=
0.5
bottomBtn
.
isUserInteractionEnabled
=
false
}
}
let
titleArr
=
[
"客户名称:"
,
"客户手机号码: "
,
"客户公司名称:"
,
"绑定客户:"
,
"客户类型:"
,
"客户折扣:"
]
let
holderArr
=
[
"请输入客户名"
,
"请输入手机号码"
,
"请输入公司名称"
,
"搜索绑定"
,
"请选择客户类型"
,
"请输入折扣数值"
]
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
titleArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
row
==
3
||
indexPath
.
row
==
4
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
holderArr
[
indexPath
.
row
]
if
indexPath
.
row
==
3
{
if
bindKehu
.
count
>
0
{
cell
.
contentLbl
.
text
=
bindKehu
}
}
else
{
if
KehuType
.
count
>
0
{
cell
.
contentLbl
.
text
=
KehuType
}
}
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
textTF
.
placeholder
=
holderArr
[
indexPath
.
row
]
if
(
titleStr
?
.
contains
(
"编辑"
))
!
{
cell
.
textTF
.
clearButtonMode
=
.
always
}
switch
indexPath
.
row
{
case
0
:
kehuName
=
cell
.
textTF
.
text
!
break
case
1
:
phoneNum
=
cell
.
textTF
.
text
!
break
case
2
:
companyName
=
cell
.
textTF
.
text
!
break
case
5
:
discount
=
cell
.
textTF
.
text
!
break
default
:
break
}
return
cell
}
}
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.xib
0 → 100644
View file @
14033b12
<?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"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<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"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XinZengAndBianJiKeHuViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"bottomBtn"
destination=
"Hbo-FL-O2S"
id=
"gfj-Jr-rtv"
/>
<outlet
property=
"listView"
destination=
"lZh-U4-Q33"
id=
"thn-cy-mca"
/>
<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=
"Hbo-FL-O2S"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientEndColor"
>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"valueChanged"
id=
"eoB-XF-F8m"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jMG-ga-6QQ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"cCL-x2-Fe8"
/>
</constraints>
<attributedString
key=
"attributedText"
>
<fragment
content=
"保存"
>
<attributes>
<color
key=
"NSColor"
name=
"白色背景色"
/>
<font
key=
"NSFont"
size=
"17"
name=
"PingFangSC-Medium"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"center"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
tighteningFactorForTruncation=
"0.0"
/>
</attributes>
</fragment>
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"lZh-U4-Q33"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"300"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"300"
id=
"3M5-ys-efs"
/>
</constraints>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"Zz3-l1-N4r"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"ZCp-rz-3cg"
/>
</connections>
</tableView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户折扣尽在绑定用户后,格利食品网pc渠道中,对售价和阶梯价可用"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TLb-MK-lV8"
>
<rect
key=
"frame"
x=
"0.0"
y=
"354"
width=
"414"
height=
"15"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"ceX-G0-MCg"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"Hbo-FL-O2S"
secondAttribute=
"bottom"
id=
"5oV-Hf-M6B"
/>
<constraint
firstItem=
"lZh-U4-Q33"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"FEd-PC-7UJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Hbo-FL-O2S"
secondAttribute=
"trailing"
id=
"IhC-ma-C4H"
/>
<constraint
firstItem=
"lZh-U4-Q33"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"JjJ-9B-OG4"
/>
<constraint
firstItem=
"TLb-MK-lV8"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"KoC-4f-w2i"
/>
<constraint
firstItem=
"jMG-ga-6QQ"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"LiY-Uk-c5j"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"jMG-ga-6QQ"
secondAttribute=
"trailing"
id=
"NXm-pV-gSC"
/>
<constraint
firstItem=
"Hbo-FL-O2S"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"OI0-1H-e7W"
/>
<constraint
firstItem=
"TLb-MK-lV8"
firstAttribute=
"top"
secondItem=
"lZh-U4-Q33"
secondAttribute=
"bottom"
constant=
"10"
id=
"OcT-1C-6Yi"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"lZh-U4-Q33"
secondAttribute=
"trailing"
id=
"eFK-ZF-bU2"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"jMG-ga-6QQ"
secondAttribute=
"bottom"
id=
"i43-s9-CIM"
/>
<constraint
firstItem=
"TLb-MK-lV8"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"j5K-cP-pfJ"
/>
<constraint
firstItem=
"Hbo-FL-O2S"
firstAttribute=
"top"
secondItem=
"jMG-ga-6QQ"
secondAttribute=
"top"
id=
"sih-ht-ww7"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
</view>
</objects>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</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