Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eb641265
authored
Nov 17, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
带货-有规格
1 parent
478263cb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
1 deletions
src/api/modules/proManage.js
src/router/routes.js
src/views/orderShare/editShare.vue
src/views/productStore/editProductDh.vue
src/views/productStore/index.vue
src/api/modules/proManage.js
View file @
eb64126
...
@@ -76,4 +76,15 @@ const insertOrUpdateProApi = params => {
...
@@ -76,4 +76,15 @@ const insertOrUpdateProApi = params => {
})
})
}
}
export
default
{
getListApi
,
getProShareApi
,
topProApi
,
updateStatusProApi
,
deleteTakeProApi
,
getProInfoApi
,
insertOrUpdateProApi
}
const
updateTakeProApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
updateTake`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getListApi
,
getProShareApi
,
topProApi
,
updateStatusProApi
,
deleteTakeProApi
,
getProInfoApi
,
insertOrUpdateProApi
,
updateTakeProApi
}
src/router/routes.js
View file @
eb64126
...
@@ -65,6 +65,12 @@ const staticRoutes = Object.freeze([
...
@@ -65,6 +65,12 @@ const staticRoutes = Object.freeze([
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'editProductDh'
,
path
:
'/productStore/editProductDh'
,
component
:
resolve
=>
require
([
`@/views/productStore/editProductDh.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'couponManage'
,
name
:
'couponManage'
,
path
:
'/couponManage/index'
,
path
:
'/couponManage/index'
,
component
:
resolve
=>
require
([
`@/views/couponManage/index.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/couponManage/index.vue`
],
resolve
),
...
...
src/views/orderShare/editShare.vue
View file @
eb64126
...
@@ -53,6 +53,7 @@ export default {
...
@@ -53,6 +53,7 @@ export default {
editRule
:
{
editRule
:
{
shareContent
:
[{
required
:
true
,
message
:
'请输入专区名称'
,
trigger
:
'change'
}],
shareContent
:
[{
required
:
true
,
message
:
'请输入专区名称'
,
trigger
:
'change'
}],
zoneId
:
[{
required
:
true
,
message
:
'请选择发现频道'
,
trigger
:
'change'
}],
zoneId
:
[{
required
:
true
,
message
:
'请选择发现频道'
,
trigger
:
'change'
}],
videoUrl
:
[{
required
:
true
,
message
:
'请上传视频'
,
trigger
:
'change'
}],
imgUrls
:
[{
required
:
true
,
message
:
'请上传照片'
,
trigger
:
'change'
}],
imgUrls
:
[{
required
:
true
,
message
:
'请上传照片'
,
trigger
:
'change'
}],
relatePro
:
[{
required
:
true
,
message
:
'请选择关联商品'
,
trigger
:
'change'
}],
relatePro
:
[{
required
:
true
,
message
:
'请选择关联商品'
,
trigger
:
'change'
}],
goodsId
:
[{
required
:
false
,
message
:
'请选择关联的商品'
,
trigger
:
'change'
}]
goodsId
:
[{
required
:
false
,
message
:
'请选择关联的商品'
,
trigger
:
'change'
}]
...
...
src/views/productStore/editProductDh.vue
0 → 100644
View file @
eb64126
This diff is collapsed.
Click to expand it.
src/views/productStore/index.vue
View file @
eb64126
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
shareDialog
from
'../productGroup/components/shareDialog'
import
shareDialog
from
'../productGroup/components/shareDialog'
import
{
truncate
}
from
'fs'
;
export
default
{
export
default
{
name
:
'productGroup'
,
name
:
'productGroup'
,
data
()
{
data
()
{
...
@@ -243,6 +244,11 @@ export default {
...
@@ -243,6 +244,11 @@ export default {
// addOrEdit:1-新增;2-编辑;3-查看
// addOrEdit:1-新增;2-编辑;3-查看
// groupOrStore:1-集团;2-门店
// groupOrStore:1-集团;2-门店
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
// 1-门店;2-带货
if
(
row
.
goodsSource
==
2
)
{
this
.
$router
.
push
(
'/productStore/editProductDh/'
+
addOrEdit
+
'/'
+
row
.
id
)
return
true
}
addOrEdit
==
1
?
this
.
$router
.
push
(
'/productGroup/editProduct/'
+
addOrEdit
+
'/'
+
2
)
:
this
.
$router
.
push
(
'/productGroup/editProduct/'
+
addOrEdit
+
'/'
+
2
+
'/'
+
row
.
id
)
addOrEdit
==
1
?
this
.
$router
.
push
(
'/productGroup/editProduct/'
+
addOrEdit
+
'/'
+
2
)
:
this
.
$router
.
push
(
'/productGroup/editProduct/'
+
addOrEdit
+
'/'
+
2
+
'/'
+
row
.
id
)
},
},
// 下架通知
// 下架通知
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment