Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
77b2a879
提交
77b2a879
authored
12月 23, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
293e3320
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
33 行增加
和
15 行删除
+33
-15
goods.js
src/api/module/goods.js
+11
-1
request.js
src/utils/request.js
+1
-1
index.vue
src/views/system/goods/add/index.vue
+9
-8
goodsgement.vue
src/views/system/goodsimport/goodsgement.vue
+12
-5
没有找到文件。
src/api/module/goods.js
浏览文件 @
77b2a879
...
@@ -18,7 +18,7 @@ export function GetCategory(query) {
...
@@ -18,7 +18,7 @@ export function GetCategory(query) {
})
})
}
}
// 经营类目
// 经营类目
-12-23-bak
export
function
NewGetCategory
(
query
)
{
export
function
NewGetCategory
(
query
)
{
return
request
({
return
request
({
url
:
'/system/goodsNew/businessList'
,
url
:
'/system/goodsNew/businessList'
,
...
@@ -26,6 +26,16 @@ export function NewGetCategory(query) {
...
@@ -26,6 +26,16 @@ export function NewGetCategory(query) {
params
:
query
params
:
query
})
})
}
}
// 营业类目
export
function
NewGetCategoryData
(
data
)
{
return
request
({
url
:
'/local/getCategoryList'
,
method
:
'post'
,
data
:
data
})
}
// 查询运费模板
// 查询运费模板
export
function
GetFreight
(
query
)
{
export
function
GetFreight
(
query
)
{
return
request
({
return
request
({
...
...
src/utils/request.js
浏览文件 @
77b2a879
...
@@ -39,7 +39,7 @@ service.interceptors.request.use(config => {
...
@@ -39,7 +39,7 @@ service.interceptors.request.use(config => {
if
(
getToken
()
&&
!
isToken
)
{
if
(
getToken
()
&&
!
isToken
)
{
config
.
headers
[
'Authorization'
]
=
getToken
()
// 让每个请求携带自定义token 请根据实际情况自行修改
config
.
headers
[
'Authorization'
]
=
getToken
()
// 让每个请求携带自定义token 请根据实际情况自行修改
}
}
//config.headers['Authorization'] = 'Bearer ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbk5hbWUiOiIxNTcxMTEzOTg5NSIsInVpZCI6NTI4MjgsImNoYW5uZWxJZCI6MCwiZXhwIjoxNjE5ODMzMzk3LCJpc3MiOiJnaW4tYmxvZyJ9.rh-WXSaFqgqY611Tm5dhba532OYEZvm06vUmgZknoy4
'
config
.
headers
[
'Authorization'
]
=
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbk5hbWUiOiIxODIzMzExODAzNyIsInVpZCI6ODU0MCwic3ViaWQiOjAsImNoYW5uZWxJZCI6MTEzMzcsIm5hbWUiOiLotbXpm6rlpoIiLCJleHAiOjE2NDAyNTE0MTh9.6m_DqSkThyTw3n7xYhIr6njEwIVmP0RLpiTFH4dLLJI
'
return
config
return
config
},
error
=>
{
},
error
=>
{
console
.
log
(
"25reject"
);
console
.
log
(
"25reject"
);
...
...
src/views/system/goods/add/index.vue
浏览文件 @
77b2a879
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<p
class=
"goods-type-tip"
>
为商品设置正确的类目,能让商品快速的被搜索到
</p>
<p
class=
"goods-type-tip"
>
为商品设置正确的类目,能让商品快速的被搜索到
</p>
</div>
</div>
<div
class=
"goods-type-options"
>
<div
class=
"goods-type-options"
>
<el-cascader-panel
v-model=
"SSQList"
:props=
'props'
@
change=
"SSQChange"
ref=
"ssqCascader"
></el-cascader-panel>
<!--
<el-cascader-panel
v-model=
"SSQList"
:props=
'props'
@
change=
"SSQChange"
ref=
"ssqCascader"
></el-cascader-panel>
-->
<el-cascader-panel
v-model=
"SSQList"
:props=
'propsOptions'
@
change=
"SSQChange"
ref=
"ssqCascader"
></el-cascader-panel>
</div>
</div>
<el-button
type=
"primary"
class=
"next-step"
:disabled=
"isNextStep"
@
click=
"nextStep"
>
下一步
</el-button>
<el-button
type=
"primary"
class=
"next-step"
:disabled=
"isNextStep"
@
click=
"nextStep"
>
下一步
</el-button>
</div>
</div>
...
@@ -78,7 +79,7 @@
...
@@ -78,7 +79,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
NewGetCategory
,
addGoods
,
getGoodsNew
,
updateGoodsNew
}
from
'@/api/module/goods'
;
import
{
NewGetCategory
,
NewGetCategoryData
,
addGoods
,
getGoodsNew
,
updateGoodsNew
}
from
'@/api/module/goods'
;
import
Goodsinfomation
from
'./components/goodsinfomation'
;
import
Goodsinfomation
from
'./components/goodsinfomation'
;
import
GoodsSpecifications
from
'./components/goodsspecifications'
;
import
GoodsSpecifications
from
'./components/goodsspecifications'
;
import
GoodsParameter
from
'./components/goodsparameter'
;
import
GoodsParameter
from
'./components/goodsparameter'
;
...
@@ -105,12 +106,12 @@
...
@@ -105,12 +106,12 @@
goodsLoading
:
false
,
goodsLoading
:
false
,
SSQList
:
[],
// 省市区
SSQList
:
[],
// 省市区
SSQStr
:
''
,
// 省市区 拼接
SSQStr
:
''
,
// 省市区 拼接
props
:
{
props
Options
:
{
expandTrigger
:
'click'
,
expandTrigger
:
'click'
,
lazy
:
true
,
lazy
:
true
,
lazyLoad
:
this
.
lazyLoad
,
lazyLoad
:
this
.
lazyLoad
,
value
:
"id"
,
value
:
"id"
,
label
:
'
label
'
,
label
:
'
title
'
,
leaf
:
'leaf'
leaf
:
'leaf'
},
},
isNextStep
:
true
,
isNextStep
:
true
,
...
@@ -330,16 +331,16 @@
...
@@ -330,16 +331,16 @@
const
level
=
node
.
level
;
const
level
=
node
.
level
;
let
limboNode
=
{};
let
limboNode
=
{};
if
(
level
===
0
)
{
if
(
level
===
0
)
{
limboNode
=
{
id
:
0
}
limboNode
=
{
parent_
id
:
0
}
}
}
if
(
level
===
1
)
{
if
(
level
===
1
)
{
limboNode
=
{
id
:
node
.
value
};
limboNode
=
{
parent_
id
:
node
.
value
};
}
}
if
(
level
===
2
)
{
if
(
level
===
2
)
{
limboNode
=
{
id
:
node
.
value
};
limboNode
=
{
parent_
id
:
node
.
value
};
}
}
NewGetCategory
(
limboNode
).
then
(
res
=>
{
NewGetCategory
Data
(
limboNode
).
then
(
res
=>
{
let
result
=
{};
let
result
=
{};
if
(
level
===
0
)
{
if
(
level
===
0
)
{
result
=
res
.
data
result
=
res
.
data
...
...
src/views/system/goodsimport/goodsgement.vue
浏览文件 @
77b2a879
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
<
script
>
<
script
>
import
goodDetail
from
'./components/goodsdetail'
import
goodDetail
from
'./components/goodsdetail'
import
editGood
from
'@/views/system/goods/add/index'
import
editGood
from
'@/views/system/goods/add/index'
import
{
GetFreight
}
from
'@/api/module/goods'
import
{
GetFreight
,
getGoodsNew
}
from
'@/api/module/goods'
import
{
getlistGoods
,
shelvesStatus
,
delgoodsStatus
,
cancelOnsale
,
cancelOnsaleAllData
,
saveHotEditGoodsData
}
from
'@/api/module/goodsgement'
import
{
getlistGoods
,
shelvesStatus
,
delgoodsStatus
,
cancelOnsale
,
cancelOnsaleAllData
,
saveHotEditGoodsData
}
from
'@/api/module/goodsgement'
import
{
dateFormat
}
from
'@/utils'
import
{
dateFormat
}
from
'@/utils'
...
@@ -655,15 +655,22 @@
...
@@ -655,15 +655,22 @@
},
},
/** 不下架 编辑部分商品信息 */
/** 不下架 编辑部分商品信息 */
hotEditGoods
(
row
)
{
hotEditGoods
(
row
)
{
let
goodsId
=
0
;
let
data
=
{
if
(
!
row
.
goods_id
)
{
goodsId
:
row
.
goods_id
};
if
(
!
data
.
goodsId
)
{
return
return
}
}
goodsId
=
row
.
goods_id
;
this
.
isHotEditGoods
=
true
;
// 获取运费模板
// 获取运费模板
this
.
getFreightData
();
this
.
getFreightData
();
getGoodsNew
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
)
{
this
.
isHotEditGoods
=
true
;
console
.
log
(
667
,
res
.
data
);
}
});
},
},
/** 保存 不下架 编辑商品 */
/** 保存 不下架 编辑商品 */
saveHotEditGoods
()
{
saveHotEditGoods
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论