Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
刘怀志
pet-business-web
Commits
61c786a7
Commit
61c786a7
authored
Aug 28, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次弹窗
parent
7ddf42ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
9 deletions
+74
-9
index.vue
src/components/BackBtn/index.vue
+58
-0
registration-detail.vue
...ice-management/registration-queue/registration-detail.vue
+16
-9
No files found.
src/components/BackBtn/index.vue
0 → 100644
View file @
61c786a7
<
template
>
<el-button
:loading=
"loading"
:class=
"buttonClass"
:icon=
"buttonIcon"
@
click=
"clickEvent"
>
{{
buttonText
}}
</el-button>
</
template
>
<
script
>
export
default
{
name
:
'Index'
,
props
:
{
buttonClass
:
{
type
:
String
,
default
:
'resetBtn'
},
loading
:
{
type
:
Boolean
,
default
:
false
},
buttonIcon
:
{
type
:
String
,
default
:
'el-icon-back'
},
buttonText
:
{
type
:
String
,
default
:
'返 回'
},
clickAction
:
{
type
:
Object
,
required
:
true
},
isShowConfirm
:
{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
clickEvent
()
{
if
(
this
.
isShowConfirm
)
{
this
.
$confirm
(
this
.
buttonClass
===
'queryBtn'
?
'系统即将发布编辑内容,是否确定'
:
'是否立即返回,返回后系统不再保存已填写内容'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'box-logout'
,
cancelButtonClass
:
'resetBtn'
,
confirmButtonClass
:
'queryBtn'
,
type
:
'warning'
,
closeOnClickModal
:
false
}).
then
(()
=>
{
this
.
clickAction
()
})
}
else
{
this
.
clickAction
()
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/service-management/registration-queue/registration-detail.vue
View file @
61c786a7
...
...
@@ -545,16 +545,21 @@
/>
</div>
<!--底部返回按钮-->
<
el-butto
n
<
back-bt
n
v-if=
"$route.params.type === 'enter'"
:loading=
"submiting"
class=
"queryBtn"
icon=
"el-icon-check"
@
click=
"submitForm"
>
提
交
</el-button>
<el-button
class=
"backBth"
icon=
"el-icon-back"
@
click=
"goBack"
>
返 回
</el-button>
:button-class=
"'queryBtn'"
:button-icon=
"'el-icon-check'"
:click-action=
"submitForm"
button-text=
"提 交"
:is-show-confirm=
"$route.params.type === 'enter'"
/>
<back-btn
button-text=
"返 回"
button-class=
"resetBtn"
:click-action=
"goBack"
:is-show-confirm=
"$route.params.type === 'enter'"
/>
</el-form>
</div>
</div>
...
...
@@ -570,6 +575,7 @@ import scheduleInfo from '@/views/service-management/registration-queue/componen
import
prescribingModle
from
'@/views/service-management/registration-queue/components/prescribing-modle'
import
{
insertDiagnosis
}
from
'@/api/business/registration'
import
{
moneyFormat
}
from
'@/utils'
import
backBtn
from
'@/components/BackBtn'
export
default
{
name
:
'RegistrationDetail'
,
...
...
@@ -577,7 +583,8 @@ export default {
dicts
:
[
'pet_sex'
,
'vaccine_situation'
,
'exist_state'
,
'sterilization_status'
,
'pet_insure'
,
'cat_breed'
,
'dog_breed'
,
'other_breed'
],
components
:
{
scheduleInfo
,
prescribingModle
prescribingModle
,
backBtn
},
data
()
{
return
{
...
...
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