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
139be52b
Commit
139be52b
authored
Feb 05, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新接口1
parent
53785cda
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
44 additions
and
14 deletions
+44
-14
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
...nessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
+4
-1
GeliBusinessPlatform/Model/VendorModel/VendorListModel.swift
GeliBusinessPlatform/Model/VendorModel/VendorListModel.swift
+5
-3
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.swift
...ssPlatform/ViewController/供应商管理/GYSGLViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
...Platform/ViewController/供应商管理/GYSListViewController.swift
+1
-0
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.xib
...ssPlatform/ViewController/供应商管理/GYSListViewController.xib
+2
-2
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+15
-3
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+6
-2
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
...form/ViewController/地址管理/XinZengDiZhiViewController.swift
+4
-0
GeliBusinessPlatform/ViewController/打印订单/PrintViewController.swift
...essPlatform/ViewController/打印订单/PrintViewController.swift
+4
-0
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/新增规格/GuiGeModel.swift
GeliBusinessPlatform/ViewController/新增规格/GuiGeModel.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
139be52b
No preview for this file type
GeliBusinessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
View file @
139be52b
...
@@ -41,6 +41,7 @@ class GoodsDetailDataModel: Mappable {
...
@@ -41,6 +41,7 @@ class GoodsDetailDataModel: Mappable {
}
}
class
GoodsDetailGoodsResModel
:
Mappable
{
class
GoodsDetailGoodsResModel
:
Mappable
{
var
sale_inventory
:
Int
?
//可售库存
var
goods_id
:
Int
?
//商品id
var
goods_id
:
Int
?
//商品id
var
goods_name
:
String
?
//商品名
var
goods_name
:
String
?
//商品名
var
keywords
:
String
?
//关键字
var
keywords
:
String
?
//关键字
...
@@ -83,6 +84,7 @@ class GoodsDetailGoodsResModel: Mappable {
...
@@ -83,6 +84,7 @@ class GoodsDetailGoodsResModel: Mappable {
}
}
func
mapping
(
map
:
Map
)
{
func
mapping
(
map
:
Map
)
{
goods_id
<-
map
[
"goods_id"
]
goods_id
<-
map
[
"goods_id"
]
sale_inventory
<-
map
[
"sale_inventory"
]
goods_name
<-
map
[
"goods_name"
]
goods_name
<-
map
[
"goods_name"
]
cat_id
<-
map
[
"cat_id"
]
cat_id
<-
map
[
"cat_id"
]
brand_id
<-
map
[
"brand_id"
]
brand_id
<-
map
[
"brand_id"
]
...
@@ -140,12 +142,13 @@ class GoodsDetailSkuResModel: Mappable {
...
@@ -140,12 +142,13 @@ class GoodsDetailSkuResModel: Mappable {
var
is_adsale_tiered
:
Int
?
//是否开启预售阶梯价 1开启 0关闭
var
is_adsale_tiered
:
Int
?
//是否开启预售阶梯价 1开启 0关闭
var
original_price
:
String
?
//原价
var
original_price
:
String
?
//原价
var
origin_number_sku
:
Int
?
//起售数量
var
origin_number_sku
:
Int
?
//起售数量
var
bar_code
:
String
?
//商品条码
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
}
}
func
mapping
(
map
:
Map
)
{
func
mapping
(
map
:
Map
)
{
sku_id
<-
map
[
"sku_id"
]
sku_id
<-
map
[
"sku_id"
]
bar_code
<-
map
[
"bar_code"
]
price
<-
map
[
"price"
]
price
<-
map
[
"price"
]
pack_attr
<-
map
[
"pack_attr"
]
pack_attr
<-
map
[
"pack_attr"
]
refrigerate
<-
map
[
"refrigerate"
]
refrigerate
<-
map
[
"refrigerate"
]
...
...
GeliBusinessPlatform/Model/VendorModel/VendorListModel.swift
View file @
139be52b
...
@@ -36,19 +36,21 @@ class VendorListDataModel: Mappable {
...
@@ -36,19 +36,21 @@ class VendorListDataModel: Mappable {
var
contacts_name
:
String
?
//联系人
var
contacts_name
:
String
?
//联系人
var
contacts_phone
:
String
?
//联系人电话
var
contacts_phone
:
String
?
//联系人电话
var
contacts_mobile
:
String
?
//联系人手机号
var
contacts_mobile
:
String
?
//联系人手机号
var
zhizhao
:
String
?
//营业执照
var
zhizhao
:
Array
<
String
>
?
//营业执照
var
food_production_license
:
String
?
//食品流通许可证
var
food_production_license
:
Array
<
String
>
?
//食品流通许可证
var
payable_money
:
String
?
//详细地址
var
payable_money
:
String
?
//详细地址
var
is_delete
:
Int
?
var
is_delete
:
Int
?
var
p_cn
:
String
?
//省
var
p_cn
:
String
?
//省
var
c_cn
:
String
?
//市
var
c_cn
:
String
?
//市
var
d_cn
:
String
?
//区
var
d_cn
:
String
?
//区
var
unit_credit_code
:
String
?
//信用代码
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
}
}
func
mapping
(
map
:
Map
)
{
func
mapping
(
map
:
Map
)
{
ven_id
<-
map
[
"ven_id"
]
ven_id
<-
map
[
"ven_id"
]
unit_credit_code
<-
map
[
"unit_credit_code"
]
shop_id
<-
map
[
"shop_id"
]
shop_id
<-
map
[
"shop_id"
]
ven_name
<-
map
[
"ven_name"
]
ven_name
<-
map
[
"ven_name"
]
province
<-
map
[
"province"
]
province
<-
map
[
"province"
]
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.swift
View file @
139be52b
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
View file @
139be52b
...
@@ -195,6 +195,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
...
@@ -195,6 +195,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
if
data
.
contacts_phone
!=
nil
{
if
data
.
contacts_phone
!=
nil
{
vc
.
telNum
=
data
.
contacts_phone
!
vc
.
telNum
=
data
.
contacts_phone
!
}
}
vc
.
create_number
=
data
.
unit_credit_code
!
vc
.
ven_id
=
data
.
ven_id
!
vc
.
ven_id
=
data
.
ven_id
!
vc
.
nameStr
=
data
.
contacts_name
!
vc
.
nameStr
=
data
.
contacts_name
!
vc
.
phoneNum
=
data
.
contacts_mobile
!
vc
.
phoneNum
=
data
.
contacts_mobile
!
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.xib
View file @
139be52b
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
125
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
139be52b
...
@@ -556,7 +556,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -556,7 +556,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
//是否有封面图
//是否有封面图
self
.
singleImgArr
=
[
(
model
.
data
?
.
goods_res
!.
original_img
)
!
]
//单张图
self
.
singleImgArr
=
[
(
model
.
data
?
.
goods_res
!.
original_img
)
!
]
//单张图
self
.
original_img
=
(
model
.
data
?
.
goods_res
!.
original_img
)
!
self
.
original_img
=
(
model
.
data
?
.
goods_res
!.
original_img
)
!
if
model
.
data
?
.
goods_res
?
.
sale_inventory
!=
nil
{
self
.
tishixxArr
.
insert
(
StringByInt
(
number
:
(
model
.
data
?
.
goods_res
?
.
sale_inventory
)
!
),
at
:
4
)
self
.
tishixxArr
.
remove
(
at
:
5
)
}
//商品规格
//商品规格
if
(
model
.
data
?
.
sku_res
?
.
count
)
!
>
0
{
if
(
model
.
data
?
.
sku_res
?
.
count
)
!
>
0
{
...
@@ -601,6 +604,9 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -601,6 +604,9 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
//百分比
//百分比
data
.
DJBiLi
=
StringByInt
(
number
:
dataSource
.
pct
!
)
data
.
DJBiLi
=
StringByInt
(
number
:
dataSource
.
pct
!
)
if
dataSource
.
bar_code
!=
nil
{
data
.
bar_code
=
dataSource
.
bar_code
!
}
//阶梯价
//阶梯价
if
dataSource
.
tiered_pri
!.
count
>
0
{
if
dataSource
.
tiered_pri
!.
count
>
0
{
data
.
jieTiArr
=
self
.
getResponseArr
(
str
:
dataSource
.
tiered_pri
!
)
data
.
jieTiArr
=
self
.
getResponseArr
(
str
:
dataSource
.
tiered_pri
!
)
...
@@ -846,9 +852,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -846,9 +852,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
dict
=
guiGeArr
.
first
dict
=
guiGeArr
.
first
}
}
cell
.
code_lbl
.
text
=
"商品条码:未记录"
cell
.
code_lbl
.
text
=
"商品条码:未记录"
if
dict
.
code_number
.
count
>
0
{
if
dict
.
bar_code
.
count
>
0
{
cell
.
code_lbl
.
text
=
"商品条码:
\(
dict
.
code_number
)
"
cell
.
code_lbl
.
text
=
"商品条码:
\(
dict
.
bar_code
)
"
}
}
cell
.
tempLbl
.
text
=
"温藏:未记录"
cell
.
tempLbl
.
text
=
"温藏:未记录"
if
dict
.
wenDu
.
count
>
0
{
if
dict
.
wenDu
.
count
>
0
{
...
@@ -1804,6 +1811,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -1804,6 +1811,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
var
sku
=
[
"sku_sn"
:
""
,
var
sku
=
[
"sku_sn"
:
""
,
"sku_id"
:
item
.
sku_id
,
"sku_id"
:
item
.
sku_id
,
"goods_id"
:
goods_id
,
"goods_id"
:
goods_id
,
"bar_code"
:
item
.
bar_code
,
"is_del"
:
0
,
"is_del"
:
0
,
"spec_id"
:
"1"
,
"spec_id"
:
"1"
,
"attr"
:
item
.
guiGe
,
"attr"
:
item
.
guiGe
,
...
@@ -1853,6 +1861,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -1853,6 +1861,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let
sku
=
[
"sku_sn"
:
""
,
let
sku
=
[
"sku_sn"
:
""
,
"sku_id"
:
skuModel
.
sku_id
as
Any
,
"sku_id"
:
skuModel
.
sku_id
as
Any
,
"goods_id"
:
goods_id
as
Any
,
"goods_id"
:
goods_id
as
Any
,
"bar_code"
:
skuModel
.
bar_code
as
Any
,
"is_del"
:
1
,
"is_del"
:
1
,
"spec_id"
:
"1"
,
"spec_id"
:
"1"
,
"attr"
:
strattr
as
Any
,
"attr"
:
strattr
as
Any
,
...
@@ -2091,6 +2100,9 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -2091,6 +2100,9 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
}
}
}
}
}
}
else
{
provinceIndex
=
0
cityIndex
=
0
}
}
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
// }
// }
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
139be52b
...
@@ -418,8 +418,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -418,8 +418,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
dict
=
guiGeArr
.
first
dict
=
guiGeArr
.
first
}
}
cell
.
code_lbl
.
text
=
"商品条码:未记录"
cell
.
code_lbl
.
text
=
"商品条码:未记录"
if
dict
.
code_number
.
count
>
0
{
if
dict
.
bar_code
.
count
>
0
{
cell
.
code_lbl
.
text
=
"商品条码:
\(
dict
.
code_number
)
"
cell
.
code_lbl
.
text
=
"商品条码:
\(
dict
.
bar_code
)
"
}
}
cell
.
tempLbl
.
text
=
"温藏:未记录"
cell
.
tempLbl
.
text
=
"温藏:未记录"
if
dict
.
wenDu
.
count
>
0
{
if
dict
.
wenDu
.
count
>
0
{
...
@@ -1323,6 +1323,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -1323,6 +1323,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
var
sku
=
[
"sku_sn"
:
""
,
var
sku
=
[
"sku_sn"
:
""
,
"spec_id"
:
"1"
,
"spec_id"
:
"1"
,
"bar_code"
:
md
.
bar_code
,
"attr"
:
md
.
guiGe
,
"attr"
:
md
.
guiGe
,
"pack_attr"
:
packAttrStr
,
"pack_attr"
:
packAttrStr
,
"refrigerate"
:
md
.
wenDu
,
"refrigerate"
:
md
.
wenDu
,
...
@@ -1500,6 +1501,9 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -1500,6 +1501,9 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
}
}
}
}
else
{
provinceIndex
=
0
cityIndex
=
0
}
}
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
// }
// }
...
...
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
View file @
139be52b
...
@@ -187,6 +187,10 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -187,6 +187,10 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
}
}
}
}
}
}
}
else
{
provinceIndex
=
0
cityIndex
=
0
areaIndex
=
0
}
}
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/打印订单/PrintViewController.swift
View file @
139be52b
...
@@ -326,6 +326,10 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -326,6 +326,10 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
}
}
}
}
}
}
}
else
{
provinceIndex
=
0
cityIndex
=
0
areaIndex
=
0
}
}
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
proDict
=
addressArray
[
provinceIndex
]
as!
Dictionary
<
String
,
Any
>
// }
// }
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
139be52b
...
@@ -237,7 +237,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -237,7 +237,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
dataModel
.
price
=
price
dataModel
.
price
=
price
dataModel
.
guiGe
=
guiGe
dataModel
.
guiGe
=
guiGe
dataModel
.
weight
=
weight
dataModel
.
weight
=
weight
dataModel
.
code_number
=
code_number
dataModel
.
bar_code
=
code_number
dataModel
.
wenDu
=
wenDu
dataModel
.
wenDu
=
wenDu
dataModel
.
danWei
=
danWei
dataModel
.
danWei
=
danWei
dataModel
.
isYsJieTiOpen
=
isYsJieTiOpen
dataModel
.
isYsJieTiOpen
=
isYsJieTiOpen
...
@@ -812,7 +812,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -812,7 +812,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
price
=
dataDict
.
price
price
=
dataDict
.
price
guiGe
=
dataDict
.
guiGe
guiGe
=
dataDict
.
guiGe
weight
=
dataDict
.
weight
weight
=
dataDict
.
weight
code_number
=
dataDict
.
code_number
code_number
=
dataDict
.
bar_code
wenDu
=
dataDict
.
wenDu
wenDu
=
dataDict
.
wenDu
danWei
=
dataDict
.
danWei
danWei
=
dataDict
.
danWei
yuShouPrice
=
dataDict
.
yuShouPrice
yuShouPrice
=
dataDict
.
yuShouPrice
...
...
GeliBusinessPlatform/ViewController/新增规格/GuiGeModel.swift
View file @
139be52b
...
@@ -18,7 +18,7 @@ class GuiGeModel: NSObject {
...
@@ -18,7 +18,7 @@ class GuiGeModel: NSObject {
///重量
///重量
var
weight
:
String
=
""
var
weight
:
String
=
""
///条形码
///条形码
var
code_number
:
String
=
""
var
bar_code
:
String
=
""
///温度
///温度
var
wenDu
:
String
=
""
var
wenDu
:
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