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
cfa90891
Commit
cfa90891
authored
Jun 28, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
29
parent
f4332216
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
559 additions
and
221 deletions
+559
-221
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+8
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
+2
-2
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+305
-152
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
+62
-10
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+1
-6
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.xib
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.xib
+2
-2
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
...Platform/ViewController/客户管理/KeHuListViewController.swift
+0
-1
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.xib
...ssPlatform/ViewController/客户管理/KeHuListViewController.xib
+19
-10
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.swift
...BusinessPlatform/ViewController/客户管理/Title_Btn_Cell.swift
+28
-0
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.xib
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.xib
+61
-0
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
...wController/客户管理/XinZengAndBianJiKeHuViewController.swift
+35
-20
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.xib
...iewController/客户管理/XinZengAndBianJiKeHuViewController.xib
+19
-8
GeliBusinessPlatform/ViewController/溯源/Print_Gprinter_View.swift
...inessPlatform/ViewController/溯源/Print_Gprinter_View.swift
+13
-6
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
cfa90891
...
...
@@ -482,6 +482,8 @@
E0DA8AAF25E8F3D800425099
/* SVProgressHUD.bundle in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DA8AA125E8F3D800425099
/* SVProgressHUD.bundle */
;
};
E0DA8ACF25E8F4C000425099
/* BtViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DA8ACD25E8F4C000425099
/* BtViewController.m */
;
};
E0DA8AD025E8F4C000425099
/* BtViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DA8ACE25E8F4C000425099
/* BtViewController.xib */
;
};
E0DCA8D0268999AC00518C4D
/* Title_Btn_Cell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DCA8CE268999AC00518C4D
/* Title_Btn_Cell.swift */
;
};
E0DCA8D1268999AC00518C4D
/* Title_Btn_Cell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DCA8CF268999AC00518C4D
/* Title_Btn_Cell.xib */
;
};
E0DDCB0F244AD8C500DF54C7
/* DaiQueRenCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB0D244AD8C500DF54C7
/* DaiQueRenCell.swift */
;
};
E0DDCB10244AD8C500DF54C7
/* DaiQueRenCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB0E244AD8C500DF54C7
/* DaiQueRenCell.xib */
;
};
E0DDCB13244ADF2C00DF54C7
/* ChangePriceNormalCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB11244ADF2C00DF54C7
/* ChangePriceNormalCell.swift */
;
};
...
...
@@ -1337,6 +1339,8 @@
E0DA8ACC25E8F4C000425099
/* BtViewController.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BtViewController.h
;
sourceTree
=
"<group>"
;
};
E0DA8ACD25E8F4C000425099
/* BtViewController.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BtViewController.m
;
sourceTree
=
"<group>"
;
};
E0DA8ACE25E8F4C000425099
/* BtViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BtViewController.xib
;
sourceTree
=
"<group>"
;
};
E0DCA8CE268999AC00518C4D
/* Title_Btn_Cell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Title_Btn_Cell.swift
;
sourceTree
=
"<group>"
;
};
E0DCA8CF268999AC00518C4D
/* Title_Btn_Cell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
Title_Btn_Cell.xib
;
sourceTree
=
"<group>"
;
};
E0DDCB0D244AD8C500DF54C7
/* DaiQueRenCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DaiQueRenCell.swift
;
sourceTree
=
"<group>"
;
};
E0DDCB0E244AD8C500DF54C7
/* DaiQueRenCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DaiQueRenCell.xib
;
sourceTree
=
"<group>"
;
};
E0DDCB11244ADF2C00DF54C7
/* ChangePriceNormalCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChangePriceNormalCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2144,6 +2148,8 @@
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
,
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
,
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
,
E0DCA8CE268999AC00518C4D
/* Title_Btn_Cell.swift */
,
E0DCA8CF268999AC00518C4D
/* Title_Btn_Cell.xib */
,
);
path
=
"客户管理"
;
sourceTree
=
"<group>"
;
...
...
@@ -4279,6 +4285,7 @@
E0DDCB19244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib in Resources */
,
E00E48BF2457BAC700F16545
/* XuanZeShangPinCell.xib in Resources */
,
E06524FE24581BD900CA22E2
/* PiCiXuanZeViewController1.xib in Resources */
,
E0DCA8D1268999AC00518C4D
/* Title_Btn_Cell.xib in Resources */
,
E0AA3A92248F626400CBFC27
/* XinCaiGouViewController.xib in Resources */
,
E09F4CA32452D18800BE033D
/* ZengZhiServicesViewController.xib in Resources */
,
F95D9CA524493E840080D6E3
/* ShopInfoViewController.xib in Resources */
,
...
...
@@ -4710,6 +4717,7 @@
F950FDAD245163E500C40530
/* GoodsListModel.swift in Sources */
,
F9D44E8824CBC6A400FBD8DB
/* ToAndFormSelectViewController.swift in Sources */
,
E0D197BD2448431C002B080C
/* BabySpeaker.m in Sources */
,
E0DCA8D0268999AC00518C4D
/* Title_Btn_Cell.swift in Sources */
,
F9956B22246408A6001A617D
/* GoodsClassViewController.swift in Sources */
,
E07413112637AEBA0098006A
/* ConnecterManager.m in Sources */
,
F950FDDA24518B9500C40530
/* FSCalendarCell.m in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
cfa90891
No preview for this file type
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
View file @
cfa90891
<?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"
/>
<dependencies>
<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=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/View/Cell/TitleAndTFAndBtnCell.xib
View file @
cfa90891
<?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"
/>
<dependencies>
<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=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
View file @
cfa90891
<?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"
/>
<dependencies>
<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=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
View file @
cfa90891
...
...
@@ -9,11 +9,123 @@
import
UIKit
import
LGButton
import
Photos
import
WebKit
protocol
NewRKVcDelegate
{
func
NewRKVcFinish
()
}
class
NewRKVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewOnlyRKCellDelegate
,
NewSelectItemVcDelegate
,
NewSelectWarehouseVCDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertTextViewDelegate
,
ShowTimeSelectViewDelegate
,
GYSListViewControllerDelegate
,
GYSGLViewControllerDelegate
,
Add_Report_View_Delegate
{
class
NewRKVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewOnlyRKCellDelegate
,
NewSelectItemVcDelegate
,
NewSelectWarehouseVCDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertTextViewDelegate
,
ShowTimeSelectViewDelegate
,
GYSListViewControllerDelegate
,
GYSGLViewControllerDelegate
,
Add_Report_View_Delegate
,
Print_Gprinter_View_Delegate
,
NewPrintItemCell_Delegate
,
WKNavigationDelegate
{
func
NewPrintItemCell_delAction
(
cell
:
NewPrintItemCell
)
{
printData
.
remove
(
at
:
cell
.
tag
)
print_list
.
reloadData
()
}
let
printBG
=
UIButton
()
let
title_Lbl
=
UILabel
()
let
print_list
=
UITableView
()
var
printIdx
=
0
var
printData
:
Array
<
Dictionary
<
String
,
Any
>>
=
[]
@objc
func
closeAction
(){
printData
.
removeAll
()
printIdx
=
0
title_Lbl
.
removeFromSuperview
()
print_list
.
removeFromSuperview
()
printBG
.
removeFromSuperview
()
}
func
Print_Gprinter_View_Print
(
data
:
Array
<
Dictionary
<
String
,
Any
>>
)
{
printData
.
removeAll
()
data
.
forEach
{
(
dict
)
in
printData
.
append
(
dict
)
}
print
(
"打印"
)
printBG
.
backgroundColor
=
UIColor
.
black
printBG
.
alpha
=
0.4
printBG
.
addTarget
(
self
,
action
:
#selector(
closeAction
)
,
for
:
.
touchUpInside
)
self
.
view
.
addSubview
(
printBG
)
printBG
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
left
.
right
.
bottom
.
equalToSuperview
()
}
self
.
view
.
addSubview
(
title_Lbl
)
title_Lbl
.
text
=
"打印列表"
title_Lbl
.
backgroundColor
=
UIColor
.
white
title_Lbl
.
textAlignment
=
.
center
title_Lbl
.
font
=
UIFont
(
name
:
"PingFangSC-Medium"
,
size
:
15
)
title_Lbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
title_Lbl
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
bottom
.
equalTo
(
-
391
)
make
.
height
.
equalTo
(
49
)
}
self
.
view
.
addSubview
(
print_list
)
print_list
.
separatorStyle
=
.
none
print_list
.
register
(
UINib
(
nibName
:
"NewPrintItemCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"NewPrintItemCell"
)
print_list
.
delegate
=
self
print_list
.
dataSource
=
self
print_list
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
bottom
.
equalTo
(
0
)
make
.
top
.
equalTo
(
title_Lbl
.
snp_bottom
)
}
printData
(
idx
:
printIdx
)
}
// 页面加载完成之后调用
func
webView
(
_
webView
:
WKWebView
,
didFinish
navigation
:
WKNavigation
!
){
print
(
"页面加载完成..."
)
webView
.
takeScreenshotOfFullContent
{[
self
]
(
img
)
in
let
command
=
TscCommand
()
command
.
addSize
(
40
,
30
)
command
.
addGap
(
withM
:
2
,
withN
:
0
)
command
.
addReference
(
0
,
0
)
command
.
addTear
(
"ON"
)
command
.
addQueryPrinterStatus
(
Response
(
rawValue
:
1
)
!
)
command
.
addCls
()
command
.
addBitmapwithX
(
0
,
withY
:
0
,
withMode
:
0
,
withWidth
:
400
,
with
:
img
)
let
num
=
printData
[
printIdx
][
"print_counts"
]
as!
Int
command
.
addPrint
(
Int32
(
num
),
1
)
ConnecterManager
.
sharedInstance
()?
.
write
(
command
.
getCommand
(),
progress
:
{
(
total
,
part
)
in
let
cell
=
print_list
.
cellForRow
(
at
:
IndexPath
(
row
:
printIdx
,
section
:
0
))
as!
NewPrintItemCell
cell
.
progress
.
progress
=
Float
(
part
)
/
Float
(
total
)
if
Float
(
part
)
/
Float
(
total
)
==
1
{
printIdx
+=
1
if
printIdx
<=
printData
.
count
-
1
{
printData
(
idx
:
printIdx
)
print_list
.
reloadData
()
webView
.
removeFromSuperview
()
}
else
{
printIdx
=
0
title_Lbl
.
removeFromSuperview
()
print_list
.
removeFromSuperview
()
printBG
.
removeFromSuperview
()
}
}
})
}
}
var
wkWebView
:
WKWebView
?
func
printData
(
idx
:
Int
){
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"
//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
urlString
=
urlStr
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
let
url
=
URL
(
string
:
urlString
)
if
wkWebView
==
nil
{
wkWebView
=
WKWebView
()
}
let
request
=
URLRequest
.
init
(
url
:
url
!
,
cachePolicy
:
.
reloadRevalidatingCacheData
,
timeoutInterval
:
10
)
wkWebView
!.
navigationDelegate
=
self
wkWebView
!.
load
(
request
)
wkWebView
!.
bounds
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
230
,
height
:
230*0.75
)
}
@IBOutlet
weak
var
print_bg_view
:
UIView
!
func
Add_Report_View_Close
(
view
:
Add_Report_View
)
{
report_view
?
.
removeFromSuperview
()
report_view
=
nil
...
...
@@ -30,7 +142,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
if
isCaiGou
||
rkSelectArr
[
cell
.
tag
]
.
ven_list
!.
count
==
1
{
return
}
if
glSelectView
==
nil
{
var
gys_arr
:
Array
<
String
>
=
[]
rkSelectArr
[
cell
.
tag
]
.
ven_list
?
.
forEach
({
(
item
)
in
...
...
@@ -216,7 +328,8 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
holderArr
.
remove
(
at
:
holderArr
.
count
-
1
)
listView
.
reloadData
()
}
@IBAction
func
gmAction
(
_
sender
:
Any
)
{
@IBAction
func
gmAction
(
_
sender
:
UIButton
)
{
if
gmNumber
==
nil
{
if
holderArr
[
0
]
==
"请选择仓库"
{
HUD
.
flash
(
.
label
(
"请选择仓库"
),
delay
:
1.2
)
...
...
@@ -231,7 +344,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
HUD
.
flash
(
.
label
(
"请选择入库类型"
),
delay
:
1.2
)
return
}
if
rkSelectArr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择商品"
),
delay
:
1.2
)
return
...
...
@@ -257,66 +370,83 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
HUD
.
show
(
.
progress
)
if
lgBtnTitLbl
.
text
!=
"提交申请"
{
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
for
i
in
0
..<
rkSelectArr
.
count
{
let
model
=
rkSelectArr
[
i
]
var
rkjg
:
Float
=
0
var
total
:
Float
=
0
if
model
.
RKJG
!=
nil
{
rkjg
=
model
.
RKJG
!
if
model
.
RKSL
!=
nil
{
total
=
rkjg
*
Float
(
model
.
RKSL
!
)
let
appdelegate
=
UIApplication
.
shared
.
delegate
as!
AppDelegate
if
sender
.
tag
==
1
{
if
appdelegate
.
blueToothVC
.
isLink
{
let
vc
=
Print_Gprinter_View
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
vc
.
rkSelectArr
=
rkSelectArr
vc
.
piCiArr
=
[]
self
.
view
.
addSubview
(
vc
)
}
else
{
HUD
.
flash
(
.
label
(
"请连接打印机"
),
onView
:
self
.
view
,
delay
:
1.2
)
{
(
data
)
in
self
.
navigationController
?
.
pushViewController
(
appdelegate
.
blueToothVC
,
animated
:
true
)
}
}
var
shelf_life
=
model
.
BZQ
if
model
.
DayType
==
0
{
shelf_life
=
model
.
BZQ
!
*
30
}
var
ven_id
=
0
if
select_ven_list
[
i
]
!=
-
1
{
let
mo
=
model
.
ven_list
!
[
select_ven_list
[
i
]]
ven_id
=
mo
.
ven_id
!
}
else
{
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
for
i
in
0
..<
rkSelectArr
.
count
{
let
model
=
rkSelectArr
[
i
]
var
rkjg
:
Float
=
0
var
total
:
Float
=
0
if
model
.
RKJG
!=
nil
{
rkjg
=
model
.
RKJG
!
if
model
.
RKSL
!=
nil
{
total
=
rkjg
*
Float
(
model
.
RKSL
!
)
}
}
var
shelf_life
=
model
.
BZQ
if
model
.
DayType
==
0
{
shelf_life
=
model
.
BZQ
!
*
30
}
var
ven_id
=
0
if
select_ven_list
[
i
]
!=
-
1
{
let
mo
=
model
.
ven_list
!
[
select_ven_list
[
i
]]
ven_id
=
mo
.
ven_id
!
}
let
goods
=
[
"goods_id"
:
model
.
goods_id
as
Any
,
"sku_id"
:
model
.
sku_id
as
Any
,
"goods_name"
:
model
.
goods_name
as
Any
,
"goods_spec"
:
model
.
spec_str
as
Any
,
"number"
:
model
.
RKSL
as
Any
,
"price"
:
model
.
price
as
Any
,
"amount"
:
rkjg
as
Any
,
"subtotal"
:
total
as
Any
,
"production_data"
:
model
.
createDay
as
Any
,
"shelf_life"
:
shelf_life
as
Any
,
"report_id"
:
model
.
report_id
as
Any
,
"pog_id"
:
model
.
pog_id
as
Any
,
"ven_id"
:
ven_id
as
Any
]
goodsInfoArr
?
.
append
(
goods
)
}
let
goods
=
[
"goods_id"
:
model
.
goods_id
as
Any
,
"sku_id"
:
model
.
sku_id
as
Any
,
"goods_name"
:
model
.
goods_name
as
Any
,
"goods_spec"
:
model
.
spec_str
as
Any
,
"number"
:
model
.
RKSL
as
Any
,
"price"
:
model
.
price
as
Any
,
"amount"
:
rkjg
as
Any
,
"subtotal"
:
total
as
Any
,
"production_data"
:
model
.
createDay
as
Any
,
"shelf_life"
:
shelf_life
as
Any
,
"report_id"
:
model
.
report_id
as
Any
,
"pog_id"
:
model
.
pog_id
as
Any
,
"ven_id"
:
ven_id
as
Any
let
goods_info
=
dataChangeString
(
sender
:
goodsInfoArr
!
)
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"w_id"
:
w_id
as
Any
,
"p_id"
:
p_id
as
Any
,
"i_type"
:
typeSelect
+
8
as
Any
,
"apply_remark"
:
remark
as
Any
,
"po_id"
:
po_id
as
Any
,
"ven_id"
:
ven_id
as
Any
,
"g_type"
:
selectTypeSelect
+
1
as
Any
,
"goods_info"
:
goods_info
as
Any
]
goodsInfoArr
?
.
append
(
goods
)
GoodsInput
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"入库成功"
),
delay
:
1.2
)
self
.
delegate
?
.
NewRKVcFinish
()
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
let
goods_info
=
dataChangeString
(
sender
:
goodsInfoArr
!
)
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"w_id"
:
w_id
as
Any
,
"p_id"
:
p_id
as
Any
,
"i_type"
:
typeSelect
+
8
as
Any
,
"apply_remark"
:
remark
as
Any
,
"po_id"
:
po_id
as
Any
,
"ven_id"
:
ven_id
as
Any
,
"g_type"
:
selectTypeSelect
+
1
as
Any
,
"goods_info"
:
goods_info
as
Any
]
GoodsInput
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"入库成功"
),
delay
:
1.2
)
self
.
delegate
?
.
NewRKVcFinish
()
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
else
{
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
for
i
in
0
..<
rkSelectArr
.
count
{
...
...
@@ -487,6 +617,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
if
self
.
gmNumber
!=
nil
{
//入库申请
var
pass
=
false
self
.
print_bg_view
.
isHidden
=
true
self
.
authArr
.
forEach
{
(
str
)
in
if
str
==
"
\(
self
.
gmNumber
!
)
"
{
self
.
lgBtnTitLbl
.
text
=
"提交申请"
...
...
@@ -502,8 +633,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
}
else
{
self
.
lgBtnTitLbl
.
text
=
"提交申请"
if
self
.
authArr
.
contains
(
"63"
){
self
.
isGm
=
true
self
.
print_bg_view
.
isHidden
=
false
self
.
lgBtnTitLbl
.
text
=
"直接入库"
}
}
...
...
@@ -671,115 +804,135 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
//MARK: - cellForRow
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"New
OnlyRKCell"
)
as!
NewOnlyRK
Cell
if
tableView
==
print_list
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"New
PrintItemCell"
)
as!
NewPrintItem
Cell
cell
.
tag
=
indexPath
.
row
cell
.
delegate
=
self
if
isCaiGou
{
cell
.
delBtn
.
isHidden
=
true
}
let
data
=
rkSelectArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
data
.
goods_name
if
data
.
no_push_num
!=
nil
{
cell
.
titLbl
.
text
=
"入库数量:(可入库量为"
+
StringByInt
(
number
:
data
.
no_push_num
!
)
}
cell
.
detailLbl
.
text
=
data
.
spec_str
!
+
" ¥"
+
data
.
price
!
cell
.
rkPriceTf
.
text
=
data
.
price
!
cell
.
rkCountTf
.
text
=
"1"
cell
.
bzqTf
.
text
=
""
cell
.
timeLbl
.
text
=
"请选择生产日期"
if
data
.
RKJG
!=
nil
{
cell
.
rkPriceTf
.
text
=
String
(
format
:
"%.2f"
,
data
.
RKJG
!
)
let
dict
=
printData
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
dict
[
"goods_name"
]
as!
String
if
indexPath
.
row
>
printIdx
{
cell
.
status_lbl
.
isHidden
=
false
cell
.
btn
.
setTitle
(
"取消打印"
,
for
:
.
normal
)
cell
.
btn
.
setTitleColor
(
UIColor
(
named
:
"#F57575"
),
for
:
.
normal
)
cell
.
btn
.
isUserInteractionEnabled
=
true
}
else
{
data
.
RKJG
=
Float
(
data
.
price
!
)
// cell.progress.progress = 1
cell
.
status_lbl
.
isHidden
=
true
cell
.
btn
.
setTitle
(
"正在打印"
,
for
:
.
normal
)
cell
.
btn
.
isUserInteractionEnabled
=
false
cell
.
btn
.
setTitleColor
(
UIColor
(
named
:
"个人中心灰色字体"
),
for
:
.
normal
)
}
if
data
.
RKSL
!=
nil
{
cell
.
rkCountTf
.
text
=
String
(
format
:
"%d"
,
data
.
RKSL
!
)
}
else
{
return
cell
}
else
{
if
indexPath
.
section
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"NewOnlyRKCell"
)
as!
NewOnlyRKCell
cell
.
tag
=
indexPath
.
row
cell
.
delegate
=
self
if
isCaiGou
{
cell
.
delBtn
.
isHidden
=
true
}
let
data
=
rkSelectArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
data
.
goods_name
if
data
.
no_push_num
!=
nil
{
cell
.
titLbl
.
text
=
"入库数量:(可入库量为"
+
StringByInt
(
number
:
data
.
no_push_num
!
)
}
cell
.
detailLbl
.
text
=
data
.
spec_str
!
+
" ¥"
+
data
.
price
!
cell
.
rkPriceTf
.
text
=
data
.
price
!
cell
.
rkCountTf
.
text
=
"1"
data
.
RKSL
=
1
}
if
data
.
ZJ
!=
nil
{
cell
.
totalPriceTf
.
text
=
String
(
format
:
"%.2f"
,
data
.
ZJ
!
)
}
else
{
cell
.
totalPriceTf
.
text
=
data
.
price
!
}
if
data
.
BZQ
!=
nil
{
cell
.
bzqTf
.
text
=
String
(
format
:
"%d"
,
data
.
BZQ
!
)
}
if
data
.
DayType
==
0
{
cell
.
rightBtn
.
isSelected
=
true
cell
.
leftBtn
.
isSelected
=
false
}
if
data
.
createDayStr
!=
nil
{
cell
.
timeLbl
.
text
=
data
.
createDayStr
}
let
report_sn
=
report_sn_arr
[
indexPath
.
row
]
if
report_sn
.
count
!=
0
{
cell
.
btn_title_lbl
.
text
=
"查看"
cell
.
bzqTf
.
text
=
""
cell
.
timeLbl
.
text
=
"请选择生产日期"
if
data
.
RKJG
!=
nil
{
cell
.
rkPriceTf
.
text
=
String
(
format
:
"%.2f"
,
data
.
RKJG
!
)
}
else
{
data
.
RKJG
=
Float
(
data
.
price
!
)
}
if
data
.
RKSL
!=
nil
{
cell
.
rkCountTf
.
text
=
String
(
format
:
"%d"
,
data
.
RKSL
!
)
}
else
{
cell
.
rkCountTf
.
text
=
"1"
data
.
RKSL
=
1
}
if
data
.
ZJ
!=
nil
{
cell
.
totalPriceTf
.
text
=
String
(
format
:
"%.2f"
,
data
.
ZJ
!
)
}
else
{
cell
.
totalPriceTf
.
text
=
data
.
price
!
}
if
data
.
BZQ
!=
nil
{
cell
.
bzqTf
.
text
=
String
(
format
:
"%d"
,
data
.
BZQ
!
)
}
if
data
.
DayType
==
0
{
cell
.
rightBtn
.
isSelected
=
true
cell
.
leftBtn
.
isSelected
=
false
}
if
data
.
createDayStr
!=
nil
{
cell
.
timeLbl
.
text
=
data
.
createDayStr
}
let
report_sn
=
report_sn_arr
[
indexPath
.
row
]
if
report_sn
.
count
!=
0
{
cell
.
btn_title_lbl
.
text
=
"查看"
}
cell
.
gys_name_lbl
.
text
=
"请选择供应商"
cell
.
gys_arrow
.
isHidden
=
false
cell
.
gys_right_margin
.
constant
=
10
if
isCaiGou_GYS_ven_id
!=
-
1
{
cell
.
gys_name_lbl
.
text
=
isCaiGou_GYS_name
cell
.
gys_arrow
.
isHidden
=
true
cell
.
gys_right_margin
.
constant
=
-
7
}
if
data
.
ven_list
?
.
count
==
1
{
let
mo
=
data
.
ven_list
?
.
first
cell
.
gys_name_lbl
.
text
=
mo
?
.
ven_name
cell
.
gys_arrow
.
isHidden
=
true
cell
.
gys_right_margin
.
constant
=
-
7
}
else
{
if
select_ven_list
.
count
>
0
{
if
select_ven_list
[
indexPath
.
row
]
!=
-
1
{
let
mo
=
data
.
ven_list
!
[
select_ven_list
[
indexPath
.
row
]]
cell
.
gys_name_lbl
.
text
=
mo
.
ven_name
cell
.
gys_arrow
.
isHidden
=
true
cell
.
gys_right_margin
.
constant
=
-
7
}
}
}
return
cell
}
cell
.
gys_name_lbl
.
text
=
"请选择供应商"
cell
.
gys_arrow
.
isHidden
=
false
cell
.
gys_right_margin
.
constant
=
10
if
isCaiGou_GYS_ven_id
!=
-
1
{
cell
.
gys_name_lbl
.
text
=
isCaiGou_GYS_name
cell
.
gys_arrow
.
isHidden
=
true
cell
.
gys_right_margin
.
constant
=
-
7
}
if
data
.
ven_list
?
.
count
==
1
{
let
mo
=
data
.
ven_list
?
.
first
cell
.
gys_name_lbl
.
text
=
mo
?
.
ven_name
cell
.
gys_arrow
.
isHidden
=
true
cell
.
gys_right_margin
.
constant
=
-
7
}
else
{
if
select_ven_list
.
count
>
0
{
if
select_ven_list
[
indexPath
.
row
]
!=
-
1
{
let
mo
=
data
.
ven_list
!
[
select_ven_list
[
indexPath
.
row
]]
cell
.
gys_name_lbl
.
text
=
mo
.
ven_name
cell
.
gys_arrow
.
isHidden
=
true
cell
.
gys_right_margin
.
constant
=
-
7
}
if
indexPath
.
row
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndLblCell"
)
as!
TitleAndLblCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
if
orderNumStr
.
count
==
0
{
cell
.
btmLine
.
isHidden
=
true
}
cell
.
contentLbl
.
text
=
holderArr
[
indexPath
.
row
]
cell
.
btmW
.
constant
=
0
cell
.
contentRight
.
constant
=
0
cell
.
imgRight
.
constant
=
15
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"#999999"
)
if
remark
.
count
!=
0
{
cell
.
contentLbl
.
text
=
remark
cell
.
btmW
.
constant
=
15
cell
.
contentRight
.
constant
=
5
cell
.
imgRight
.
constant
=
22
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
}
return
cell
}
return
cell
}
if
indexPath
.
row
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndLblCell"
)
as!
TitleAndLblCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"CRKBtnCell"
)
as!
CRKBtnCell
cell
.
tag
=
indexPath
.
row
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
if
orderNumStr
.
count
==
0
{
cell
.
btmLine
.
isHidden
=
true
}
cell
.
contentLbl
.
text
=
holderArr
[
indexPath
.
row
]
cell
.
btmW
.
constant
=
0
cell
.
contentRight
.
constant
=
0
cell
.
imgRight
.
constant
=
15
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"#999999"
)
if
remark
.
count
!=
0
{
cell
.
contentLbl
.
text
=
remark
cell
.
btmW
.
constant
=
15
cell
.
contentRight
.
constant
=
5
cell
.
imgRight
.
constant
=
22
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
cell
.
mustLbl
.
isHidden
=
true
cell
.
nameLeft
.
constant
=
0
cell
.
mustWidth
.
constant
=
0
if
indexPath
.
row
>
2
{
setCellUI
(
cell
:
cell
)
}
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"CRKBtnCell"
)
as!
CRKBtnCell
cell
.
tag
=
indexPath
.
row
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
holderArr
[
indexPath
.
row
]
cell
.
mustLbl
.
isHidden
=
true
cell
.
nameLeft
.
constant
=
0
cell
.
mustWidth
.
constant
=
0
if
indexPath
.
row
>
2
{
setCellUI
(
cell
:
cell
)
}
return
cell
}
//MARK: - 入库商品delegate
func
NewOnlyRKCellDateTypeSelect
(
sender
:
Int
,
cell
:
NewOnlyRKCell
)
{
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
View file @
cfa90891
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097.
2"
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
812
2"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
8093
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -15,6 +16,7 @@
<outlet
property=
"lgBtn"
destination=
"7Zg-yA-Y0g"
id=
"A4J-Mr-QLa"
/>
<outlet
property=
"lgBtnTitLbl"
destination=
"OXL-LJ-d3p"
id=
"65d-Rq-EEQ"
/>
<outlet
property=
"listView"
destination=
"XJ1-MD-tGD"
id=
"482-x4-9hR"
/>
<outlet
property=
"print_bg_view"
destination=
"5f0-ga-GI0"
id=
"kA6-1G-EVa"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
...
...
@@ -25,7 +27,7 @@
<subviews>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"laH-6h-Yuu"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
</view>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Y16-6N-pRK"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
...
...
@@ -37,7 +39,7 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"pRO-oN-e8Y"
/>
</constraints>
</view>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oHy-P4-Poe"
>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oHy-P4-Poe"
>
<rect
key=
"frame"
x=
"0.0"
y=
"1"
width=
"207"
height=
"48"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"提交申请"
>
...
...
@@ -47,7 +49,7 @@
<action
selector=
"actionClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"VCY-4t-Xz2"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qYI-4J-K6X"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qYI-4J-K6X"
>
<rect
key=
"frame"
x=
"207"
y=
"1"
width=
"207"
height=
"48"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"提交并新增"
>
...
...
@@ -58,7 +60,7 @@
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"qYI-4J-K6X"
secondAttribute=
"trailing"
id=
"13h-lO-ll4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"DkD-m0-Phd"
secondAttribute=
"trailing"
id=
"1tG-DS-xoV"
/>
...
...
@@ -76,7 +78,7 @@
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"-1"
estimatedSectionHeaderHeight=
"-1"
sectionFooterHeight=
"-1"
estimatedSectionFooterHeight=
"-1"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XJ1-MD-tGD"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"vbZ-uv-141"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"qQp-u4-XGg"
/>
...
...
@@ -84,7 +86,7 @@
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Zg-yA-Y0g"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
...
@@ -107,8 +109,47 @@
<color
key=
"textColor"
name=
"白色背景色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"5f0-ga-GI0"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xLD-bv-2iL"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"207"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"XMy-Mo-LNN"
/>
</constraints>
<state
key=
"normal"
title=
"入库"
>
<color
key=
"titleColor"
red=
"0.2784313725"
green=
"0.56078431370000004"
blue=
"0.89019607840000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</state>
<connections>
<action
selector=
"gmAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"FTM-km-BUT"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pk4-SM-eq1"
>
<rect
key=
"frame"
x=
"207"
y=
"0.0"
width=
"207"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"TPI-eB-Yek"
/>
</constraints>
<state
key=
"normal"
title=
"入库并打印批次号"
>
<color
key=
"titleColor"
red=
"0.2784313725"
green=
"0.56078431370000004"
blue=
"0.89019607840000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</state>
<connections>
<action
selector=
"gmAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"5RZ-HY-ns0"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"pk4-SM-eq1"
firstAttribute=
"width"
secondItem=
"xLD-bv-2iL"
secondAttribute=
"width"
id=
"51T-e1-bXU"
/>
<constraint
firstItem=
"pk4-SM-eq1"
firstAttribute=
"leading"
secondItem=
"xLD-bv-2iL"
secondAttribute=
"trailing"
id=
"7eW-lM-OkO"
/>
<constraint
firstItem=
"xLD-bv-2iL"
firstAttribute=
"top"
secondItem=
"5f0-ga-GI0"
secondAttribute=
"top"
id=
"PK0-n0-GCB"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"pk4-SM-eq1"
secondAttribute=
"trailing"
id=
"QtN-GW-mPk"
/>
<constraint
firstItem=
"xLD-bv-2iL"
firstAttribute=
"leading"
secondItem=
"5f0-ga-GI0"
secondAttribute=
"leading"
id=
"dPt-CJ-Qsg"
/>
<constraint
firstItem=
"pk4-SM-eq1"
firstAttribute=
"top"
secondItem=
"5f0-ga-GI0"
secondAttribute=
"top"
id=
"mt3-ap-B7Y"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"7Zg-yA-Y0g"
firstAttribute=
"top"
secondItem=
"OXL-LJ-d3p"
secondAttribute=
"top"
id=
"09o-Hf-lj3"
/>
<constraint
firstItem=
"laH-6h-Yuu"
firstAttribute=
"top"
secondItem=
"XJ1-MD-tGD"
secondAttribute=
"bottom"
id=
"1UQ-Cc-vub"
/>
...
...
@@ -118,21 +159,29 @@
<constraint
firstItem=
"XJ1-MD-tGD"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"HSx-yh-syw"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"OXL-LJ-d3p"
secondAttribute=
"trailing"
id=
"IV6-wI-ymn"
/>
<constraint
firstItem=
"laH-6h-Yuu"
firstAttribute=
"top"
secondItem=
"OXL-LJ-d3p"
secondAttribute=
"top"
id=
"OY1-0P-6C6"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"5f0-ga-GI0"
secondAttribute=
"trailing"
id=
"SAE-ZX-Lih"
/>
<constraint
firstItem=
"XJ1-MD-tGD"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"W1K-t6-EvY"
/>
<constraint
firstItem=
"5f0-ga-GI0"
firstAttribute=
"top"
secondItem=
"XJ1-MD-tGD"
secondAttribute=
"bottom"
id=
"d0L-ug-g5u"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"7Zg-yA-Y0g"
secondAttribute=
"trailing"
id=
"dhn-xO-C0U"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"Y16-6N-pRK"
secondAttribute=
"bottom"
id=
"eTV-0U-0BC"
/>
<constraint
firstItem=
"Y16-6N-pRK"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"efm-Dg-1AO"
/>
<constraint
firstItem=
"Y16-6N-pRK"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"ezs-hj-Cvt"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"laH-6h-Yuu"
secondAttribute=
"trailing"
id=
"me2-3U-Qfy"
/>
<constraint
firstItem=
"7Zg-yA-Y0g"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"qYt-NJ-nTa"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"5f0-ga-GI0"
secondAttribute=
"bottom"
id=
"rSF-57-qNU"
/>
<constraint
firstItem=
"laH-6h-Yuu"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"rfR-K6-okN"
/>
<constraint
firstItem=
"OXL-LJ-d3p"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"sy5-vh-IYH"
/>
<constraint
firstItem=
"5f0-ga-GI0"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"t95-6z-kYM"
/>
<constraint
firstItem=
"laH-6h-Yuu"
firstAttribute=
"top"
secondItem=
"Y16-6N-pRK"
secondAttribute=
"top"
id=
"u2F-5H-8I2"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"132.58928571428572"
/>
</view>
</objects>
<designables>
<designable
name=
"7Zg-yA-Y0g"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -149,5 +198,8 @@
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
cfa90891
...
...
@@ -56,8 +56,6 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
make
.
top
.
left
.
right
.
bottom
.
equalToSuperview
()
}
self
.
view
.
addSubview
(
title_Lbl
)
title_Lbl
.
text
=
"打印列表"
title_Lbl
.
backgroundColor
=
UIColor
.
white
...
...
@@ -297,10 +295,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
return
}
if
remark
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请填写备注"
),
delay
:
1.2
)
return
}
if
rkSelectArr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择出库商品"
),
delay
:
1.2
)
return
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.xib
View file @
cfa90891
<?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"
/>
<dependencies>
<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=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
View file @
cfa90891
...
...
@@ -13,7 +13,6 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
listView
.
mj_header
?
.
beginRefreshing
()
}
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
topView
:
UIView
!
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.xib
View file @
cfa90891
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
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"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
8093
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -31,7 +32,7 @@
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UK3-Bv-Spb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"PS6-OU-AOM"
/>
</constraints>
...
...
@@ -53,13 +54,13 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"Vqx-9l-fUr"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wlq-kf-RDX"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wlq-kf-RDX"
>
<rect
key=
"frame"
x=
"0.0"
y=
"1"
width=
"207"
height=
"42"
/>
<connections>
<action
selector=
"btnClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Qcm-hC-FPe"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GXD-3Z-7Lp"
>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GXD-3Z-7Lp"
>
<rect
key=
"frame"
x=
"207"
y=
"1"
width=
"207"
height=
"43"
/>
<connections>
<action
selector=
"btnClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"khN-ay-HlS"
/>
...
...
@@ -84,7 +85,7 @@
<rect
key=
"frame"
x=
"329"
y=
"20.5"
width=
"9"
height=
"4.5"
/>
</imageView>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"P8g-dp-qR6"
secondAttribute=
"trailing"
id=
"96g-7h-ikP"
/>
<constraint
firstItem=
"oLg-fW-ms4"
firstAttribute=
"centerY"
secondItem=
"GXD-3Z-7Lp"
secondAttribute=
"centerY"
id=
"9z0-do-0L9"
/>
...
...
@@ -113,7 +114,7 @@
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eHW-wc-LLa"
>
<rect
key=
"frame"
x=
"0.0"
y=
"132"
width=
"414"
height=
"681"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"Q3v-hm-IEl"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"ajh-yq-AKL"
/>
...
...
@@ -121,7 +122,7 @@
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NmT-QC-WB0"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
...
@@ -144,7 +145,7 @@
<color
key=
"textColor"
name=
"白色背景色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
hidden=
"YES"
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mYo-wM-YJR"
>
<button
hidden=
"YES"
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mYo-wM-YJR"
>
<rect
key=
"frame"
x=
"0.0"
y=
"132"
width=
"414"
height=
"800"
/>
<color
key=
"backgroundColor"
name=
"标题字颜色"
/>
<constraints>
...
...
@@ -177,6 +178,7 @@
</connections>
</tableView>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"t8X-ZG-zEi"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"0cL-lc-9CQ"
/>
...
...
@@ -206,10 +208,14 @@
<constraint
firstItem=
"t8X-ZG-zEi"
firstAttribute=
"top"
secondItem=
"hFZ-bh-SIG"
secondAttribute=
"bottom"
id=
"yF5-Jg-CP5"
/>
<constraint
firstItem=
"NmT-QC-WB0"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"yW9-el-GKK"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"131.91964285714286"
/>
</view>
</objects>
<designables>
<designable
name=
"NmT-QC-WB0"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<image
name=
"xiala"
width=
"9"
height=
"4.5"
/>
<namedColor
name=
"按钮渐变色上"
>
...
...
@@ -227,5 +233,8 @@
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.swift
0 → 100644
View file @
cfa90891
//
// Title_Btn_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/6/28.
// Copyright © 2021 junye lu. All rights reserved.
//
import
UIKit
class
Title_Btn_Cell
:
UITableViewCell
{
@IBOutlet
weak
var
title_lbl
:
UILabel
!
@IBOutlet
weak
var
add_adr_lbl
:
UILabel
!
@IBOutlet
weak
var
arrow_img
:
UIImageView
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/ViewController/客户管理/Title_Btn_Cell.xib
0 → 100644
View file @
cfa90891
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"18122"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"18093"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"Title_Btn_Cell"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<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"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinru"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZj-x0-0S4"
>
<rect
key=
"frame"
x=
"291"
y=
"15"
width=
"14"
height=
"14"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"14"
id=
"FlI-Pc-usN"
/>
<constraint
firstAttribute=
"height"
constant=
"14"
id=
"eOf-Cq-vXi"
/>
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新增地址"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ChW-vM-0fm"
>
<rect
key=
"frame"
x=
"253"
y=
"12.5"
width=
"52"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.2784313725"
green=
"0.56078431370000004"
blue=
"0.89019607840000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<constraints>
<constraint
firstItem=
"ChW-vM-0fm"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"7QX-nQ-kAe"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vZj-x0-0S4"
secondAttribute=
"trailing"
constant=
"15"
id=
"Kab-XU-YfB"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ChW-vM-0fm"
secondAttribute=
"trailing"
constant=
"15"
id=
"bxO-Tp-QDj"
/>
<constraint
firstItem=
"OWf-Av-nZU"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"gT8-9Y-QD7"
/>
<constraint
firstItem=
"OWf-Av-nZU"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"nuy-GE-GFq"
/>
<constraint
firstItem=
"vZj-x0-0S4"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"pIL-Mk-bpc"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"add_adr_lbl"
destination=
"ChW-vM-0fm"
id=
"M3G-yt-J7O"
/>
<outlet
property=
"arrow_img"
destination=
"vZj-x0-0S4"
id=
"GTM-i2-a2J"
/>
<outlet
property=
"title_lbl"
destination=
"OWf-Av-nZU"
id=
"ve1-PV-r6I"
/>
</connections>
<point
key=
"canvasLocation"
x=
"132"
y=
"90"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
</resources>
</document>
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
View file @
cfa90891
...
...
@@ -61,9 +61,9 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
self
.
delegate
?
.
XinZengAndBianJiKeHuViewControllerFinish
()
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
err
)
in
}
print
(
"add == "
,
dict
)
print
(
"add == "
,
dict
)
}
else
{
dict
[
"cus_id"
]
=
cus_id
print
(
"edit == "
,
dict
)
...
...
@@ -73,7 +73,7 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
self
.
delegate
?
.
XinZengAndBianJiKeHuViewControllerFinish
()
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
err
)
in
}
}
}
...
...
@@ -113,14 +113,14 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
HUD
.
flash
(
.
label
(
"请填写客户公司名称"
),
delay
:
1.2
)
return
}
// if bindKehu.count == 0 {
// HUD.flash(.label("请选择绑定用户"), delay: 1.2)
// return
// }
// if discount.count == 0 {
// HUD.flash(.label("请填写折扣数,没有折扣请输入0"), delay: 1.2)
// return
// }
// if bindKehu.count == 0 {
// HUD.flash(.label("请选择绑定用户"), delay: 1.2)
// return
// }
// if discount.count == 0 {
// HUD.flash(.label("请填写折扣数,没有折扣请输入0"), delay: 1.2)
// return
// }
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
...
...
@@ -136,8 +136,12 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
}
var
titleStr
:
String
?
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
titleArr
=
[
"客户名称"
,
"客户手机号码 "
,
"客户公司名称"
,
"绑定用户"
,
"客户类型"
,
"客户折扣"
,
"客户地址管理"
]
var
holderArr
=
[
"请输入客户名"
,
"请输入手机号码"
,
"请输入公司名称"
,
"搜索绑定"
,
"个人"
,
"敬请期待"
,
""
]
@IBOutlet
weak
var
bottomBtn
:
LGButton
!
@IBOutlet
weak
var
tbv_h
:
NSLayoutConstraint
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
top_margin
:
NSLayoutConstraint
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -150,19 +154,16 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
listView
.
separatorStyle
=
.
none
listView
.
isScrollEnabled
=
false
listView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
height
.
equalTo
(
294
)
make
.
right
.
left
.
equalTo
(
0
)
}
top_margin
.
constant
=
NavCGRect
.
height
-
49
tbv_h
.
constant
=
CGFloat
(
49*
titleArr
.
count
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"Title_Btn_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"Title_Btn_Cell"
)
}
let
titleArr
=
[
"客户名称:"
,
"客户手机号码: "
,
"客户公司名称:"
,
"绑定用户:"
,
"客户类型:"
,
"客户折扣:"
]
var
holderArr
=
[
"请输入客户名"
,
"请输入手机号码"
,
"请输入公司名称"
,
"搜索绑定"
,
"个人"
,
"敬请期待"
]
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
...
...
@@ -171,6 +172,9 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
return
titleArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
row
==
6
{
print
(
"abc == "
)
}
if
indexPath
.
row
==
3
{
let
vc
=
BingDingKeHuViewController
()
vc
.
delegate
=
self
...
...
@@ -206,7 +210,11 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
user_id
=
sender
.
user_id
!
listView
.
reloadData
()
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
row
==
3
||
indexPath
.
row
==
4
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
...
...
@@ -225,6 +233,13 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
return
cell
}
if
indexPath
.
row
==
6
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"Title_Btn_Cell"
)
as!
Title_Btn_Cell
cell
.
title_lbl
.
text
=
titleArr
[
indexPath
.
row
]
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
textTF
.
placeholder
=
holderArr
[
indexPath
.
row
]
...
...
@@ -249,7 +264,6 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
case
5
:
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
textTF
.
clearButtonMode
=
.
never
// cell.textTF.keyboardType = .numberPad
if
discount
!=
"0"
&&
discount
!=
"100"
{
cell
.
textTF
.
text
=
discount
}
...
...
@@ -258,6 +272,7 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
break
}
return
cell
// }
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
switch
textField
.
tag
{
...
...
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.xib
View file @
cfa90891
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
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"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
8093
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -13,6 +14,8 @@
<connections>
<outlet
property=
"bottomBtn"
destination=
"Hbo-FL-O2S"
id=
"gfj-Jr-rtv"
/>
<outlet
property=
"listView"
destination=
"lZh-U4-Q33"
id=
"thn-cy-mca"
/>
<outlet
property=
"tbv_h"
destination=
"3M5-ys-efs"
id=
"hmE-nD-OSc"
/>
<outlet
property=
"top_margin"
destination=
"JjJ-9B-OG4"
id=
"hiR-I3-JoP"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
...
...
@@ -23,7 +26,7 @@
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hbo-FL-O2S"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
...
@@ -54,8 +57,8 @@
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"lZh-U4-Q33"
>
<rect
key=
"frame"
x=
"0.0"
y=
"4
4
"
width=
"414"
height=
"300"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"4
9
"
width=
"414"
height=
"300"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"300"
id=
"3M5-ys-efs"
/>
</constraints>
...
...
@@ -65,7 +68,7 @@
</connections>
</tableView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"客户折扣仅在绑定用户后,格利食品网pc渠道中,对售价和阶梯价可用"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TLb-MK-lV8"
>
<rect
key=
"frame"
x=
"0.0"
y=
"35
4
"
width=
"414"
height=
"15"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"35
9
"
width=
"414"
height=
"15"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"ceX-G0-MCg"
/>
</constraints>
...
...
@@ -74,12 +77,13 @@
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"Hbo-FL-O2S"
secondAttribute=
"bottom"
id=
"5oV-Hf-M6B"
/>
<constraint
firstItem=
"lZh-U4-Q33"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"FEd-PC-7UJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Hbo-FL-O2S"
secondAttribute=
"trailing"
id=
"IhC-ma-C4H"
/>
<constraint
firstItem=
"lZh-U4-Q33"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"JjJ-9B-OG4"
/>
<constraint
firstItem=
"lZh-U4-Q33"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
constant=
"5"
id=
"JjJ-9B-OG4"
/>
<constraint
firstItem=
"TLb-MK-lV8"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"KoC-4f-w2i"
/>
<constraint
firstItem=
"jMG-ga-6QQ"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"LiY-Uk-c5j"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"jMG-ga-6QQ"
secondAttribute=
"trailing"
id=
"NXm-pV-gSC"
/>
...
...
@@ -90,10 +94,14 @@
<constraint
firstItem=
"TLb-MK-lV8"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"j5K-cP-pfJ"
/>
<constraint
firstItem=
"Hbo-FL-O2S"
firstAttribute=
"top"
secondItem=
"jMG-ga-6QQ"
secondAttribute=
"top"
id=
"sih-ht-ww7"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
</view>
</objects>
<designables>
<designable
name=
"Hbo-FL-O2S"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -107,5 +115,8 @@
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/溯源/Print_Gprinter_View.swift
View file @
cfa90891
...
...
@@ -40,7 +40,9 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
cell
.
tag
=
indexPath
.
row
let
model
=
rkSelectArr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
goods_name
cell
.
piciArr
=
piCiArr
!
[
indexPath
.
row
]
if
piCiArr
!.
count
>
0
{
cell
.
piciArr
=
piCiArr
!
[
indexPath
.
row
]
}
cell
.
btm_line
.
isHidden
=
false
if
indexPath
.
row
==
rkSelectArr
.
count
-
1
{
cell
.
btm_line
.
isHidden
=
true
...
...
@@ -49,8 +51,11 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
pici
=
piCiArr
!
[
indexPath
.
row
]
return
CGFloat
(
103
+
67
*
pici
.
count
)
if
piCiArr
!.
count
>
0
{
let
pici
=
piCiArr
!
[
indexPath
.
row
]
return
CGFloat
(
103
+
67
*
pici
.
count
)
}
return
170
}
var
rkSelectArr
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]{
didSet
{
...
...
@@ -86,7 +91,7 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
}
temp_print_arr
.
append
(
arr2
)
}
var
print_data
:
Array
<
Dictionary
<
String
,
Any
>>
=
[]
for
item
in
temp_rk_arr
{
let
model
=
rkSelectArr
[
item
]
...
...
@@ -94,8 +99,10 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
for
i
in
select_arr
{
dict
[
"goods_name"
]
=
model
.
goods_name
let
p
=
piCiArr
!
[
item
][
i
]
dict
[
"goods_data"
]
=
p
if
piCiArr
!.
count
>
0
{
let
p
=
piCiArr
!
[
item
][
i
]
dict
[
"goods_data"
]
=
p
}
let
n
=
print_num_arr
[
item
][
i
]
dict
[
"print_counts"
]
=
n
dict
[
"spec_str"
]
=
model
.
spec_str
...
...
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