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
bb13af3b
Commit
bb13af3b
authored
Mar 16, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1231adsfgasfdsafdsafd
parent
5ff9014e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
205 additions
and
47 deletions
+205
-47
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+1
-3
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+2
-0
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
+0
-1
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
+0
-2
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+4
-0
GeliBusinessPlatform/ViewController/店长审核/DZSH_Detail_ViewController.swift
...form/ViewController/店长审核/DZSH_Detail_ViewController.swift
+198
-41
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
bb13af3b
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
bb13af3b
...
...
@@ -284,9 +284,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate,UITabBarCont
let
v2
=
GoodsManageListVC
()
let
v3
=
DZSH_Mg_ViewController
()
// let v3 = WorkCViewController()1234
let
v3
=
WorkCViewController
()
let
v4
=
WarehoseMangementListVC
()
...
...
GeliBusinessPlatform/Define/Define.swift
View file @
bb13af3b
...
...
@@ -318,6 +318,8 @@ func dateConvertString(date:Date, dateFormat:String="yyyy-MM-dd") -> String {
// let formatValue = format.string(from: NSNumber(value: (interceptValue as NSString).doubleValue))
// return formatValue!
//}
//MARK:--数组转字符串
func
dataChangeString
(
sender
:
Array
<
Any
>
)
->
String
{
var
str
=
""
...
...
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
View file @
bb13af3b
...
...
@@ -24,7 +24,6 @@ class TitleAndTFCell: UITableViewCell {
@objc
func
textChange
(
textField
:
UITextField
){
print
(
"te == "
,
textField
.
text
)
delegate
?
.
textFieldContent
?(
content
:
textField
.
text
!
,
cell
:
self
)
}
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
View file @
bb13af3b
...
...
@@ -346,8 +346,6 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
HUD
.
flash
(
.
label
(
"请填写备注"
),
delay
:
1.2
)
return
}
if
isPass
{
//通过
let
data
=
datas
!
[
selectIdx
!
]
let
batchInfo
:
Array
<
Any
>
=
[]
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
bb13af3b
...
...
@@ -691,6 +691,10 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
let
vc
=
GYS_FX_Product_ListVc
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
146
:
//店长申请审核
let
vc
=
DZSH_Mg_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
default
:
break
;
}
...
...
GeliBusinessPlatform/ViewController/店长审核/DZSH_Detail_ViewController.swift
View file @
bb13af3b
...
...
@@ -7,8 +7,11 @@
//
import
UIKit
import
Photos
class
DZSH_Detail_ViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
GeliAlertTextViewDelegate
{
var
shop_id
=
-
1
var
user_token
=
""
...
...
@@ -39,28 +42,28 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
var
action
=
-
1
//1为审核通过,2为审核不通过,3为审核通过待补齐资料
@IBOutlet
weak
var
list_view
:
UITableView
!
@IBAction
func
btm_action
(
_
sender
:
UIButton
)
{
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
delegate
=
self
alterView
.
tag
=
99
self
.
view
.
window
?
.
addSubview
(
alterView
)
switch
sender
.
tag
{
case
0
:
//通过
action
=
1
alterView
.
titleLbl
.
text
=
"请填写通过原因"
alterView
.
placerLbl
.
text
=
"请填写通过原因"
break
case
1
:
//补资料
action
=
3
alterView
.
titleLbl
.
text
=
"请填写需要补充的资料"
alterView
.
placerLbl
.
text
=
"请填写需要补充的资料"
break
default
:
//不通过
action
=
2
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
tag
=
2
alterView
.
delegate
=
self
alterView
.
tag
=
992
alterView
.
titleLbl
.
text
=
"请填写不通过原因"
alterView
.
placerLbl
.
text
=
"请填写不通过原因(必填)"
self
.
view
.
window
?
.
addSubview
(
alterView
)
break
}
if
action
==
2
{
return
}
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -159,9 +162,9 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
return
183.5
}
case
2
:
if
indexPath
.
row
==
1
{
return
UITableView
.
automaticDimension
}
//
if indexPath.row == 1 {
//
return UITableView.automaticDimension
//
}
if
indexPath
.
row
>
1
{
return
183.5
}
...
...
@@ -227,10 +230,10 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
case
1
:
cell
.
nameLbl
.
text
=
part2
[
indexPath
.
row
]
if
indexPath
.
row
==
1
{
if
indexPath
.
row
==
0
{
cell
.
textTF
.
text
=
conect_num_str
}
if
indexPath
.
row
==
0
{
if
indexPath
.
row
==
1
{
cell
.
textTF
.
text
=
conect_name
}
if
indexPath
.
row
==
2
{
...
...
@@ -253,18 +256,21 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
cell
.
textTF
.
text
=
zhizhao_str
}
if
indexPath
.
row
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndLblCell"
)
as!
TitleAndLblCell
cell
.
imgRight
.
constant
=
0
cell
.
nameLbl
.
text
=
part3
[
indexPath
.
row
]
if
jing_ying_fan_wei_str
.
count
==
0
{
cell
.
contentLbl
.
text
=
"等待填写"
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"提示语字体颜色"
)
}
else
{
cell
.
contentLbl
.
text
=
jing_ying_fan_wei_str
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
}
return
cell
}
cell
.
textTF
.
text
=
jing_ying_fan_wei_str
}
// if indexPath.row == 1 {
// let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndLblCell") as! TitleAndLblCell
// cell.imgRight.constant = 0
// cell.nameLbl.text = part3[indexPath.row]
// if jing_ying_fan_wei_str.count == 0 {
// cell.contentLbl.text = "等待填写"
// cell.contentLbl.textColor = UIColor(named: "提示语字体颜色")
// }else{
// cell.contentLbl.text = jing_ying_fan_wei_str
// cell.contentLbl.textColor = UIColor(named: "标题字颜色")
// }
// return cell
// }
if
indexPath
.
row
>
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DZSH_UPLOAD_IMG_CELL"
)
as!
DZSH_UPLOAD_IMG_CELL
cell
.
nameLbl
.
text
=
part3
[
indexPath
.
row
]
...
...
@@ -312,19 +318,101 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
alterView
.
content
=
intro_str
self
.
view
.
window
?
.
addSubview
(
alterView
)
}
if
indexPath
.
row
==
6
{
_
=
self
.
presentHGImagePicker
(
maxSelected
:
1
)
{
(
assets
)
in
//结果处理
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
let
option
=
PHImageRequestOptions
()
option
.
isSynchronous
=
true
option
.
isNetworkAccessAllowed
=
true
for
asset
in
assets
{
PHImageManager
.
default
()
.
requestImage
(
for
:
asset
,
targetSize
:
PHImageManagerMaximumSize
,
contentMode
:
.
default
,
options
:
option
,
resultHandler
:
{
(
image
,
_
:
[
AnyHashable
:
Any
]?)
in
// print("上传图片==\(image)")
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
true
,
tag
:
6
)
})
}
self
.
list_view
.
reloadData
()
}
}
break
case
1
:
if
indexPath
.
row
==
2
{
_
=
self
.
presentHGImagePicker
(
maxSelected
:
1
)
{
(
assets
)
in
//结果处理
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
let
option
=
PHImageRequestOptions
()
option
.
isSynchronous
=
true
option
.
isNetworkAccessAllowed
=
true
for
asset
in
assets
{
PHImageManager
.
default
()
.
requestImage
(
for
:
asset
,
targetSize
:
PHImageManagerMaximumSize
,
contentMode
:
.
default
,
options
:
option
,
resultHandler
:
{
(
image
,
_
:
[
AnyHashable
:
Any
]?)
in
// print("上传图片==\(image)")
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
true
,
tag
:
12
)
})
}
self
.
list_view
.
reloadData
()
}
}
break
case
2
:
if
indexPath
.
row
==
1
{
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
tag
=
11
alterView
.
delegate
=
self
alterView
.
titleLbl
.
text
=
"请填写法定经营范围"
alterView
.
placerLbl
.
text
=
"请填写法定经营范围..."
alterView
.
content
=
jing_ying_fan_wei_str
self
.
view
.
window
?
.
addSubview
(
alterView
)
// if indexPath.row == 1 {
// let alterView = GeliAlertTextView(frame: self.view.window!.bounds)
// alterView.tag = 11
// alterView.delegate = self
// alterView.titleLbl.text = "请填写法定经营范围"
// alterView.placerLbl.text = "请填写法定经营范围..."
// alterView.content = jing_ying_fan_wei_str
// self.view.window?.addSubview(alterView)
// }
if
indexPath
.
row
==
2
{
_
=
self
.
presentHGImagePicker
(
maxSelected
:
1
)
{
(
assets
)
in
//结果处理
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
let
option
=
PHImageRequestOptions
()
option
.
isSynchronous
=
true
option
.
isNetworkAccessAllowed
=
true
for
asset
in
assets
{
PHImageManager
.
default
()
.
requestImage
(
for
:
asset
,
targetSize
:
PHImageManagerMaximumSize
,
contentMode
:
.
default
,
options
:
option
,
resultHandler
:
{
(
image
,
_
:
[
AnyHashable
:
Any
]?)
in
// print("上传图片==\(image)")
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
true
,
tag
:
22
)
})
}
self
.
list_view
.
reloadData
()
}
}
if
indexPath
.
row
==
3
{
_
=
self
.
presentHGImagePicker
(
maxSelected
:
1
)
{
(
assets
)
in
//结果处理
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
let
option
=
PHImageRequestOptions
()
option
.
isSynchronous
=
true
option
.
isNetworkAccessAllowed
=
true
for
asset
in
assets
{
PHImageManager
.
default
()
.
requestImage
(
for
:
asset
,
targetSize
:
PHImageManagerMaximumSize
,
contentMode
:
.
default
,
options
:
option
,
resultHandler
:
{
(
image
,
_
:
[
AnyHashable
:
Any
]?)
in
// print("上传图片==\(image)")
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
true
,
tag
:
23
)
})
}
self
.
list_view
.
reloadData
()
}
}
break
default
:
_
=
self
.
presentHGImagePicker
(
maxSelected
:
1
)
{
(
assets
)
in
//结果处理
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
let
option
=
PHImageRequestOptions
()
option
.
isSynchronous
=
true
option
.
isNetworkAccessAllowed
=
true
for
asset
in
assets
{
PHImageManager
.
default
()
.
requestImage
(
for
:
asset
,
targetSize
:
PHImageManagerMaximumSize
,
contentMode
:
.
default
,
options
:
option
,
resultHandler
:
{
(
image
,
_
:
[
AnyHashable
:
Any
]?)
in
// print("上传图片==\(image)")
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
true
,
tag
:
0
)
})
}
self
.
list_view
.
reloadData
()
}
break
}
}
...
...
@@ -353,26 +441,95 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
//MARK: - 不通过原因
func
sureGeliAlertTextViewAction
(
sender
:
String
,
view
:
GeliAlertTextView
)
{
let
shops
=
[
"shop_id"
:
shop_id
as
Any
,
"shop_name"
:
name
as
Any
,
"shop_img"
:
logo_url_str
as
Any
,
"address"
:
adr_str
as
Any
,
"shop_tel"
:
phone_str
as
Any
,
"shop_intro"
:
intro_str
as
Any
,
"shop_scale"
:
size_str
as
Any
,
"contacts_name"
:
conect_name
as
Any
,
"identity_card_front"
:
conect_id_url_str
as
Any
,
"agreement"
:
ruzhu_url_str
as
Any
,
"business_licence_number"
:
zhizhao_str
as
Any
,
"business_sphere"
:
jing_ying_fan_wei_str
as
Any
,
"zhizhao"
:
zhizhao_url_str
as
Any
,
"food_production_license"
:
xuke_url_str
as
Any
]
let
shops_info
=
dictChangeString
(
sender
:
shops
)
let
dic
=
[
"user_token"
:
user_token
as
Any
,
"action"
:
action
as
Any
,
"shop_id"
:
shop_id
as
Any
,
"vendor_audit_desc"
:
sender
as
Any
,
"reason"
:
sender
as
Any
,
"shop_info"
:
shops_info
as
Any
]
switch
view
.
tag
{
case
2
:
//不通过原因
case
99
:
//通过,补齐资料
storeExamineOperation
(
dic
)
{
(
data
)
in
}
failture
:
{
(
err
)
in
}
return
case
992
:
//不通过原因
if
sender
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请填写不通过原因"
),
delay
:
1.2
)
return
}
storeExamineOperation
(
dic
)
{
(
data
)
in
}
failture
:
{
(
err
)
in
}
return
case
4
:
//公司简介
intro_str
=
sender
break
case
11
:
jing_ying_fan_wei_str
=
sender
break
//
case 11:
//
jing_ying_fan_wei_str = sender
//
break
default
:
break
}
list_view
.
reloadData
()
}
func
uploadImg
(
imge
:
UIImage
,
isOriginal
:
Bool
,
tag
:
Int
){
let
upLoadImg
=
imge
as!
UIImage
HUD
.
show
(
.
progress
)
saveFile
(
image
:
upLoadImg
,
[
"user_token"
:
user_token
as
Any
,
"path"
:
"shops"
as
Any
],
success
:
{
(
data
)
in
let
dataM
=
data
as!
SaveFileModel
if
dataM
.
code
==
1
{
print
(
"图片上传成功
\(
dataM
.
data
?
.
url
)
"
)
switch
tag
{
case
6
:
self
.
logo_url_str
=
(
dataM
.
data
?
.
url
)
!
break
case
12
:
self
.
conect_id_url_str
=
(
dataM
.
data
?
.
url
)
!
break
case
22
:
self
.
zhizhao_url_str
=
(
dataM
.
data
?
.
url
)
!
break
case
23
:
self
.
xuke_url_str
=
(
dataM
.
data
?
.
url
)
!
break
default
:
self
.
ruzhu_url_str
=
(
dataM
.
data
?
.
url
)
!
break
}
self
.
list_view
.
reloadData
()
HUD
.
hide
()
}
})
{
(
error
)
in
print
(
"图片上传失败
\(
error
)
"
)
}
}
}
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