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
d5201b65
Commit
d5201b65
authored
May 11, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暗示法发送到发顺丰1112221212
parent
088b29d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+13
-10
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewPrintItemCell.xib
...sPlatform/ViewController/1.1入库&出库/出库/NewPrintItemCell.xib
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d5201b65
No preview for this file type
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
d5201b65
...
@@ -75,20 +75,22 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -75,20 +75,22 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
printData
(
idx
:
printIdx
)
printData
(
idx
:
printIdx
)
}
}
var
wkWebView
:
WKWebView
?
func
printData
(
idx
:
Int
){
func
printData
(
idx
:
Int
){
let
model
=
printData
[
idx
][
"goods_data"
]
as!
GetGoodBatchDataModel
let
model
=
printData
[
idx
][
"goods_data"
]
as!
GetGoodBatchDataModel
//测试
//测试
let
urlStr
=
"http://z.gelifood.com/static/url/label.html?goods_name=
\(
printData
[
idx
][
"goods_name"
]
as!
String
)
&spec_str=
\(
printData
[
idx
][
"spec_str"
]
as!
String
)
&batch_sn=
\(
model
.
batch_sn
!
)
&batch_id=
\(
model
.
batch_id
!
)
&iscs=1"
//
let urlStr = "http://z.gelifood.com/static/url/label.html?goods_name=\(printData[idx]["goods_name"] as! String)&spec_str=\(printData[idx]["spec_str"] as! String)&batch_sn=\(model.batch_sn!)&batch_id=\(model.batch_id!)&iscs=1"
//online
//online
// let urlStr = "http://zx.gelifood.com/static/url/label.html?goods_name=\(printData[idx]["goods_name"] as! String)&spec_str=\(printData[idx]["spec_str"] as! String)&batch_sn=\(model.batch_sn!)&batch_id=\(model.batch_id!)&iscs=0"
let
urlStr
=
"http://zx.gelifood.com/static/url/label.html?goods_name=
\(
printData
[
idx
][
"goods_name"
]
as!
String
)
&spec_str=
\(
printData
[
idx
][
"spec_str"
]
as!
String
)
&batch_sn=
\(
model
.
batch_sn
!
)
&batch_id=
\(
model
.
batch_id
!
)
&iscs=0"
print
(
"url == "
,
urlStr
)
let
urlString
=
urlStr
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
let
urlString
=
urlStr
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
let
url
=
URL
(
string
:
urlString
)
let
url
=
URL
(
string
:
urlString
)
if
wkWebView
==
nil
{
wkWebView
=
WKWebView
()
}
let
request
=
URLRequest
.
init
(
url
:
url
!
,
cachePolicy
:
.
reloadRevalidatingCacheData
,
timeoutInterval
:
10
)
let
request
=
URLRequest
.
init
(
url
:
url
!
,
cachePolicy
:
.
reloadRevalidatingCacheData
,
timeoutInterval
:
10
)
wkWebView
.
navigationDelegate
=
self
wkWebView
!
.
navigationDelegate
=
self
wkWebView
.
load
(
request
)
wkWebView
!
.
load
(
request
)
wkWebView
.
bounds
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
230
,
height
:
230*0.75
)
wkWebView
!
.
bounds
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
230
,
height
:
230*0.75
)
}
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
@@ -245,7 +247,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -245,7 +247,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
var
goodsInfoArr
:
Array
<
Any
>
=
[]
var
goodsInfoArr
:
Array
<
Any
>
=
[]
@IBOutlet
weak
var
gm_view
:
UIView
!
@IBOutlet
weak
var
gm_view
:
UIView
!
let
wkWebView
=
WKWebView
()
//
// 页面加载完成之后调用
// 页面加载完成之后调用
func
webView
(
_
webView
:
WKWebView
,
didFinish
navigation
:
WKNavigation
!
){
func
webView
(
_
webView
:
WKWebView
,
didFinish
navigation
:
WKNavigation
!
){
print
(
"页面加载完成..."
)
print
(
"页面加载完成..."
)
...
@@ -267,9 +269,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -267,9 +269,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
cell
.
progress
.
progress
=
Float
(
part
)
/
Float
(
total
)
cell
.
progress
.
progress
=
Float
(
part
)
/
Float
(
total
)
if
Float
(
part
)
/
Float
(
total
)
==
1
{
if
Float
(
part
)
/
Float
(
total
)
==
1
{
printIdx
+=
1
printIdx
+=
1
if
printIdx
!
=
printData
.
count
-
1
{
if
printIdx
<
=
printData
.
count
-
1
{
printData
(
idx
:
printIdx
)
printData
(
idx
:
printIdx
)
print_list
.
reloadData
()
print_list
.
reloadData
()
webView
.
removeFromSuperview
()
}
else
{
}
else
{
printIdx
=
0
printIdx
=
0
title_Lbl
.
removeFromSuperview
()
title_Lbl
.
removeFromSuperview
()
...
@@ -460,8 +463,8 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -460,8 +463,8 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
cell
.
btn
.
setTitle
(
"取消打印"
,
for
:
.
normal
)
cell
.
btn
.
setTitle
(
"取消打印"
,
for
:
.
normal
)
cell
.
btn
.
setTitleColor
(
UIColor
(
named
:
"#F57575"
),
for
:
.
normal
)
cell
.
btn
.
setTitleColor
(
UIColor
(
named
:
"#F57575"
),
for
:
.
normal
)
cell
.
btn
.
isUserInteractionEnabled
=
true
cell
.
btn
.
isUserInteractionEnabled
=
true
}
else
{
}
else
{
// cell.progress.progress = 1
cell
.
status_lbl
.
isHidden
=
true
cell
.
status_lbl
.
isHidden
=
true
cell
.
btn
.
setTitle
(
"正在打印"
,
for
:
.
normal
)
cell
.
btn
.
setTitle
(
"正在打印"
,
for
:
.
normal
)
cell
.
btn
.
isUserInteractionEnabled
=
false
cell
.
btn
.
isUserInteractionEnabled
=
false
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewPrintItemCell.xib
View file @
d5201b65
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<progressView
opaque=
"NO"
contentMode=
"scaleToFill"
verticalHuggingPriority=
"750"
progress=
"0.5"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ivI-eU-vNC"
>
<progressView
opaque=
"NO"
contentMode=
"scaleToFill"
verticalHuggingPriority=
"750"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ivI-eU-vNC"
>
<rect
key=
"frame"
x=
"51"
y=
"37"
width=
"189"
height=
"4"
/>
<rect
key=
"frame"
x=
"51"
y=
"37"
width=
"189"
height=
"4"
/>
<color
key=
"backgroundColor"
red=
"0.81568627450980391"
green=
"0.90588235294117647"
blue=
"0.98431372549019602"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"backgroundColor"
red=
"0.81568627450980391"
green=
"0.90588235294117647"
blue=
"0.98431372549019602"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"tintColor"
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"tintColor"
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
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