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
76024653
Commit
76024653
authored
Mar 10, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11112
parent
5f11aaf3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
229 additions
and
138 deletions
+229
-138
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+13
-4
GeliBusinessPlatform/View/AlertView/GeliAltetCodeView.swift
GeliBusinessPlatform/View/AlertView/GeliAltetCodeView.swift
+3
-2
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+4
-17
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+110
-52
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
...Platform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
+1
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+5
-3
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
...iewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
+14
-5
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController1.swift
...latform/ViewController/入库/PiCiXuanZeViewController1.swift
+30
-22
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+3
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+46
-32
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
76024653
No preview for this file type
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
76024653
...
...
@@ -203,7 +203,14 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
deSelectArr
.
count
>
1
{
return
}
if
deSelectArr
.
count
==
1
{
if
indexPath
.
row
==
deSelectArr
.
first
{
return
}
}
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
&&
isOnlySelectKuWei
==
false
{
selectNum
=
indexPath
.
row
selectTbv
.
reloadData
()
...
...
@@ -296,10 +303,12 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
}
if
deSelectArr
.
count
>
0
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
selectBtn
.
isSelected
=
true
if
deSelectArr
.
count
>
1
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
selectBtn
.
isSelected
=
true
}
deSelectArr
.
forEach
{
(
i
)
in
if
i
==
indexPath
.
row
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"#999999"
)
...
...
GeliBusinessPlatform/View/AlertView/GeliAltetCodeView.swift
View file @
76024653
...
...
@@ -12,8 +12,9 @@ import Foundation
class
GeliAltetCodeView
:
UIView
{
var
saveImgID
:
Int
?
=
nil
{
didSet
{
saveImg
=
createQRForString
(
qrString
:
"https://cms.gelifood.com/market/src/views/Order/codeDetail.html?order_id="
+
StringByInt
(
number
:
saveImgID
!
),
qrImageName
:
""
)
// saveImg = createQRForString(qrString: "https://cms.gelifood.com/market/src/views/Order/codeDetail.html?order_id=" + StringByInt(number: saveImgID!),qrImageName: "")
saveImg
=
createQRForString
(
qrString
:
"https://c.gelifood.com/market/src/views/Order/codeDetail.html?order_id="
+
StringByInt
(
number
:
saveImgID
!
),
qrImageName
:
""
)
iconImgV
.
image
=
saveImg
}
}
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
View file @
76024653
...
...
@@ -168,13 +168,11 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
var
goods_banner
:
Array
<
String
>
?
=
[
""
,
""
,
""
,
""
,
""
]
//商品副图,多张,最多5张,使用一维数组转json格式
func
uploadImg
(
imge
:
UIImage
,
isOriginal
:
Bool
,
tag
:
Int
){
let
upLoadImg
=
imge
as!
UIImage
let
upLoadImg
=
imge
HUD
.
show
(
.
progress
)
saveFile
(
image
:
upLoadImg
,
[
"user_token"
:
UserToken
as
Any
,
"path"
:
"category"
as
Any
],
success
:
{
(
data
)
in
let
dataM
=
data
as!
SaveFileModel
if
dataM
.
code
==
1
{
print
(
"图片上传成功
\(
dataM
.
data
?
.
url
)
"
)
self
.
goods_banner
?
.
insert
((
dataM
.
data
?
.
url
!
)
!
,
at
:
tag
)
self
.
goods_banner
?
.
remove
(
at
:
tag
+
1
)
self
.
maxFiveImgsArr
.
removeAll
()
...
...
@@ -187,7 +185,6 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
self
.
report_view
?
.
layoutIfNeeded
()
HUD
.
hide
()
}
})
{
(
error
)
in
print
(
"图片上传失败
\(
error
)
"
)
}
...
...
@@ -196,6 +193,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
func
GYSGLViewControllerFinish
()
{
//此处无用
}
var
ven_id
=
-
1
func
GYSListViewControllerGetGYS
(
sender
:
VendorListDataModel
)
{
holderArr
.
insert
(
sender
.
ven_name
!
,
at
:
3
)
...
...
@@ -233,14 +231,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
HUD
.
flash
(
.
label
(
"请选择入库类型"
),
delay
:
1.2
)
return
}
// if holderArr[3] == "请选择供应商" {
// HUD.flash(.label("请选择供应商"), delay: 1.2)
// return
// }
// if holderArr[4] == "请选择商品类型" {
// HUD.flash(.label("请选择商品类型"), delay: 1.2)
// return
// }
if
rkSelectArr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择商品"
),
delay
:
1.2
)
return
...
...
@@ -313,7 +304,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
"i_type"
:
typeSelect
+
8
as
Any
,
"apply_remark"
:
remark
as
Any
,
"po_id"
:
po_id
as
Any
,
"ven_id"
:
ven_id
as
Any
,
//待处理
"ven_id"
:
ven_id
as
Any
,
"g_type"
:
selectTypeSelect
+
1
as
Any
,
"goods_info"
:
goods_info
as
Any
]
...
...
@@ -327,8 +318,6 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
}
else
{
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
for
i
in
0
..<
rkSelectArr
.
count
{
let
model
=
rkSelectArr
[
i
]
...
...
@@ -382,9 +371,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
})
{
(
error
)
in
}
}
}
var
gmNumber
:
Int
?
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
76024653
...
...
@@ -26,23 +26,23 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
func
Print_Gprinter_View_Print
(
data
:
Array
<
Dictionary
<
String
,
Any
>>
)
{
print
(
"打印"
)
// let dict = [
// "user_token":UserToken as Any,
// "o_type":typeSelect! + 1 as Any,
// "audit_remark":remark as Any,
// "goods_info":dataChangeString(sender: goodsInfoArr) as Any
// ]
// HUD.show(.progress)
// GoodsOutput(dict, success: { (data) in
// HUD.hide()
// HUD.flash(.labeledSubSuccess(subtitle: "出库成功"), delay: 1.2)
// self.navigationController?.popViewController(animated: true)
// }) { (error) in
//
// }
// let dict = [
// "user_token":UserToken as Any,
// "o_type":typeSelect! + 1 as Any,
// "audit_remark":remark as Any,
// "goods_info":dataChangeString(sender: goodsInfoArr) as Any
// ]
// HUD.show(.progress)
// GoodsOutput(dict, success: { (data) in
// HUD.hide()
// HUD.flash(.labeledSubSuccess(subtitle: "出库成功"), delay: 1.2)
// self.navigationController?.popViewController(animated: true)
// }) { (error) in
//
// }
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
...
@@ -66,8 +66,8 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
if
holderArr
.
first
==
"请选择出库类型"
{
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
if
typeSelect
==
nil
{
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
return
}
if
remark
.
count
==
0
{
...
...
@@ -78,53 +78,111 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
HUD
.
flash
(
.
label
(
"请选择出库商品"
),
delay
:
1.2
)
return
}
rkSelectArr
.
forEach
{
(
model
)
in
if
model
.
chuKuLiang
==
nil
{
HUD
.
flash
(
.
label
(
"请填写出库数量"
),
delay
:
1.2
)
return
if
isGm
{
goodsInfoArr
.
removeAll
()
for
i
in
0
..<
rkSelectArr
.
count
{
let
item
=
rkSelectArr
[
i
]
var
count
=
0
let
pici
=
piCiArr
!
[
i
]
if
pici
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择出库商品批次"
),
delay
:
1.2
)
return
}
for
data
in
pici
{
count
+=
data
.
chuHuoLiang
!
}
var
batchInfo
:
Array
<
Any
>
=
[]
piCiArr
!.
forEach
{
(
batchArr
)
in
batchArr
.
forEach
{
(
model
)
in
let
batch
=
[
"w_id"
:
model
.
w_id
as
Any
,
"p_id"
:
model
.
p_id
as
Any
,
"number"
:
model
.
chuHuoLiang
as
Any
,
"production_data"
:
model
.
production_data
as
Any
,
"shelf_life"
:
model
.
shelf_life
as
Any
,
"valid_date"
:
model
.
valid_date
as
Any
,
"batch_id"
:
model
.
batch_id
as
Any
,
"report_id"
:
model
.
report_id
as
Any
,
"ven_id"
:
model
.
ven_id
as
Any
]
batchInfo
.
append
(
batch
)
}
}
let
goods
=
[
"goods_id"
:
item
.
goods_id
as
Any
,
"goods_name"
:
item
.
goods_name
as
Any
,
"goods_spec"
:
item
.
spec_str
as
Any
,
"sku_id"
:
item
.
sku_id
as
Any
,
"number"
:
count
as
Any
,
"batch_info"
:
batchInfo
as
Any
,
]
goodsInfoArr
.
append
(
goods
)
}
}
var
goodsInfoArr
:
Array
<
Any
>
=
[]
rkSelectArr
.
forEach
{
(
model
)
in
let
goods
=
[
"goods_id"
:
model
.
goods_id
as
Any
,
"goods_name"
:
model
.
goods_name
as
Any
,
"goods_spec"
:
model
.
spec_str
as
Any
,
"sku_id"
:
model
.
sku_id
as
Any
,
"number"
:
model
.
chuKuLiang
as
Any
,
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"o_type"
:
typeSelect
!
+
1
as
Any
,
"audit_remark"
:
remark
as
Any
,
"goods_info"
:
dataChangeString
(
sender
:
goodsInfoArr
)
as
Any
]
goodsInfoArr
.
append
(
goods
)
}
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"o_type"
:
typeSelect
!
+
1
as
Any
,
"audit_remark"
:
remark
as
Any
,
"goods_info"
:
dataChangeString
(
sender
:
goodsInfoArr
)
as
Any
]
GoodsOutputApply
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"申请成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
HUD
.
show
(
.
progress
)
GoodsOutput
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"出库成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
else
{
rkSelectArr
.
forEach
{
(
model
)
in
if
model
.
chuKuLiang
==
nil
{
HUD
.
flash
(
.
label
(
"请填写出库数量"
),
delay
:
1.2
)
return
}
}
var
goodsInfoArr
:
Array
<
Any
>
=
[]
rkSelectArr
.
forEach
{
(
model
)
in
let
goods
=
[
"goods_id"
:
model
.
goods_id
as
Any
,
"goods_name"
:
model
.
goods_name
as
Any
,
"goods_spec"
:
model
.
spec_str
as
Any
,
"sku_id"
:
model
.
sku_id
as
Any
,
"number"
:
model
.
chuKuLiang
as
Any
,
]
goodsInfoArr
.
append
(
goods
)
}
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"o_type"
:
typeSelect
!
+
1
as
Any
,
"audit_remark"
:
remark
as
Any
,
"goods_info"
:
dataChangeString
(
sender
:
goodsInfoArr
)
as
Any
]
GoodsOutputApply
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"申请成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
}
var
remark
=
""
func
sureGeliAlertTextViewAction
(
sender
:
String
)
{
remark
=
sender
holderArr
.
insert
(
remark
,
at
:
holderArr
.
count
-
1
)
holderArr
.
remove
(
at
:
holderArr
.
count
-
1
)
listView
.
reloadData
()
}
func
CKNonGmCellInputCount
(
sender
:
String
,
cell
:
CKNonGmCell
)
{
//输入数据
let
num
=
sender
as
NSString
...
...
@@ -141,7 +199,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
var
goodsInfoArr
:
Array
<
Any
>
=
[]
@IBOutlet
weak
var
gm_view
:
UIView
!
@IBAction
func
ck_action
(
_
sender
:
UIButton
)
{
if
isGm
{
if
typeSelect
==
nil
{
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
View file @
76024653
...
...
@@ -167,7 +167,7 @@
<action
selector=
"check_action:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"WR3-RW-mnT"
/>
</connections>
</button>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"red_arrow"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2p2-7L-Hi7"
>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"red_arrow"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2p2-7L-Hi7"
>
<rect
key=
"frame"
x=
"327"
y=
"98"
width=
"3"
height=
"7"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"3"
id=
"Dwj-HF-JHh"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
76024653
...
...
@@ -199,6 +199,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
xiao_ji_lbl
.
text
=
"
\(
totalP
)
"
if
orderType
==
1
{
cell
.
botton_height
.
constant
=
40
cell
.
dj_wk_top
.
constant
=
10
cell
.
dj_wk_height
.
constant
=
40
cell
.
dj_wk_view
.
isHidden
=
false
...
...
@@ -207,9 +208,8 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
xiao_ji_lbl
.
isHidden
=
false
cell
.
ding_jin_lbl
.
text
=
"定金:¥"
+
djTFstr
cell
.
wei_kuan_lbl
.
text
=
"尾款:¥"
+
wkTFstr
}
else
{
// cell.totalPriceLbl.text = "¥\(priceStr.floatValue * countStr.floatValue)"
cell
.
botton_height
.
constant
=
10
cell
.
xiao_ji_lbl
.
isHidden
=
true
cell
.
dj_wk_top
.
constant
=
0
cell
.
dj_wk_height
.
constant
=
0
...
...
@@ -699,9 +699,11 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
if
orderType
==
1
{
print
(
"abc"
)
return
340
}
return
300
print
(
"bcd"
)
return
260
}
if
indexPath
.
section
==
2
{
//新增预售
if
orderType
==
1
{
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
View file @
76024653
<?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
7701
"
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
7703
"
/>
<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>
...
...
@@ -23,7 +24,7 @@
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"J3Y-QF-SSQ"
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=
"按钮渐变色上"
/>
...
...
@@ -55,13 +56,14 @@
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<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=
"615-RE-zVt"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"wfr-0B-yUN"
/>
</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=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"7kx-vF-yfW"
secondAttribute=
"trailing"
id=
"9bU-q5-Mfs"
/>
...
...
@@ -76,10 +78,14 @@
<constraint
firstAttribute=
"trailing"
secondItem=
"J3Y-QF-SSQ"
secondAttribute=
"trailing"
id=
"fNo-WJ-CY3"
/>
<constraint
firstItem=
"Tww-Di-Bao"
firstAttribute=
"bottom"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"bottom"
id=
"z6v-Ej-Xd1"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
</view>
</objects>
<designables>
<designable
name=
"J3Y-QF-SSQ"
>
<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"
/>
...
...
@@ -90,5 +96,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/入库/PiCiXuanZeViewController1.swift
View file @
76024653
...
...
@@ -36,14 +36,14 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
recordArr
.
append
(
data
)
}
totalCount
=
0
//
totalCount = 0
for
item
in
recordArr
{
if
item
.
chuHuoLiang
!=
nil
{
totalCount
+=
item
.
chuHuoLiang
!
}
}
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
//
for item in recordArr{
//
if item.chuHuoLiang != nil {
//
totalCount += item.chuHuoLiang!
//
}
//
}
//
count_Lbl.text = StringByInt(number: totalCount)
}
...
...
@@ -60,15 +60,15 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
recordArr
.
append
(
data
)
}
print
(
recordArr
.
count
)
totalCount
=
0
for
item
in
selectArr
{
let
data
=
dataArray
[
item
]
if
data
.
chuHuoLiang
!=
nil
{
print
(
data
.
chuHuoLiang
)
totalCount
+=
data
.
chuHuoLiang
!
}
}
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
//
totalCount = 0
//
for item in selectArr{
//
let data = dataArray[item]
//
if data.chuHuoLiang != nil {
//
print(data.chuHuoLiang)
//
totalCount += data.chuHuoLiang!
//
}
//
}
//
count_Lbl.text = StringByInt(number: totalCount)
listView
.
reloadData
()
}
...
...
@@ -103,15 +103,23 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
return
}
}
var
temp
=
0
for
model
in
dataArray
{
for
item
in
recordArr
{
if
model
.
batch_id
==
item
.
batch_id
{
if
model
.
chuHuoLiang
!=
nil
{
item
.
chuHuoLiang
=
model
.
chuHuoLiang
temp
+=
item
.
chuHuoLiang
!
}
}
}
}
if
temp
>
totalCount
{
HUD
.
flash
(
.
label
(
"超出下单数量"
),
delay
:
1.2
)
return
}
delegate
?
.
PiCiXuanZeViewControllerPiCiSelect
(
data
:
recordArr
,
p_id
:
tag
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
...
...
@@ -208,12 +216,12 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
}
totalCount
=
0
if
recordArr
.
count
>
0
{
for
item
in
recordArr
{
totalCount
+=
item
.
chuHuoLiang
!
}
}
//
totalCount = 0
//
if recordArr.count > 0 {
//
for item in recordArr{
//
totalCount += item.chuHuoLiang!
//
}
//
}
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
}
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
76024653
...
...
@@ -240,6 +240,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
break
case
1
:
//待付款
btnStr
=
[
"取消订单"
]
if
rowModel
.
from
==
3
||
rowModel
.
from
==
5
{
btnStr
=
[
"取消订单"
,
"确认收款"
]
}
if
rowModel
.
shipping_status
==
1
&&
rowModel
.
pay_status
==
0
{
btnStr
=
[
"退货"
]
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
76024653
...
...
@@ -22,19 +22,23 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
func
DaiKeXiaDanGouWuCell_select_pi_ci
(
cell
:
DaiKeXiaDanGouWuCell
)
{
if
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
6
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
3
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
5
){
let
model
=
self
.
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
let
vc
=
PiCiXuanZeViewController1
()
vc
.
sku_id
=
Int
((
model
?
.
sku_id
)
!
)
vc
.
delegate
=
self
vc
.
tag
=
cell
.
tag
if
piCiArr
!.
count
>
0
{
let
arr
=
piCiArr
!
[
cell
.
tag
]
vc
.
recordArr
=
arr
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// if (self.dataMdoel?.order_res?.order_status == 6 && self.dataMdoel?.order_res?.from != 3 && self.dataMdoel?.order_res?.from != 5){
if
isYuShou
{
return
}
let
model
=
self
.
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
let
vc
=
PiCiXuanZeViewController1
()
vc
.
sku_id
=
Int
((
model
?
.
sku_id
)
!
)
vc
.
delegate
=
self
vc
.
tag
=
cell
.
tag
if
piCiArr
!.
count
>
0
{
let
arr
=
piCiArr
!
[
cell
.
tag
]
vc
.
recordArr
=
arr
}
vc
.
totalCount
=
(
model
?
.
cart_number
)
!
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// }
}
var
sufficient_code
=
-
1
...
...
@@ -520,26 +524,35 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//MARK:--商品cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DaiKeXiaDanGouWuCell"
)
as!
DaiKeXiaDanGouWuCell
if
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
1
||
isYuShou
{
cell
.
non_add_icon
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
already_add_icon
.
isHidden
=
true
cell
.
status_text_lbl
.
isHidden
=
true
}
if
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
6
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
3
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
5
)
{
let
arr
=
piCiArr
!
[
indexPath
.
row
]
if
arr
.
count
>
0
{
cell
.
non_add_icon
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
right_margin
.
constant
=
5
cell
.
text_line
.
isHidden
=
true
cell
.
already_add_icon
.
isHidden
=
fals
e
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"多选按钮字体颜色"
)
}
else
{
cell
.
non_add_icon
.
isHidden
=
false
cell
.
already_add_icon
.
isHidden
=
tru
e
cell
.
text_line
.
isHidden
=
fals
e
cell
.
status_text_lbl
.
isHidden
=
false
cell
.
right_margin
.
constant
=
-
5
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"#F57575"
)
}
// if (self.dataMdoel?.order_res?.order_status == 6 && self.dataMdoel?.order_res?.from != 3 && self.dataMdoel?.order_res?.from != 5)
{
let
arr
=
piCiArr
!
[
indexPath
.
row
]
if
arr
.
count
>
0
{
cell
.
non_add_icon
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
right_margin
.
constant
=
5
cell
.
text_line
.
isHidden
=
tru
e
cell
.
already_add_icon
.
isHidden
=
false
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"多选按钮字体颜色"
)
}
else
{
cell
.
non_add_icon
.
isHidden
=
fals
e
cell
.
already_add_icon
.
isHidden
=
tru
e
cell
.
text_line
.
isHidden
=
false
cell
.
status_text_lbl
.
isHidden
=
false
cell
.
right_margin
.
constant
=
-
5
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"#F57575"
)
}
// }
cell
.
delegate
=
self
cell
.
isDetail
=
true
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
...
...
@@ -1409,6 +1422,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
case
1
:
// str = "已确定" "待付款"
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"取消订单"
]
if
self
.
dataMdoel
?
.
order_res
?
.
from
==
3
||
self
.
dataMdoel
?
.
order_res
?
.
from
==
5
{
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"确认收款"
,
"取消订单"
]
}
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"退货"
]
}
...
...
@@ -2003,11 +2019,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
delegate
?
.
refishingOrderDchange
()
self
.
loadData
()
})
{
(
error
)
in
}
}
}
}
}
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