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
0c6978cf
Commit
0c6978cf
authored
Oct 19, 2021
by
liushikai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ditopn 面函
parent
00c4b6fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
304 additions
and
19 deletions
+304
-19
Event.js
src/model/Ditopn/Event.js
+83
-0
index.js
src/model/Ditopn/index.js
+12
-1
Docpan.vue
src/views/Business/Ditopn/Docpan.vue
+208
-17
index.vue
src/views/Business/Ditopn/index.vue
+1
-1
No files found.
src/model/Ditopn/Event.js
View file @
0c6978cf
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
export
default
{
onLitp1Butgetref
()
{
onLitp1Butgetref
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
...
@@ -289,4 +290,85 @@ export default {
...
@@ -289,4 +290,85 @@ export default {
},
},
async
handleDisplay
(
index
,
row
){
let
cortyp
=
row
.
cortyp
let
rtnmsg
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
this
.
model
.
setmod
.
msgmod
.
doccod
=
row
.
id
rtnmsg
=
await
Api
.
post
(
'cptopn/msgmod_butshw'
,
{
data
:
Utils
.
getRequestDataFn
.
call
(
this
)
})
}
else
{
this
.
model
.
trnmod
.
trndoc
.
doccod
=
row
.
id
this
.
model
.
trnmod
.
trndoc
.
cortyp
=
cortyp
const
params
=
{
index
:
index
}
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpan"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
}
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
let
viewurl
=
rtnmsg
.
data
.
setmod_msgmod_docpth
;
this
.
viewurl
=
viewurl
this
.
title
=
"报文"
//window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
else
if
(
cortyp
==
'ELC'
)
{
Modal
.
info
({
title
:
'电证报文'
,
content
:
<
div
style
=
{{
height
:
400
,
overflow
:
'auto'
}}
><
ELCMessage
mty
=
{
row
.
id
}
message
=
{
rtnmsg
.
data
[
"
\\
trnmod
\\
trndoc
\\
docinf"
]}
/></
div
>
,
width
:
1000
,
})
}
else
{
// let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
this
.
title
=
"面函"
let
viewurl
=
"/#/docpan/show"
;
let
XMLdata
;
if
(
row
.
pandsc
==
"国内信用证"
){
window
.
sessionStorage
.
docTXT
=
''
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litbenl1blk
;
}
else
if
(
row
.
pandsc
==
"开立国内信用证备查表"
){
window
.
sessionStorage
.
docTXT
=
''
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litapll1blk
}
else
if
(
row
.
pandsc
==
"elcs.101.001.01"
){
window
.
sessionStorage
.
docXML
=
''
window
.
sessionStorage
.
docTXT
=
''
rtnmsg
.
data
.
trnmod_trndoc_doceot
[
index
].
doctxt
.
rows
.
forEach
(
element
=>
{
window
.
sessionStorage
.
docTXT
+=
element
+
"
\
r
\
n"
});
}
else
if
(
row
.
pandsc
==
"MT799"
){
window
.
sessionStorage
.
docTXT
=
''
XMLdata
=
rtnmsg
.
data
.
litbenl1blk
}
// console.log( window.sessionStorage.docTXT);
// console.log( window.sessionStorage.docXML);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
this
.
dialogOpen
=
true
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
})
}
},
async
handleDetail
(
index
,
row
){
const
params
=
{
index
:
index
}
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpanDetail"
,
{
...
Utils
.
getRequestDataFn
.
call
(
this
),
params
})
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
console
.
log
(
"11111111111111111111111111111"
)
this
.
title
=
row
.
pandsc
this
.
centerDialogVisible
=
true
,
this
.
dialog
=
rtnmsg
.
data
.
trnmod_trndoc_doceot
[
index
]
this
.
index
=
index
}
},
}
}
\ No newline at end of file
src/model/Ditopn/index.js
View file @
0c6978cf
...
@@ -235,7 +235,17 @@ export default class Ditopn{
...
@@ -235,7 +235,17 @@ export default class Ditopn{
conexedat
:
""
,
// Execution Date .mtabut.coninf.conexedat
conexedat
:
""
,
// Execution Date .mtabut.coninf.conexedat
},
},
},
},
pageId
:
""
// ctx的key
pageId
:
""
,
// ctx的key
trnmod
:{
trndoc
:{
advlabel
:
""
,
// ADVLABEL .trnmod.trndoc.advlabel
amdnam
:
""
,
// AMDNAM .trnmod.trndoc.amdnam
advdoc
:
""
,
// 国内证通知书 .trnmod.trndoc.advdoc
advnam
:
""
,
// 国内证落款 .trnmod.trndoc.advnam
amdapl
:
""
,
// 修改申请人名称 .trnmod.trndoc.amdapl
doceot
:[],
},
},
}
}
}
}
}
}
\ No newline at end of file
src/views/Business/Ditopn/Docpan.vue
View file @
0c6978cf
<
template
>
<
template
>
<div
class=
"eibs-tab"
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"通讯情况"
>
</el-form-item>
<el-form-item
label=
"通讯情况"
label-width=
"120px"
>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"22"
:offset=
"1"
>
<c-col
:span=
"22"
:offset=
"1"
>
...
@@ -135,6 +135,196 @@
...
@@ -135,6 +135,196 @@
</el-table-column>
</el-table-column>
</c-istream-table-docpan>
</c-istream-table-docpan>
</c-col>
</c-col>
<!-- ============================================== -->
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"centerDialogVisible"
width=
"60%"
center
>
<el-form
label-width=
"100px"
:model=
"dialog"
>
<c-row>
<c-col
:span=
"12"
>
<c-col>
<el-form-item
label=
"per-medium"
><el-input
disabled
v-model=
"dialog.cortyp"
/></el-form-item>
</c-col>
<c-col>
<el-form-item
label=
"Form Set"
>
<el-input
disabled
v-model=
"dialog.cortyp"
/>
</el-form-item>
</c-col>
<c-col
v-if=
"title != 'elcs.101.001.01'"
>
<el-form-item>
<el-input
disabled
style=
"width: 150px"
value=
"Original"
/>
<el-input
v-model=
"dialog.apfcpy1"
style=
"width: 100px; margin-left: 20px"
/>
</el-form-item>
<el-form-item>
<el-input
disabled
style=
"width: 150px"
value=
"Customer Copy"
/>
<el-input
v-model=
"dialog.apfcpy2"
style=
"width: 100px; margin-left: 20px"
/>
</el-form-item>
<el-form-item>
<el-input
disabled
style=
"width: 150px"
value=
"File Copy"
/>
<el-input
v-model=
"dialog.apfcpy3"
style=
"width: 100px; margin-left: 20px"
/>
</el-form-item>
<el-form-item>
<el-input
disabled
style=
"width: 150px"
value=
"Internal Copy"
/>
<el-input
v-model=
"dialog.apfcpy4"
style=
"width: 100px; margin-left: 20px"
/>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Send Message to"
label-width=
"150px"
>
<el-input
disabled
v-model=
"dialog.roladr"
/>
</el-form-item>
<el-form-item
label-width=
"30px"
v-if=
"title != 'elcs.101.001.01'"
>
<el-input
style=
"width: 250px"
v-model=
"dialog.rcv.pts.extkey"
/>
<c-button
size=
"small"
type=
"primary;width:20%"
>
i
</c-button>
<c-button
size=
"small"
type=
"primary"
>
Details
</c-button>
</el-form-item>
<el-form-item
v-else
label=
"BIC"
>
<el-input
v-model=
"dialog.rcv.pts.extkey"
/>
</el-form-item>
<el-form-item
v-if=
"title == 'elcs.101.001.01'"
label=
"行联行号"
>
<el-input
v-model=
"dialog.rcv.pts.bankno"
/>
</el-form-item>
<el-form-item
label-width=
"30px"
>
<el-input
:value=
"
title != 'elcs.101.001.01'
? dialog.rcv.namelc
: dialog.rcv.pts.jigomc
"
:disabled=
"title != 'elcs.101.001.01'"
type=
"textarea"
:rows=
"2"
/>
<br
/>
<el-input
:value=
"
title != 'elcs.101.001.01'
? dialog.rcv.adrelc
: dialog.rcv.pts.dizzhii
"
:disabled=
"title == 'MT799'"
type=
"textarea"
:rows=
"2"
/>
</el-form-item>
<el-form-item
label=
"Reference"
label-width=
"100px"
>
<el-input
disabled
v-model=
"dialog.adrref"
/>
</el-form-item>
<el-form-item
label=
"Medium"
label-width=
"100px"
>
<el-input
disabled
style=
"width: 40%"
v-model=
"dialog.cortyp"
/>
<el-input
disabled
v-model=
"dialog.docuil"
style=
"width: 40%; margin-left: 20px"
/>
</el-form-item>
</c-col>
<c-col>
</c-col>
<c-col
:span=
"12"
v-if=
"title != 'MT799'"
>
<el-form-item
label=
"Adress Amend"
label-width=
"120px"
>
<el-input
type=
"textarea"
v-model=
"dialog.adrblk"
:rows=
"4"
/>
</el-form-item>
</c-col>
<c-col
:span=
"12"
v-else
>
<el-form-item
label=
"BIC"
>
<el-input
disabled
v-model=
"dialog.adrbic"
/>
</el-form-item>
<el-form-item
label=
"Authenticator"
><el-input
disabled
v-model=
"dialog.adrbicaut"
/></el-form-item>
<el-form-item
label=
"Priority"
><el-input
disabled
v-model=
"dialog.msgpri"
/></el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label-width=
"30px"
>
<el-table
:data=
"dialog.rcv.ptyinftxt.rows"
size=
"mini"
stripe
:border=
"true"
empty-text=
" "
max-height=
"430px"
>
<el-table-column
label=
"Corr.Type"
sortable
>
</el-table-column>
<el-table-column
label=
"Adressing"
sortable
>
</el-table-column>
<el-table-column
label=
"Authentication"
sortable
>
</el-table-column>
</el-table>
</el-form-item>
</c-col>
<c-col
v-if=
"title != 'MT799'"
><el-form-item
label=
"Letter Date"
>
<el-date-picker
type=
"date"
v-model=
"dialog.docdat"
>
</el-date-picker
></el-form-item>
</c-col>
<c-col
><el-form-item
label=
"Contact"
><el-input
v-model=
"dialog.ptcnam"
/></el-form-item>
</c-col>
<c-col
:span=
"22"
><el-form-item
:label=
"
title == 'MT799' ? 'Sender to Rec. information' : 'Remark'
"
><el-input
type=
"textarea"
:rows=
"10"
:disabled=
"title == 'MT799'"
:v-model=
"title == 'MT799' ? dialog.addtxt : dialog.remark"
/></el-form-item>
</c-col>
<c-col
:span=
"2"
>
<el-button
size=
"mini"
>
...
</el-button>
</c-col>
</c-row>
</el-form>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"saveDialog"
>
确 定
</el-button>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
</span>
</
template
>
</el-dialog>
</template>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -142,6 +332,7 @@ import Api from "~/service/Api";
...
@@ -142,6 +332,7 @@ import Api from "~/service/Api";
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Ditopn/Event"
;
import
Event
from
"~/model/Ditopn/Event"
;
import
Utils
from
"~/utils/index"
;
export
default
{
export
default
{
inject
:
[
"root"
],
inject
:
[
"root"
],
...
@@ -172,22 +363,22 @@ export default {
...
@@ -172,22 +363,22 @@ export default {
},
},
};
};
},
},
methods
:
{
...
Event
,
methods
:
{
saveDialog
()
{
...
Event
,
this
.
centerDialogVisible
=
false
;
saveDialog
()
{
console
.
log
(
this
.
model
)
;
this
.
centerDialogVisible
=
false
;
this
.
model
.
trnmod
.
trndoc
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
console
.
log
(
this
.
model
);
let
res
=
Api
.
post
(
this
.
model
.
trnmod
.
trndoc
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
"ditopn/executeRule/trnmod.trndoc.doccur.butaddok"
,
let
res
=
Api
.
post
(
Utils
.
getRequestDataFn
.
call
(
this
)
"ditopn/executeRule/trnmod.trndoc.doccur.butaddok"
,
);
Utils
.
getRequestDataFn
.
call
(
this
)
if
(
res
.
data
.
respCode
==
"AAAAAA"
){
);
//TODO
if
(
res
.
data
.
respCode
==
"AAAAAA"
)
{
//TODO
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
},
},
},
},
created
:
function
()
{},
created
:
function
()
{},
};
};
...
...
src/views/Business/Ditopn/index.vue
View file @
0c6978cf
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<!--PD000529 -->
<!--PD000529 -->
<el-tab-pane
label=
"面函"
name=
"docpan"
>
<el-tab-pane
label=
"面函"
name=
"docpan"
>
<m-docpan
:model=
"model"
:codes=
"codes"
/>
<m-docpan
:model=
"model"
:codes=
"codes"
ref=
"docpan"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"附件信息"
name=
"doctre"
>
<el-tab-pane
label=
"附件信息"
name=
"doctre"
>
...
...
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