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
21ea9098
Commit
21ea9098
authored
Jun 03, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库完成
parent
34ed0b8a
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
740 additions
and
88 deletions
+740
-88
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+42
-10
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+1
-1
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+9
-0
GeliBusinessPlatform/Model/WarehouseManageModel/InputInitInfoModel.swift
...tform/Model/WarehouseManageModel/InputInitInfoModel.swift
+12
-1
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
+2
-1
GeliBusinessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.swift
...essPlatform/ViewController/1.1入库&出库/NewSelectItemVc.swift
+76
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.xib
...inessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.xib
+104
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewOnlyRKCell.swift
...ssPlatform/ViewController/1.1入库&出库/入库/NewOnlyRKCell.swift
+3
-3
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewOnlyRKCell.xib
...nessPlatform/ViewController/1.1入库&出库/入库/NewOnlyRKCell.xib
+24
-48
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+314
-15
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
+4
-4
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewSelectWarehouseVC.swift
...orm/ViewController/1.1入库&出库/入库/NewSelectWarehouseVC.swift
+84
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewSelectWarehouseVC.xib
...tform/ViewController/1.1入库&出库/入库/NewSelectWarehouseVC.xib
+53
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/CKGmCell.swift
...usinessPlatform/ViewController/1.1入库&出库/出库/CKGmCell.swift
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/CKGmCell.xib
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/CKGmCell.xib
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/CKNonGmCell.swift
...nessPlatform/ViewController/1.1入库&出库/出库/CKNonGmCell.swift
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/CKNonGmCell.xib
...sinessPlatform/ViewController/1.1入库&出库/出库/CKNonGmCell.xib
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.xib
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.xib
+0
-0
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementCell.xib
...essPlatform/ViewController/仓库管理/WarehoseMangementCell.xib
+2
-1
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+10
-4
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
21ea9098
...
...
@@ -32,6 +32,8 @@
E013D78D2484CAFC0092DE46
/* CRKBtnCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E013D78B2484CAFC0092DE46
/* CRKBtnCell.xib */
;
};
E013D7902484D5AF0092DE46
/* NewCKCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E013D78E2484D5AF0092DE46
/* NewCKCell.swift */
;
};
E013D7912484D5AF0092DE46
/* NewCKCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E013D78F2484D5AF0092DE46
/* NewCKCell.xib */
;
};
E0190A2D2487696F00B1E067
/* NewSelectItemVc.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0190A2B2487696F00B1E067
/* NewSelectItemVc.swift */
;
};
E0190A2E2487696F00B1E067
/* NewSelectItemVc.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0190A2C2487696F00B1E067
/* NewSelectItemVc.xib */
;
};
E01C26B12446989700ADCC70
/* Interface_Z.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B02446989700ADCC70
/* Interface_Z.plist */
;
};
E01C26B62446AF3100ADCC70
/* DemoViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B42446AF3100ADCC70
/* DemoViewController.swift */
;
};
E01C26B72446AF3100ADCC70
/* DemoViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B52446AF3100ADCC70
/* DemoViewController.xib */
;
};
...
...
@@ -292,6 +294,8 @@
E0E341EA246E95EE0060AC20
/* PingLunCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0E341E8246E95EE0060AC20
/* PingLunCell.swift */
;
};
E0E341EB246E95EE0060AC20
/* PingLunCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0E341E9246E95EE0060AC20
/* PingLunCell.xib */
;
};
E0E8ABFD246E359700E3BB54
/* GuiGeModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0E8ABFC246E359700E3BB54
/* GuiGeModel.swift */
;
};
E0EABAE72487748500F6CA8D
/* NewSelectWarehouseVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EABAE52487748500F6CA8D
/* NewSelectWarehouseVC.swift */
;
};
E0EABAE82487748500F6CA8D
/* NewSelectWarehouseVC.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EABAE62487748500F6CA8D
/* NewSelectWarehouseVC.xib */
;
};
E0F1BE4824692379003015B2
/* ItemCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F1BE4624692379003015B2
/* ItemCell.swift */
;
};
E0F1BE4924692379003015B2
/* ItemCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F1BE4724692379003015B2
/* ItemCell.xib */
;
};
E0F3C2CB24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F3C2C924590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift */
;
};
...
...
@@ -545,6 +549,8 @@
E013D78B2484CAFC0092DE46
/* CRKBtnCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CRKBtnCell.xib
;
sourceTree
=
"<group>"
;
};
E013D78E2484D5AF0092DE46
/* NewCKCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
NewCKCell.swift
;
sourceTree
=
"<group>"
;
};
E013D78F2484D5AF0092DE46
/* NewCKCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
NewCKCell.xib
;
sourceTree
=
"<group>"
;
};
E0190A2B2487696F00B1E067
/* NewSelectItemVc.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
NewSelectItemVc.swift
;
sourceTree
=
"<group>"
;
};
E0190A2C2487696F00B1E067
/* NewSelectItemVc.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
NewSelectItemVc.xib
;
sourceTree
=
"<group>"
;
};
E01C26B02446989700ADCC70
/* Interface_Z.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
path
=
Interface_Z.plist
;
sourceTree
=
"<group>"
;
};
E01C26B42446AF3100ADCC70
/* DemoViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DemoViewController.swift
;
sourceTree
=
"<group>"
;
};
E01C26B52446AF3100ADCC70
/* DemoViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DemoViewController.xib
;
sourceTree
=
"<group>"
;
};
...
...
@@ -814,6 +820,8 @@
E0E341E8246E95EE0060AC20
/* PingLunCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PingLunCell.swift
;
sourceTree
=
"<group>"
;
};
E0E341E9246E95EE0060AC20
/* PingLunCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PingLunCell.xib
;
sourceTree
=
"<group>"
;
};
E0E8ABFC246E359700E3BB54
/* GuiGeModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GuiGeModel.swift
;
sourceTree
=
"<group>"
;
};
E0EABAE52487748500F6CA8D
/* NewSelectWarehouseVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
NewSelectWarehouseVC.swift
;
sourceTree
=
"<group>"
;
};
E0EABAE62487748500F6CA8D
/* NewSelectWarehouseVC.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
NewSelectWarehouseVC.xib
;
sourceTree
=
"<group>"
;
};
E0F1BE4624692379003015B2
/* ItemCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ItemCell.swift
;
sourceTree
=
"<group>"
;
};
E0F1BE4724692379003015B2
/* ItemCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ItemCell.xib
;
sourceTree
=
"<group>"
;
};
E0F3C2C924590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
XinZengAndBianJiKeHuViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1239,6 +1247,32 @@
path
=
GeliBusinessPlatformUITests
;
sourceTree
=
"<group>"
;
};
E0190A292487691200B1E067
/* 入库 */
=
{
isa
=
PBXGroup
;
children
=
(
E030DF39248651A5002764D3
/* NewRKVc.swift */
,
E030DF3A248651A5002764D3
/* NewRKVc.xib */
,
E0F8E919248737F100817A08
/* NewOnlyRKCell.swift */
,
E0F8E91A248737F100817A08
/* NewOnlyRKCell.xib */
,
E0EABAE52487748500F6CA8D
/* NewSelectWarehouseVC.swift */
,
E0EABAE62487748500F6CA8D
/* NewSelectWarehouseVC.xib */
,
);
path
=
"入库"
;
sourceTree
=
"<group>"
;
};
E0190A2A2487692700B1E067
/* 出库 */
=
{
isa
=
PBXGroup
;
children
=
(
E0F8E91D248747D200817A08
/* NewCKVc.swift */
,
E0F8E91E248747D200817A08
/* NewCKVc.xib */
,
E095C42824874E6100922571
/* CKGmCell.swift */
,
E095C42924874E6100922571
/* CKGmCell.xib */
,
E095C42424874BDA00922571
/* CKNonGmCell.swift */
,
E095C42524874BDA00922571
/* CKNonGmCell.xib */
,
);
path
=
"出库"
;
sourceTree
=
"<group>"
;
};
E01C26B32446AEF800ADCC70
/* DEMO */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1345,16 +1379,10 @@
E030DF382486517E002764D3
/* 1.1入库&出库 */
=
{
isa
=
PBXGroup
;
children
=
(
E030DF39248651A5002764D3
/* NewRKVc.swift */
,
E030DF3A248651A5002764D3
/* NewRKVc.xib */
,
E0F8E919248737F100817A08
/* NewOnlyRKCell.swift */
,
E0F8E91A248737F100817A08
/* NewOnlyRKCell.xib */
,
E0F8E91D248747D200817A08
/* NewCKVc.swift */
,
E0F8E91E248747D200817A08
/* NewCKVc.xib */
,
E095C42824874E6100922571
/* CKGmCell.swift */
,
E095C42924874E6100922571
/* CKGmCell.xib */
,
E095C42424874BDA00922571
/* CKNonGmCell.swift */
,
E095C42524874BDA00922571
/* CKNonGmCell.xib */
,
E0190A292487691200B1E067
/* 入库 */
,
E0190A2A2487692700B1E067
/* 出库 */
,
E0190A2B2487696F00B1E067
/* NewSelectItemVc.swift */
,
E0190A2C2487696F00B1E067
/* NewSelectItemVc.xib */
,
);
path
=
"1.1入库&出库"
;
sourceTree
=
"<group>"
;
...
...
@@ -2630,6 +2658,7 @@
E0F8E91C248737F100817A08
/* NewOnlyRKCell.xib in Resources */
,
E013D7892484B1B90092DE46
/* CRKXiangQVC.xib in Resources */
,
E0A409C92464010D00CFF109
/* FirstCell.xib in Resources */
,
E0EABAE82487748500F6CA8D
/* NewSelectWarehouseVC.xib in Resources */
,
E00E48C32457C0D600F16545
/* XuanZeShangPinViewController.xib in Resources */
,
F9023F6A2449A50900DD5A63
/* TitleContentCell.xib in Resources */
,
F956D5A5246A2D9C003FF510
/* Feature in Resources */
,
...
...
@@ -2707,6 +2736,7 @@
E0A7548B244A8F0F00A84B67
/* CheckWareHourseViewController.xib in Resources */
,
F956D5A4246A2D9C003FF510
/* .gitignore in Resources */
,
E0BE8A80245A740600E80134
/* ChengGongCell.xib in Resources */
,
E0190A2E2487696F00B1E067
/* NewSelectItemVc.xib in Resources */
,
F95D9B5024484FAE0080D6E3
/* GeliAlertView.xib in Resources */
,
E01EA1A1245A5D6B00F019D5
/* YunDanXiangQingViewController.xib in Resources */
,
E0BE8A8C245A7D3300E80134
/* BtmBtnCell.xib in Resources */
,
...
...
@@ -2829,6 +2859,7 @@
E0A409CC2464026B00CFF109
/* SecondCell.swift in Sources */
,
E0BE8A87245A7A1500E80134
/* JiBenXinXiCell.swift in Sources */
,
E0DDCB13244ADF2C00DF54C7
/* ChangePriceNormalCell.swift in Sources */
,
E0EABAE72487748500F6CA8D
/* NewSelectWarehouseVC.swift in Sources */
,
F956D5B2246A2D9C003FF510
/* LMNDraft.m in Sources */
,
E09B03B62445B85A00211A51
/* LoginViewController.swift in Sources */
,
E02FD9FA24557E8600E10E27
/* XinZengDiZhiViewController.swift in Sources */
,
...
...
@@ -2877,6 +2908,7 @@
F950FDDB24518B9500C40530
/* FSCalendarStickyHeader.m in Sources */
,
E02D586D2477A2D90065A9EB
/* EditFtNumberModel.swift in Sources */
,
F95A9EE924558B8800867849
/* ShowAlGoodsViewController.swift in Sources */
,
E0190A2D2487696F00B1E067
/* NewSelectItemVc.swift in Sources */
,
E09B03C32445BD9500211A51
/* NavViewController.swift in Sources */
,
F950FDD924518B9500C40530
/* FSCalendarDelegationFactory.m in Sources */
,
E0A2E82B24555D8600D6DB34
/* KuCunXiangQingCell.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
21ea9098
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
21ea9098
...
...
@@ -243,7 +243,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate, UITabBarCon
let
v1
=
OrderListViewController
()
let
v2
=
GoodsManageListVC
()
let
v3
=
WorkCViewController
()
//
let v3 = WorkCViewController()
let
v4
=
WarehoseMangementListVC
()
let
v5
=
PersonCenterViewController
()
...
...
GeliBusinessPlatform/Define/Define.swift
View file @
21ea9098
...
...
@@ -321,6 +321,15 @@ func getDicFromJSONString(jsonString:String) ->Dictionary<String,Any>{
}
return
Dictionary
()
}
//MARK: - 获取系统当前时间
func
getTimeNow
()
->
String
{
let
date
=
Date
()
let
timeFormatter
=
DateFormatter
()
timeFormatter
.
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
return
timeFormatter
.
string
(
from
:
date
)
as
String
}
//MARK:--字典转字符串
func
dictChangeString
(
sender
:
Dictionary
<
String
,
Any
>
)
->
String
{
var
str
=
""
...
...
GeliBusinessPlatform/Model/WarehouseManageModel/InputInitInfoModel.swift
View file @
21ea9098
...
...
@@ -12,7 +12,7 @@ import ObjectMapper
class
InputInitInfoModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
InputInitInfoDataModel
>
?
var
data
:
InputInitInfoDataModel
?
required
init
?(
map
:
Map
)
{
...
...
@@ -116,6 +116,12 @@ class InputInitInfoGoodsInfoModel: Mappable { //商品信息
var
inventory
:
Int
?
//可售库存
var
warehouse_inventory
:
Int
?
//仓储库存
//text:数据 inputType: 100-保质期 101-总价 102-入库数量 103-入库价格
var
BZQ
:
Int
?
var
ZJ
:
Float
?
var
RKSL
:
Int
?
var
RKJG
:
Float
?
var
DayType
:
Int
=
1
required
init
?(
map
:
Map
)
{
...
...
@@ -129,6 +135,11 @@ class InputInitInfoGoodsInfoModel: Mappable { //商品信息
price
<-
map
[
"price"
]
inventory
<-
map
[
"inventory"
]
warehouse_inventory
<-
map
[
"warehouse_inventory"
]
BZQ
<-
map
[
"BZQ"
]
ZJ
<-
map
[
"ZJ"
]
RKSL
<-
map
[
"RKSL"
]
RKJG
<-
map
[
"RKJG"
]
DayType
<-
map
[
"DayType"
]
}
}
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
View file @
21ea9098
...
...
@@ -2,6 +2,7 @@
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
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=
"16087"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
...
...
@@ -299,7 +300,7 @@
<color
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.swift
0 → 100644
View file @
21ea9098
//
// NewSelectItemVc.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/6/3.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
NewSelectItemVcDelegate
{
func
NewSelectItemVcSelect
(
datas
:
Array
<
InputInitInfoGoodsInfoModel
>
)
}
class
NewSelectItemVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
var
rkDatas
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]
var
rkSelectArr
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]
var
delegate
:
NewSelectItemVcDelegate
?
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
delegate
?
.
NewSelectItemVcSelect
(
datas
:
rkSelectArr
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
searchBg
:
UIView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"选择商品"
self
.
view
.
addSubview
(
navbar
)
listView
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
listView
.
separatorStyle
=
.
none
SetTopFrame
(
view
:
searchBg
,
height
:
0
)
// Do any additional setup after loading the view.
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
rkDatas
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
tag
=
indexPath
.
row
let
cellData
=
rkDatas
[
indexPath
.
row
]
cell
.
selectBtn
.
isSelected
=
false
for
item
in
rkSelectArr
{
if
item
.
goods_id
==
cellData
.
goods_id
{
cell
.
selectBtn
.
isSelected
=
true
}
}
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
cellData
.
goods_thumb
!
))
cell
.
nameLbl
.
text
=
cellData
.
goods_name
cell
.
detailLbl
.
text
=
cellData
.
spec_str
cell
.
detailLbl2
.
text
=
"
\(
cellData
.
inventory
!
)
"
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
120
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
data
=
rkDatas
[
indexPath
.
row
]
let
idx
=
rkSelectArr
.
firstIndex
{
(
model
)
->
Bool
in
return
model
.
goods_id
==
data
.
goods_id
}
if
idx
!=
nil
{
rkSelectArr
.
remove
(
at
:
idx
!
)
}
else
{
rkSelectArr
.
append
(
data
)
}
listView
.
reloadData
()
}
}
GeliBusinessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.xib
0 → 100644
View file @
21ea9098
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
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=
"16087"
/>
<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"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"NewSelectItemVc"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"fle-C9-fK3"
id=
"9Om-qE-ckQ"
/>
<outlet
property=
"searchBg"
destination=
"Akz-Jf-D61"
id=
"adg-SH-BB9"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"YQa-KT-S49"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientEndColor"
>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"P0m-8T-q65"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BVY-bL-lp9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"kOP-e7-37f"
/>
</constraints>
<attributedString
key=
"attributedText"
>
<fragment
content=
"确定"
>
<attributes>
<color
key=
"NSColor"
name=
"白色背景色"
/>
<font
key=
"NSFont"
size=
"17"
name=
"PingFangSC-Medium"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"center"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
tighteningFactorForTruncation=
"0.0"
/>
</attributes>
</fragment>
</attributedString>
<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=
"fle-C9-fK3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"w2I-Zt-2JH"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"VJ1-mC-l5Q"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Akz-Jf-D61"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"0.0"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"Q54-jV-FFR"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"BVY-bL-lp9"
secondAttribute=
"trailing"
id=
"0JN-uh-04k"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"Akz-Jf-D61"
secondAttribute=
"trailing"
id=
"30i-Sw-ZCy"
/>
<constraint
firstItem=
"fle-C9-fK3"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"3Qk-5k-Wv2"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"YQa-KT-S49"
secondAttribute=
"trailing"
id=
"5fw-8c-bNa"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"fle-C9-fK3"
secondAttribute=
"trailing"
id=
"6M1-zp-qbk"
/>
<constraint
firstItem=
"BVY-bL-lp9"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"7HF-tv-DvK"
/>
<constraint
firstItem=
"Akz-Jf-D61"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"9IQ-pL-60x"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"BVY-bL-lp9"
secondAttribute=
"bottom"
id=
"DGr-tx-Emi"
/>
<constraint
firstItem=
"YQa-KT-S49"
firstAttribute=
"top"
secondItem=
"fle-C9-fK3"
secondAttribute=
"bottom"
id=
"FmK-hV-T1a"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"YQa-KT-S49"
secondAttribute=
"bottom"
id=
"Q0T-ae-EGB"
/>
<constraint
firstItem=
"Akz-Jf-D61"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"V8m-aU-tax"
/>
<constraint
firstItem=
"fle-C9-fK3"
firstAttribute=
"top"
secondItem=
"Akz-Jf-D61"
secondAttribute=
"bottom"
id=
"eca-fr-Vpj"
/>
<constraint
firstItem=
"YQa-KT-S49"
firstAttribute=
"top"
secondItem=
"BVY-bL-lp9"
secondAttribute=
"top"
id=
"hs4-X7-64m"
/>
<constraint
firstItem=
"YQa-KT-S49"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"lsF-py-5BP"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"123.88392857142857"
/>
</view>
</objects>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/1.1入库&出库/NewOnlyRKCell.swift
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
入库/
NewOnlyRKCell.swift
View file @
21ea9098
...
...
@@ -37,11 +37,11 @@ class NewOnlyRKCell: UITableViewCell,UITextFieldDelegate {
bzqTf
.
delegate
=
self
bzqTf
.
tag
=
100
totalPriceTf
.
delegate
=
self
bzq
Tf
.
tag
=
101
totalPrice
Tf
.
tag
=
101
rkCountTf
.
delegate
=
self
bzq
Tf
.
tag
=
102
rkCount
Tf
.
tag
=
102
rkPriceTf
.
delegate
=
self
bzq
Tf
.
tag
=
103
rkPrice
Tf
.
tag
=
103
setYuanJiao2
(
sender
:
leftBtn
)
setYuanJiao
(
sender
:
rightBtn
)
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/NewOnlyRKCell.xib
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
入库/
NewOnlyRKCell.xib
View file @
21ea9098
...
...
@@ -11,22 +11,22 @@
<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=
"NewOnlyRKCell"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
375"
height=
"370
"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
rowHeight=
"326"
id=
"KGk-i7-Jjw"
customClass=
"NewOnlyRKCell"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
411"
height=
"326
"
/>
<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=
"
375"
height=
"370
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
411"
height=
"326
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JdU-F8-6ck"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
375
"
height=
"1"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
411
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"niY-CK-UCv"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cxO-LI-2Sg"
>
<rect
key=
"frame"
x=
"3
19
"
y=
"1"
width=
"56"
height=
"56"
/>
<rect
key=
"frame"
x=
"3
55
"
y=
"1"
width=
"56"
height=
"56"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"56"
id=
"GSA-96-y5P"
/>
<constraint
firstAttribute=
"width"
constant=
"56"
id=
"waI-wp-EYb"
/>
...
...
@@ -40,7 +40,7 @@
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"chy-ny-kVr"
>
<rect
key=
"frame"
x=
"15"
y=
"16"
width=
"
294
"
height=
"37"
/>
<rect
key=
"frame"
x=
"15"
y=
"16"
width=
"
330
"
height=
"37"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"37"
id=
"BI9-cg-oZB"
/>
</constraints>
...
...
@@ -56,7 +56,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Fr1-SS-krs"
>
<rect
key=
"frame"
x=
"15"
y=
"63"
width=
"3
45
"
height=
"15"
/>
<rect
key=
"frame"
x=
"15"
y=
"63"
width=
"3
81
"
height=
"15"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"uas-Wa-v82"
/>
</constraints>
...
...
@@ -71,13 +71,13 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"元"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7fF-Od-2O3"
>
<rect
key=
"frame"
x=
"3
46
.5"
y=
"100"
width=
"13.5"
height=
"16"
/>
<rect
key=
"frame"
x=
"3
82
.5"
y=
"100"
width=
"13.5"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"center"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kGM-d5-IE6"
>
<rect
key=
"frame"
x=
"
276
.5"
y=
"92"
width=
"65"
height=
"32"
/>
<rect
key=
"frame"
x=
"
312
.5"
y=
"92"
width=
"65"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"EoK-7u-slA"
/>
<constraint
firstAttribute=
"width"
constant=
"65"
id=
"baW-j7-X0z"
/>
...
...
@@ -98,7 +98,7 @@
</userDefinedRuntimeAttributes>
</textField>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Gda-ra-tfi"
>
<rect
key=
"frame"
x=
"15"
y=
"132"
width=
"3
60
"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"132"
width=
"3
96
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"11O-28-PNy"
/>
...
...
@@ -111,7 +111,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"center"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"s2D-dg-gBi"
>
<rect
key=
"frame"
x=
"
277
"
y=
"140.5"
width=
"83"
height=
"32"
/>
<rect
key=
"frame"
x=
"
313
"
y=
"140.5"
width=
"83"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"Bwg-y9-nd6"
/>
<constraint
firstAttribute=
"width"
constant=
"83"
id=
"lTi-jd-pXF"
/>
...
...
@@ -132,7 +132,7 @@
</userDefinedRuntimeAttributes>
</textField>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eh6-mf-agL"
>
<rect
key=
"frame"
x=
"15"
y=
"181"
width=
"3
60
"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"181"
width=
"3
96
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"DSR-1b-lOx"
/>
...
...
@@ -145,7 +145,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入入库总价"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DNW-1v-r8x"
>
<rect
key=
"frame"
x=
"97"
y=
"189"
width=
"2
63
"
height=
"32"
/>
<rect
key=
"frame"
x=
"97"
y=
"189"
width=
"2
99
"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"xhx-Wp-Bnu"
/>
</constraints>
...
...
@@ -154,7 +154,7 @@
<textInputTraits
key=
"textInputTraits"
keyboardType=
"decimalPad"
/>
</textField>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GM4-XT-zet"
>
<rect
key=
"frame"
x=
"15"
y=
"228.5"
width=
"3
60
"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"228.5"
width=
"3
96
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"sv0-Vq-2JA"
/>
...
...
@@ -167,20 +167,20 @@
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinruDetail"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4j6-NB-EJe"
>
<rect
key=
"frame"
x=
"3
53
"
y=
"249"
width=
"7"
height=
"7"
/>
<rect
key=
"frame"
x=
"3
89
"
y=
"249"
width=
"7"
height=
"7"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"7"
id=
"arg-rE-5Ph"
/>
<constraint
firstAttribute=
"width"
constant=
"7"
id=
"wwL-Eu-ppt"
/>
</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=
"yHy-KY-Uxt"
>
<rect
key=
"frame"
x=
"2
50
"
y=
"244.5"
width=
"93"
height=
"16"
/>
<rect
key=
"frame"
x=
"2
86
"
y=
"244.5"
width=
"93"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"u0a-wt-8oE"
>
<rect
key=
"frame"
x=
"97"
y=
"237.5"
width=
"
278
"
height=
"30"
/>
<rect
key=
"frame"
x=
"97"
y=
"237.5"
width=
"
314
"
height=
"30"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"IyB-by-Zv6"
/>
</constraints>
...
...
@@ -189,7 +189,7 @@
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Fwd-sD-T0h"
>
<rect
key=
"frame"
x=
"15"
y=
"275.5"
width=
"3
60
"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"275.5"
width=
"3
96
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"hIf-f1-pJO"
/>
...
...
@@ -202,7 +202,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tZB-Uo-CY9"
>
<rect
key=
"frame"
x=
"3
28
"
y=
"284.5"
width=
"32"
height=
"32"
/>
<rect
key=
"frame"
x=
"3
64
"
y=
"284.5"
width=
"32"
height=
"32"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"W2B-oA-DNZ"
/>
...
...
@@ -221,7 +221,7 @@
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6MO-V8-sMn"
>
<rect
key=
"frame"
x=
"
296
"
y=
"284.5"
width=
"32"
height=
"32"
/>
<rect
key=
"frame"
x=
"
332
"
y=
"284.5"
width=
"32"
height=
"32"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"32"
id=
"Rhx-1I-j8d"
/>
...
...
@@ -240,7 +240,7 @@
</connections>
</button>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"center"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fLT-jy-0yj"
>
<rect
key=
"frame"
x=
"2
13
"
y=
"284.5"
width=
"83"
height=
"32"
/>
<rect
key=
"frame"
x=
"2
49
"
y=
"284.5"
width=
"83"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"83"
id=
"Dnk-eA-tTw"
/>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"zZC-ZH-Pwa"
/>
...
...
@@ -260,33 +260,14 @@
</userDefinedRuntimeAttributes>
</textField>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n8K-YE-Cbm"
>
<rect
key=
"frame"
x=
"15"
y=
"322.5"
width=
"3
60
"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"322.5"
width=
"3
96
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"u0m-oK-dhI"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"检测报告:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vDi-yx-ULN"
>
<rect
key=
"frame"
x=
"15"
y=
"338.5"
width=
"66.5"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tcI-Te-Foi"
>
<rect
key=
"frame"
x=
"319"
y=
"323.5"
width=
"56"
height=
"46.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"56"
id=
"fnT-cU-Mhd"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"添加"
>
<color
key=
"titleColor"
name=
"蓝色字体颜色"
/>
</state>
<connections>
<action
selector=
"addAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"pDb-xc-dXM"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"82n-oH-pbs"
>
<rect
key=
"frame"
x=
"0.0"
y=
"3
69"
width=
"375
"
height=
"1"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"3
25"
width=
"411
"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"Zg1-gz-BTV"
/>
...
...
@@ -323,7 +304,6 @@
<constraint
firstItem=
"D4z-vi-ogp"
firstAttribute=
"top"
secondItem=
"eh6-mf-agL"
secondAttribute=
"bottom"
constant=
"15"
id=
"Q1Z-wo-KKO"
/>
<constraint
firstItem=
"u0a-wt-8oE"
firstAttribute=
"centerY"
secondItem=
"tfu-6M-ZkV"
secondAttribute=
"centerY"
id=
"S40-AN-xTC"
/>
<constraint
firstItem=
"fAB-2b-X7A"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"UC9-sJ-tAJ"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"tcI-Te-Foi"
secondAttribute=
"bottom"
id=
"UQC-2X-jit"
/>
<constraint
firstItem=
"tZB-Uo-CY9"
firstAttribute=
"top"
secondItem=
"Fwd-sD-T0h"
secondAttribute=
"bottom"
constant=
"8"
id=
"Vev-jI-uXS"
/>
<constraint
firstItem=
"82n-oH-pbs"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"Vji-Il-sx3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"cxO-LI-2Sg"
secondAttribute=
"trailing"
id=
"W5f-gk-ahc"
/>
...
...
@@ -336,7 +316,6 @@
<constraint
firstItem=
"DNW-1v-r8x"
firstAttribute=
"centerY"
secondItem=
"D4z-vi-ogp"
secondAttribute=
"centerY"
id=
"arJ-Ni-Rtj"
/>
<constraint
firstItem=
"s2D-dg-gBi"
firstAttribute=
"centerY"
secondItem=
"dXp-Fv-ghH"
secondAttribute=
"centerY"
id=
"axS-I9-xLN"
/>
<constraint
firstItem=
"Gda-ra-tfi"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"bHO-9G-Jhw"
/>
<constraint
firstItem=
"tcI-Te-Foi"
firstAttribute=
"top"
secondItem=
"n8K-YE-Cbm"
secondAttribute=
"bottom"
id=
"bKC-OP-2Kt"
/>
<constraint
firstItem=
"Fwd-sD-T0h"
firstAttribute=
"top"
secondItem=
"tfu-6M-ZkV"
secondAttribute=
"bottom"
constant=
"15"
id=
"bsU-gu-YLU"
/>
<constraint
firstItem=
"tfu-6M-ZkV"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"dgK-r0-YUm"
/>
<constraint
firstItem=
"tZB-Uo-CY9"
firstAttribute=
"leading"
secondItem=
"6MO-V8-sMn"
secondAttribute=
"trailing"
id=
"dgw-bv-QfM"
/>
...
...
@@ -345,16 +324,13 @@
<constraint
firstItem=
"chy-ny-kVr"
firstAttribute=
"top"
secondItem=
"JdU-F8-6ck"
secondAttribute=
"bottom"
constant=
"15"
id=
"ezY-Db-N2T"
/>
<constraint
firstItem=
"cxO-LI-2Sg"
firstAttribute=
"top"
secondItem=
"JdU-F8-6ck"
secondAttribute=
"bottom"
id=
"fOn-pK-ouG"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"eh6-mf-agL"
secondAttribute=
"trailing"
id=
"fsj-lq-pzi"
/>
<constraint
firstItem=
"vDi-yx-ULN"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"i6a-z0-kqm"
/>
<constraint
firstItem=
"D4z-vi-ogp"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"koc-uk-Wmg"
/>
<constraint
firstItem=
"6MO-V8-sMn"
firstAttribute=
"leading"
secondItem=
"fLT-jy-0yj"
secondAttribute=
"trailing"
id=
"l3w-Wi-Wv9"
/>
<constraint
firstItem=
"DNW-1v-r8x"
firstAttribute=
"leading"
secondItem=
"D4z-vi-ogp"
secondAttribute=
"trailing"
constant=
"15"
id=
"nsc-Yp-dmq"
/>
<constraint
firstItem=
"PST-FC-fG9"
firstAttribute=
"top"
secondItem=
"Fr1-SS-krs"
secondAttribute=
"bottom"
constant=
"22"
id=
"qVK-iA-Oem"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"tcI-Te-Foi"
secondAttribute=
"trailing"
id=
"sLq-DB-Dya"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Fr1-SS-krs"
secondAttribute=
"trailing"
constant=
"15"
id=
"sbK-G2-P0h"
/>
<constraint
firstItem=
"kGM-d5-IE6"
firstAttribute=
"centerY"
secondItem=
"PST-FC-fG9"
secondAttribute=
"centerY"
id=
"t0z-cG-nJ3"
/>
<constraint
firstItem=
"dXp-Fv-ghH"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"uRV-sZ-67i"
/>
<constraint
firstItem=
"vDi-yx-ULN"
firstAttribute=
"top"
secondItem=
"n8K-YE-Cbm"
secondAttribute=
"bottom"
constant=
"15"
id=
"wC9-61-YmI"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"4j6-NB-EJe"
secondAttribute=
"trailing"
constant=
"15"
id=
"wCj-Sr-ffc"
/>
<constraint
firstItem=
"4j6-NB-EJe"
firstAttribute=
"leading"
secondItem=
"yHy-KY-Uxt"
secondAttribute=
"trailing"
constant=
"10"
id=
"wja-2I-IyW"
/>
<constraint
firstItem=
"GM4-XT-zet"
firstAttribute=
"top"
secondItem=
"D4z-vi-ogp"
secondAttribute=
"bottom"
constant=
"15.5"
id=
"xee-zN-VOT"
/>
...
...
@@ -373,7 +349,7 @@
<outlet
property=
"rkPriceTf"
destination=
"kGM-d5-IE6"
id=
"azO-uu-LsV"
/>
<outlet
property=
"totalPriceTf"
destination=
"DNW-1v-r8x"
id=
"emO-uV-Hk1"
/>
</connections>
<point
key=
"canvasLocation"
x=
"1
31.15942028985509"
y=
"132.58928571428572
"
/>
<point
key=
"canvasLocation"
x=
"1
55.79710144927537"
y=
"117.1875
"
/>
</tableViewCell>
</objects>
<resources>
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/NewRKVc.swift
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
入库/
NewRKVc.swift
View file @
21ea9098
...
...
@@ -9,43 +9,260 @@
import
UIKit
import
LGButton
class
NewRKVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewOnlyRKCellDelegate
{
class
NewRKVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewOnlyRKCellDelegate
,
NewSelectItemVcDelegate
,
NewSelectWarehouseVCDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertTextViewDelegate
{
//MARK: - 提交申请
func
sureGeliAlertTextViewAction
(
sender
:
String
)
{
HUD
.
show
(
.
progress
)
if
sender
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请填写备注"
),
delay
:
1.2
)
return
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
warehouse
=
poiArr
[
selectIdx
!
]
if
lgBtnTitLbl
.
text
==
"提交申请"
{
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
rkSelectArr
.
forEach
{
(
model
)
in
var
rkjg
:
Float
=
0
var
total
:
Float
=
0
if
model
.
RKJG
!=
nil
{
rkjg
=
model
.
RKJG
!
total
=
rkjg
*
Float
(
model
.
RKSL
!
)
}
var
shelf_life
=
model
.
BZQ
if
model
.
DayType
==
0
{
shelf_life
=
model
.
BZQ
!
*
30
}
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
,
//MARK: - 时间戳申请
"production_data"
:
1591170275
as
Any
,
"shelf_life"
:
shelf_life
as
Any
,
"report_id"
:
0
as
Any
]
goodsInfoArr
?
.
append
(
goods
)
}
let
goods_info
=
dataChangeString
(
sender
:
goodsInfoArr
!
)
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"i_type"
:
typeSelect
!
+
1
as
Any
,
"apply_remark"
:
sender
as
Any
,
"goods_info"
:
goods_info
as
Any
,
]
GoodsInputApply
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
return
}
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
rkSelectArr
.
forEach
{
(
model
)
in
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
}
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
,
//MARK: - 时间戳直入
"production_data"
:
1591170275
as
Any
,
"shelf_life"
:
shelf_life
as
Any
,
"report_id"
:
0
as
Any
]
goodsInfoArr
?
.
append
(
goods
)
}
let
goods_info
=
dataChangeString
(
sender
:
goodsInfoArr
!
)
//直接入库
let
p
=
poiArr
[
selectIdx
!
]
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"w_id"
:
warehouse
.
w_id
as
Any
,
"p_id"
:
p
.
p_id
as
Any
,
"i_type"
:
typeSelect
!
+
1
as
Any
,
"apply_remark"
:
sender
as
Any
,
"goods_info"
:
goods_info
as
Any
,
]
GoodsInput
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
@IBAction
func
gmAction
(
_
sender
:
Any
)
{
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
delegate
=
self
self
.
view
.
window
?
.
addSubview
(
alterView
)
}
var
poiArr
:
Array
<
ShopWarehouseDetailDataPositionModel
>
=
[]
var
goods_id
:
Int
?
@IBOutlet
weak
var
lgBtnTitLbl
:
UILabel
!
@IBOutlet
weak
var
lgBtn
:
LGButton
!
var
isGm
=
false
let
titleArr
=
[
"仓库:"
,
"库位:"
,
"入库类型:"
,
"入库时间:"
]
var
holderArr
=
[
"默认仓库"
,
"默认库位"
,
"请选择入库类型"
,
"时间"
]
var
dataArr
:
Array
<
Any
>
?
=
[]
//入库类型
var
rkTypeArr
=
[
"采购"
,
"调入"
,
"退货"
,
"生产"
,
"调出被拒绝"
,
"外采"
,
"其他"
,
"固定采购"
,
"临时采购"
]
var
typeSelect
:
Int
?
var
glSelectView
:
GLAlertSelectView
?
@IBOutlet
weak
var
btmView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
var
rkSelectArr
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]
//仓库选择
var
rkDatas
:
Array
<
InputInitInfoGoodsInfoModel
>
=
[]
//仓库
var
rkWareHouseArr
:
Array
<
InputInitInfoWareHouseResModel
>
=
[]
//库位选择
var
selectIdx
:
Int
?
//库位选择
var
authArr
:
Array
<
String
>
=
[]
//权限
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
lgBtn
.
isHidden
=
!
isGm
lgBtnTitLbl
.
isHidden
=
!
isGm
let
strNowTime
=
getTimeNow
()
holderArr
.
insert
(
strNowTime
,
at
:
3
)
holderArr
.
remove
(
at
:
4
)
navbar
.
title
=
"入库"
self
.
view
.
addSubview
(
navbar
)
SetTopFrameView
(
view
:
listView
,
btmView
:
btmView
)
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"CRKBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"CRKBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"NewOnlyRKCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"NewOnlyRKCell"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
InputInitInfo
([
"user_token"
:
UserToken
as
Any
,
"goods_id"
:
goods_id
as
Any
],
success
:
{
(
data
)
in
let
model
=
data
as!
InputInitInfoModel
model
.
data
?
.
auth
?
.
forEach
({
(
str
)
in
self
.
authArr
.
append
(
str
)
})
if
self
.
authArr
.
contains
(
"63"
)
==
false
&&
self
.
authArr
.
contains
(
"65"
)
==
false
{
self
.
listView
.
isHidden
=
true
self
.
lgBtn
.
isHidden
=
true
self
.
lgBtnTitLbl
.
isHidden
=
true
HUD
.
flash
(
.
label
(
"亲,您不具备编辑的权限"
),
delay
:
1.2
)
return
}
self
.
lgBtnTitLbl
.
text
=
"提交申请"
// if self.authArr.contains("63"){
// self.isGm = true
// self.lgBtnTitLbl.text = "直接入库"
// }
model
.
data
?
.
warehouse_res
?
.
forEach
({
(
item
)
in
self
.
rkWareHouseArr
.
append
(
item
)
})
model
.
data
?
.
goods_info
?
.
forEach
({
(
item
)
in
self
.
rkDatas
.
append
(
item
)
})
self
.
listView
.
reloadData
()
})
{
(
error
)
in
}
// Do any additional setup after loading the view.
}
//MARK: - 提交任务方法
@IBAction
func
actionClick
(
_
sender
:
UIButton
)
{
if
sender
.
tag
==
0
{
//提交并新增
}
else
{
//提交
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
section
==
1
{
return
}
if
indexPath
.
row
==
2
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
indexPath
.
row
if
typeSelect
!=
nil
{
view
.
selectNum
=
typeSelect
view
.
tempNum
=
view
.
selectNum
}
view
.
isOnlySelectKuWei
=
true
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择入库类型"
view
.
dataArr
=
rkTypeArr
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
if
indexPath
.
row
==
0
{
let
vc
=
NewSelectWarehouseVC
()
vc
.
rkWareHouseArr
=
rkWareHouseArr
vc
.
delegate
=
self
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
if
indexPath
.
row
==
1
{
if
poiArr
.
count
>
0
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
if
selectIdx
!=
nil
{
view
.
selectNum
=
selectIdx
view
.
tempNum
=
view
.
selectNum
}
view
.
isOnlySelectKuWei
=
true
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择库位"
var
pArr
:
Array
<
String
>
=
[]
for
item
in
poiArr
{
let
str
=
item
.
p_name
!
+
"(库存数:
\(
item
.
inventory_count
!
)
"
pArr
.
append
(
str
)
}
view
.
dataArr
=
pArr
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
else
{
HUD
.
flash
(
.
label
(
"请选择仓库"
),
delay
:
1.2
)
}
}
}
//MARK: - cellForRow
...
...
@@ -53,6 +270,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
if
indexPath
.
section
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"NewOnlyRKCell"
)
as!
NewOnlyRKCell
cell
.
delegate
=
self
let
data
=
rkSelectArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
data
.
goods_name
cell
.
detailLbl
.
text
=
data
.
spec_str
!
+
" "
+
"¥
\(
data
.
price
!
)
"
return
cell
}
...
...
@@ -72,10 +293,13 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
//MARK: - 入库商品delegate
func
NewOnlyRKCellDateTypeSelect
(
sender
:
Int
,
cell
:
NewOnlyRKCell
)
{
// 0:月, 1:天
let
data
=
rkSelectArr
[
cell
.
tag
]
data
.
DayType
=
sender
}
func
NewOnlyRKCellDateSelect
(
cell
:
NewOnlyRKCell
)
{
//跳转日期选择
}
func
NewOnlyRKCellAddRepord
(
cell
:
NewOnlyRKCell
)
{
...
...
@@ -84,23 +308,55 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
func
NewOnlyRKCellDel
(
cell
:
NewOnlyRKCell
)
{
//删除
rkSelectArr
.
remove
(
at
:
cell
.
tag
)
listView
.
reloadData
()
}
func
NewOnlyRKCellTFinput
(
text
:
String
,
inputType
:
Int
,
cell
:
NewOnlyRKCell
)
{
//text:数据 inputType: 100-保质期 101-总价 102-入库数量 103-入库价格
let
num
=
text
as
NSString
let
data
=
rkSelectArr
[
cell
.
tag
]
switch
inputType
{
case
100
:
data
.
BZQ
=
num
.
integerValue
break
case
101
:
data
.
ZJ
=
num
.
floatValue
break
case
102
:
data
.
RKSL
=
num
.
integerValue
if
data
.
RKJG
!=
nil
&&
data
.
RKSL
!=
nil
{
data
.
ZJ
=
data
.
RKJG
!
*
Float
(
data
.
RKSL
!
)
cell
.
totalPriceTf
.
text
=
"
\(
data
.
ZJ
!
)
"
}
break
case
103
:
data
.
RKJG
=
num
.
floatValue
if
data
.
RKJG
!=
nil
&&
data
.
RKSL
!=
nil
{
data
.
ZJ
=
data
.
RKJG
!
*
Float
(
data
.
RKSL
!
)
cell
.
totalPriceTf
.
text
=
"
\(
data
.
ZJ
!
)
"
}
break
default
:
break
}
}
//添加商品
@objc
func
addProduct
(){
dataArr
?
.
append
(
"1"
)
listView
.
reloadData
()
let
vc
=
NewSelectItemVc
()
vc
.
delegate
=
self
vc
.
rkDatas
=
rkDatas
vc
.
rkSelectArr
=
rkSelectArr
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
0
{
return
49
}
return
3
70
return
3
26
}
func
setCellUI
(
cell
:
CRKBtnCell
){
cell
.
contentLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
...
...
@@ -148,9 +404,9 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
lbl
.
sizeToFit
()
view
.
addSubview
(
lbl
)
if
dataArr
!
.
count
>
0
{
if
rkSelectArr
.
count
>
0
{
let
lbl2
=
UILabel
(
frame
:
CGRect
(
x
:
lbl
.
frame
.
maxX
+
5
,
y
:
16
,
width
:
fullScreenWidth
,
height
:
18.5
))
lbl2
.
text
=
"(共
\(
dataArr
!
.
count
)
件)"
lbl2
.
text
=
"(共
\(
rkSelectArr
.
count
)
件)"
lbl2
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
lbl2
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
view
.
addSubview
(
lbl2
)
...
...
@@ -162,7 +418,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
if
section
==
1
{
if
dataArr
!
.
count
>
0
{
if
rkSelectArr
.
count
>
0
{
return
49
}
return
39
...
...
@@ -178,6 +434,49 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
if
section
==
0
{
return
4
}
return
dataArr
!.
count
return
rkSelectArr
.
count
}
func
NewSelectWarehouseVCFinish
(
kuWeiArr
:
Array
<
ShopWarehouseDetailDataPositionModel
>
,
data
:
InputInitInfoWareHouseResModel
)
{
holderArr
.
insert
(
data
.
w_name
!
,
at
:
0
)
holderArr
.
remove
(
at
:
1
)
poiArr
.
removeAll
()
kuWeiArr
.
forEach
{
(
item
)
in
poiArr
.
append
(
item
)
}
listView
.
reloadData
()
}
func
NewSelectItemVcSelect
(
datas
:
Array
<
InputInitInfoGoodsInfoModel
>
)
{
rkSelectArr
.
removeAll
()
datas
.
forEach
{
(
model
)
in
rkSelectArr
.
append
(
model
)
}
listView
.
reloadData
()
}
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
if
view
.
tag
==
2
{
typeSelect
=
selectnum
}
else
{
selectIdx
=
selectnum
}
view
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
if
view
.
tag
==
2
{
typeSelect
=
selectNum
holderArr
.
insert
(
rkTypeArr
[
typeSelect
!
],
at
:
2
)
holderArr
.
remove
(
at
:
3
)
}
else
{
selectIdx
=
selectNum
let
data
=
poiArr
[
selectIdx
!
]
holderArr
.
insert
(
data
.
p_name
!
,
at
:
1
)
holderArr
.
remove
(
at
:
2
)
}
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
listView
.
reloadData
()
}
@IBAction
func
actionClick
(
_
sender
:
UIButton
)
{
}
}
GeliBusinessPlatform/ViewController/1.1入库&出库/NewRKVc.xib
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
入库/
NewRKVc.xib
View file @
21ea9098
...
...
@@ -23,11 +23,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"laH-6h-Yuu"
>
<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"
/>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Y16-6N-pRK"
>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Y16-6N-pRK"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DkD-m0-Phd"
>
...
...
@@ -82,7 +82,7 @@
<outlet
property=
"delegate"
destination=
"-1"
id=
"qQp-u4-XGg"
/>
</connections>
</tableView>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Zg-yA-Y0g"
customClass=
"LGButton"
customModule=
"LGButton"
>
<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"
/>
<userDefinedRuntimeAttributes>
...
...
@@ -98,7 +98,7 @@
<action
selector=
"gmAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"G4f-wv-AcH"
/>
</connections>
</view>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"直接入库
"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OXL-LJ-d3p"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"提交申请
"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OXL-LJ-d3p"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"tvW-rk-iXN"
/>
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewSelectWarehouseVC.swift
0 → 100644
View file @
21ea9098
//
// NewSelectWarehouseVC.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/6/3.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
NewSelectWarehouseVCDelegate
{
func
NewSelectWarehouseVCFinish
(
kuWeiArr
:
Array
<
ShopWarehouseDetailDataPositionModel
>
,
data
:
InputInitInfoWareHouseResModel
)
}
class
NewSelectWarehouseVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
var
delegate
:
NewSelectWarehouseVCDelegate
?
var
rkWareHouseArr
:
Array
<
InputInitInfoWareHouseResModel
>
=
[]
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
searchBg
:
UIView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"选择仓库"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
searchBg
,
height
:
0
)
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"WarehoseMangementCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"WarehoseMangementCell"
)
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
wModel
=
rkWareHouseArr
[
indexPath
.
row
]
WarehouseDetail
([
"user_token"
:
UserToken
as
Any
,
"w_id"
:
wModel
.
w_id
as
Any
],
success
:
{
(
data
)
in
var
arr
:
Array
<
ShopWarehouseDetailDataPositionModel
>
=
[]
let
model
=
data
as!
ShopWarehouseDetailModel
model
.
data
?
.
position_res
?
.
forEach
({
(
item
)
in
arr
.
append
(
item
)
})
self
.
delegate
?
.
NewSelectWarehouseVCFinish
(
kuWeiArr
:
arr
,
data
:
wModel
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WarehoseMangementCell"
)
as!
WarehoseMangementCell
cell
.
tag
=
indexPath
.
row
let
data
=
rkWareHouseArr
[
cell
.
tag
]
cell
.
statusLbl
.
isHidden
=
false
cell
.
nameLbl
.
text
=
data
.
w_name
cell
.
kuCunLbl
.
text
=
"库存位"
+
StringByInt
(
number
:
data
.
inventory_count
!
)
cell
.
adrLbl
.
text
=
data
.
w_address
switch
data
.
w_type
{
case
0
:
//异常
cell
.
statusLbl
.
isHidden
=
true
break
case
1
:
cell
.
statusLbl
.
backgroundColor
=
UIColor
(
named
:
"标题背景色"
)
cell
.
statusLbl
.
alpha
=
1
break
case
2
:
cell
.
statusLbl
.
backgroundColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
statusLbl
.
alpha
=
0.5
break
case
3
:
cell
.
statusLbl
.
backgroundColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
statusLbl
.
alpha
=
1
break
default
:
break
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
rkWareHouseArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
94
}
}
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewSelectWarehouseVC.xib
0 → 100644
View file @
21ea9098
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
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=
"16087"
/>
<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"
customClass=
"NewSelectWarehouseVC"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"q3W-Jw-Xzp"
id=
"Lin-fT-zUM"
/>
<outlet
property=
"searchBg"
destination=
"68c-14-FJR"
id=
"Vl6-y6-bYl"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"q3W-Jw-Xzp"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"852"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"cA8-I8-Hkw"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"E5G-KO-Odo"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"68c-14-FJR"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"0.0"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"frj-Gs-H2H"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"68c-14-FJR"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"G1P-qk-at1"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"q3W-Jw-Xzp"
secondAttribute=
"bottom"
id=
"NZo-ab-3ml"
/>
<constraint
firstItem=
"q3W-Jw-Xzp"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"Q1a-Wr-51X"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"68c-14-FJR"
secondAttribute=
"trailing"
id=
"gtk-un-YEI"
/>
<constraint
firstItem=
"68c-14-FJR"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"h3E-6S-069"
/>
<constraint
firstItem=
"q3W-Jw-Xzp"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"qZy-pZ-9Jb"
/>
<constraint
firstItem=
"q3W-Jw-Xzp"
firstAttribute=
"top"
secondItem=
"68c-14-FJR"
secondAttribute=
"bottom"
id=
"sE9-zu-MnY"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"123.88392857142857"
/>
</view>
</objects>
</document>
GeliBusinessPlatform/ViewController/1.1入库&出库/CKGmCell.swift
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
出库/
CKGmCell.swift
View file @
21ea9098
File moved
GeliBusinessPlatform/ViewController/1.1入库&出库/CKGmCell.xib
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
出库/
CKGmCell.xib
View file @
21ea9098
File moved
GeliBusinessPlatform/ViewController/1.1入库&出库/CKNonGmCell.swift
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
出库/
CKNonGmCell.swift
View file @
21ea9098
File moved
GeliBusinessPlatform/ViewController/1.1入库&出库/CKNonGmCell.xib
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
出库/
CKNonGmCell.xib
View file @
21ea9098
File moved
GeliBusinessPlatform/ViewController/1.1入库&出库/NewCKVc.swift
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
出库/
NewCKVc.swift
View file @
21ea9098
File moved
GeliBusinessPlatform/ViewController/1.1入库&出库/NewCKVc.xib
→
GeliBusinessPlatform/ViewController/1.1入库&出库/
出库/
NewCKVc.xib
View file @
21ea9098
File moved
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementCell.xib
View file @
21ea9098
...
...
@@ -2,6 +2,7 @@
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
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=
"16087"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
...
...
@@ -145,7 +146,7 @@
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
21ea9098
...
...
@@ -494,8 +494,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
if
rowModel
.
is_show
==
1
{
if
isTrue
{
print
(
"入库哦哦"
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
let
vc
=
NewRKVc
()
vc
.
goods_id
=
changeGoodsResModel
?
.
goods_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// let vc = RuKuViewController()
// vc.barTitle = "入库"
// self.navigationController?.pushViewController(vc, animated: true)
...
...
@@ -524,8 +527,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}
else
{
print
(
"入库哦哦"
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
let
vc
=
NewRKVc
()
vc
.
goods_id
=
changeGoodsResModel
?
.
goods_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// let vc = RuKuViewController()
// vc.barTitle = "入库"
// self.navigationController?.pushViewController(vc, animated: true)
...
...
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