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
53139194
Commit
53139194
authored
Mar 31, 2023
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c3b0ac4d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1274 additions
and
1239 deletions
+1274
-1239
index.js
src/business/gitopn/event/index.js
+16
-15
index.js
src/components/business/ccvpan/event/index.js
+1
-1
index.vue
src/components/business/ccvpan/views/index.vue
+355
-361
index.js
src/components/business/docpan/event/index.js
+1
-1
index.vue
src/components/business/docpan/views/index.vue
+627
-596
index.js
src/components/business/engp/event/index.js
+1
-1
index.vue
src/components/business/engp/views/index.vue
+164
-159
index.js
src/components/business/glentry/event/index.js
+1
-1
index.vue
src/components/business/glentry/views/index.vue
+38
-45
index.vue
src/components/business/setmod/views/index.vue
+70
-59
No files found.
src/business/gitopn/event/index.js
View file @
53139194
...
@@ -31,23 +31,24 @@ export default {
...
@@ -31,23 +31,24 @@ export default {
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
});
});
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
this
.
updateValueSet
(
rtnmsg
.
codeSet
);
console
.
log
(
'=====校验'
,
rtnmsg
)
// this.updateValueSet(rtnmsg.codeSet);
}
}
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
//
if (rtnmsg.respCode === SUCCESS) {
const
fieldErrors
=
rtnmsg
.
fieldErrors
;
//
const fieldErrors = rtnmsg.fieldErrors;
this
.
updateModel
(
rtnmsg
.
data
);
//
this.updateModel(rtnmsg.data);
if
(
fieldErrors
&&
Object
.
keys
(
fieldErrors
).
length
===
0
)
{
//
if (fieldErrors && Object.keys(fieldErrors).length === 0) {
// 清除之前的校验状态
//
// 清除之前的校验状态
this
.
getRoot
().
$refs
.
modelForm
.
clearValidate
();
//
this.getRoot().$refs.modelForm.clearValidate();
this
.
$notify
({
// return;
title
:
'成功'
,
// }
message
:
'校验成功'
,
// }
type
:
'success'
,
// this.$notify({
});
// title: '成功',
return
;
// message: '校验成功',
}
// type: 'success',
}
// });
loading
.
close
();
loading
.
close
();
},
},
// 暂存
// 暂存
...
...
src/components/business/ccvpan/event/index.js
View file @
53139194
...
@@ -4,7 +4,7 @@ import Utils from '~/utils';
...
@@ -4,7 +4,7 @@ import Utils from '~/utils';
export
default
{
export
default
{
async
processLiaccv
(
liaccvRequest
)
{
async
processLiaccv
(
liaccvRequest
)
{
const
loading
=
this
.
loading
(
'正在请求数据'
);
const
loading
=
this
.
loading
(
'正在请求数据'
);
let
objtyp
=
setfeg
Request
.
rec
.
objtyp
;
let
objtyp
=
liaccv
Request
.
rec
.
objtyp
;
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/liaccv/assertLiaccv`
,
liaccvRequest
);
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/liaccv/assertLiaccv`
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
...
...
src/components/business/ccvpan/views/index.vue
View file @
53139194
<!-- 保证金公共页面 -->
<!-- 保证金公共页面 -->
<
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
label=
"应付保证金金额"
>
<c-input
v-model=
"model.liaccv.concur"
maxlength=
"3"
placeholder=
"请输入应付保证金金额"
></c-input>
<c-input
v-model=
"model.liaccv.concur"
maxlength=
"3"
placeholder=
"请输入应付保证金金额"
></c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
-->
-->
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"合同金额"
prop=
"liaall.liaccv.concur"
>
<el-form-item
label=
"合同金额"
prop=
"liaall.liaccv.concur"
>
<c-row>
<c-row>
<!--
<c-col
:span=
"8"
>
-->
<!--
<c-col
:span=
"8"
>
-->
<!--
<c-input
type=
"text"
:readonly=
"true"
value=
"CNY"
></c-input>
-->
<!--
<c-input
type=
"text"
:readonly=
"true"
value=
"CNY"
></c-input>
-->
<!--
</c-col>
-->
<!--
</c-col>
-->
<c-col
:span=
"8"
>
<c-col
:span=
"8"
>
<c-select
<c-select
v-model=
"model.liaccv.concur"
v-model=
"model.liaccv.concur"
disabled
disabled
style=
"width: 95%"
style=
"width: 95%"
placeholder=
""
placeholder=
""
>
<el-option
v-for=
"item in codes.curtxt"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
>
<el-option
</el-option>
v-for=
"item in codes.curtxt"
</c-select>
:key=
"item.value"
</c-col>
:label=
"item.label"
<c-col
:span=
"16"
>
:value=
"item.value"
<c-input
:readonly=
"true"
v-model=
"model.liaccv.newamt"
></c-input>
>
</c-col>
</el-option>
</c-row>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"16"
>
<c-input
:readonly=
"true"
v-model=
"model.liaccv.newamt"
></c-input>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"应收比例"
prop=
"liaccv.cshpct"
>
<c-row>
<c-col
:span=
"22"
>
<c-input
v-model=
"model.liaccv.cshpct"
></c-input>
</c-col>
<c-col
:span=
"1"
style=
"float: right; text-align: right"
>
<span>
%
</span>
</c-col>
</c-row>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"应收比例"
prop=
"liaccv.cshpct"
>
<el-form-item
label=
"保留金额"
prop=
"liaccv.newresamt"
>
<c-row>
<c-row>
<c-col
:span=
"22"
>
<c-col
:span=
"8"
>
<c-input
v-model=
"model.liaccv.cshpct"
></c-input>
<c-select
</c-col>
v-model=
"model.liaccv.concur"
<c-col
:span=
"1"
style=
"float: right; text-align: right"
>
disabled
<span>
%
</span>
style=
"width: 95%"
</c-col>
placeholder=
""
</c-row>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"保留金额"
prop=
"liaccv.newresamt"
>
<c-row>
<c-col
:span=
"8"
>
<c-select
v-model=
"model.liaccv.concur"
disabled
style=
"width: 95%"
placeholder=
""
>
<el-option
v-for=
"item in codes.curtxt"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
>
<el-option
</el-option>
v-for=
"item in codes.curtxt"
</c-select>
:key=
"item.value"
</c-col>
:label=
"item.label"
<c-col
:span=
"16"
>
:value=
"item.value"
<c-input
>
:readonly=
"true"
</el-option>
v-model=
"model.liaccv.newresamt"
</c-select>
></c-input>
</c-col>
</c-col>
<c-col
:span=
"16"
>
</c-row>
<c-input
</el-form-item>
:readonly=
"true"
v-model=
"model.liaccv.newresamt"
></c-input>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"实收比例"
prop=
"liaccv.relcshpct"
>
<c-row>
<c-col
:span=
"22"
>
<c-input
:readonly=
"true"
v-model=
"model.liaccv.relcshpct"
></c-input>
</c-col>
<c-col
:span=
"1"
style=
"float: right; text-align: right"
>
<span>
%
</span>
</c-col>
</c-row>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"实收比例"
prop=
"liaccv.relcshpct"
>
<el-form-item
label=
"应付金额"
prop=
"liaccv.concur"
>
<c-row>
<c-row>
<c-col
:span=
"22"
>
<!--
<c-col
:span=
"8"
>
-->
<c-input
<!--
<c-input
type=
"text"
:readonly=
"true"
value=
"CNY"
></c-input>
-->
:readonly=
"true"
<!--
</c-col>
-->
v-model=
"model.liaccv.relcshpct"
<c-col
:span=
"8"
>
></c-input>
<c-select
</c-col>
v-model=
"model.liaccv.concur"
<c-col
:span=
"1"
style=
"float: right; text-align: right"
>
disabled
<span>
%
</span>
style=
"width: 95%"
</c-col>
placeholder=
""
</c-row>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"应付金额"
prop=
"liaccv.concur"
>
<c-row>
<!--
<c-col
:span=
"8"
>
-->
<!--
<c-input
type=
"text"
:readonly=
"true"
value=
"CNY"
></c-input>
-->
<!--
</c-col>
-->
<c-col
:span=
"8"
>
<c-select
v-model=
"model.liaccv.concur"
disabled
style=
"width: 95%"
placeholder=
""
>
<el-option
v-for=
"item in codes.curtxt"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
>
<el-option
</el-option>
v-for=
"item in codes.curtxt"
</c-select>
:key=
"item.value"
</c-col>
:label=
"item.label"
<c-col
:span=
"16"
>
:value=
"item.value"
<c-input
>
:readonly=
"true"
</el-option>
v-model=
"model.liaccv.pctresamt"
</c-select>
></c-input>
</c-col>
</c-col>
<c-col
:span=
"16"
>
</c-row>
<c-input
</el-form-item>
:readonly=
"true"
</c-col>
v-model=
"model.liaccv.pctresamt"
></c-input>
<c-col
:span=
"12"
>
</c-col>
<!--
<c-col
:span=
"20"
>
</c-row>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<!--
<c-col
:span=
"20"
>
</c-col>
-->
</c-col>
-->
<el-form-item
<el-form-item
label=
""
style=
"text-align: left"
prop=
"liaccv.gleflg"
>
label=
""
<c-col
:span=
"7"
class=
""
>
style=
"text-align: left"
<el-form-item
prop=
"liaccv.gleflg"
label=
""
>
prop=
"liaccv.gleflg"
<c-col
:span=
"7"
class=
""
>
class=
"checkbox-left"
<el-form-item
label=
""
prop=
"liaccv.gleflg"
class=
"checkbox-left"
label-width=
"0px"
>
label-width=
"0px"
<c-checkbox
v-model=
"model.liaccv.gleflg"
>
过账
</c-checkbox>
</el-form-item>
</c-col>
<!--
<c-col
:span=
"3"
style=
"float: right;"
>
-->
<!--
<c-row>
-->
<!--
<c-col
:span=
"24"
style=
"margin-left:35px;text-align:right"
>
-->
<c-button
size=
"small"
type=
"primary"
@
click=
"onLiaccvAdd"
style=
"margin-left: 0px;float: right;"
>
>
添加
<c-checkbox
v-model=
"model.liaccv.gleflg"
>
过账
</c-checkbox>
</c-button>
</el-form-item>
<!--
</c-col>
-->
</c-col>
<!--
</c-col>
-->
<!--
<c-col
:span=
"3"
style=
"float: right;"
>
-->
</el-form-item>
<!--
<c-row>
-->
</c-col>
<!--
<c-col
:span=
"24"
style=
"margin-left:35px;text-align:right"
>
-->
<c-button
size=
"small"
type=
"primary"
@
click=
"onLiaccvAdd"
style=
"margin-left: 0px; float: right"
>
添加
</c-button>
<!--
</c-col>
-->
<!--
</c-col>
-->
</el-form-item>
</c-col>
</c-col>
</c-col>
<template>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
width=
"60%"
center
>
<template>
<el-table
<el-dialog
:visible
.
sync=
"dialogTableVisible"
width=
"60%"
center
>
<el-table
:data=
"stmData.data"
:data=
"stmData.data"
:columns=
"stmData.columns"
:columns=
"stmData.columns"
:showButtonFlg=
"true"
:showButtonFlg=
"true"
>
>
<el-table-column
<el-table-column
v-for=
"(item, key) in stmData.columns"
v-for=
"(item, key) in stmData.columns"
:key=
"key"
:key=
"key"
...
@@ -182,235 +180,232 @@
...
@@ -182,235 +180,232 @@
:prop=
"item.prop"
:prop=
"item.prop"
:width=
"item.width"
:width=
"item.width"
></el-table-column>
></el-table-column>
<el-table-column
prop=
"op"
label=
"OP"
width=
"80"
fixed=
"right"
>
<el-table-column
prop=
"op"
label=
"OP"
width=
"80"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<c-button
<c-button
style=
"margin-left: 0"
style=
"margin-left: 0"
size=
"small"
size=
"small"
type=
"primary"
type=
"primary"
@
click=
"pickDepItem(scope.$index, scope.row)"
@
click=
"pickDepItem(scope.$index, scope.row)"
>
>
选择
选择
</c-button>
</c-button>
</
template
>
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</template>
<c-col
:span=
"24"
>
<c-table
:border=
"true"
:list=
"model.liaccv.liaccvg"
:total=
"model.liaccv.liaccvg.length"
style=
"width:100%,text-align:center"
>
<el-table-column
prop=
"ccdflg"
label=
"调整标识"
width=
"70px"
>
</el-table-column>
<el-table-column
prop=
"ownref"
label=
"保证金编号"
width=
"180px"
>
</el-table-column>
<el-table-column
prop=
"cur"
label=
"币种"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"oldamt"
label=
"余额"
width=
"110px"
>
</el-table>
<!-- <template slot-scope="scope">
</el-dialog>
</template>
<c-col
:span=
"24"
>
<c-table
:border=
"true"
:list=
"model.liaccv.liaccvg"
:total=
"model.liaccv.liaccvg.length"
style=
"width:100%,text-align:center"
>
<el-table-column
prop=
"ccdflg"
label=
"调整标识"
width=
"70px"
>
</el-table-column>
<el-table-column
prop=
"ownref"
label=
"保证金编号"
width=
"180px"
>
</el-table-column>
<el-table-column
prop=
"cur"
label=
"币种"
width=
"70px"
>
</el-table-column>
<el-table-column
prop=
"oldamt"
label=
"余额"
width=
"110px"
>
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.oldamt"
v-model="scope.row.oldamt"
placeholder="0.00"
placeholder="0.00"
></c-input-currency>
></c-input-currency>
</template>-->
</template>-->
</el-table-column>
</el-table-column>
<el-table-column
prop=
"amt"
label=
"变动金额"
width=
"110px"
>
<el-table-column
prop=
"amt"
label=
"变动金额"
width=
"110px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.amt"
v-model="scope.row.amt"
placeholder="0.00"
placeholder="0.00"
></c-input-currency>
></c-input-currency>
</template> -->
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
prop=
"acc"
label=
"保证金账号"
width=
"180px"
>
<el-table-column
prop=
"acc"
label=
"保证金账号"
width=
"180px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"rat"
label=
"汇率"
width=
"150px"
>
<el-table-column
prop=
"rat"
label=
"汇率"
width=
"150px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"concur"
label=
"币种"
width=
"70px"
>
<el-table-column
prop=
"concur"
label=
"币种"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"covamt"
label=
"折算后金额"
width=
"110px"
>
<el-table-column
prop=
"covamt"
label=
"折算后金额"
width=
"110px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.covamt"
v-model="scope.row.covamt"
placeholder="0.00"
placeholder="0.00"
></c-input-currency>
></c-input-currency>
</template>-->
</template>-->
</el-table-column>
</el-table-column>
<el-table-column
prop=
"acccovamt"
label=
"实际折算金额"
width=
"150px"
>
<el-table-column
prop=
"acccovamt"
label=
"实际折算金额"
width=
"150px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.acccovamt"
v-model="scope.row.acccovamt"
placeholder="0.00"
placeholder="0.00"
></c-input-currency>
></c-input-currency>
</template> -->
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"auto"
fixed=
"right"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"auto"
fixed=
"right"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<c-button
<c-button
style=
"margin-left: 0"
style=
"margin-left: 0"
type=
"primary"
type=
"primary"
size=
"small"
size=
"small"
@
click=
"onLiaccvDel(scope.$index, scope.row)"
@
click=
"onLiaccvDel(scope.$index, scope.row)"
>
>
删除
</c-button
删除
</c-button
>
</
template
>
</el-table-column>
</c-table>
</c-col>
<c-col
:span=
"12"
style=
"margin-top: 25px"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"折算金额总和"
>
<c-row>
<c-col
:span=
"8"
>
<c-select
v-model=
"model.liaccv.concur"
disabled
style=
"width: 95%"
placeholder=
""
>
>
</
template
>
<el-option
</el-table-column>
v-for=
"item in codes.curtxt"
</c-table>
:key=
"item.value"
</c-col>
:label=
"item.label"
:value=
"item.value"
<c-col
:span=
"12"
style=
"margin-top: 25px"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"折算金额总和"
>
<c-row>
<c-col
:span=
"8"
>
<c-select
v-model=
"model.liaccv.concur"
disabled
style=
"width: 95%"
placeholder=
""
>
>
<el-option
</el-option>
v-for=
"item in codes.curtxt"
</c-select>
:key=
"item.value"
</c-col>
:label=
"item.label"
<c-col
:span=
"16"
>
:value=
"item.value"
<c-input
>
v-model=
"model.liaccv.totcovamt"
</el-option>
:readonly=
"true"
</c-select>
></c-input>
</c-col>
</c-col>
<c-col
:span=
"16"
>
</c-row>
<c-input
</el-form-item>
v-model=
"model.liaccv.totcovamt"
:readonly=
"true"
></c-input>
</c-col>
</c-row>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"附加信息 "
v-if=
"model.liaccv.addinf != ''"
>
<c-input
type=
"textarea"
:rows=
"5"
v-model=
"model.liaccv.addinf"
maxlength=
"200"
show-word-limit
placeholder=
"请输入附加信息"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<c-col
:span=
"24"
>
<
script
>
<el-form-item
label=
"附加信息 "
v-if=
"model.liaccv.addinf != ''"
>
import
Event
from
"../event"
<c-input
import
Api
from
"~/service/Api"
;
type=
"textarea"
import
commonProcess
from
"~/mixin/commonProcess"
;
:rows=
"5"
import
CodeTable
from
"~/config/CodeTable"
;
v-model=
"model.liaccv.addinf"
import
Utils
from
"~/utils/index"
;
maxlength=
"200"
show-word-limit
export
default
{
placeholder=
"请输入附加信息"
inject
:
[
"root"
],
></c-input>
props
:
[
"model"
,
"codes"
],
</el-form-item>
mixins
:
[
commonProcess
],
</c-col>
data
()
{
</c-col>
return
{
</div>
dialogTableVisible
:
false
,
</template>
stmData
:
{
<
script
>
columns
:
[
import
Event
from
'../event'
;
{
import
Api
from
'~/service/Api'
;
label
:
'编号'
,
import
commonProcess
from
'~/mixin/commonProcess'
;
prop
:
'ownref'
import
CodeTable
from
'~/config/CodeTable'
;
},
import
Utils
from
'~/utils/index'
;
{
label
:
'用户'
,
export
default
{
prop
:
'ownusr'
inject
:
[
'root'
],
},
props
:
[
'model'
,
'codes'
],
{
mixins
:
[
commonProcess
],
label
:
'申请人'
,
data
()
{
prop
:
'aplnam'
,
return
{
width
:
180
dialogTableVisible
:
false
,
},
stmData
:
{
{
columns
:
[
label
:
'账户'
,
{
prop
:
'engact'
label
:
'编号'
,
},
prop
:
'ownref'
,
{
},
label
:
'币种'
,
{
prop
:
'cur'
label
:
'用户'
,
},
prop
:
'ownusr'
,
{
},
label
:
'金额'
,
{
prop
:
'amt'
label
:
'申请人'
,
},
prop
:
'aplnam'
,
{
width
:
180
,
label
:
'开立日期'
,
},
prop
:
'opndat'
{
},
label
:
'账户'
,
{
prop
:
'engact'
,
label
:
'标志'
,
},
prop
:
'gleflg'
{
},
label
:
'币种'
,
{
prop
:
'cur'
,
label
:
'备注'
,
},
prop
:
'reason'
{
}
label
:
'金额'
,
],
prop
:
'amt'
,
data
:
[],
},
},
{
relrowDisabled
:
true
,
label
:
'开立日期'
,
};
prop
:
'opndat'
,
},
},
methods
:
{
{
...
Event
,
label
:
'标志'
,
async
onLiaccvAdd
()
{
prop
:
'gleflg'
,
let
rulePath
=
"/service/liaccv/getFcdList"
;
},
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
{
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
label
:
'备注'
,
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
prop
:
'reason'
,
this
.
dialogTableVisible
=
true
;
},
this
.
stmData
.
data
=
rtnmsg
.
data
;
],
}
data
:
[],
},
async
pickDepItem
(
idx
,
row
)
{
let
rulePath
=
"/service/liaccv/addLiaccvg"
;
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
liaccvRequest
.
fcdVo
=
row
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
dialogTableVisible
=
false
;
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
}
},
async
onLiaccvDel
(
index
,
row
)
{
let
fcdVo
=
{
inr
:
row
.
fcdinr
}
let
rulePath
=
"/service/liaccv/deleteLiaccvg"
;
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
liaccvRequest
.
fcdVo
=
fcdVo
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
,
});
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
},
},
relrowDisabled
:
true
,
};
},
methods
:
{
...
Event
,
async
onLiaccvAdd
()
{
let
rulePath
=
'/service/liaccv/getFcdList'
;
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
dialogTableVisible
=
true
;
this
.
stmData
.
data
=
rtnmsg
.
data
;
}
},
},
created
:
function
()
{},
async
pickDepItem
(
idx
,
row
)
{
};
let
rulePath
=
'/service/liaccv/addLiaccvg'
;
</
script
>
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
<
style
>
liaccvRequest
.
fcdVo
=
row
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
</
style
>
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
dialogTableVisible
=
false
;
\ No newline at end of file
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
}
},
async
onLiaccvDel
(
index
,
row
)
{
let
fcdVo
=
{
inr
:
row
.
fcdinr
,
};
let
rulePath
=
'/service/liaccv/deleteLiaccvg'
;
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
liaccvRequest
.
fcdVo
=
fcdVo
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
,
});
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
},
created
:
function
()
{},
};
</
script
>
<
style
></
style
>
src/components/business/docpan/event/index.js
View file @
53139194
...
@@ -4,7 +4,7 @@ import Utils from '~/utils';
...
@@ -4,7 +4,7 @@ import Utils from '~/utils';
export
default
{
export
default
{
async
processTrndoc
(
trndocRequest
)
{
async
processTrndoc
(
trndocRequest
)
{
const
loading
=
this
.
loading
(
'正在请求数据'
)
const
loading
=
this
.
loading
(
'正在请求数据'
)
let
objtyp
=
setfeg
Request
.
rec
.
objtyp
;
let
objtyp
=
trndoc
Request
.
rec
.
objtyp
;
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/docpan/assertTrndoc`
,
trndocRequest
);
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/docpan/assertTrndoc`
,
trndocRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
docpan
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
.
docpan
,
rtnmsg
.
data
);
...
...
src/components/business/docpan/views/index.vue
View file @
53139194
<
template
>
<
template
>
<div
class=
"eibs-tab"
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"24"
style=
""
>
<c-col
:span=
"24"
style=
""
>
<c-istream-table-docpan
:list=
"stmData.data"
:columns=
"stmData.columns"
>
<c-istream-table-docpan
:list=
"stmData.data"
:columns=
"stmData.columns"
>
<el-table-column
label=
"介质"
width=
"110px"
>
<el-table-column
label=
"介质"
width=
"110px"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-form-item
<el-form-item
label-width=
"0"
label-width=
"0"
:prop=
"'docpan.doceot.' + scope.$index + '.cortyp'"
:prop=
"'docpan.doceot.' + scope.$index + '.cortyp'"
>
<c-select
v-model=
"scope.row.cortyp"
style=
"width: 100%"
disabled
placeholder=
"请选择"
>
<el-option
v-for=
"item in codes.doceotCortyp"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
>
<c-select
</el-option>
v-model=
"
</c-select>
scope.row.cortyp
</el-form-item>
"
</
template
>
style=
"width: 100%"
</el-table-column>
disabled
<el-table-column
label=
"报文格式"
width=
"150px"
>
placeholder=
"请选择"
<
template
slot-scope=
"scope"
>
>
<c-select
<el-option
v-model=
"scope.row.docsnf"
v-for=
"item in codes.doceotCortyp"
style=
"width: 100%"
:key=
"item.value"
placeholder=
"请选择"
:label=
"item.label"
@
change=
"executeDefault('docpan.doccur.docsnf')"
:value=
"item.value"
>
>
<el-option
</el-option>
v-for=
"item in codes.docsnf"
</c-select>
:key=
"item.value"
</el-form-item>
:label=
"item.label"
</
template
>
:value=
"item.value"
</el-table-column>
>
<el-table-column
label=
"报文格式"
width=
"150px"
>
</el-option>
<
template
slot-scope=
"scope"
>
</c-select>
<c-select
</
template
>
v-model=
"
</el-table-column>
scope.row.docsnf
<el-table-column
label=
"语言"
width=
"150px"
>
"
<
template
slot-scope=
"scope"
>
style=
"width: 100%"
<c-select
placeholder=
"请选择"
v-model=
"scope.row.docuil"
@
change=
"executeDefault('docpan.doccur.docsnf')"
style=
"width: 100%"
>
placeholder=
"请选择"
<el-option
>
v-for=
"item in codes.docsnf"
<el-option
:key=
"item.value"
v-for=
"item in codes.uiltxt1"
:label=
"item.label"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
>
:value=
"item.value"
</el-option>
>
</c-select>
</el-option>
</
template
>
</c-select>
</el-table-column>
</
template
>
<el-table-column
label=
"语言"
width=
"150px"
>
</el-table-column>
<
template
slot-scope=
"scope"
>
<el-table-column
label=
"传送方式"
width=
"110px"
>
<c-select
<
template
slot-scope=
"scope"
>
v-model=
"
<el-form-item
scope.row.docuil
label-width=
"0"
"
:prop=
"'docpan.doceot.' + scope.$index + '.apf'"
style=
"width: 100%"
>
placeholder=
"请选择"
<c-select
>
v-model=
"scope.row.apf"
<el-option
disabled
v-for=
"item in codes.uiltxt1"
style=
"width: 100%"
:key=
"item.value"
placeholder=
"请选择"
:label=
"item.label"
>
:value=
"item.value"
<el-option
>
v-for=
"item in codes.apftxt"
</el-option>
:key=
"item.value"
</c-select>
:label=
"item.label"
</
template
>
:value=
"item.value"
</el-table-column>
<el-table-column
label=
"传送方式"
width=
"110px"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label-width=
"0"
:prop=
"'docpan.doceot.' + scope.$index + '.apf'"
>
>
</el-option>
</c-select>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"发送份数"
width=
"70"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.apfcpy1"
:readonly=
"true"
style=
"width: 100%"
placeholder=
"请选择"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"抄送份数"
width=
"70"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.apfcpy2"
style=
"width: 100%"
placeholder=
"请选择"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
""
width=
"110px"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label-width=
"0"
:prop=
"'docpan.doceot.' + scope.$index + '.staflg'"
>
<c-select
v-model=
"scope.row.staflg"
style=
"width: 100%"
placeholder=
"请选择"
>
<el-option
v-for=
"item in codes.swttlx"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"200px"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<c-button
type=
"primary"
size=
"small"
:disabled=
"
(scope.row.pandsc == 'MT799' &&
model.didgrp &&
model.didgrp.rec &&
model.didgrp.rec.elcflg == 'Y') ||
suppress
"
@
click=
"
handleDisplay(
scope.row.index,
scope.row,
model.docpan.doceot[scope.row.idx]
)
"
style=
"margin-right: 10px"
>
预览
</c-button
>
<c-button
size=
"small"
type=
"primary"
style=
"margin-left: 0"
@
click=
"handleDetail(scope.row.index, scope.row)"
>
详情
</c-button
>
</
template
>
</el-table-column>
</c-istream-table-docpan>
</c-col>
<c-col
:span=
"12"
style=
"margin-top: 20px"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"国内证落款"
prop=
"docpan.advnam"
v-if=
"
root.trnName == 'DITCAN' ||
root.trnName == 'BDTSET' ||
root.trnName == 'TRTAME' ||
root.trnName == 'TRTSET' ||
root.trnName == 'DETOPN' ||
root.trnName == 'DETAME' ||
root.trnName == 'BFTDRV' ||
root.trnName == 'BFTSND' ||
root.trnName == 'BPTOPN' ||
root.trnName == 'BPTAME' ||
root.trnName == 'BPTSET' ||
root.trnName == 'BFTACC' ||
root.trnName == 'DFTAME' ||
root.trnName == 'DFTSET'
"
>
<c-input
v-model=
"model.docpan.advnam"
maxlength=
"50"
placeholder=
"请输入"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"修改申请人名称"
prop=
"docpan.amdapl"
v-if=
"root.trnName == 'detame' || root.trnName == 'bftsnd'"
>
<c-input
v-model=
"model.docpan.amdapl"
maxlength=
"100"
placeholder=
"请输入"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"国内证通知书"
prop=
"docpan.advdoc"
v-if=
"root.trnName == 'detopn' || root.trnName == 'detame'"
>
<c-select
v-model=
"model.docpan.advdoc"
placeholder=
"请选择"
style=
"width: 100%"
:code=
"codes.trndoc_advdoc"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"centerDialogVisible"
width=
"60%"
center
>
<el-form
label-width=
"100px"
:model=
"dialog"
:disabled=
"suppress"
>
<c-row>
<c-col
:span=
"12"
>
<c-col>
<el-form-item
label=
"介质"
>
<c-select
<c-select
v-model=
"
disabled
scope.row.apf
v-model=
"dialog.cortyp"
"
:code=
"codes.doceotCortyp"
disabled
style=
"width: 100%"
placeholder=
"请选择"
>
>
<el-option
v-for=
"item in codes.apftxt"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</c-select>
</el-form-item>
</el-form-item>
</
template
>
</c-col>
</el-table-column>
<c-col>
<el-table-column
label=
"发送份数"
width=
"70"
>
<el-form-item
label=
"表单集合"
>
<
template
slot-scope=
"scope"
>
<!--
<el-input
<c-input
disabled
v-model=
"
v-model=
"dialog.cortyp"
scope.row.apfcpy1
/>
-->
"
:readonly=
"true"
style=
"width: 100%"
placeholder=
"请选择"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"抄送份数"
width=
"70"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"
scope.row.apfcpy2
"
style=
"width: 100%"
placeholder=
"请选择"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
""
width=
"110px"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label-width=
"0"
:prop=
"'docpan.doceot.' + scope.$index + '.staflg'"
>
<c-select
<c-select
v-model=
"
disabled
scope.row.staflg
v-model=
"dialog.cortyp"
"
:code=
"codes.doceotCortyp"
style=
"width: 100%"
placeholder=
"请选择"
>
>
<el-option
v-for=
"item in codes.swttlx"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</c-select>
</el-form-item>
</el-form-item>
</
template
>
</c-col>
</el-table-column>
<c-col
v-if=
"title != 'elcs.101.001.01'"
>
<el-table-column
label=
"操作"
width=
"200px"
fixed=
"right"
>
<el-form-item>
<
template
slot-scope=
"scope"
>
<el-input
disabled
style=
"width: 150px"
value=
"Original"
/>
<c-button
<el-input
type=
"primary"
v-model=
"dialog.apfcpy1"
size=
"small"
style=
"width: 100px; margin-left: 20px"
:disabled=
"
/>
(scope.row
</el-form-item>
.pandsc == 'MT799' && model.didgrp && model.didgrp.rec &&
<el-form-item>
model.didgrp.rec.elcflg == 'Y')||suppress
<el-input
"
disabled
@
click=
"handleDisplay(scope.row.index, scope.row, model.docpan.doceot[scope.row.idx])"
style=
"width: 150px"
style=
"margin-right:10px"
value=
"Customer Copy"
>
预览
</c-button
/>
>
<el-input
<c-button
v-model=
"dialog.apfcpy2"
size=
"small"
style=
"width: 100px; margin-left: 20px"
type=
"primary"
/>
style=
"margin-left:0"
</el-form-item>
@
click=
"handleDetail(scope.row.index, scope.row)"
<el-form-item>
>
详情
</c-button
<el-input
disabled
style=
"width: 150px"
value=
"File Copy"
/>
>
<el-input
</
template
>
v-model=
"dialog.apfcpy3"
</el-table-column>
style=
"width: 100px; margin-left: 20px"
</c-istream-table-docpan>
/>
</c-col>
</el-form-item>
<c-col
:span=
"12"
style=
"margin-top:20px"
>
<el-form-item>
<c-col
:span=
"24"
>
<el-input
<el-form-item
disabled
label=
"国内证落款"
style=
"width: 150px"
prop=
"docpan.advnam"
value=
"Internal Copy"
v-if=
"root.trnName=='DITCAN' || root.trnName == 'BDTSET' || root.trnName == 'TRTAME' || root.trnName == 'TRTSET' || root.trnName == 'DETOPN' || root.trnName == 'DETAME' || root.trnName == 'BFTDRV' || root.trnName == 'BFTSND' || root.trnName == 'BPTOPN' || root.trnName == 'BPTAME' || root.trnName == 'BPTSET' || root.trnName == 'BFTACC' || root.trnName == 'DFTAME' || root.trnName == 'DFTSET'"
/>
>
<el-input
<c-input
v-model=
"dialog.apfcpy4"
v-model=
"model.docpan.advnam"
style=
"width: 100px; margin-left: 20px"
maxlength=
"50"
/>
placeholder=
"请输入"
</el-form-item>
></c-input>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"发送至"
label-width=
"150px"
>
<!--
<el-input
disabled
v-model=
"dialog.roladr"
/>
-->
<c-select
disabled
v-model=
"dialog.roladr"
:code=
"codes.payrol"
>
</c-select>
</el-form-item>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
<el-form-item
label=
"修改申请人名称"
label-width=
"150px"
prop=
"docpan.amdapl"
v-if=
"title == 'elcs.101.001.01'"
v-if=
" root.trnName== 'detame' || root.trnName == 'bftsnd'"
>
>
<c-fullbox>
<c-input
<c-input
v-model=
"model.docpan.amdapl"
v-model=
"dialog.rcv.pts.extkey"
maxlength=
"100"
@
keyup
.
enter
.
native=
"
placeholder=
"请输入"
showGridPromptDialog('docpan.doccur.rcv.pts.extkey')
></c-input>
"
/>
<template
slot=
"footer"
>
<c-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
></c-button>
<c-button
size=
"small"
type=
"primary"
>
详情
</c-button>
</
template
>
</c-fullbox>
</el-form-item>
<el-form-item
v-else
label=
"BIC编码"
label-width=
"150px"
>
<el-input
v-model=
"dialog.rcv.pts.extkey"
/>
</el-form-item>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
<el-form-item
label=
"国内证通知书"
v-if=
"
prop=
"docpan.advdoc"
title == 'elcs.101.001.01' ||
v-if=
" root.trnName== 'detopn' || root.trnName == 'detame'"
(title != 'elcs.101.001.01' && dialog.rcv.pts.bankno != '')
"
label=
"联行行号"
label-width=
"150px"
>
>
<c-select
<el-input
v-model=
"dialog.rcv.pts.bankno"
/>
v-model=
"model.docpan.advdoc"
placeholder=
"请选择"
style=
"width: 100%"
:code=
"codes.trndoc_advdoc"
>
</c-select>
</el-form-item>
</el-form-item>
</c-col>
<el-form-item
label-width=
"30px"
>
</c-col>
<el-input
<
template
>
:value=
"
<el-dialog
title == 'elcs.101.001.01'
:title=
"title"
? dialog.rcv.namelc
:visible
.
sync=
"centerDialogVisible"
: dialog.rcv.pts.jigomc
width=
"60%"
"
center
:disabled=
"title != 'elcs.101.001.01'"
>
type=
"textarea"
<el-form
label-width=
"100px"
:model=
"dialog"
:disabled=
"suppress"
>
:rows=
"2"
<c-row>
/>
<c-col
:span=
"12"
>
<br
/>
<c-col>
<el-input
<el-form-item
label=
"介质"
>
:value=
"
<c-select
disabled
v-model=
"dialog.cortyp"
:code=
"codes.doceotCortyp"
>
title == 'elcs.101.001.01'
</c-select>
? dialog.rcv.adrelc
</el-form-item>
: dialog.rcv.pts.dizzhii
</c-col>
"
<c-col>
:disabled=
"title == 'MT799'"
<el-form-item
label=
"表单集合"
>
type=
"textarea"
<!--
<el-input
:rows=
"2"
disabled
/>
v-model=
"dialog.cortyp"
</el-form-item>
/>
-->
<el-form-item
label=
"参考号"
label-width=
"100px"
>
<c-select
disabled
v-model=
"dialog.cortyp"
:code=
"codes.doceotCortyp"
>
<el-input
disabled
v-model=
"dialog.adrref"
/>
</c-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"介质"
label-width=
"100px"
>
</c-col>
<!-- <el-input
<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=
"发送至"
label-width=
"150px"
>
<!--
<el-input
disabled
v-model=
"dialog.roladr"
/>
-->
<c-select
disabled
v-model=
"dialog.roladr"
:code=
"codes.payrol"
>
</c-select>
</el-form-item>
<el-form-item
label-width=
"150px"
v-if=
"title == 'elcs.101.001.01'"
>
<c-fullbox>
<c-input
v-model=
"dialog.rcv.pts.extkey"
@
keyup
.
enter
.
native=
"
showGridPromptDialog('docpan.doccur.rcv.pts.extkey')
"
/>
<template
slot=
"footer"
>
<c-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
></c-button
>
<c-button
size=
"small"
type=
"primary"
>
详情
</c-button>
</
template
>
</c-fullbox>
</el-form-item>
<el-form-item
v-else
label=
"BIC编码"
label-width=
"150px"
>
<el-input
v-model=
"dialog.rcv.pts.extkey"
/>
</el-form-item>
<el-form-item
v-if=
"title == 'elcs.101.001.01'||(title != 'elcs.101.001.01'&&dialog.rcv.pts.bankno!='')"
label=
"联行行号"
label-width=
"150px"
>
<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=
"参考号"
label-width=
"100px"
>
<el-input
disabled
v-model=
"dialog.adrref"
/>
</el-form-item>
<el-form-item
label=
"介质"
label-width=
"100px"
>
<!-- <el-input
disabled
disabled
style="width: 40%"
style="width: 40%"
v-model="dialog.cortyp"
v-model="dialog.cortyp"
/> -->
/> -->
<c-select
disabled
style=
"width: 40%"
v-model=
"dialog.cortyp"
:code=
"codes.doceotCortyp"
>
<c-select
</c-select>
disabled
<!-- <el-input
style=
"width: 40%"
v-model=
"dialog.cortyp"
:code=
"codes.doceotCortyp"
>
</c-select>
<!-- <el-input
disabled
disabled
v-model="dialog.docuil"
v-model="dialog.docuil"
style="width: 40%; margin-left: 20px"
style="width: 40%; margin-left: 20px"
/> -->
/> -->
<c-select
disabled
style=
"width: 40%; margin-left: 20px"
v-model=
"dialog.docuil"
:code=
"codes.payuil"
>
<c-select
</c-select>
disabled
</el-form-item>
style=
"width: 40%; margin-left: 20px"
</c-col>
v-model=
"dialog.docuil"
:code=
"codes.payuil"
>
</c-select>
</el-form-item>
</c-col>
<c-col>
</c-col>
<c-col>
</c-col>
<c-col
:span=
"12"
v-if=
"title != 'MT799'"
>
<c-col
:span=
"12"
v-if=
"title != 'MT799'"
>
<el-form-item
<el-form-item
label=
"地址修改"
label-width=
"120px"
>
label=
"地址修改"
<el-input
type=
"textarea"
v-model=
"dialog.adrblk"
:rows=
"4"
/>
label-width=
"120px"
</el-form-item>
>
</c-col>
<el-input
<c-col
:span=
"12"
v-else
>
type=
"textarea"
<el-form-item
label=
"BIC编码"
>
v-model=
"dialog.adrblk"
<el-input
disabled
v-model=
"dialog.adrbic"
/>
:rows=
"4"
</el-form-item>
/>
<el-form-item
label=
"Authenticator"
</el-form-item>
><el-input
disabled
v-model=
"dialog.adrbicaut"
</c-col>
/></el-form-item>
<c-col
:span=
"12"
v-else
>
<el-form-item
label=
"优先级"
<el-form-item
label=
"BIC编码"
>
><el-input
disabled
v-model=
"dialog.msgpri"
<el-input
disabled
v-model=
"dialog.adrbic"
/>
/></el-form-item>
</el-form-item>
</c-col>
<el-form-item
label=
"Authenticator"
<c-col
:span=
"12"
>
><el-input
disabled
v-model=
"dialog.adrbicaut"
<el-form-item
label-width=
"30px"
>
/></el-form-item>
<el-table
<el-form-item
label=
"优先级"
:data=
"dialog.rcv.ptyinftxt.rows"
><el-input
disabled
v-model=
"dialog.msgpri"
size=
"mini"
/></el-form-item>
stripe
</c-col>
:border=
"true"
<c-col
:span=
"12"
>
empty-text=
" "
<el-form-item
label-width=
"30px"
>
max-height=
"430px"
<el-table
>
:data=
"dialog.rcv.ptyinftxt.rows"
<el-table-column
label=
"报文类型"
sortable
>
</el-table-column>
size=
"mini"
<el-table-column
label=
"地址"
sortable
>
</el-table-column>
stripe
<el-table-column
label=
"Authentication"
sortable
>
:border=
"true"
</el-table-column>
empty-text=
" "
</el-table>
max-height=
"430px"
</el-form-item>
>
</c-col>
<el-table-column
label=
"报文类型"
sortable
>
<c-col
v-if=
"title != 'MT799'"
</el-table-column>
><el-form-item
label=
"面函日期"
>
<el-table-column
label=
"地址"
sortable
>
<el-date-picker
type=
"date"
v-model=
"dialog.docdat"
>
</el-table-column>
</el-date-picker
<el-table-column
></el-form-item>
label=
"Authentication"
</c-col>
sortable
<c-col
v-if=
"this.suppress != true"
>
><el-form-item
label=
"Contact"
</el-table-column>
><el-input
v-model=
"dialog.ptcnam"
</el-table>
/></el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"22"
v-if=
"this.suppress != true"
<c-col
v-if=
"title != 'MT799'"
><el-form-item
><el-form-item
label=
"面函日期"
>
:label=
"
<el-date-picker
title == 'MT799' ? 'Sender to Rec. information' : 'Remark'
type=
"date"
"
v-model=
"dialog.docdat"
>
>
<div
v-if=
"title == 'MT799'"
>
</el-date-picker
<el-input
></el-form-item>
type=
"textarea"
</c-col>
:rows=
"10"
<c-col
v-if=
"this.suppress!=true"
disabled
><el-form-item
label=
"Contact"
v-model=
"dialog.addtxt"
><el-input
v-model=
"dialog.ptcnam"
/>
/></el-form-item>
</div>
</c-col>
<div
v-else
>
<c-col
:span=
"22"
v-if=
"this.suppress!=true"
<el-input
><el-form-item
type=
"textarea"
:label=
"
:rows=
"10"
title == 'MT799'
v-model=
"dialog.addtxt"
? 'Sender to Rec. information'
/>
: 'Remark'
</div>
"
</el-form-item>
>
</c-col>
<div
v-if=
"title == 'MT799'"
>
<c-col
:span=
"2"
v-if=
"this.suppress != true"
>
<el-input
<c-button
size=
"mini"
icon=
"el-icon-more"
>
</c-button>
type=
"textarea"
</c-col>
:rows=
"10"
</c-row>
disabled
</el-form>
v-model=
"dialog.addtxt"
<
template
#
footer
>
/>
<span
class=
"dialog-footer"
>
</div>
<c-button
type=
"primary"
@
click=
"saveDialog"
>
确 定
</c-button>
<div
v-else
>
<c-button
<el-input
type=
"primary"
type=
"textarea"
@
click=
"activateDialog"
:rows=
"10"
v-if=
"dialog.delflg == 'D'"
v-model=
"dialog.addtxt"
>
应用
</c-button
/>
>
</div>
<c-button
</el-form-item>
type=
"primary"
</c-col>
@
click=
"suppressDialog"
<c-col
:span=
"2"
v-if=
"this.suppress!=true"
>
v-else-if=
"dialog.lev == '1' || dialog.mliflg != ''"
<c-button
size=
"mini"
icon=
"el-icon-more"
>
</c-button>
>
禁用
</c-button
</c-col>
>
</c-row>
<c-button
type=
"primary"
@
click=
"activateDialog"
v-else
</el-form>
>
删除
</c-button
<
template
#
footer
>
>
<span
class=
"dialog-footer"
>
<c-button
@
click=
"centerDialogVisible = false"
>
取 消
</c-button>
<c-button
type=
"primary"
@
click=
"saveDialog"
</span>
>
确 定
</c-button
</
template
>
>
</el-dialog>
<c-button
type=
"primary"
@
click=
"activateDialog"
v-if=
"dialog.delflg=='D'"
</template>
>
应用
</c-button
>
<c-button
type=
"primary"
@
click=
"suppressDialog"
v-else-if=
"dialog.lev=='1'||dialog.mliflg!=''"
>
禁用
</c-button
>
<c-button
type=
"primary"
@
click=
"activateDialog"
v-else
>
删除
</c-button
>
<c-button
@
click=
"centerDialogVisible = false"
>
取 消
</c-button
>
</span>
</
template
>
</el-dialog>
</template>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonProcess
from
'~/mixin/commonProcess'
;
import
Api
from
"~/service/Api"
;
import
Api
from
'~/service/Api'
;
import
Utils
from
"~/utils/index"
;
import
Utils
from
'~/utils/index'
;
import
DocUtils
from
"~/utils/DocUtils"
;
import
DocUtils
from
'~/utils/DocUtils'
;
export
default
{
export
default
{
inject
:
[
'root'
],
inject
:
[
'root'
],
props
:
[
"model"
,
"codes"
],
props
:
[
'model'
,
'codes'
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
()
{
data
()
{
return
{
return
{
index
:
0
,
index
:
0
,
title
:
""
,
title
:
''
,
dialog
:
{
dialog
:
{
rcv
:
{
rcv
:
{
pts
:
{},
pts
:
{},
...
@@ -501,8 +506,8 @@ export default {
...
@@ -501,8 +506,8 @@ export default {
stmData
:
{
stmData
:
{
columns
:
[
columns
:
[
//注释的已改成静态
//注释的已改成静态
"role 收报人 70px"
,
'role 收报人 70px'
,
"pandsc 描述 250px"
,
'pandsc 描述 250px'
,
//"cortyp 类型",
//"cortyp 类型",
//"docsnf 报文格式",
//"docsnf 报文格式",
//"docuil 语言",
//"docuil 语言",
...
@@ -510,163 +515,189 @@ export default {
...
@@ -510,163 +515,189 @@ export default {
],
],
data
:
[],
data
:
[],
},
},
suppress
:
false
,
suppress
:
false
,
};
};
},
},
watch
:
{
watch
:
{
"model.docpan.doceot"
:
{
'model.docpan.doceot'
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
var
stm
=
[];
var
stm
=
[];
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
if
(
val
[
i
].
role
!=
""
)
{
if
(
val
[
i
].
role
!=
''
)
{
val
[
i
][
'idx'
]
=
i
val
[
i
][
'idx'
]
=
i
;
stm
.
push
(
val
[
i
]);
stm
.
push
(
val
[
i
]);
}
}
}
}
this
.
stmData
.
data
=
stm
this
.
stmData
.
data
=
stm
;
},
},
immediate
:
true
immediate
:
true
,
}
}
,
},
},
methods
:
{
methods
:
{
saveDialog
()
{
saveDialog
()
{
this
.
centerDialogVisible
=
false
;
this
.
centerDialogVisible
=
false
;
this
.
model
.
docpan
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
this
.
model
.
docpan
.
doceot
.
splice
(
this
.
index
,
1
,
this
.
dialog
);
this
.
executeRule
(
"docpan.doccur.butaddok"
).
then
(
res
=>
{
this
.
executeRule
(
'docpan.doccur.butaddok'
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
){
if
(
res
.
respCode
==
SUCCESS
)
{
//TODO
//TODO
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
});
})
},
},
activateDialog
()
{
activateDialog
()
{
this
.
executeRule
(
`docpan.doceot(
${
this
.
index
+
1
}
).butdel`
).
then
(
res
=>
{
this
.
executeRule
(
`docpan.doceot(
${
this
.
index
+
1
}
).butdel`
).
then
(
if
(
res
.
respCode
==
SUCCESS
){
(
res
)
=>
{
//TODO
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
)
//TODO
this
.
dialog
=
this
.
model
.
docpan
.
doceot
[
this
.
index
]
this
.
updateModel
(
res
.
data
);
this
.
suppress
=
false
;
this
.
dialog
=
this
.
model
.
docpan
.
doceot
[
this
.
index
];
}
else
{
this
.
suppress
=
false
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
else
{
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
})
}
}
);
},
},
suppressDialog
()
{
suppressDialog
()
{
this
.
executeRule
(
`docpan.doceot(
${
this
.
index
+
1
}
).butdel`
).
then
(
res
=>
{
this
.
executeRule
(
`docpan.doceot(
${
this
.
index
+
1
}
).butdel`
).
then
(
if
(
res
.
respCode
==
SUCCESS
){
(
res
)
=>
{
//TODO
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
)
//TODO
this
.
dialog
=
this
.
model
.
docpan
.
doceot
[
this
.
index
]
this
.
updateModel
(
res
.
data
);
this
.
suppress
=
true
;
this
.
dialog
=
this
.
model
.
docpan
.
doceot
[
this
.
index
];
}
else
{
this
.
suppress
=
true
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
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.docpan.doccod = row.id
// // this.model.docpan.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;
let viewurl = "
/
#
/
docpan
/
swift
";
// this.viewurl = viewurl
// window.sessionStorage.docTXT = rtnmsg.data.lidgrp_blk_feetxt + rtnmsg.data.lidgrp_blk_insbnk ;
let doctxt = rtnmsg.data.trnmod_trndoc_doceot[index]['doctxt']
window.sessionStorage.docTXT = doctxt.rows.filter(d => d != '').join('
\
n')
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;
let base64Str = rtnmsg.data.executeDocpan;
let bstr = window.atob(base64Str); // 解码 base-64 编码的字符串,base-64 编码使用方法是 btoa()
let length = bstr.length;
let u8arr = new Uint8Array(length); // 创建初始化为0的,包含length个元素的无符号整型数组
while (length--) {
u8arr[length] = bstr.charCodeAt(length); // 返回在指定的位置的字符的 Unicode 编码
}
let blob = new Blob([u8arr])
let hrefUrl = window.URL.createObjectURL(blob)
let a = document.createElement('a')
a.href = hrefUrl
a.download = "
fileName
.
docx
" // 下载后文件名
document.body.appendChild(a)
a.click() // 点击下载
document.body.removeChild(a) // 下载完成移除元素
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
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.docpan.doccod = row.id
// // this.model.docpan.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;
let viewurl = '
/
#
/
docpan
/
swift
';
// this.viewurl = viewurl
// window.sessionStorage.docTXT = rtnmsg.data.lidgrp_blk_feetxt + rtnmsg.data.lidgrp_blk_insbnk ;
let doctxt = rtnmsg.data.trnmod_trndoc_doceot[index]['
doctxt
'];
window.sessionStorage.docTXT = doctxt.rows
.filter((d) => d != '')
.join('
\
n
');
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;
let base64Str = rtnmsg.data.executeDocpan;
let bstr = window.atob(base64Str); // 解码 base-64 编码的字符串,base-64 编码使用方法是 btoa()
let length = bstr.length;
let u8arr = new Uint8Array(length); // 创建初始化为0的,包含length个元素的无符号整型数组
while (length--) {
u8arr[length] = bstr.charCodeAt(length); // 返回在指定的位置的字符的 Unicode 编码
}
let blob = new Blob([u8arr]);
let hrefUrl = window.URL.createObjectURL(blob);
let a = document.createElement('
a
');
a.href = hrefUrl;
a.download = '
fileName
.
docx
'; // 下载后文件名
document.body.appendChild(a);
a.click(); // 点击下载
document.body.removeChild(a); // 下载完成移除元素
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) {
async handleDetail(index, row) {
const params = {
const params = {
index: row.idx
index: row.idx,
}
};
let rtnmsg = await Api.post(`${this.requestPrefix}/executeDocpanDetail`, this.wrapper(params))
let rtnmsg = await Api.post(
if (rtnmsg.respCode == SUCCESS) {
`${this.requestPrefix}/executeDocpanDetail`,
this.title = row.pandsc
this.wrapper(params)
this.centerDialogVisible = true,
);
this.updateModel(rtnmsg.data);
if (rtnmsg.respCode == SUCCESS) {
this.dialog = this.model.docpan.doceot[row.idx]
this.title = row.pandsc;
this.index = row.idx
(this.centerDialogVisible = true), this.updateModel(rtnmsg.data);
}
this.dialog = this.model.docpan.doceot[row.idx];
}
this.index = row.idx;
},
}
created: function () {},
},
},
created: function () {},
};
};
</
script
>
</
script
>
<
style
>
<
style
></
style
>
</
style
>
src/components/business/engp/event/index.js
View file @
53139194
...
@@ -4,7 +4,7 @@ import Utils from '~/utils';
...
@@ -4,7 +4,7 @@ import Utils from '~/utils';
export
default
{
export
default
{
async
processLiaall
(
liaallRequest
)
{
async
processLiaall
(
liaallRequest
)
{
const
loading
=
this
.
loading
(
'正在请求数据'
)
const
loading
=
this
.
loading
(
'正在请求数据'
)
let
objtyp
=
setfeg
Request
.
rec
.
objtyp
;
let
objtyp
=
liaall
Request
.
rec
.
objtyp
;
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/liaall/assertLiaall`
,
liaallRequest
);
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/liaall/assertLiaall`
,
liaallRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
liaall
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
.
liaall
,
rtnmsg
.
data
);
...
...
src/components/business/engp/views/index.vue
View file @
53139194
...
@@ -3,148 +3,154 @@
...
@@ -3,148 +3,154 @@
<!--
<c-col
:span=
"24"
style=
"margin-bottom:18px"
>
<!--
<c-col
:span=
"24"
style=
"margin-bottom:18px"
>
Liability
Liability
</c-col>
-->
</c-col>
-->
<c-col
:span=
"24"
style=
""
>
<c-col
:span=
"24"
style=
""
>
<c-table
<c-table
:list=
"model.liaall.liaallg"
:list=
"model.liaall.liaallg"
style=
"width:100%,text-align:center,margin-bottom:18px"
style=
"width:100%,text-align:center,margin-bottom:18px"
:border=
"true"
:border=
"true"
:total=
"model.liaall.liaallg.length"
:total=
"model.liaall.liaallg.length"
>
>
<el-table-column
prop=
"bussec"
label=
"业务"
width=
"70px"
>
<el-table-column
prop=
"bussec"
label=
"业务"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"cbtpfx"
label=
"类型"
width=
"70px"
>
<el-table-column
prop=
"cbtpfx"
label=
"类型"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"matdat"
label=
"到期日"
width=
"150px"
>
<el-table-column
prop=
"matdat"
label=
"到期日"
width=
"150px"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-form-item
<el-form-item
label-width=
"0"
label-width=
"0"
:prop=
"'liaall.liaallg.' + scope.$index + '.matdat'"
:prop=
"'liaall.liaallg.' + scope.$index + '.matdat'"
>
>
<c-date-picker
<c-date-picker
type=
"date"
type=
"date"
v-model=
"scope.row.matdat"
v-model=
"scope.row.matdat"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择日期"
placeholder=
"请选择日期"
style=
"width: 100%"
style=
"width: 100%"
@
change=
"executeDefault('liaall.liaallg.matdat')"
@
change=
"executeDefault('liaall.liaallg.matdat')"
:disabled=
"root.trnName == 'letopn'"
:disabled=
"root.trnName == 'letopn'"
>
>
</c-date-picker>
</c-date-picker>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"tenday"
label=
"效期"
width=
"70px"
>
<el-table-column
prop=
"tenday"
label=
"效期"
width=
"70px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
<el-form-item
label-width=
"0"
label-width=
"0"
:prop=
"'liaall.liaallg.' + scope.$index + '.tenday'"
:prop=
"'liaall.liaallg.' + scope.$index + '.tenday'"
>
>
<c-input
<c-input
v-model=
"scope.row.tenday"
v-model=
"scope.row.tenday"
style=
"width: 100%"
style=
"width: 100%"
placeholder=
"请输入"
placeholder=
"请输入"
>
>
</c-input>
</c-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"rol"
label=
"债务人"
width=
"70px"
>
<el-table-column
prop=
"rol"
label=
"债务人"
width=
"70px"
>
</el-table-column>
</el-table-column>
<!--
<!--
<el-table-column prop="nam" label="Name" width="300"> </el-table-column>
<el-table-column prop="nam" label="Name" width="300"> </el-table-column>
-->
-->
<el-table-column
prop=
"cdtrol"
label=
"债权人"
width=
"70px"
>
<el-table-column
prop=
"cdtrol"
label=
"债权人"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"cur"
label=
"币种"
width=
"70px"
>
<el-table-column
prop=
"cur"
label=
"币种"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"oldamt"
label=
"原始金额"
width=
"110px"
>
<el-table-column
prop=
"oldamt"
label=
"原始金额"
width=
"110px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.oldamt"
v-model="scope.row.oldamt"
placeholder="0.00"
placeholder="0.00"
></c-input-currency>
></c-input-currency>
</template> -->
</template> -->
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.oldamt)}}
{{moneyFormat(scope.row.oldamt)}}
</template> -->
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
prop=
"amt"
label=
"记账金额"
width=
"110px"
>
<el-table-column
prop=
"amt"
label=
"记账金额"
width=
"110px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
{{moneyFormat(scope.row.amt)}}
{{moneyFormat(scope.row.amt)}}
</template> -->
</template> -->
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.amt"
v-model="scope.row.amt"
placeholder="0.00"
placeholder="0.00"
></c-input-currency>
></c-input-currency>
</template> -->
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
prop=
"tenpct"
label=
"%"
width=
"70px"
>
<el-table-column
prop=
"tenpct"
label=
"%"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"acc"
label=
"核心账号"
width=
"200px"
>
<el-table-column
prop=
"acc"
label=
"核心账号"
width=
"200px"
>
<!-- check,需用el-form-item标签包起来 -->
<!-- check,需用el-form-item标签包起来 -->
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
<el-form-item
label-width=
"0"
label-width=
"0"
:prop=
"'liaall.liaallg.' + scope.$index + '.acc'"
:prop=
"'liaall.liaallg.' + scope.$index + '.acc'"
>
>
{{
scope
.
row
.
acc
}}
{{
scope
.
row
.
acc
}}
<!--
<c-input
<!--
<c-input
v-model=
"scope.row.acc"
v-model=
"scope.row.acc"
style=
"width: 100%"
style=
"width: 100%"
placeholder=
"请输入"
placeholder=
"请输入"
>
>
</c-input>
-->
</c-input>
-->
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"valdat"
label=
"起息日"
width=
"auto"
>
<el-table-column
prop=
"valdat"
label=
"起息日"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
dateFormat
(
scope
.
row
.
valdat
)
}}
{{
dateFormat
(
scope
.
row
.
valdat
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
""
prop=
"det"
width=
"150px"
height=
"0px"
fixed=
"right"
>
<el-table-column
<
template
slot-scope=
"scope"
slot=
"header"
>
label=
""
<c-button
prop=
"det"
circle
width=
"150px"
style=
"padding: 4px"
height=
"0px"
class=
"el-icon-plus"
fixed=
"right"
size=
"mini"
>
@
click=
"addRow(scope)"
<
template
slot-scope=
"scope"
slot=
"header"
>
>
<c-button
</c-button>
circle
<c-button
style=
"padding: 4px"
style=
"padding: 4px"
class=
"el-icon-plus"
circle
size=
"mini"
class=
"el-icon-minus"
@
click=
"addRow(scope)"
size=
"mini"
>
@
click=
"removeRow(scope)"
</c-button>
>
<c-button
</c-button>
style=
"padding: 4px"
</
template
>
circle
<
template
slot-scope=
"scoped"
>
class=
"el-icon-minus"
<c-button
size=
"mini"
style=
"margin-left: 0"
@
click=
"removeRow(scope)"
size=
"small"
>
type=
"primary"
</c-button>
icon=
"el-icon-info"
</
template
>
@
click=
"detail1(scoped.$index, scoped.row)"
<
template
slot-scope=
"scoped"
>
></c-button>
<c-button
</
template
>
style=
"margin-left: 0"
</el-table-column>
size=
"small"
</c-table>
type=
"primary"
</c-col>
icon=
"el-icon-info"
@
click=
"detail1(scoped.$index, scoped.row)"
></c-button>
</
template
>
</el-table-column>
</c-table>
</c-col>
<div
style=
"height=500px"
>
<div
style=
"height=500px"
>
<engp-dialog
<engp-dialog
ref=
"engpDialog"
ref=
"engpDialog"
:model=
"model"
:model=
"model"
:idx=
"index"
:idx=
"index"
:codes=
"codes"
:codes=
"codes"
/>
/>
</div>
</div>
<!-- <c-col :span="12">
<!-- <c-col :span="12">
<el-form-item label="Sight Amount">
<el-form-item label="Sight Amount">
<c-input style="width:50%" v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
<c-input style="width:50%" v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
</el-form-item>
</el-form-item>
...
@@ -162,34 +168,34 @@
...
@@ -162,34 +168,34 @@
</el-form-item>
</el-form-item>
</c-col> -->
</c-col> -->
<c-col
:span=
"16"
style=
"margin-top: 10px"
>
<c-col
:span=
"16"
style=
"margin-top: 10px"
>
<el-form-item
label=
"未分配金额"
>
<el-form-item
label=
"未分配金额"
>
<c-input
<c-input
style=
"width: 15%"
style=
"width: 15%"
disabled
disabled
v-model=
"model.liaall.concur"
v-model=
"model.liaall.concur"
maxlength=
"3"
maxlength=
"3"
placeholder=
""
placeholder=
""
></c-input>
></c-input>
<c-input
<c-input
style=
"width: 40%;margin-left:10px;
"
style=
"width: 40%; margin-left: 10px
"
disabled
disabled
v-model=
"model.liaall.misamt"
v-model=
"model.liaall.misamt"
placeholder=
"请输入金额"
placeholder=
"请输入金额"
></c-input>
></c-input>
<c-button
<c-button
style=
"width: 20%"
style=
"width: 20%"
size=
"small"
size=
"small"
disabled
disabled
type=
"primary"
type=
"primary"
@
click=
"onLiaallButmisamt"
@
click=
"onLiaallButmisamt"
>
>
添加到当前行
添加到当前行
</c-button>
</c-button>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="1" style="text-align:left;margin-left:0">
<!-- <c-col :span="1" style="text-align:left;margin-left:0">
<el-form-item label="">
<el-form-item label="">
<c-button size="small" disabled type="primary" @click="onLiaallButmisamt">
<c-button size="small" disabled type="primary" @click="onLiaallButmisamt">
Add to Current Line
Add to Current Line
...
@@ -197,7 +203,7 @@
...
@@ -197,7 +203,7 @@
</el-form-item>
</el-form-item>
</c-col> -->
</c-col> -->
<!-- <c-col :span="12">
<!-- <c-col :span="12">
<el-form-item label="">
<el-form-item label="">
<c-button size="small" type="primary" @click="onLiaallButmissig">
<c-button size="small" type="primary" @click="onLiaallButmissig">
Add to Sight Amount
Add to Sight Amount
...
@@ -219,18 +225,18 @@
...
@@ -219,18 +225,18 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
;
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
EngpDialog
from
"./dialog.vue"
;
import
EngpDialog
from
'./dialog.vue'
;
export
default
{
export
default
{
inject
:
[
"root"
],
inject
:
[
'root'
],
components
:
{
components
:
{
EngpDialog
EngpDialog
,
},
},
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
props
:
[
"model"
,
"codes"
],
props
:
[
'model'
,
'codes'
],
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -240,17 +246,17 @@ export default {
...
@@ -240,17 +246,17 @@ export default {
},
},
methods
:
{
methods
:
{
async
onLiaallButmisamt
()
{
async
onLiaallButmisamt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmisamt"
);
let
rtnmsg
=
await
this
.
executeRule
(
'liaall_butmisamt'
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
},
},
detail1
(
index
,
row
)
{
detail1
(
index
,
row
)
{
const
that
=
this
;
const
that
=
this
;
const
rule
=
"liaall.liaallg("
+
(
index
+
1
)
+
").det"
;
const
rule
=
'liaall.liaallg('
+
(
index
+
1
)
+
').det'
;
that
.
executeRule
(
rule
).
then
((
res
)
=>
{
that
.
executeRule
(
rule
).
then
((
res
)
=>
{
that
.
$refs
.
engpDialog
.
visiable
=
true
;
that
.
$refs
.
engpDialog
.
visiable
=
true
;
that
.
$refs
.
engpDialog
.
formData
=
Object
.
assign
(
that
.
$refs
.
engpDialog
.
formData
=
Object
.
assign
(
...
@@ -265,5 +271,4 @@ export default {
...
@@ -265,5 +271,4 @@ export default {
created
:
function
()
{},
created
:
function
()
{},
};
};
</
script
>
</
script
>
<
style
>
<
style
></
style
>
</
style
>
src/components/business/glentry/event/index.js
View file @
53139194
...
@@ -3,7 +3,7 @@ import Api from '~/service/Api';
...
@@ -3,7 +3,7 @@ import Api from '~/service/Api';
export
default
{
export
default
{
async
processGlentry
(
glentryRequest
)
{
async
processGlentry
(
glentryRequest
)
{
const
loading
=
this
.
loading
(
'正在请求数据'
)
const
loading
=
this
.
loading
(
'正在请求数据'
)
let
objtyp
=
setfeg
Request
.
rec
.
objtyp
;
let
objtyp
=
glentry
Request
.
rec
.
objtyp
;
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/gle/assertGle`
,
glentryRequest
);
let
rtnmsg
=
await
Api
.
post
(
`/service/
${
objtyp
.
toLowerCase
()
}
/gle/assertGle`
,
glentryRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
model
.
setmod
.
glemod
.
gleshwstm
=
rtnmsg
.
data
.
gleshwstm
;
this
.
model
.
setmod
.
glemod
.
gleshwstm
=
rtnmsg
.
data
.
gleshwstm
;
...
...
src/components/business/glentry/views/index.vue
View file @
53139194
<
template
>
<
template
>
<div
class=
"eibs"
>
<div
class=
"eibs"
>
<c-col
:span=
"24"
style=
""
>
<c-col
:span=
"24"
style=
""
>
<c-istream-table
:list=
"data"
:columns=
"columns"
></c-istream-table>
<c-istream-table
:list=
"data"
:columns=
"columns"
></c-istream-table>
</c-col>
</c-col>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
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'
;
export
default
{
export
default
{
inject
:
[
'root'
],
inject
:
[
'root'
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
props
:[
"model"
,
"codes"
],
props
:
[
'model'
,
'codes'
],
data
(){
data
()
{
return
{
return
{
columns
:
[
columns
:
[
"2 1
\"
借/贷
\"
80 1 0"
,
'2 1 "借/贷" 80 1 0'
,
"6 2
\"
账号
\"
200"
,
'6 2 "账号" 200'
,
"3 3
\"
币种
\"
70"
,
'3 3 "币种" 70'
,
"4 4
\"
金额
\"
150 2 8:1 2 5"
,
'4 4 "金额" 150 2 8:1 2 5'
,
"5 5
\"
起息日
\"
150"
,
'5 5 "起息日" 150'
,
"7 6
\"
牌价类型
\"
100"
,
'7 6 "牌价类型" 100'
,
"8 7
\"
牌价
\"
100 2 0 1 0"
,
'8 7 "牌价" 100 2 0 1 0'
,
"9 8
\"
会计科目
\"
100"
,
'9 8 "会计科目" 100'
,
"0 9
\"
分录序号
\"
100 1 0"
'0 9 "分录序号" 100 1 0'
,
],
],
data
:
[
data
:
[],
]
};
},
watch
:
{
//this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
'model.setmod.glemod.gleshwstm'
:
{
handler
(
val
,
oldVal
)
{
if
(
val
.
rows
)
{
this
.
data
=
val
.
rows
;
}
}
},
immediate
:
true
,
},
},
watch
:
{
},
//this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
methods
:
{},
'model.setmod.glemod.gleshwstm'
:
{
created
:
function
()
{},
handler
(
val
,
oldVal
)
{
};
if
(
val
.
rows
)
{
this
.
data
=
val
.
rows
}
},
immediate
:
true
}
},
methods
:{
},
created
:
function
(){
}
}
</
script
>
</
script
>
<
style
>
<
style
></
style
>
</
style
>
src/components/business/setmod/views/index.vue
View file @
53139194
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
label-width=
"0"
label-width=
"0"
:prop=
"'setmod.setfog.setfol.' + scope.$index + '.amt'"
:prop=
"'setmod.setfog.setfol.' + scope.$index + '.amt'"
>
>
<!--
<c-input-currency
<!--
<c-input-currency
v-model=
"scope.row.amt"
v-model=
"scope.row.amt"
placeholder=
"0.00"
placeholder=
"0.00"
></c-input-currency>
-->
></c-input-currency>
-->
...
@@ -273,7 +273,11 @@
...
@@ -273,7 +273,11 @@
<c-col
:span=
"16"
>
<c-col
:span=
"16"
>
<c-col
:span=
"18"
>
<c-col
:span=
"18"
>
<el-form-item
label=
"费用"
>
<el-form-item
label=
"费用"
>
<c-select
v-model=
"dialog.cur"
style=
"width: 100%"
:code=
"codes.curtxt1"
>
<c-select
v-model=
"dialog.cur"
style=
"width: 100%"
:code=
"codes.curtxt1"
>
<!-- <el-option
<!-- <el-option
v-for="item in codes.cur"
v-for="item in codes.cur"
:key="item.value"
:key="item.value"
...
@@ -398,7 +402,7 @@
...
@@ -398,7 +402,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"应收金额"
prop=
"ogiamt"
width=
"110px"
>
<el-table-column
label=
"应收金额"
prop=
"ogiamt"
width=
"110px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.ogiamt"
v-model="scope.row.ogiamt"
placeholder="0.00"
placeholder="0.00"
...
@@ -411,8 +415,8 @@
...
@@ -411,8 +415,8 @@
label-width=
"0"
label-width=
"0"
:prop=
"'setmod.setfeg.setfel.' + scope.$index + '.amt'"
:prop=
"'setmod.setfeg.setfel.' + scope.$index + '.amt'"
>
>
{{
scope
.
row
.
amt
}}
{{
scope
.
row
.
amt
}}
<!--
<c-input-currency
<!--
<c-input-currency
v-model=
"scope.row.amt"
v-model=
"scope.row.amt"
placeholder=
"0.00"
placeholder=
"0.00"
></c-input-currency>
-->
></c-input-currency>
-->
...
@@ -461,7 +465,7 @@
...
@@ -461,7 +465,7 @@
<c-col
:span=
"24"
style=
"height: 24px; margin-top: 25px"
>
<c-col
:span=
"24"
style=
"height: 24px; margin-top: 25px"
>
<el-form-item
class=
"formItemLabel"
label=
"结算:"
label-width=
"48px"
>
<el-form-item
class=
"formItemLabel"
label=
"结算:"
label-width=
"48px"
>
<span
style=
"color: red"
>
{{
<span
style=
"color: red"
>
{{
this.model.setmod.dspflg ==
"C" ? "temporary" : ""
this.model.setmod.dspflg ==
'C' ? 'temporary' : ''
}}
</span>
}}
</span>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
...
@@ -471,7 +475,7 @@
...
@@ -471,7 +475,7 @@
:list=
"stmData3"
:list=
"stmData3"
:paginationShow=
"true"
:paginationShow=
"true"
:border=
"true"
:border=
"true"
:total=
"stmData3.length"
:total=
"stmData3.length"
>
>
<el-table-column
label=
"修改标识"
prop=
"modflg"
width=
"70px"
>
<el-table-column
label=
"修改标识"
prop=
"modflg"
width=
"70px"
>
</el-table-column>
</el-table-column>
...
@@ -482,8 +486,8 @@
...
@@ -482,8 +486,8 @@
<c-select
<c-select
v-model=
"scope.row.acccur"
v-model=
"scope.row.acccur"
@
change=
"accucrChange(scope.$index)"
@
change=
"accucrChange(scope.$index)"
>
>
<!-- @change="eventfunction('setgll.accur')" -->
<!-- @change="eventfunction('setgll.accur')" -->
<el-option
<el-option
v-for=
"item in codes.acccur"
v-for=
"item in codes.acccur"
:key=
"item.value"
:key=
"item.value"
...
@@ -497,7 +501,7 @@
...
@@ -497,7 +501,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"记账金额"
prop=
"fmtaccamt"
width=
"110px"
>
<el-table-column
label=
"记账金额"
prop=
"fmtaccamt"
width=
"110px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<c-input
<c-input
v-model=
"scope.row.fmtaccamt"
v-model=
"scope.row.fmtaccamt"
@
change=
"fmtaccamtChange(scope.$index)"
@
change=
"fmtaccamtChange(scope.$index)"
/>
/>
...
@@ -506,11 +510,15 @@
...
@@ -506,11 +510,15 @@
placeholder=
"0.00"
placeholder=
"0.00"
@
change=
"fmtaccamtChange(scope.$index)"
@
change=
"fmtaccamtChange(scope.$index)"
></c-input-currency>
-->
></c-input-currency>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"处理方式"
width=
"110px"
prop=
"dsp"
>
<el-table-column
label=
"处理方式"
width=
"110px"
prop=
"dsp"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<c-select
v-model=
"scope.row.dsp"
@
change=
"dspChange(scope.$index)"
v-if=
"scope.row.debcdtflg=='D'"
>
<c-select
v-model=
"scope.row.dsp"
@
change=
"dspChange(scope.$index)"
v-if=
"scope.row.debcdtflg == 'D'"
>
<el-option
<el-option
v-for=
"item in codes.setgll_dsp2"
v-for=
"item in codes.setgll_dsp2"
:key=
"item.value"
:key=
"item.value"
...
@@ -523,7 +531,11 @@
...
@@ -523,7 +531,11 @@
}}
</span>
}}
</span>
</el-option>
</el-option>
</c-select>
</c-select>
<c-select
v-model=
"scope.row.dsp"
@
change=
"dspChange(scope.$index)"
v-if=
"scope.row.debcdtflg=='C'"
>
<c-select
v-model=
"scope.row.dsp"
@
change=
"dspChange(scope.$index)"
v-if=
"scope.row.debcdtflg == 'C'"
>
<el-option
<el-option
v-for=
"item in codes.setgll_dsp1"
v-for=
"item in codes.setgll_dsp1"
:key=
"item.value"
:key=
"item.value"
...
@@ -557,12 +569,11 @@
...
@@ -557,12 +569,11 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"借/贷"
prop=
"debcdtflg"
width=
"70px"
>
<el-table-column
label=
"借/贷"
prop=
"debcdtflg"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"原始币种"
prop=
"cur"
width=
"70px"
>
<el-table-column
label=
"原始币种"
prop=
"cur"
width=
"70px"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"原始金额"
prop=
"fmtamt"
width=
"110px"
>
<el-table-column
label=
"原始金额"
prop=
"fmtamt"
width=
"110px"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<c-input-currency
<c-input-currency
v-model="scope.row.fmtamt"
v-model="scope.row.fmtamt"
placeholder="0.00"
placeholder="0.00"
...
@@ -1351,41 +1362,41 @@
...
@@ -1351,41 +1362,41 @@
</template>
</template>
<
script
>
<
script
>
// import Event from "~/model/Ditopn/Event";
// import Event from "~/model/Ditopn/Event";
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonProcess
from
'~/mixin/commonProcess'
;
import
SetpanDialog
from
"./dialog.vue"
;
import
SetpanDialog
from
'./dialog.vue'
;
import
Utils
from
"~/utils/index"
;
import
Utils
from
'~/utils/index'
;
export
default
{
export
default
{
inject
:
[
"root"
],
inject
:
[
'root'
],
components
:
{
SetpanDialog
},
components
:
{
SetpanDialog
},
props
:
[
"model"
,
"codes"
],
props
:
[
'model'
,
'codes'
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
dialog
:
{
dialog
:
{
payee
:
""
,
payee
:
''
,
ptydbt
:
""
,
ptydbt
:
''
,
txtpay
:
""
,
txtpay
:
''
,
txtdbt
:
""
,
txtdbt
:
''
,
CG00005
:
""
,
CG00005
:
''
,
},
},
newdialog
:
{
newdialog
:
{
payee
:
""
,
payee
:
''
,
ptydbt
:
""
,
ptydbt
:
''
,
txtpay
:
""
,
txtpay
:
''
,
txtdbt
:
""
,
txtdbt
:
''
,
CG00005
:
""
,
CG00005
:
''
,
},
},
dialog2
:
{
dialog2
:
{
feetxtinf
:
""
,
feetxtinf
:
''
,
feetxt
:
""
,
feetxt
:
''
,
},
},
index
:
0
,
index
:
0
,
detpDialogVisible
:
false
,
detpDialogVisible
:
false
,
rattyp
:
""
,
rattyp
:
''
,
dcbrattyp
:
""
,
dcbrattyp
:
''
,
scbrattyp
:
""
,
scbrattyp
:
''
,
dialog3
:
{
dialog3
:
{
setgrp
:
{
setgrp
:
{
act
:
{
act
:
{
...
@@ -1403,12 +1414,12 @@ export default {
...
@@ -1403,12 +1414,12 @@ export default {
};
};
},
},
watch
:
{
watch
:
{
"model.setmod.setglg.setgll"
:
{
'model.setmod.setglg.setgll'
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
var
stm
=
[];
var
stm
=
[];
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
if
(
val
[
i
].
rol
!=
""
)
{
if
(
val
[
i
].
rol
!=
''
)
{
val
[
i
][
"idx"
]
=
i
;
val
[
i
][
'idx'
]
=
i
;
stm
.
push
(
val
[
i
]);
stm
.
push
(
val
[
i
]);
}
}
}
}
...
@@ -1442,7 +1453,7 @@ export default {
...
@@ -1442,7 +1453,7 @@ export default {
this
.
defaultFunction
();
this
.
defaultFunction
();
},
},
detail1
(
index
,
row
)
{
detail1
(
index
,
row
)
{
this
.
executeDefault
(
"setfel.det"
).
then
((
res
)
=>
{
this
.
executeDefault
(
'setfel.det'
).
then
((
res
)
=>
{
this
.
index
=
index
;
this
.
index
=
index
;
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
this
.
dialog
=
row
;
this
.
dialog
=
row
;
...
@@ -1456,7 +1467,7 @@ export default {
...
@@ -1456,7 +1467,7 @@ export default {
// 第二个表格
// 第二个表格
detail2
(
index
,
row
)
{
detail2
(
index
,
row
)
{
const
that
=
this
;
const
that
=
this
;
const
rule
=
"setmod.setfeg.setfel("
+
(
index
+
1
)
+
").det"
;
const
rule
=
'setmod.setfeg.setfel('
+
(
index
+
1
)
+
').det'
;
that
.
executeRule
(
rule
).
then
((
res
)
=>
{
that
.
executeRule
(
rule
).
then
((
res
)
=>
{
that
.
index
=
index
;
that
.
index
=
index
;
that
.
$refs
.
setpanDialog
.
visiable
=
true
;
that
.
$refs
.
setpanDialog
.
visiable
=
true
;
...
@@ -1472,7 +1483,7 @@ export default {
...
@@ -1472,7 +1483,7 @@ export default {
},
},
async
handleDetail
(
index
,
row
)
{
async
handleDetail
(
index
,
row
)
{
const
that
=
this
;
const
that
=
this
;
const
rule
=
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").det"
;
const
rule
=
'setmod.setglg.setgll('
+
(
index
+
1
)
+
').det'
;
let
rtnmsg
=
await
this
.
executeRule
(
rule
);
let
rtnmsg
=
await
this
.
executeRule
(
rule
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
that
.
index
=
index
;
that
.
index
=
index
;
...
@@ -1491,14 +1502,14 @@ export default {
...
@@ -1491,14 +1502,14 @@ export default {
}
}
},
},
strCalCode
(
str
,
code
)
{
strCalCode
(
str
,
code
)
{
var
result
=
""
;
var
result
=
''
;
for
(
let
i
=
0
;
i
<
code
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
code
.
length
;
i
++
)
{
if
(
code
[
i
].
value
===
str
)
{
if
(
code
[
i
].
value
===
str
)
{
result
=
code
[
i
].
label
;
result
=
code
[
i
].
label
;
continue
;
continue
;
}
}
}
}
if
(
result
===
""
)
{
if
(
result
===
''
)
{
return
str
;
return
str
;
}
else
{
}
else
{
return
result
;
return
result
;
...
@@ -1511,54 +1522,54 @@ export default {
...
@@ -1511,54 +1522,54 @@ export default {
onSetgllCtysel
()
{},
onSetgllCtysel
()
{},
onSetgllDetget
()
{},
onSetgllDetget
()
{},
async
onSetmodDet
()
{
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod.det"
);
let
rtnmsg
=
await
this
.
executeRule
(
'setmod.det'
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
},
},
async
accucrChange
(
index
)
{
async
accucrChange
(
index
)
{
let
rtnmsg
=
await
this
.
executeRule
(
let
rtnmsg
=
await
this
.
executeRule
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").acccur"
'setmod.setglg.setgll('
+
(
index
+
1
)
+
').acccur'
);
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
this
.
executeRule
(
'setmod.glemod.glepan'
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
);
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
);
});
});
});
});
}
}
},
},
async
fmtaccamtChange
(
index
)
{
async
fmtaccamtChange
(
index
)
{
let
rtnmsg
=
await
this
.
executeRule
(
let
rtnmsg
=
await
this
.
executeRule
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").fmtaccamt"
'setmod.setglg.setgll('
+
(
index
+
1
)
+
').fmtaccamt'
);
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
this
.
executeRule
(
'setmod.glemod.glepan'
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
);
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
);
});
});
});
});
}
}
},
},
async
dspChange
(
index
)
{
async
dspChange
(
index
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
let
rtnmsg
=
await
this
.
executeDefault
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").dsp"
'setmod.setglg.setgll('
+
(
index
+
1
)
+
').dsp'
);
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
this
.
executeRule
(
'setmod.glemod.glepan'
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
);
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
);
});
});
});
});
}
}
...
@@ -1568,10 +1579,10 @@ export default {
...
@@ -1568,10 +1579,10 @@ export default {
computed
:
{
computed
:
{
modifyflg
:
{
modifyflg
:
{
get
()
{
get
()
{
return
this
.
dialog3
.
modifyflg
===
"X"
;
return
this
.
dialog3
.
modifyflg
===
'X'
;
},
},
set
(
val
)
{
set
(
val
)
{
this
.
dialog3
.
modifyflg
=
val
?
"X"
:
""
;
this
.
dialog3
.
modifyflg
=
val
?
'X'
:
''
;
},
},
},
},
},
},
...
...
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