Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
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
zhouqian
vue-gjjs
Commits
da620b0d
Commit
da620b0d
authored
Oct 10, 2022
by
jianglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LITOPN添加确认按钮
parent
0d8a5afa
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
1 deletions
+57
-1
FunctionBtn.vue
src/components/FunctionBtn.vue
+5
-1
common.js
src/lang/local/en/common.js
+1
-0
common.js
src/lang/local/zh/common.js
+1
-0
commonApi.js
src/mixin/commonApi.js
+8
-0
commonFuncs.js
src/mixin/commonFuncs.js
+37
-0
Status.js
src/store/Status.js
+4
-0
index.vue
src/views/Business/Litopn/index.vue
+1
-0
No files found.
src/components/FunctionBtn.vue
View file @
da620b0d
...
...
@@ -5,6 +5,7 @@
<
template
>
<div
class=
"m-Btn-eContainer"
v-if=
"!buttonHide && ((!isReview && !funcBtnHide) || showSetBtn)"
>
<div
class=
"m-funcBtn-eContainer"
v-if=
"!isReview && !buttonHide && !funcBtnHide"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"confirm"
:loading=
"$store.state.Status.loading.confirm"
>
{{
$t
(
'buttons.confirm'
)
}}
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"start"
:loading=
"$store.state.Status.loading.submit"
>
{{
$t
(
'buttons.submit'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"check"
:loading=
"$store.state.Status.loading.check"
>
{{
$t
(
'buttons.check'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"save"
:loading=
"$store.state.Status.loading.stash"
>
{{
$t
(
'buttons.stash'
)
}}
</el-button>
...
...
@@ -45,7 +46,7 @@
export
default
{
// 如果需要制裁信息按钮则给组件传 showAml 方法,如果不需要则不传
props
:
[
"handleSubmit"
,
"handleCheck"
,
"handleStash"
,
"handleExit"
,
"hideFuncBtn"
],
props
:
[
"handleSubmit"
,
"handleCheck"
,
"handleStash"
,
"handleExit"
,
"hideFuncBtn"
,
"handleConfirm"
],
data
:
function
()
{
return
{
isReview
:
false
,
...
...
@@ -90,6 +91,9 @@ export default {
save
:
async
function
()
{
this
.
handleStash
&&
(
await
this
.
handleStash
());
},
confirm
:
async
function
()
{
this
.
handleConfirm
&&
(
await
this
.
handleConfirm
());
},
handleCancel
:
function
()
{
this
.
$confirm
(
"确认退出?"
,
""
,
{
confirmButtonText
:
"确认"
,
...
...
src/lang/local/en/common.js
View file @
da620b0d
...
...
@@ -34,6 +34,7 @@ export default {
update
:
"Update"
,
details
:
"Details"
,
submit
:
"Submit"
,
confirm
:
"Confirm"
,
check
:
"Check"
,
stash
:
"Stash"
,
quit
:
"Quit"
,
...
...
src/lang/local/zh/common.js
View file @
da620b0d
...
...
@@ -26,6 +26,7 @@ export default {
},
buttons
:
{
confirm
:
"确认"
,
save
:
"保存"
,
add
:
"添加"
,
delete
:
"删除"
,
...
...
src/mixin/commonApi.js
View file @
da620b0d
...
...
@@ -89,6 +89,14 @@ export default {
loading
.
close
()
return
rtnmsg
},
async
confirm
(
params
)
{
const
loading
=
this
.
loading
(
"正在保存交易"
)
let
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/confirmData"
,
this
.
wrapper
(
params
))
loading
.
close
()
return
rtnmsg
},
async
executeCheck
(
rulePath
,
params
)
{
const
loading
=
this
.
loading
(
"校验进行中"
)
let
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/executeCheck/"
+
rulePath
,
this
.
wrapper
(
params
))
...
...
src/mixin/commonFuncs.js
View file @
da620b0d
...
...
@@ -38,6 +38,43 @@ export default {
}
},
async
handleConfirm
()
{
let
result
=
await
this
.
confirm
();
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"保存成功"
,
type
:
"success"
,
});
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'sptrel'
)
//修改待复核界面刷新状态为需要刷新
this
.
$store
.
commit
(
"setLoadingFreshReview"
,
true
)
});
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
){
const
tab
=
this
.
showBackendErrors
(
result
.
fieldErrors
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
this
.
tabClick
(
tab
);
}
this
.
$notify
({
title
:
"错误"
,
message
:
"检核失败!"
,
type
:
"error"
,
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"确认失败"
,
type
:
"error"
,
});
}
},
// 表单暂存
async
handleStash
()
{
// 汇入汇款交易必须输入收款人信息才能暂存
...
...
src/store/Status.js
View file @
da620b0d
...
...
@@ -19,6 +19,7 @@ const Status = {
activeName
:
undefined
},
loading
:
{
confirm
:
false
,
// 提交
submit
:
false
,
// 校验
...
...
@@ -90,6 +91,9 @@ const Status = {
setLoadingSubmit
(
state
,
value
)
{
state
.
loading
.
submit
=
value
;
},
setLoadingConfirm
(
state
,
value
)
{
state
.
loading
.
confirm
=
value
;
},
setLoadingCheck
(
state
,
value
)
{
state
.
loading
.
check
=
value
;
},
...
...
src/views/Business/Litopn/index.vue
View file @
da620b0d
...
...
@@ -2,6 +2,7 @@
<c-page
title=
"进口信用证开立"
>
<div
class=
"eContainer"
>
<c-function-btn
:handleConfirm=
"handleConfirm"
:handleSubmit=
"handleSubmit"
:handleCheck=
"handleCheck"
:handleStash=
"handleStash"
...
...
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