Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mall
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 dd99811c
authored
Aug 16, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发环境调整
1 parent
93c096dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
src/views/pointProducts/index.vue
src/views/pointProducts/warehouse.vue
src/views/pointProducts/index.vue
View file @
dd99811
...
...
@@ -265,8 +265,8 @@ export default {
confirmPriceChange
(
e
)
{
this
.
batchPrice
=
e
.
batchPrice
this
.
batchCount
=
e
.
batchCount
if
(
!
this
.
batch
Price
&&
this
.
batchPrice
!==
0
&&
this
.
batchPrice
!==
'0'
)
return
this
.
$message
({
message
:
'请输入
金额
'
,
if
(
!
this
.
batch
Count
&&
this
.
batchCount
!==
0
&&
this
.
batchCount
!==
'0'
)
return
this
.
$message
({
message
:
'请输入
积分
'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
});
...
...
src/views/pointProducts/warehouse.vue
View file @
dd99811
...
...
@@ -247,8 +247,8 @@ export default {
confirmPriceChange
(
e
)
{
this
.
batchPrice
=
e
.
batchPrice
this
.
batchCount
=
e
.
batchCount
if
(
!
this
.
batch
Price
&&
this
.
batchPrice
!==
0
&&
this
.
batchPrice
!==
'0'
)
return
this
.
$message
({
message
:
'请输入
金额
'
,
if
(
!
this
.
batch
Count
&&
this
.
batchCount
!==
0
&&
this
.
batchCount
!==
'0'
)
return
this
.
$message
({
message
:
'请输入
积分
'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
});
...
...
@@ -322,16 +322,24 @@ export default {
businessType
:
1
}
let
tip
=
`确定把
${
item
.
goodsSkuName
}
${
operate
}
?`
let
conversionRateAll
if
(
isAll
)
{
const
list
=
this
.
getAllData
()
if
(
!
list
?.
length
)
return
this
.
$message
.
error
(
`请选择要
${
operate
}
的商品`
)
params
.
ids
=
list
.
map
(
item
=>
item
.
id
)
conversionRateAll
=
list
.
every
(
item
=>
item
.
redeemPoints
&&
item
.
salePrice
)
tip
=
`确定把已选的
${
list
.
length
}
个商品全部
${
operate
}
?`
}
console
.
log
(
conversionRateAll
)
this
.
$confirm
(
tip
,
'提示'
,
{
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
operate
==
'上架销售'
&&
(
!
isAll
&&
(
!
item
.
redeemPoints
||
!
item
.
salePrice
)
)
||
(
isAll
&&
!
conversionRateAll
))
{
this
.
$message
.
error
(
'请先输入兑换价'
)
return
}
Api
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'操作成功'
)
...
...
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