Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
3327b7c0
提交
3327b7c0
authored
8月 04, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
1588de2b
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
51 行增加
和
21 行删除
+51
-21
goodsgement.js
src/api/module/goodsgement.js
+3
-6
request.js
src/utils/request.js
+1
-1
fillShopInf.vue
src/views/entry/fillShopInf.vue
+8
-2
goodsgement.vue
src/views/system/goodsimport/goodsgement.vue
+39
-12
没有找到文件。
src/api/module/goodsgement.js
浏览文件 @
3327b7c0
...
...
@@ -8,6 +8,7 @@ export function getlistGoods(query) {
params
:
query
})
}
//上下架商品
export
function
shelvesStatus
(
data
)
{
return
request
({
...
...
@@ -16,6 +17,7 @@ export function shelvesStatus(data) {
data
:
data
})
}
//删除还原商品
export
function
delgoodsStatus
(
data
)
{
return
request
({
...
...
@@ -43,8 +45,6 @@ export function goodsjdAddress(query) {
})
}
// 商品导入
export
function
goodsimport
(
data
)
{
return
request
({
...
...
@@ -54,9 +54,6 @@ export function goodsimport(data) {
})
}
// 取消审核
export
function
cancelOnsale
(
data
)
{
return
request
({
...
...
@@ -64,4 +61,4 @@ export function cancelOnsale(data) {
method
:
'post'
,
data
:
data
})
}
\ No newline at end of file
}
src/utils/request.js
浏览文件 @
3327b7c0
...
...
@@ -54,7 +54,7 @@ service.interceptors.response.use(res => {
// debugger
// 未设置状态码则默认成功状态
const
code
=
(
res
.
data
.
code
===
0
?
0
:
res
.
data
.
code
)
||
200
;
const
code
=
res
.
data
.
code
||
200
;
// 返回所有数据的统一处理
const
data
=
res
.
data
;
// 获取错误信息
...
...
src/views/entry/fillShopInf.vue
浏览文件 @
3327b7c0
...
...
@@ -312,12 +312,18 @@
this
.
getBase64
(
param
.
file
).
then
((
res
)
=>
{
let
result
=
res
.
split
(
","
);
this
.
Base64img
=
result
[
1
];
let
data
=
{
"im
age
"
:
this
.
Base64img
};
let
data
=
{
"im
g_data
"
:
this
.
Base64img
};
upLoadImg
(
data
).
then
((
res
)
=>
{
//console.log("可以过来了",this.logoImgFileList);
if
(
res
&&
res
.
code
===
1
){
this
.
logoImgFileList
.
push
({
'url'
:
res
.
data
.
image_url
});
this
.
$message
({
type
:
'success'
,
message
:
'上传成功'
});
this
.
$refs
.
storeForm
.
clearValidate
(
'shop_logo'
);
}
else
{
let
msg
=
''
;
msg
=
res
.
message
||
'上传失败'
this
.
$message
({
type
:
'success'
,
message
:
msg
});
//this.$refs.storeForm.clearValidate('shop_logo');
}
});
});
...
...
@@ -328,7 +334,7 @@
this
.
getBase64
(
param
.
file
).
then
((
res
)
=>
{
let
result
=
res
.
split
(
","
);
this
.
Base64img
=
result
[
1
];
let
data
=
{
"im
age
"
:
this
.
Base64img
};
let
data
=
{
"im
g_data
"
:
this
.
Base64img
};
upLoadImg
(
data
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
1
){
this
.
businessImgFileList
.
push
({
'url'
:
res
.
data
.
image_url
});
...
...
src/views/system/goodsimport/goodsgement.vue
浏览文件 @
3327b7c0
...
...
@@ -59,7 +59,7 @@
<el-button
style=
"float:right;margin-left: 10px;"
type=
"danger"
v-if=
'radiomodel
!=4&&radiomodel!=1
'
v-if=
'radiomodel
===2
'
size=
"mini"
:disabled=
"multiple"
@
click=
"handledelsale('9','del','all')"
...
...
@@ -138,17 +138,11 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
'radiomodel==3&&scope.row.up_onsale===1'
>
<!--
<el-button
size=
"mini"
type=
"text"
@
click=
"handleUpdate(scope.row)"
>
取消上架申请
</el-button>
-->
<el-button
size=
"mini"
type=
"text"
disabled=
"true
"
>
审核中
@
click=
"handleCancelUpsale(scope.row)
"
>
取消上架申请
</el-button>
</div>
<div
v-else
>
...
...
@@ -309,9 +303,6 @@
let
headerHeight
=
document
.
getElementsByClassName
(
'queryFormInline'
)[
0
].
clientHeight
this
.
fullHeight
=
document
.
getElementsByClassName
(
'box-card'
)[
0
].
clientHeight
-
headerHeight
})
console
.
log
(
"come on"
);
},
watch
:
{
fullHeight
(
val
)
{
...
...
@@ -499,6 +490,42 @@
});
},
// 取消上架申请
handleCancelUpsale
(
row
)
{
let
id
=
{
goods_id
:
0
};
id
.
goods_id
=
row
.
goods_id
?
row
.
goods_id
:
0
;
this
.
$msgbox
({
title
:
'取消商品上架申请'
,
message
:
"是否取消选中商品的上架申请!"
,
center
:
true
,
showCancelButton
:
true
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
beforeClose
:
(
action
,
instance
,
done
)
=>
{
if
(
action
===
'confirm'
)
{
cancelOnsale
(
id
).
then
(
res
=>
{
console
.
log
(
510
,
res
);
if
(
res
.
code
==
1
)
{
done
()
this
.
getList
()
}
})
}
else
{
done
();
}
}
}).
then
(
action
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
});
});
//cancelOnsale().then();
},
editgoods
(
row
)
{
//商品编辑
this
.
editisOpen
=
true
this
.
goodsid
=
Number
(
row
.
goods_id
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论