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
fab58ede
Commit
fab58ede
authored
Jun 12, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.3版本上架版
parent
92396de3
Changes
36
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
1143 additions
and
313 deletions
+1143
-313
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+40
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+68
-244
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/Contents.json
...form/Assets.xcassets/工作中心/upapptop.imageset/Contents.json
+2
-3
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/top@2x.png
...latform/Assets.xcassets/工作中心/upapptop.imageset/top@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/top@3x.png
...latform/Assets.xcassets/工作中心/upapptop.imageset/top@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop.png
...tform/Assets.xcassets/工作中心/upapptop.imageset/upapptop.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@2x.png
...rm/Assets.xcassets/工作中心/upapptop.imageset/upapptop@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@3x.png
...rm/Assets.xcassets/工作中心/upapptop.imageset/upapptop@3x.png
+0
-0
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+23
-6
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+4
-0
GeliBusinessPlatform/Model/PurchaseInterface.swift
GeliBusinessPlatform/Model/PurchaseInterface.swift
+38
-5
GeliBusinessPlatform/Model/PurchaseModel/PurchaseModel.swift
GeliBusinessPlatform/Model/PurchaseModel/PurchaseModel.swift
+228
-0
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
+2
-1
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
+22
-10
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
+2
-13
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
...form/ViewController/个人中心/PersonCenterViewController.swift
+3
-0
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementListVC.swift
...latform/ViewController/仓库管理/WarehoseMangementListVC.swift
+2
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+11
-8
GeliBusinessPlatform/ViewController/供应商管理/GYSGLCell.xib
GeliBusinessPlatform/ViewController/供应商管理/GYSGLCell.xib
+3
-3
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+2
-0
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
...inessPlatform/ViewController/地图/SJMapViewController.swift
+5
-3
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+7
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.xib
...inessPlatform/ViewController/工作中心/WorkCViewController.xib
+1
-0
GeliBusinessPlatform/ViewController/收支统计/ShouZhiTongJiViewController.swift
...orm/ViewController/收支统计/ShouZhiTongJiViewController.swift
+10
-1
GeliBusinessPlatform/ViewController/收支统计/ShouZhiTongJiViewController.xib
...tform/ViewController/收支统计/ShouZhiTongJiViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+18
-4
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+3
-0
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
...latform/ViewController/订单列表/OrderListViewController.swift
+4
-0
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.swift
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.swift
+242
-0
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.xib
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.xib
+22
-0
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.swift
...Platform/ViewController/采购单列表/CGDListViewController.swift
+175
-0
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.xib
...ssPlatform/ViewController/采购单列表/CGDListViewController.xib
+67
-0
GeliBusinessPlatform/ViewController/采购单详情/CGDListCell.swift
GeliBusinessPlatform/ViewController/采购单详情/CGDListCell.swift
+128
-7
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
+7
-0
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.xib
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.xib
+4
-1
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
fab58ede
...
...
@@ -311,6 +311,11 @@
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 */
;
};
E0EFB9C624930C0D005FB0CD
/* CGDListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EFB9C424930C0D005FB0CD
/* CGDListViewController.swift */
;
};
E0EFB9C724930C0D005FB0CD
/* CGDListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EFB9C524930C0D005FB0CD
/* CGDListViewController.xib */
;
};
E0EFB9CA24930DD5005FB0CD
/* CGDListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EFB9C824930DD5005FB0CD
/* CGDListVC.swift */
;
};
E0EFB9CB24930DD5005FB0CD
/* CGDListVC.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EFB9C924930DD5005FB0CD
/* CGDListVC.xib */
;
};
E0EFB9CE2493189D005FB0CD
/* PurchaseModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0EFB9CD2493189D005FB0CD
/* PurchaseModel.swift */
;
};
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 */
;
};
...
...
@@ -857,6 +862,11 @@
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>"
;
};
E0EFB9C424930C0D005FB0CD
/* CGDListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CGDListViewController.swift
;
sourceTree
=
"<group>"
;
};
E0EFB9C524930C0D005FB0CD
/* CGDListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CGDListViewController.xib
;
sourceTree
=
"<group>"
;
};
E0EFB9C824930DD5005FB0CD
/* CGDListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CGDListVC.swift
;
sourceTree
=
"<group>"
;
};
E0EFB9C924930DD5005FB0CD
/* CGDListVC.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CGDListVC.xib
;
sourceTree
=
"<group>"
;
};
E0EFB9CD2493189D005FB0CD
/* PurchaseModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PurchaseModel.swift
;
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>"
;
};
...
...
@@ -1671,6 +1681,7 @@
E09B03A92445B09200211A51
/* Model */
=
{
isa
=
PBXGroup
;
children
=
(
E0EFB9CC24931877005FB0CD
/* PurchaseModel */
,
F9697240248F6F550010D39B
/* VendorModel */
,
E0AA3A85248F3C1B00CBFC27
/* StatisticsModel */
,
E0571C68248DC5CD00E85711
/* AdrModel */
,
...
...
@@ -1736,6 +1747,7 @@
E09F4C9A2452BEA000BE033D
/* 寄派方式 */
,
E0B94620245671AD00FBEC9A
/* 代客下单(购物) */
,
E042F72B245272AC00CDFA12
/* 代客下单(货运) */
,
E0EFB9C324930BEE005FB0CD
/* 采购单列表 */
,
F961D2722450373B007FBE70
/* 订单列表 */
,
E0F97B05245161E6001BD600
/* 商品详情 */
,
F969BF17244EE42700C79953
/* 商品管理 */
,
...
...
@@ -2020,6 +2032,25 @@
path
=
"预售价格修改"
;
sourceTree
=
"<group>"
;
};
E0EFB9C324930BEE005FB0CD
/* 采购单列表 */
=
{
isa
=
PBXGroup
;
children
=
(
E0EFB9C424930C0D005FB0CD
/* CGDListViewController.swift */
,
E0EFB9C524930C0D005FB0CD
/* CGDListViewController.xib */
,
E0EFB9C824930DD5005FB0CD
/* CGDListVC.swift */
,
E0EFB9C924930DD5005FB0CD
/* CGDListVC.xib */
,
);
path
=
"采购单列表"
;
sourceTree
=
"<group>"
;
};
E0EFB9CC24931877005FB0CD
/* PurchaseModel */
=
{
isa
=
PBXGroup
;
children
=
(
E0EFB9CD2493189D005FB0CD
/* PurchaseModel.swift */
,
);
path
=
PurchaseModel
;
sourceTree
=
"<group>"
;
};
E0F97B05245161E6001BD600
/* 商品详情 */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2760,6 +2791,7 @@
E013D7892484B1B90092DE46
/* CRKXiangQVC.xib in Resources */
,
E0A409C92464010D00CFF109
/* FirstCell.xib in Resources */
,
E0EABAE82487748500F6CA8D
/* NewSelectWarehouseVC.xib in Resources */
,
E0EFB9CB24930DD5005FB0CD
/* CGDListVC.xib in Resources */
,
E00E48C32457C0D600F16545
/* XuanZeShangPinViewController.xib in Resources */
,
F9023F6A2449A50900DD5A63
/* TitleContentCell.xib in Resources */
,
F956D5A5246A2D9C003FF510
/* Feature in Resources */
,
...
...
@@ -2826,6 +2858,7 @@
F95A9ED9245520E500867849
/* OrderListVC.xib in Resources */
,
E099B589246BF8FA009F587F
/* OrderDViewController.xib in Resources */
,
E0BE8A91245A9B9600E80134
/* YingFuZhangKuanCell.xib in Resources */
,
E0EFB9C724930C0D005FB0CD
/* CGDListViewController.xib in Resources */
,
E02DDD9A24501A5B00ABB707
/* DelGuiGeCell.xib in Resources */
,
F971D7B3248B6432007F1619
/* address_new.json in Resources */
,
E00D85E8244561FE00F5F816
/* Preview Assets.xcassets in Resources */
,
...
...
@@ -3004,6 +3037,7 @@
F93615DD2480B693004187F9
/* WorkcenterIndexModel.swift in Sources */
,
F95567A72453DA86009674AB
/* WarehoseMangementListVC.swift in Sources */
,
F933F6CF2452C68B00189561
/* PKHUDErrorView.swift in Sources */
,
E0EFB9CE2493189D005FB0CD
/* PurchaseModel.swift in Sources */
,
F933C42E2484A66C0058940C
/* WorkTestModel.swift in Sources */
,
F933F6C42452C68B00189561
/* PKHUD.swift in Sources */
,
E0F97B102451728D001BD600
/* AddGuiGeCell.swift in Sources */
,
...
...
@@ -3039,6 +3073,7 @@
F9531F412465108800724BEE
/* JXPhotoBrowserView.swift in Sources */
,
F956D5AB246A2D9C003FF510
/* LMNNumberingLine.m in Sources */
,
F96E9D5B246656A700B5B94A
/* HGImageCollectionViewCell.swift in Sources */
,
E0EFB9C624930C0D005FB0CD
/* CGDListViewController.swift in Sources */
,
E0D197C02448431C002B080C
/* BabyCentralManager.m in Sources */
,
F956D5A9246A2D9C003FF510
/* LMNLineChain.m in Sources */
,
E030DF362485DD3E002764D3
/* NewRKCell.swift in Sources */
,
...
...
@@ -3224,6 +3259,7 @@
E02DDD9924501A5B00ABB707
/* DelGuiGeCell.swift in Sources */
,
E0CC847E24823602009B1FE9
/* WarehouseIoListModel.swift in Sources */
,
E088CC932447124D000DAA8A
/* BindViewController.swift in Sources */
,
E0EFB9CA24930DD5005FB0CD
/* CGDListVC.swift in Sources */
,
E007B1D8248F7276004D14CC
/* CGDCell.swift in Sources */
,
E0B9461E24566B3100FBEC9A
/* TitleAndTFAndBtnCell.swift in Sources */
,
E042F74324529B7B00CDFA12
/* JiTuoWuXinXiView.swift in Sources */
,
...
...
@@ -3415,7 +3451,7 @@
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1.2
1
;
CURRENT_PROJECT_VERSION
=
1.2
2
;
DEFINES_MODULE
=
NO
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_TEAM
=
K48346UACH
;
...
...
@@ -3460,7 +3496,7 @@
"$(PROJECT_DIR)/GeliBusinessPlatform/Define/融云"
,
"$(PROJECT_DIR)/GeliBusinessPlatform/Other/JPush/Lib"
,
);
MARKETING_VERSION
=
1.
2.1
;
MARKETING_VERSION
=
1.
3
;
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"-ObjC"
,
...
...
@@ -3547,7 +3583,7 @@
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1.2
1
;
CURRENT_PROJECT_VERSION
=
1.2
2
;
DEFINES_MODULE
=
NO
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_TEAM
=
K48346UACH
;
...
...
@@ -3592,7 +3628,7 @@
"$(PROJECT_DIR)/GeliBusinessPlatform/Define/融云"
,
"$(PROJECT_DIR)/GeliBusinessPlatform/Other/JPush/Lib"
,
);
MARKETING_VERSION
=
1.
2.1
;
MARKETING_VERSION
=
1.
3
;
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"-ObjC"
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
fab58ede
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
fab58ede
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/Contents.json
View file @
fab58ede
{
"images"
:
[
{
"filename"
:
"upapptop.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"
upapp
top@2x.png"
,
"filename"
:
"top@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"
upapp
top@3x.png"
,
"filename"
:
"top@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
...
...
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/top@2x.png
0 → 100644
View file @
fab58ede
59.6 KB
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/top@3x.png
0 → 100644
View file @
fab58ede
108 KB
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop.png
deleted
100644 → 0
View file @
92396de3
24.4 KB
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@2x.png
deleted
100644 → 0
View file @
92396de3
64.3 KB
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@3x.png
deleted
100644 → 0
View file @
92396de3
118 KB
GeliBusinessPlatform/Define/Define.swift
View file @
fab58ede
...
...
@@ -27,13 +27,12 @@ let systemVersion = (UIDevice.current.systemVersion as String)
//接口地址
//test
let
SERVERCE_ImageHost
=
"https://z.gelifood.com/"
let
SERVERCE_HOST
=
"https://z.gelifood.com/admin/"
//
let SERVERCE_ImageHost = "https://zx.gelifood.com/"
//
let SERVERCE_HOST = "https://zx.gelifood.com/admin/"
//
let SERVERCE_ImageHost = "https://z.gelifood.com/"
//
let SERVERCE_HOST = "https://z.gelifood.com/admin/"
let
SERVERCE_ImageHost
=
"https://zx.gelifood.com/"
let
SERVERCE_HOST
=
"https://zx.gelifood.com/admin/"
//online
//let SERVERCE_ImageHost = "https://api.laigewan.com/upload/images/"
//let SERVERCE_HOST = "http://a.gelifood.com/apia"
//视图常量
let
IS_IPHONE_X
=
__CGSizeEqualToSize
(
CGSize
(
width
:
375.0
,
height
:
812.0
),
UIScreen
.
main
.
bounds
.
size
)
||
__CGSizeEqualToSize
(
CGSize
(
width
:
812.0
,
height
:
375.0
),
UIScreen
.
main
.
bounds
.
size
)
||
__CGSizeEqualToSize
(
CGSize
(
width
:
414.0
,
height
:
896.0
),
UIScreen
.
main
.
bounds
.
size
)
||
__CGSizeEqualToSize
(
CGSize
(
width
:
896.0
,
height
:
414.0
),
UIScreen
.
main
.
bounds
.
size
)
...
...
@@ -295,6 +294,16 @@ func dayAndTimeByDouble (sender : Double ) -> String {
dformatter
.
dateFormat
=
"yyyy.MM.dd HH:mm"
return
dformatter
.
string
(
from
:
data
)
}
func
dateConvertString
(
date
:
Date
,
dateFormat
:
String
=
"yyyy-MM-dd"
)
->
String
{
let
timeZone
=
TimeZone
.
init
(
identifier
:
"UTC"
)
let
formatter
=
DateFormatter
()
formatter
.
timeZone
=
timeZone
formatter
.
locale
=
Locale
.
init
(
identifier
:
"zh_CN"
)
formatter
.
dateFormat
=
dateFormat
let
date
=
formatter
.
string
(
from
:
date
)
return
date
.
components
(
separatedBy
:
" "
)
.
first
!
}
//MARK: -- 格式化数字
func
formatShowNumber
(
value
:
String
)
->
String
{
if
value
.
isEmpty
{
...
...
@@ -349,6 +358,14 @@ func getDicFromJSONString(jsonString:String) ->Dictionary<String,Any>{
//MARK: - 获取系统当前时间
func
getTimeDayNow
()
->
String
{
let
date
=
Date
()
let
timeFormatter
=
DateFormatter
()
timeFormatter
.
dateFormat
=
"yyyy-MM-dd"
return
timeFormatter
.
string
(
from
:
date
)
as
String
}
func
getTimeNow
()
->
String
{
let
date
=
Date
()
...
...
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
fab58ede
...
...
@@ -146,5 +146,9 @@
<string>
Vender/vendorList
</string>
<key>
新增采购单
</key>
<string>
Purchase/purchaseOrderAdd
</string>
<key>
采购单列表
</key>
<string>
Purchase/purchaseOrderList
</string>
<key>
采购单详情
</key>
<string>
Purchase/purchaseOrderDetail
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/PurchaseInterface.swift
View file @
fab58ede
...
...
@@ -12,10 +12,10 @@ import SwiftyJSON
import
ObjectMapper
//MARK:--供应商列表 +详情
/* 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
//ven_id 供应商id
//purchase_time 采购时间,时间戳格式
//params-key(
//user_token(验证token)
//ven_id 供应商id
//purchase_time 采购时间,时间戳格式
purchaser 采购人
type 采购单类型:1临时采购,2固定采购
remarks 采购订单备注
...
...
@@ -29,7 +29,7 @@ import ObjectMapper
unit 单位
price 价格(售价)
amount 采购价
*/
*/
func
purchaseOrderAdd
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"新增采购单"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
...
...
@@ -38,3 +38,36 @@ func purchaseOrderAdd(_ params:[String:Any],success:@escaping (_ res:Any)->(),fa
failture
(
error
)
}
}
//MARK:--采购单列表
/* 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
page 分页
keyword 搜索关键词
order_status 订单状态(1未审核,2审核通过,3审核不通过,4已完成)
*/
func
purchaseOrderList
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"采购单列表"
,
params
,
{
(
rep
:
DataResponse
<
PurchaseOrderListModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--采购单详情
/* 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
po_id 采购单id
*/
func
purchaseOrderDetail
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"采购单详情"
,
params
,
{
(
rep
:
DataResponse
<
PurchaseOrderDetailModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/PurchaseModel/PurchaseModel.swift
0 → 100644
View file @
fab58ede
//
// PurchaseModel.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/6/12.
// Copyright © 2020 junye lu. All rights reserved.
//
import
Foundation
import
ObjectMapper
//获取统计+权限
class
PurchaseOrderListModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
PurchaseOrderListDataModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
PurchaseOrderListDataModel
:
Mappable
{
var
po_id
:
Int
?
//采购单id
var
po_no
:
String
?
//采购单号
var
ven_id
:
Int
?
//供应商id
var
total_num
:
Int
?
//采购总数量
var
purchaser
:
String
?
//采购人
var
total_amount
:
String
?
//采购总金额
var
pay_status
:
Int
?
//付款状态(1未付款,2已付款,3月结,4欠款)
var
pay_type
:
Int
?
//支付类型(0未支付,1现金,2转账(私),3转账(公),4转账(微信),5转账(支付宝))
var
order_status
:
Int
?
//订单状态(1未审核,2审核通过,3审核不通过,4已撤销,5已完成)
var
old_order_status
:
Int
?
//订单状态(1未审核,2审核通过,3审核不通过,4已撤销,5已完成)
var
push_status
:
Int
?
//入库状态(1未入库,2部分入库,3已入库)
var
user_name
:
String
?
//制单人
var
type
:
Int
?
//采购单类型(1临时采购,2固定采购)
var
ven_name
:
String
?
//供应商名
var
goods_res
:
Array
<
PurchaseOrderListDataItemsModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
po_id
<-
map
[
"po_id"
]
po_no
<-
map
[
"po_no"
]
ven_id
<-
map
[
"ven_id"
]
total_num
<-
map
[
"total_num"
]
purchaser
<-
map
[
"purchaser"
]
total_amount
<-
map
[
"total_amount"
]
pay_status
<-
map
[
"pay_status"
]
pay_type
<-
map
[
"pay_type"
]
order_status
<-
map
[
"order_status"
]
old_order_status
<-
map
[
"old_order_status"
]
push_status
<-
map
[
"push_status"
]
user_name
<-
map
[
"user_name"
]
type
<-
map
[
"type"
]
ven_name
<-
map
[
"ven_name"
]
goods_res
<-
map
[
"goods_res"
]
}
}
class
PurchaseOrderListDataItemsModel
:
Mappable
{
var
pog_id
:
Int
?
//订单商品id
var
po_id
:
Int
?
var
goods_id
:
Int
?
//商品id
var
goods_name
:
String
?
//商品名
var
sku_id
:
Int
?
var
sku_name
:
String
?
//规格值
var
num
:
Int
?
//数量
var
no_push_num
:
String
?
//未入库数量
var
frozen_num
:
Int
?
var
amount
:
String
?
//采购单价
var
price
:
String
?
//销售单价
var
unit
:
String
?
//单位名称
var
subtotal
:
String
?
//采购价小计
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
pog_id
<-
map
[
"pog_id"
]
po_id
<-
map
[
"po_id"
]
goods_id
<-
map
[
"goods_id"
]
goods_name
<-
map
[
"goods_name"
]
sku_id
<-
map
[
"sku_id"
]
sku_name
<-
map
[
"sku_name"
]
num
<-
map
[
"num"
]
no_push_num
<-
map
[
"no_push_num"
]
frozen_num
<-
map
[
"frozen_num"
]
amount
<-
map
[
"amount"
]
price
<-
map
[
"price"
]
unit
<-
map
[
"unit"
]
subtotal
<-
map
[
"subtotal"
]
}
}
class
PurchaseOrderDetailModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
PurchaseOrderDetailDataModel
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
PurchaseOrderDetailDataModel
:
Mappable
{
var
po_id
:
Int
?
//采购单id
var
po_no
:
String
?
//采购单号
var
type
:
Int
?
//采购单类型(1临时采购,2固定采购)
var
remarks
:
String
?
//备注
var
reason
:
String
?
//审核不通过原因
var
ven_id
:
Int
?
var
purchase_time
:
Int
?
//采购时间
var
user_name
:
String
?
//制单人
var
pay_status
:
Int
?
//付款状态(1未付款,2已付款,3月结,4欠款)
var
pay_type
:
Int
?
//支付类型(0未支付,1现金,2转账(私),3转账(公),4转账(微信),5转账(支付宝))
var
purchaser
:
String
?
//采购人
var
push_status
:
Int
?
//入库状态(1未入库,2部分入库,3已入库)
var
order_status
:
Int
?
//订单状态(1未审核,2审核通过,3审核不通过,4已撤销,5已完成)
var
ven_name
:
String
?
//供应商名
var
pay_status_cn
:
String
?
var
pay_type_cn
:
String
?
var
order_status_cn
:
String
?
var
goods_res
:
Array
<
PurchaseOrderDetailDataResModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
po_id
<-
map
[
"po_id"
]
po_no
<-
map
[
"po_no"
]
type
<-
map
[
"type"
]
remarks
<-
map
[
"remarks"
]
reason
<-
map
[
"reason"
]
ven_id
<-
map
[
"ven_id"
]
purchase_time
<-
map
[
"purchase_time"
]
user_name
<-
map
[
"user_name"
]
pay_status
<-
map
[
"pay_status"
]
pay_type
<-
map
[
"pay_type"
]
purchaser
<-
map
[
"purchaser"
]
push_status
<-
map
[
"push_status"
]
order_status
<-
map
[
"order_status"
]
ven_name
<-
map
[
"ven_name"
]
pay_status_cn
<-
map
[
"pay_status_cn"
]
pay_type_cn
<-
map
[
"pay_type_cn"
]
order_status_cn
<-
map
[
"order_status_cn"
]
goods_res
<-
map
[
"goods_res"
]
}
}
class
PurchaseOrderDetailDataResModel
:
Mappable
{
var
pog_id
:
Int
?
//采购订单商品id
var
po_id
:
Int
?
var
goods_id
:
Int
?
//商品id
var
goods_name
:
String
?
//商品名
var
sku_id
:
Int
?
//规格id
var
sku_name
:
String
?
//规格名
var
num
:
Int
?
//采购数量
var
no_push_num
:
Int
?
//未入库数量
var
frozen_num
:
Int
?
var
amount
:
String
?
//采购单价
var
price
:
String
?
//销售单价
var
unit
:
String
?
//单位名称
var
subtotal
:
String
?
//采购价小计
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
pog_id
<-
map
[
"pog_id"
]
po_id
<-
map
[
"po_id"
]
goods_id
<-
map
[
"goods_id"
]
goods_name
<-
map
[
"goods_name"
]
sku_id
<-
map
[
"sku_id"
]
sku_name
<-
map
[
"sku_name"
]
num
<-
map
[
"num"
]
no_push_num
<-
map
[
"no_push_num"
]
frozen_num
<-
map
[
"frozen_num"
]
amount
<-
map
[
"amount"
]
price
<-
map
[
"price"
]
unit
<-
map
[
"unit"
]
subtotal
<-
map
[
"subtotal"
]
}
}
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
View file @
fab58ede
...
...
@@ -11,6 +11,7 @@ protocol GeliAlertViewDelegate {
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
}
class
GeliAlertView
:
UIView
{
@IBOutlet
weak
var
tLbl
:
UILabel
!
@IBOutlet
weak
var
versionLbl
:
UILabel
!
@IBOutlet
weak
var
upAppIconV
:
UIImageView
!
var
contentView
:
UIView
!
...
...
@@ -25,7 +26,7 @@ class GeliAlertView: UIView {
print
(
"左←边按钮响应"
)
if
appStoreVersion
.
count
!=
0
{
//选择了该版本取消更新后不再提示
UserDefaults
.
standard
.
setValue
(
appStoreVersion
,
forKey
:
"appStoreVersion"
)
//
UserDefaults.standard.setValue(appStoreVersion, forKey: "appStoreVersion")
}
self
.
removeFromSuperview
()
}
...
...
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
View file @
fab58ede
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
View file @
fab58ede
...
...
@@ -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"
/>
...
...
@@ -84,7 +85,7 @@
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F70-8y-cQB"
>
<button
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F70-8y-cQB"
>
<rect
key=
"frame"
x=
"340"
y=
"40"
width=
"20"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"1ok-jH-s1a"
/>
...
...
@@ -93,15 +94,6 @@
<state
key=
"normal"
image=
"daixuan"
/>
<state
key=
"selected"
image=
"yuxuan"
/>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ljV-Gc-YnI"
>
<rect
key=
"frame"
x=
"315"
y=
"0.0"
width=
"60"
height=
"100"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"60"
id=
"Tf0-Ai-D5X"
/>
</constraints>
<connections>
<action
selector=
"btnClick:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"KpV-b1-9i2"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ec0-pY-RFD"
>
<rect
key=
"frame"
x=
"15"
y=
"99"
width=
"360"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
...
...
@@ -139,16 +131,13 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"ec0-pY-RFD"
secondAttribute=
"bottom"
id=
"ARP-s3-aXE"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ec0-pY-RFD"
secondAttribute=
"trailing"
id=
"AbD-K6-l9Y"
/>
<constraint
firstItem=
"ec0-pY-RFD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"DPE-Fy-OaG"
/>
<constraint
firstItem=
"ljV-Gc-YnI"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"GCg-gX-SYB"
/>
<constraint
firstItem=
"k7A-Qs-Puc"
firstAttribute=
"leading"
secondItem=
"WR0-yV-WjT"
secondAttribute=
"trailing"
constant=
"10"
id=
"Jdc-Ll-m3r"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"vLg-1W-z2S"
secondAttribute=
"trailing"
constant=
"15"
id=
"KOW-Bj-cOn"
/>
<constraint
firstItem=
"YvY-yP-Zr7"
firstAttribute=
"leading"
secondItem=
"WR0-yV-WjT"
secondAttribute=
"trailing"
constant=
"10"
id=
"PZD-FR-vo1"
/>
<constraint
firstItem=
"5Vq-Jz-GTW"
firstAttribute=
"centerY"
secondItem=
"YvY-yP-Zr7"
secondAttribute=
"centerY"
id=
"WUM-7S-6Tq"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"ljV-Gc-YnI"
secondAttribute=
"bottom"
id=
"WeE-ry-Kge"
/>
<constraint
firstItem=
"QI3-nS-9hL"
firstAttribute=
"leading"
secondItem=
"llc-wu-Qjo"
secondAttribute=
"trailing"
constant=
"4"
id=
"aOI-Jy-yEO"
/>
<constraint
firstItem=
"WR0-yV-WjT"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"bCO-YL-X4d"
/>
<constraint
firstItem=
"vLg-1W-z2S"
firstAttribute=
"leading"
secondItem=
"WR0-yV-WjT"
secondAttribute=
"trailing"
constant=
"10"
id=
"fR7-J1-A4f"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ljV-Gc-YnI"
secondAttribute=
"trailing"
id=
"gvq-yK-M0h"
/>
<constraint
firstItem=
"llc-wu-Qjo"
firstAttribute=
"centerY"
secondItem=
"k7A-Qs-Puc"
secondAttribute=
"centerY"
id=
"kfs-Cj-xiI"
/>
<constraint
firstItem=
"WR0-yV-WjT"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"kra-Qt-lhu"
/>
<constraint
firstItem=
"F70-8y-cQB"
firstAttribute=
"centerY"
secondItem=
"WR0-yV-WjT"
secondAttribute=
"centerY"
id=
"p4k-Zt-rJK"
/>
...
...
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
View file @
fab58ede
...
...
@@ -94,6 +94,8 @@ class PersonCenterViewController: BaseViewController,UITableViewDelegate,UITable
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
let
dict
=
notion
.
userInfo
!
as
NSDictionary
print
(
"123123 =="
,
dict
.
allKeys
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
@@ -111,6 +113,7 @@ class PersonCenterViewController: BaseViewController,UITableViewDelegate,UITable
//MARK:--跳转消息中心
@IBAction
func
toMsgCenterAction
(
_
sender
:
Any
)
{
print
(
"跳转消息中心"
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementListVC.swift
View file @
fab58ede
...
...
@@ -62,6 +62,8 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
let
dict
=
notion
.
userInfo
!
as
NSDictionary
print
(
"123123 =="
,
dict
.
allKeys
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
fab58ede
...
...
@@ -16,6 +16,7 @@ protocol XuanZeShangPinViewControllerDelegate {
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITextFieldDelegate
{
var
isCG
=
false
var
searchV
:
SearchBarView
?
=
nil
var
delegate
:
XuanZeShangPinViewControllerDelegate
?
var
is_adsale
:
Int
?
...
...
@@ -373,21 +374,23 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
{
let
model
=
datas
[
index
.
row
]
if
isYuShou
{
//预售
if
model
.
adsale_inventory
==
0
{
HUD
.
flash
(
.
label
(
"库存为0,无法下单"
),
delay
:
1.2
)
return
if
isCG
==
false
{
if
model
.
adsale_inventory
==
0
{
HUD
.
flash
(
.
label
(
"库存为0,无法下单"
),
delay
:
1.2
)
return
}
}
idx
=
index
selectArr
.
removeAll
()
selectArr
.
append
(
model
)
}
else
{
//非预售
let
data
=
datas
[
index
.
row
]
if
data
.
inventory
==
0
{
HUD
.
flash
(
.
label
(
"库存为0,无法下单"
),
delay
:
1.2
)
return
if
isCG
==
false
{
if
data
.
inventory
==
0
{
HUD
.
flash
(
.
label
(
"库存为0,无法下单"
),
delay
:
1.2
)
return
}
}
let
idx
=
selectArr
.
firstIndex
{
(
model
)
->
Bool
in
return
(
data
.
sku_id
==
model
.
sku_id
)
}
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSGLCell.xib
View file @
fab58ede
...
...
@@ -81,10 +81,10 @@
</connections>
</button>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"yTm-Gk-jr3"
>
<rect
key=
"frame"
x=
"315"
y=
"0.0"
width=
"60"
height=
"
100
"
/>
<rect
key=
"frame"
x=
"315"
y=
"0.0"
width=
"60"
height=
"
99
"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"q1A-kf-Vam"
>
<rect
key=
"frame"
x=
"25"
y=
"
40
"
width=
"20"
height=
"20"
/>
<rect
key=
"frame"
x=
"25"
y=
"
39.5
"
width=
"20"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"AeE-UX-Ikx"
/>
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"Brp-ot-2Vd"
/>
...
...
@@ -121,7 +121,7 @@
<constraint
firstItem=
"W6d-cJ-9O2"
firstAttribute=
"leading"
secondItem=
"obp-L0-Hyo"
secondAttribute=
"trailing"
constant=
"10"
id=
"hbe-0C-ipP"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"W6d-cJ-9O2"
secondAttribute=
"trailing"
constant=
"15"
id=
"hrs-VD-yxZ"
/>
<constraint
firstItem=
"yTm-Gk-jr3"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"oYu-bO-2AH"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"yTm-Gk-jr3"
secondAttribute=
"bottom"
id=
"tsf-sQ-CMj"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"yTm-Gk-jr3"
secondAttribute=
"bottom"
constant=
"1"
id=
"tsf-sQ-CMj"
/>
<constraint
firstItem=
"gCZ-v5-18O"
firstAttribute=
"leading"
secondItem=
"obp-L0-Hyo"
secondAttribute=
"trailing"
constant=
"10"
id=
"vJb-Xu-Cf6"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"PwA-w2-l4g"
secondAttribute=
"bottom"
id=
"xUg-Hr-ZwM"
/>
</constraints>
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
fab58ede
...
...
@@ -89,6 +89,8 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
let
dict
=
notion
.
userInfo
!
as
NSDictionary
print
(
"123123 =="
,
dict
.
allKeys
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
View file @
fab58ede
...
...
@@ -70,7 +70,8 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
@objc
func
submitAction
(){
if
adrStr
!.
count
>
0
{
if
adrStr
!=
nil
{
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
adrStr
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
{
...
...
@@ -165,6 +166,7 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
cell
.
imgView
.
isHidden
=
true
if
indexPath
==
idx
{
cell
.
imgView
.
isHidden
=
false
adrStr
=
poi
.
name
}
return
cell
...
...
@@ -212,8 +214,8 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
let
btn2
=
UIButton
()
btn2
.
setTitle
(
"取消"
,
for
:
.
normal
)
btn2
.
backgroundColor
=
UIColor
.
clear
btn2
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
btn2
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
btn2
.
setTitleColor
(
UIColor
(
named
:
"个人中心灰色字体"
)
,
for
:
.
normal
)
btn2
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
btn2
.
addTarget
(
self
,
action
:
#selector(
backAction
)
,
for
:
.
touchUpInside
)
self
.
view
.
addSubview
(
btn2
)
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
fab58ede
...
...
@@ -45,6 +45,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
let
dict
=
notion
.
userInfo
!
as
NSDictionary
print
(
"123123 =="
,
dict
.
allKeys
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
@@ -516,6 +519,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return
case
92
:
//采购订单管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
// let vc = CGDListViewController()
// self.navigationController?.pushViewController(vc, animated: true)
return
case
93
:
//供应商管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
...
...
@@ -614,6 +619,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
upAppIconV
.
isHidden
=
false
alertView
.
versionLbl
.
isHidden
=
false
alertView
.
tLbl
.
isHidden
=
false
alertView
.
versionLbl
.
text
=
"V"
+
json
[
"results"
][
0
][
"version"
]
.
string
!
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
...
...
@@ -631,6 +637,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
upAppIconV
.
isHidden
=
false
alertView
.
versionLbl
.
isHidden
=
false
alertView
.
tLbl
.
isHidden
=
false
alertView
.
versionLbl
.
text
=
"V"
+
json
[
"results"
][
0
][
"version"
]
.
string
!
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.xib
View file @
fab58ede
...
...
@@ -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=
"retina4_7"
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"
/>
...
...
GeliBusinessPlatform/ViewController/收支统计/ShouZhiTongJiViewController.swift
View file @
fab58ede
...
...
@@ -11,6 +11,7 @@ import SwiftDate
class
ShouZhiTongJiViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
WorkSelectTimeViewDelegate
{
@IBOutlet
weak
var
dayLbl
:
UILabel
!
@IBOutlet
weak
var
scrollView
:
UIScrollView
!
@IBOutlet
weak
var
bottomListView
:
UITableView
!
@IBOutlet
weak
var
topListView
:
UITableView
!
...
...
@@ -25,7 +26,7 @@ class ShouZhiTongJiViewController: BaseViewController,UITableViewDelegate,UITabl
navbar
.
title
=
"收支统计"
navbar
.
rightImg
=
UIImage
.
init
(
named
:
"ShouZhiTongJiDayEdit"
)
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
scrollView
,
height
:
fullScreenHeight
-
NavCGRect
.
height
)
SetTopFrame
(
view
:
dayLbl
,
height
:
20
)
loadData
()
...
...
@@ -43,6 +44,14 @@ class ShouZhiTongJiViewController: BaseViewController,UITableViewDelegate,UITabl
var
topHolder
=
[
"-"
,
"-"
]
var
bottomHolder
=
[
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
]
func
loadData
(){
print
(
"abc == "
,
starTime
)
let
start
=
dateConvertString
(
date
:
starTime
+
8
.
hours
,
dateFormat
:
"yyyy年MM月dd日"
)
let
end
=
dateConvertString
(
date
:
endTime
+
8
.
hours
,
dateFormat
:
"yyyy年MM月dd日"
)
if
start
==
end
{
dayLbl
.
text
=
" 日期统计区间: "
+
start
}
else
{
dayLbl
.
text
=
" 日期统计区间: "
+
start
+
" 至 "
+
end
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
star_time
=
Int
(
starTime
.
timeIntervalSince1970
)
let
end_time
=
Int
(
endTime
.
timeIntervalSince1970
)
...
...
GeliBusinessPlatform/ViewController/收支统计/ShouZhiTongJiViewController.xib
View file @
fab58ede
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
fab58ede
...
...
@@ -35,7 +35,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
"ven_id"
:
vendor
?
.
ven_id
as
Any
,
"purchase_time"
:
dayTime
as
Any
,
"purchaser"
:
cgName
as
Any
,
"type"
:
typeSelect
!
+
1
as
Any
,
"type"
:
typeSelect
+
1
as
Any
,
"remarks"
:
""
as
Any
,
"is_apply"
:
1
as
Any
,
"goods_info"
:
goods_info
as
Any
...
...
@@ -67,7 +67,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
typeSelect
=
selectNum
if
typeSelect
!=
nil
&&
typeSelect
!=
10086
{
holderArr
.
insert
(
typeArr
[
typeSelect
!
],
at
:
3
)
holderArr
.
insert
(
typeArr
[
typeSelect
],
at
:
3
)
holderArr
.
remove
(
at
:
4
)
listView
.
reloadData
()
}
...
...
@@ -98,7 +98,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
var
dayTime
:
Int
?
var
vendor
:
VendorListDataModel
?
var
glSelectView
:
GLAlertSelectView
?
var
typeSelect
:
Int
?
var
typeSelect
=
1
var
cgName
:
String
?
//MARK: - 提交审核
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
...
...
@@ -169,7 +169,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
timeSelectV
.
endDateByWork
=
Date
()
timeSelectV
.
titleLbl
.
text
=
"请选择采购日期"
timeSelectV
.
delegate
=
self
self
.
view
.
window
?
.
addSubview
(
timeSelectV
)
...
...
@@ -208,6 +208,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
print
(
timeStr
,
"采购日期"
,
timeInterval
)
dayTimeStr
=
timeStr
dayTime
=
Int
(
timeInterval
)
listView
.
reloadData
()
}
//MARK: - 添加商品
...
...
@@ -216,6 +217,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
let
vc
=
XuanZeShangPinViewController
()
vc
.
delegate
=
self
vc
.
barTitle
=
"选择商品"
vc
.
isCG
=
true
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
@@ -230,6 +232,9 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"CGDDayCell"
)
as!
CGDDayCell
if
dayTimeStr
.
count
>
0
{
cell
.
dayLbl
.
text
=
dayTimeStr
}
else
{
cell
.
dayLbl
.
text
=
getTimeDayNow
()
dayTime
=
Date
()
.
timeStamp
}
return
cell
}
else
{
...
...
@@ -328,4 +333,13 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
listView
.
reloadData
()
}
}
extension
Date
{
/// 获取当前 秒级 时间戳 - 10位
var
timeStamp
:
Int
{
let
timeInterval
:
TimeInterval
=
self
.
timeIntervalSince1970
let
timeStamp
=
Int
(
timeInterval
)
return
timeStamp
}
}
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
fab58ede
...
...
@@ -305,6 +305,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
rowModel
=
self
.
dataArr
[
indexPath
.
row
]
if
rowModel
.
order_goods
!.
count
>
4
{
return
CGFloat
(
172
+
(
49
*
4
))
}
return
CGFloat
(
172
+
(
49
*
rowModel
.
order_goods
!.
count
))
}
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
View file @
fab58ede
...
...
@@ -84,6 +84,8 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
let
dict
=
notion
.
userInfo
!
as
NSDictionary
print
(
"123123 =="
,
dict
.
allKeys
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
@@ -271,6 +273,8 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
func
colseAction
()
{
selectV
=
nil
}
//筛选
//MAKR:--调起搜索后添加个蒙版本
var
blackBtnView
:
UIButton
!
=
nil
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
...
...
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.swift
0 → 100644
View file @
fab58ede
//
// CGDListVC.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/6/12.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
import
ViewAnimator
//cell动效
class
CGDListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
GeliAlertViewDelegate
,
CGDListCellDelegate
{
var
page
:
Int
=
0
var
isUpData
=
false
var
keyword
=
""
var
orderStatus
=
1
var
datas
:
Array
<
PurchaseOrderListDataModel
>
=
[]
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
switch
self
.
title
{
case
"待审核"
:
orderStatus
=
1
break
case
"已通过"
:
orderStatus
=
2
break
case
"未通过"
:
orderStatus
=
3
break
case
"已完成"
:
orderStatus
=
5
break
default
:
break
}
setTabv
()
// Do any additional setup after loading the view.
}
//MARK:--VC 初始化
convenience
init
(
title
:
String
)
{
self
.
init
(
title
:
title
,
content
:
""
)
}
init
(
title
:
String
,
content
:
String
)
{
super
.
init
(
nibName
:
nil
,
bundle
:
nil
)
self
.
title
=
title
print
(
"ttit===
\(
title
)
"
)
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
datas
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"CGDListCell"
)
as!
CGDListCell
let
model
=
datas
[
indexPath
.
row
]
cell
.
cgDataArr
=
model
.
goods_res
cell
.
nameLbl
.
text
=
model
.
purchaser
!
cell
.
statusLbl
.
isHidden
=
true
var
status
=
""
if
orderStatus
==
2
{
cell
.
statusLbl
.
isHidden
=
false
switch
model
.
push_status
{
case
1
:
status
=
"未付款"
break
case
2
:
status
=
"已付款"
break
case
3
:
status
=
"月结"
break
default
:
status
=
"欠款"
break
}
cell
.
statusLbl
.
text
=
status
}
var
count
=
0
var
amount
:
Float
=
0
model
.
goods_res
?
.
forEach
({
(
item
)
in
count
+=
item
.
num
!
let
str
=
item
.
subtotal
!
as
NSString
amount
+=
str
.
floatValue
})
cell
.
countLbl
.
text
=
"
\(
count
)
"
cell
.
priceLbl
.
text
=
"
\(
amount
)
"
var
btnStr
:
Array
<
String
>
=
[]
switch
model
.
order_status
{
//订单状态(1未审核,2审核通过,3审核不通过,4已撤销,5已完成)
case
1
:
btnStr
=
[
"修改信息"
,
"取消"
]
break
case
2
:
//入库状态(1未入库,2部分入库,3已入库)
switch
model
.
push_status
{
case
1
:
btnStr
=
[
"查看详情"
,
"入库"
,]
break
case
2
:
btnStr
=
[
"查看详情"
,
"撤销入库"
,
"补录入库"
]
break
default
:
btnStr
=
[
"查看详情"
,
"撤销入库"
]
break
}
break
case
3
:
btnStr
=
[
"查看详情"
]
break
default
:
btnStr
=
[
"查看详情"
]
break
}
cell
.
delegate
=
self
cell
.
setCGDBtnUI
(
arr
:
btnStr
,
index
:
indexPath
.
row
)
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
model
=
datas
[
indexPath
.
row
]
let
vc
=
CGDXQVc
()
vc
.
po_id
=
model
.
po_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK: - 点击cell 按钮
func
allBtnSubmit
(
sender
:
UIButton
)
{
print
(
"cgd == "
,
sender
.
titleLabel
!.
text
,
sender
.
tag
)
}
//MARK: - alertView delegate
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
}
//MARK:-- tablev 处理
var
listView
:
UITableView
!
var
tableSearchV
:
UITableView
!
=
nil
private
let
animations
=
[
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
300*
glscale
)]
func
setTabv
()
{
listView
=
UITableView
()
view
.
addSubview
(
listView
);
listView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
left
.
right
.
bottom
.
equalToSuperview
()
}
listView
.
backgroundColor
=
UIColor
.
init
(
named
:
"app底色"
)
listView
.
delegate
=
self
listView
.
dataSource
=
self
listView
.
separatorStyle
=
.
none
listView
?
.
register
(
UINib
(
nibName
:
"CGDListCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"CGDListCell"
)
let
footerTbV
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
view
.
frame
.
size
.
width
,
height
:
15*
glscale
))
footerTbV
.
backgroundColor
=
UIColor
.
init
(
named
:
"app底色"
)
listView
.
tableFooterView
=
footerTbV
//下拉刷新相关设置
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
self
.
listView
!.
mj_header
=
headerMJ
//上拉加载相关设置
footerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadMoreData
)
)
self
.
listView
!.
mj_footer
=
footerMJ
self
.
listView
?
.
mj_header
?
.
beginRefreshing
()
}
//MARK:--加载数据
@objc
func
loadData
(){
print
(
"加载数据"
)
isUpData
=
true
page
=
1
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
,
"order_status"
:
orderStatus
as
Any
]
purchaseOrderList
(
dic
,
success
:
{
(
data
)
in
self
.
datas
.
removeAll
()
let
model
=
data
as!
PurchaseOrderListModel
model
.
data
?
.
forEach
({
(
item
)
in
self
.
datas
.
append
(
item
)
})
self
.
listView
.
reloadData
()
self
.
listView
?
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
self
.
listView
.
performBatchUpdates
({
UIView
.
animate
(
views
:
self
.
listView
!.
visibleCells
,
animations
:
self
.
animations
,
completion
:
{
})
if
model
.
data
?
.
count
==
0
{
self
.
listView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
listView
?
.
mj_footer
?
.
endRefreshing
()
}
},
completion
:
nil
)
})
{
(
error
)
in
self
.
listView
?
.
mj_header
?
.
endRefreshing
()
}
}
//MARK:--加载更多数据
@objc
func
loadMoreData
(){
print
(
"加载更多数据"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
,
"order_status"
:
orderStatus
as
Any
]
purchaseOrderList
(
dic
,
success
:
{
(
data
)
in
let
model
=
data
as!
PurchaseOrderListModel
if
model
.
data
?
.
count
==
0
{
self
.
listView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
model
.
data
?
.
forEach
({
(
model
)
in
self
.
datas
.
append
(
model
)
})
self
.
listView
.
reloadData
()
self
.
listView
?
.
mj_footer
?
.
endRefreshing
()
}
})
{
(
error
)
in
self
.
listView
?
.
mj_header
?
.
endRefreshing
()
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
model
=
self
.
datas
[
indexPath
.
row
]
if
model
.
goods_res
!.
count
>
4
{
return
CGFloat
(
172
+
(
49
*
4
))
}
return
CGFloat
(
172
+
(
49
*
model
.
goods_res
!.
count
))
}
}
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.xib
0 → 100644
View file @
fab58ede
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"13142"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"12042"
/>
<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=
"CGDListVC"
customModuleProvider=
"target"
>
<connections>
<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=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
</view>
</objects>
</document>
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.swift
0 → 100644
View file @
fab58ede
//
// CGDListViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/6/12.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
import
Parchment
class
CGDListViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
PagingViewControllerDelegate
{
@IBOutlet
weak
var
contentView
:
UIView
!
@IBOutlet
weak
var
searchBg
:
UIView
!
func
clearSearchAction
()
{
}
//头部滚动视图
weak
var
pagingVC
:
PagingViewController
?
fileprivate
let
cities
=
[
"待审核"
,
"已通过"
,
"未通过"
,
"已完成"
]
let
viewControllers
=
[
CGDListVC
(
title
:
"待审核"
),
CGDListVC
(
title
:
"已通过"
),
CGDListVC
(
title
:
"未通过"
),
CGDListVC
(
title
:
"已完成"
),
]
var
searchV
:
SearchBarView
?
=
nil
func
rightBtnClick
()
{
let
vc
=
XinCaiGouViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"采购列表"
navbar
.
rightTitle
=
"新增"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
searchBg
,
height
:
52
)
//searchbar
let
searchBr
=
SearchBarView
.
init
()
self
.
searchBg
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"输入订单编号/制单人名称"
searchBr
.
cornerRadius
=
35
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
let
pagingViewController
=
PagingViewController
(
viewControllers
:
viewControllers
)
pagingViewController
.
indicatorColor
=
UIColor
.
init
(
named
:
"蓝色字体颜色"
)
!
pagingViewController
.
menuItemSize
=
.
fixed
(
width
:
0
,
height
:
44*
glscale
)
pagingViewController
.
menuHorizontalAlignment
=
.
center
pagingViewController
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
pagingViewController
.
selectedFont
=
UIFont
.
systemFont
(
ofSize
:
13
)
pagingViewController
.
textColor
=
UIColor
.
init
(
named
:
"灰色字体颜色"
)
!
pagingViewController
.
selectedTextColor
=
UIColor
.
init
(
named
:
"蓝色字体颜色"
)
!
pagingViewController
.
delegate
=
self
pagingViewController
.
dataSource
=
self
pagingViewController
.
sizeDelegate
=
self
addChild
(
pagingViewController
)
contentView
.
addSubview
(
pagingViewController
.
view
)
contentView
.
constrainToEdges
(
pagingViewController
.
view
)
pagingViewController
.
didMove
(
toParent
:
self
)
pagingVC
=
pagingViewController
// //MARK:--添加个刷新通知
// NotificationCenter.default.addObserver(self, selector: #selector(refreshingByCGDHavChange), name: NSNotification.Name(rawValue: "cgdChange"), object: nil)
//
// //跳转对应的头部视图
// NotificationCenter.default.addObserver(self, selector: #selector(CgdNavChange), name: NSNotification.Name(rawValue: "cgdNavChange"), object: nil)
}
// @objc func CgdNavChange(notion:Notification){
// let dic = notion.userInfo
// pagingVC!.select(index: dic!["tag"] as Any as! Int, animated: true)
// }
//
// @objc func refreshingByCGDHavChange(){
// viewControllers.forEach { (vc) in
// vc.isUpData = false
// }
// }
//MAKR:--调起搜索后添加个蒙版本
var
blackBtnView
:
UIButton
!
=
nil
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
blackBtnView
=
UIButton
()
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
contentView
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
top
.
bottom
.
equalToSuperview
()
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
return
true
}
@objc
func
removeBlackBtnView
(){
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
searchV
!.
resignFirstResponder
()
}
}
//MARK:---滚动选择
var
selectIndex
=
0
func
pagingViewController
(
_
pagingViewController
:
PagingViewController
,
didScrollToItem
pagingItem
:
PagingItem
,
startingViewController
:
UIViewController
?,
destinationViewController
:
UIViewController
,
transitionSuccessful
:
Bool
)
{
guard
let
item
=
pagingItem
as?
PagingIndexItem
else
{
return
}
print
(
"滚动至vc
\(
item
.
index
)
"
)
if
selectIndex
!=
item
.
index
{
selectIndex
=
item
.
index
let
vc
=
viewControllers
[
selectIndex
]
if
!
vc
.
isUpData
{
vc
.
listView
.
mj_header
?
.
beginRefreshing
()
}
}
}
}
extension
CGDListViewController
:
PagingViewControllerDataSource
{
func
pagingViewController
(
_
:
PagingViewController
,
pagingItemAt
index
:
Int
)
->
PagingItem
{
return
PagingIndexItem
(
index
:
index
,
title
:
cities
[
index
])
}
func
pagingViewController
(
_
:
PagingViewController
,
viewControllerAt
index
:
Int
)
->
UIViewController
{
return
viewControllers
[
index
]
}
func
numberOfViewControllers
(
in
pagingViewController
:
PagingViewController
)
->
Int
{
return
cities
.
count
}
}
extension
CGDListViewController
:
PagingViewControllerSizeDelegate
{
func
pagingViewController
(
_
pagingViewController
:
PagingViewController
,
widthForPagingItem
pagingItem
:
PagingItem
,
isSelected
:
Bool
)
->
CGFloat
{
guard
let
item
=
pagingItem
as?
PagingIndexItem
else
{
return
0
}
let
insets
=
UIEdgeInsets
(
top
:
0
,
left
:
20
,
bottom
:
0
,
right
:
20
)
let
size
=
CGSize
(
width
:
CGFloat
.
greatestFiniteMagnitude
,
height
:
pagingViewController
.
options
.
menuItemSize
.
height
)
let
attributes
=
[
NSAttributedString
.
Key
.
font
:
pagingViewController
.
options
.
font
]
let
rect
=
item
.
title
.
boundingRect
(
with
:
size
,
options
:
.
usesLineFragmentOrigin
,
attributes
:
attributes
,
context
:
nil
)
let
width
=
ceil
(
rect
.
width
)
+
insets
.
left
+
insets
.
right
if
isSelected
{
return
width
*
1.5
}
else
{
return
width
}
}
}
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.xib
0 → 100644
View file @
fab58ede
<?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=
"CGDListViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"contentView"
destination=
"gQz-Dx-IST"
id=
"Enj-nX-kKS"
/>
<outlet
property=
"searchBg"
destination=
"b0W-tr-nHd"
id=
"yrF-5k-VBs"
/>
<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=
"b0W-tr-nHd"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"52"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oO1-6m-ZfC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"51"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"fvf-qz-hSk"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"oO1-6m-ZfC"
firstAttribute=
"leading"
secondItem=
"b0W-tr-nHd"
secondAttribute=
"leading"
id=
"4S1-nz-dIL"
/>
<constraint
firstAttribute=
"height"
constant=
"52"
id=
"70Q-z0-bAE"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"oO1-6m-ZfC"
secondAttribute=
"bottom"
id=
"RBR-Al-Xw9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"oO1-6m-ZfC"
secondAttribute=
"trailing"
id=
"fZE-dY-ErJ"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gQz-Dx-IST"
>
<rect
key=
"frame"
x=
"0.0"
y=
"96"
width=
"414"
height=
"766"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"gQz-Dx-IST"
secondAttribute=
"bottom"
id=
"53s-mA-xag"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"b0W-tr-nHd"
secondAttribute=
"trailing"
id=
"LaJ-OU-8Ly"
/>
<constraint
firstItem=
"gQz-Dx-IST"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"SrM-ic-1sE"
/>
<constraint
firstItem=
"b0W-tr-nHd"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"Zea-23-dH2"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"gQz-Dx-IST"
secondAttribute=
"trailing"
id=
"fVM-da-qyS"
/>
<constraint
firstItem=
"b0W-tr-nHd"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"kE8-IW-FaJ"
/>
<constraint
firstItem=
"gQz-Dx-IST"
firstAttribute=
"top"
secondItem=
"b0W-tr-nHd"
secondAttribute=
"bottom"
id=
"qu2-m8-L1i"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"139"
/>
</view>
</objects>
<resources>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/采购单详情/CGDListCell.swift
View file @
fab58ede
...
...
@@ -38,6 +38,8 @@ class CGDListCell: UITableViewCell {
//订单列表数据
var
dataArr
:
Array
<
OrderListGoodsModel
>
?
//采购列表数据
var
cgDataArr
:
Array
<
PurchaseOrderListDataItemsModel
>
?
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
...
...
@@ -48,12 +50,71 @@ class CGDListCell: UITableViewCell {
if
dataArr
!=
nil
{
setListView
(
arr
:
dataArr
!
)
}
if
cgDataArr
!=
nil
{
setCGDListView
(
arr
:
cgDataArr
!
)
}
super
.
layoutIfNeeded
()
}
func
setCGDBtnUI
(
arr
:
Array
<
String
>
,
index
:
Int
){
//按钮
btnBgView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
}
var
tempBtn
:
UIButton
?
=
nil
arr
.
forEach
{
(
str
)
in
let
rightBtn
=
UIButton
(
type
:
.
custom
)
rightBtn
.
layer
.
borderWidth
=
1
rightBtn
.
tag
=
index
rightBtn
.
backgroundColor
=
UIColor
.
white
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)?
.
cgColor
rightBtn
.
setTitleColor
(
UIColor
.
init
(
named
:
"按钮渐变色上"
),
for
:
.
normal
)
rightBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
rightBtn
.
layer
.
cornerRadius
=
2
if
str
as!
String
==
"查看详情"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"修改信息"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
rightBtn
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)?
.
cgColor
}
else
if
str
as!
String
==
"取消"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"撤销入库"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"入库"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"补录入库"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
btnBgView
.
addSubview
(
rightBtn
)
if
tempBtn
==
nil
{
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
width
.
equalTo
(
82*
glscale
)
make
.
height
.
equalTo
(
30
)
make
.
right
.
equalTo
(
0
)
make
.
top
.
equalTo
(
0
)
}
}
else
{
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
width
.
equalTo
(
82*
glscale
)
make
.
height
.
equalTo
(
30
)
make
.
right
.
equalTo
(
tempBtn
!.
snp_left
)
.
offset
(
-
15
)
make
.
top
.
equalTo
(
0
)
}
}
rightBtn
.
addTarget
(
self
,
action
:
#selector(
btnAction(sender:)
)
,
for
:
.
touchUpInside
)
tempBtn
=
rightBtn
}
}
//订单列表设置底部按钮
func
setBtnView
(
arr
:
Array
<
Any
>
,
index
:
Int
){
func
setBtnView
(
arr
:
Array
<
String
>
,
index
:
Int
){
//按钮
btnBgView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
...
...
@@ -66,8 +127,8 @@ class CGDListCell: UITableViewCell {
rightBtn
.
layer
.
borderWidth
=
1
rightBtn
.
tag
=
index
rightBtn
.
backgroundColor
=
UIColor
.
white
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮
背景颜色
"
)?
.
cgColor
rightBtn
.
setTitleColor
(
UIColor
.
init
(
named
:
"按钮
背景颜色
"
),
for
:
.
normal
)
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮
渐变色上
"
)?
.
cgColor
rightBtn
.
setTitleColor
(
UIColor
.
init
(
named
:
"按钮
渐变色上
"
),
for
:
.
normal
)
rightBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
rightBtn
.
layer
.
cornerRadius
=
2
if
str
as!
String
==
"查看详情"
{
...
...
@@ -75,8 +136,8 @@ class CGDListCell: UITableViewCell {
}
else
if
str
as!
String
==
"确认订单"
{
rightBtn
.
setTitle
(
"确认订单"
,
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
rightBtn
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮
背景颜色
"
)
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮
背景颜色
"
)?
.
cgColor
rightBtn
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮
渐变色上
"
)
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮
渐变色上
"
)?
.
cgColor
}
else
if
str
as!
String
==
"取消订单"
{
rightBtn
.
setTitle
(
"取消订单"
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"付款码"
{
...
...
@@ -106,6 +167,66 @@ class CGDListCell: UITableViewCell {
@objc
func
btnAction
(
sender
:
UIButton
){
self
.
delegate
?
.
allBtnSubmit
(
sender
:
sender
)
}
//订单列表设置数据
func
setCGDListView
(
arr
:
Array
<
PurchaseOrderListDataItemsModel
>
){
//列表
listBgView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
}
if
arr
.
count
>
0
{
var
num
=
0
if
arr
.
count
>
4
{
num
=
4
}
else
{
num
=
arr
.
count
}
for
i
in
0
..<
num
{
let
model
=
arr
[
i
]
let
view
=
UIView
()
listBgView
.
addSubview
(
view
)
view
.
backgroundColor
=
UIColor
.
white
view
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
i
*
49
)
make
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
49
)
}
if
i
!=
num
-
1
{
let
dotLine
=
UIImageView
()
view
.
addSubview
(
dotLine
)
dotLine
.
image
=
UIImage
(
named
:
"dotLine"
)
dotLine
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
15
)
make
.
bottom
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
}
}
let
lbl
=
UILabel
()
lbl
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
lbl
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
lbl
.
text
=
model
.
goods_name
view
.
addSubview
(
lbl
)
lbl
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
15
)
make
.
bottom
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
80*
glscale
)
}
let
lbl2
=
UILabel
()
lbl2
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
lbl2
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
lbl2
.
text
=
"x"
+
"
\(
model
.
num
!
)
"
lbl2
.
textAlignment
=
.
right
view
.
addSubview
(
lbl2
)
lbl2
.
snp
.
makeConstraints
{
(
make
)
in
make
.
right
.
equalTo
(
-
15
)
make
.
bottom
.
left
.
top
.
equalTo
(
0
)
}
}
}
}
//订单列表设置数据
func
setListView
(
arr
:
Array
<
OrderListGoodsModel
>
){
//列表
...
...
@@ -120,7 +241,7 @@ class CGDListCell: UITableViewCell {
num
=
arr
.
count
}
for
i
in
0
..<
num
{
let
model
=
dataArr
!
[
i
]
let
model
=
arr
[
i
]
let
view
=
UIView
()
listBgView
.
addSubview
(
view
)
view
.
backgroundColor
=
UIColor
.
white
...
...
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
View file @
fab58ede
...
...
@@ -12,6 +12,8 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
@IBOutlet
weak
var
btmView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
var
po_id
:
Int
?
let
tArr
=
[
"制单信息"
,
"商品信息"
]
var
glSelectView
:
GLAlertSelectView
?
...
...
@@ -38,7 +40,12 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"CGDCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"CGDCell"
)
loadData
()
}
func
loadData
(){
// purchaseOrderDetail(<#T##params: [String : Any]##[String : Any]#>, success: <#T##(Any) -> ()#>, failture: <#T##(Error) -> ()#>)
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.xib
View file @
fab58ede
...
...
@@ -46,7 +46,7 @@
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xUS-ih-bIA"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor
"
/>
<color
key=
"backgroundColor"
name=
"app底色
"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"gjW-9u-BlI"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"408-BM-NmJ"
/>
...
...
@@ -72,6 +72,9 @@
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
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