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
360bbfdc
Commit
360bbfdc
authored
Dec 30, 2021
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原cltdav
parent
0da3d2bd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
405 additions
and
62 deletions
+405
-62
Check.js
src/model/Cltdav/Check.js
+5
-0
Default.js
src/model/Cltdav/Default.js
+13
-0
Event.js
src/model/Cltdav/Event.js
+97
-0
Pattern.js
src/model/Cltdav/Pattern.js
+93
-2
index.js
src/model/Cltdav/index.js
+72
-1
Sel.vue
src/views/Business/Cltdav/Sel.vue
+0
-0
index.vue
src/views/Business/Cltdav/index.vue
+125
-59
No files found.
src/model/Cltdav/Check.js
View file @
360bbfdc
...
...
@@ -5,11 +5,16 @@ import Utils from "~/utils"
*/
let
checkObj
=
{
"cldgrp.rec.valdat"
:
null
,
"cldgrp.blk.setins"
:
null
,
"cur"
:
null
,
"cltp.colp.ptsget.sdamod.dadsnd"
:
null
,
"setmod.dspflg"
:
null
,
"cldgrp.rec.credat"
:
null
,
"cldgrp.col.pts.nam"
:
null
,
"cldgrp.col.pts.extkey"
:
null
,
"cldgrp.rec.ownref"
:
null
,
"mtabut.coninf.conexedat"
:
null
,
"setmod.docamt"
:
null
,
"amount"
:
null
,
"cldgrp.rec.colflg"
:
null
,
}
...
...
src/model/Cltdav/Default.js
View file @
360bbfdc
...
...
@@ -6,13 +6,26 @@ import Api from "~/service/Api";
import
Utils
from
"~/utils/index"
export
default
{
"modflg"
:
Utils
.
defaultFunction
,
"cldgrp.col.pts.extkey"
:
Utils
.
defaultFunction
,
"cur"
:
Utils
.
defaultFunction
,
"cldgrp.rec.colflg"
:
Utils
.
defaultFunction
,
"cldgrp.rec.ownref"
:
Utils
.
defaultFunction
,
"rowcntr"
:
Utils
.
defaultFunction
,
"setmod.doccur"
:
Utils
.
defaultFunction
,
"setmod.dspflg"
:
Utils
.
defaultFunction
,
"setmod.docamt"
:
Utils
.
defaultFunction
,
"trnmod.trndoc.condocstm"
:
Utils
.
defaultFunction
,
"trnmod.trndoc.shwinc"
:
Utils
.
defaultFunction
,
"trnmod.trndoc.shwout"
:
Utils
.
defaultFunction
,
"cldgrp.col.pts.nam"
:
Utils
.
defaultFunction
,
"mtabut.coninf.usr.extkey"
:
Utils
.
defaultFunction
,
"cldgrp.rec.count"
:
Utils
.
defaultFunction
,
"amount"
:
Utils
.
defaultFunction
,
"mtabut.coninf.oitset.oit.inftxt"
:
Utils
.
defaultFunction
,
"mtabut.coninf.oitset.oit.inflev"
:
Utils
.
defaultFunction
,
"mtabut.coninf.oitinf.oit.inftxt"
:
Utils
.
defaultFunction
,
"mtabut.coninf.oitinf.oit.inflev"
:
Utils
.
defaultFunction
,
"mtabut.coninf.conexedat"
:
Utils
.
defaultFunction
,
}
//你可以添加自动default处理
src/model/Cltdav/Event.js
View file @
360bbfdc
...
...
@@ -38,5 +38,101 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButshw
(){
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc.butshw"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButadd
(){
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc.butadd"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButnew
(){
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc.butnew"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButattto
(){
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc.butattto"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButdel
(){
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc.butdel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButatt
(){
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc.butatt"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetmodDet
(){
let
rtnmsg
=
await
this
.
executeRule
(
"setmod.det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetinsButtxmsel
(){
let
rtnmsg
=
await
this
.
executeRule
(
"setins.buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Cltdav/Pattern.js
View file @
360bbfdc
...
...
@@ -13,10 +13,10 @@ export default {
{
max
:
1
,
message
:
"长度不能超过1"
}
],
"cldgrp.rec.valdat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期
"
}
{
type
:
"date"
,
required
:
true
,
message
:
"必输项
"
}
],
"cldgrp.rec.credat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期
"
}
{
type
:
"date"
,
required
:
true
,
message
:
"必输项
"
}
],
"rowcntr"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
@@ -64,4 +64,94 @@ export default {
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"trnmod.trndoc.advnam"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
50
,
message
:
"长度不能超过50"
}
],
"trnmod.trndoc.amdapl"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
50
,
message
:
"长度不能超过50"
}
],
"trnmod.trndoc.advdoc"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
,
message
:
"长度不能超过1"
}
],
"trnmod.trndoc.filrecv"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"trnmod.trndoc.doctrestm"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
,
message
:
"长度不能超过1"
}
],
"trnmod.trndoc.condocstm"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
,
message
:
"长度不能超过1"
}
],
"trnmod.trndoc.rcvatt.seainf"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"mtabut.coninf.oitinf.oit.inftxt"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
60
,
message
:
"长度不能超过60"
}
],
"mtabut.coninf.oitset.oit.inftxt"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
60
,
message
:
"长度不能超过60"
}
],
"mtabut.coninf.conexedat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"mtabut.coninf.usr.extkey"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
8
,
message
:
"长度不能超过8"
}
],
"setmod.ref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"setmod.docamt"
:[
{
type
:
"number"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"setmod.zmqacc"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
20
,
message
:
"长度不能超过20"
}
],
"cldgrp.rec.acno"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
20
,
message
:
"长度不能超过20"
}
],
"cldgrp.blk.setins"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
],
}
\ No newline at end of file
src/model/Cltdav/index.js
View file @
360bbfdc
import
Api
from
"~/service/Api"
import
Pts
from
"../Common/Pts"
import
Pub
from
"../Public"
export
default
class
Cltdav
{
constructor
()
{
this
.
data
=
{
liaall
:
new
Pub
().
data
.
Liaall
,
cldgrp
:{
rec
:{
ownref
:
""
,
// Batch No. .cldgrp.rec.ownref
...
...
@@ -14,10 +15,15 @@ export default class Cltdav{
count
:
""
,
// ITEM COUNT .cldgrp.rec.count
colref
:
""
,
// COLL BANK REF .cldgrp.rec.colref
nam
:
""
,
// Name of CC contract .cldgrp.rec.nam
creact
:
""
,
// Credit to Account .cldgrp.rec.creact
acno
:
""
,
// A/C NO. .cldgrp.rec.acno
},
col
:{
pts
:
new
Pts
().
data
,
},
blk
:{
setins
:
""
,
// Settlement Instructions .cldgrp.blk.setins
},
},
rowcntr
:
""
,
// Total Row Count .rowcntr
cur
:
""
,
// currency .cur
...
...
@@ -35,6 +41,71 @@ export default class Cltdav{
},
},
colmet
:
""
,
// Collection Method .colmet
trnmod
:{
trndoc
:{
advlabel
:
""
,
// ADVLABEL .trnmod.trndoc.advlabel
amdnam
:
""
,
// AMDNAM .trnmod.trndoc.amdnam
advdoc
:
""
,
// 国内证通知书 .trnmod.trndoc.advdoc
advnam
:
""
,
// 国内证落款 .trnmod.trndoc.advnam
amdapl
:
""
,
// 修改申请人名称 .trnmod.trndoc.amdapl
doclbl
:
""
,
// Lable for CONDOCSTM .trnmod.trndoc.doclbl
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
rcvatt
:{
seainf
:
""
,
// .trnmod.trndoc.rcvatt.seainf
},
filrecv
:
""
,
// File Receiver .trnmod.trndoc.filrecv
},
},
mtabut
:{
coninf
:{
oitinf
:{
labinftxt
:
""
,
// Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit
:{
inftxt
:
""
,
// Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev
:
""
,
// Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
},
oitset
:{
labinftxt
:
""
,
// Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit
:{
inftxt
:
""
,
// Infotext .mtabut.coninf.oitset.oit.inftxt
inflev
:
""
,
// Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
conexedat
:
""
,
// 执行日期 .mtabut.coninf.conexedat
usr
:{
extkey
:
""
,
// User ID .mtabut.coninf.usr.extkey
},
},
},
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
}
}
...
...
src/views/Business/Cltdav/Sel.vue
View file @
360bbfdc
This diff is collapsed.
Click to expand it.
src/views/Business/Cltdav/index.vue
View file @
360bbfdc
<
template
>
<div
class=
"eContainer"
>
<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=
"tabClick"
>
<!--PD000002 -->
<el-tab-pane
label=
"PD000002"
name=
"sel"
>
<m-sel
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
<c-page
title=
"打包托收开立"
>
<div
class=
"eContainer"
>
<!--
<c-bus-button
:
$
pntvm=
"this"
></c-bus-button>
-->
<c-function-btn
:handleSubmit=
"handleSubmit"
:handleCheck=
"handleCheck"
:handleStash=
"handleStash"
>
<el-button
size=
"small"
>
备忘录
</el-button>
<el-button
size=
"small"
>
影像信息
</el-button>
<el-button
size=
"small"
>
保存模板
</el-button>
<el-button
size=
"small"
>
使用模板
</el-button>
<el-button
size=
"small"
>
制裁信息
</el-button>
<el-button
size=
"small"
>
拆分报文
</el-button>
<el-button
size=
"small"
>
提示
</el-button>
</c-function-btn>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"150px"
label-position=
"left"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
>
<!--PD000002 -->
<el-tab-pane
label=
"内容"
name=
"sel"
>
<m-sel
:model=
"model"
:codes=
"codes"
/>
</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 -->
<el-tab-pane
label=
"面函及报文"
name=
"docpan"
>
<m-docpan
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane
label=
"交易附件"
name=
"doctre"
>
<m-doctre
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane
label=
"附言"
name=
"coninfp"
>
<m-coninfp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</c-page>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
Cltdav
from
"~/model/Cltdav"
import
CommonProcess
from
"~/mixin/CommonProcess"
import
Check
from
"~/model/Cltdav/Check"
import
Default
from
"~/model/Cltdav/Default"
import
Pattern
from
"~/model/Cltdav/Pattern"
import
Sel
from
"./Sel"
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Cltdav
from
"~/model/Cltdav"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CommonFuncs
from
"~/mixin/CommonFuncs"
;
import
Check
from
"~/model/Cltdav/Check"
;
import
Default
from
"~/model/Cltdav/Default"
;
import
Pattern
from
"~/model/Cltdav/Pattern"
;
import
Sel
from
"./Sel"
;
import
Account
from
"./Account"
;
export
default
{
name
:
"Cltdav"
,
components
:{
"m-sel"
:
Sel
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
""
,
trnName
:
"cltdav"
,
model
:
new
Cltdav
().
data
,
checkRules
:
Check
,
defaultRules
:
Default
,
pattern
:
Pattern
,
rules
:
null
,
codes
:
{
},
}
},
methods
:{
tabClick
(){
}
},
created
:
async
function
(){
console
.
log
(
"进入cltdav交易"
);
let
rtnmsg
=
await
this
.
init
({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
import
Setpan
from
"~/views/Public/Setpan"
;
import
Docpan
from
"~/views/Public/Docpan"
;
import
Engp
from
"~/views/Public/Engp"
;
import
Glepan
from
"~/views/Public/Glepan"
;
import
Ccvpan
from
"~/views/Public/Ccvpan"
;
import
Coninfp
from
"~/views/Public/Coninfp"
;
import
Doctre
from
"./Doctre"
;
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
export
default
{
name
:
"Cltdav"
,
components
:
{
"m-sel"
:
Sel
,
"m-account"
:
Account
,
"m-setpan"
:
Setpan
,
"m-engp"
:
Engp
,
"m-glepan"
:
Glepan
,
"m-docpan"
:
Docpan
,
"m-doctre"
:
Doctre
,
"m-coninfp"
:
Coninfp
,
"m-ccvpan"
:
Ccvpan
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
data
()
{
return
{
tabVal
:
""
,
trnName
:
"cltdav"
,
model
:
new
Cltdav
().
data
,
checkRules
:
Check
,
defaultRules
:
Default
,
pattern
:
Pattern
,
rules
:
null
,
codes
:
{...
CodeTable
},
}
},
methods
:
{
tabClick
()
{
}
},
created
:
async
function
()
{
console
.
log
(
"进入cltdav交易"
);
let
rtnmsg
=
await
this
.
init
({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
</
script
>
<
style
>
</
style
>
</
style
>
\ 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