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
ebd0441d
Commit
ebd0441d
authored
Aug 11, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docpan 更新
parent
4c1ca71e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
153 additions
and
169 deletions
+153
-169
IStreamTableDocpan.vue
src/components/IStreamTableDocpan.vue
+11
-9
Docpan.vue
src/views/Public/Docpan.vue
+142
-160
No files found.
src/components/IStreamTableDocpan.vue
View file @
ebd0441d
...
...
@@ -70,15 +70,17 @@ export default {
return
arr
;
},
tableData
()
{
const
temp
=
this
.
column
;
const
res
=
[];
return
this
.
list
.
map
((
row
)
=>
{
const
res
=
{}
for
(
let
i
=
0
;
i
<
temp
.
length
;
i
++
)
{
res
[
temp
[
i
]]
=
row
[
temp
[
i
]];
}
return
res
;
});
// const temp = this.column;
// const res = [];
// return this.list.map((row) => {
// const res = {}
// for (let i = 0; i
<
temp
.
length
;
i
++
)
{
// res[temp[i]] = row[temp[i]];
// }
// return res;
// });
return
this
.
list
;
},
},
data
()
{
...
...
src/views/Public/Docpan.vue
View file @
ebd0441d
...
...
@@ -6,7 +6,7 @@
<template
slot-scope=
"scope"
>
<c-select
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.cortyp
scope.row
.cortyp
"
style=
"width: 100%"
disabled
...
...
@@ -26,7 +26,7 @@
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.docsnf
scope.row
.docsnf
"
style=
"width: 100%"
placeholder=
"请选择"
...
...
@@ -46,7 +46,7 @@
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.docuil
scope.row
.docuil
"
style=
"width: 100%"
placeholder=
"请选择"
...
...
@@ -65,7 +65,7 @@
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.apf
scope.row
.apf
"
disabled
style=
"width: 100%"
...
...
@@ -85,7 +85,7 @@
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.apfcpy1
scope.row
.apfcpy1
"
:readonly=
"true"
style=
"width: 100%"
...
...
@@ -98,7 +98,7 @@
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.apfcpy2
scope.row
.apfcpy2
"
style=
"width: 100%"
placeholder=
"请选择"
...
...
@@ -111,7 +111,7 @@
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"
model.trnmod.trndoc.doceot[scope.row.index]
.staflg
scope.row
.staflg
"
style=
"width: 100%"
placeholder=
"请选择"
...
...
@@ -132,11 +132,11 @@
type=
"primary"
size=
"small"
:disabled=
"
model.trnmod.trndoc.doceot[scope.row.index]
scope.row
.pandsc == 'MT799' && model.didgrp && model.didgrp.rec &&
model.didgrp.rec.elcflg == 'Y'
"
@
click=
"handleDisplay(scope.row.index, scope.row,
model.trnmod.trndoc.doceot[scope.row.inde
x])"
@
click=
"handleDisplay(scope.row.index, scope.row,
model.trnmod.trndoc.doceot[scope.row.id
x])"
icon=
"el-icon-search"
style=
"margin-left:0"
></c-button
...
...
@@ -419,7 +419,7 @@
type=
"textarea"
:rows=
"10"
disabled
v-model=
"dialog.
remark
"
v-model=
"dialog.
addtxt
"
/>
</div>
<div
v-else
>
...
...
@@ -456,160 +456,142 @@ import Api from "~/service/Api";
import
Utils
from
"~/utils/index"
;
import
DocUtils
from
"~/utils/DocUtils"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{
index
:
0
,
title
:
""
,
dialog
:
{
rcv
:
{
pts
:
{},
ptyinftxt
:
{},
},
},
centerDialogVisible
:
false
,
stmData
:
{
columns
:
[
//注释的已改成静态
"role 收报人 80px"
,
"pandsc 描述 260px"
,
//"cortyp 类型",
//"docsnf 报文格式",
//"docuil 语言",
//"apf 传送方式"
],
data
:
[],
},
};
},
watch
:
{
"model.trnmod.trndoc.doceot"
:
{
handler
(
val
,
oldVal
)
{
var
stm
=
[];
let
k
=
0
;
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
if
(
val
[
i
].
role
!=
""
)
{
stm
[
k
++
]
=
val
[
i
];
}
}
this
.
stmData
.
data
=
stm
;
},
immediate
:
true
,
inject
:
[
'root'
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{
index
:
0
,
title
:
""
,
dialog
:
{
rcv
:
{
pts
:
{},
ptyinftxt
:
{},
},
},
centerDialogVisible
:
false
,
stmData
:
{
columns
:
[
//注释的已改成静态
"role 收报人 80px"
,
"pandsc 描述 260px"
,
//"cortyp 类型",
//"docsnf 报文格式",
//"docuil 语言",
//"apf 传送方式"
],
data
:
[],
},
};
},
},
methods
:
{
saveDialog
()
{
this
.
centerDialogVisible
=
false
;
this
.
model
.
trnmod
.
trndoc
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
this
.
executeRule
(
"trnmod.trndoc.doccur.butaddok"
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
//TODO
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
watch
:
{
"model.trnmod.trndoc.doceot"
:
{
handler
(
val
,
oldVal
)
{
var
stm
=
[];
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
if
(
val
[
i
].
role
!=
""
)
{
val
[
i
][
'idx'
]
=
i
stm
.
push
(
val
[
i
]);
}
}
this
.
stmData
.
data
=
stm
},
immediate
:
true
}
});
},
async
handleDisplay
(
index
,
row
,
doceot
)
{
//后续要根据快照模式切换请求方式
let
cortyp
=
row
.
cortyp
;
let
docuil
=
doceot
.
docuil
;
let
docnam
=
doceot
.
docnam
||
""
;
docnam
=
docnam
.
substr
(
docnam
.
indexOf
(
"
\
\"
) + 1)
.toLowerCase()
.replaceAll("
\\
", "
_
");
let rtnmsg;
if (cortyp == "
SWT
" || cortyp == "
FMT
" || cortyp == "
CMT
") {
this.model.setmod.msgmod.doccod = row.id;
rtnmsg = await Api.post(
`${this.requestPrefix}/msgmod_butshw`,
this.wrapper()
);
} else {
this.model.trnmod.trndoc.doccod = row.id;
this.model.trnmod.trndoc.cortyp = cortyp;
const params = {
index: index,
};
rtnmsg = await Api.post(
`${this.requestPrefix}/executeDocpan`,
this.wrapper(params)
);
}
if (rtnmsg.respCode == SUCCESS) {
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.startsWith("
elcs
.
")) {
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;
} else {
//参考后台Doceot.butshw order=1000
let execution = "
P
",
structure = "
l
";
let attr = DocUtils.getDocAttribute(docnam, structure, execution);
window.sessionStorage.docTXT = "";
window.sessionStorage.docXML = rtnmsg.data[attr];
window.sessionStorage.docuil = doceot.docuil;
}
// 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
"
);
methods
:
{
saveDialog
()
{
this
.
centerDialogVisible
=
false
;
this
.
model
.
trnmod
.
trndoc
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
this
.
executeRule
(
"trnmod.trndoc.doccur.butaddok"
).
then
(
res
=>
{
if
(
res
.
respCode
==
SUCCESS
){
//TODO
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
handleDisplay
(
index
,
row
,
doceot
){
//后续要根据快照模式切换请求方式
let
cortyp
=
row
.
cortyp
let
docuil
=
doceot
.
docuil
;
let
docnam
=
doceot
.
docnam
||
''
;
docnam
=
docnam
.
substr
(
docnam
.
indexOf
(
"
\
\"
)+1).toLowerCase().replaceAll("
\\
","
_
");
let rtnmsg
// if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
// // this.model.setmod.msgmod.doccod = row.id
// rtnmsg = await Api.post(`${this.requestPrefix}/msgmod_butshw`, this.wrapper())
// } else {
// // this.model.trnmod.trndoc.doccod = row.id
// // this.model.trnmod.trndoc.cortyp = cortyp
// }
const params = {
index: row.idx
}
rtnmsg = await Api.post(`${this.requestPrefix}/executeDocpan`, this.wrapper(params))
if (rtnmsg.respCode == SUCCESS) {
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.startsWith("
elcs
.
")) {
window.sessionStorage.docXML = ''
window.sessionStorage.docTXT = ''
rtnmsg.data.trnmod_trndoc_doceot[row.idx].doctxt.rows.forEach(element => {
window.sessionStorage.docTXT += element + "
\
r
\
n
"
});
}
else if (row.pandsc == "
MT799
") {
window.sessionStorage.docTXT = ''
XMLdata = rtnmsg.data.litbenl1blk
}
else{
//参考后台Doceot.butshw order=1000
let execution = 'P', structure = 'l'
let attr = DocUtils.getDocAttribute(docnam,structure,execution)
console.log(attr);
window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data[attr];
window.sessionStorage.docuil = doceot.docuil;
}
// 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: row.idx
}
let rtnmsg = await Api.post(`${this.requestPrefix}/executeDocpanDetail`, this.wrapper(params))
if (rtnmsg.respCode == SUCCESS) {
this.title = row.pandsc
this.centerDialogVisible = true,
this.updateModel(rtnmsg.data);
this.dialog = this.model.trnmod.trndoc.doceot[row.idx]
this.index = row.idx
}
}
this.dialogOpen = true;
} else {
this.$notify.error({ title: "
错误
", message: "
服务请求失败!
" });
}
},
async handleDetail(index, row) {
const params = {
index: index,
};
let rtnmsg = await Api.post(
`${this.requestPrefix}/executeDocpanDetail`,
this.wrapper(params)
);
if (rtnmsg.respCode == SUCCESS) {
this.title = row.pandsc;
(this.centerDialogVisible = true), this.updateModel(rtnmsg.data);
this.dialog = this.model.trnmod.trndoc.doceot[index];
this.index = index;
}
},
},
created: function () {},
};
...
...
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