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
6b02978c
Commit
6b02978c
authored
Jun 03, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ditopn的default属性监听
parent
6245f58a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
17 deletions
+50
-17
Default.js
src/model/Ditopn/Default.js
+16
-1
Event.js
src/model/Ditopn/Event.js
+32
-13
Detp1.vue
src/views/Business/Ditopn/Detp1.vue
+2
-3
No files found.
src/model/Ditopn/Default.js
View file @
6b02978c
...
...
@@ -233,14 +233,29 @@ function defaultLiaallButmissig()
function
defaultDitpRevclauseButtxmsel
()
{
}
function
defaultDidgrpCbsNom1Cur
()
function
defaultDidgrpCbsNom1Cur
(
newVal
,
oldVal
)
{
const
that
=
this
;
that
.
model
.
didgrp
.
cbs
.
max
.
cur
=
newVal
;
// 摘要
that
.
executeDefault
(
"didgrp.rec.nam"
).
then
(
res
=>
{
that
.
model
.
didgrp
.
rec
.
nam
=
res
.
data
.
didgrp_rec_nam
;
})
}
function
defaultDidgrpCbsNom1Amt
(
newVal
,
oldVal
)
{
const
that
=
this
;
// 信用证最大金额
that
.
executeDefault
(
"didgrp.cbs.max.amt"
).
then
(
res
=>
{
that
.
model
.
didgrp
.
cbs
.
max
.
amt
=
res
.
data
.
didgrp_cbs_max_amt
;
})
// 大写金额
that
.
executeDefault
(
"ditp.amt"
).
then
(
res
=>
{
that
.
model
.
ditp
.
amt
=
res
.
data
.
ditp_amt
;
})
// 摘要
that
.
executeDefault
(
"didgrp.rec.nam"
).
then
(
res
=>
{
that
.
model
.
didgrp
.
rec
.
nam
=
res
.
data
.
didgrp_rec_nam
;
})
}
function
defaultSetmodZmqacc
()
{
...
...
src/model/Ditopn/Event.js
View file @
6b02978c
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onDitpButgetref
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/ditp_butgetref"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDitpButgetref
()
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/ditp.butgetref"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
const
ownref
=
rtnmsg
.
data
.
didgrp_rec_ownref
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
'获取结果'
,
message
:
h
(
'p'
,
null
,
[
h
(
'div'
,
{
style
:
'margin-left: 25%'
},
`参考号:
${
ownref
}
`
),
h
(
'div'
,
{
style
:
'margin-left: 25%'
},
'是否将结果填入表单?'
)
]),
showCancelButton
:
true
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
}).
then
(
action
=>
{
this
.
model
.
didgrp
.
rec
.
ownref
=
ownref
this
.
$message
({
type
:
'success'
,
message
:
'填入成功!'
});
}).
catch
(
action
=>
{
this
.
$message
({
type
:
'info'
,
message
:
"已取消"
})
});
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAplpDet
()
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/ditp.aplp.det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
console
.
log
(
rtnmsg
.
data
);
//
console.log(rtnmsg.data);
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
...
...
src/views/Business/Ditopn/Detp1.vue
View file @
6b02978c
...
...
@@ -3,8 +3,7 @@
<!--
<el-row>
-->
<el-col
:span=
"12"
>
<el-form-item
label=
"参考号"
>
<!--
<c-input
v-model=
"model.didgrp.rec.tzref"
maxlength=
"35"
placeholder=
"请输入通知行编号"
></c-input>
-->
<c-input
v-model=
"model.didgrp.adv.pts.extkey"
maxlength=
"35"
placeholder=
"请输入通知行编号"
></c-input>
<c-input
v-model=
"model.didgrp.rec.tzref"
maxlength=
"35"
placeholder=
"请输入通知行编号"
></c-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -98,7 +97,7 @@
</el-form-item>
</el-col>
<!--
<el-row>
-->
<el-col
:span=
"
8
"
>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"指定的有关银行 "
>
<c-select
v-model=
"model.didgrp.rec.avbwth"
style=
"width:100%"
placeholder=
"请选择指定的有关银行 "
>
<el-option
v-for=
"item in codes.avbwth"
:key=
"item.value"
:label=
"item.label"
...
...
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