Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
9f25c5e9
Commit
9f25c5e9
authored
Mar 06, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:优化发布功能
parent
77ea2792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/views/sale/saleAdd.vue
src/views/sale/saleAdd.vue
+4
-2
No files found.
src/views/sale/saleAdd.vue
View file @
9f25c5e9
...
@@ -282,13 +282,13 @@ export default {
...
@@ -282,13 +282,13 @@ export default {
})
})
return
return
}
}
const
imageList
=
[...
this
.
goods
.
images
]
if
(
this
.
itemImages
)
{
if
(
this
.
itemImages
)
{
this
.
goods
.
images
=
this
.
itemI
mages
.
join
(
'
;
'
)
this
.
goods
.
images
=
this
.
goods
.
i
mages
.
join
(
'
;
'
)
}
else
{
}
else
{
this
.
goods
.
images
=
''
this
.
goods
.
images
=
''
}
}
this
.
$refs
.
goods
.
validate
((
valid
)
=>
{
this
.
$refs
.
goods
.
validate
((
valid
)
=>
{
debugger
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
numType
===
-
1
)
{
if
(
this
.
numType
===
-
1
)
{
this
.
goods
.
buyLimitNum
=
-
1
this
.
goods
.
buyLimitNum
=
-
1
...
@@ -303,6 +303,7 @@ export default {
...
@@ -303,6 +303,7 @@ export default {
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
goods
.
images
=
imageList
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
type
:
'
error
'
...
@@ -318,6 +319,7 @@ export default {
...
@@ -318,6 +319,7 @@ export default {
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
this
.
$router
.
push
({
path
:
'
/sale/saleList
'
})
})
})
.
catch
(
response
=>
{
.
catch
(
response
=>
{
this
.
goods
.
images
=
imageList
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
type
:
'
error
'
...
...
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