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
986acdf1
Commit
986acdf1
authored
Apr 04, 2023
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
infgid页面修改
parent
685b0319
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
134 deletions
+141
-134
index.js
src/business/gitopn/event/index.js
+0
-65
index.vue
src/business/gitopn/views/index.vue
+2
-2
Infsea.vue
src/business/infgid/views/Infsea.vue
+67
-67
operationFunc.js
src/mixin/operationFunc.js
+72
-0
No files found.
src/business/gitopn/event/index.js
View file @
986acdf1
...
...
@@ -50,71 +50,6 @@ export default {
})
console
.
log
(
res
)
},
// 提交
handleSubmit
()
{
console
.
log
(
'提交'
,
this
.
model
);
},
// 检核
async
handleCheck
()
{
const
loading
=
this
.
loading
(
'正在校验数据'
);
const
rtnmsg
=
await
Api
.
post
(
'/service/gitopn/checkAll'
,
{
...
this
.
model
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
});
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
errorRules
=
rtnmsg
.
data
;
Object
.
keys
(
errorRules
).
map
((
ruleKey
)
=>
{
// 此处判断是为了区分,如果在前端做了校验后端也校验了就不采用自定义校验规则
if
(
!
this
.
rules
[
ruleKey
])
{
this
.
rules
[
ruleKey
]
=
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
callback
(
new
Error
(
errorRules
[
ruleKey
]));
},
trigger
:
[
'change'
,
'blur'
],
},
];
}
});
console
.
log
(
'rules'
,
this
.
rules
);
this
.
$refs
[
'modelForm'
].
validate
((
valid
)
=>
{
console
.
log
(
'valid'
,
valid
);
});
}
// this.$notify({
// title: '成功',
// message: '校验成功',
// type: 'success',
// });
loading
.
close
();
},
// 暂存
async
handleStash
()
{
const
loading
=
this
.
loading
(
'正在暂存数据'
);
let
params
=
{
transName
:
this
.
trnName
.
toUpperCase
(),
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
liaccvg
:
this
.
model
.
liaccv
.
liaccvg
,
liaallg
:
this
.
model
.
liaall
.
liaallg
,
setfog
:
this
.
model
.
setmod
.
setfog
,
setfeg
:
this
.
model
.
setmod
.
setfeg
,
setglg
:
this
.
model
.
setmod
.
setglg
,
doceot
:
this
.
model
.
docpan
.
doceot
,
gidgrp
:
this
.
model
.
gidgrp
,
gitp
:
this
.
model
.
gitp
,
}
const
res
=
await
Api
.
post
(
'/service/gitopn/txnHold'
,
params
);
if
(
res
.
respCode
===
SUCCESS
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
'暂存成功'
,
type
:
'success'
,
});
loading
.
close
();
this
.
$router
.
push
(
'/taskList'
)
}
},
async
tabClick
(
tab
)
{
if
(
this
.
isInDisplay
)
{
return
;
...
...
src/business/gitopn/views/index.vue
View file @
986acdf1
...
...
@@ -109,7 +109,7 @@
</
template
>
<
script
>
import
event
from
'../event'
// import commonProcess from "~/mixin/commonProcess
";
import
operationFunc
from
"~/mixin/operationFunc
"
;
import
formRules
from
'../model/check'
import
CodeTable
from
"~/config/CodeTable"
;
import
Gitopn
from
"../model"
;
...
...
@@ -188,7 +188,7 @@ export default {
activeNames
:
[
"ovwp"
],
};
},
mixins
:
[
event
],
mixins
:
[
operationFunc
,
event
],
data
()
{
return
{
tabVal
:
"ovwp"
,
...
...
src/business/infgid/views/Infsea.vue
View file @
986acdf1
...
...
@@ -471,9 +471,6 @@
<c-col
:span=
"11"
style=
"text-align: center"
>
<span>
操作
</span>
</c-col>
<!--
<c-col
:span=
"12"
style=
"text-align: right"
>
<c-button
icon=
"el-icon-s-tools"
></c-button>
</c-col>
-->
</
template
>
<
template
slot-scope=
"scope"
>
<el-popover
...
...
@@ -486,8 +483,9 @@
<div
style=
"text-align: right;margin-top: -30px;margin-right: 5px;font-size: 16px;"
>
<span
class=
"el-icon-close"
@
click=
"closeTrn('popover_' + scope.row.IDX)"
/>
style=
"cursor: pointer"
@
click=
"closeDetailsDialog('popover_' + scope.row.IDX)"
></span>
</div>
<c-istream-table
:list=
"trnData.data"
...
...
@@ -512,8 +510,8 @@
<c-button
style=
"margin-left: 0"
size=
"small"
@
click=
"getTrnInfo(scope.$index, scope.row)"
slot=
"reference"
@
click=
"details"
>
详情
</c-button
>
...
...
@@ -522,10 +520,8 @@
style=
"margin-left: 5px"
size=
"small"
type=
"primary"
@
click=
"
getButtons(scope.row['保函编号'], scope.row['保函效期'])
"
>
处理
@
click=
"handler(scope.row['保函编号'], scope.row['保函效期'])"
>
处理
</c-button>
</template>
</el-table-column>
...
...
@@ -544,43 +540,36 @@
</div>
</c-col>
</div>
<!-- 点击处理弹框 -->
<el-dialog
:visible
.
sync=
"initdialog"
title=
"交易列表"
append-to-body
width=
"60%"
>
<div
class=
"dialog-wrap"
>
<el-button
v-for=
"(item, index) in handlerDataList"
:key=
"index"
type=
"primary"
:disabled=
"item.disabled"
></el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
event
from
'../event'
import
BusNavbar
from
"~/views/Public/BusNavbar"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
event
],
components
:
{
"m-busbtn"
:
BusNavbar
},
components
:
{},
data
()
{
return
{
ownref
:
""
,
dialogTableVisible
:
false
,
dialogFlag
:
true
,
isGuarantee
:
""
,
trnData
:
{
columns
:
[
'0 1 "交易ID" 100'
,
'1 2 "保函编号" 200'
,
'2 3 "交易名称" 200'
,
'3 4 "条目" 200'
,
{
index
:
4
,
position
:
5
,
width
:
100
,
pattern
:
"code"
,
label
:
"状态"
,
code
:
this
.
codes
.
relflg
,
},
'5 6 "币种" 80'
,
'6 7 "相关金额" 150'
,
'7 8 "标识" 100'
,
],
data
:
[],
},
// 表格相关
stmData
:
{
columns
:
[
{
...
...
@@ -614,37 +603,34 @@ export default {
pageIndex
:
1
,
pageSize
:
10
,
total
:
0
}
},
// 详情
trnData
:
{
columns
:
[
'0 1 "交易ID" 100'
,
'1 2 "保函编号" 200'
,
'2 3 "交易名称" 200'
,
'3 4 "条目" 200'
,
{
index
:
4
,
position
:
5
,
width
:
100
,
pattern
:
"code"
,
label
:
"状态"
,
code
:
this
.
codes
.
relflg
,
},
'5 6 "币种" 80'
,
'6 7 "相关金额" 150'
,
'7 8 "标识" 100'
,
],
data
:
[],
},
// 处理
initdialog
:
false
,
handlerDataList
:
[]
};
},
methods
:
{
async
onChoose
(
code
,
prePageId
)
{
//跳转交易
// this.$router.history.push("/business/" + code);
this
.
$router
.
push
({
name
:
code
.
charAt
(
0
).
toUpperCase
()
+
code
.
substring
(
1
),
params
:
{
prePageId
}
});
this
.
$refs
.
childs
.
initdialog
=
false
;
},
async
getDitSelInfo
(
code
)
{
//跳转交易
this
.
$router
.
history
.
push
(
"/business/"
+
code
);
this
.
$refs
.
childs
.
initdialog
=
false
;
},
async
getTrnInfo
(
idx
,
row
)
{
this
.
model
.
infcon
.
objinr
=
row
[
"INR"
];
this
.
model
.
gidgrp
.
rec
.
inr
=
row
[
"INR"
];
this
.
model
.
infcon
.
chksubcon
=
"X"
;
this
.
dialogTableVisible
=
true
;
let
rtnmsg
=
await
this
.
executeDefault
(
"infcon.chksubcon"
);
if
((
rtnmsg
.
respCode
=
SUCCESS
))
{
this
.
trnData
.
data
=
rtnmsg
.
data
.
infcon_trnstm
.
rows
;
}
},
closeTrn
(
refId
)
{
this
.
$refs
[
refId
].
doClose
();
},
toGitpop
()
{
this
.
$router
.
history
.
push
(
"/business/gitpop"
);
},
...
...
@@ -654,11 +640,25 @@ export default {
toGetopn
()
{
this
.
$router
.
history
.
push
(
"/business/getopn"
);
},
// 详情
async
details
(
idx
,
row
)
{
},
// 关闭详情弹框
closeDetailsDialog
(
refId
)
{
this
.
$refs
[
refId
].
doClose
();
console
.
log
(
'close'
)
},
// 处理
handler
()
{
this
.
initdialog
=
true
},
// 关闭处理弹框
closeHandlerDialog
()
{
this
.
initdialog
=
false
}
},
created
:
function
()
{},
watch
:
{
"model.gidgrp.rec.ownref"
:
function
()
{},
},
mounted
()
{},
};
</
script
>
<
style
scoped
>
...
...
src/mixin/operationFunc.js
0 → 100644
View file @
986acdf1
// 此文件存放交易流转的一些公共方法
import
Api
from
'~/service/Api'
;
export
default
{
methods
:
{
// 提交
handleSubmit
()
{
console
.
log
(
'提交'
,
this
.
model
);
},
// 检核
async
handleCheck
()
{
const
loading
=
this
.
loading
(
'正在校验数据'
);
const
rtnmsg
=
await
Api
.
post
(
'/service/gitopn/checkAll'
,
{
...
this
.
model
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
});
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
errorRules
=
rtnmsg
.
data
;
Object
.
keys
(
errorRules
).
map
((
ruleKey
)
=>
{
// 此处判断是为了区分,如果在前端做了校验后端也校验了就不采用自定义校验规则
if
(
!
this
.
rules
[
ruleKey
])
{
this
.
rules
[
ruleKey
]
=
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
callback
(
new
Error
(
errorRules
[
ruleKey
]));
},
trigger
:
[
'change'
,
'blur'
],
},
];
}
});
console
.
log
(
'rules'
,
this
.
rules
);
this
.
$refs
[
'modelForm'
].
validate
((
valid
)
=>
{
console
.
log
(
'valid'
,
valid
);
});
}
// this.$notify({
// title: '成功',
// message: '校验成功',
// type: 'success',
// });
loading
.
close
();
},
// 暂存
async
handleStash
()
{
const
loading
=
this
.
loading
(
'正在暂存数据'
);
let
params
=
{
transName
:
this
.
trnName
.
toUpperCase
(),
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
liaccvg
:
this
.
model
.
liaccv
.
liaccvg
,
liaallg
:
this
.
model
.
liaall
.
liaallg
,
setfog
:
this
.
model
.
setmod
.
setfog
,
setfeg
:
this
.
model
.
setmod
.
setfeg
,
setglg
:
this
.
model
.
setmod
.
setglg
,
doceot
:
this
.
model
.
docpan
.
doceot
,
gidgrp
:
this
.
model
.
gidgrp
,
gitp
:
this
.
model
.
gitp
,
}
const
res
=
await
Api
.
post
(
'/service/gitopn/txnHold'
,
params
);
if
(
res
.
respCode
===
SUCCESS
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
'暂存成功'
,
type
:
'success'
,
});
loading
.
close
();
this
.
$router
.
push
(
'/taskList'
)
}
},
}
}
\ No newline at end of file
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