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
7ad93b5d
Commit
7ad93b5d
authored
May 19, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0
parent
d3d6cfba
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
453 additions
and
114 deletions
+453
-114
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+16
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+16
-0
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+1
-1
GeliBusinessPlatform/Model/agentList_interface.swift
GeliBusinessPlatform/Model/agentList_interface.swift
+134
-0
GeliBusinessPlatform/Model/agentList_model/agentList_model.swift
...inessPlatform/Model/agentList_model/agentList_model.swift
+135
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+151
-113
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
7ad93b5d
...
...
@@ -63,6 +63,8 @@
E019E98124A975920086C565
/* brandListModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E019E98024A975920086C565
/* brandListModel.swift */
;
};
E019E98324A9763A0086C565
/* BrandListInterface.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E019E98224A9763A0086C565
/* BrandListInterface.swift */
;
};
E01C26B12446989700ADCC70
/* Interface_Z.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B02446989700ADCC70
/* Interface_Z.plist */
;
};
E01CEB5F2654A74200316645
/* agentList_model.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01CEB5E2654A74200316645
/* agentList_model.swift */
;
};
E01CEB672654A82900316645
/* agentList_interface.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01CEB662654A82900316645
/* agentList_interface.swift */
;
};
E01E5471254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01E546F254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.swift */
;
};
E01E5472254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01E5470254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.xib */
;
};
E01E5484254FD34C00A2620C
/* GYS_GuanLi_Cell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01E5482254FD34B00A2620C
/* GYS_GuanLi_Cell.swift */
;
};
...
...
@@ -879,6 +881,8 @@
E019E98024A975920086C565
/* brandListModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
brandListModel.swift
;
sourceTree
=
"<group>"
;
};
E019E98224A9763A0086C565
/* BrandListInterface.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BrandListInterface.swift
;
sourceTree
=
"<group>"
;
};
E01C26B02446989700ADCC70
/* Interface_Z.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
path
=
Interface_Z.plist
;
sourceTree
=
"<group>"
;
};
E01CEB5E2654A74200316645
/* agentList_model.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
agentList_model.swift
;
sourceTree
=
"<group>"
;
};
E01CEB662654A82900316645
/* agentList_interface.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
agentList_interface.swift
;
sourceTree
=
"<group>"
;
};
E01E546F254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GYS_FX_ProductCellTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
E01E5470254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GYS_FX_ProductCellTableViewCell.xib
;
sourceTree
=
"<group>"
;
};
E01E5482254FD34B00A2620C
/* GYS_GuanLi_Cell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GYS_GuanLi_Cell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1949,6 +1953,14 @@
path
=
pinPai
;
sourceTree
=
"<group>"
;
};
E01CEB5D2654A72600316645
/* agentList_model */
=
{
isa
=
PBXGroup
;
children
=
(
E01CEB5E2654A74200316645
/* agentList_model.swift */
,
);
path
=
agentList_model
;
sourceTree
=
"<group>"
;
};
E01EA19D245A5D5600F019D5
/* 运单详情 */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2512,6 +2524,7 @@
E09B03A92445B09200211A51
/* Model */
=
{
isa
=
PBXGroup
;
children
=
(
E01CEB5D2654A72600316645
/* agentList_model */
,
E05C21412620549700BD407D
/* pph */
,
E0AF740025FB16A0006AA336
/* queryStore_model */
,
E0A804B125B819DF0082F56B
/* printOrder_model */
,
...
...
@@ -2533,6 +2546,7 @@
F956D5BD246A3629003FF510
/* PersonCenterModel */
,
F956D5BC246A35DB003FF510
/* GoodsManageMoel */
,
F9171EFB245128B200359C2B
/* Interface.swift */
,
E01CEB662654A82900316645
/* agentList_interface.swift */
,
E05C214A262055A200BD407D
/* getVehicleType_InterFace.swift */
,
E0AF740925FB1747006AA336
/* queryStoreInterface.swift */
,
E0A804BA25B81B790082F56B
/* printOrderInterface.swift */
,
...
...
@@ -4589,6 +4603,7 @@
E0E7CB6124C17B9F00A26D3F
/* GLKHCell.swift in Sources */
,
E083F0BB26047BA100627DBE
/* DZGL_VC.swift in Sources */
,
F95D9CA424493E840080D6E3
/* ShopInfoViewController.swift in Sources */
,
E01CEB672654A82900316645
/* agentList_interface.swift in Sources */
,
E013D7902484D5AF0092DE46
/* NewCKCell.swift in Sources */
,
E0F503E02648DE52000F9633
/* SY_DLS_GL_VC.swift in Sources */
,
F9171EFC245128B200359C2B
/* Interface.swift in Sources */
,
...
...
@@ -4887,6 +4902,7 @@
E042F73C245288F800CDFA12
/* WenDuCell.swift in Sources */
,
F933F6C92452C68B00189561
/* HUD.swift in Sources */
,
E0D197BC2448431C002B080C
/* BabyPeripheralManager.m in Sources */
,
E01CEB5F2654A74200316645
/* agentList_model.swift in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7ad93b5d
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
7ad93b5d
...
...
@@ -356,5 +356,21 @@
<string>
Logistics/pphPayment
</string>
<key>
拼拼货预约时间
</key>
<string>
Logistics/pphAppointmentTime
</string>
<key>
下游代理商管理信息查询
</key>
<string>
Distribution/agentList
</string>
<key>
新增代理商下拉框查询
</key>
<string>
Distribution/getAllAge
</string>
<key>
供应商新增代理商(批量和单个新增代理商)
</key>
<string>
Distribution/ageAddContract
</string>
<key>
终止与代理商合作
</key>
<string>
Distribution/stopAgentContract
</string>
<key>
设置下游代理商品信息查询
</key>
<string>
Distribution/queryAgentGoods
</string>
<key>
给代理商设置分销商品
</key>
<string>
Distribution/setDbtGoodsAgent
</string>
<key>
商品上下架
</key>
<string>
Distribution/setGoodsAttr
</string>
<key>
供应商取消商品分销
</key>
<string>
Distribution/delDbtInfo
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/UpDataModel.swift
View file @
7ad93b5d
...
...
@@ -8,7 +8,7 @@
import
Foundation
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,取消订单审核,确认收到退货,审核同意退货或退款,订单确认收货,取消运单,支付运费,选定地址添加收发货历史,取消货拉拉订单,货拉拉二次支付,货拉拉格利支付,发票消息短信通知,修改电子发票链接地址,分销分账设置,供应商新增店铺,标记已人工结算,铺货与取消铺货,终止合作,分销商品管理,分销商新增供应商,审核操作(通过和不通过),删除客户,新增分销员,删除分销员,修改不二制油订单打印,店长审核通过、审核通过待补齐资料、不通过,保存店长审核信息(商家信息),拼拼货取消订单,
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,取消订单审核,确认收到退货,审核同意退货或退款,订单确认收货,取消运单,支付运费,选定地址添加收发货历史,取消货拉拉订单,货拉拉二次支付,货拉拉格利支付,发票消息短信通知,修改电子发票链接地址,分销分账设置,供应商新增店铺,标记已人工结算,铺货与取消铺货,终止合作,分销商品管理,分销商新增供应商,审核操作(通过和不通过),删除客户,新增分销员,删除分销员,修改不二制油订单打印,店长审核通过、审核通过待补齐资料、不通过,保存店长审核信息(商家信息),拼拼货取消订单,
供应商新增代理商(批量和单个新增代理商),终止与代理商合作,给代理商设置分销商品,商品上下架,供应商取消商品分销,
class
UpDataModel
:
Mappable
{
...
...
GeliBusinessPlatform/Model/agentList_interface.swift
0 → 100644
View file @
7ad93b5d
//
// agentList_interface.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/19.
// Copyright © 2021 junye lu. All rights reserved.
//
import
Foundation
import
Alamofire
import
SwiftyJSON
import
ObjectMapper
//MARK:--下游代理商管理信息查询
/*
user_token : 验证token
agent_name : 输入框模糊查询(代理商商点名称)
page : 分页查询(默认第一页)
*/
func
agentList
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"下游代理商管理信息查询"
,
params
,
{
(
rep
:
DataResponse
<
agentList_model
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--新增代理商下拉框查询
/*
user_token : 验证token
*/
func
getAllAge
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"新增代理商下拉框查询"
,
params
,
{
(
rep
:
DataResponse
<
getAllAge_model
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--供应商新增代理商(批量和单个新增代理商)
/*
user_token : 验证token
agent_id : 代理商店铺id(英文逗号隔开,例:100008,100009)
*/
func
ageAddContract
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"供应商新增代理商(批量和单个新增代理商)"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--终止与代理商合作
/*
user_token : 验证token
agent_id : 代理商店铺id(英文逗号隔开,例:100008,100009)
*/
func
stopAgentContract
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"终止与代理商合作"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--设置下游代理商品信息查询
/*
user_token : 验证token
keyword : 模糊搜索(分销商品名称)
dbt_goods_type : 1分销商品、2现货商品(即未参与分销商品)、3提成比例分销商品(供货价)、4固定提成分销商品(分销价)、100全部商品
is_show : 上下架(1为上架,0为下架)
page : 分页
*/
func
queryAgentGoods
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"设置下游代理商品信息查询"
,
params
,
{
(
rep
:
DataResponse
<
queryAgentGoods_model
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--给代理商设置分销商品
/*
user_token : 验证token
goods_id : 商品goods_id
sku_id : sku_id
price_type : 分销价格类型:0普通 1供应价
dbt_price : 分销价
commission_val : 固定佣金
supply_price : 供货价
floor_price : 最低价格范围
ceiling_price : 最高价格范围
*/
func
setDbtGoodsAgent
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"给代理商设置分销商品"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:-- 商品上下架
/*
user_token : 验证token
sku_id : sku_id
action : 操作,1为上架2为下架
*/
func
setGoodsAttr
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"商品上下架"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:-- 供应商取消商品分销
/*
user_token : 验证token
sku_id : sku_id
action : 操作,1为上架2为下架
*/
func
delDbtInfo
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"供应商取消商品分销"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/agentList_model/agentList_model.swift
0 → 100644
View file @
7ad93b5d
//
// agentList_model.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/19.
// Copyright © 2021 junye lu. All rights reserved.
//
import
Foundation
import
ObjectMapper
//MARK: - 设置下游代理商品信息查询
class
queryAgentGoods_model
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
queryAgentGoods_data_model
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
queryAgentGoods_data_model
:
Mappable
{
var
goods_name
:
String
?
var
goods_thumb
:
String
?
var
goods_id
:
Int
?
var
sku_id
:
Int
?
var
price
:
String
?
var
inventory
:
Int
?
//库存
var
price_type
:
Int
?
//分销价格类型:0普通 1供应价
var
supply_price
:
String
?
//代理商供货价
var
floor_price
:
String
?
//最低价格范围
var
ceiling_price
:
String
?
//最高价格范围
var
is_show
:
Int
?
//是否上下架:0否 1是
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
goods_name
<-
map
[
"goods_name"
]
goods_thumb
<-
map
[
"goods_thumb"
]
goods_id
<-
map
[
"goods_id"
]
sku_id
<-
map
[
"sku_id"
]
price
<-
map
[
"price"
]
inventory
<-
map
[
"inventory"
]
price_type
<-
map
[
"price_type"
]
supply_price
<-
map
[
"supply_price"
]
floor_price
<-
map
[
"floor_price"
]
ceiling_price
<-
map
[
"ceiling_price"
]
is_show
<-
map
[
"is_show"
]
}
}
//MARK: - 新增代理商下拉框查询
class
getAllAge_model
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
getAllAge_data_model
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
getAllAge_data_model
:
Mappable
{
var
shop_id
:
Int
?
var
shop_name
:
String
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
shop_id
<-
map
[
"shop_id"
]
shop_name
<-
map
[
"shop_name"
]
}
}
//MARK: - 下游代理商管理信息查询
class
agentList_model
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
agentList_data_model
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
agentList_data_model
:
Mappable
{
var
shop_name
:
String
?
//商店名称
var
shop_img_thumb
:
String
?
//缩略图
var
address
:
String
?
//地址
var
start_time
:
String
?
//开始合作时间
var
end_time
:
String
?
//合作结束时间
var
status
:
String
?
//合作状态
var
age_id
:
Int
?
//代理商id
var
sum_agent_commission_val
:
Int
?
//累计分销收益
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
shop_name
<-
map
[
"shop_name"
]
shop_img_thumb
<-
map
[
"shop_img_thumb"
]
address
<-
map
[
"address"
]
start_time
<-
map
[
"start_time"
]
end_time
<-
map
[
"end_time"
]
status
<-
map
[
"status"
]
age_id
<-
map
[
"age_id"
]
sum_agent_commission_val
<-
map
[
"sum_agent_commission_val"
]
}
}
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
7ad93b5d
...
...
@@ -39,7 +39,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
setTabv
()
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
jpushServiceNotification(notion:)
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"jpushServiceNotification2"
),
object
:
nil
)
...
...
@@ -47,7 +47,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
updateApp
()
}
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
...
...
@@ -259,7 +259,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
if
chlicdAuthResModelArr
.
count
>
0
{
self
.
titleStrArr
.
append
(
md
.
auth_name
!
)
self
.
pAuthResModelArr
.
append
(
md
)
}
}
})
...
...
@@ -320,16 +320,16 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
cell
.
dataModel
=
self
.
dataModel
//对本地数据库进行更新,每次进入工作中心就可以刷新啦
cell
.
isOften
=
false
cell
.
reloadData
(
title
:
arr
[
indexPath
.
row
-
1
],
items
:
tempArr
)
break
default
:
var
tempArr
:[
String
]
=
[]
var
itemDataArrs
:[
WorkcenterIndexAuthResModel
]
=
[]
cell
.
isOften
=
false
let
pAuthModel
=
pAuthResModelArr
[
indexPath
.
row
-
3
]
//父model
self
.
dataModel
?
.
auth_res
?
.
forEach
({
(
md
)
in
//子model
if
pAuthModel
.
auth_id
==
md
.
auth_pid
{
...
...
@@ -344,7 +344,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
cell
.
cellHeaderHeight
.
constant
=
CGFloat
(
1
)
cell
.
headerLeftLineV
.
isHidden
=
false
}
break
}
return
cell
...
...
@@ -420,7 +420,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
let
vc
=
CGDListViewController
()
vc
.
selectIndex
=
1
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
default
:
break
...
...
@@ -440,13 +440,13 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
NotificationCenter
.
default
.
post
(
name
:
NSNotification
.
Name
(
rawValue
:
"changgeTabItem"
),
object
:
nil
,
userInfo
:
[
"tag"
:
1
])
return
case
51
:
//品牌列表
// HUD.flash(.label("敬请期待"),delay: 1.2)
let
vc
=
PinPaiListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
let
vc
=
PinPaiListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
53
:
//销售下单-代客下单
let
vc
=
DaiKeXiaDanGouWuViewController
()
// let vc = PrintListMgVc()
// let vc = PrintListMgVc()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
54
:
//扫码下单
...
...
@@ -478,9 +478,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return
case
63
:
//入库--直接入库
let
vc
=
NewRKVc
()
// self.navigationController?.pushViewController(vc, animated: true)
// let vc = S_Y_Detail_Vc()
// vc.user_type = 1
// self.navigationController?.pushViewController(vc, animated: true)
// let vc = S_Y_Detail_Vc()
// vc.user_type = 1
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
64
:
//出库--直接出库
...
...
@@ -519,7 +519,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
case
75
:
//收支统计
let
vc
=
ShouZhiTongJiViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
...
...
@@ -558,7 +558,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return
case
89
:
//物流公司列表
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
case
90
:
//下运单
let
vc
=
XiaYunDanViewController
()
...
...
@@ -620,118 +620,156 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
vc
.
isSQ
=
true
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
// case 131: //分销管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 134: //分销商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
//// let vc = GYS_HZ_Vc()
//// vc.title_str = "分销商管理"
// let vc = DZGL_VC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 133: //供应商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = GYS_HZ_Vc()
// vc.title_str = "供应商管理"
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 139: //分销员管理
// let vc = FXYGL_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 140://待审核分销员管理
// let vc = DSHFXY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 141://分销客户管理
// let vc = KHXQ_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 142://分销收益管理
// let vc = FXSY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 136: //分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = FX_Product_GuanLiVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 137: //分销分账设置
//只有当其为供应商才可以进入
// HUD.flash(.label("敬请期待"),delay: 1.2)
// HUD.flash(.progress)
// let UserToken = UserDefaults.standard.value(forKey: "user_token")
// getDbtRule(["user_token":UserToken as Any]) { (data) in
// let dataM = data as! getDbtRuleModel
// if dataM.data?.is_sup == 1 {
// HUD.hide()
// let vc = DistributorSettingViewController()
// vc.dataM = dataM.data
// self.navigationController?.pushViewController(vc, animated: true)
// }else{
// HUD.flash(.label("仅供应商可使用该功能"),delay: 2.0)
// }
//
// } failture: { (error) in
//
// }
// return
// case 132: //分销订单管理
// let vc = RetailListMgVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 135: //供应商分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = GYS_FX_Product_ListVc()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 146://店长申请审核
// let vc = DZSH_Mg_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 131: //分销管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 134: //分销商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
//// let vc = GYS_HZ_Vc()
//// vc.title_str = "分销商管理"
// let vc = DZGL_VC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 133: //供应商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = GYS_HZ_Vc()
// vc.title_str = "供应商管理"
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 139: //分销员管理
// let vc = FXYGL_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 140://待审核分销员管理
// let vc = DSHFXY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 141://分销客户管理
// let vc = KHXQ_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 142://分销收益管理
// let vc = FXSY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 136: //分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = FX_Product_GuanLiVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 137: //分销分账设置
//只有当其为供应商才可以进入
// HUD.flash(.label("敬请期待"),delay: 1.2)
// HUD.flash(.progress)
// let UserToken = UserDefaults.standard.value(forKey: "user_token")
// getDbtRule(["user_token":UserToken as Any]) { (data) in
// let dataM = data as! getDbtRuleModel
// if dataM.data?.is_sup == 1 {
// HUD.hide()
// let vc = DistributorSettingViewController()
// vc.dataM = dataM.data
// self.navigationController?.pushViewController(vc, animated: true)
// }else{
// HUD.flash(.label("仅供应商可使用该功能"),delay: 2.0)
// }
//
// } failture: { (error) in
//
// }
// return
// case 132: //分销订单管理
// let vc = RetailListMgVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 135: //供应商分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = GYS_FX_Product_ListVc()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 146://店长申请审核
// let vc = DZSH_Mg_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
// return
case
148
:
//下游代理商管理
break
let
vc
=
SY_DLS_GL_VC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
149
:
//店长审核管理
break
let
vc
=
DZSH_Mg_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
150
:
//下游店长管理
break
let
vc
=
XY_DZ_GL_VC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
151
:
//分销员审核管理
break
let
vc
=
DSHFXY_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
152
:
//分销员管理
break
let
vc
=
FXYGL_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
153
:
//设置分销商品
break
let
vc
=
FX_Product_GuanLiVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
154
:
//设置代理商品
break
let
vc
=
FX_Product_GuanLiVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
155
:
//分销分账管理
break
let
vc
=
DistributorSettingViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
156
:
//分销客户管理
break
let
vc
=
KHXQ_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
157
:
//分销订单管理
break
let
vc
=
RetailListMgVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
159
:
//上游供应商管理
break
let
vc
=
SY_GYS_GL_VC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
160
:
//下游店长管理
break
let
vc
=
XY_DZ_GL_VC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
161
:
//上游代理商商品
break
let
vc
=
GYS_FX_Product_ListVc
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
162
:
//代理订单管理
break
let
vc
=
RetailListMgVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
164
:
//上游供应商管理
break
let
vc
=
SY_GYS_GL_VC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
165
:
//上游代理商管理
break
let
vc
=
SY_GYS_GL_VC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
166
:
//上游供应商商品
break
let
vc
=
GYS_FX_Product_ListVc
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
167
:
//上游代理商商品管理
break
let
vc
=
FX_Product_GuanLiVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
168
:
//店长订单管理
break
let
vc
=
RetailListMgVC
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
default
:
break
;
}
...
...
@@ -770,7 +808,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
if
chlicdAuthResModelArr
.
count
>
0
{
self
.
titleStrArr
.
append
(
md
.
auth_name
!
)
self
.
pAuthResModelArr
.
append
(
md
)
}
}
})
...
...
@@ -842,9 +880,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
}
}
case
false
:
break
//错误
//错误
}
}
}
}
var
updateStr
:
String
=
""
...
...
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