Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
26d0c926
提交
26d0c926
authored
12月 27, 2021
作者:
郑伟娜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
批量设置价格
上级
646d087a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
35 行增加
和
4 行删除
+35
-4
goodsparameter.vue
src/views/system/goods/add/components/goodsparameter.vue
+35
-4
没有找到文件。
src/views/system/goods/add/components/goodsparameter.vue
浏览文件 @
26d0c926
...
...
@@ -86,8 +86,8 @@
<el-table-column
align=
"center"
prop=
"js_price"
label=
"协议价"
>
<
template
slot=
"header"
>
<span>
协议价
</span>
<el-tooltip
placemetn=
"top"
v-if=
"index==0 && orgGoodsPam.pam
Name
List.length > 1"
>
<span
slot=
"content"
>
点击可
以一键应用
</span>
<el-tooltip
placemetn=
"top"
v-if=
"index==0 && orgGoodsPam.pam
Data
List.length > 1"
>
<span
slot=
"content"
>
点击可
批量设置价格
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('js_price')"
></span>
</el-tooltip>
</
template
>
...
...
@@ -101,21 +101,49 @@
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"price"
label=
"指导价"
>
<
template
slot=
"header"
>
<span>
指导价
</span>
<el-tooltip
placemetn=
"top"
v-if=
"index==0 && orgGoodsPam.pamDataList.length > 1"
>
<span
slot=
"content"
>
点击可批量设置价格
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('price')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model=
"scope.row.price"
placeholder=
"请输入指导价"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"sc_price"
label=
"市场价"
>
<
template
slot=
"header"
>
<span>
市场价
</span>
<el-tooltip
placemetn=
"top"
v-if=
"index==0 && orgGoodsPam.pamDataList.length > 1"
>
<span
slot=
"content"
>
点击可批量设置价格
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('sc_price')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model=
"scope.row.sc_price"
placeholder=
"请输入市场价"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"stock"
label=
"库存量"
>
<
template
slot=
"header"
>
<span>
库存量
</span>
<el-tooltip
placemetn=
"top"
v-if=
"index==0 && orgGoodsPam.pamDataList.length > 1"
>
<span
slot=
"content"
>
点击可批量设置价格
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('stock')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model=
"scope.row.stock"
placeholder=
"请输入库存量"
></el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"weight"
label=
"重量"
>
<
template
slot=
"header"
>
<span>
重量
</span>
<el-tooltip
placemetn=
"top"
v-if=
"index==0 && orgGoodsPam.pamDataList.length > 1"
>
<span
slot=
"content"
>
点击可批量设置价格
</span>
<span
class=
"spe-ali-icon0435 iconfont icon-iconset0435"
@
click=
"applyAllTable('weight')"
></span>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"mini"
style=
"width:90%"
v-model=
"scope.row.weight"
placeholder=
"请输入重量"
></el-input>
</
template
>
...
...
@@ -361,8 +389,11 @@ export default {
// }
},
/** 一键应用所有 */
applyAllTable
()
{
applyAllTable
(
key
)
{
let
val
=
this
.
orgGoodsPam
.
pamTableList
[
0
][
0
][
key
]
this
.
orgGoodsPam
.
pamTableList
.
map
(
item
=>
{
item
[
0
][
key
]
=
val
})
},
// 删除 单个规格的图片
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论