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
c23755ed
Commit
c23755ed
authored
Jul 02, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
34
parent
f988f954
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
20 deletions
+48
-20
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+5
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+5
-1
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+20
-6
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
...form/ViewController/地址管理/XinZengDiZhiViewController.swift
+0
-1
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
...Platform/ViewController/客户管理/KeHuListViewController.swift
+4
-1
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
...wController/客户管理/XinZengAndBianJiKeHuViewController.swift
+14
-10
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
c23755ed
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
c23755ed
...
...
@@ -16,7 +16,11 @@ import IQKeyboardManagerSwift
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
,
TitleAndTFBtnCellDelegate
,
WenDuCellDelegate
,
LogisticalSelectViewDelegate
,
UIPickerViewDataSource
,
UIPickerViewDelegate
,
GLAlertSelectViewDelegate
,
CLLocationManagerDelegate
,
CityListViewControllerDelegate
,
ToAndFormSelectViewControllerDelegate
,
WayBillAddressCanDelItemCellDelegate
,
HLLTopCellDelegate
,
OtherDemandViewControllerDelegate
,
OnlyViewCellDelegate
,
XiaDanUserInfoViewControllerDelegate
,
P_P_H_Time_Select_View_Delegate
,
P_P_H_Adr_VC_Delegate
,
Suc_LOG_Cell_Delegate
,
PaymentViewDelegate
{
func
DZGLViewController_adr
(
adr_id
:
String
)
{
func
DZGLViewController_back
(
count
:
Int
)
{
//此处无用
}
func
DZGLViewController_adr
(
adr_id
:
String
,
count
:
Int
)
{
//此处无用
}
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
c23755ed
...
...
@@ -10,7 +10,11 @@ import UIKit
import
IQKeyboardManagerSwift
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
DZGLViewControllerDelegate
,
XuanZeShangPinViewControllerDelegate
,
DaiKeXiaDanGouWuCellDelegate
,
GuanLianKehuVCDelegate
,
XiuGaiYuShouJiaViewControllerDelegate
,
TitleAndTFCellDelegate
,
GeliAlertViewDelegate
,
UITextFieldDelegate
{
func
DZGLViewController_adr
(
adr_id
:
String
)
{
func
DZGLViewController_back
(
count
:
Int
)
{
//此处无用
}
func
DZGLViewController_adr
(
adr_id
:
String
,
count
:
Int
)
{
//此处无用
}
...
...
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
c23755ed
...
...
@@ -11,22 +11,33 @@ import SwipeCellKit
import
LGButton
protocol
DZGLViewControllerDelegate
{
func
DZGLViewControllerSelect
(
data
:
GetAddrsInfoDataModel
)
func
DZGLViewController_adr
(
adr_id
:
String
)
func
DZGLViewController_adr
(
adr_id
:
String
,
count
:
Int
)
func
DZGLViewController_back
(
count
:
Int
)
}
class
DZGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
SwipeTableViewCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
XinZengDiZhiViewControllerDelegate
,
GeliAlertViewDelegate
{
func
XinZengDiZhiViewControllerFinishAction_kehu
(
adr_id
:
String
)
{
if
adr_id
.
count
>
0
{
address_id_arr
.
append
(
adr_id
)
listView
.
mj_header
?
.
beginRefreshing
()
if
address_id_arr
.
count
>
1
{
delegate
?
.
DZGLViewController_adr
(
adr_id
:
address_id_arr
.
joined
(
separator
:
","
))
delegate
?
.
DZGLViewController_adr
(
adr_id
:
address_id_arr
.
joined
(
separator
:
","
),
count
:
kehu_adrArr
.
count
)
print
(
"jcount = "
,
kehu_adrArr
.
count
)
}
else
{
delegate
?
.
DZGLViewController_adr
(
adr_id
:
adr_id
)
listView
.
mj_header
?
.
beginRefreshing
()
delegate
?
.
DZGLViewController_adr
(
adr_id
:
adr_id
,
count
:
kehu_adrArr
.
count
)
print
(
"jcount1 = "
,
kehu_adrArr
.
count
)
}
}
else
{
delegate
?
.
DZGLViewController_adr
(
adr_id
:
adr_id
,
count
:
kehu_adrArr
.
count
)
print
(
"jcount12 = "
,
kehu_adrArr
.
count
)
listView
.
mj_header
?
.
beginRefreshing
()
}
listView
.
mj_header
?
.
beginRefreshing
()
}
@IBOutlet
weak
var
holder_view
:
UIView
!
...
...
@@ -251,7 +262,10 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
}
}
override
func
backAction
()
{
delegate
?
.
DZGLViewController_back
(
count
:
kehu_adrArr
.
count
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
func
rightBtnClick
()
{
let
vc
=
XinZengDiZhiViewController
()
vc
.
navTitle
=
"新增地址"
...
...
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
View file @
c23755ed
...
...
@@ -28,7 +28,6 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
}
failture
:
{
err
in
}
}
else
{
AddressDel
([
"user_token"
:
UserToken
as
Any
,
"address_id"
:
address_id
as
Any
],
success
:
{
(
data
)
in
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
nil
,
province_name
:
""
,
city_name
:
""
,
district_name
:
""
)
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
View file @
c23755ed
...
...
@@ -29,7 +29,10 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
@IBOutlet
weak
var
rightSelectView
:
UITableView
!
var
selectListRecord
:
Array
<
Int
>
=
[]
// override func viewWillAppear(_ animated: Bool) {
// super.viewWillAppear(animated)
//
// }
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
selectListRecord
.
append
(
0
)
...
...
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
View file @
c23755ed
...
...
@@ -12,13 +12,19 @@ protocol XinZengAndBianJiKeHuViewControllerDelegate {
func
XinZengAndBianJiKeHuViewControllerFinish
()
}
class
XinZengAndBianJiKeHuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
BingDingKeHuViewControllerDelegate
,
GLAlertSelectViewDelegate
,
UITextFieldDelegate
,
GeliAlertViewDelegate
,
DZGLViewControllerDelegate
{
var
count
=
0
func
DZGLViewController_back
(
count
:
Int
)
{
print
(
"count ="
,
count
)
self
.
count
=
count
listView
.
reloadData
()
}
func
DZGLViewControllerSelect
(
data
:
GetAddrsInfoDataModel
)
{
//此处无用
}
func
DZGLViewController_adr
(
adr_id
:
String
)
{
func
DZGLViewController_adr
(
adr_id
:
String
,
count
:
Int
)
{
address_id
=
adr_id
print
(
"abc = "
,
address_id
)
}
var
delegate
:
XinZengAndBianJiKeHuViewControllerDelegate
?
...
...
@@ -143,8 +149,6 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
}
var
adrArr
:
Array
<
GetAddrsInfoDataModel
>
=
[]
var
titleStr
:
String
?
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
titleArr
=
[
"客户名称"
,
"客户手机号码 "
,
"客户公司名称"
,
"绑定用户"
,
"客户类型"
,
"客户折扣"
,
"客户地址管理"
]
...
...
@@ -173,11 +177,8 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
listView
.
register
(
UINib
(
nibName
:
"Title_Btn_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"Title_Btn_Cell"
)
getAddrsInfo
([
"user_token"
:
UserToken
as
Any
,
"cus_id"
:
cus_id
as
Any
])
{
data
in
self
.
adrArr
.
removeAll
()
let
model
=
data
as!
GetAddrsInfoModel
model
.
data
?
.
forEach
({
item
in
self
.
adrArr
.
append
(
item
)
})
self
.
count
=
model
.
data
!.
count
self
.
listView
.
reloadData
()
}
failture
:
{
err
in
...
...
@@ -196,7 +197,7 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
if
indexPath
.
row
==
6
{
let
vc
=
DZGLViewController
()
vc
.
is_keHu_list
=
true
// vc.kehu_adrArr = adrArr
vc
.
cus_id
=
cus_id
print
(
"vc.cus = "
,
vc
.
cus_id
)
vc
.
delegate
=
self
...
...
@@ -264,9 +265,12 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
if
indexPath
.
row
==
6
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"Title_Btn_Cell"
)
as!
Title_Btn_Cell
cell
.
title_lbl
.
text
=
titleArr
[
indexPath
.
row
]
if
adrArr
.
count
!=
0
{
if
count
!=
0
{
cell
.
add_adr_lbl
.
isHidden
=
true
cell
.
arrow_img
.
isHidden
=
false
}
else
{
cell
.
add_adr_lbl
.
isHidden
=
false
cell
.
arrow_img
.
isHidden
=
true
}
return
cell
}
...
...
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