Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
8dd826bf
提交
8dd826bf
authored
7月 06, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、添加商品-商品信息页面以及校验
上级
e3d51d21
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
329 行增加
和
247 行删除
+329
-247
goodsinfomation.vue
src/views/system/goods/add/components/goodsinfomation.vue
+305
-223
index.vue
src/views/system/goods/add/index.vue
+21
-23
index.vue
src/views/system/order/index.vue
+3
-1
没有找到文件。
src/views/system/goods/add/components/goodsinfomation.vue
浏览文件 @
8dd826bf
差异被折叠。
点击展开。
src/views/system/goods/add/index.vue
浏览文件 @
8dd826bf
...
...
@@ -10,15 +10,15 @@
<p
class=
"goods-type-tip"
>
为商品设置正确的类目,能让商品快速的被搜索到
</p>
</div>
<div
class=
"goods-type-options"
v-loading=
"loading"
>
<el-cascader-panel
v-model=
"SSQList"
:props=
'props'
@
change=
"SSQChange"
ref=
"ssqCascader"
@
blur=
"handleAddressFun"
></el-cascader-panel>
<el-cascader-panel
v-model=
"SSQList"
:props=
'props'
@
change=
"SSQChange"
ref=
"ssqCascader"
></el-cascader-panel>
</div>
<el-button
type=
"primary"
class=
"next-step"
:disabled=
"isNextStep"
@
click=
"nextStep"
>
下一步
</el-button>
</div>
</el-card>
<!-- 选择商品类目 end -->
<!-- 添加商品 start -->
<el-card
class=
"box-card good-details-body"
v-
show
=
"isShowGoodsDetails"
>
<div
class=
"floor-nav"
id=
"floorNavList"
:class=
"
{'is-fixed': isFixed}"
>
<el-card
class=
"box-card good-details-body"
v-
if
=
"isShowGoodsDetails"
>
<div
class=
"floor-nav"
id=
"floorNavList"
>
<ul
class=
"nav-list"
>
<li
class=
"nav-list-item"
:class=
"
{'floor-item-active': isFIActive === index}" v-for="(item, index) in floorNav" :key="item.id" @click="setFloorNavMountClick(index)">
{{
item
.
name
}}
</li>
</ul>
...
...
@@ -27,7 +27,7 @@
<div
class=
"floor-item"
>
<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>
<Goodsinfomation
ref=
"
G
oodsInfo"
:goodsinfodata=
'goodsinfodata'
/>
<Goodsinfomation
ref=
"
g
oodsInfo"
:goodsinfodata=
'goodsinfodata'
/>
</div>
</div>
...
...
@@ -53,7 +53,7 @@
</div>
</div>
<div
class=
"submit-cont"
>
<el-button
type=
"primary"
style=
"padding: 10px 30px;"
>
提 交
</el-button>
<el-button
type=
"primary"
style=
"padding: 10px 30px;"
@
click=
"save"
>
提 交
</el-button>
</div>
</el-card>
<!-- 添加商品 end -->
...
...
@@ -79,12 +79,10 @@
leaf
:
'leaf'
},
isNextStep
:
true
,
isFixed
:
false
,
scrollHeight
:
0
,
isShowGoodsDetails
:
false
,
isFIActive
:
0
,
/**/
floorNav
:
[
// 自定义左侧楼层数
floorNav
:
[
{
id
:
1
,
name
:
'商品信息'
},
{
id
:
2
,
name
:
'商品规格'
},
{
id
:
3
,
name
:
'商品售价'
},
...
...
@@ -92,7 +90,10 @@
{
id
:
5
,
name
:
'售后及服务'
},
],
/* 商品信息 */
goodsinfodata
:
{}
goodsinfodata
:
{
categoryList
:
[],
categoryStr
:
''
}
}
},
components
:
{
...
...
@@ -177,22 +178,20 @@
this
.
loading
=
false
;
});
},
// handleAddressFun: function(e,form,this.ssqStr){
// // thsAreaCode = this.form.areaCode // 注意1:获取value值
// thsAreaCode = this.$refs['ssqCascader'].currentLabels //注意2: 获取label值
// console.log(thsAreaCode) // 注意3: 最终结果是个一维数组对象
//
// },
// 添加商品后,下一步 操作
nextStep
()
{
// 注意数据格式 [1,2,3] 数组,且里面是数字类型
// let a1 = []
// a1.push(this.SSQList[0]);
//let fuck1 = this.$refs['ssqCascader'].getCheckedNodes(this.SSQList)
// console.log(111,this.SSQList);
//console.log(222,fuck1);
let
ssqLabelList
=
this
.
$refs
[
'ssqCascader'
].
getCheckedNodes
()[
0
].
pathLabels
;
this
.
goodsinfodata
.
categoryList
=
this
.
SSQList
;
this
.
goodsinfodata
.
categoryStr
=
ssqLabelList
[
0
]
+
'/'
+
ssqLabelList
[
1
]
+
'/'
+
ssqLabelList
[
2
];
this
.
isShowGoodsDetails
=
true
;
},
//
save
()
{
let
isGoodInfMsg
=
this
.
$refs
[
'goodsInfo'
].
validateGoodsInfForm
();
},
/* 添加商品详细 */
/* 设置楼层导航事件驱动方法* @params Number index 楼层下标 */
setFloorNavMountClick
(
index
)
{
...
...
@@ -202,8 +201,8 @@
floor_offsetTop
=
floor_item
[
index
].
offsetTop
-
floor_item
[
0
].
offsetTop
,
window_scrollTop
=
this
.
$refs
.
scrollview
.
scrollTop
,
timer
=
{
step
:
50
,
times
:
1
5
,
step
:
45
,
times
:
1
8
,
FLOOR_OFFSETTOP
:
floor_offsetTop
}
if
(
window_scrollTop
>
floor_offsetTop
)
{
...
...
@@ -214,7 +213,6 @@
_this
.
setFloorScrollArrowDown
(
timer
)
}
},
/* 设置楼层向上滚动* @params Object timer 定时器配置 */
setFloorScrollArrowUp
(
timer
)
{
//debugger
...
...
src/views/system/order/index.vue
浏览文件 @
8dd826bf
...
...
@@ -793,7 +793,9 @@
// 订单导出
handleExport
(
row
)
{
const
rowIds
=
this
.
ids
;
let
query
=
{
page
:
1
,
limit
:
100
}
//console.log(777,rowIds);
let
query
=
{
page
:
1
,
limit
:
100
};
// return
exportOrder
(
query
).
then
(
res
=>
{
if
(
res
.
code
===
1
)
{
const
link
=
document
.
createElement
(
'a'
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论