Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
876dcd8e
提交
876dcd8e
编写于
10月 14, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化编辑商品获取店铺类型
上级
0b52b5f8
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
goods-manage.vue
src/views/goods/goods-manage.vue
+5
-5
shop-list.vue
src/views/shop/shop-list.vue
+1
-2
未找到文件。
src/views/goods/goods-manage.vue
浏览文件 @
876dcd8e
...
...
@@ -486,10 +486,9 @@
vm
=
this
;
this
.
getLists
()
this
.
getLever
()
const
{
storeId
,
commissionFlag
,
storeType
}
=
this
.
$route
.
query
;
const
{
storeId
,
commissionFlag
}
=
this
.
$route
.
query
;
this
.
searchForm
.
storeId
=
Number
(
storeId
)
||
0
;
this
.
commissionFlag
=
commissionFlag
;
this
.
storeType
=
storeType
;
// if(storeId){
// this.searchForm.storeId = storeId
// }
...
...
@@ -692,12 +691,13 @@
}
},
edit
(
row
){
const
{
goodsType
}
=
row
;
const
{
goodsType
,
storeType
}
=
row
;
// storeType 1: "供货商",2: "小药房",3: "医生小店"
let
url
=
''
if
(
row
==
'add'
){
url
=
`/create-good?id=add&storeId=
${
this
.
searchForm
.
storeId
}
&inputType=1&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
this
.
storeType
}
`
url
=
`/create-good?id=add&storeId=
${
this
.
searchForm
.
storeId
}
&inputType=1&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
storeType
}
`
}
else
{
url
=
`/create-good?id=
${
row
.
goodsId
}
&storeId=
${
this
.
searchForm
.
storeId
}
&goodsType=
${
goodsType
}
&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
this
.
storeType
}
`
url
=
`/create-good?id=
${
row
.
goodsId
}
&storeId=
${
this
.
searchForm
.
storeId
}
&goodsType=
${
goodsType
}
&commissionFlag=
${
this
.
commissionFlag
}
&storeType=
${
storeType
}
`
}
// this.$store.dispatch('goodsManage/changeGoodsInfo', {...row});
this
.
$router
.
push
({
...
...
src/views/shop/shop-list.vue
浏览文件 @
876dcd8e
...
...
@@ -386,8 +386,7 @@
path
:
'/goods-manage'
,
query
:
{
storeId
:
row
.
tradeStore
.
id
,
commissionFlag
:
row
.
tradeStore
.
commissionFlag
,
storeType
:
row
.
tradeStore
.
storeType
// 1: "供货商",2: "小药房",3: "医生小店"
commissionFlag
:
row
.
tradeStore
.
commissionFlag
}
});
window
.
open
(
routeData
.
href
,
'_blank'
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录