Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
53a83095
Commit
53a83095
authored
Apr 02, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品报错,bug修复
parent
74c57922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
index.vue
src/views/ecw/product/index.vue
+18
-20
No files found.
src/views/ecw/product/index.vue
View file @
53a83095
...
...
@@ -241,19 +241,20 @@
<
script
>
import
{
createProduct
,
updateProduct
,
deleteProduct
,
exportProductExcel
,
getProduct
,
getProductPage
,
exportProductExcel
,
product_coupon_newProd
product_coupon_newProd
,
updateProduct
}
from
"
@/api/ecw/product
"
;
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
,
AuditStatusEnum
}
from
'
@/utils/constants
'
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
DICT_TYPE
,
getDictDatas
}
from
'
@/utils/dict
'
;
import
{
AuditStatusEnum
,
CommonStatusEnum
}
from
'
@/utils/constants
'
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
ImageUpload
from
'
@/components/ImageUpload
'
export
default
{
name
:
"
EcwProductIndex
"
,
components
:
{
...
...
@@ -457,8 +458,6 @@ export default {
needBook
:
0
,
couponIds
:[],
};
let
c
=
this
.
preferentialList
.
filter
(
i
=>
i
.
isDefault
).
map
(
i
=>
i
.
couponId
)
this
.
form
.
couponIds
=
c
this
.
resetForm
(
"
form
"
);
},
/** 搜索按钮操作 */
...
...
@@ -477,6 +476,10 @@ export default {
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
this
.
$t
(
"
添加商品
"
);
product_coupon_newProd
().
then
(
r
=>
{
this
.
preferentialList
=
r
.
data
this
.
form
.
couponIds
=
this
.
preferentialList
.
filter
(
i
=>
i
.
isDefault
).
map
(
i
=>
i
.
couponId
)
})
if
(
this
.
queryParams
.
typeId
)
{
this
.
form
.
typeId
=
this
.
queryParams
.
typeId
;
}
...
...
@@ -497,6 +500,11 @@ export default {
})
this
.
open
=
true
;
this
.
title
=
this
.
$t
(
"
修改商品
"
);
product_coupon_newProd
().
then
(
r
=>
{
this
.
preferentialList
=
r
.
data
this
.
form
.
couponIds
=
this
.
preferentialList
.
filter
(
i
=>
i
.
isDefault
).
map
(
i
=>
i
.
couponId
)
// this.reset()
})
});
},
...
...
@@ -628,16 +636,6 @@ export default {
}
}
},
watch
:{
open
(
val
){
if
(
val
){
product_coupon_newProd
().
then
(
r
=>
{
this
.
preferentialList
=
r
.
data
this
.
reset
()
})
}
}
}
};
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment