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
48cba11f
Commit
48cba11f
authored
Jan 21, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印调试基本完成
parent
fa4dcb5d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
23 deletions
+30
-23
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Other/Web/WebViewController.swift
GeliBusinessPlatform/Other/Web/WebViewController.swift
+4
-2
GeliBusinessPlatform/ViewController/打印订单/PrintListMgVc.swift
GeliBusinessPlatform/ViewController/打印订单/PrintListMgVc.swift
+12
-5
GeliBusinessPlatform/ViewController/打印订单/PrintViewController.swift
...essPlatform/ViewController/打印订单/PrintViewController.swift
+13
-15
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
48cba11f
No preview for this file type
GeliBusinessPlatform/Other/Web/WebViewController.swift
View file @
48cba11f
...
@@ -24,7 +24,7 @@ class WebViewController: BaseViewController {
...
@@ -24,7 +24,7 @@ class WebViewController: BaseViewController {
}
}
var
loadHTMLString
:
String
?
=
""
var
loadHTMLString
:
String
?
=
""
var
urlStr
:
String
?
=
""
var
urlStr
:
String
!
=
""
var
isAddObserver
=
false
var
isAddObserver
=
false
var
titleStr
=
""
var
titleStr
=
""
...
@@ -36,7 +36,9 @@ class WebViewController: BaseViewController {
...
@@ -36,7 +36,9 @@ class WebViewController: BaseViewController {
wkWebView
.
loadHTMLString
(
loadHTMLString
!
+
headerString
,
baseURL
:
nil
)
wkWebView
.
loadHTMLString
(
loadHTMLString
!
+
headerString
,
baseURL
:
nil
)
}
else
{
}
else
{
let
url
=
URL
(
string
:
urlStr
!
)
let
urlString
=
urlStr
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
let
url
=
URL
(
string
:
urlString
)
let
request
=
URLRequest
.
init
(
url
:
url
!
,
cachePolicy
:
.
reloadRevalidatingCacheData
,
timeoutInterval
:
10
)
let
request
=
URLRequest
.
init
(
url
:
url
!
,
cachePolicy
:
.
reloadRevalidatingCacheData
,
timeoutInterval
:
10
)
wkWebView
.
load
(
request
)
wkWebView
.
load
(
request
)
...
...
GeliBusinessPlatform/ViewController/打印订单/PrintListMgVc.swift
View file @
48cba11f
...
@@ -26,7 +26,7 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
...
@@ -26,7 +26,7 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
]
]
printUrl
(
dic
)
{
(
data
)
in
printUrl
(
dic
)
{
(
data
)
in
let
d
=
data
as!
printUrl_Model
let
d
=
data
as!
printUrl_Model
self
.
web_vc
.
urlStr
=
d
.
data
!
self
.
web_vc
.
urlStr
=
d
.
data
self
.
navigationController
?
.
pushViewController
(
self
.
web_vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
self
.
web_vc
,
animated
:
true
)
}
failture
:
{
(
err
)
in
}
failture
:
{
(
err
)
in
...
@@ -63,7 +63,8 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
...
@@ -63,7 +63,8 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
}
failture
:
{
(
err
)
in
}
failture
:
{
(
err
)
in
}
}
}
else
{
//不二
}
else
{
let
vc
=
viewControllers
[
selectIndex
]
let
vc
=
viewControllers
[
selectIndex
]
if
vc
.
FM_str
.
count
==
0
{
if
vc
.
FM_str
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请输入汇款账户"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请输入汇款账户"
),
delay
:
1.2
)
...
@@ -90,9 +91,9 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
...
@@ -90,9 +91,9 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
dic
=
[
"user_token"
:
UserToken
as
Any
,
dic
=
[
"user_token"
:
UserToken
as
Any
,
"order_id"
:
order_id
as
Any
,
"order_id"
:
order_id
as
Any
,
"remittance_account"
:
vc
.
FM_str
as
Any
,
"remittance_account"
:
vc
.
FM_str
as
Any
,
"province_id"
:
vc
.
pro
vince_id
as
Any
,
"province_id"
:
vc
.
pro
Dict
[
"area_id"
]
as
Any
,
"city_id"
:
vc
.
city
_id
as
Any
,
"city_id"
:
vc
.
city
Dict
[
"area_id"
]
as
Any
,
"district_id"
:
vc
.
area
_id
as
Any
,
"district_id"
:
vc
.
area
Dict
[
"area_id"
]
as
Any
,
"mobile"
:
vc
.
phone_str
as
Any
,
"mobile"
:
vc
.
phone_str
as
Any
,
"consignee"
:
vc
.
consignee_str
as
Any
,
"consignee"
:
vc
.
consignee_str
as
Any
,
"print_type"
:
selectIndex
as
Any
"print_type"
:
selectIndex
as
Any
...
@@ -144,9 +145,15 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
...
@@ -144,9 +145,15 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
vc
.
cityIndex
=
(
printData
?
.
city_id
)
!
vc
.
cityIndex
=
(
printData
?
.
city_id
)
!
vc
.
areaIndex
=
(
printData
?
.
district_id
)
!
vc
.
areaIndex
=
(
printData
?
.
district_id
)
!
}
}
if
printData
?
.
remittance_account
!=
nil
{
vc
.
FM_str
=
(
printData
?
.
remittance_account
)
!
vc
.
FM_str
=
(
printData
?
.
remittance_account
)
!
}
if
printData
?
.
mobile
!=
nil
{
vc
.
phone_str
=
(
printData
?
.
mobile
)
!
vc
.
phone_str
=
(
printData
?
.
mobile
)
!
}
if
printData
?
.
consignee
!=
nil
{
vc
.
consignee_str
=
(
printData
?
.
consignee
)
!
vc
.
consignee_str
=
(
printData
?
.
consignee
)
!
}
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/打印订单/PrintViewController.swift
View file @
48cba11f
...
@@ -134,9 +134,9 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -134,9 +134,9 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
var
isChange
=
false
var
isChange
=
false
var
province_id
=
""
//
var province_id = ""
var
city_id
=
""
//
var city_id = ""
var
area_id
=
""
//
var area_id = ""
@objc
func
adrSelectFinish
(
sender
:
UIButton
){
@objc
func
adrSelectFinish
(
sender
:
UIButton
){
...
@@ -167,9 +167,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -167,9 +167,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
isChange
=
false
isChange
=
false
}
}
province_id
=
proDict
[
"area_id"
]
!
as!
String
city_id
=
cityDict
[
"area_id"
]
!
as!
String
area_id
=
areaDict
[
"area_id"
]
!
as!
String
var
selectAdr
=
proName
var
selectAdr
=
proName
if
cityName
.
count
>
0
{
if
cityName
.
count
>
0
{
...
@@ -317,6 +315,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -317,6 +315,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
}
}
}
}
}
}
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
// }
// }
}
}
}
catch
let
error
as
Error
?
{
}
catch
let
error
as
Error
?
{
...
@@ -363,7 +362,9 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -363,7 +362,9 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
get_location_id
()
get_location_id
()
}
}
}
}
var
proDict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
var
cityDict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
var
areaDict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
func
get_location_id
(){
func
get_location_id
(){
let
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
let
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
var
cityDict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
var
cityDict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
...
@@ -378,9 +379,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -378,9 +379,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
}
}
}
}
province_id
=
proDict
[
"area_id"
]
!
as!
String
city_id
=
cityDict
[
"area_id"
]
!
as!
String
area_id
=
areaDict
[
"area_id"
]
!
as!
String
}
}
//MARK:--VC 初始化
//MARK:--VC 初始化
convenience
init
(
title
:
String
)
{
convenience
init
(
title
:
String
)
{
...
@@ -402,9 +401,9 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -402,9 +401,9 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"order_id"
:
order_id
as
Any
,
"order_id"
:
order_id
as
Any
,
"remittance_account"
:
FM_str
as
Any
,
"remittance_account"
:
FM_str
as
Any
,
"province_id"
:
pro
vinceIndex
as
Any
,
"province_id"
:
pro
Dict
[
"area_id"
]
as
Any
,
"city_id"
:
city
Index
as
Any
,
"city_id"
:
city
Dict
[
"area_id"
]
as
Any
,
"district_id"
:
area
Index
as
Any
,
"district_id"
:
area
Dict
[
"area_id"
]
as
Any
,
"mobile"
:
phone_str
as
Any
,
"mobile"
:
phone_str
as
Any
,
"consignee"
:
consignee_str
as
Any
,
"consignee"
:
consignee_str
as
Any
,
"print_type"
:
type
as
Any
"print_type"
:
type
as
Any
...
@@ -413,12 +412,11 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -413,12 +412,11 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
printUrl
(
dic
)
{
(
data
)
in
printUrl
(
dic
)
{
(
data
)
in
let
d
=
data
as!
printUrl_Model
let
d
=
data
as!
printUrl_Model
self
.
web_vc
.
titleStr
=
"打印预览"
self
.
web_vc
.
titleStr
=
"打印预览"
self
.
web_vc
.
urlStr
=
d
.
data
self
.
web_vc
.
urlStr
=
d
.
data
!
self
.
navigationController
?
.
pushViewController
(
self
.
web_vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
self
.
web_vc
,
animated
:
true
)
}
failture
:
{
(
err
)
in
}
failture
:
{
(
err
)
in
}
}
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
48cba11f
...
@@ -1368,7 +1368,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1368,7 +1368,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
break
break
case
"打印"
:
case
"打印"
:
orderId
=
12445
//
orderId = 12445
printOrder
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
])
{
[
self
]
(
data
)
in
printOrder
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
])
{
[
self
]
(
data
)
in
let
d
=
data
as!
printOrder_model
let
d
=
data
as!
printOrder_model
let
vc
=
PrintListMgVc
()
let
vc
=
PrintListMgVc
()
...
...
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