Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
4f3aa7ec
提交
4f3aa7ec
authored
11月 26, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'M_2.5_1122' into test
上级
142f9cf7
66755add
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
75 行增加
和
38 行删除
+75
-38
goods.js
src/api/module/goods.js
+9
-0
process.vue
src/views/entry/process.vue
+0
-1
reviewFail.vue
src/views/entry/reviewFail.vue
+10
-6
reviewing.vue
src/views/entry/reviewing.vue
+14
-10
platformlogin.vue
src/views/platformlogin.vue
+1
-5
goodsinfomation.vue
src/views/system/goods/add/components/goodsinfomation.vue
+27
-12
goodsparameter.vue
src/views/system/goods/add/components/goodsparameter.vue
+11
-3
index.vue
src/views/system/goods/add/index.vue
+3
-1
没有找到文件。
src/api/module/goods.js
浏览文件 @
4f3aa7ec
...
...
@@ -111,3 +111,12 @@ export function UploadImg(data) {
data
:
data
})
}
// 根据类目 获取服务费
export
function
getByCategoryData
(
query
)
{
return
request
({
url
:
'/local/serviceFee/getByCategory'
,
method
:
'get'
,
params
:
query
})
}
src/views/entry/process.vue
浏览文件 @
4f3aa7ec
...
...
@@ -73,7 +73,6 @@
})
},
nextStep
()
{
// this.$router.push("/agreement");
this
.
$router
.
push
(
"/fillMainInf"
);
},
}
...
...
src/views/entry/reviewFail.vue
浏览文件 @
4f3aa7ec
...
...
@@ -29,7 +29,7 @@
</
template
>
<
script
>
import
{
getInfo
}
from
'@/api/module/entry'
;
import
{
getInfo
,
getShopInf
}
from
'@/api/module/entry'
;
export
default
{
name
:
"ReviewFail"
,
data
()
{
...
...
@@ -38,6 +38,10 @@
}
},
created
()
{
if
(
this
.
$route
.
params
.
msg
)
{
this
.
msg
=
this
.
$route
.
params
.
msg
;
}
/** 页面刷新,更新 客户审核状态 */
getInfo
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
...
...
@@ -48,16 +52,16 @@
}
if
(
res
.
data
.
user
.
state
==
3
)
{
this
.
$router
.
push
({
path
:
'/reviewFail'
});
getShopInf
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
Apply
.
content
!=
''
)
{
this
.
msg
=
res
.
data
.
Apply
.
content
;
}
});
}
}
else
{
this
.
$router
.
push
({
path
:
'/reviewFail'
});
}
});
},
mounted
()
{
if
(
this
.
$route
.
params
.
msg
)
{
this
.
msg
=
this
.
$route
.
params
.
msg
;
}
/** 禁止 浏览器 后退 */
history
.
pushState
(
null
,
null
,
document
.
URL
);
window
.
addEventListener
(
'popstate'
,
function
()
{
...
...
src/views/entry/reviewing.vue
浏览文件 @
4f3aa7ec
...
...
@@ -29,22 +29,26 @@
</
template
>
<
script
>
import
{
getInfo
}
from
'@/api/module/entry'
;
export
default
{
name
:
"ReviewSuccess"
,
data
()
{
return
{}
},
created
()
{
// 刷新当前页面,如果sys操作,审核通过,那么这个applyState状态值会变为 1,代表审核通过,可以直接跳转登录页面,审核拒绝,则 为3,跳转到失败页面
if
(
this
.
$store
.
state
.
user
.
applyState
==
1
)
{
getInfo
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
this
.
$router
.
push
({
path
:
'/home/index'
});
}
if
(
this
.
$store
.
state
.
user
.
applyS
tate
==
2
)
{
this
.
$router
.
push
({
path
:
'/reviewing'
});
if
(
res
.
data
.
user
.
s
tate
==
2
)
{
this
.
$router
.
push
({
path
:
'/reviewing'
})
}
if
(
this
.
$store
.
state
.
user
.
applyS
tate
==
3
)
{
if
(
res
.
data
.
user
.
s
tate
==
3
)
{
this
.
$router
.
push
({
path
:
'/reviewFail'
});
}
}
});
},
mounted
()
{
/** 禁止 浏览器 后退 */
...
...
src/views/platformlogin.vue
浏览文件 @
4f3aa7ec
...
...
@@ -41,7 +41,6 @@
// 获取客户是否有审核信息
getShopInf
().
then
(
res
=>
{
if
(
res
.
code
===
1
)
{
//debugger
switch
(
res
.
data
.
state
)
{
case
0
:
switch
(
res
.
data
.
status
){
...
...
@@ -49,10 +48,7 @@
this
.
$router
.
push
({
path
:
'/process'
});
break
;
case
(
1
):
this
.
$router
.
push
({
path
:
'/fillBrandInf'
});
break
;
case
(
2
):
this
.
$router
.
push
({
path
:
'/fillShopInf'
,});
this
.
$router
.
push
({
path
:
'/fillShopInf'
});
break
;
}
break
;
...
...
src/views/system/goods/add/components/goodsinfomation.vue
浏览文件 @
4f3aa7ec
...
...
@@ -112,7 +112,7 @@
</
template
>
<
script
>
import
{
NewGetCategory
,
GetFreight
,
UploadImg
}
from
'@/api/module/goods'
import
{
NewGetCategory
,
GetFreight
,
UploadImg
,
getByCategoryData
}
from
'@/api/module/goods'
import
{
getBrandsInf
}
from
'@/api/module/brand/brand'
import
{
getAreaList
}
from
'@/api/module/retreat/address'
export
default
{
...
...
@@ -153,9 +153,6 @@
}
}
return
{
//loading: false,
// categoryStr: '',
goodsInfoDataClone
:
{},
areaOptions
:
[],
// 地址 省
brandOptions
:
[],
// 商品品牌
goodsInfoForm
:
{
...
...
@@ -205,7 +202,7 @@
// checkStrictly: true
},
fuckoptions
:
[],
catefee
:
0
,
}
// return end
},
components
:
{},
...
...
@@ -226,8 +223,6 @@
this
.
getSSQArea
();
},
mounted
()
{
//深拷贝一份最开始的数据,为初始化准备
//this.goodsInfoDataClone = this.deepClone(this.goodsinfodata);
if
(
this
.
goodsinfodata
.
goods_id
)
{
this
.
goodsInfoForm
=
this
.
goodsinfodata
;
if
(
this
.
goodsInfoForm
.
imgs
.
length
>
0
)
{
...
...
@@ -241,6 +236,9 @@
this
.
goodsInfoForm
.
categoryStr
=
this
.
goodsinfodata
.
categoryStr
;
this
.
goodsInfoForm
.
categoryList
=
this
.
goodsinfodata
.
categoryList
;
}
// 初始化 服务费率
this
.
getByCategoryFee
(
this
.
goodsInfoForm
.
categoryList
)
},
methods
:
{
// 数据初始化
...
...
@@ -280,7 +278,6 @@
this
.
SSQGoodsList
=
[];
this
.
editGoodsTypeDialog
=
true
;
this
.
SSQGoodsList
=
this
.
goodsInfoForm
.
categoryList
//console.log('点击修改类目数据:',this.SSQGoodsList);
},
getSSQArea
(
node
,
resolve
)
{
...
...
@@ -301,6 +298,8 @@
this
.
goodsInfoForm
.
categoryStr
=
ssqLabelList
[
0
]
+
'/'
+
ssqLabelList
[
1
]
+
'/'
+
ssqLabelList
[
2
];
this
.
editGoodsTypeDialog
=
false
;
this
.
$message
({
type
:
'success'
,
message
:
'修改成功'
});
// 修改类目后更新 服务费率
this
.
getByCategoryFee
(
this
.
goodsInfoForm
.
categoryList
)
}
else
{
this
.
$message
({
type
:
'warning'
,
message
:
'请选择完整三级类目'
});
}
...
...
@@ -421,7 +420,26 @@
this
.
$router
.
push
({
path
:
'/system/shop/brand'
});
},
// 通用 方法
/** 根据类目 获取服务费率
* 传一级类目
* */
getByCategoryFee
(
cateList
)
{
let
data
=
{
category_id
:
''
}
this
.
cateFee
=
0
;
if
(
Array
.
isArray
(
cateList
)
&&
cateList
.
length
>
0
)
{
data
.
category_id
=
cateList
[
0
];
}
// console.log(8888,data);
getByCategoryData
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
cateFee
=
res
.
data
.
service_fee_ratio
}
});
},
// 图片转换为 base64
getBase64
(
file
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
...
...
@@ -439,9 +457,6 @@
};
});
},
}
// methods end
}
</
script
>
...
...
src/views/system/goods/add/components/goodsparameter.vue
浏览文件 @
4f3aa7ec
...
...
@@ -20,8 +20,8 @@
</el-table-column>
<el-table-column
align=
"center"
prop=
"sl_price"
label=
"结算价"
>
<
template
slot-scope=
"scope"
>
<span
class=
"sl-price-span-input"
>
{{
scope
.
row
.
sl_price
=
scope
.
row
.
js_price
?
scope
.
row
.
js_price
:
''
}}
</span
>
<span
class=
"sl-price-span-input"
>
{{
scope
.
row
.
sl_price
=
scope
.
row
.
js_price
?
scope
.
row
.
js_price
:
''
}}
</span>
<!--
<span>
{{
settlePricecalc
(
scope
.
row
.
js_price
)
}}
</span>
--
>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"price"
label=
"指导价"
>
...
...
@@ -217,7 +217,8 @@ export default {
},
},
created
()
{
//this.orgGoodsPam = this.parameterdata;
// console.log("服务费率:");
},
mounted
()
{
if
(
this
.
parameterdata
.
pamTableList
&&
this
.
parameterdata
.
pamTableList
.
length
>
0
)
{
...
...
@@ -387,6 +388,13 @@ export default {
});
},
/** 结算价格计算 */
settlePricecalc
(
jsPriceVal
)
{
let
jsPriceNum
=
''
;
return
jsPriceNum
}
}
// methods end
}
</
script
>
...
...
src/views/system/goods/add/index.vue
浏览文件 @
4f3aa7ec
...
...
@@ -270,8 +270,10 @@
this
.
isShowGoodsDetails
=
false
;
}
},
mounted
()
{},
mounted
()
{
},
methods
:
{
// 规格子组件,传给父组件的数据
calcSpeTable
(
data
)
{
//console.log('原始值',data);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论