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
fukai
vue-gjjs
Commits
a3801eed
Commit
a3801eed
authored
Nov 22, 2022
by
Wuyuqiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申报交易检核、提交公共完善
parent
2804b00e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
95 additions
and
61 deletions
+95
-61
commonFuncs.js
src/mixin/commonFuncs.js
+78
-44
index.vue
src/views/Business/Dbcadd/index.vue
+2
-2
Basp.vue
src/views/Business/Dbcame/Basp.vue
+3
-3
index.vue
src/views/Business/Dbcame/index.vue
+2
-2
index.vue
src/views/Business/Dbcdel/index.vue
+2
-2
index.vue
src/views/Business/Dbcinf/index.vue
+2
-2
index.vue
src/views/Business/Dbdadd/index.vue
+2
-2
index.vue
src/views/Business/Dbdame/index.vue
+2
-2
index.vue
src/views/Business/Dbddel/index.vue
+2
-2
No files found.
src/mixin/commonFuncs.js
View file @
a3801eed
...
@@ -4,45 +4,78 @@ export default {
...
@@ -4,45 +4,78 @@ export default {
methods
:
{
methods
:
{
// 表单提交
// 表单提交
async
handleSubmit
(
rulePath
)
{
async
handleSubmit
(
rulePath
)
{
// let result;
let
result
;
// if(rulePath==""){
if
(
rulePath
){
// result = await this.save();
result
=
await
this
.
executeRule
(
rulePath
);
// }else{
// result = await this.executeRule(rulePath);
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
// }
this
.
$notify
({
let
result
=
await
this
.
save
();
title
:
"成功"
,
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
message
:
"保存成功"
,
this
.
$notify
({
type
:
"success"
,
title
:
"成功"
,
});
message
:
"保存成功"
,
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
type
:
"success"
,
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
});
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'bopsel'
)
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
//修改待复核界面刷新状态为需要刷新
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setLoadingFreshReview"
,
true
)
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
)
});
//修改待复核界面刷新状态为需要刷新
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
){
this
.
$store
.
commit
(
"setLoadingFreshReview"
,
true
)
const
tab
=
this
.
showBackendErrors
(
result
.
fieldErrors
)
});
if
(
tab
)
{
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
){
// tab切换之后,需出发tab-click的事件
const
tab
=
this
.
showBackendErrors
(
result
.
fieldErrors
)
this
.
tabClick
(
tab
);
if
(
tab
)
{
}
// tab切换之后,需出发tab-click的事件
this
.
$notify
({
this
.
tabClick
(
tab
);
title
:
"错误"
,
message
:
"检核失败!"
,
type
:
"error"
,
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"保存失败"
,
type
:
"error"
,
});
}
}
else
{
result
=
await
this
.
save
();
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"
,
'trnrel'
)
//修改待复核界面刷新状态为需要刷新
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"
,
});
}
}
this
.
$notify
({
title
:
"错误"
,
message
:
"检核失败!"
,
type
:
"error"
,
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"保存失败"
,
type
:
"error"
,
});
}
}
},
},
async
handleConfirm
()
{
async
handleConfirm
()
{
...
@@ -118,13 +151,14 @@ export default {
...
@@ -118,13 +151,14 @@ export default {
},
},
// 表单校验
// 表单校验
async
handleCheck
(
rulePath
)
{
async
handleCheck
(
rulePath
)
{
// let result;
let
result
;
// if(rulePath==""){
if
(
rulePath
){
// result = await this.checkAll();
result
=
await
this
.
executeRule
(
rulePath
);
// }else{
}
else
{
// result = await this.executeRule(rulePath);
result
=
await
this
.
checkAll
();
// }
let
result
=
await
this
.
checkAll
();
}
// let result = await this.checkAll();
if
(
result
.
respCode
==
SUCCESS
)
{
if
(
result
.
respCode
==
SUCCESS
)
{
const
fieldErrors
=
result
.
fieldErrors
;
const
fieldErrors
=
result
.
fieldErrors
;
this
.
updateModel
(
result
.
data
);
this
.
updateModel
(
result
.
data
);
...
...
src/views/Business/Dbcadd/index.vue
View file @
a3801eed
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
<!-- ('bopbut.chk') -->
<!-- ('bopbut.chk') -->
...
...
src/views/Business/Dbcame/Basp.vue
View file @
a3801eed
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
v-model=
"model.recgrp.bas.issdate"
v-model=
"model.recgrp.bas.issdate"
style=
"width: 100%"
style=
"width: 100%"
placeholder=
"请选择开证日期"
placeholder=
"请选择开证日期"
:disabled=
"!(model.recgrp.bas.methods
!='L'&&model.recgrp.bas.methods!
='G')"
:disabled=
"!(model.recgrp.bas.methods
=='L'||model.recgrp.bas.methods=
='G')"
></c-date-picker>
></c-date-picker>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
v-model=
"model.recgrp.bas.lcbgno"
v-model=
"model.recgrp.bas.lcbgno"
maxlength=
"20"
maxlength=
"20"
placeholder=
"请输入信用证/保函编号"
placeholder=
"请输入信用证/保函编号"
disabled
:disabled=
"!(model.recgrp.bas.methods=='L'||model.recgrp.bas.methods=='G')"
></c-input>
></c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
...
@@ -297,7 +297,7 @@
...
@@ -297,7 +297,7 @@
<c-input
<c-input
v-model=
"model.recgrp.bas.tenor"
v-model=
"model.recgrp.bas.tenor"
placeholder=
"请输入期限"
placeholder=
"请输入期限"
disabled
:disabled=
"!(model.recgrp.bas.methods=='L'||model.recgrp.bas.methods=='G')"
></c-input>
></c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
...
...
src/views/Business/Dbcame/index.vue
View file @
a3801eed
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
</c-function-btn>
</c-function-btn>
...
...
src/views/Business/Dbcdel/index.vue
View file @
a3801eed
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
</c-function-btn>
</c-function-btn>
...
...
src/views/Business/Dbcinf/index.vue
View file @
a3801eed
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
</c-function-btn>
</c-function-btn>
...
...
src/views/Business/Dbdadd/index.vue
View file @
a3801eed
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
</c-function-btn>
</c-function-btn>
...
...
src/views/Business/Dbdame/index.vue
View file @
a3801eed
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
</c-function-btn>
</c-function-btn>
...
...
src/views/Business/Dbddel/index.vue
View file @
a3801eed
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-function-btn
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleSubmit=
"handleSubmit
.bind(this,'bopbut.sav')
"
:handleCheck=
"handleCheck"
:handleCheck=
"handleCheck
.bind(this,'bopbut.chk')
"
:handleStash=
"handleStash"
:handleStash=
"handleStash"
>
>
</c-function-btn>
</c-function-btn>
...
...
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