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
70168907
Commit
70168907
authored
May 08, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collectionView跳转串联
parent
5c1b463a
Changes
53
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
1708 additions
and
247 deletions
+1708
-247
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+58
-8
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/shanchuWhite.imageset/Contents.json
.../Assets.xcassets/代客下单/shanchuWhite.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/shanchuWhite.imageset/shanchu@2x.png
...Assets.xcassets/代客下单/shanchuWhite.imageset/shanchu@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/代客下单/shanchuWhite.imageset/shanchu@3x.png
...Assets.xcassets/代客下单/shanchuWhite.imageset/shanchu@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/地址管理/dzdingwei.imageset/Contents.json
...orm/Assets.xcassets/地址管理/dzdingwei.imageset/Contents.json
+0
-0
GeliBusinessPlatform/Assets.xcassets/地址管理/dzdingwei.imageset/dingwei@2x.png
...rm/Assets.xcassets/地址管理/dzdingwei.imageset/dingwei@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/地址管理/dzdingwei.imageset/dingwei@3x.png
...rm/Assets.xcassets/地址管理/dzdingwei.imageset/dingwei@3x.png
+0
-0
GeliBusinessPlatform/View/Cell/AddGuiGeCell.swift
GeliBusinessPlatform/View/Cell/AddGuiGeCell.swift
+5
-2
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
+8
-2
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.swift
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.swift
+2
-0
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
+26
-1
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.swift
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.swift
+8
-2
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.swift
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.swift
+1
-0
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.xib
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.xib
+15
-1
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.swift
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.swift
+5
-1
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.xib
+7
-7
GeliBusinessPlatform/View/Cell/TitleAndTFCell.xib
GeliBusinessPlatform/View/Cell/TitleAndTFCell.xib
+4
-4
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
+3
-3
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
...Platform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
+2
-2
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+90
-11
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+32
-12
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
.../ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
+16
-5
GeliBusinessPlatform/ViewController/供应商管理/GYSGLCell.xib
GeliBusinessPlatform/ViewController/供应商管理/GYSGLCell.xib
+1
-1
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.swift
...ssPlatform/ViewController/供应商管理/GYSGLViewController.swift
+16
-3
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
...Platform/ViewController/供应商管理/GYSListViewController.swift
+65
-0
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.xib
...ssPlatform/ViewController/供应商管理/GYSListViewController.xib
+97
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLTableView.swift
GeliBusinessPlatform/ViewController/地址管理/DZGLTableView.swift
+54
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+66
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.xib
...sinessPlatform/ViewController/地址管理/DZGLViewController.xib
+41
-0
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
...usinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
+5
-0
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
+10
-3
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
...form/ViewController/地址管理/XinZengDiZhiViewController.swift
+14
-5
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.swift
...form/ViewController/客户管理/BingDingKeHuViewController.swift
+33
-68
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.xib
...atform/ViewController/客户管理/BingDingKeHuViewController.xib
+111
-0
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.swift
...BusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.swift
+7
-2
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.xib
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.xib
+1
-1
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
...Platform/ViewController/客户管理/KeHuListViewController.swift
+201
-0
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.xib
...ssPlatform/ViewController/客户管理/KeHuListViewController.xib
+229
-0
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
...wController/客户管理/XinZengAndBianJiKeHuViewController.swift
+7
-1
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.xib
...iewController/客户管理/XinZengAndBianJiKeHuViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+53
-8
GeliBusinessPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
...sPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
+6
-3
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
...form/ViewController/应付账款/YingFuZKListViewController.swift
+72
-0
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.xib
...atform/ViewController/应付账款/YingFuZKListViewController.xib
+121
-0
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQCell.xib
...essPlatform/ViewController/应付账款/YingFuZhangKuanXQCell.xib
+1
-1
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
...ViewController/应付账款/YingFuZhangKuanXQViewController.swift
+1
-2
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.swift
...orm/ViewController/新增、编辑品牌/PinPaiListViewController.swift
+73
-0
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.xib
...tform/ViewController/新增、编辑品牌/PinPaiListViewController.xib
+17
-23
GeliBusinessPlatform/ViewController/新增、编辑品牌/XinZengPinPaiViewController.swift
.../ViewController/新增、编辑品牌/XinZengPinPaiViewController.swift
+13
-7
GeliBusinessPlatform/ViewController/新增、编辑品牌/XinZengPinPaiViewController.xib
...rm/ViewController/新增、编辑品牌/XinZengPinPaiViewController.xib
+30
-49
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+55
-6
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
70168907
...
...
@@ -60,6 +60,12 @@
E02FD9FB24557E8600E10E27
/* XinZengDiZhiViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02FD9F924557E8600E10E27
/* XinZengDiZhiViewController.xib */
;
};
E0336DD5244EC40000380BE9
/* CreatNewSpecsViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0336DD3244EC40000380BE9
/* CreatNewSpecsViewController.swift */
;
};
E0336DD6244EC40000380BE9
/* CreatNewSpecsViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
;
};
E0337EED2464EED000952EF4
/* PinPaiListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0337EEB2464EED000952EF4
/* PinPaiListViewController.swift */
;
};
E0337EEE2464EED000952EF4
/* PinPaiListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0337EEC2464EED000952EF4
/* PinPaiListViewController.xib */
;
};
E0337EF12464F69000952EF4
/* YingFuZKListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0337EEF2464F69000952EF4
/* YingFuZKListViewController.swift */
;
};
E0337EF22464F69000952EF4
/* YingFuZKListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0337EF02464F69000952EF4
/* YingFuZKListViewController.xib */
;
};
E0337EF52464FCFC00952EF4
/* GYSListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0337EF32464FCFC00952EF4
/* GYSListViewController.swift */
;
};
E0337EF62464FCFC00952EF4
/* GYSListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0337EF42464FCFC00952EF4
/* GYSListViewController.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 */
;
};
...
...
@@ -118,6 +124,11 @@
E088CC8D24470BF0000DAA8A
/* CodeView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E088CC8C24470BF0000DAA8A
/* CodeView.swift */
;
};
E088CC932447124D000DAA8A
/* BindViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E088CC912447124D000DAA8A
/* BindViewController.swift */
;
};
E088CC942447124D000DAA8A
/* BindViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E088CC922447124D000DAA8A
/* BindViewController.xib */
;
};
E08A7ADC246505F000F934F2
/* KeHuListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADA246505F000F934F2
/* KeHuListViewController.swift */
;
};
E08A7ADD246505F000F934F2
/* KeHuListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
;
};
E08A7AE024652E2C00F934F2
/* BingDingKeHuViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
;
};
E08A7AE124652E2C00F934F2
/* BingDingKeHuViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
;
};
E08A7AE324653B1F00F934F2
/* DZGLTableView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7AE224653B1F00F934F2
/* DZGLTableView.swift */
;
};
E08B0674244A98B2001D2E01
/* WareHouseSpCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08B0672244A98B2001D2E01
/* WareHouseSpCell.swift */
;
};
E08B0675244A98B2001D2E01
/* WareHouseSpCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08B0673244A98B2001D2E01
/* WareHouseSpCell.xib */
;
};
E09B03A12445AF7100211A51
/* Define.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E09B03A02445AF7100211A51
/* Define.swift */
;
};
...
...
@@ -153,6 +164,8 @@
E0A409CD2464026B00CFF109
/* SecondCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A409CB2464026B00CFF109
/* SecondCell.xib */
;
};
E0A409D02464041200CFF109
/* ThirdCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A409CE2464041200CFF109
/* ThirdCell.swift */
;
};
E0A409D12464041200CFF109
/* ThirdCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A409CF2464041200CFF109
/* ThirdCell.xib */
;
};
E0A409D424640B8300CFF109
/* DZGLViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A409D224640B8300CFF109
/* DZGLViewController.swift */
;
};
E0A409D524640B8300CFF109
/* DZGLViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A409D324640B8300CFF109
/* DZGLViewController.xib */
;
};
E0A7548A244A8F0F00A84B67
/* CheckWareHourseViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A75488244A8F0F00A84B67
/* CheckWareHourseViewController.swift */
;
};
E0A7548B244A8F0F00A84B67
/* CheckWareHourseViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A75489244A8F0F00A84B67
/* CheckWareHourseViewController.xib */
;
};
E0B6036E244D376900A56B38
/* KuWeiCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B6036C244D376900A56B38
/* KuWeiCell.swift */
;
};
...
...
@@ -177,8 +190,6 @@
E0BE8A91245A9B9600E80134
/* YingFuZhangKuanCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8A8F245A9B9600E80134
/* YingFuZhangKuanCell.xib */
;
};
E0BE8A9C245A9E5900E80134
/* YingFuZhangKuanXQCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8A9A245A9E5900E80134
/* YingFuZhangKuanXQCell.swift */
;
};
E0BE8A9D245A9E5900E80134
/* YingFuZhangKuanXQCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8A9B245A9E5900E80134
/* YingFuZhangKuanXQCell.xib */
;
};
E0BE8AA0245A9EF700E80134
/* YingFuZhangKuanViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8A9E245A9EF700E80134
/* YingFuZhangKuanViewController.swift */
;
};
E0BE8AA1245A9EF700E80134
/* YingFuZhangKuanViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8A9F245A9EF700E80134
/* YingFuZhangKuanViewController.xib */
;
};
E0BE8AA4245AA31400E80134
/* YingFuZhangKuanXQViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8AA2245AA31400E80134
/* YingFuZhangKuanXQViewController.swift */
;
};
E0BE8AA5245AA31400E80134
/* YingFuZhangKuanXQViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8AA3245AA31400E80134
/* YingFuZhangKuanXQViewController.xib */
;
};
E0C4F4A7244EC82A00CC7E2F
/* TitleAndBtnCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4A5244EC82A00CC7E2F
/* TitleAndBtnCell.swift */
;
};
...
...
@@ -435,6 +446,12 @@
E02FD9F924557E8600E10E27
/* XinZengDiZhiViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
XinZengDiZhiViewController.xib
;
sourceTree
=
"<group>"
;
};
E0336DD3244EC40000380BE9
/* CreatNewSpecsViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CreatNewSpecsViewController.swift
;
sourceTree
=
"<group>"
;
};
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CreatNewSpecsViewController.xib
;
sourceTree
=
"<group>"
;
};
E0337EEB2464EED000952EF4
/* PinPaiListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PinPaiListViewController.swift
;
sourceTree
=
"<group>"
;
};
E0337EEC2464EED000952EF4
/* PinPaiListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PinPaiListViewController.xib
;
sourceTree
=
"<group>"
;
};
E0337EEF2464F69000952EF4
/* YingFuZKListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YingFuZKListViewController.swift
;
sourceTree
=
"<group>"
;
};
E0337EF02464F69000952EF4
/* YingFuZKListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZKListViewController.xib
;
sourceTree
=
"<group>"
;
};
E0337EF32464FCFC00952EF4
/* GYSListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GYSListViewController.swift
;
sourceTree
=
"<group>"
;
};
E0337EF42464FCFC00952EF4
/* GYSListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GYSListViewController.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>"
;
};
...
...
@@ -493,6 +510,11 @@
E088CC8C24470BF0000DAA8A
/* CodeView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CodeView.swift
;
sourceTree
=
"<group>"
;
};
E088CC912447124D000DAA8A
/* BindViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BindViewController.swift
;
sourceTree
=
"<group>"
;
};
E088CC922447124D000DAA8A
/* BindViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BindViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7ADA246505F000F934F2
/* KeHuListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KeHuListViewController.swift
;
sourceTree
=
"<group>"
;
};
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KeHuListViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BingDingKeHuViewController.swift
;
sourceTree
=
"<group>"
;
};
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BingDingKeHuViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7AE224653B1F00F934F2
/* DZGLTableView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DZGLTableView.swift
;
sourceTree
=
"<group>"
;
};
E08B0672244A98B2001D2E01
/* WareHouseSpCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WareHouseSpCell.swift
;
sourceTree
=
"<group>"
;
};
E08B0673244A98B2001D2E01
/* WareHouseSpCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WareHouseSpCell.xib
;
sourceTree
=
"<group>"
;
};
E09B03A02445AF7100211A51
/* Define.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Define.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -528,6 +550,8 @@
E0A409CB2464026B00CFF109
/* SecondCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
SecondCell.xib
;
sourceTree
=
"<group>"
;
};
E0A409CE2464041200CFF109
/* ThirdCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ThirdCell.swift
;
sourceTree
=
"<group>"
;
};
E0A409CF2464041200CFF109
/* ThirdCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ThirdCell.xib
;
sourceTree
=
"<group>"
;
};
E0A409D224640B8300CFF109
/* DZGLViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DZGLViewController.swift
;
sourceTree
=
"<group>"
;
};
E0A409D324640B8300CFF109
/* DZGLViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DZGLViewController.xib
;
sourceTree
=
"<group>"
;
};
E0A75488244A8F0F00A84B67
/* CheckWareHourseViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CheckWareHourseViewController.swift
;
sourceTree
=
"<group>"
;
};
E0A75489244A8F0F00A84B67
/* CheckWareHourseViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CheckWareHourseViewController.xib
;
sourceTree
=
"<group>"
;
};
E0B6036C244D376900A56B38
/* KuWeiCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KuWeiCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -552,8 +576,6 @@
E0BE8A8F245A9B9600E80134
/* YingFuZhangKuanCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZhangKuanCell.xib
;
sourceTree
=
"<group>"
;
};
E0BE8A9A245A9E5900E80134
/* YingFuZhangKuanXQCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YingFuZhangKuanXQCell.swift
;
sourceTree
=
"<group>"
;
};
E0BE8A9B245A9E5900E80134
/* YingFuZhangKuanXQCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZhangKuanXQCell.xib
;
sourceTree
=
"<group>"
;
};
E0BE8A9E245A9EF700E80134
/* YingFuZhangKuanViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YingFuZhangKuanViewController.swift
;
sourceTree
=
"<group>"
;
};
E0BE8A9F245A9EF700E80134
/* YingFuZhangKuanViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZhangKuanViewController.xib
;
sourceTree
=
"<group>"
;
};
E0BE8AA2245AA31400E80134
/* YingFuZhangKuanXQViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YingFuZhangKuanXQViewController.swift
;
sourceTree
=
"<group>"
;
};
E0BE8AA3245AA31400E80134
/* YingFuZhangKuanXQViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZhangKuanXQViewController.xib
;
sourceTree
=
"<group>"
;
};
E0C4F4A5244EC82A00CC7E2F
/* TitleAndBtnCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndBtnCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -970,6 +992,9 @@
E02FD9F52455790800E10E27
/* DiZhiGuanLiCell.xib */
,
E02FD9F824557E8600E10E27
/* XinZengDiZhiViewController.swift */
,
E02FD9F924557E8600E10E27
/* XinZengDiZhiViewController.xib */
,
E0A409D224640B8300CFF109
/* DZGLViewController.swift */
,
E0A409D324640B8300CFF109
/* DZGLViewController.xib */
,
E08A7AE224653B1F00F934F2
/* DZGLTableView.swift */
,
);
path
=
"地址管理"
;
sourceTree
=
"<group>"
;
...
...
@@ -1003,6 +1028,10 @@
E07B1E5D24591AA50055BA3C
/* KeHuXQViewController.xib */
,
E07B1E60245921A60055BA3C
/* KeHuXQCell.swift */
,
E07B1E61245921A60055BA3C
/* KeHuXQCell.xib */
,
E08A7ADA246505F000F934F2
/* KeHuListViewController.swift */
,
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
,
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
,
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
,
);
path
=
"客户管理"
;
sourceTree
=
"<group>"
;
...
...
@@ -1095,6 +1124,8 @@
E07B1E6A245926330055BA3C
/* GYSGLCell.xib */
,
E07B1E6D245929060055BA3C
/* GYSGLViewController.swift */
,
E07B1E6E245929060055BA3C
/* GYSGLViewController.xib */
,
E0337EF32464FCFC00952EF4
/* GYSListViewController.swift */
,
E0337EF42464FCFC00952EF4
/* GYSListViewController.xib */
,
);
path
=
"供应商管理"
;
sourceTree
=
"<group>"
;
...
...
@@ -1327,6 +1358,8 @@
children
=
(
E0A2E81824552E3C00D6DB34
/* XinZengPinPaiViewController.swift */
,
E0A2E81924552E3C00D6DB34
/* XinZengPinPaiViewController.xib */
,
E0337EEB2464EED000952EF4
/* PinPaiListViewController.swift */
,
E0337EEC2464EED000952EF4
/* PinPaiListViewController.xib */
,
);
path
=
"新增、编辑品牌"
;
sourceTree
=
"<group>"
;
...
...
@@ -1399,10 +1432,10 @@
E0BE8A8F245A9B9600E80134
/* YingFuZhangKuanCell.xib */
,
E0BE8A9A245A9E5900E80134
/* YingFuZhangKuanXQCell.swift */
,
E0BE8A9B245A9E5900E80134
/* YingFuZhangKuanXQCell.xib */
,
E0BE8A9E245A9EF700E80134
/* YingFuZhangKuanViewController.swift */
,
E0BE8A9F245A9EF700E80134
/* YingFuZhangKuanViewController.xib */
,
E0BE8AA2245AA31400E80134
/* YingFuZhangKuanXQViewController.swift */
,
E0BE8AA3245AA31400E80134
/* YingFuZhangKuanXQViewController.xib */
,
E0337EEF2464F69000952EF4
/* YingFuZKListViewController.swift */
,
E0337EF02464F69000952EF4
/* YingFuZKListViewController.xib */
,
);
path
=
"应付账款"
;
sourceTree
=
"<group>"
;
...
...
@@ -1959,10 +1992,10 @@
files
=
(
E042F731245272FF00CDFA12
/* XiaYunDanViewController.xib in Resources */
,
F9023F63244999F500DD5A63
/* WarehoseMangementCell.xib in Resources */
,
E0BE8AA1245A9EF700E80134
/* YingFuZhangKuanViewController.xib in Resources */
,
E0BE8A84245A76AF00E80134
/* XiaDanCGDiZhiCell.xib in Resources */
,
E0516F832448086700E373CE
/* MsgCenterCell.xib in Resources */
,
E0B9461F24566B3100FBEC9A
/* TitleAndTFAndBtnCell.xib in Resources */
,
E08A7ADD246505F000F934F2
/* KeHuListViewController.xib in Resources */
,
E0DDCB10244AD8C500DF54C7
/* DaiQueRenCell.xib in Resources */
,
F94A31652462B21700FEC38E
/* EditWorkCViewController.xib in Resources */
,
E0BE8A9D245A9E5900E80134
/* YingFuZhangKuanXQCell.xib in Resources */
,
...
...
@@ -2013,10 +2046,14 @@
E0F97B092451620B001BD600
/* ProductDetailViewController.xib in Resources */
,
F9956B23246408A6001A617D
/* GoodsClassViewController.xib in Resources */
,
E06524FA24581A7900CA22E2
/* ChuKuCell.xib in Resources */
,
E0337EF62464FCFC00952EF4
/* GYSListViewController.xib in Resources */
,
E0337EF22464F69000952EF4
/* YingFuZKListViewController.xib in Resources */
,
E0B9462C2456AABE00FBEC9A
/* YuShouWeiKuanFaHuoCell.xib in Resources */
,
E0A2E81F24552F0A00D6DB34
/* TilteAndTextViewCell.xib in Resources */
,
E0F97B0D24516B1F001BD600
/* AddImgCell.xib in Resources */
,
E0D197D6244860B1002B080C
/* BlueToothCell.xib in Resources */
,
E08A7AE124652E2C00F934F2
/* BingDingKeHuViewController.xib in Resources */
,
E0A409D524640B8300CFF109
/* DZGLViewController.xib in Resources */
,
F95567A82453DA86009674AB
/* WarehoseMangementListVC.xib in Resources */
,
E0C4F4BE244EF53D00CC7E2F
/* BindStepTwoViewController.xib in Resources */
,
E00B0B1C24629E99006DC846
/* SJMapCell.xib in Resources */
,
...
...
@@ -2077,6 +2114,7 @@
E0C4F4B6244EE9EE00CC7E2F
/* YuShouCell.xib in Resources */
,
F95A9EDE24557CD500867849
/* GuanLianKehuVC.xib in Resources */
,
E07B1E6C245926330055BA3C
/* GYSGLCell.xib in Resources */
,
E0337EEE2464EED000952EF4
/* PinPaiListViewController.xib in Resources */
,
E0273DDE24551D4500B3FCAE
/* OnlyLabelCell.xib in Resources */
,
E00D85E5244561FE00F5F816
/* Assets.xcassets in Resources */
,
E0A320C72456D01D00AF321C
/* DaiKeXiaDanFooterView.xib in Resources */
,
...
...
@@ -2207,6 +2245,7 @@
E00E48C62457C99900F16545
/* KuCunShangPinXQViewController.swift in Sources */
,
F9531F3C2465108800724BEE
/* JXPhotoBrowserSmoothZoomAnimator.swift in Sources */
,
F9531F402465108800724BEE
/* JXPhotoBrowserZoomAnimator.swift in Sources */
,
E0337EED2464EED000952EF4
/* PinPaiListViewController.swift in Sources */
,
E0BE8A9C245A9E5900E80134
/* YingFuZhangKuanXQCell.swift in Sources */
,
E02C882A2456B4BA00925766
/* WLGZCell.swift in Sources */
,
F950FDE824518CD800C40530
/* TimeSelectView.swift in Sources */
,
...
...
@@ -2241,7 +2280,11 @@
E07B1E5E24591AA50055BA3C
/* KeHuXQViewController.swift in Sources */
,
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
,
E06524F924581A7900CA22E2
/* ChuKuCell.swift in Sources */
,
F9956B2524640D34001A617D
/* GoodsClassModel.swift in Sources */
,
E08A7AE324653B1F00F934F2
/* DZGLTableView.swift in Sources */
,
F961D26B24500FF6007FBE70
/* HeaderSelectView.swift in Sources */
,
E09F4C9D2452BEBB00BE033D
/* JiPaiFangShiViewController.swift in Sources */
,
E0D4166424483058008DCAB4
/* ChangePassViewController.swift in Sources */
,
...
...
@@ -2265,6 +2308,7 @@
F950FDDA24518B9500C40530
/* FSCalendarCell.m in Sources */
,
F969BF1E244EE67900C79953
/* GoodsManageListVC.swift in Sources */
,
E0273DD824551B4C00B3FCAE
/* SendTimeSelectView.swift in Sources */
,
E08A7AE024652E2C00F934F2
/* BingDingKeHuViewController.swift in Sources */
,
E09B03A12445AF7100211A51
/* Define.swift in Sources */
,
F961D271245016B7007FBE70
/* SelectContentView.swift in Sources */
,
F933F6C02452C68B00189561
/* PKHUDSystemActivityIndicatorView.swift in Sources */
,
...
...
@@ -2272,6 +2316,7 @@
E0A2E81E24552F0A00D6DB34
/* TilteAndTextViewCell.swift in Sources */
,
F9531F3D2465108800724BEE
/* JXPhotoBrowserAnimatedTransitioning.swift in Sources */
,
E0D197CA24484D90002B080C
/* PersonCenterCell.swift in Sources */
,
E0337EF52464FCFC00952EF4
/* GYSListViewController.swift in Sources */
,
E0C4F4B5244EE9EE00CC7E2F
/* YuShouCell.swift in Sources */
,
F933F6C52452C68B00189561
/* PKHUDSuccessView.swift in Sources */
,
E09B03A82445B04E00211A51
/* BaseView.swift in Sources */
,
...
...
@@ -2280,7 +2325,11 @@
E042F74024528CD500CDFA12
/* TitleAndOnlyBtnCell.swift in Sources */
,
F969BF07244EC38000C79953
/* GoodsCollectionViewCell.swift in Sources */
,
E02FD9F12455705F00E10E27
/* ChuRuKuJiLuCell.swift in Sources */
,
F9531F462465108800724BEE
/* JXPhotoBrowser.swift in Sources */
,
E08A7ADC246505F000F934F2
/* KeHuListViewController.swift in Sources */
,
E0A2E82724555B4400D6DB34
/* KuCunShangPinCell.swift in Sources */
,
F950FDA72451494500C40530
/* GeliPayInfoModel.swift in Sources */
,
F9531F432465108800724BEE
/* JXPhotoBrowserImageCell.swift in Sources */
,
...
...
@@ -2298,8 +2347,8 @@
F950FDDF24518B9500C40530
/* FSCalendarSeparatorDecorationView.m in Sources */
,
F9023F692449A50900DD5A63
/* TitleContentCell.swift in Sources */
,
F95A9ED8245520E500867849
/* OrderListVC.swift in Sources */
,
E0BE8AA0245A9EF700E80134
/* YingFuZhangKuanViewController.swift in Sources */
,
E03549A8245820C2008BD021
/* PiCiXuanZeCell.swift in Sources */
,
E0337EF12464F69000952EF4
/* YingFuZKListViewController.swift in Sources */
,
F933F6CE2452C68B00189561
/* PKHUDSquareBaseView.swift in Sources */
,
E06524F524580BB600CA22E2
/* BaoZhiQiCell.swift in Sources */
,
E0BE8AA4245AA31400E80134
/* YingFuZhangKuanXQViewController.swift in Sources */
,
...
...
@@ -2323,6 +2372,7 @@
E00B0B1B24629E99006DC846
/* SJMapCell.swift in Sources */
,
E0A7548A244A8F0F00A84B67
/* CheckWareHourseViewController.swift in Sources */
,
F9023F62244999F500DD5A63
/* WarehoseMangementCell.swift in Sources */
,
E0A409D424640B8300CFF109
/* DZGLViewController.swift in Sources */
,
E0516F772448003D00E373CE
/* PayViewController.swift in Sources */
,
E02DDD952450106C00ABB707
/* PuTongJieTiCell.swift in Sources */
,
E0BE8A8B245A7D3300E80134
/* BtmBtnCell.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
70168907
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/代客下单/shanchuWhite.imageset/Contents.json
0 → 100644
View file @
70168907
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"shanchu@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"shanchu@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/代客下单/shanchuWhite.imageset/shanchu@2x.png
0 → 100644
View file @
70168907
1.12 KB
GeliBusinessPlatform/Assets.xcassets/代客下单/shanchuWhite.imageset/shanchu@3x.png
0 → 100644
View file @
70168907
2.03 KB
GeliBusinessPlatform/Assets.xcassets/地址管理/dingwei.imageset/Contents.json
→
GeliBusinessPlatform/Assets.xcassets/地址管理/d
zd
ingwei.imageset/Contents.json
View file @
70168907
File moved
GeliBusinessPlatform/Assets.xcassets/地址管理/dingwei.imageset/dingwei@2x.png
→
GeliBusinessPlatform/Assets.xcassets/地址管理/d
zd
ingwei.imageset/dingwei@2x.png
View file @
70168907
File moved
GeliBusinessPlatform/Assets.xcassets/地址管理/dingwei.imageset/dingwei@3x.png
→
GeliBusinessPlatform/Assets.xcassets/地址管理/d
zd
ingwei.imageset/dingwei@3x.png
View file @
70168907
File moved
GeliBusinessPlatform/View/Cell/AddGuiGeCell.swift
View file @
70168907
...
...
@@ -7,10 +7,13 @@
//
import
UIKit
@objc
protocol
AddGuiGeCellDelegate
{
@objc
optional
func
AddGuiGeCellClick
(
cell
:
AddGuiGeCell
)
}
class
AddGuiGeCell
:
UITableViewCell
{
var
delegate
:
AddGuiGeCellDelegate
?
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
delegate
?
.
AddGuiGeCellClick
?(
cell
:
self
)
}
@IBOutlet
weak
var
imgBtn
:
UIButton
!
override
func
awakeFromNib
()
{
...
...
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
View file @
70168907
...
...
@@ -17,12 +17,17 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WR0-yV-WjT"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"moren"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WR0-yV-WjT"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"70"
height=
"70"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"70"
id=
"wQz-zj-1mU"
/>
<constraint
firstAttribute=
"width"
constant=
"70"
id=
"zUn-zO-Lh1"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"sender"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"k7A-Qs-Puc"
>
<rect
key=
"frame"
x=
"95"
y=
"15"
width=
"42"
height=
"18.5"
/>
...
...
@@ -171,6 +176,7 @@
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"guanlian"
width=
"15.5"
height=
"12.5"
/>
<image
name=
"moren"
width=
"70"
height=
"70"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"企业、预售字体"
>
<color
red=
"1"
green=
"0.68999999761581421"
blue=
"0.47099998593330383"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -185,7 +191,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.swift
View file @
70168907
...
...
@@ -12,6 +12,8 @@ import UIKit
}
class
TitleAndBtnCell
:
UITableViewCell
{
var
delegate
:
TitleAndBtnCellDelegate
?
@IBOutlet
weak
var
imgView
:
UIImageView
!
@IBOutlet
weak
var
btn
:
UIButton
!
@IBOutlet
weak
var
lineWidth
:
NSLayoutConstraint
!
@IBOutlet
weak
var
arrowImg
:
UIImageView
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
...
...
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
View file @
70168907
...
...
@@ -52,6 +52,24 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"tUg-7c-ise"
/>
</constraints>
</view>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HSb-Uo-Ffy"
>
<rect
key=
"frame"
x=
"220"
y=
"-13"
width=
"70"
height=
"70"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"70"
id=
"bTd-RW-kmX"
/>
<constraint
firstAttribute=
"width"
constant=
"70"
id=
"w93-Pg-zM5"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"borderColor"
>
<color
key=
"value"
name=
"搜索框背景色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"borderWidth"
>
<real
key=
"value"
value=
"0.5"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
</subviews>
<constraints>
<constraint
firstItem=
"7nL-vu-Tdl"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"0CE-BN-7lF"
/>
...
...
@@ -67,10 +85,12 @@
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstItem=
"HSb-Uo-Ffy"
firstAttribute=
"centerY"
secondItem=
"VXU-ef-rsF"
secondAttribute=
"centerY"
id=
"IPI-in-Eb1"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Gf0-pG-ZDj"
secondAttribute=
"trailing"
constant=
"15"
id=
"kO1-WA-Gey"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"VXU-ef-rsF"
secondAttribute=
"bottom"
id=
"n4S-aO-XLT"
/>
<constraint
firstItem=
"VXU-ef-rsF"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"poY-Yq-IFn"
/>
<constraint
firstItem=
"7nL-vu-Tdl"
firstAttribute=
"leading"
secondItem=
"EfU-Eu-amU"
secondAttribute=
"trailing"
id=
"s1W-ZL-Aso"
/>
<constraint
firstItem=
"HSb-Uo-Ffy"
firstAttribute=
"trailing"
secondItem=
"Gf0-pG-ZDj"
secondAttribute=
"trailing"
constant=
"-15"
id=
"vCg-rn-59B"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"rLc-3F-snj"
secondAttribute=
"bottom"
id=
"z7b-6d-7aF"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"7nL-vu-Tdl"
secondAttribute=
"bottom"
id=
"zGG-y9-TeV"
/>
</constraints>
...
...
@@ -78,7 +98,9 @@
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"arrowImg"
destination=
"Gf0-pG-ZDj"
id=
"uaE-Be-XYP"
/>
<outlet
property=
"btn"
destination=
"VXU-ef-rsF"
id=
"92Z-x4-AVW"
/>
<outlet
property=
"contentLbl"
destination=
"7nL-vu-Tdl"
id=
"sEW-G5-GaR"
/>
<outlet
property=
"imgView"
destination=
"HSb-Uo-Ffy"
id=
"9RM-uK-s3I"
/>
<outlet
property=
"lineWidth"
destination=
"EUi-Y9-d4w"
id=
"0on-lp-cbT"
/>
<outlet
property=
"nameLbl"
destination=
"EfU-Eu-amU"
id=
"XOH-Zx-SHi"
/>
</connections>
...
...
@@ -87,6 +109,9 @@
</objects>
<resources>
<image
name=
"jinruDetail"
width=
"4.5"
height=
"9"
/>
<namedColor
name=
"搜索框背景色"
>
<color
red=
"0.9137254901960784"
green=
"0.90588235294117647"
blue=
"0.92941176470588238"
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>
...
...
@@ -94,7 +119,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.swift
View file @
70168907
...
...
@@ -7,16 +7,22 @@
//
import
UIKit
@objc
protocol
TitleAndOnlyBtnCellDelegate
{
@objc
optional
func
TitleAndOnlyBtnCellBtnClick
(
cell
:
TitleAndOnlyBtnCell
)
@objc
optional
func
TitleAndOnlyBtnCellEditBtnClick
(
cell
:
TitleAndOnlyBtnCell
)
}
class
TitleAndOnlyBtnCell
:
UITableViewCell
{
var
delegate
:
TitleAndOnlyBtnCellDelegate
?
@IBAction
func
selectImgAction
(
_
sender
:
Any
)
{
delegate
?
.
TitleAndOnlyBtnCellBtnClick
?(
cell
:
self
)
}
@IBOutlet
weak
var
imgBgView
:
UIView
!
@IBOutlet
weak
var
imgView
:
UIImageView
!
@IBOutlet
weak
var
button
:
UIButton
!
@IBAction
func
editAction
(
_
sender
:
Any
)
{
delegate
?
.
TitleAndOnlyBtnCellEditBtnClick
?(
cell
:
self
)
}
@IBOutlet
weak
var
titleLbl
:
UILabel
!
override
func
awakeFromNib
()
{
...
...
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
View file @
70168907
...
...
@@ -27,7 +27,7 @@
<color
key=
"titleColor"
name=
"蓝色字体颜色"
/>
</state>
<connections>
<action
selector=
"
editAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"9ec-99-TPg
"
/>
<action
selector=
"
selectImgAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"MC4-pu-O2G
"
/>
</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=
"kTB-YG-ytP"
>
...
...
@@ -74,7 +74,7 @@
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RqJ-Pm-7z4"
>
<rect
key=
"frame"
x=
"115"
y=
"0.0"
width=
"35"
height=
"100"
/>
<connections>
<action
selector=
"
selectImgAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"2sB-QX-soP
"
/>
<action
selector=
"
editAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"xhC-vf-Kd9
"
/>
</connections>
</button>
</subviews>
...
...
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.swift
View file @
70168907
...
...
@@ -13,6 +13,7 @@ import UIKit
class
TitleAndSelectCell
:
UITableViewCell
{
var
delegate
:
TitleAndSelectCellDelegate
?
@IBOutlet
weak
var
selectBtn
:
UIButton
!
@IBOutlet
weak
var
line
:
UIView
!
@IBAction
func
selectClick
(
_
sender
:
UIButton
)
{
delegate
?
.
TitleAndSelectCellClick
?(
content
:
sender
,
cell
:
self
)
}
...
...
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.xib
View file @
70168907
...
...
@@ -34,8 +34,17 @@
<action
selector=
"selectClick:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"s1q-8q-wPh"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LBE-H5-roD"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"305"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"kMV-gg-KFH"
/>
</constraints>
</view>
</subviews>
<constraints>
<constraint
firstItem=
"LBE-H5-roD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"1LE-hY-HgS"
/>
<constraint
firstItem=
"LBE-H5-roD"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"DIA-7g-f77"
/>
<constraint
firstItem=
"4Hx-2L-jWw"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"GnK-Zb-hVm"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
...
...
@@ -43,6 +52,7 @@
</constraint>
<constraint
firstItem=
"nmk-ai-I5m"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"Qle-nk-kP9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"4Hx-2L-jWw"
secondAttribute=
"trailing"
id=
"ZYQ-eh-y1K"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"LBE-H5-roD"
secondAttribute=
"trailing"
id=
"gLI-1M-XFu"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"4Hx-2L-jWw"
secondAttribute=
"bottom"
id=
"hYK-3c-bmk"
/>
<constraint
firstItem=
"4Hx-2L-jWw"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"vAt-h5-RDj"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"nmk-ai-I5m"
secondAttribute=
"bottom"
id=
"y5f-9e-nDa"
/>
...
...
@@ -55,10 +65,11 @@
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"line"
destination=
"LBE-H5-roD"
id=
"c4o-gG-gD0"
/>
<outlet
property=
"selectBtn"
destination=
"nmk-ai-I5m"
id=
"Ds3-GX-gVv"
/>
<outlet
property=
"titleLbl"
destination=
"4Hx-2L-jWw"
id=
"1dE-sY-xMj"
/>
</connections>
<point
key=
"canvasLocation"
x=
"13
2"
y=
"122
"
/>
<point
key=
"canvasLocation"
x=
"13
1.8840579710145"
y=
"121.875
"
/>
</tableViewCell>
</objects>
<resources>
...
...
@@ -67,5 +78,8 @@
<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>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.swift
View file @
70168907
...
...
@@ -7,9 +7,13 @@
//
import
UIKit
@objc
protocol
TitleAndTFAndBtnCellDelegate
{
@objc
optional
func
TitleAndTFAndBtnCellBtnClick
()
}
class
TitleAndTFAndBtnCell
:
UITableViewCell
{
var
delegate
:
TitleAndTFAndBtnCellDelegate
?
@IBAction
func
adressBtnClick
(
_
sender
:
Any
)
{
delegate
?
.
TitleAndTFAndBtnCellBtnClick
?()
}
@IBOutlet
weak
var
titleLbl
:
UILabel
!
...
...
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.xib
View file @
70168907
...
...
@@ -35,16 +35,16 @@
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"dingwei"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"39q-TE-sPp"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"d
zd
ingwei"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"39q-TE-sPp"
>
<rect
key=
"frame"
x=
"347"
y=
"16"
width=
"14"
height=
"17"
/>
<constraints>
<constraint
firstAttribute=
"
width"
constant=
"14"
id=
"gkC-Mw-BcZ
"
/>
<constraint
firstAttribute=
"
height"
constant=
"17"
id=
"q8D-q4-voQ
"
/>
<constraint
firstAttribute=
"
height"
constant=
"17"
id=
"EYG-Zs-c4A
"
/>
<constraint
firstAttribute=
"
width"
constant=
"14"
id=
"Kai-ig-cv8
"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bwc-Q5-ss2"
>
<rect
key=
"frame"
x=
"343"
y=
"0.0"
width=
"32"
height=
"49"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.68026518489999999"
blue=
"0.40248129399999999"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<connections>
<action
selector=
"adressBtnClick:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"TFs-Rt-XxY"
/>
</connections>
...
...
@@ -60,15 +60,15 @@
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"bwc-Q5-ss2"
secondAttribute=
"bottom"
id=
"1fZ-DZ-3E5"
/>
<constraint
firstItem=
"eEc-iL-cFf"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"4eB-ea-kj1"
/>
<constraint
first
Item=
"39q-TE-sPp"
firstAttribute=
"centerY"
secondItem=
"Vjh-6z-siE"
secondAttribute=
"centerY"
id=
"8EO-Jh-qqi
"
/>
<constraint
first
Attribute=
"trailing"
secondItem=
"39q-TE-sPp"
secondAttribute=
"trailing"
constant=
"14"
id=
"75r-ph-qAW
"
/>
<constraint
firstItem=
"r0w-jb-SPa"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"8HA-oK-W1G"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"r0w-jb-SPa"
secondAttribute=
"trailing"
id=
"8wP-2s-Ejq"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"39q-TE-sPp"
secondAttribute=
"trailing"
constant=
"14"
id=
"A2n-ca-AoG"
/>
<constraint
firstItem=
"bwc-Q5-ss2"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"I3L-Hd-pqh"
/>
<constraint
firstItem=
"bwc-Q5-ss2"
firstAttribute=
"leading"
secondItem=
"Vjh-6z-siE"
secondAttribute=
"trailing"
constant=
"5"
id=
"ToH-64-Q5M"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"r0w-jb-SPa"
secondAttribute=
"bottom"
id=
"fnr-U8-qwJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"bwc-Q5-ss2"
secondAttribute=
"trailing"
id=
"iAh-MP-EpF"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Vjh-6z-siE"
secondAttribute=
"trailing"
constant=
"37"
id=
"k28-XJ-GC7"
/>
<constraint
firstItem=
"39q-TE-sPp"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"kaz-gR-W9G"
/>
<constraint
firstItem=
"Vjh-6z-siE"
firstAttribute=
"centerY"
secondItem=
"eEc-iL-cFf"
secondAttribute=
"centerY"
id=
"ldC-dl-C90"
/>
<constraint
firstItem=
"eEc-iL-cFf"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"vBQ-UK-oG0"
/>
<constraint
firstItem=
"Vjh-6z-siE"
firstAttribute=
"leading"
secondItem=
"eEc-iL-cFf"
secondAttribute=
"trailing"
constant=
"10"
id=
"yXZ-cg-Vkf"
/>
...
...
@@ -83,7 +83,7 @@
</tableViewCell>
</objects>
<resources>
<image
name=
"dingwei"
width=
"14"
height=
"17"
/>
<image
name=
"d
zd
ingwei"
width=
"14"
height=
"17"
/>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
GeliBusinessPlatform/View/Cell/TitleAndTFCell.xib
View file @
70168907
...
...
@@ -11,14 +11,14 @@
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndTFCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"3
20
"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"3
75
"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"3
20
"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"3
75
"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"zvz-cN-gmt"
>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"3
05
"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"3
60
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"qV8-4M-UFb"
/>
...
...
@@ -31,7 +31,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入内容"
textAlignment=
"right"
minimumFontSize=
"17"
clearButtonMode=
"whileEditing"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Q6V-I9-aNd"
>
<rect
key=
"frame"
x=
"65"
y=
"15.5"
width=
"2
40
"
height=
"19"
/>
<rect
key=
"frame"
x=
"65"
y=
"15.5"
width=
"2
95
"
height=
"19"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
View file @
70168907
...
...
@@ -116,7 +116,7 @@
</imageView>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PKT-ps-1jb"
>
<rect
key=
"frame"
x=
"226.5"
y=
"-5.5"
width=
"30"
height=
"30"
/>
<color
key=
"backgroundColor"
systemColor=
"systemIndigoColor"
red=
"0.34509803919999998"
green=
"0.33725490200000002"
blue=
"0.83921568629999999"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"CQg-fc-t1x"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"enX-y3-FNN"
/>
...
...
@@ -127,7 +127,7 @@
</button>
<button
opaque=
"NO"
alpha=
"0.5"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ApV-Jy-dQR"
>
<rect
key=
"frame"
x=
"339"
y=
"-5.5"
width=
"30"
height=
"30"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.20784313730000001"
blue=
"0.63137254899999995"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"9Mx-0J-NeB"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"hP6-Ad-IOi"
/>
...
...
@@ -267,7 +267,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
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"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
View file @
70168907
...
...
@@ -51,7 +51,7 @@
</imageView>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eKc-LO-OD0"
>
<rect
key=
"frame"
x=
"85"
y=
"-5"
width=
"40"
height=
"40"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.68026518489999999"
blue=
"0.40248129399999999"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"40"
id=
"Qu8-tq-Vzl"
/>
<constraint
firstAttribute=
"width"
constant=
"40"
id=
"xwK-5A-mHO"
/>
...
...
@@ -158,7 +158,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
70168907
...
...
@@ -8,8 +8,10 @@
import
UIKit
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
{
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
{
var
glSelectView
:
GLAlertSelectView
?
=
nil
var
holderArr
=
[
"未支付"
,
"未付款"
,
"自提"
,
"暂不出库"
,
"0"
,
"0"
]
let
p3Arr
=
[
"支付状态"
,
"支付方式"
,
"提货方式"
,
"出货状态"
,
"运费"
,
"其他费用"
]
var
footerView
:
DaiKeXiaDanFooterView
?
var
itemArr
=
NSMutableArray
()
...
...
@@ -34,16 +36,16 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
//TitleAndBtnCell TitleAndTFCell
// Do any additional setup after loading the view.
}
@objc
func
addProductAction
(){
print
(
"添加商品"
)
}
//MARK: - cell delegate
func
addAction
()
{
itemArr
.
add
(
"0"
)
UIView
.
performWithoutAnimation
{
let
set
=
NSIndexSet
(
index
:
1
)
listView
.
reloadSections
(
set
as
IndexSet
,
with
:
.
none
)
}
let
vc
=
XuanZeShangPinViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// itemArr.add("0")
// UIView.performWithoutAnimation {
// let set = NSIndexSet(index: 1)
// listView.reloadSections(set as IndexSet, with: .none)
// }
}
//footer
...
...
@@ -58,7 +60,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
section
==
1
{
//220 142
let
view
=
DaiKeXiaDanFooterView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
220
))
let
view
=
DaiKeXiaDanFooterView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
220
))
view
.
topView
.
isHidden
=
false
if
itemArr
.
count
==
0
{
view
.
topView
.
isHidden
=
true
...
...
@@ -112,14 +114,88 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
switch
indexPath
.
section
{
case
0
:
if
indexPath
.
row
==
0
{
let
vc
=
GuanLianKehuVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择订单类型"
view
.
dataArr
=
[
"普通订单"
,
"预售下单"
]
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
break
case
1
:
break
default
:
break
}
}
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
view
.
delegate
=
self
switch
cell
.
tag
{
case
0
:
//支付状态
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
case
1
:
//支付方式
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
case
2
:
//提货方式
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
default
:
//出货状态
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
}
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
UIView
)
{
print
(
"单选"
,
selectNum
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
{
print
(
"多选"
,
sender
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
switch
indexPath
.
section
{
case
0
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
"客户:"
if
indexPath
.
row
==
0
{
cell
.
nameLbl
.
text
=
"客户:"
cell
.
contentLbl
.
text
=
"请选择关联客户"
}
if
indexPath
.
row
==
1
{
cell
.
nameLbl
.
text
=
"订单类型:"
cell
.
contentLbl
.
text
=
"请选择订单类型"
}
cell
.
btn
.
isUserInteractionEnabled
=
false
return
cell
case
1
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DaiKeXiaDanGouWuCell"
)
as!
DaiKeXiaDanGouWuCell
...
...
@@ -127,7 +203,10 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
default
:
if
indexPath
.
row
<
4
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
delegate
=
self
cell
.
nameLbl
.
text
=
p3Arr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
holderArr
[
indexPath
.
row
]
cell
.
tag
=
indexPath
.
row
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
70168907
...
...
@@ -8,32 +8,52 @@
import
UIKit
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
{
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
//XuanZeShangPinCell
var
searchV
:
SearchBarView
?
=
nil
//XuanZeShangPinCell
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
var
idx
:
IndexPath
?
@IBOutlet
weak
var
btmLbl
:
UILabel
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
topView
:
UIView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"选择商品"
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
listView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
left
.
right
.
equalTo
(
0
)
make
.
bottom
.
equalTo
(
btmLbl
.
snp_top
)
SetTopFrame
(
view
:
topView
,
height
:
44
)
let
searchBr
=
SearchBarView
.
init
()
topView
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入品牌名称/商品编码"
searchBr
.
cornerRadius
=
30*0.5
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
listView
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
}
//MARK: - cell delegate
func
clearSearchAction
()
{
print
(
"清楚搜索文字"
)
}
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
}
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
8
}
...
...
@@ -74,9 +94,9 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
idx
=
index
for
item
in
listView
.
visibleCells
{
let
cel
=
item
as!
XuanZeShangPinCell
cel
.
selectBtn
.
isSelected
=
false
cel
.
btmView
.
isHidden
=
true
cel
.
btmViewHeight
.
constant
=
0
cel
.
selectBtn
.
isSelected
=
false
cel
.
btmView
.
isHidden
=
true
cel
.
btmViewHeight
.
constant
=
0
if
cel
.
idx
==
index
{
cel
.
selectBtn
.
isSelected
=
true
cel
.
btmView
.
isHidden
=
false
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
View file @
70168907
...
...
@@ -12,6 +12,7 @@
<connections>
<outlet
property=
"btmLbl"
destination=
"5Kt-Ig-zbb"
id=
"fUx-No-8SV"
/>
<outlet
property=
"listView"
destination=
"YuT-X7-ecw"
id=
"wKf-Ej-i9r"
/>
<outlet
property=
"topView"
destination=
"czv-6x-Jkg"
id=
"kMR-43-Prh"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
...
...
@@ -46,27 +47,37 @@
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"YuT-X7-ecw"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
44"
width=
"414"
height=
"769
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
88"
width=
"414"
height=
"725
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"pf9-cD-hFe"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"kFX-d5-Tz7"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"czv-6x-Jkg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"SDE-Q6-JnV"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"YuT-X7-ecw"
secondAttribute=
"trailing"
id=
"9Rc-E2-u9s
"
/>
<constraint
firstItem=
"
YuT-X7-ecw"
firstAttribute=
"top"
secondItem=
"czv-6x-Jkg"
secondAttribute=
"bottom"
id=
"70Q-Qt-Cgd
"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"5Kt-Ig-zbb"
secondAttribute=
"trailing"
id=
"9nZ-Ef-l1a"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"BdU-A8-HfN"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"top"
secondItem=
"5Kt-Ig-zbb"
secondAttribute=
"top"
id=
"Bw1-yn-w9z"
/>
<constraint
firstItem=
"YuT-X7-ecw"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"LVQ-qR-vHK"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"czv-6x-Jkg"
secondAttribute=
"trailing"
id=
"CVu-Ly-yEo"
/>
<constraint
firstItem=
"YuT-X7-ecw"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"CeF-wt-3Pe"
/>
<constraint
firstItem=
"5Kt-Ig-zbb"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Zxi-kb-DhB"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"5Kt-Ig-zbb"
secondAttribute=
"bottom"
id=
"aeg-df-E1I"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"top"
secondItem=
"YuT-X7-ecw"
secondAttribute=
"bottom"
id=
"uUk-FK-syJ"
/>
<constraint
firstItem=
"YuT-X7-ecw"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"eRL-ku-YjT"
/>
<constraint
firstItem=
"IB6-lV-KWZ"
firstAttribute=
"top"
secondItem=
"YuT-X7-ecw"
secondAttribute=
"bottom"
id=
"oo2-zd-D8w"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"IB6-lV-KWZ"
secondAttribute=
"trailing"
id=
"v8D-Yo-QxM"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"IB6-lV-KWZ"
secondAttribute=
"bottom"
id=
"w8M-CY-ifc"
/>
<constraint
firstItem=
"YuT-X7-ecw"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"xFN-or-L0x"
/>
<constraint
firstItem=
"czv-6x-Jkg"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"xab-I0-cj9"
/>
<constraint
firstItem=
"czv-6x-Jkg"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"y1o-em-TkH"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSGLCell.xib
View file @
70168907
...
...
@@ -159,7 +159,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.swift
View file @
70168907
...
...
@@ -9,7 +9,7 @@
import
UIKit
import
LGButton
class
GYSGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
GYSGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFAndBtnCellDelegate
,
TitleAndOnlyBtnCellDelegate
{
var
gysName
:
String
=
""
var
dzStr
:
String
=
""
...
...
@@ -39,8 +39,9 @@ class GYSGLViewController: BaseViewController,UITableViewDelegate,UITableViewDat
btmBtn
.
alpha
=
0.5
btmBtn
.
isUserInteractionEnabled
=
false
}
//测试
//测试
有无图片状态数据
img1
=
UIImage
()
}
let
titleArr
=
[
"基本信息"
,
"联系人信息"
,
"其它信息"
]
//MARK: - cell delegate
...
...
@@ -105,6 +106,7 @@ class GYSGLViewController: BaseViewController,UITableViewDelegate,UITableViewDat
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFAndBtnCell"
)
as!
TitleAndTFAndBtnCell
cell
.
titleLbl
.
text
=
sec1Arr
[
indexPath
.
row
]
cell
.
textTF
.
placeholder
=
hold1Arr
[
indexPath
.
row
]
cell
.
delegate
=
self
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
...
...
@@ -120,6 +122,7 @@ class GYSGLViewController: BaseViewController,UITableViewDelegate,UITableViewDat
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndOnlyBtnCell"
)
as!
TitleAndOnlyBtnCell
cell
.
titleLbl
.
text
=
sec3Arr
[
indexPath
.
row
]
cell
.
button
.
setTitle
(
"上传"
,
for
:
.
normal
)
cell
.
delegate
=
self
if
img1
!=
nil
{
if
indexPath
.
row
==
0
{
cell
.
imgBgView
.
isHidden
=
false
...
...
@@ -136,5 +139,15 @@ class GYSGLViewController: BaseViewController,UITableViewDelegate,UITableViewDat
return
cell
}
}
//自定义cell delegate
func
TitleAndOnlyBtnCellEditBtnClick
(
cell
:
TitleAndOnlyBtnCell
)
{
print
(
"编辑图片"
)
}
func
TitleAndOnlyBtnCellBtnClick
(
cell
:
TitleAndOnlyBtnCell
)
{
print
(
"选择图片"
)
}
func
TitleAndTFAndBtnCellBtnClick
()
{
let
vc
=
SJMapViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
0 → 100644
View file @
70168907
//
// GYSListViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/8.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
GYSListViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
btmLbl
:
UILabel
!
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"供应商管理"
self
.
view
.
addSubview
(
navbar
)
let
searchBr
=
SearchBarView
.
init
()
topView
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"供应商名称/联系人/电话号码"
searchBr
.
cornerRadius
=
30*0.5
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
SetTopFrame
(
view
:
topView
,
height
:
44
)
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"GYSGLCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"GYSGLCell"
)
// Do any additional setup after loading the view.
}
@IBAction
func
addAction
(
_
sender
:
Any
)
{
}
//MARK: - 自定义DELEGATE
func
clearSearchAction
()
{
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
GYSGLViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
105.5
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GYSGLCell"
)
as!
GYSGLCell
return
cell
}
}
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.xib
0 → 100644
View file @
70168907
<?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=
"GYSListViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"btmLbl"
destination=
"z9e-bT-lDi"
id=
"BcP-Rc-hrF"
/>
<outlet
property=
"listView"
destination=
"Qqa-3M-ZQN"
id=
"jPb-Zb-3ct"
/>
<outlet
property=
"topView"
destination=
"WnZ-DY-vHR"
id=
"XMu-Wk-fUB"
/>
<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=
"9kx-tK-PfB"
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=
"addAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"zO7-w9-pFi"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新增"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"z9e-bT-lDi"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"wVI-Ir-3Mv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"17"
/>
<color
key=
"textColor"
name=
"白色背景色"
/>
<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=
"Qqa-3M-ZQN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"725"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"TVJ-KE-qtq"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"QYO-PN-ejg"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WnZ-DY-vHR"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"w6B-Wh-pPi"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"9kx-tK-PfB"
firstAttribute=
"top"
secondItem=
"z9e-bT-lDi"
secondAttribute=
"top"
id=
"0NX-2N-3lZ"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"z9e-bT-lDi"
secondAttribute=
"trailing"
id=
"1tN-8Q-GT2"
/>
<constraint
firstItem=
"WnZ-DY-vHR"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"2mi-zr-Yva"
/>
<constraint
firstItem=
"Qqa-3M-ZQN"
firstAttribute=
"top"
secondItem=
"WnZ-DY-vHR"
secondAttribute=
"bottom"
id=
"4rW-cQ-kze"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"z9e-bT-lDi"
secondAttribute=
"bottom"
id=
"6TD-5Y-pYJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"9kx-tK-PfB"
secondAttribute=
"trailing"
id=
"96j-cI-Iqa"
/>
<constraint
firstItem=
"9kx-tK-PfB"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"ChR-lV-J3e"
/>
<constraint
firstItem=
"9kx-tK-PfB"
firstAttribute=
"top"
secondItem=
"Qqa-3M-ZQN"
secondAttribute=
"bottom"
id=
"HWT-td-3YR"
/>
<constraint
firstItem=
"Qqa-3M-ZQN"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"JW9-f8-KXu"
/>
<constraint
firstItem=
"z9e-bT-lDi"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"L1D-ab-UEl"
/>
<constraint
firstItem=
"WnZ-DY-vHR"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"TWT-lE-SpD"
/>
<constraint
firstItem=
"Qqa-3M-ZQN"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"ZEj-0r-CwC"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"9kx-tK-PfB"
secondAttribute=
"bottom"
id=
"il2-ke-p14"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"WnZ-DY-vHR"
secondAttribute=
"trailing"
id=
"ooy-cD-b4B"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"131.91964285714286"
/>
</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=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/地址管理/DZGLTableView.swift
0 → 100644
View file @
70168907
//
// DZGLTableView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/8.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
DZGLTableView
:
UITableView
{
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
if
#available(iOS 11.0, *)
{
for
subview
in
self
.
subviews
where
subview
.
isKind
(
of
:
NSClassFromString
(
"UISwipeActionPullView"
)
!
)
{
subview
.
backgroundColor
=
UIColor
(
named
:
"#F57575"
)
for
view
in
subview
.
subviews
where
view
.
isKind
(
of
:
NSClassFromString
(
"UISwipeActionStandardButton"
)
!
)
{
view
.
backgroundColor
=
UIColor
(
named
:
"#F57575"
)
let
deleteBtn
=
setupDeleteBtn
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
65
,
height
:
self
.
bounds
.
size
.
height
))
view
.
addSubview
(
deleteBtn
)
view
.
bringSubviewToFront
(
deleteBtn
)
}
}
}
else
{
// IOS 10以及以下
for
subview
in
subviews
where
subview
.
isKind
(
of
:
NSClassFromString
(
"UITableViewCellDeleteConfirmationView"
)
!
)
{
subview
.
backgroundColor
=
UIColor
(
named
:
"#F57575"
)
for
view
in
subview
.
subviews
where
view
.
isKind
(
of
:
UIButton
.
self
)
{
view
.
backgroundColor
=
UIColor
(
named
:
"#F57575"
)
let
deleteBtn
=
setupDeleteBtn
(
frame
:
view
.
frame
)
view
.
addSubview
(
deleteBtn
)
view
.
bringSubviewToFront
(
deleteBtn
)
}
}
}
}
private
func
setupDeleteBtn
(
frame
:
CGRect
)
->
UIButton
{
let
deleteBtn
=
UIButton
(
type
:
.
custom
)
deleteBtn
.
frame
=
frame
deleteBtn
.
backgroundColor
=
UIColor
(
named
:
"#F57575"
)
deleteBtn
.
setImage
(
UIImage
(
named
:
"shanchuWhite"
),
for
:
.
normal
)
return
deleteBtn
}
}
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
0 → 100644
View file @
70168907
//
// DZGLViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/7.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
DZGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
@IBOutlet
weak
var
listView
:
DZGLTableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"地址管理"
navbar
.
rightTitle
=
"新增"
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
SetTopFrame
(
view
:
listView
,
height
:
fullScreenHeight
-
NavCGRect
.
height
)
listView
.
register
(
UINib
(
nibName
:
"DiZhiGuanLiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DiZhiGuanLiCell"
)
// Do any additional setup after loading the view.
}
func
rightBtnClick
()
{
let
vc
=
XinZengDiZhiViewController
()
vc
.
navTitle
=
"新增地址"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DiZhiGuanLiCell"
)
as!
DiZhiGuanLiCell
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
.
row
)
let
vc
=
XinZengDiZhiViewController
()
vc
.
navTitle
=
"编辑地址"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK:- 左滑删除
func
tableView
(
_
tableView
:
UITableView
,
canEditRowAt
indexPath
:
IndexPath
)
->
Bool
{
return
true
}
func
tableView
(
_
tableView
:
UITableView
,
editingStyleForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
.
EditingStyle
{
return
.
delete
}
func
tableView
(
_
tableView
:
UITableView
,
commit
editingStyle
:
UITableViewCell
.
EditingStyle
,
forRowAt
indexPath
:
IndexPath
)
{
let
cell
=
tableView
.
cellForRow
(
at
:
indexPath
)
as!
DiZhiGuanLiCell
print
(
cell
.
nameLbl
.
text
)
}
}
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.xib
0 → 100644
View file @
70168907
<?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=
"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=
"DZGLViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"PT0-ms-ns9"
id=
"I4E-LU-xmE"
/>
<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>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PT0-ms-ns9"
customClass=
"DZGLTableView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"818"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"S9q-iF-ucu"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"GCo-1t-z5P"
/>
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"PT0-ms-ns9"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"CdY-4j-SHV"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"PT0-ms-ns9"
secondAttribute=
"trailing"
id=
"ZJi-7I-Sxa"
/>
<constraint
firstItem=
"PT0-ms-ns9"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"gk5-jK-11s"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"PT0-ms-ns9"
secondAttribute=
"bottom"
id=
"ix1-ZR-9a5"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"132"
/>
</view>
</objects>
</document>
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
View file @
70168907
...
...
@@ -10,6 +10,11 @@ import UIKit
class
DiZhiGuanLiCell
:
UITableViewCell
{
@IBOutlet
weak
var
adrLbl
:
UILabel
!
@IBOutlet
weak
var
yellowLbl
:
UILabel
!
@IBOutlet
weak
var
blueLbl
:
UILabel
!
@IBOutlet
weak
var
phoneLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
...
...
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
View file @
70168907
...
...
@@ -49,7 +49,7 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"寄"
textAlignment=
"
natural
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jf6-0X-5eB"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"寄"
textAlignment=
"
center
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jf6-0X-5eB"
>
<rect
key=
"frame"
x=
"159"
y=
"16.5"
width=
"18"
height=
"18"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"Euu-6m-2fN"
/>
...
...
@@ -70,7 +70,7 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收"
textAlignment=
"
natural
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mWp-V0-KaZ"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收"
textAlignment=
"
center
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mWp-V0-KaZ"
>
<rect
key=
"frame"
x=
"187"
y=
"16.5"
width=
"18"
height=
"18"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"Zrg-2c-fbB"
/>
...
...
@@ -128,6 +128,13 @@
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"adrLbl"
destination=
"SOh-hJ-gKS"
id=
"L7w-a5-WXV"
/>
<outlet
property=
"blueLbl"
destination=
"jf6-0X-5eB"
id=
"8kh-Kf-KNP"
/>
<outlet
property=
"nameLbl"
destination=
"vAQ-5q-KPr"
id=
"Z7m-rl-JTe"
/>
<outlet
property=
"phoneLbl"
destination=
"0Zd-v3-Vtu"
id=
"3CH-Ai-KUY"
/>
<outlet
property=
"yellowLbl"
destination=
"mWp-V0-KaZ"
id=
"La4-PQ-SDN"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.54017857142857"
/>
</tableViewCell>
</objects>
...
...
@@ -143,7 +150,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
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"
/>
...
...
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
View file @
70168907
...
...
@@ -8,19 +8,21 @@
import
UIKit
class
XinZengDiZhiViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
XinZengDiZhiViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFAndBtnCellDelegate
{
let
titleArr
=
[
"收货人:"
,
"地址:"
,
"详细地址:"
,
"手机号:"
,
"电话:"
,
"邮编:"
]
let
holderArr
=
[
"请填写收货人姓名"
,
"请选择城市"
,
"请输入详细地址"
,
"请输入手机号"
,
"请输入电话"
,
"请输入邮编"
]
@IBOutlet
weak
var
listView
:
UITableView
!
@IBAction
func
saveAction
(
_
sender
:
Any
)
{
print
(
"保存"
)
}
var
navTitle
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"新增地址"
// if 编辑状态
{
//
navbar.rightTitle = "删除"
//
}
navbar
.
title
=
navTitle
if
navTitle
==
"编辑地址"
{
navbar
.
rightTitle
=
"删除"
}
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
...
...
@@ -41,6 +43,10 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
print
(
"删除"
)
}
//MARK: - cell delegate
func
TitleAndTFAndBtnCellBtnClick
()
{
let
vc
=
SJMapViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
10*
glscale
))
view
.
backgroundColor
=
UIColor
.
clear
...
...
@@ -82,6 +88,7 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFAndBtnCell"
)
as!
TitleAndTFAndBtnCell
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
textTF
.
placeholder
=
holderArr
[
indexPath
.
row
]
cell
.
delegate
=
self
return
cell
default
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSwitchCell"
)
as!
TitleAndSwitchCell
...
...
@@ -92,4 +99,6 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
return
cell
}
}
}
GeliBusinessPlatform/ViewController/
应付账款/YingFuZhangKuan
ViewController.swift
→
GeliBusinessPlatform/ViewController/
客户管理/BingDingKeHu
ViewController.swift
View file @
70168907
//
//
YingFuZhangKuan
ViewController.swift
//
BingDingKeHu
ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/
4/30
.
// Created by junye lu on 2020/
5/8
.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
YingFuZhangKuanViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
class
BingDingKeHuViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
searchBgView
:
UIView
!
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
topView
:
UIView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"
应付账款
"
navbar
.
title
=
"
绑定客户
"
self
.
view
.
addSubview
(
navbar
)
//searchbar
SetTopFrame
(
view
:
topView
,
height
:
44
)
listView
.
separatorStyle
=
.
none
let
searchBr
=
SearchBarView
.
init
()
self
.
searchBg
View
.
addSubview
(
searchBr
)
top
View
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
3
5
)
make
.
height
.
equalTo
(
3
0
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"
请输入客户名称
"
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
placeholderStr
=
"
客户名称/联系人/电话号码
"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
SetTopFrame
(
view
:
searchBgView
,
height
:
44
)
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"YingFuZhangKuanCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"YingFuZhangKuanCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndSelectCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndSelectCell"
)
// Do any additional setup after loading the view.
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
view
.
backgroundColor
=
UIColor
.
white
let
title
=
UILabel
()
title
.
text
=
"当前应付款余额总计:"
title
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
title
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
view
.
addSubview
(
title
)
title
.
sizeToFit
()
title
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
15
)
make
.
top
.
bottom
.
equalTo
(
0
)
make
.
width
.
equalTo
(
title
.
bounds
.
size
.
width
)
}
let
ti1
=
UILabel
()
ti1
.
text
=
"¥-594153"
ti1
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
ti1
.
textColor
=
UIColor
(
named
:
"#F57575"
)
view
.
addSubview
(
ti1
)
ti1
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
title
.
snp_right
)
make
.
top
.
right
.
bottom
.
equalTo
(
0
)
}
let
l1
=
UIView
()
l1
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
view
.
addSubview
(
l1
)
l1
.
snp
.
makeConstraints
{
(
make
)
in
make
.
height
.
equalTo
(
1
)
make
.
top
.
right
.
left
.
equalTo
(
0
)
}
let
l11
=
UIView
()
l11
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
view
.
addSubview
(
l11
)
l11
.
snp
.
makeConstraints
{
(
make
)
in
make
.
height
.
equalTo
(
1
)
make
.
bottom
.
right
.
left
.
equalTo
(
0
)
}
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
//MARK: - 自定义delegate
func
clearSearchAction
()
{
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
10
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"YingFuZhangKuanCell"
)
as!
YingFuZhangKuanCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSelectCell"
)
as!
TitleAndSelectCell
if
indexPath
.
row
==
0
{
cell
.
line
.
isHidden
=
true
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
clearSearchAction
()
{
}
}
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.xib
0 → 100644
View file @
70168907
<?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=
"BingDingKeHuViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"dKr-ht-gTe"
id=
"mGl-dV-lVW"
/>
<outlet
property=
"topView"
destination=
"ZWZ-oM-W0w"
id=
"5XG-aj-fid"
/>
<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=
"ZWZ-oM-W0w"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UIj-ks-JoE"
>
<rect
key=
"frame"
x=
"0.0"
y=
"43"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"Yc0-on-q4i"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"UIj-ks-JoE"
firstAttribute=
"leading"
secondItem=
"ZWZ-oM-W0w"
secondAttribute=
"leading"
id=
"MMZ-Lo-dG6"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"UIj-ks-JoE"
secondAttribute=
"bottom"
id=
"UbT-Jl-0be"
/>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"r2i-Ur-e7M"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"UIj-ks-JoE"
secondAttribute=
"trailing"
id=
"zal-3h-2wG"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HiK-IG-NhA"
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=
"touchUpInside"
id=
"hFL-7N-GNZ"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"确定"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kkL-Ex-f4m"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"Yb7-gA-qwt"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"17"
/>
<color
key=
"textColor"
name=
"白色背景色"
/>
<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=
"dKr-ht-gTe"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"725"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"T9B-sO-Xae"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"NHC-Qg-o7I"
/>
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"dKr-ht-gTe"
secondAttribute=
"trailing"
id=
"43h-Tk-BLk"
/>
<constraint
firstItem=
"kkL-Ex-f4m"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"6fP-Od-1GN"
/>
<constraint
firstItem=
"ZWZ-oM-W0w"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"70Z-1r-nqn"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"ZWZ-oM-W0w"
secondAttribute=
"trailing"
id=
"8Lq-Ci-rQ4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"HiK-IG-NhA"
secondAttribute=
"trailing"
id=
"8UO-fm-V9M"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"kkL-Ex-f4m"
secondAttribute=
"trailing"
id=
"Dt5-x2-Zla"
/>
<constraint
firstItem=
"HiK-IG-NhA"
firstAttribute=
"top"
secondItem=
"kkL-Ex-f4m"
secondAttribute=
"top"
id=
"EjZ-tD-J1o"
/>
<constraint
firstItem=
"HiK-IG-NhA"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"KId-Lx-jpM"
/>
<constraint
firstItem=
"ZWZ-oM-W0w"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Plx-4T-nwh"
/>
<constraint
firstItem=
"HiK-IG-NhA"
firstAttribute=
"top"
secondItem=
"dKr-ht-gTe"
secondAttribute=
"bottom"
id=
"Xxt-jm-DYG"
/>
<constraint
firstItem=
"dKr-ht-gTe"
firstAttribute=
"top"
secondItem=
"ZWZ-oM-W0w"
secondAttribute=
"bottom"
id=
"dDc-Sh-1jr"
/>
<constraint
firstItem=
"dKr-ht-gTe"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"fRN-TY-xOr"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"kkL-Ex-f4m"
secondAttribute=
"bottom"
id=
"prc-F4-zba"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"HiK-IG-NhA"
secondAttribute=
"bottom"
id=
"yzd-34-HCk"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"131.91964285714286"
/>
</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.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
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>
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.swift
View file @
70168907
...
...
@@ -7,9 +7,11 @@
//
import
UIKit
@objc
protocol
KeHuGuanLiCellDelegate
{
@objc
optional
func
KeHuGuanLiCellEditClick
(
cell
:
KeHuGuanLiCell
)
}
class
KeHuGuanLiCell
:
UITableViewCell
{
var
delegate
:
KeHuGuanLiCellDelegate
?
@IBOutlet
weak
var
iconImg
:
UIImageView
!
@IBOutlet
weak
var
compenyLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
...
...
@@ -19,9 +21,12 @@ class KeHuGuanLiCell: UITableViewCell {
@IBOutlet
weak
var
statusLbl1
:
UILabel
!
@IBOutlet
weak
var
statusLbl2
:
UILabel
!
@IBOutlet
weak
var
statusLbl3
:
UILabel
!
var
phoneNum
:
String
?
=
"phoneNum"
@IBAction
func
phoneCallAction
(
_
sender
:
Any
)
{
print
(
"打电话方法 拼接
\(
phoneNum
)
"
)
}
@IBAction
func
editAction
(
_
sender
:
Any
)
{
delegate
?
.
KeHuGuanLiCellEditClick
?(
cell
:
self
)
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuGuanLiCell.xib
View file @
70168907
...
...
@@ -236,7 +236,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
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"
/>
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
0 → 100644
View file @
70168907
//
// KeHuListViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/8.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
KeHuListViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
KeHuGuanLiCellDelegate
{
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
coverBtn
:
UIButton
!
@IBOutlet
weak
var
rightImg
:
UIImageView
!
@IBOutlet
weak
var
leftImg
:
UIImageView
!
@IBOutlet
weak
var
rightLbl
:
UILabel
!
@IBOutlet
weak
var
leftLbl
:
UILabel
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
leftSelectView
:
UITableView
!
@IBOutlet
weak
var
rightSelectView
:
UITableView
!
let
selectListRecord
=
NSMutableArray
()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
selectListRecord
.
add
(
99
)
selectListRecord
.
add
(
99
)
navbar
.
title
=
"客户管理"
self
.
view
.
addSubview
(
navbar
)
let
searchBr
=
SearchBarView
.
init
()
topView
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"客户名称/联系人/电话号码"
searchBr
.
cornerRadius
=
30*0.5
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
listView
.
separatorStyle
=
.
none
rightSelectView
.
separatorStyle
=
.
none
leftSelectView
.
separatorStyle
=
.
none
setYuanJiao
(
sender
:
leftSelectView
)
setYuanJiao
(
sender
:
rightSelectView
)
listView
.
register
(
UINib
(
nibName
:
"KeHuGuanLiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"KeHuGuanLiCell"
)
rightSelectView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
leftSelectView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
// Do any additional setup after loading the view.
}
//MARK: - method
func
setYuanJiao
(
sender
:
UIView
){
let
maskPath
=
UIBezierPath
(
roundedRect
:
sender
.
bounds
,
byRoundingCorners
:[
.
bottomRight
,
.
bottomLeft
],
cornerRadii
:
CGSize
(
width
:
5
,
height
:
5
))
let
masklayer
=
CAShapeLayer
()
masklayer
.
frame
=
sender
.
bounds
masklayer
.
path
=
maskPath
.
cgPath
sender
.
layer
.
mask
=
masklayer
}
@IBAction
func
closeAction
(
_
sender
:
Any
)
{
coverBtn
.
isHidden
=
true
leftSelectView
.
isHidden
=
true
rightSelectView
.
isHidden
=
true
leftImg
.
image
=
UIImage
(
named
:
"xiala"
)
leftLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
rightImg
.
image
=
UIImage
(
named
:
"xiala"
)
rightLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
}
@IBAction
func
btnClick
(
_
sender
:
UIButton
)
{
//
//UI
if
sender
.
tag
==
0
{
leftLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
rightLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
leftSelectView
.
isHidden
=
!
leftSelectView
.
isHidden
rightSelectView
.
isHidden
=
true
coverBtn
.
isHidden
=
leftSelectView
.
isHidden
if
leftSelectView
.
isHidden
==
true
{
leftImg
.
image
=
UIImage
(
named
:
"xiala"
)
leftLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
}
else
{
leftImg
.
image
=
UIImage
(
named
:
"shangla"
)
rightImg
.
image
=
UIImage
(
named
:
"xiala"
)
}
}
else
{
leftLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
rightLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
rightSelectView
.
isHidden
=
!
rightSelectView
.
isHidden
leftSelectView
.
isHidden
=
true
coverBtn
.
isHidden
=
rightSelectView
.
isHidden
if
rightSelectView
.
isHidden
==
true
{
rightImg
.
image
=
UIImage
(
named
:
"xiala"
)
rightLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
}
else
{
rightImg
.
image
=
UIImage
(
named
:
"shangla"
)
leftImg
.
image
=
UIImage
(
named
:
"xiala"
)
}
}
}
@IBAction
func
addAction
(
_
sender
:
Any
)
{
let
vc
=
XinZengAndBianJiKeHuViewController
()
vc
.
titleStr
=
"新增客户"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK: - 自定义delegate
func
KeHuGuanLiCellEditClick
(
cell
:
KeHuGuanLiCell
)
{
let
vc
=
XinZengAndBianJiKeHuViewController
()
vc
.
titleStr
=
"编辑客户"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
clearSearchAction
()
{
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
tableView
==
leftSelectView
{
selectListRecord
.
replaceObject
(
at
:
0
,
with
:
indexPath
.
row
)
coverBtn
.
isHidden
=
true
leftSelectView
.
isHidden
=
true
rightSelectView
.
isHidden
=
true
leftImg
.
image
=
UIImage
(
named
:
"xiala"
)
leftLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
leftSelectView
.
reloadData
()
}
if
tableView
==
rightSelectView
{
selectListRecord
.
replaceObject
(
at
:
1
,
with
:
indexPath
.
row
)
coverBtn
.
isHidden
=
true
leftSelectView
.
isHidden
=
true
rightSelectView
.
isHidden
=
true
rightImg
.
image
=
UIImage
(
named
:
"xiala"
)
rightLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
rightSelectView
.
reloadData
()
}
//MARK: - 跳转客户详情
if
tableView
==
listView
{
let
vc
=
KeHuXQViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
tableView
==
listView
{
return
100
}
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
tableView
==
leftSelectView
{
return
3
}
if
tableView
==
rightSelectView
{
return
2
}
return
3
}
let
leftArr
=
[
"全部"
,
"个人"
,
"企业"
]
let
rightArr
=
[
"新增时间正序"
,
"新增时间倒序"
]
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
tableView
==
listView
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"KeHuGuanLiCell"
)
as!
KeHuGuanLiCell
cell
.
delegate
=
self
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
textTF
.
isHidden
=
true
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
nameLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
if
tableView
==
leftSelectView
{
cell
.
nameLbl
.
text
=
leftArr
[
indexPath
.
row
]
let
num
:
Int
=
selectListRecord
.
firstObject
as!
Int
if
num
==
indexPath
.
row
{
cell
.
nameLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
}
}
if
tableView
==
rightSelectView
{
cell
.
nameLbl
.
text
=
rightArr
[
indexPath
.
row
]
let
num
:
Int
=
selectListRecord
.
lastObject
as!
Int
if
num
==
indexPath
.
row
{
cell
.
nameLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
}
}
return
cell
}
}
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.xib
0 → 100644
View file @
70168907
<?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=
"KeHuListViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"coverBtn"
destination=
"mYo-wM-YJR"
id=
"d6H-95-2Rx"
/>
<outlet
property=
"leftImg"
destination=
"djg-1R-eMn"
id=
"PAa-tQ-ZAR"
/>
<outlet
property=
"leftLbl"
destination=
"4pv-Ji-sxS"
id=
"cRi-RU-ZAs"
/>
<outlet
property=
"leftSelectView"
destination=
"t8X-ZG-zEi"
id=
"f8e-bT-bLr"
/>
<outlet
property=
"listView"
destination=
"eHW-wc-LLa"
id=
"6Gz-pU-O4t"
/>
<outlet
property=
"rightImg"
destination=
"c9U-yZ-wv6"
id=
"OaT-sb-7zO"
/>
<outlet
property=
"rightLbl"
destination=
"oLg-fW-ms4"
id=
"p5X-tp-P0h"
/>
<outlet
property=
"rightSelectView"
destination=
"tBl-X7-ZHN"
id=
"OsM-Et-Cfq"
/>
<outlet
property=
"topView"
destination=
"UK3-Bv-Spb"
id=
"Gpg-UW-wo0"
/>
<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=
"UK3-Bv-Spb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"PS6-OU-AOM"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"hFZ-bh-SIG"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"44"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KvV-hM-Hwj"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"5ac-5E-n0n"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"P8g-dp-qR6"
>
<rect
key=
"frame"
x=
"0.0"
y=
"43"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"Vqx-9l-fUr"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wlq-kf-RDX"
>
<rect
key=
"frame"
x=
"0.0"
y=
"1"
width=
"207"
height=
"42"
/>
<connections>
<action
selector=
"btnClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Qcm-hC-FPe"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GXD-3Z-7Lp"
>
<rect
key=
"frame"
x=
"207"
y=
"1"
width=
"207"
height=
"43"
/>
<connections>
<action
selector=
"btnClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"khN-ay-HlS"
/>
</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=
"4pv-Ji-sxS"
>
<rect
key=
"frame"
x=
"76.5"
y=
"14"
width=
"54"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"排序"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oLg-fW-ms4"
>
<rect
key=
"frame"
x=
"297"
y=
"14.5"
width=
"27"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"xiala"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"djg-1R-eMn"
>
<rect
key=
"frame"
x=
"135.5"
y=
"17.5"
width=
"18"
height=
"9"
/>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"xiala"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"c9U-yZ-wv6"
>
<rect
key=
"frame"
x=
"329"
y=
"18"
width=
"18"
height=
"9"
/>
</imageView>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"P8g-dp-qR6"
secondAttribute=
"trailing"
id=
"96g-7h-ikP"
/>
<constraint
firstItem=
"oLg-fW-ms4"
firstAttribute=
"centerY"
secondItem=
"GXD-3Z-7Lp"
secondAttribute=
"centerY"
id=
"9z0-do-0L9"
/>
<constraint
firstItem=
"djg-1R-eMn"
firstAttribute=
"leading"
secondItem=
"4pv-Ji-sxS"
secondAttribute=
"trailing"
constant=
"5"
id=
"HOH-PQ-yGx"
/>
<constraint
firstItem=
"c9U-yZ-wv6"
firstAttribute=
"leading"
secondItem=
"oLg-fW-ms4"
secondAttribute=
"trailing"
constant=
"5"
id=
"HOr-Ds-Uk3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"GXD-3Z-7Lp"
secondAttribute=
"trailing"
id=
"I8u-HK-loJ"
/>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"L0x-Db-MXL"
/>
<constraint
firstItem=
"wlq-kf-RDX"
firstAttribute=
"top"
secondItem=
"KvV-hM-Hwj"
secondAttribute=
"bottom"
id=
"QRG-Qb-Snl"
/>
<constraint
firstItem=
"oLg-fW-ms4"
firstAttribute=
"centerX"
secondItem=
"GXD-3Z-7Lp"
secondAttribute=
"centerX"
id=
"Vtp-Hj-Ckb"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"GXD-3Z-7Lp"
secondAttribute=
"bottom"
id=
"Wis-IZ-dbQ"
/>
<constraint
firstItem=
"GXD-3Z-7Lp"
firstAttribute=
"width"
secondItem=
"wlq-kf-RDX"
secondAttribute=
"width"
id=
"X0I-Rx-haE"
/>
<constraint
firstItem=
"djg-1R-eMn"
firstAttribute=
"centerY"
secondItem=
"4pv-Ji-sxS"
secondAttribute=
"centerY"
id=
"a7n-6G-P7C"
/>
<constraint
firstItem=
"GXD-3Z-7Lp"
firstAttribute=
"leading"
secondItem=
"wlq-kf-RDX"
secondAttribute=
"trailing"
id=
"b30-k1-GAS"
/>
<constraint
firstItem=
"4pv-Ji-sxS"
firstAttribute=
"centerY"
secondItem=
"wlq-kf-RDX"
secondAttribute=
"centerY"
id=
"dgI-cI-f3x"
/>
<constraint
firstItem=
"c9U-yZ-wv6"
firstAttribute=
"centerY"
secondItem=
"oLg-fW-ms4"
secondAttribute=
"centerY"
id=
"e66-gZ-wPz"
/>
<constraint
firstItem=
"4pv-Ji-sxS"
firstAttribute=
"centerX"
secondItem=
"wlq-kf-RDX"
secondAttribute=
"centerX"
id=
"g7n-rb-EI2"
/>
<constraint
firstItem=
"P8g-dp-qR6"
firstAttribute=
"leading"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"leading"
id=
"gaJ-ho-xvs"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"KvV-hM-Hwj"
secondAttribute=
"trailing"
id=
"jR5-1x-oFK"
/>
<constraint
firstItem=
"P8g-dp-qR6"
firstAttribute=
"top"
secondItem=
"wlq-kf-RDX"
secondAttribute=
"bottom"
id=
"kFa-vH-lJz"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"P8g-dp-qR6"
secondAttribute=
"bottom"
id=
"mmK-HG-XO1"
/>
<constraint
firstItem=
"wlq-kf-RDX"
firstAttribute=
"leading"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"leading"
id=
"rM7-Fs-YGZ"
/>
<constraint
firstItem=
"GXD-3Z-7Lp"
firstAttribute=
"top"
secondItem=
"KvV-hM-Hwj"
secondAttribute=
"bottom"
id=
"uAt-j3-Cxr"
/>
<constraint
firstItem=
"KvV-hM-Hwj"
firstAttribute=
"leading"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"leading"
id=
"ukG-9D-NNX"
/>
<constraint
firstItem=
"KvV-hM-Hwj"
firstAttribute=
"top"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"top"
id=
"yCt-nT-kvh"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eHW-wc-LLa"
>
<rect
key=
"frame"
x=
"0.0"
y=
"132"
width=
"414"
height=
"681"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"Q3v-hm-IEl"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"ajh-yq-AKL"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NmT-QC-WB0"
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=
"addAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"wpb-KE-27i"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新增"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"T4Z-gb-yua"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"YEI-g8-E7F"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"17"
/>
<color
key=
"textColor"
name=
"白色背景色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
hidden=
"YES"
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mYo-wM-YJR"
>
<rect
key=
"frame"
x=
"0.0"
y=
"132"
width=
"414"
height=
"800"
/>
<color
key=
"backgroundColor"
name=
"标题字颜色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"800"
id=
"c6s-Qe-27G"
/>
</constraints>
<connections>
<action
selector=
"closeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"v1a-lJ-OZO"
/>
</connections>
</button>
<tableView
hidden=
"YES"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
scrollEnabled=
"NO"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"t8X-ZG-zEi"
>
<rect
key=
"frame"
x=
"0.0"
y=
"132"
width=
"414"
height=
"149"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"149"
id=
"51J-7z-PzL"
/>
</constraints>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"4Tx-5U-EZr"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"iT2-s3-XEY"
/>
</connections>
</tableView>
<tableView
hidden=
"YES"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tBl-X7-ZHN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"132"
width=
"414"
height=
"99"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"99"
id=
"Ga9-lx-ylf"
/>
</constraints>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"hsn-op-Vu6"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"fkT-Tn-Y5i"
/>
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"t8X-ZG-zEi"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"0cL-lc-9CQ"
/>
<constraint
firstItem=
"hFZ-bh-SIG"
firstAttribute=
"top"
secondItem=
"UK3-Bv-Spb"
secondAttribute=
"bottom"
id=
"3ao-zp-mM4"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"UK3-Bv-Spb"
secondAttribute=
"trailing"
id=
"49X-l3-bWK"
/>
<constraint
firstItem=
"UK3-Bv-Spb"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"EeB-aE-KM1"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"tBl-X7-ZHN"
secondAttribute=
"trailing"
id=
"IlY-il-fu5"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"trailing"
id=
"Jnm-mU-kQL"
/>
<constraint
firstItem=
"NmT-QC-WB0"
firstAttribute=
"top"
secondItem=
"T4Z-gb-yua"
secondAttribute=
"top"
id=
"LHb-xK-0RS"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"NmT-QC-WB0"
secondAttribute=
"trailing"
id=
"NHe-ic-L5H"
/>
<constraint
firstItem=
"eHW-wc-LLa"
firstAttribute=
"top"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"bottom"
id=
"Ntd-4K-yZ6"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"T4Z-gb-yua"
secondAttribute=
"trailing"
id=
"PPq-0X-lnm"
/>
<constraint
firstItem=
"mYo-wM-YJR"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"TXT-NF-RgW"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"T4Z-gb-yua"
secondAttribute=
"bottom"
id=
"VNM-UU-Rxj"
/>
<constraint
firstItem=
"tBl-X7-ZHN"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"VWy-iB-4yZ"
/>
<constraint
firstItem=
"tBl-X7-ZHN"
firstAttribute=
"top"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"bottom"
id=
"YBC-68-pVY"
/>
<constraint
firstItem=
"UK3-Bv-Spb"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"YOA-GY-Jg9"
/>
<constraint
firstItem=
"hFZ-bh-SIG"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"aI7-KR-Akv"
/>
<constraint
firstItem=
"T4Z-gb-yua"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"aXo-uU-chH"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"eHW-wc-LLa"
secondAttribute=
"trailing"
id=
"dC9-tO-LTY"
/>
<constraint
firstItem=
"mYo-wM-YJR"
firstAttribute=
"top"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"bottom"
id=
"pRp-6V-KKc"
/>
<constraint
firstItem=
"NmT-QC-WB0"
firstAttribute=
"top"
secondItem=
"eHW-wc-LLa"
secondAttribute=
"bottom"
id=
"qUQ-Re-isi"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"t8X-ZG-zEi"
secondAttribute=
"trailing"
id=
"qnd-1h-lZo"
/>
<constraint
firstItem=
"mYo-wM-YJR"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"r4e-NL-aQe"
/>
<constraint
firstItem=
"eHW-wc-LLa"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"xU5-CY-ruu"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"NmT-QC-WB0"
secondAttribute=
"bottom"
id=
"yD7-DM-Z3X"
/>
<constraint
firstItem=
"t8X-ZG-zEi"
firstAttribute=
"top"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"bottom"
id=
"yF5-Jg-CP5"
/>
<constraint
firstItem=
"NmT-QC-WB0"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"yW9-el-GKK"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"131.91964285714286"
/>
</view>
</objects>
<resources>
<image
name=
"xiala"
width=
"9"
height=
"4.5"
/>
<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.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>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
View file @
70168907
...
...
@@ -59,12 +59,18 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
titleArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
row
==
3
{
let
vc
=
BingDingKeHuViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
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
]
cell
.
btn
.
isUserInteractionEnabled
=
false
if
indexPath
.
row
==
3
{
if
bindKehu
.
count
>
0
{
cell
.
contentLbl
.
text
=
bindKehu
...
...
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.xib
View file @
70168907
...
...
@@ -101,7 +101,7 @@
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
70168907
...
...
@@ -8,7 +8,7 @@
import
UIKit
class
WorkCViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
WorkSelectTimeViewDelegate
{
class
WorkCViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
WorkSelectTimeViewDelegate
,
WorkItemTableViewCellDelegate
{
@IBOutlet
weak
var
topNavBtn
:
UIButton
!
@IBOutlet
weak
var
contentView
:
UIView
!
...
...
@@ -60,7 +60,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
tableV
.
separatorStyle
=
.
none
tableV
?
.
register
(
UINib
(
nibName
:
"WorkItemTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"WorkItemTableViewCell"
)
tableV
?
.
register
(
UINib
(
nibName
:
"WorkBannerTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"WorkBannerTableViewCell"
)
//设置estimatedRowHeight属性默认值
tableV
.
estimatedRowHeight
=
44
//rowHeight属性设置为UITableViewAutomaticDimension
...
...
@@ -74,12 +74,13 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
row
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WorkBannerTableViewCell"
)
as!
WorkBannerTableViewCell
return
cell
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WorkItemTableViewCell"
)
as!
WorkItemTableViewCell
//下面这两个语句一定要添加,否则第一屏显示的collection view尺寸,以及里面的单元格位置会不正确
cell
.
frame
=
tableView
.
bounds
cell
.
delegate
=
self
cell
.
layoutIfNeeded
()
let
arr
=
[
"常用功能"
,
"代办事项"
,
"功能列表"
]
cell
.
reloadData
(
title
:
arr
[
indexPath
.
row
-
1
],
items
:
[])
...
...
@@ -90,7 +91,6 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
}
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
"点中cell--
\(
indexPath
.
row
)
"
)
...
...
@@ -100,15 +100,60 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
row
==
0
{
return
223*
glscale
;
}
return
tableV
.
rowHeight
}
//MARK: - diy cell delegate
func
WorkItemTableViewCellBtnClick
(
sender
:
WorkItemTableViewCell
,
idx
:
IndexPath
)
{
print
(
"选中item=
\(
idx
.
section
)
=
\(
idx
.
row
)
"
)
let
target
=
""
switch
target
{
case
"代客下单"
:
let
vc
=
DaiKeXiaDanGouWuViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"地址管理"
:
let
vc
=
DZGLViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"品牌列表"
:
let
vc
=
PinPaiListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"新增采购单"
:
let
vc
=
XinCaiGouViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"应收账款"
:
let
vc
=
YingFuZKListViewController
()
vc
.
barTitle
=
"应收账款"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"应付账款"
:
let
vc
=
YingFuZKListViewController
()
vc
.
barTitle
=
"应付账款"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"供应商管理"
:
let
vc
=
GYSListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"收支统计"
:
let
vc
=
ShouZhiTongJiViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
case
"客户管理"
:
let
vc
=
KeHuListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
default
:
break
}
}
}
GeliBusinessPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
View file @
70168907
...
...
@@ -7,9 +7,11 @@
//
import
UIKit
@objc
protocol
WorkItemTableViewCellDelegate
{
@objc
optional
func
WorkItemTableViewCellBtnClick
(
sender
:
WorkItemTableViewCell
,
idx
:
IndexPath
)
}
class
WorkItemTableViewCell
:
UITableViewCell
,
UICollectionViewDelegate
,
UICollectionViewDataSource
{
var
delegate
:
WorkItemTableViewCellDelegate
?
@IBOutlet
weak
var
collectionViewHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
collectionView
:
UICollectionView
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
...
...
@@ -86,7 +88,8 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
print
(
"选中item=
\(
indexPath
.
section
)
=
\(
indexPath
.
row
)
"
)
// print("1选中item=\(indexPath.section)=\(indexPath.row)")
delegate
?
.
WorkItemTableViewCellBtnClick
?(
sender
:
self
,
idx
:
indexPath
)
}
...
...
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
0 → 100644
View file @
70168907
//
// YingFuZKListViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/8.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
YingFuZKListViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDataSource
,
UITableViewDelegate
{
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
totalPriceLbl
:
UILabel
!
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
var
searchV
:
SearchBarView
?
=
nil
var
barTitle
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
barTitle
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
SetTopFrame
(
view
:
topView
,
height
:
44
)
if
barTitle
==
"应收账款"
{
titleLbl
.
text
=
"当前应收款余额总计:"
}
let
searchBr
=
SearchBarView
.
init
()
topView
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入品牌名称/商品编码"
searchBr
.
cornerRadius
=
30*0.5
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
listView
.
register
(
UINib
(
nibName
:
"YingFuZhangKuanCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"YingFuZhangKuanCell"
)
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
YingFuZhangKuanXQViewController
()
vc
.
navTitle
=
"
\(
navbar
.
title
!
)
详情"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"YingFuZhangKuanCell"
)
as!
YingFuZhangKuanCell
return
cell
}
//MARK: - 自定义DELEGATE
func
clearSearchAction
()
{
}
}
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.xib
0 → 100644
View file @
70168907
<?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=
"YingFuZKListViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"csq-EP-8sj"
id=
"vI5-tf-5NB"
/>
<outlet
property=
"titleLbl"
destination=
"BV0-0O-Gee"
id=
"Cag-EP-rpB"
/>
<outlet
property=
"topView"
destination=
"VZN-z6-bLS"
id=
"MPm-Yn-Wc1"
/>
<outlet
property=
"totalPriceLbl"
destination=
"nKi-IO-Opl"
id=
"Izw-R9-4Zg"
/>
<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=
"VZN-z6-bLS"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"EOT-q2-wCt"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"W3g-9a-ZWc"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"49"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4b4-r4-1bV"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<color
key=
"tintColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"hbx-zX-0Dr"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mFp-21-spr"
>
<rect
key=
"frame"
x=
"0.0"
y=
"48"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"N2I-Kn-TIS"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"当前应付款余额总计:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BV0-0O-Gee"
>
<rect
key=
"frame"
x=
"15"
y=
"1"
width=
"133"
height=
"47"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"133"
id=
"w5z-IY-2sF"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥-594153"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"nKi-IO-Opl"
>
<rect
key=
"frame"
x=
"148"
y=
"1"
width=
"266"
height=
"47"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"#F57575"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"BV0-0O-Gee"
firstAttribute=
"leading"
secondItem=
"W3g-9a-ZWc"
secondAttribute=
"leading"
constant=
"15"
id=
"2MB-ao-ZK4"
/>
<constraint
firstItem=
"nKi-IO-Opl"
firstAttribute=
"top"
secondItem=
"4b4-r4-1bV"
secondAttribute=
"bottom"
id=
"2iL-2e-HA9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"4b4-r4-1bV"
secondAttribute=
"trailing"
id=
"AqI-P8-NBD"
/>
<constraint
firstItem=
"mFp-21-spr"
firstAttribute=
"top"
secondItem=
"BV0-0O-Gee"
secondAttribute=
"bottom"
id=
"GFB-iq-2Dt"
/>
<constraint
firstItem=
"4b4-r4-1bV"
firstAttribute=
"top"
secondItem=
"W3g-9a-ZWc"
secondAttribute=
"top"
id=
"LXd-LB-zMb"
/>
<constraint
firstItem=
"mFp-21-spr"
firstAttribute=
"top"
secondItem=
"nKi-IO-Opl"
secondAttribute=
"bottom"
id=
"OxH-jJ-L4J"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"mFp-21-spr"
secondAttribute=
"bottom"
id=
"X6K-LT-M3U"
/>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"ZZH-jb-NVq"
/>
<constraint
firstItem=
"BV0-0O-Gee"
firstAttribute=
"top"
secondItem=
"4b4-r4-1bV"
secondAttribute=
"bottom"
id=
"bln-Jk-4F6"
/>
<constraint
firstItem=
"mFp-21-spr"
firstAttribute=
"leading"
secondItem=
"W3g-9a-ZWc"
secondAttribute=
"leading"
id=
"h6g-oQ-Pvi"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"nKi-IO-Opl"
secondAttribute=
"trailing"
id=
"kgi-vP-XiY"
/>
<constraint
firstItem=
"nKi-IO-Opl"
firstAttribute=
"leading"
secondItem=
"BV0-0O-Gee"
secondAttribute=
"trailing"
id=
"mSJ-E6-Pes"
/>
<constraint
firstItem=
"4b4-r4-1bV"
firstAttribute=
"leading"
secondItem=
"W3g-9a-ZWc"
secondAttribute=
"leading"
id=
"rEh-m2-9jH"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"mFp-21-spr"
secondAttribute=
"trailing"
id=
"sGS-0m-Ttb"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"csq-EP-8sj"
>
<rect
key=
"frame"
x=
"0.0"
y=
"137"
width=
"414"
height=
"725"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"4vW-wg-iIE"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"4jR-Ve-rbW"
/>
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"csq-EP-8sj"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"03P-HB-CeT"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"VZN-z6-bLS"
secondAttribute=
"trailing"
id=
"5O0-Js-8sE"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"W3g-9a-ZWc"
secondAttribute=
"trailing"
id=
"9vU-yn-aWy"
/>
<constraint
firstItem=
"csq-EP-8sj"
firstAttribute=
"top"
secondItem=
"W3g-9a-ZWc"
secondAttribute=
"bottom"
id=
"EZ2-qy-KO5"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"csq-EP-8sj"
secondAttribute=
"bottom"
id=
"JHv-YJ-JTD"
/>
<constraint
firstItem=
"W3g-9a-ZWc"
firstAttribute=
"top"
secondItem=
"VZN-z6-bLS"
secondAttribute=
"bottom"
id=
"M3t-IU-Ht9"
/>
<constraint
firstItem=
"VZN-z6-bLS"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"b4d-b0-i83"
/>
<constraint
firstItem=
"W3g-9a-ZWc"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"eoh-JZ-ji1"
/>
<constraint
firstItem=
"VZN-z6-bLS"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"fAa-Il-ghJ"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"csq-EP-8sj"
secondAttribute=
"trailing"
id=
"uFJ-q9-Jjb"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"132"
/>
</view>
</objects>
<resources>
<namedColor
name=
"#F57575"
>
<color
red=
"0.96100002527236938"
green=
"0.45899999141693115"
blue=
"0.45899999141693115"
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>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQCell.xib
View file @
70168907
...
...
@@ -213,7 +213,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
View file @
70168907
...
...
@@ -9,8 +9,7 @@
import
UIKit
class
YingFuZhangKuanXQViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
var
navTitle
:
String
=
"应收账款详情"
// var navTitle:String = "应付账款详情"
var
navTitle
:
String
=
""
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
searchBGView
:
UIView
!
...
...
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.swift
0 → 100644
View file @
70168907
//
// PinPaiListViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/8.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
PinPaiListViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
var
searchV
:
SearchBarView
?
=
nil
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"品牌列表"
navbar
.
rightTitle
=
"新增"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
topView
,
height
:
44
)
listView
.
separatorStyle
=
.
none
let
searchBr
=
SearchBarView
.
init
()
topView
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
30
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入品牌名称/商品编码"
searchBr
.
cornerRadius
=
30*0.5
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
// Do any additional setup after loading the view.
}
func
rightBtnClick
()
{
let
vc
=
XinZengPinPaiViewController
()
vc
.
navTitle
=
"新增品牌"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
clearSearchAction
()
{
print
(
"清楚搜索文字"
)
}
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
"天地壹号"
cell
.
contentLbl
.
text
=
""
cell
.
btn
.
isUserInteractionEnabled
=
false
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
XinZengPinPaiViewController
()
vc
.
navTitle
=
"编辑品牌"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
GeliBusinessPlatform/ViewController/
应付账款/YingFuZhangKuan
ViewController.xib
→
GeliBusinessPlatform/ViewController/
新增、编辑品牌/PinPaiList
ViewController.xib
View file @
70168907
...
...
@@ -3,15 +3,14 @@
<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=
"
YingFuZhangKuan
ViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"
PinPaiList
ViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"
e48-X0-feC"
id=
"Jpc-0I-r4J
"
/>
<outlet
property=
"
searchBgView"
destination=
"4rg-BF-ud7"
id=
"bK5-m1-G34
"
/>
<outlet
property=
"listView"
destination=
"
u1k-5i-gDO"
id=
"yRs-QD-hlI
"
/>
<outlet
property=
"
topView"
destination=
"8ei-hi-CSb"
id=
"Gf2-pT-Nnu
"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
...
...
@@ -20,39 +19,34 @@
<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=
"
4rg-BF-ud7
"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"
8ei-hi-CSb
"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"
pRR-hl-89Q
"
/>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"
eG8-dq-d0M
"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"
e48-X0-feC
"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"
u1k-5i-gDO
"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"774"
/>
<color
key=
"backgroundColor"
name=
"app底色
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor
"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"
Wir-12-2ul
"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"
XGW-BV-gPf
"
/>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"
wNq-qE-Qfi
"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"
QMP-Ey-BaB
"
/>
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"
4rg-BF-ud7"
secondAttribute=
"trailing"
id=
"3Pl-H0-jBI
"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"
bottom"
secondItem=
"e48-X0-feC"
secondAttribute=
"bottom"
id=
"7Ox-tP-iaa
"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"e48-X0-feC"
secondAttribute=
"trailing"
id=
"Ksc-2F-dTk
"
/>
<constraint
firstItem=
"
e48-X0-feC"
firstAttribute=
"top"
secondItem=
"4rg-BF-ud7"
secondAttribute=
"bottom"
id=
"LV4-cd-CJd
"
/>
<constraint
firstItem=
"
4rg-BF-ud7"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"hze-mb-f8Z
"
/>
<constraint
firstItem=
"
4rg-BF-ud7"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"iZc-60-Uut
"
/>
<constraint
firstItem=
"
e48-X0-feC"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"ooV-6b-IXy
"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"
8ei-hi-CSb"
secondAttribute=
"trailing"
id=
"1sp-OU-PVp
"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"
trailing"
secondItem=
"u1k-5i-gDO"
secondAttribute=
"trailing"
id=
"ACy-YM-7rO
"
/>
<constraint
firstItem=
"
8ei-hi-CSb"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"NDo-1d-XVB
"
/>
<constraint
firstItem=
"
u1k-5i-gDO"
firstAttribute=
"top"
secondItem=
"8ei-hi-CSb"
secondAttribute=
"bottom"
id=
"U4T-vU-Gcn
"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"u1k-5i-gDO"
secondAttribute=
"bottom"
id=
"ZQL-aV-zrz
"
/>
<constraint
firstItem=
"
8ei-hi-CSb"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"bZk-D7-usz
"
/>
<constraint
firstItem=
"
u1k-5i-gDO"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"tyP-du-bhA
"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"13
2"
y=
"12
2"
/>
<point
key=
"canvasLocation"
x=
"13
3"
y=
"13
2"
/>
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增、编辑品牌/XinZengPinPaiViewController.swift
View file @
70168907
...
...
@@ -9,17 +9,19 @@
import
UIKit
import
LGButton
class
XinZengPinPaiViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
{
class
XinZengPinPaiViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
TitleAndBtnCellDelegate
{
let
titleArr
=
[
"品牌名称"
,
"品牌图标"
,
"站点地址"
,
"品牌描述"
]
let
holderArr
=
[
"请输入品牌名称"
,
"0"
,
"请输入站点地址如:www.gelifood.com"
,
"0"
]
@IBOutlet
weak
var
btmBtn
:
LGButton
!
@IBOutlet
weak
var
btnTitleLbl
:
UILabel
!
@IBOutlet
weak
var
listView
:
UITableView
!
var
navTitle
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"新增品牌"
// if 编辑状态
{
//
navbar.rightTitle = "删除"
//
}
navbar
.
title
=
navTitle
if
navTitle
==
"编辑品牌"
{
navbar
.
rightTitle
=
"删除"
}
self
.
view
.
addSubview
(
navbar
)
...
...
@@ -42,7 +44,7 @@ class XinZengPinPaiViewController: BaseViewController,UITableViewDataSource,UITa
}
@IBAction
func
btnAction
(
_
sender
:
Any
)
{
print
(
"提交"
)
}
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
...
...
@@ -54,6 +56,9 @@ class XinZengPinPaiViewController: BaseViewController,UITableViewDataSource,UITa
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
titleArr
.
count
}
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
print
(
content
)
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
switch
indexPath
.
row
{
case
0
,
2
:
...
...
@@ -65,6 +70,7 @@ class XinZengPinPaiViewController: BaseViewController,UITableViewDataSource,UITa
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtn"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
"上传图片"
cell
.
delegate
=
self
return
cell
default
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TilteAndTextView"
)
as!
TilteAndTextViewCell
...
...
GeliBusinessPlatform/ViewController/新增、编辑品牌/XinZengPinPaiViewController.xib
View file @
70168907
...
...
@@ -10,7 +10,7 @@
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XinZengPinPaiViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"bt
mBtn"
destination=
"VRt-yh-sGk"
id=
"QdF-uM-xjp
"
/>
<outlet
property=
"bt
nTitleLbl"
destination=
"Hmi-sA-ntB"
id=
"N32-OK-XWt
"
/>
<outlet
property=
"listView"
destination=
"rtS-FJ-o0e"
id=
"FDx-iO-Tzh"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
...
...
@@ -20,44 +20,24 @@
<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=
"VRt-yh-sGk"
customClass=
"LGButton"
customModule=
"LGButton
"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
813"
width=
"414"
height=
"49
"
/>
<
tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"rtS-FJ-o0e
"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
44"
width=
"414"
height=
"323.5
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"
49"
id=
"TIT-ry-y3p
"
>
<constraint
firstAttribute=
"height"
constant=
"
323.5"
id=
"Iz2-Nb-wK2
"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<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"
/>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"titleString"
value=
"提交审核"
/>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"titleFontSize"
>
<real
key=
"value"
value=
"17"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"titleFontName"
value=
"PingFangSC"
/>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"btnAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"hTp-G3-zom"
/>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"fvT-jc-s0a"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"vyl-Yl-QqR"
/>
</connections>
</
v
iew>
<view
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KJ5-jm-La7
"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"8
62"
width=
"414"
height=
"60
"
/>
</
tableV
iew>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bjw-OI-1k0
"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"8
13"
width=
"414"
height=
"83
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"60"
id=
"i6I-fQ-KeO"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
...
@@ -67,34 +47,32 @@
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"btnAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"BWZ-rA-lPV"
/>
</connections>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"rtS-FJ-o0e"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"323.5"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"提交审核"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hmi-sA-ntB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"323.5"
id=
"Iz2-Nb-wK2"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"v8X-Ve-jdc"
/>
</constraints>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"fvT-jc-s0a"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"vyl-Yl-QqR"
/>
</connections>
</tableView>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"17"
/>
<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=
"trailing"
secondItem=
"KJ5-jm-La7"
secondAttribute=
"trailing"
id=
"Bf1-gZ-ufX"
/>
<constraint
firstItem=
"KJ5-jm-La7"
firstAttribute=
"top"
secondItem=
"VRt-yh-sGk"
secondAttribute=
"bottom"
id=
"KNC-7h-7cF"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"bjw-OI-1k0"
secondAttribute=
"bottom"
id=
"4Tc-15-KAu"
/>
<constraint
firstItem=
"bjw-OI-1k0"
firstAttribute=
"top"
secondItem=
"Hmi-sA-ntB"
secondAttribute=
"top"
id=
"Hrg-kQ-aXC"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"bjw-OI-1k0"
secondAttribute=
"trailing"
id=
"JOQ-es-5OE"
/>
<constraint
firstItem=
"rtS-FJ-o0e"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"Mdp-wM-HJg"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"rtS-FJ-o0e"
secondAttribute=
"trailing"
id=
"QSH-9B-9Y9"
/>
<constraint
firstItem=
"
KJ5-jm-La7"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"bvg-Mz-VVl
"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"Hmi-sA-ntB"
secondAttribute=
"trailing"
id=
"UaX-7R-TsW
"
/>
<constraint
firstItem=
"rtS-FJ-o0e"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"crK-Dr-MCm"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"VRt-yh-sGk"
secondAttribute=
"bottom"
id=
"hSN-Gn-gne
"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"VRt-yh-sGk"
secondAttribute=
"trailing"
id=
"psI-hN-ptf
"
/>
<constraint
firstItem=
"
VRt-yh-sGk"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"sIf-wI-EsY
"
/>
<constraint
firstItem=
"
bjw-OI-1k0"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"eZX-P8-KwQ
"
/>
<constraint
firstItem=
"
Hmi-sA-ntB"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"qdx-UJ-DtF
"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"Hmi-sA-ntB"
secondAttribute=
"bottom"
id=
"yeB-lK-67v
"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
...
...
@@ -105,7 +83,10 @@
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27450980392156865"
green=
"0.5607843137254902"
blue=
"0.88627450980392153"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
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>
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
70168907
...
...
@@ -8,9 +8,9 @@
import
UIKit
class
XinCaiGouViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
XinCaiGouViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
GLAlertSelectViewDelegate
,
AddGuiGeCellDelegate
{
var
glSelectView
:
GLAlertSelectView
?
=
nil
@IBOutlet
weak
var
lineView
:
UIView
!
@IBAction
func
btnAction
(
_
sender
:
Any
)
{
...
...
@@ -27,9 +27,9 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
super
.
viewDidLoad
()
//编辑状态
// isEdit = true
// data = NSDictionary()
//
// isEdit = true
// data = NSDictionary()
//
navbar
.
title
=
"新增采购单"
self
.
view
.
addSubview
(
navbar
)
...
...
@@ -184,6 +184,33 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
section
==
0
{
if
indexPath
.
row
==
2
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择供应商"
view
.
dataArr
=
[
"普通订单"
,
"预售下单"
]
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
if
indexPath
.
row
==
5
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择购物类型"
view
.
dataArr
=
[
"普通订单"
,
"预售下单"
]
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
switch
indexPath
.
section
{
case
0
:
...
...
@@ -191,6 +218,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
p1Arr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
hold1Arr
[
indexPath
.
row
]
cell
.
btn
.
isUserInteractionEnabled
=
false
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
...
...
@@ -198,7 +226,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
cell
.
textTF
.
placeholder
=
hold1Arr
[
indexPath
.
row
]
return
cell
case
1
:
if
data
!=
nil
{
if
data
!=
nil
{
//有数据
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DaiKeXiaDanGouWuCell"
)
as!
DaiKeXiaDanGouWuCell
cell
.
delImg
.
isHidden
=
true
cell
.
delBtn
.
isHidden
=
true
...
...
@@ -207,6 +235,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddGuiGeCell"
)
as!
AddGuiGeCell
cell
.
imgBtn
.
setImage
(
UIImage
(
named
:
"tianjiashangpin"
),
for
:
.
normal
)
cell
.
delegate
=
self
return
cell
default
:
if
indexPath
.
row
==
0
{
...
...
@@ -221,5 +250,25 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
//MARK: - 自定义Delegate
func
AddGuiGeCellClick
(
cell
:
AddGuiGeCell
)
{
print
(
"AddGuiGeCellClick"
)
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
UIView
)
{
print
(
"单选"
,
selectNum
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
{
print
(
"多选"
,
sender
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
}
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