Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 df216430
authored
Mar 17, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 点击上架不在有效期不请求接口
1 parent
ec1d5cac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/views/goods/grounding/index.vue
src/views/goods/grounding/index.vue
View file @
df21643
...
@@ -884,11 +884,13 @@ export default {
...
@@ -884,11 +884,13 @@ export default {
},
},
handleUpOrDown
(
row
)
{
handleUpOrDown
(
row
)
{
var
launchText
=
'上架后重新进入审核流程;是否确定上架?'
;
var
launchText
=
'上架后重新进入审核流程;是否确定上架?'
;
if
(
row
.
sellPriceValidType
==
2
&&
row
.
tempValidEndDate
){
var
launchStatus
=
1
;
if
(
row
.
sellPriceValidType
==
2
&&
row
.
tempValidEndDate
&&
row
.
status
!=
1
)
{
var
now
=
new
Date
();
var
now
=
new
Date
();
var
nowTime
=
now
.
getTime
();
var
nowTime
=
now
.
getTime
();
if
(
row
.
tempValidEndDate
<
nowTime
)
{
if
(
row
.
tempValidEndDate
<
nowTime
)
{
launchText
=
'此商品售价有效期已过,请先到编辑页面维护后再上架,是否确认继续?'
;
launchText
=
'此商品售价有效期已过,请先到编辑页面维护后再上架,是否确认继续?'
;
launchStatus
=
0
;
}
}
}
}
var
html
=
row
.
status
==
'0'
?
launchText
:
'下架后对应的门店无法再使用该商品,是否确定下架?'
;
var
html
=
row
.
status
==
'0'
?
launchText
:
'下架后对应的门店无法再使用该商品,是否确定下架?'
;
...
@@ -897,11 +899,13 @@ export default {
...
@@ -897,11 +899,13 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
if
(
launchStatus
)
{
const
selfStatus
=
row
.
status
==
1
?
0
:
4
const
selfStatus
=
row
.
status
==
1
?
0
:
4
updateGoodsStatus
({
id
:
row
.
id
,
status
:
selfStatus
}).
then
(
res
=>
{
updateGoodsStatus
({
id
:
row
.
id
,
status
:
selfStatus
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
groundingIndexTable
.
refreshTable
()
this
.
$refs
.
groundingIndexTable
.
refreshTable
()
})
})
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
})
})
...
...
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