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 f3a98ba2
authored
Nov 26, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
42ec7ac9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
15 deletions
src/plugins/vant.js
src/views/purchase/components/approveComp.vue
src/views/purchase/components/dialog.vue
src/plugins/vant.js
View file @
f3a98ba
...
...
@@ -47,7 +47,8 @@ import {
Empty
,
PullRefresh
,
Picker
,
Dialog
Dialog
,
Loading
}
from
'vant'
export
const
components
=
[
Button
,
...
...
@@ -87,5 +88,6 @@ export const components = [
Empty
,
PullRefresh
,
Picker
,
Dialog
Dialog
,
Loading
]
src/views/purchase/components/approveComp.vue
View file @
f3a98ba
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-11-19 16:39:10
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-11-21 16:02:32
* @FilePath: \wx-notification\src\views\purchase\components\approveComp.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<h-dialog
ref=
"myDialog"
:title=
"title"
:isVisible=
"isVisible"
@
confirm=
"handleSubmit"
@
cancel=
"handleCancel"
>
<div
class=
"formObj"
>
...
...
@@ -36,6 +29,7 @@ export default {
components
:
{
hDialog
,
sendOutComp
},
data
()
{
return
{
isSubmit
:
false
,
name
:
this
.
$route
.
query
.
name
,
staffType
:
this
.
$route
.
query
.
staffType
,
sendOutVisible
:
false
,
...
...
@@ -43,7 +37,7 @@ export default {
approveForm
:
{
remark
:
''
,
sendOutMerchantId
:
''
,
sendOutMerchantName
:
'
深圳广联赛讯股份有限公司
'
sendOutMerchantName
:
''
}
}
},
...
...
@@ -77,7 +71,9 @@ export default {
this
.
handleSendCancel
()
},
initData
(
val
)
{
this
.
approveForm
.
sendOutMerchantName
=
val
.
sendOutMerchantName
console
.
log
(
1111
)
console
.
log
(
'val'
,
val
.
sendOutMerchantName
)
this
.
approveForm
.
sendOutMerchantName
=
val
.
sendOutMerchantName
?
val
.
sendOutMerchantName
:
''
this
.
approveForm
.
sendOutMerchantId
=
val
.
sendOutMerchantId
},
handleSelect
()
{
...
...
@@ -115,6 +111,7 @@ export default {
return
}
try
{
this
.
isSubmit
=
true
this
.
$refs
.
myDialog
.
startLoading
()
const
params
=
{
...
...
@@ -133,20 +130,21 @@ export default {
if
(
result
.
code
==
0
)
{
Toast
.
success
(
'操作成功'
)
setTimeout
(()
=>
{
this
.
isSubmit
=
false
this
.
$refs
.
myDialog
.
stopLoading
()
this
.
handleCancel
()
this
.
$emit
(
'success'
)
},
50
0
)
},
0
)
}
else
{
this
.
$refs
.
myDialog
.
stopLoading
()
Toast
.
fail
(
result
.
message
||
'请求失败'
)
}
}
catch
(
error
)
{
this
.
isSubmit
=
false
this
.
$refs
.
myDialog
.
stopLoading
()
Toast
.
fail
(
'系统异常,请稍后再试'
)
console
.
error
(
error
)
}
// this.$refs.myDialog.stopLoading();
},
handleCancel
()
{
this
.
$emit
(
'cancel'
)
...
...
src/views/purchase/components/dialog.vue
View file @
f3a98ba
...
...
@@ -9,7 +9,8 @@
:close-on-click-overlay="false"
>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"content"
>
<div
v-if=
"!loading"
>
<div
class=
"content"
>
<slot></slot>
</div>
<div
class=
"btn-group"
>
...
...
@@ -22,6 +23,13 @@
{{
loading
?
'提交中...'
:
'确定'
}}
</div>
</div>
</div>
<template
v-else
>
<div
class=
"loading-home"
>
<van-loading
size=
"50"
color=
"#1989fa"
/>
</div>
</
template
>
</van-popup>
</template>
...
...
@@ -133,5 +141,12 @@ export default {
margin-left
:
11px
;
}
}
.loading-home
{
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
}
</
style
>
\ No newline at end of file
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