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
5e5e87b1
Commit
5e5e87b1
authored
Sep 09, 2022
by
nanrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cltdav优化
parent
7644c663
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
247 additions
and
205 deletions
+247
-205
Event.js
src/model/Cltdav/Event.js
+43
-1
index.js
src/model/Cltdav/index.js
+95
-107
Account.vue
src/views/Business/Cltdav/Account.vue
+37
-32
Sel.vue
src/views/Business/Cltdav/Sel.vue
+0
-0
index.vue
src/views/Business/Cltdav/index.vue
+72
-65
No files found.
src/model/Cltdav/Event.js
View file @
5e5e87b1
...
@@ -2,11 +2,53 @@ import Api from "~/service/Api"
...
@@ -2,11 +2,53 @@ import Api from "~/service/Api"
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
export
default
{
export
default
{
async
handleSearch
()
{
// this.stmData.data = [];
let
colflg
=
this
.
model
.
cldgrp
.
rec
.
colflg
;
if
(
!
colflg
||
colflg
==
''
)
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'Payemnt Disposition必输!'
});
return
;
}
let
cur
=
this
.
model
.
cur
;
if
(
!
cur
||
cur
==
''
)
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'cur必输!'
});
return
;
}
let
rtnmsg
=
await
this
.
executeRule
(
"butsea"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
model
.
bptbckg
.
docgrd
=
rtnmsg
.
data
.
ccdbatg
;
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
console
.
log
(
this
.
model
.
bptbckg
.
docgrd
);
},
async
handleReset
()
{
// this.model.infcon.seaownref = ""
// this.model.infcon.opndatfrom = new Date();
// this.model.infcon.opndatto = new Date();
// this.model.infcon.searef = "";
// this.model.infcon.pty.extkey = "";
// this.model.infcon.usr.extkey = "";
// this.model.infcon.searol = "";
// this.model.infcon.pty.nam = "";
// this.model.infcon.seapty = "";
// this.model.infcon.curtxt1 = "";
// this.model.infcon.nam = "";
// this.model.infcon.seaamtfr = "";
// this.model.infcon.seaamtto = "";
// this.model.infcon.seasta = "";
// this.model.infcon.doctypcod = "";
},
async
onCltpButgetref
()
{
async
onCltpButgetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cltp.butgetref"
)
let
rtnmsg
=
await
this
.
executeRule
(
"cltp.butgetref"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
model
.
cldgrp
.
rec
.
ownref
=
rtnmsg
.
data
.
cldgrp_rec_ownref
;
}
}
else
{
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
...
...
src/model/Cltdav/index.js
View file @
5e5e87b1
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Pts
from
"../Common/Pts"
import
Pts
from
"../Common/Pts"
import
Pub
from
"../Public"
import
Pub
from
"../Public"
export
default
class
Cltdav
{
export
default
class
Cltdav
{
constructor
()
{
constructor
()
{
this
.
data
=
{
this
.
data
=
{
cltdavl2blk
:
""
,
cltdavl1blk
:
""
,
bptbckg
:
[],
liaall
:
new
Pub
().
data
.
Liaall
,
liaall
:
new
Pub
().
data
.
Liaall
,
cldgrp
:{
cldgrp
:
{
rec
:{
rec
:
{
ownref
:
""
,
// Batch No. .cldgrp.rec.ownref
ownref
:
""
,
// Batch No. .cldgrp.rec.ownref
valdat
:
""
,
// Value Date .cldgrp.rec.valdat
valdat
:
""
,
// Value Date .cldgrp.rec.valdat
credat
:
""
,
// Date of creation .cldgrp.rec.credat
credat
:
""
,
// Date of creation .cldgrp.rec.credat
colflg
:
""
,
// Payemnt Disposition .cldgrp.rec.colflg
colflg
:
""
,
// Payemnt Disposition .cldgrp.rec.colflg
regref
:
""
,
// Register Ref. .cldgrp.rec.regref
regref
:
""
,
// Register Ref. .cldgrp.rec.regref
count
:
""
,
// ITEM COUNT .cldgrp.rec.count
count
:
""
,
// ITEM COUNT .cldgrp.rec.count
colref
:
""
,
// COLL BANK REF .cldgrp.rec.colref
colref
:
""
,
// COLL BANK REF .cldgrp.rec.colref
nam
:
""
,
// Name of CC contract .cldgrp.rec.nam
nam
:
""
,
// Name of CC contract .cldgrp.rec.nam
creact
:
""
,
// Credit to Account .cldgrp.rec.creact
creact
:
""
,
// Credit to Account .cldgrp.rec.creact
acno
:
""
,
// A/C NO. .cldgrp.rec.acno
acno
:
""
,
// A/C NO. .cldgrp.rec.acno
},
},
col
:{
col
:
{
pts
:
new
Pts
().
data
,
pts
:
new
Pts
().
data
,
},
},
blk
:{
blk
:
{
setins
:
""
,
// Settlement Instructions .cldgrp.blk.setins
setins
:
""
,
// Settlement Instructions .cldgrp.blk.setins
},
},
},
rowcntr
:
""
,
// Total Row Count .rowcntr
cur
:
""
,
// currency .cur
amount
:
""
,
// AMOUNT .amount
items
:
""
,
// Item Count .items
colbnk
:
""
,
// Collection Bank .colbnk
cltp
:
{
colp
:
{
ptsget
:
{
sdamod
:
{
dadsnd
:
""
,
// Drag Drop Sender .cltp.colp.ptsget.sdamod.dadsnd
seainf
:
""
,
// .cltp.colp.ptsget.sdamod.seainf
},
},
rowcntr
:
""
,
// Total Row Count .rowcntr
},
cur
:
""
,
// currency .cur
},
amount
:
""
,
// AMOUNT .amount
},
items
:
""
,
// Item Count .items
colmet
:
""
,
// Collection Method .colmet
colbnk
:
""
,
// Collection Bank .colbnk
trnmod
:
new
Pub
().
data
.
Trnmod
,
cltp
:{
// mtabut: {
colp
:{
// coninf: {
ptsget
:{
// oitinf: {
sdamod
:{
// labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
dadsnd
:
""
,
// Drag Drop Sender .cltp.colp.ptsget.sdamod.dadsnd
// oit: {
seainf
:
""
,
// .cltp.colp.ptsget.sdamod.seainf
// inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt
},
// inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
// },
},
// },
},
// oitset: {
colmet
:
""
,
// Collection Method .colmet
// labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
// trnmod:{
// oit: {
// trndoc:{
// inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
// advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
// inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
// amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
// },
// advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
// },
// advnam:"", // 国内证落款 .trnmod.trndoc.advnam
// conexedat: "", // 执行日期 .mtabut.coninf.conexedat
// amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
// usr: {
// doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
// extkey: "", // User ID .mtabut.coninf.usr.extkey
// doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
// },
// shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
// },
// shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
// },
// condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
mtabut
:
new
Pub
().
data
.
Mtabut
,
// rcvatt:{
// setmod: {
// seainf:"", // .trnmod.trndoc.rcvatt.seainf
// docamttyplab: "", // settled amount description as label .setmod.docamttyplab
// },
// retmsg: "", // Label showing Retry overflow condition .setmod.retmsg
// filrecv:"", // File Receiver .trnmod.trndoc.filrecv
// ref: "", // our reference .setmod.ref
// },
// doccur: "", // document currency .setmod.doccur
// },
// docamt: "", // document amount .setmod.docamt
trnmod
:
new
Pub
().
data
.
Trnmod
,
// dspflg: "", // Type of settlement .setmod.dspflg
mtabut
:{
// xreflg: "", // Recalculate Rates .setmod.xreflg
coninf
:{
// setglg: {
oitinf
:{
// labdspflg: "", // Label for Type of Settlement .setmod.setglg.labdspflg
labinftxt
:
""
,
// Label for INFTXT .mtabut.coninf.oitinf.labinftxt
// },
oit
:{
// zmqacclab: "", // 主�'�号LABEL .setmod.zmqacclab
inftxt
:
""
,
// Infotext .mtabut.coninf.oitinf.oit.inftxt
// zmqacc: "", // 自�'�区主�'�号 .setmod.zmqacc
inflev
:
""
,
// Infotext Level .mtabut.coninf.oitinf.oit.inflev
// setfog: {
},
// setfol: []
},
// },
oitset
:{
// setfeg: {
labinftxt
:
""
,
// Label for INFTXT .mtabut.coninf.oitset.labinftxt
// setfel: []
oit
:{
// },
inftxt
:
""
,
// Infotext .mtabut.coninf.oitset.oit.inftxt
// glemod: {
inflev
:
""
,
// Infotext Level .mtabut.coninf.oitset.oit.inflev
// gleshwstm: {}
},
// },
},
conexedat
:
""
,
// 执行日期 .mtabut.coninf.conexedat
// },
usr
:{
setmod
:
new
Pub
().
data
.
Setmod
,
extkey
:
""
,
// User ID .mtabut.coninf.usr.extkey
modflg
:
""
,
// MODIFY .modflg
},
pageId
:
""
// ctx的key
},
}
},
}
setmod
:{
docamttyplab
:
""
,
// settled amount description as label .setmod.docamttyplab
retmsg
:
""
,
// Label showing Retry overflow condition .setmod.retmsg
ref
:
""
,
// our reference .setmod.ref
doccur
:
""
,
// document currency .setmod.doccur
docamt
:
""
,
// document amount .setmod.docamt
dspflg
:
""
,
// Type of settlement .setmod.dspflg
xreflg
:
""
,
// Recalculate Rates .setmod.xreflg
setglg
:{
labdspflg
:
""
,
// Label for Type of Settlement .setmod.setglg.labdspflg
},
zmqacclab
:
""
,
// 主�'�号LABEL .setmod.zmqacclab
zmqacc
:
""
,
// 自�'�区主�'�号 .setmod.zmqacc
setfog
:{
setfol
:[]
},
setfeg
:{
setfel
:[]
},
glemod
:{
gleshwstm
:
{}
},
},
modflg
:
""
,
// MODIFY .modflg
pageId
:
""
// ctx的key
}
}
}
}
\ No newline at end of file
src/views/Business/Cltdav/Account.vue
View file @
5e5e87b1
<
template
>
<
template
>
<div
class=
"eibs-tab"
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"12"
>
<c-col
:span=
"11"
>
<el-form-item
label=
"Credit to Account"
prop=
"cldgrp.rec.creact"
>
<el-form-item
label=
"Credit to Account"
prop=
"cldgrp.rec.creact"
>
<c-select
v-model=
"model.cldgrp.rec.creact"
style=
"width:100%"
placeholder=
"请选择Credit to Account"
>
<c-select
v-model=
"model.cldgrp.rec.creact"
style=
"width: 100%"
placeholder=
"请选择Credit to Account"
</c-select>
:code=
"codes.creact"
>
</el-form-item>
</c-select>
</c-col>
</el-form-item>
<c-col
:span=
"12"
>
<el-form-item
label=
"A/C NO."
prop=
"cldgrp.rec.acno"
>
<c-input
v-model=
"model.cldgrp.rec.acno"
maxlength=
"20"
placeholder=
"请输入A/C NO."
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Settlement Instructions"
prop=
"cldgrp.blk.setins"
>
<c-input
type=
"textarea"
v-model=
"model.cldgrp.blk.setins"
maxlength=
"65"
show-word-limit
placeholder=
"请输入Settlement Instructions"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<c-checkbox
v-model=
"model.modflg"
>
修改
</c-checkbox>
<c-col
:span=
"11"
:offset=
"1"
>
<c-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSetinsButtxmsel"
>
<el-form-item
label=
"A/C NO."
prop=
"cldgrp.rec.acno"
>
...
<c-input
v-model=
"model.cldgrp.rec.acno"
maxlength=
"20"
placeholder=
"请输入A/C NO."
>
</c-button>
</c-input>
</c-col>
</el-form-item>
<!--
</c-col>
<c-col
:span=
"11"
>
<el-form-item
label=
"Settlement Instructions"
prop=
"cldgrp.blk.setins"
>
<c-input
type=
"textarea"
v-model=
"model.cldgrp.blk.setins"
maxlength=
"65"
show-word-limit
placeholder=
"请输入Settlement Instructions"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"11"
:offset=
"1"
>
<el-form-item
label=
""
>
<c-checkbox
v-model=
"model.modflg"
disabled
>
修改
</c-checkbox>
<c-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSetinsButtxmsel"
>
...
</c-button>
</el-form-item>
</c-col>
<!--
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSetinsButtxmsel"
>
<c-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSetinsButtxmsel"
>
...
...
</c-button>
</c-button>
</c-col>
</c-col>
-->
-->
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
...
@@ -43,15 +48,15 @@ import Event from "~/model/Cltdav/Event"
...
@@ -43,15 +48,15 @@ import Event from "~/model/Cltdav/Event"
export
default
{
export
default
{
inject
:
[
'root'
],
inject
:
[
'root'
],
props
:
[
"model"
,
"codes"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
(){
data
()
{
return
{
return
{
}
}
},
},
methods
:
{...
Event
},
methods
:
{
...
Event
},
created
:
function
()
{
created
:
function
()
{
}
}
}
}
...
...
src/views/Business/Cltdav/Sel.vue
View file @
5e5e87b1
This diff is collapsed.
Click to expand it.
src/views/Business/Cltdav/index.vue
View file @
5e5e87b1
...
@@ -19,27 +19,7 @@
...
@@ -19,27 +19,7 @@
<el-tab-pane
label=
"内容"
name=
"sel"
>
<el-tab-pane
label=
"内容"
name=
"sel"
>
<m-sel
:model=
"model"
:codes=
"codes"
/>
<m-sel
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
</el-tab-pane>
<!--PD000057 -->
<!--
<el-tab-pane
label=
"关联账号"
name=
"account"
>
<m-account
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
-->
<!--PD000000 -->
<el-tab-pane
label=
"费用及账务"
name=
"setpan"
>
<c-content>
<m-setpan
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane
label=
"表外信息"
name=
"engp"
>
<m-engp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane
label=
"分录信息"
name=
"glepan"
>
<m-glepan
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<el-tab-pane
label=
"保证金"
name=
"ccvpan"
>
<m-ccvpan
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--PD000529 -->
<!--PD000529 -->
<el-tab-pane
label=
"面函及报文"
name=
"docpan"
>
<el-tab-pane
label=
"面函及报文"
name=
"docpan"
>
<m-docpan
:model=
"model"
:codes=
"codes"
/>
<m-docpan
:model=
"model"
:codes=
"codes"
/>
...
@@ -54,8 +34,34 @@
...
@@ -54,8 +34,34 @@
<el-tab-pane
label=
"附言"
name=
"coninfp"
>
<el-tab-pane
label=
"附言"
name=
"coninfp"
>
<m-coninfp
:model=
"model"
:codes=
"codes"
/>
<m-coninfp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"费用及账务"
name=
"setpan"
>
<c-content>
<m-setpan
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
<!--PD000057 -->
<el-tab-pane
label=
"关联账号"
name=
"account"
>
<m-account
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--PD000027 -->
<!--
<el-tab-pane
label=
"表外信息"
name=
"engp"
>
<m-engp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
-->
<!--PD000001 -->
<!--
<el-tab-pane
label=
"分录信息"
name=
"glepan"
>
<m-glepan
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
-->
<!--
<el-tab-pane
label=
"保证金"
name=
"ccvpan"
>
<m-ccvpan
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
-->
</c-tabs>
</c-tabs>
</el-form>
</el-form>
<c-grid-ety-prompt-dialog
ref=
"etyDialog"
:promptData=
"promptData"
v-on:select-ety=
"selectEty"
>
</c-grid-ety-prompt-dialog>
</div>
</div>
</c-page>
</c-page>
</
template
>
</
template
>
...
@@ -82,52 +88,53 @@ import Coninfp from "~/views/Public/Coninfp";
...
@@ -82,52 +88,53 @@ import Coninfp from "~/views/Public/Coninfp";
import
Doctre
from
"~/views/Public/Doctre"
;
import
Doctre
from
"~/views/Public/Doctre"
;
export
default
{
export
default
{
name
:
"Cltdav"
,
name
:
"Cltdav"
,
components
:
{
components
:
{
"m-sel"
:
Sel
,
"m-sel"
:
Sel
,
"m-account"
:
Account
,
"m-account"
:
Account
,
"m-setpan"
:
Setpan
,
"m-setpan"
:
Setpan
,
"m-engp"
:
Engp
,
"m-engp"
:
Engp
,
"m-glepan"
:
Glepan
,
"m-glepan"
:
Glepan
,
"m-docpan"
:
Docpan
,
"m-docpan"
:
Docpan
,
"m-doctre"
:
Doctre
,
"m-doctre"
:
Doctre
,
"m-coninfp"
:
Coninfp
,
"m-coninfp"
:
Coninfp
,
"m-ccvpan"
:
Ccvpan
,
"m-ccvpan"
:
Ccvpan
,
},
},
provide
()
{
provide
()
{
return
{
return
{
root
:
this
root
:
this
}
}
},
},
mixins
:
[
commonProcess
,
commonFuncs
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
,
commonFuncs
],
// 里面包含了Default、Check等的公共处理
data
()
{
data
()
{
return
{
return
{
tabVal
:
"sel"
,
tabVal
:
"sel"
,
trnName
:
"cltdav"
,
trnName
:
"cltdav"
,
model
:
new
Cltdav
().
data
,
model
:
new
Cltdav
().
data
,
checkRules
:
Check
,
checkRules
:
Check
,
defaultRules
:
Default
,
defaultRules
:
Default
,
pattern
:
Pattern
,
pattern
:
Pattern
,
rules
:
null
,
rules
:
null
,
codes
:
{
...
CodeTable
},
codes
:
{
...
CodeTable
},
}
}
},
},
methods
:
{
methods
:
{
tabClick
()
{
tabClick
()
{
}
}
},
},
created
:
async
function
()
{
created
:
async
function
()
{
console
.
log
(
"进入cltdav交易"
);
console
.
log
(
"进入cltdav交易"
);
let
rtnmsg
=
await
this
.
init
({})
let
rtnmsg
=
await
this
.
init
({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
//TODO 处理数据逻辑
}
}
else
{
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
...
...
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