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
5f11aaf3
Commit
5f11aaf3
authored
Mar 09, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123123131314dsdsfgsdfg
parent
0f2d6d0b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
272 additions
and
24 deletions
+272
-24
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+16
-8
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/LogisticalSelectView/LogisticalSelectView.swift
...form/View/LogisticalSelectView/LogisticalSelectView.swift
+8
-6
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController1.swift
...latform/ViewController/入库/PiCiXuanZeViewController1.swift
+3
-3
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController1.xib
...sPlatform/ViewController/入库/PiCiXuanZeViewController1.xib
+1
-1
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
+1
-1
GeliBusinessPlatform/ViewController/批次库新Cell/PiCiXuanZeViewController.swift
...rm/ViewController/批次库新Cell/PiCiXuanZeViewController.swift
+238
-0
GeliBusinessPlatform/ViewController/批次库新Cell/PiCiXuanZeViewController.xib
...form/ViewController/批次库新Cell/PiCiXuanZeViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+5
-3
Pods/Alamofire/Source/ResponseSerialization.swift
Pods/Alamofire/Source/ResponseSerialization.swift
+0
-2
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
5f11aaf3
...
...
@@ -170,6 +170,8 @@
E042F74124528CD500CDFA12
/* TitleAndOnlyBtnCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E042F73F24528CD500CDFA12
/* TitleAndOnlyBtnCell.xib */
;
};
E042F74324529B7B00CDFA12
/* JiTuoWuXinXiView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E042F74224529B7B00CDFA12
/* JiTuoWuXinXiView.swift */
;
};
E042F74524529B8500CDFA12
/* JiTuoWuXinXiView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E042F74424529B8500CDFA12
/* JiTuoWuXinXiView.xib */
;
};
E04BA7F225F74E3B00B62F37
/* PiCiXuanZeViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E04BA7F025F74E3A00B62F37
/* PiCiXuanZeViewController.xib */
;
};
E04BA7F325F74E3B00B62F37
/* PiCiXuanZeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E04BA7F125F74E3B00B62F37
/* PiCiXuanZeViewController.swift */
;
};
E0516F772448003D00E373CE
/* PayViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0516F752448003D00E373CE
/* PayViewController.swift */
;
};
E0516F782448003D00E373CE
/* PayViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0516F762448003D00E373CE
/* PayViewController.xib */
;
};
E0516F7F244806C500E373CE
/* MsgCenterViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0516F7E244806C500E373CE
/* MsgCenterViewController.swift */
;
};
...
...
@@ -187,8 +189,8 @@
E06524F624580BB600CA22E2
/* BaoZhiQiCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524F424580BB600CA22E2
/* BaoZhiQiCell.xib */
;
};
E06524F924581A7900CA22E2
/* ChuKuCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524F724581A7900CA22E2
/* ChuKuCell.swift */
;
};
E06524FA24581A7900CA22E2
/* ChuKuCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524F824581A7900CA22E2
/* ChuKuCell.xib */
;
};
E06524FD24581BD900CA22E2
/* PiCiXuanZeViewController
.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524FB24581BD900CA22E2
/* PiCiXuanZeViewController
.swift */
;
};
E06524FE24581BD900CA22E2
/* PiCiXuanZeViewController
.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524FC24581BD900CA22E2
/* PiCiXuanZeViewController
.xib */
;
};
E06524FD24581BD900CA22E2
/* PiCiXuanZeViewController
1.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524FB24581BD900CA22E2
/* PiCiXuanZeViewController1
.swift */
;
};
E06524FE24581BD900CA22E2
/* PiCiXuanZeViewController
1.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06524FC24581BD900CA22E2
/* PiCiXuanZeViewController1
.xib */
;
};
E06B1AEC25B52725002F3C65
/* PrintViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06B1AEA25B52725002F3C65
/* PrintViewController.swift */
;
};
E06B1AED25B52725002F3C65
/* PrintViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06B1AEB25B52725002F3C65
/* PrintViewController.xib */
;
};
E06B1AF625B52AD3002F3C65
/* PrintListMgVc.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E06B1AF425B52AD3002F3C65
/* PrintListMgVc.swift */
;
};
...
...
@@ -904,6 +906,8 @@
E042F73F24528CD500CDFA12
/* TitleAndOnlyBtnCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndOnlyBtnCell.xib
;
sourceTree
=
"<group>"
;
};
E042F74224529B7B00CDFA12
/* JiTuoWuXinXiView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
JiTuoWuXinXiView.swift
;
sourceTree
=
"<group>"
;
};
E042F74424529B8500CDFA12
/* JiTuoWuXinXiView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
JiTuoWuXinXiView.xib
;
sourceTree
=
"<group>"
;
};
E04BA7F025F74E3A00B62F37
/* PiCiXuanZeViewController.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
PiCiXuanZeViewController.xib
;
sourceTree
=
"<group>"
;
};
E04BA7F125F74E3B00B62F37
/* PiCiXuanZeViewController.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PiCiXuanZeViewController.swift
;
sourceTree
=
"<group>"
;
};
E0516F752448003D00E373CE
/* PayViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PayViewController.swift
;
sourceTree
=
"<group>"
;
};
E0516F762448003D00E373CE
/* PayViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PayViewController.xib
;
sourceTree
=
"<group>"
;
};
E0516F7E244806C500E373CE
/* MsgCenterViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MsgCenterViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -921,8 +925,8 @@
E06524F424580BB600CA22E2
/* BaoZhiQiCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BaoZhiQiCell.xib
;
sourceTree
=
"<group>"
;
};
E06524F724581A7900CA22E2
/* ChuKuCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChuKuCell.swift
;
sourceTree
=
"<group>"
;
};
E06524F824581A7900CA22E2
/* ChuKuCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ChuKuCell.xib
;
sourceTree
=
"<group>"
;
};
E06524FB24581BD900CA22E2
/* PiCiXuanZeViewController
.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PiCiXuanZeViewController
.swift
;
sourceTree
=
"<group>"
;
};
E06524FC24581BD900CA22E2
/* PiCiXuanZeViewController
.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PiCiXuanZeViewController
.xib
;
sourceTree
=
"<group>"
;
};
E06524FB24581BD900CA22E2
/* PiCiXuanZeViewController
1.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PiCiXuanZeViewController1
.swift
;
sourceTree
=
"<group>"
;
};
E06524FC24581BD900CA22E2
/* PiCiXuanZeViewController
1.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PiCiXuanZeViewController1
.xib
;
sourceTree
=
"<group>"
;
};
E06B1AEA25B52725002F3C65
/* PrintViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PrintViewController.swift
;
sourceTree
=
"<group>"
;
};
E06B1AEB25B52725002F3C65
/* PrintViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PrintViewController.xib
;
sourceTree
=
"<group>"
;
};
E06B1AF425B52AD3002F3C65
/* PrintListMgVc.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PrintListMgVc.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2029,8 +2033,8 @@
E06524F424580BB600CA22E2
/* BaoZhiQiCell.xib */
,
E06524F724581A7900CA22E2
/* ChuKuCell.swift */
,
E06524F824581A7900CA22E2
/* ChuKuCell.xib */
,
E06524FB24581BD900CA22E2
/* PiCiXuanZeViewController.swift */
,
E06524FC24581BD900CA22E2
/* PiCiXuanZeViewController.xib */
,
E06524FB24581BD900CA22E2
/* PiCiXuanZeViewController
1
.swift */
,
E06524FC24581BD900CA22E2
/* PiCiXuanZeViewController
1
.xib */
,
E03549A6245820C2008BD021
/* PiCiXuanZeCell.swift */
,
E03549A7245820C2008BD021
/* PiCiXuanZeCell.xib */
,
E00CB9FF24820CF000701D9D
/* CRKSumCell.swift */
,
...
...
@@ -2833,6 +2837,8 @@
E0F83BA625F7082E00D31672
/* 批次库新Cell */
=
{
isa
=
PBXGroup
;
children
=
(
E04BA7F125F74E3B00B62F37
/* PiCiXuanZeViewController.swift */
,
E04BA7F025F74E3A00B62F37
/* PiCiXuanZeViewController.xib */
,
E0F83BA725F7085400D31672
/* NewPiCiCell.swift */
,
E0F83BA825F7085400D31672
/* NewPiCiCell.xib */
,
);
...
...
@@ -3826,6 +3832,7 @@
E027E37125B5693A00CBCA65
/* print_bottom_cell.xib in Resources */
,
E0272A8D259C29DB008142BB
/* FXYGL_Cell.xib in Resources */
,
E08A7AE124652E2C00F934F2
/* BingDingKeHuViewController.xib in Resources */
,
E04BA7F225F74E3B00B62F37
/* PiCiXuanZeViewController.xib in Resources */
,
F9A1D4AB255B7AF70018DA8A
/* RetailManageHeaderView.xib in Resources */
,
E00CBA0224820CF000701D9D
/* CRKSumCell.xib in Resources */
,
E0206335246CE45A007A40C4
/* HeaderOnlyTitleView.xib in Resources */
,
...
...
@@ -3858,7 +3865,7 @@
E06B1AF725B52AD3002F3C65
/* PrintListMgVc.xib in Resources */
,
E0DDCB19244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib in Resources */
,
E00E48BF2457BAC700F16545
/* XuanZeShangPinCell.xib in Resources */
,
E06524FE24581BD900CA22E2
/* PiCiXuanZeViewController.xib in Resources */
,
E06524FE24581BD900CA22E2
/* PiCiXuanZeViewController
1
.xib in Resources */
,
E0AA3A92248F626400CBFC27
/* XinCaiGouViewController.xib in Resources */
,
E09F4CA32452D18800BE033D
/* ZengZhiServicesViewController.xib in Resources */
,
F95D9CA524493E840080D6E3
/* ShopInfoViewController.xib in Resources */
,
...
...
@@ -4079,6 +4086,7 @@
E0B5307E247266F400FFCC15
/* DKXDAdrCell.swift in Sources */
,
F93E31FD24727A2D00524DFC
/* ShowTimeSelectView.swift in Sources */
,
E0B94623245671E100FBEC9A
/* DaiKeXiaDanGouWuViewController.swift in Sources */
,
E04BA7F325F74E3B00B62F37
/* PiCiXuanZeViewController.swift in Sources */
,
E0D11BD525C12C540066DB21
/* img_title_cell.swift in Sources */
,
E0A320C52456D01300AF321C
/* DaiKeXiaDanFooterView.swift in Sources */
,
E0E5605A25C169E30004BA56
/* GPrinter_Cell.swift in Sources */
,
...
...
@@ -4363,7 +4371,7 @@
F94A314F24625AFA00FEC38E
/* GoodsUpDataModel.swift in Sources */
,
F933F6C32452C68B00189561
/* FrameView.swift in Sources */
,
F9DDBE922457BFEC00A32CB2
/* HUDEXT.swift in Sources */
,
E06524FD24581BD900CA22E2
/* PiCiXuanZeViewController.swift in Sources */
,
E06524FD24581BD900CA22E2
/* PiCiXuanZeViewController
1
.swift in Sources */
,
E00B0B1B24629E99006DC846
/* SJMapCell.swift in Sources */
,
F956D5B0246A2D9C003FF510
/* LMNItem.m in Sources */
,
E019E98324A9763A0086C565
/* BrandListInterface.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
5f11aaf3
No preview for this file type
GeliBusinessPlatform/View/LogisticalSelectView/LogisticalSelectView.swift
View file @
5f11aaf3
...
...
@@ -26,10 +26,12 @@ class LogisticalSelectView: UIView {
data
?
.
jd_data
?
.
forEach
({
(
item
)
in
if
item
.
number
!=
"0"
&&
item
.
number
!=
"0.00"
{
jd_temp
.
append
(
item
.
cn
!
+
":¥"
+
item
.
number
!
)
if
data
?
.
price_jd
!=
0
{
jd_temp
.
append
(
item
.
cn
!
+
":¥"
+
item
.
number
!
)
}
}
})
print
(
"jd_temp.count = "
,
jd_temp
.
count
)
data
?
.
xy_data
?
.
forEach
({
(
item
)
in
if
item
.
number
!=
0
{
xy_temp
.
append
(
item
.
cn
!
+
":¥
\(
item
.
number
!
)
"
)
...
...
@@ -57,8 +59,8 @@ class LogisticalSelectView: UIView {
make
.
top
.
equalTo
(
jdAgreeLbl
.
snp_bottom
)
.
offset
((
5
+
15
)
*
i
+
5
)
}
}
sfTop
.
constant
=
CGFloat
((
data
?
.
jd_data
!.
count
)
!
*
19
)
jdlineBottom
.
constant
=
CGFloat
(
-
((
data
?
.
jd_data
!.
count
)
!
*
19
))
sfTop
.
constant
=
CGFloat
((
jd_temp
.
count
)
*
19
)
jdlineBottom
.
constant
=
CGFloat
(
-
((
jd_temp
.
count
)
*
19
))
}
else
{
sfTop
.
constant
=
CGFloat
(
0
)
jdlineBottom
.
constant
=
CGFloat
(
0
)
...
...
@@ -77,8 +79,8 @@ class LogisticalSelectView: UIView {
}
SFtempArr
.
append
(
lbl
)
}
xyTop
.
constant
=
CGFloat
(
SFfuTitleArr
.
count
*
19
)
sflineBottom
.
constant
=
CGFloat
(
-
(
SFfuTitleArr
.
count
*
19
))
xyTop
.
constant
=
CGFloat
(
sf_temp
.
count
*
19
)
sflineBottom
.
constant
=
CGFloat
(
-
(
sf_temp
.
count
*
19
))
}
else
{
xyTop
.
constant
=
CGFloat
(
0
)
sflineBottom
.
constant
=
CGFloat
(
0
)
...
...
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController.swift
→
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController
1
.swift
View file @
5f11aaf3
...
...
@@ -7,10 +7,10 @@
//
import
UIKit
protocol
PiCiXuanZeViewControllerDelegate
{
protocol
PiCiXuanZeViewControllerDelegate
1
{
func
PiCiXuanZeViewControllerPiCiSelect
(
data
:
Array
<
GetGoodBatchDataModel
>
,
p_id
:
Int
)
}
class
PiCiXuanZeViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewPiCiCellDelegate
{
class
PiCiXuanZeViewController
1
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewPiCiCellDelegate
{
func
NewPiCiXuanZeCellBtnTextChange
(
sender
:
String
,
cell
:
NewPiCiCell
)
{
let
num
=
sender
as
NSString
let
data
=
dataArray
[
cell
.
tag
]
...
...
@@ -95,7 +95,7 @@ class PiCiXuanZeViewController: BaseViewController,UITableViewDelegate,UITableVi
var
dataArray
:
Array
<
GetGoodBatchDataModel
>
=
[]
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
btmLbl
:
UILabel
!
var
delegate
:
PiCiXuanZeViewControllerDelegate
?
var
delegate
:
PiCiXuanZeViewControllerDelegate
1
?
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
for
item
in
recordArr
{
if
item
.
chuHuoLiang
==
nil
{
...
...
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController.xib
→
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController
1
.xib
View file @
5f11aaf3
...
...
@@ -10,7 +10,7 @@
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"PiCiXuanZeViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"PiCiXuanZeViewController
1
"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"btmLbl"
destination=
"FDL-5Z-81H"
id=
"K47-Sd-ruu"
/>
<outlet
property=
"count_Lbl"
destination=
"l3D-W7-IC2"
id=
"exz-mY-YRo"
/>
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
View file @
5f11aaf3
...
...
@@ -10,7 +10,7 @@ import UIKit
protocol
CRKXiangQVCDelegate
{
func
CRKXiangQVCFinishAction
()
}
class
CRKXiangQVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewCKCellDelegate
,
PiCiXuanZeViewControllerDelegate
,
WarehoseMangementListVCDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertTextViewDelegate
,
GeliAlertView
Delegate
{
class
CRKXiangQVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewCKCellDelegate
,
WarehoseMangementListVCDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertTextViewDelegate
,
GeliAlertViewDelegate
,
PiCiXuanZeViewController
Delegate
{
var
isRequest
=
false
var
w_id
:
Int
?
var
p_id
:
Int
?
...
...
GeliBusinessPlatform/ViewController/批次库新Cell/PiCiXuanZeViewController.swift
0 → 100644
View file @
5f11aaf3
//
// PiCiXuanZeViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/28.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
PiCiXuanZeViewControllerDelegate
{
func
PiCiXuanZeViewControllerPiCiSelect
(
data
:
Array
<
GetGoodBatchDataModel
>
,
p_id
:
Int
)
}
class
PiCiXuanZeViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
PiCiXuanZeCellDelegate
{
var
first
=
true
var
p_id
:
Int
?
var
sku_id
:
Int
?
var
tag
:
Int
?
var
totalCount
=
0
var
selectArr
:
Array
<
Int
>
=
[]
var
recordArr
:
Array
<
GetGoodBatchDataModel
>
=
[]
var
dataArray
:
Array
<
GetGoodBatchDataModel
>
=
[]
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
btmLbl
:
UILabel
!
var
delegate
:
PiCiXuanZeViewControllerDelegate
?
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
for
item
in
recordArr
{
if
item
.
chuHuoLiang
==
nil
{
HUD
.
flash
(
.
label
(
"请输入数量"
),
delay
:
1.2
)
return
}
}
for
model
in
dataArray
{
for
item
in
recordArr
{
if
model
.
batch_id
==
item
.
batch_id
{
if
model
.
chuHuoLiang
!=
nil
{
item
.
chuHuoLiang
=
model
.
chuHuoLiang
}
}
}
}
delegate
?
.
PiCiXuanZeViewControllerPiCiSelect
(
data
:
recordArr
,
p_id
:
tag
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
if
recordArr
.
count
==
0
{
first
=
false
}
navbar
.
title
=
"批次选择"
self
.
view
.
addSubview
(
navbar
)
topView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
44
)
}
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"PiCiXuanZeCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"PiCiXuanZeCell"
)
listView
.
register
(
UINib
(
nibName
:
"CRKSumCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"CRKSumCell"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"sku_id"
:
sku_id
as
Any
]
listView
.
isHidden
=
true
HUD
.
flash
(
.
progress
)
GetGoodBatch
(
dic
,
success
:
{
(
data
)
in
let
model
=
data
as!
GetGoodBatchModel
model
.
data
?
.
forEach
({
(
item
)
in
self
.
dataArray
.
append
(
item
)
})
if
self
.
recordArr
.
count
>
0
{
for
item
in
self
.
dataArray
{
for
model
in
self
.
recordArr
{
if
item
.
batch_id
==
model
.
batch_id
{
item
.
chuHuoLiang
=
model
.
chuHuoLiang
}
}
}
}
self
.
listView
.
reloadData
()
self
.
listView
.
isHidden
=
false
HUD
.
hide
()
})
{
(
error
)
in
}
totalCount
=
0
if
recordArr
.
count
>
0
{
for
item
in
recordArr
{
totalCount
+=
item
.
chuHuoLiang
!
}
}
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
section
==
1
{
return
1
}
return
dataArray
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"CRKSumCell"
)
as!
CRKSumCell
cell
.
countLbl
.
text
=
"
\(
totalCount
)
"
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"PiCiXuanZeCell"
)
as!
PiCiXuanZeCell
cell
.
tag
=
indexPath
.
row
let
model
=
dataArray
[
indexPath
.
row
]
cell
.
delegate
=
self
var
name
=
""
switch
model
.
status
{
case
1
:
name
=
"正常"
break
case
2
:
name
=
"临期"
break
default
:
name
=
"过期"
break
}
cell
.
nameLbl
.
text
=
name
cell
.
SLLbl
.
text
=
"
\(
model
.
inventory
!
)
"
cell
.
dateLbl
.
text
=
dayByDouble
(
sender
:
model
.
production_data
!
)
if
model
.
production_data
==
0
{
cell
.
dateLbl
.
text
=
"-"
}
if
recordArr
.
count
>
0
{
for
item
in
recordArr
{
if
model
.
batch_id
==
item
.
batch_id
{
if
item
.
chuHuoLiang
!=
nil
{
cell
.
textTF
.
text
=
"
\(
item
.
chuHuoLiang
!
)
"
if
model
.
chuHuoLiang
!=
nil
{
cell
.
textTF
.
text
=
"
\(
model
.
chuHuoLiang
!
)
"
}
}
cell
.
iconBtn
.
isSelected
=
true
if
first
{
first
=
false
selectArr
.
append
(
cell
.
tag
)
}
}
}
}
return
cell
}
func
PiCiXuanZeCellBtnTextChange
(
sender
:
String
,
cell
:
PiCiXuanZeCell
)
{
let
num
=
sender
as
NSString
let
data
=
dataArray
[
cell
.
tag
]
data
.
chuHuoLiang
=
num
.
integerValue
// let item = recordArr[cell.tag]
// item.chuHuoLiang = num.integerValue
}
func
PiCiXuanZeCellRefreshCount
(
cell
:
PiCiXuanZeCell
)
{
if
selectArr
.
contains
(
cell
.
tag
)
==
false
{
selectArr
.
append
(
cell
.
tag
)
}
print
(
selectArr
.
count
)
let
data
=
dataArray
[
cell
.
tag
]
let
idx
=
recordArr
.
firstIndex
{
(
model
)
->
Bool
in
return
data
.
batch_id
==
model
.
batch_id
}
if
idx
==
nil
{
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
!
}
}
listView
.
reloadData
()
}
func
PiCiXuanZeCellBtnSelect
(
cell
:
PiCiXuanZeCell
)
{
//已选择cell
if
selectArr
.
contains
(
cell
.
tag
){
let
idx
=
selectArr
.
index
(
of
:
cell
.
tag
)
selectArr
.
remove
(
at
:
idx
!
)
}
else
{
selectArr
.
append
(
cell
.
tag
)
}
//数据
let
data
=
dataArray
[
cell
.
tag
]
let
idx
=
recordArr
.
firstIndex
{
(
model
)
->
Bool
in
return
data
.
batch_id
==
model
.
batch_id
}
if
idx
!=
nil
{
recordArr
.
remove
(
at
:
idx
!
)
}
else
{
recordArr
.
append
(
data
)
}
totalCount
=
0
for
item
in
recordArr
{
if
item
.
chuHuoLiang
!=
nil
{
totalCount
+=
item
.
chuHuoLiang
!
}
}
let
index
=
IndexPath
(
row
:
0
,
section
:
1
)
listView
.
reloadRows
(
at
:
[
index
],
with
:
.
none
)
}
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
2
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
10
}
}
GeliBusinessPlatform/ViewController/批次库新Cell/PiCiXuanZeViewController.xib
0 → 100644
View file @
5f11aaf3
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
5f11aaf3
...
...
@@ -11,7 +11,7 @@ import Photos
protocol
OrderDViewControllerDelegate
{
func
refishingOrderDchange
()
}
class
OrderDViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GuanLianKehuVCDelegate
,
OrderDViewFooterViewDelegate
,
TitleAndTFCellDelegate
,
GeliAlertViewDelegate
,
GLAlertSelectViewDelegate
,
XiuGaiYuShouJiaViewControllerDelegate
,
ChangeGoodsPriceVCDelegate
,
GeliAlertTextFiledDelegate
,
GeliAlertTextViewDelegate
,
UpBillDataTableViewCellDelegate
,
DaiKeXiaDanGouWuCellDelegate
,
S_Y_View_Delegate
,
PiCiXuanZeViewControllerDelegate
{
class
OrderDViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GuanLianKehuVCDelegate
,
OrderDViewFooterViewDelegate
,
TitleAndTFCellDelegate
,
GeliAlertViewDelegate
,
GLAlertSelectViewDelegate
,
XiuGaiYuShouJiaViewControllerDelegate
,
ChangeGoodsPriceVCDelegate
,
GeliAlertTextFiledDelegate
,
GeliAlertTextViewDelegate
,
UpBillDataTableViewCellDelegate
,
DaiKeXiaDanGouWuCellDelegate
,
S_Y_View_Delegate
,
PiCiXuanZeViewControllerDelegate
1
{
var
piCiArr
:
Array
<
Array
<
GetGoodBatchDataModel
>>
?
=
[]
func
PiCiXuanZeViewControllerPiCiSelect
(
data
:
Array
<
GetGoodBatchDataModel
>
,
p_id
:
Int
)
{
...
...
@@ -22,11 +22,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
func
DaiKeXiaDanGouWuCell_select_pi_ci
(
cell
:
DaiKeXiaDanGouWuCell
)
{
print
(
"选择批次1"
)
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
=
PiCiXuanZeViewController
()
let
vc
=
PiCiXuanZeViewController
1
()
vc
.
sku_id
=
Int
((
model
?
.
sku_id
)
!
)
vc
.
delegate
=
self
vc
.
tag
=
cell
.
tag
...
...
@@ -588,6 +587,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
dj_wk_view
.
isHidden
=
true
}
cell
.
dan_jia_lbl
.
text
=
"单价:"
+
(
rowModel
?
.
goods_price
)
!
cell
.
yong_jin_lbl
.
text
=
"佣金:"
+
(
rowModel
?
.
commission_val
)
!
cell
.
count_lbl
.
text
=
"数量:"
+
StringByInt
(
number
:
(
rowModel
?
.
cart_number
!
)
!
)
cell
.
xiao_ji_lbl
.
text
=
"小计:¥"
+
(
self
.
dataMdoel
?
.
order_res
?
.
goods_amount
)
!
...
...
Pods/Alamofire/Source/ResponseSerialization.swift
View file @
5f11aaf3
...
...
@@ -491,11 +491,9 @@ extension Request {
guard
error
==
nil
else
{
return
.
failure
(
error
!
)
}
if
let
response
=
response
,
emptyDataStatusCodes
.
contains
(
response
.
statusCode
)
{
return
.
success
(
NSNull
())
}
guard
let
validData
=
data
,
validData
.
count
>
0
else
{
return
.
failure
(
AFError
.
responseSerializationFailed
(
reason
:
.
inputDataNilOrZeroLength
))
}
do
{
let
json
=
try
JSONSerialization
.
jsonObject
(
with
:
validData
,
options
:
options
)
return
.
success
(
json
)
...
...
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