Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
fcc1e26c
提交
fcc1e26c
authored
5月 18, 2022
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix-bug
上级
3c746b04
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
17 行删除
+27
-17
goodsparameter.vue
src/views/system/goods/add/components/goodsparameter.vue
+18
-8
index.vue
src/views/system/goods/add/index.vue
+9
-9
没有找到文件。
src/views/system/goods/add/components/goodsparameter.vue
浏览文件 @
fcc1e26c
...
@@ -8,17 +8,17 @@
...
@@ -8,17 +8,17 @@
:data=
"singleSpecTable"
:data=
"singleSpecTable"
style=
"width: 100%;margin-right:10%;"
style=
"width: 100%;margin-right:10%;"
>
>
<el-table-column
align=
"center"
prop=
"sc_price"
label=
"市场划线价"
>
<el-table-column
align=
"center"
prop=
"sc_price"
label=
"市场划线价
1"
class-name=
"spe-cell-icon
"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.sc_price"
placeholder=
"请输入市场价"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.sc_price"
placeholder=
"请输入市场价"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"price"
label=
"销售指导价"
>
<el-table-column
align=
"center"
prop=
"price"
label=
"销售指导价"
class-name=
"spe-cell-icon"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.price"
placeholder=
"请输入指导价"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.price"
placeholder=
"请输入指导价"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"js_price"
label=
"供货结算价"
>
<el-table-column
align=
"center"
prop=
"js_price"
label=
"供货结算价"
class-name=
"spe-cell-icon"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.js_price"
placeholder=
"请输入协议价"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.js_price"
placeholder=
"请输入协议价"
></el-input>
</
template
>
</
template
>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"stock"
label=
"库存"
>
<el-table-column
align=
"center"
prop=
"stock"
label=
"库存"
class-name=
"spe-cell-icon"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.stock"
placeholder=
"请输入库存量"
></el-input>
<el-input
size=
"mini"
style=
"width:90%"
v-model
.
trim=
"scope.row.stock"
placeholder=
"请输入库存量"
></el-input>
</
template
>
</
template
>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
</template> -->
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"sc_price"
label=
"市场划线价"
>
<el-table-column
align=
"center"
prop=
"sc_price"
label=
"市场划线价"
class-name=
"spe-cell-icon"
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<span>
市场划线价
</span>
<span>
市场划线价
</span>
<el-tooltip
placemetn=
"top"
>
<el-tooltip
placemetn=
"top"
>
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"price"
label=
"销售指导价"
>
<el-table-column
align=
"center"
prop=
"price"
label=
"销售指导价"
class-name=
"spe-cell-icon"
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<span>
销售指导价
</span>
<span>
销售指导价
</span>
<el-tooltip
placemetn=
"top"
>
<el-tooltip
placemetn=
"top"
>
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"js_price"
label=
"供货结算价"
>
<el-table-column
align=
"center"
prop=
"js_price"
label=
"供货结算价"
class-name=
"spe-cell-icon"
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<span>
供货结算价
</span>
<span>
供货结算价
</span>
<el-tooltip
placemetn=
"top"
>
<el-tooltip
placemetn=
"top"
>
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
<!-- </template>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<el-table-column
align=
"center"
prop=
"stock"
label=
"库存"
>
<el-table-column
align=
"center"
prop=
"stock"
label=
"库存"
class-name=
"spe-cell-icon"
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<span>
库存
</span>
<span>
库存
</span>
<el-tooltip
placemetn=
"top"
>
<el-tooltip
placemetn=
"top"
>
...
@@ -959,4 +959,14 @@ p {
...
@@ -959,4 +959,14 @@ p {
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
}
}
::v-deep
.has-gutter
.spe-cell-icon
{
position
:
relative
;
}
::v-deep
.has-gutter
.spe-cell-icon
>
.cell
:before
{
content
:
'*'
;
color
:
red
;
margin-right
:
5px
;
}
</
style
>
</
style
>
src/views/system/goods/add/index.vue
浏览文件 @
fcc1e26c
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
<Goodsinfomation
ref=
"goodsInfo"
:goodsinfodata=
'goodsinfodata'
/>
<Goodsinfomation
ref=
"goodsInfo"
:goodsinfodata=
'goodsinfodata'
/>
</div>
</div>
</div>
</div>
<!-- 商品规格 -->
<!-- 商品规格
/价格库存
-->
<div
class=
"floor-item"
>
<div
class=
"floor-item"
>
<div
class=
"floor-item-box"
>
<div
class=
"floor-item-box"
>
<p
class=
"card-header-title floor-item-box-title"
><span
class=
"blue-block-goods blue-block-goods-title"
></span>
商品规格
<p
class=
"card-header-title floor-item-box-title"
><span
class=
"blue-block-goods blue-block-goods-title"
></span>
价格库存
<el-radio-group
v-model=
"radioguide"
@
change=
"radiochange"
style=
"padding-left:50px;"
>
<el-radio-group
v-model=
"radioguide"
@
change=
"radiochange"
style=
"padding-left:50px;"
>
<el-radio
:label=
"1"
>
单规格
</el-radio>
<el-radio
:label=
"1"
>
单规格
</el-radio>
<el-radio
:label=
"2"
>
多规格
</el-radio>
<el-radio
:label=
"2"
>
多规格
</el-radio>
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
/**/
/**/
floorNav
:
[
floorNav
:
[
{
id
:
1
,
name
:
'商品信息'
},
{
id
:
1
,
name
:
'商品信息'
},
{
id
:
2
,
name
:
'
商品规格
'
},
{
id
:
2
,
name
:
'
价格库存
'
},
{
id
:
3
,
name
:
'商品详情'
},
{
id
:
3
,
name
:
'商品详情'
},
{
id
:
4
,
name
:
'商品参数'
},
{
id
:
4
,
name
:
'商品参数'
},
{
id
:
5
,
name
:
'售后及服务'
}
{
id
:
5
,
name
:
'售后及服务'
}
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
categoryList
:
[],
categoryList
:
[],
categoryStr
:
''
categoryStr
:
''
},
},
/*
商品规格
*/
/*
价格库存
*/
specificationsdata
:
[],
specificationsdata
:
[],
/* 商品售价 */
/* 商品售价 */
parameterdata
:
{
parameterdata
:
{
...
@@ -257,9 +257,9 @@
...
@@ -257,9 +257,9 @@
});
});
}
}
//
console.log(260,this.goodsinfodata.producing_area_id,this.goodsinfodata.deliver_area_id)
console
.
log
(
260
,
this
.
goodsinfodata
.
producing_area_id
,
this
.
goodsinfodata
.
deliver_area_id
)
//
商品规格
, 售价由规格决定
//
价格库存
, 售价由规格决定
if
(
res
.
data
.
specs
&&
res
.
data
.
specs
.
length
>
0
)
{
if
(
res
.
data
.
specs
&&
res
.
data
.
specs
.
length
>
0
)
{
this
.
specificationsdata
=
res
.
data
.
specs
;
this
.
specificationsdata
=
res
.
data
.
specs
;
this
.
radioguide
=
2
this
.
radioguide
=
2
...
@@ -341,7 +341,7 @@
...
@@ -341,7 +341,7 @@
// 商品详情
// 商品详情
this
.
description
=
res
.
data
.
description
;
this
.
description
=
res
.
data
.
description
;
// 商品参数 售后服务
其他设置
// 商品参数 售后服务
this
.
goodsaftersale
.
params
=
res
.
data
.
params
?
res
.
data
.
params
:[{
'title'
:
''
,
'value'
:
''
}]
//参数
this
.
goodsaftersale
.
params
=
res
.
data
.
params
?
res
.
data
.
params
:[{
'title'
:
''
,
'value'
:
''
}]
//参数
this
.
goodsaftersale
.
out_goods_id
=
(
res
.
data
.
out_goods_id
==
0
)
?
''
:
res
.
data
.
out_goods_id
//商品编码
this
.
goodsaftersale
.
out_goods_id
=
(
res
.
data
.
out_goods_id
==
0
)
?
''
:
res
.
data
.
out_goods_id
//商品编码
this
.
goodsaftersale
.
freight_id
=
res
.
data
.
freight_id
;
this
.
goodsaftersale
.
freight_id
=
res
.
data
.
freight_id
;
...
@@ -489,7 +489,7 @@
...
@@ -489,7 +489,7 @@
let
isGoodsInfoMsg
=
this
.
$refs
[
'goodsInfo'
].
validateGoodsInfoForm
();
let
isGoodsInfoMsg
=
this
.
$refs
[
'goodsInfo'
].
validateGoodsInfoForm
();
debugger
debugger
//
商品规格
无需校验
//
价格库存
无需校验
let
spggRef
=
this
.
$refs
.
goodsspecifications
;
let
spggRef
=
this
.
$refs
.
goodsspecifications
;
let
spggData
=
spggRef
.
speData
;
let
spggData
=
spggRef
.
speData
;
spggRef
.
upDateDom
();
spggRef
.
upDateDom
();
...
@@ -829,7 +829,7 @@
...
@@ -829,7 +829,7 @@
initAllGoodsInfo
()
{
initAllGoodsInfo
()
{
// 初始化 商品信息 数据
// 初始化 商品信息 数据
this
.
$refs
.
goodsInfo
.
initInfo
();
this
.
$refs
.
goodsInfo
.
initInfo
();
// 初始化
商品规格
数据
// 初始化
价格库存
数据
this
.
$refs
.
goodsspecifications
.
initInfo
();
this
.
$refs
.
goodsspecifications
.
initInfo
();
// 初始化 商品售价 数据
// 初始化 商品售价 数据
this
.
$refs
.
goodsparameter
.
initInfo
();
this
.
$refs
.
goodsparameter
.
initInfo
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论