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
25b9b284
Commit
25b9b284
authored
Jun 29, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
30
parent
cfa90891
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
86 additions
and
28 deletions
+86
-28
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+1
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+0
-1
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.xib
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.xib
+5
-1
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
...wController/客户管理/XinZengAndBianJiKeHuViewController.swift
+20
-1
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.swift
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.swift
+1
-1
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.xib
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.xib
+3
-3
GeliBusinessPlatform/ViewController/溯源/GPrinter_Cell.swift
GeliBusinessPlatform/ViewController/溯源/GPrinter_Cell.swift
+37
-15
GeliBusinessPlatform/ViewController/溯源/Print_Gprinter_View.swift
...inessPlatform/ViewController/溯源/Print_Gprinter_View.swift
+19
-6
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
25b9b284
No preview for this file type
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
View file @
25b9b284
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
25b9b284
...
@@ -358,6 +358,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -358,6 +358,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
let
vc
=
Print_Gprinter_View
(
frame
:
self
.
view
.
bounds
)
let
vc
=
Print_Gprinter_View
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
vc
.
delegate
=
self
vc
.
rkSelectArr
=
rkSelectArr
vc
.
rkSelectArr
=
rkSelectArr
print
(
piCiArr
?
.
count
)
vc
.
piCiArr
=
piCiArr
vc
.
piCiArr
=
piCiArr
self
.
view
.
addSubview
(
vc
)
self
.
view
.
addSubview
(
vc
)
}
else
{
}
else
{
...
...
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
25b9b284
...
@@ -24,7 +24,6 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
...
@@ -24,7 +24,6 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
AddressDel
([
"user_token"
:
UserToken
as
Any
,
"address_id"
:
model
.
address_id
as
Any
],
success
:
{
(
data
)
in
AddressDel
([
"user_token"
:
UserToken
as
Any
,
"address_id"
:
model
.
address_id
as
Any
],
success
:
{
(
data
)
in
self
.
listView
.
mj_header
?
.
beginRefreshing
()
self
.
listView
.
mj_header
?
.
beginRefreshing
()
})
{
(
error
)
in
})
{
(
error
)
in
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.xib
View file @
25b9b284
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"18093"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"18093"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OWf-Av-nZU"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OWf-Av-nZU"
>
<rect
key=
"frame"
x=
"15"
y=
"12.5"
width=
"33"
height=
"19"
/>
<rect
key=
"frame"
x=
"15"
y=
"12.5"
width=
"33"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<
nil
key=
"textColor
"
/>
<
color
key=
"textColor"
name=
"标题字颜色
"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinru"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZj-x0-0S4"
>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinru"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZj-x0-0S4"
>
...
@@ -57,5 +58,8 @@
...
@@ -57,5 +58,8 @@
</objects>
</objects>
<resources>
<resources>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
View file @
25b9b284
...
@@ -134,6 +134,9 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
...
@@ -134,6 +134,9 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
self
.
view
.
window
?
.
addSubview
(
alertView
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
}
var
adrArr
:
Array
<
GetAddrsInfoDataModel
>
=
[]
var
titleStr
:
String
?
var
titleStr
:
String
?
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
titleArr
=
[
"客户名称"
,
"客户手机号码 "
,
"客户公司名称"
,
"绑定用户"
,
"客户类型"
,
"客户折扣"
,
"客户地址管理"
]
let
titleArr
=
[
"客户名称"
,
"客户手机号码 "
,
"客户公司名称"
,
"绑定用户"
,
"客户类型"
,
"客户折扣"
,
"客户地址管理"
]
...
@@ -156,12 +159,22 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
...
@@ -156,12 +159,22 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
listView
.
isScrollEnabled
=
false
listView
.
isScrollEnabled
=
false
top_margin
.
constant
=
NavCGRect
.
height
-
49
top_margin
.
constant
=
NavCGRect
.
height
-
49
tbv_h
.
constant
=
CGFloat
(
49*
titleArr
.
count
)
tbv_h
.
constant
=
CGFloat
(
49*
titleArr
.
count
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"Title_Btn_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"Title_Btn_Cell"
)
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
.
listView
.
reloadData
()
}
failture
:
{
err
in
}
}
}
//MARK: - CELL DELEGATE
//MARK: - CELL DELEGATE
...
@@ -174,6 +187,8 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
...
@@ -174,6 +187,8 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
row
==
6
{
if
indexPath
.
row
==
6
{
print
(
"abc == "
)
print
(
"abc == "
)
let
vc
=
DZGLViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
if
indexPath
.
row
==
3
{
if
indexPath
.
row
==
3
{
let
vc
=
BingDingKeHuViewController
()
let
vc
=
BingDingKeHuViewController
()
...
@@ -237,6 +252,10 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
...
@@ -237,6 +252,10 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
if
indexPath
.
row
==
6
{
if
indexPath
.
row
==
6
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"Title_Btn_Cell"
)
as!
Title_Btn_Cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"Title_Btn_Cell"
)
as!
Title_Btn_Cell
cell
.
title_lbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
title_lbl
.
text
=
titleArr
[
indexPath
.
row
]
if
adrArr
.
count
!=
0
{
cell
.
add_adr_lbl
.
isHidden
=
true
cell
.
arrow_img
.
isHidden
=
false
}
return
cell
return
cell
}
}
...
...
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.swift
View file @
25b9b284
...
@@ -27,7 +27,7 @@ class Add_Report_View: UIView {
...
@@ -27,7 +27,7 @@ class Add_Report_View: UIView {
item
.
removeFromSuperview
()
item
.
removeFromSuperview
()
}
}
btm_view
.
insertSubview
(
scrollView
,
at
:
btm_view
.
subviews
.
count
-
1
)
btm_view
.
insertSubview
(
scrollView
,
at
:
0
)
scrollView
.
frame
=
CGRect
(
x
:
15
,
y
:
add_img_btn
.
frame
.
maxY
+
20
,
width
:
ScreenWidth
-
30
,
height
:
100.5
)
scrollView
.
frame
=
CGRect
(
x
:
15
,
y
:
add_img_btn
.
frame
.
maxY
+
20
,
width
:
ScreenWidth
-
30
,
height
:
100.5
)
...
...
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.xib
View file @
25b9b284
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
8122
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
770
3"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
809
3"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
</constraints>
</constraints>
</imageView>
</imageView>
</subviews>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor
"
/>
<color
key=
"backgroundColor"
name=
"白色背景色
"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"qIU-Ju-6TU"
secondAttribute=
"trailing"
constant=
"15"
id=
"3J3-RD-yfE"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"qIU-Ju-6TU"
secondAttribute=
"trailing"
constant=
"15"
id=
"3J3-RD-yfE"
/>
<constraint
firstItem=
"qIU-Ju-6TU"
firstAttribute=
"leading"
secondItem=
"1E2-Hg-cjR"
secondAttribute=
"leading"
constant=
"15"
id=
"4eE-fj-9YJ"
/>
<constraint
firstItem=
"qIU-Ju-6TU"
firstAttribute=
"leading"
secondItem=
"1E2-Hg-cjR"
secondAttribute=
"leading"
constant=
"15"
id=
"4eE-fj-9YJ"
/>
...
...
GeliBusinessPlatform/ViewController/溯源/GPrinter_Cell.swift
View file @
25b9b284
...
@@ -41,20 +41,7 @@ class GPrinter_Cell: UITableViewCell {
...
@@ -41,20 +41,7 @@ class GPrinter_Cell: UITableViewCell {
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
}
}
func
ui
(
i
:
Int
){
func
setUI
(){
if
bg_view
.
subviews
.
count
>
0
{
bg_view
.
subviews
.
forEach
{
(
item
)
in
item
.
removeFromSuperview
()
}
}
if
piciArr
.
count
==
0
{
return
}
for
i
in
0
..<
piciArr
.
count
{
if
select_arr
.
count
!=
piciArr
.
count
{
select_arr
.
append
(
999999
)
print_copy_arr
.
append
(
1
)
}
let
view
=
UIView
()
let
view
=
UIView
()
view
.
tag
=
i
view
.
tag
=
i
bg_view
.
addSubview
(
view
)
bg_view
.
addSubview
(
view
)
...
@@ -155,6 +142,36 @@ class GPrinter_Cell: UITableViewCell {
...
@@ -155,6 +142,36 @@ class GPrinter_Cell: UITableViewCell {
make
.
width
.
height
.
equalTo
(
28
)
make
.
width
.
height
.
equalTo
(
28
)
}
}
}
}
func
setUI
(){
if
bg_view
.
subviews
.
count
>
0
{
bg_view
.
subviews
.
forEach
{
(
item
)
in
item
.
removeFromSuperview
()
}
}
if
is_rk
{
if
rk_piciArr
.
count
==
0
{
return
}
for
i
in
0
..<
rk_piciArr
.
count
{
if
select_arr
.
count
!=
rk_piciArr
.
count
{
select_arr
.
append
(
999999
)
print_copy_arr
.
append
(
1
)
}
ui
(
i
:
i
)
}
}
else
{
if
piciArr
.
count
==
0
{
return
}
for
i
in
0
..<
piciArr
.
count
{
if
select_arr
.
count
!=
piciArr
.
count
{
select_arr
.
append
(
999999
)
print_copy_arr
.
append
(
1
)
}
ui
(
i
:
i
)
}
}
}
}
var
select_arr
:
Array
<
Int
>
=
[]
var
select_arr
:
Array
<
Int
>
=
[]
var
print_copy_arr
:
Array
<
Int
>
=
[]
var
print_copy_arr
:
Array
<
Int
>
=
[]
...
@@ -237,7 +254,7 @@ class GPrinter_Cell: UITableViewCell {
...
@@ -237,7 +254,7 @@ class GPrinter_Cell: UITableViewCell {
}
}
}
}
}
}
var
is_rk
=
false
@objc
func
single_select
(
btn
:
UIButton
){
@objc
func
single_select
(
btn
:
UIButton
){
if
btn
.
isSelected
{
if
btn
.
isSelected
{
btn
.
isSelected
=
false
btn
.
isSelected
=
false
...
@@ -262,6 +279,11 @@ class GPrinter_Cell: UITableViewCell {
...
@@ -262,6 +279,11 @@ class GPrinter_Cell: UITableViewCell {
setUI
()
setUI
()
}
}
}
}
var
rk_piciArr
:
Array
<
goodsInputBatchData
>
=
[]{
didSet
{
setUI
()
}
}
...
...
GeliBusinessPlatform/ViewController/溯源/Print_Gprinter_View.swift
View file @
25b9b284
...
@@ -26,7 +26,7 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
...
@@ -26,7 +26,7 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
var
print_num_arr
:
Array
<
Array
<
Int
>>
=
[]
var
print_num_arr
:
Array
<
Array
<
Int
>>
=
[]
var
is_rk
=
false
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
rkSelectArr
.
count
return
rkSelectArr
.
count
...
@@ -40,8 +40,11 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
...
@@ -40,8 +40,11 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
cell
.
tag
=
indexPath
.
row
cell
.
tag
=
indexPath
.
row
let
model
=
rkSelectArr
[
indexPath
.
row
]
let
model
=
rkSelectArr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
goods_name
cell
.
name_lbl
.
text
=
model
.
goods_name
if
piCiArr
!.
count
>
0
{
cell
.
is_rk
=
is_rk
if
is_rk
==
false
{
cell
.
piciArr
=
piCiArr
!
[
indexPath
.
row
]
cell
.
piciArr
=
piCiArr
!
[
indexPath
.
row
]
}
else
{
cell
.
rk_piciArr
=
rk_piciArr
!
[
indexPath
.
row
]
}
}
cell
.
btm_line
.
isHidden
=
false
cell
.
btm_line
.
isHidden
=
false
if
indexPath
.
row
==
rkSelectArr
.
count
-
1
{
if
indexPath
.
row
==
rkSelectArr
.
count
-
1
{
...
@@ -51,11 +54,13 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
...
@@ -51,11 +54,13 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
piCiArr
!.
count
>
0
{
if
is_rk
==
false
{
let
pici
=
piCiArr
!
[
indexPath
.
row
]
let
pici
=
piCiArr
!
[
indexPath
.
row
]
return
CGFloat
(
103
+
67
*
pici
.
count
)
return
CGFloat
(
103
+
67
*
pici
.
count
)
}
else
{
let
pici
=
rk_piciArr
!
[
indexPath
.
row
]
return
CGFloat
(
103
+
67
*
pici
.
count
)
}
}
return
170
}
}
var
rkSelectArr
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]{
var
rkSelectArr
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]{
didSet
{
didSet
{
...
@@ -66,6 +71,7 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
...
@@ -66,6 +71,7 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
}
}
}
//产品选择
}
//产品选择
var
piCiArr
:
Array
<
Array
<
GetGoodBatchDataModel
>>
?
=
[]
var
piCiArr
:
Array
<
Array
<
GetGoodBatchDataModel
>>
?
=
[]
var
rk_piciArr
:
Array
<
Array
<
goodsInputBatchData
>>
?
=
[]
var
contentView
:
UIView
!
var
contentView
:
UIView
!
var
pi_ci_select
:
Array
<
Array
<
Int
>>
=
[]
var
pi_ci_select
:
Array
<
Array
<
Int
>>
=
[]
@IBOutlet
weak
var
list_view
:
UITableView
!
@IBOutlet
weak
var
list_view
:
UITableView
!
...
@@ -99,9 +105,12 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
...
@@ -99,9 +105,12 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
for
i
in
select_arr
{
for
i
in
select_arr
{
dict
[
"goods_name"
]
=
model
.
goods_name
dict
[
"goods_name"
]
=
model
.
goods_name
if
piCiArr
!.
count
>
0
{
if
is_rk
==
false
{
let
p
=
piCiArr
!
[
item
][
i
]
let
p
=
piCiArr
!
[
item
][
i
]
dict
[
"goods_data"
]
=
p
dict
[
"goods_data"
]
=
p
}
else
{
let
p
=
rk_piciArr
!
[
item
][
i
]
dict
[
"goods_data"
]
=
p
}
}
let
n
=
print_num_arr
[
item
][
i
]
let
n
=
print_num_arr
[
item
][
i
]
dict
[
"print_counts"
]
=
n
dict
[
"print_counts"
]
=
n
...
@@ -110,8 +119,12 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
...
@@ -110,8 +119,12 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
}
}
}
}
for
item
in
print_data
{
for
item
in
print_data
{
if
is_rk
==
false
{
let
data
=
item
[
"goods_data"
]
as!
GetGoodBatchDataModel
let
data
=
item
[
"goods_data"
]
as!
GetGoodBatchDataModel
print
(
"print_target = "
,
item
[
"goods_name"
],
data
.
batch_id
,
item
[
"print_counts"
])
// print("print_target = ",item["goods_name"],data.batch_id,item["print_counts"])
}
else
{
let
data
=
item
[
"goods_data"
]
as!
goodsInputBatchData
}
}
}
self
.
removeFromSuperview
()
self
.
removeFromSuperview
()
//连接打印机
//连接打印机
...
...
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