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
4275b934
Commit
4275b934
authored
Jun 09, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fctcan、fctopn
parent
5a085abd
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
702 additions
and
11 deletions
+702
-11
common.js
src/lang/local/en/common.js
+1
-0
common.js
src/lang/local/zh/common.js
+1
-0
Check.js
src/model/Fctcan/Check.js
+3
-0
Default.js
src/model/Fctcan/Default.js
+4
-0
Event.js
src/model/Fctcan/Event.js
+13
-0
Pattern.js
src/model/Fctcan/Pattern.js
+50
-0
index.js
src/model/Fctcan/index.js
+27
-0
Check.js
src/model/Fctopn/Check.js
+5
-0
Default.js
src/model/Fctopn/Default.js
+8
-0
Event.js
src/model/Fctopn/Event.js
+25
-0
Pattern.js
src/model/Fctopn/Pattern.js
+40
-0
index.js
src/model/Fctopn/index.js
+23
-0
BusRouter.js
src/views/Business/BusRouter.js
+4
-0
Opnp1.vue
src/views/Business/Fctcan/Opnp1.vue
+201
-0
index.vue
src/views/Business/Fctcan/index.vue
+60
-5
Opnp1.vue
src/views/Business/Fctopn/Opnp1.vue
+173
-0
index.vue
src/views/Business/Fctopn/index.vue
+64
-6
No files found.
src/lang/local/en/common.js
View file @
4275b934
...
...
@@ -26,6 +26,7 @@ export default {
},
buttons
:
{
save
:
"Save"
,
add
:
"Add"
,
delete
:
"Delete"
,
query
:
"Query"
,
...
...
src/lang/local/zh/common.js
View file @
4275b934
...
...
@@ -26,6 +26,7 @@ export default {
},
buttons
:
{
save
:
"保存"
,
add
:
"添加"
,
delete
:
"删除"
,
query
:
"查询"
,
...
...
src/model/Fctcan/Check.js
View file @
4275b934
...
...
@@ -4,6 +4,9 @@ import Utils from "~/utils"
* Fctcan Check规则
*/
let
checkObj
=
{
"fcdgrp.apl.pts.extkey"
:
null
,
"fcdgrp.apl.pts.nam"
:
null
,
"fcdgrp.rec.ownref"
:
null
,
}
for
(
const
key
in
checkObj
)
{
...
...
src/model/Fctcan/Default.js
View file @
4275b934
...
...
@@ -6,5 +6,9 @@ import Api from "~/service/Api";
import
Utils
from
"~/utils/index"
export
default
{
"fcdgrp.apl.pts.extkey"
:
Utils
.
defaultFunction
,
"gleflg"
:
Utils
.
defaultFunction
,
"cshstm"
:
Utils
.
defaultFunction
,
"fcdgrp.apl.pts.nam"
:
Utils
.
defaultFunction
,
}
//你可以添加自动default处理
src/model/Fctcan/Event.js
View file @
4275b934
...
...
@@ -2,5 +2,17 @@ import Api from "~/service/Api"
import
Utils
from
"~/utils"
export
default
{
async
onAplpDet
(){
let
rtnmsg
=
await
this
.
executeRule
(
"aplp.det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Fctcan/Pattern.js
View file @
4275b934
export
default
{
"aplp.ptsget.sdamod.dadsnd"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"fcdgrp.apl.pts.extkey"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"aplp.ptsget.sdamod.seainf"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"fcdgrp.apl.pts.nam"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"fcdgrp.apl.pta.nam1"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"fcdgrp.rec.ownref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"fcdgrp.rec.reason"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"fcdgrp.rec.amt"
:[
{
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"fcdgrp.rec.extact"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
8
,
message
:
"长度不能超过8"
}
],
"fcdgrp.rec.engact"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"cshstm"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
,
message
:
"长度不能超过1"
}
],
}
\ No newline at end of file
src/model/Fctcan/index.js
View file @
4275b934
...
...
@@ -4,6 +4,33 @@ import Pts from "../Common/Pts"
export
default
class
Fctcan
{
constructor
()
{
this
.
data
=
{
fcdgrp
:{
apl
:{
pts
:
new
Pts
().
data
,
pta
:{
nam1
:
""
,
// Externally Visible Name of Address .fcdgrp.apl.pta.nam1
},
},
rec
:{
ownref
:
""
,
// Our Reference .fcdgrp.rec.ownref
cur
:
""
,
// currency .fcdgrp.rec.cur
amt
:
""
,
// 保证金金额 .fcdgrp.rec.amt
reason
:
""
,
// collect reason .fcdgrp.rec.reason
extact
:
""
,
// Extend Account .fcdgrp.rec.extact
engact
:
""
,
// Engagement account .fcdgrp.rec.engact
},
},
aplp
:{
ptsget
:{
sdamod
:{
dadsnd
:
""
,
// Drag Drop Sender .aplp.ptsget.sdamod.dadsnd
seainf
:
""
,
// .aplp.ptsget.sdamod.seainf
},
},
},
gleflg
:
""
,
// 是否过�'� .gleflg
cshstm
:
""
,
// stream of csh .cshstm
errflg
:
""
,
// 已使用保证金 .errflg
pageId
:
""
// ctx的key
}
}
...
...
src/model/Fctopn/Check.js
View file @
4275b934
...
...
@@ -4,6 +4,11 @@ import Utils from "~/utils"
* Fctopn Check规则
*/
let
checkObj
=
{
"fcdgrp.apl.pts.extkey"
:
null
,
"fcdgrp.apl.pts.nam"
:
null
,
"cashamt"
:
null
,
"cashcur"
:
null
,
"cashacc"
:
null
,
}
for
(
const
key
in
checkObj
)
{
...
...
src/model/Fctopn/Default.js
View file @
4275b934
...
...
@@ -6,5 +6,13 @@ import Api from "~/service/Api";
import
Utils
from
"~/utils/index"
export
default
{
"fcdgrp.apl.pts.extkey"
:
Utils
.
defaultFunction
,
"cashamt"
:
Utils
.
defaultFunction
,
"trmtyp"
:
Utils
.
defaultFunction
,
"cashcur"
:
Utils
.
defaultFunction
,
"cashacc"
:
Utils
.
defaultFunction
,
"cshstm"
:
Utils
.
defaultFunction
,
"gleflg"
:
Utils
.
defaultFunction
,
"fcdgrp.apl.pts.nam"
:
Utils
.
defaultFunction
,
}
//你可以添加自动default处理
src/model/Fctopn/Event.js
View file @
4275b934
...
...
@@ -2,5 +2,29 @@ import Api from "~/service/Api"
import
Utils
from
"~/utils"
export
default
{
async
onAplpDet
(){
let
rtnmsg
=
await
this
.
executeRule
(
"aplp.det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onGet
(){
let
rtnmsg
=
await
this
.
executeRule
(
"get"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Fctopn/Pattern.js
View file @
4275b934
export
default
{
"aplp.ptsget.sdamod.dadsnd"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"fcdgrp.apl.pts.extkey"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"aplp.ptsget.sdamod.seainf"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"fcdgrp.apl.pts.nam"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"fcdgrp.apl.pta.nam1"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"reason"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"cashamt"
:[
{
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"cshstm"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
,
message
:
"长度不能超过1"
}
],
}
\ No newline at end of file
src/model/Fctopn/index.js
View file @
4275b934
...
...
@@ -4,6 +4,29 @@ import Pts from "../Common/Pts"
export
default
class
Fctopn
{
constructor
()
{
this
.
data
=
{
fcdgrp
:{
apl
:{
pts
:
new
Pts
().
data
,
pta
:{
nam1
:
""
,
// Externally Visible Name of Address .fcdgrp.apl.pta.nam1
},
},
},
aplp
:{
ptsget
:{
sdamod
:{
dadsnd
:
""
,
// Drag Drop Sender .aplp.ptsget.sdamod.dadsnd
seainf
:
""
,
// .aplp.ptsget.sdamod.seainf
},
},
},
cashcur
:
""
,
// currency .cashcur
cashamt
:
""
,
// 金额 .cashamt
gleflg
:
""
,
// 是否过帐 .gleflg
cashacc
:
""
,
// account .cashacc
trmtyp
:
""
,
// 科目 .trmtyp
reason
:
""
,
// collect reason .reason
cshstm
:
""
,
// STREAM OF CSH .cshstm
pageId
:
""
// ctx的key
}
}
...
...
src/views/Business/BusRouter.js
View file @
4275b934
...
...
@@ -69,6 +69,8 @@ import Bctcan from "./Bctcan"
import
Inffee
from
"./Inffee"
import
Infbcd
from
"./Infbcd"
import
Bdtcan
from
"./Bdtcan"
import
Fctcan
from
"./Fctcan"
import
Fctopn
from
"./Fctopn"
import
Bttcan
from
"./Bttcan"
import
Bttacc
from
"./Bttacc"
...
...
@@ -248,6 +250,8 @@ const BusRouter = [
{
path
:
'detopn'
,
component
:
Detopn
,
name
:
'Detopn'
,
meta
:
{
title
:
'卖方信用证开立'
}
},
{
path
:
'detame'
,
component
:
Detame
,
name
:
'Detame'
,
meta
:
{
title
:
'卖方信用证修改'
}
},
{
path
:
'detsel'
,
component
:
Detsel
,
name
:
'Detsel'
,
meta
:
{
title
:
'卖方信用证查询'
}
},
{
path
:
'fctcan'
,
component
:
Fctcan
,
name
:
'Fctcan'
,
meta
:
{
title
:
'保证金注销'
}
},
{
path
:
'fctopn'
,
component
:
Fctopn
,
name
:
'Fctopn'
,
meta
:
{
title
:
'保证金收取'
}
},
{
path
:
'bftsnd'
,
component
:
Bftsnd
,
name
:
'Bftsnd'
,
meta
:
{
title
:
'卖方信用证寄单'
}
},
...
...
src/views/Business/Fctcan/Opnp1.vue
0 → 100644
View file @
4275b934
<
template
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-fullbox>
<el-form-item
label=
"申请人"
prop=
"fcdgrp.apl.pts.extkey"
>
<c-input
v-model=
"model.fcdgrp.apl.pts.extkey"
maxlength=
"16"
placeholder=
"请输入申请人Extkey"
@
keyup
.
enter
.
native=
"showGridPromptDialog('fcdgrp.apl.pts.extkey')"
></c-input>
</el-form-item>
<template
slot=
"footer"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onAplpDet"
>
Details
</c-button>
</
template
>
</c-fullbox>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
>
<c-checkbox
v-model=
"model.errflg"
>
已使用保证金
</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"fcdgrp.apl.pts.nam"
>
<c-input
v-model=
"model.fcdgrp.apl.pts.nam"
maxlength=
"40"
placeholder=
"请输入Name of Party"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"fcdgrp.apl.pta.nam1"
>
<c-input
v-model=
"model.fcdgrp.apl.pta.nam1"
maxlength=
"40"
placeholder=
"请输入Externally Visible Name of Address"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"Our Reference"
prop=
"fcdgrp.rec.ownref"
>
<c-input
v-model=
"model.fcdgrp.rec.ownref"
maxlength=
"16"
placeholder=
"请输入Our Reference"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"说明"
prop=
"fcdgrp.rec.reason"
>
<c-input
v-model=
"model.fcdgrp.rec.reason"
maxlength=
"40"
placeholder=
"请输入collect reason"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"保证金金额"
prop=
"fcdgrp.rec.cur"
>
<c-select
v-model=
"model.fcdgrp.rec.cur"
style=
"width: 100%"
placeholder=
"请选择currency"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
label-width=
"20px"
prop=
"fcdgrp.rec.amt"
>
<c-input
v-model=
"model.fcdgrp.rec.amt"
placeholder=
"请输入保证金金额"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"保证金账户"
prop=
"fcdgrp.rec.extact"
>
<c-input
v-model=
"model.fcdgrp.rec.extact"
maxlength=
"8"
placeholder=
"请输入Extend Account"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-fullbox>
<el-form-item
label=
""
label-width=
"20px"
prop=
"fcdgrp.rec.engact"
>
<c-input
v-model=
"model.fcdgrp.rec.engact"
maxlength=
"16"
placeholder=
"请输入Engagement account"
disabled
></c-input>
</el-form-item>
<
template
slot=
"footer"
>
<el-form-item
label=
""
label-width=
"0"
prop=
"gleflg"
>
<c-checkbox
v-model=
"model.gleflg"
style=
"margin-left: 10px"
>
是否过帐
</c-checkbox
>
</el-form-item>
</
template
>
</c-fullbox>
</c-col>
</c-col>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="aplp.ptsget.sdamod.seainf">
<c-input
v-model="model.aplp.ptsget.sdamod.seainf"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col> -->
<c-col
:span=
"24"
>
<c-istream-table
:list=
"model.cshstm.rows || []"
:columns=
"columns"
v-on:chooseRowEvent=
"chooseRowEvent"
></c-istream-table>
</c-col>
</div>
</template>
<
script
>
import
Api
from
"~/service/Api"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Fctcan/Event"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{
columns
:
[
'0 1 "INR" 100'
,
'1 2 "Own Reference" 150'
,
'2 3 "收取日期" 120 4 7'
,
'3 4 "Cur" 56'
,
'4 5 "Relevant Amount" 150 2 8:1 2 5'
,
'5 6 "" auto'
,
'6 7 "保证金帐号" 120'
,
'7 8 "是否过帐" 120'
,
'8 9 "是否到帐" 120'
,
'9 10 "是否被用" 120'
,
'10 11 "说明 " 200'
,
'11 12 "被用在交易" 120'
,
"P COLORED TRUE"
,
"P VERTLINES TRUE"
,
"P HORZLINES TRUE"
,
"P MULTISELECT FLASE"
,
],
};
},
methods
:
{
...
Event
,
async
chooseRowEvent
(
row
)
{
const
selIds
=
[
row
.
IDX
+
1
];
//rowno选中行
const
selDst
=
"cshstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
let
rtnmsg
=
await
this
.
executeRule
(
"cshstm"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
}
}
},
created
:
function
()
{},
};
</
script
>
<
style
>
</
style
>
src/views/Business/Fctcan/index.vue
View file @
4275b934
<
template
>
<c-page
title=
"保证金注销"
>
<div
class=
"eContainer"
>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"200px"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
>
<div
class=
"bus-button"
>
<c-button
type=
"primary"
v-on:click=
"handleSave"
>
{{
$t
(
"buttons.save"
)
}}
</c-button>
<c-button
type=
"primary"
v-on:click=
"handleCheck"
>
{{
$t
(
"buttons.check"
)
}}
</c-button>
</div>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"150px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"myTabClick"
>
<!--PD000001 -->
<el-tab-pane
label=
"PD000001"
name=
"opnp1"
>
<c-content>
<m-opnp1
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
</c-tabs>
<c-grid-ety-prompt-dialog
ref=
"etyDialog"
:promptData=
"promptData"
v-on:select-ety=
"selectEty"
>
</c-grid-ety-prompt-dialog>
</el-form>
</div>
</c-page>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Fctcan
from
"~/model/Fctcan"
import
commonProcess
from
"~/mixin/commonProcess"
import
commonFuncs
from
"~/mixin/commonFuncs"
import
Check
from
"~/model/Fctcan/Check"
import
Default
from
"~/model/Fctcan/Default"
import
Pattern
from
"~/model/Fctcan/Pattern"
import
Opnp1
from
"./Opnp1"
export
default
{
name
:
"Fctcan"
,
components
:{
"m-opnp1"
:
Opnp1
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
,
commonFuncs
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
""
,
tabVal
:
"
opnp1
"
,
trnName
:
"fctcan"
,
model
:
new
Fctcan
().
data
,
checkRules
:
Check
,
...
...
@@ -39,7 +62,38 @@ export default {
}
},
methods
:{
tabClick
(){
myTabClick
(
tab
){
this
.
tabClick
(
tab
)
/**
* do it yourself
**/
},
async
handleSave
()
{
let
result
=
await
this
.
save
();
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"保存成功"
,
type
:
"success"
,
});
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
){
const
tab
=
this
.
showBackendErrors
(
result
.
fieldErrors
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
this
.
tabClick
(
tab
);
}
this
.
$notify
({
title
:
"错误"
,
message
:
"检核失败!"
,
type
:
"error"
,
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"保存失败"
,
type
:
"error"
,
});
}
}
},
created
:
async
function
(){
...
...
@@ -47,6 +101,7 @@ export default {
let
rtnmsg
=
await
this
.
init
({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
//TODO 处理数据逻辑
}
...
...
src/views/Business/Fctopn/Opnp1.vue
0 → 100644
View file @
4275b934
<
template
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"24"
>
<c-fullbox>
<el-form-item
label=
"申请人"
prop=
"fcdgrp.apl.pts.extkey"
>
<c-input
v-model=
"model.fcdgrp.apl.pts.extkey"
maxlength=
"16"
placeholder=
"请输入申请人Extkey"
@
keyup
.
enter
.
native=
"
showGridPromptDialog('fcdgrp.apl.pts.extkey')
"
></c-input>
</el-form-item>
<template
slot=
"footer"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onAplpDet"
>
Details
</c-button>
</
template
>
</c-fullbox>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
""
prop=
"fcdgrp.apl.pts.nam"
>
<c-input
v-model=
"model.fcdgrp.apl.pts.nam"
maxlength=
"40"
placeholder=
"请输入Name of Party"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
""
prop=
"fcdgrp.apl.pta.nam1"
>
<c-input
v-model=
"model.fcdgrp.apl.pta.nam1"
maxlength=
"40"
placeholder=
"请输入Externally Visible Name of Address"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="aplp.ptsget.sdamod.seainf">
<c-input v-model="model.aplp.ptsget.sdamod.seainf" placeholder="请输入"></c-input>
</el-form-item>
</c-col> -->
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"14"
>
<el-form-item
label=
"保证金账号"
prop=
"cashacc"
>
<!-- <c-select
v-model="model.cashacc"
style="width: 100%"
placeholder="请选择account"
>
</c-select> -->
<c-input
v-model=
"model.cashacc"
placeholder=
"请选择account"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"10"
>
<el-form-item
label=
"科目"
label-width=
"60px"
prop=
"trmtyp"
>
<c-select
v-model=
"model.trmtyp"
style=
"width: 100%"
placeholder=
"请选择科目"
>
<el-option
v-for=
"k in codes.trmtyp"
:label=
"k"
:value=
"k.split('\t')[0]"
:key=
"k"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"说明"
prop=
"reason"
>
<c-input
v-model=
"model.reason"
maxlength=
"40"
placeholder=
"请输入collect reason"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-fullbox>
<c-col
:span=
"12"
>
<el-form-item
label=
"金额"
prop=
"cashcur"
>
<c-select
v-model=
"model.cashcur"
style=
"width: 100%"
placeholder=
"请选择currency"
>
<el-option
v-for=
"k in codes.cashcur"
:label=
"k"
:value=
"k"
:key=
"k"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
label-width=
"20px"
prop=
"cashamt"
>
<c-input
v-model=
"model.cashamt"
placeholder=
"请输入金额"
></c-input>
</el-form-item>
</c-col>
<
template
slot=
"footer"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onGet"
disabled
>
Get
</c-button>
</
template
>
</c-fullbox>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"gleflg"
>
<c-checkbox
v-model=
"model.gleflg"
>
是否过帐
</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-istream-table
:list=
"model.cshstm.rows || []"
:columns=
"columns"
></c-istream-table>
</c-col>
</div>
</template>
<
script
>
import
Api
from
"~/service/Api"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Fctopn/Event"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{
columns
:
[
"0 1
\"
INR
\"
100"
,
"1 2
\"
Own Reference
\"
150"
,
"2 3
\"
收取日期
\"
auto 4 7"
,
"3 4
\"
Cur
\"
100"
,
"4 5
\"
Relevant Amount
\"
150 2 8:1 2 5"
,
"5 6
\"
机构号
\"
120"
,
"6 7
\"
保证金帐号
\"
120"
,
"7 8
\"
是否过帐
\"
120 1 0 1 FCD:GLEFLG"
,
"8 9
\"
是否到帐
\"
120 1 0 1 FCD:RELFLG"
,
"9 10
\"
是否被用
\"
120 1 0 1 FCD:USEFLG"
,
"10 11
\"
说明
\"
200"
,
"P COLORED TRUE"
,
"P VERTLINES TRUE"
,
"P HORZLINES TRUE"
,
"P MULTISELECT FALSE"
],
};
},
methods
:
{
...
Event
},
created
:
function
()
{},
};
</
script
>
<
style
>
</
style
>
src/views/Business/Fctopn/index.vue
View file @
4275b934
<
template
>
<c-page
title=
"保证金收取"
>
<div
class=
"eContainer"
>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"200px"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
>
<div
class=
"bus-button"
>
<c-button
type=
"primary"
v-on:click=
"handleSave"
>
{{
$t
(
"buttons.save"
)
}}
</c-button>
<c-button
type=
"primary"
v-on:click=
"handleCheck"
>
{{
$t
(
"buttons.check"
)
}}
</c-button>
</div>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"150px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"myTabClick"
>
<!--PD000002 -->
<el-tab-pane
label=
"PD000002"
name=
"opnp1"
>
<c-content>
<m-opnp1
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
</c-tabs>
<c-grid-ety-prompt-dialog
ref=
"etyDialog"
:promptData=
"promptData"
v-on:select-ety=
"selectEty"
>
</c-grid-ety-prompt-dialog>
</el-form>
</div>
</c-page>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Fctopn
from
"~/model/Fctopn"
import
commonProcess
from
"~/mixin/commonProcess"
import
commonFuncs
from
"~/mixin/commonFuncs"
import
Check
from
"~/model/Fctopn/Check"
import
Default
from
"~/model/Fctopn/Default"
import
Pattern
from
"~/model/Fctopn/Pattern"
import
Opnp1
from
"./Opnp1"
export
default
{
name
:
"Fctopn"
,
components
:{
"m-opnp1"
:
Opnp1
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
,
commonFuncs
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
""
,
tabVal
:
"
opnp1
"
,
trnName
:
"fctopn"
,
model
:
new
Fctopn
().
data
,
checkRules
:
Check
,
...
...
@@ -35,11 +58,44 @@ export default {
pattern
:
Pattern
,
rules
:
null
,
codes
:
{
cashcur
:
[],
trmtyp
:
[]
},
}
},
methods
:{
tabClick
(){
myTabClick
(
tab
){
this
.
tabClick
(
tab
)
/**
* do it yourself
**/
},
async
handleSave
()
{
let
result
=
await
this
.
save
();
if
(
result
.
respCode
==
SUCCESS
&&
Object
.
keys
(
result
.
fieldErrors
).
length
==
0
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"保存成功"
,
type
:
"success"
,
});
}
else
if
(
result
.
fieldErrors
&&
Object
.
keys
(
result
.
fieldErrors
).
length
>
0
){
const
tab
=
this
.
showBackendErrors
(
result
.
fieldErrors
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
this
.
tabClick
(
tab
);
}
this
.
$notify
({
title
:
"错误"
,
message
:
"检核失败!"
,
type
:
"error"
,
});
}
else
{
this
.
$notify
({
title
:
"失败"
,
message
:
"保存失败"
,
type
:
"error"
,
});
}
}
},
created
:
async
function
(){
...
...
@@ -47,8 +103,10 @@ export default {
let
rtnmsg
=
await
this
.
init
({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
//TODO 处理数据逻辑
this
.
codes
.
cashcur
=
rtnmsg
.
codeSet
.
cashcur
this
.
codes
.
trmtyp
=
rtnmsg
.
codeSet
.
trmtyp
}
else
{
...
...
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