Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-notification
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 42380cb9
authored
Nov 28, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9d381219
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
src/views/purchase/components/approveComp.vue
src/views/purchase/components/dialog.vue
src/views/purchase/components/rejectComp.vue
src/views/purchase/components/approveComp.vue
View file @
42380cb
...
@@ -71,8 +71,6 @@ export default {
...
@@ -71,8 +71,6 @@ export default {
this
.
handleSendCancel
()
this
.
handleSendCancel
()
},
},
initData
(
val
)
{
initData
(
val
)
{
console
.
log
(
1111
)
console
.
log
(
'val'
,
val
.
sendOutMerchantName
)
this
.
approveForm
.
sendOutMerchantName
=
val
.
sendOutMerchantName
?
val
.
sendOutMerchantName
:
''
this
.
approveForm
.
sendOutMerchantName
=
val
.
sendOutMerchantName
?
val
.
sendOutMerchantName
:
''
this
.
approveForm
.
sendOutMerchantId
=
val
.
sendOutMerchantId
this
.
approveForm
.
sendOutMerchantId
=
val
.
sendOutMerchantId
},
},
...
@@ -129,12 +127,10 @@ export default {
...
@@ -129,12 +127,10 @@ export default {
if
(
result
.
code
==
0
)
{
if
(
result
.
code
==
0
)
{
Toast
.
success
(
'操作成功'
)
Toast
.
success
(
'操作成功'
)
setTimeout
(()
=>
{
this
.
isSubmit
=
false
this
.
isSubmit
=
false
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
handleCancel
()
this
.
handleCancel
()
this
.
$emit
(
'success'
)
this
.
$emit
(
'success'
)
},
0
)
}
else
{
}
else
{
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
$refs
.
myDialog
.
stopLoading
()
Toast
.
fail
(
result
.
message
||
'请求失败'
)
Toast
.
fail
(
result
.
message
||
'请求失败'
)
...
...
src/views/purchase/components/dialog.vue
View file @
42380cb
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
:close-on-click-overlay="false"
:close-on-click-overlay="false"
>
>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"title"
>
{{
title
}}
</div>
<
div
v-if=
"!loading"
>
<
!--
<div
v-if=
"loading"
>
--
>
<div
class=
"content"
>
<div
class=
"content"
>
<slot></slot>
<slot></slot>
</div>
</div>
...
@@ -23,12 +23,14 @@
...
@@ -23,12 +23,14 @@
{{
loading
?
'提交中...'
:
'确定'
}}
{{
loading
?
'提交中...'
:
'确定'
}}
</div>
</div>
</div>
</div>
<
/div
>
<
!--
</div>
--
>
<template
v-else
>
<template
v-if=
"loading"
>
<div
class=
"mask"
>
<div
class=
"loading-home"
>
<div
class=
"loading-home"
>
<van-loading
size=
"50"
color=
"#1989fa"
/>
<van-loading
size=
"50"
color=
"#1989fa"
/>
</div>
</div>
</div>
</
template
>
</
template
>
</van-popup>
</van-popup>
</template>
</template>
...
@@ -141,6 +143,15 @@ export default {
...
@@ -141,6 +143,15 @@ export default {
margin-left
:
11px
;
margin-left
:
11px
;
}
}
}
}
.mask
{
position
:
absolute
;
height
:
100%
;
width
:
100%
;
background
:
#ffffff
;
opacity
:
0.6
;
top
:
0
;
}
.loading-home
{
.loading-home
{
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
...
...
src/views/purchase/components/rejectComp.vue
View file @
42380cb
...
@@ -122,11 +122,9 @@ export default {
...
@@ -122,11 +122,9 @@ export default {
if
(
result
.
code
==
0
)
{
if
(
result
.
code
==
0
)
{
Toast
.
success
(
'操作成功'
)
Toast
.
success
(
'操作成功'
)
setTimeout
(()
=>
{
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
handleCancel
()
this
.
handleCancel
()
this
.
$emit
(
'success'
)
this
.
$emit
(
'success'
)
},
500
)
}
else
{
}
else
{
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
$refs
.
myDialog
.
stopLoading
()
Toast
.
fail
(
result
.
message
||
'请求失败'
)
Toast
.
fail
(
result
.
message
||
'请求失败'
)
...
...
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