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
afcd69b0
Commit
afcd69b0
authored
Aug 23, 2023
by
WH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
botacc
parent
cc88090c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
46 deletions
+68
-46
buildCommons.js
src/business/botacc/event/buildCommons.js
+19
-15
index.js
src/business/botacc/event/index.js
+11
-2
check.js
src/business/botacc/model/check.js
+27
-27
index.js
src/business/botacc/model/index.js
+4
-0
Setp.vue
src/business/botacc/views/Setp.vue
+2
-1
index.vue
src/business/botacc/views/index.vue
+5
-1
No files found.
src/business/botacc/event/buildCommons.js
View file @
afcd69b0
...
@@ -20,31 +20,35 @@ export default {
...
@@ -20,31 +20,35 @@ export default {
buildCommonData
(
model
,
trnName
)
{
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
[];
let
ptsptaList
=
[];
if
(
model
.
bodgrp
.
col
.
pts
.
extkey
)
{
if
(
model
.
bodgrp
.
col
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bodgrp
.
ap
l
));
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bodgrp
.
co
l
));
}
}
if
(
model
.
bodgrp
.
drr
.
pts
.
extkey
)
{
if
(
model
.
bodgrp
.
drr
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bodgrp
.
adv
));
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bodgrp
.
drr
));
}
}
if
(
model
.
bodgrp
.
dre
.
pts
.
extkey
)
{
if
(
model
.
bodgrp
.
dre
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bodgrp
.
ben
));
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bodgrp
.
dre
));
}
}
let
dataObj
=
{
let
dataObj
=
{
rec
:
{
rec
:
{
objtyp
:
'BOD'
,
objtyp
:
'BOD'
,
// objinr: model.bedgrp.rec.inr,
ownref
:
model
.
bodgrp
.
rec
.
ownref
,
ownref
:
model
.
bodgrp
.
rec
.
ownref
,
opndat
:
model
.
bodgrp
.
rec
.
opndat
,
opndat
:
model
.
bodgrp
.
rec
.
opndat
,
expdat
:
model
.
bodgrp
.
rec
.
expdat
,
expdat
:
model
.
bodgrp
.
rec
.
expdat
,
branchInr
:
model
.
bodgrp
.
rec
.
branchInr
,
branchInr
:
model
.
bodgrp
.
rec
.
branchinr
,
hndtyp
:
model
.
bodgrp
.
rec
.
hndtyp
,
docamt
:
model
.
setmod
.
docamt
,
gartyp
:
model
.
bodgrp
.
rec
.
gartyp
,
doccur
:
model
.
setmod
.
doccur
,
fingua
:
model
.
bodgrp
.
rec
.
fingua
,
doctypcod
:
model
.
bodgrp
.
rec
.
doctypcod
,
fromflg
:
model
.
bodgrp
.
rec
.
fromflg
,
// hndtyp: model.bodgrp.rec.hndtyp,
othersno
:
model
.
bodgrp
.
rec
.
othersno
,
// gartyp: model.bodgrp.rec.gartyp,
sndto
:
model
.
bodgrp
.
rec
.
sndto
,
// fingua: model.bodgrp.rec.fingua,
giduil
:
model
.
bodgrp
.
rec
.
giduil
,
// fromflg: model.bodgrp.rec.fromflg,
purpos
:
model
.
bodgrp
.
rec
.
purpos
,
// othersno: model.bodgrp.rec.othersno,
revflg
:
model
.
bodgrp
.
rec
.
revflg
,
// sndto: model.bodgrp.rec.sndto,
cnfsta
:
model
.
bodgrp
.
rec
.
cnfsta
,
// giduil: model.bodgrp.rec.giduil,
// purpos: model.bodgrp.rec.purpos,
// revflg: model.bodgrp.rec.revflg,
// cnfsta: model.bodgrp.rec.cnfsta,
},
},
cbsMap
:
{
cbsMap
:
{
MAX
:
model
.
bodgrp
.
cbs
.
max
,
MAX
:
model
.
bodgrp
.
cbs
.
max
,
...
@@ -65,7 +69,7 @@ export default {
...
@@ -65,7 +69,7 @@ export default {
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
liaall
:
model
.
liaall
,
liaall
:
model
.
liaall
,
liaccv
:
model
.
liaccv
,
liaccv
:
model
.
liaccv
,
doceot
:
model
.
trnmod
.
trndoc
.
doceot
,
//
doceot: model.trnmod.trndoc.doceot,
};
};
return
params
return
params
},
},
...
...
src/business/botacc/event/index.js
View file @
afcd69b0
...
@@ -21,13 +21,22 @@ export default {
...
@@ -21,13 +21,22 @@ export default {
...
limitbody
,
...
limitbody
,
...
doctre
,
...
doctre
,
async
init
()
{
async
init
()
{
const
params
=
{
const
params
=
{
spt
:
JSON
.
parse
(
localStorage
.
getItem
(
'row_'
+
this
.
trnName
))
spt
:
JSON
.
parse
(
localStorage
.
getItem
(
'row_'
+
this
.
trnName
)),
trnmod
:{
trn
:
JSON
.
parse
(
localStorage
.
getItem
(
'review_'
+
this
.
trnName
))
}
}
}
const
res
=
await
Api
.
post
(
'/service/
gitopn
/init'
,
{
const
res
=
await
Api
.
post
(
'/service/
botacc
/init'
,
{
...
params
,
...
params
,
transName
:
this
.
trnName
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
bodgrp
:{
rec
:{
inr
:
this
.
$route
.
query
.
inr
}
},
});
});
if
(
!
res
.
data
)
{
if
(
!
res
.
data
)
{
return
return
...
...
src/business/botacc/model/check.js
View file @
afcd69b0
...
@@ -24,20 +24,20 @@ let checkObj = {
...
@@ -24,20 +24,20 @@ let checkObj = {
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
{
max
:
40
,
message
:
"长度不能超过40"
}
],
],
"bodgrp.cbs.max.amt"
:[
//
"bodgrp.cbs.max.amt":[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
//
{type: "string", required: false, message: "必输项"},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
//
{max: 18,message:"整数位不能超过14位"},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
//
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
//
],
"bodgrp.drr.pts.ref"
:[
"bodgrp.drr.pts.ref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
{
max
:
16
,
message
:
"长度不能超过16"
}
],
],
"bodgrp.cbs.opn1.amt"
:[
//
"bodgrp.cbs.opn1.amt":[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
//
{type: "string", required: false, message: "必输项"},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
//
{max: 18,message:"整数位不能超过14位"},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
//
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
//
],
"bodgrp.drr.pts.nam"
:[
"bodgrp.drr.pts.nam"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
{
max
:
40
,
message
:
"长度不能超过40"
}
...
@@ -55,12 +55,12 @@ let checkObj = {
...
@@ -55,12 +55,12 @@ let checkObj = {
{
max
:
40
,
message
:
"长度不能超过40"
}
{
max
:
40
,
message
:
"长度不能超过40"
}
],
],
"bodgrp.rec.matdat"
:[
"bodgrp.rec.matdat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bodgrp.rec.matpercnt"
:[
{
type
:
"int"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
3
,
message
:
"长度不能超过3"
}
],
],
// "bodgrp.rec.matpercnt":[
// { required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
"bodgrp.dre.pts.ref"
:[
"bodgrp.dre.pts.ref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
{
max
:
16
,
message
:
"长度不能超过16"
}
...
@@ -70,10 +70,10 @@ let checkObj = {
...
@@ -70,10 +70,10 @@ let checkObj = {
{
max
:
40
,
message
:
"长度不能超过40"
}
{
max
:
40
,
message
:
"长度不能超过40"
}
],
],
"bodgrp.rec.rcvdat"
:[
"bodgrp.rec.rcvdat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
],
"bodgrp.rec.predat"
:[
"bodgrp.rec.predat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
],
"setmod.docamt"
:[
"setmod.docamt"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
@@ -89,23 +89,23 @@ let checkObj = {
...
@@ -89,23 +89,23 @@ let checkObj = {
{
max
:
1
,
message
:
"长度不能超过1"
}
{
max
:
1
,
message
:
"长度不能超过1"
}
],
],
"bodgrp.blk.colins"
:[
"bodgrp.blk.colins"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
{
max
:
65
,
message
:
"长度不能超过65"
}
],
],
"bodgrp.blk.chgtxt"
:[
"bodgrp.blk.chgtxt"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
35
,
message
:
"长度不能超过35"
}
{
max
:
35
,
message
:
"长度不能超过35"
}
],
],
"bodgrp.blk.dftins"
:[
"bodgrp.blk.dftins"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
{
max
:
65
,
message
:
"长度不能超过65"
}
],
],
"bodgrp.blk.proins"
:[
"bodgrp.blk.proins"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
{
max
:
65
,
message
:
"长度不能超过65"
}
],
],
"bodgrp.blk.othins"
:[
"bodgrp.blk.othins"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
{
max
:
65
,
message
:
"长度不能超过65"
}
],
],
"bodgrp.rec.lescom"
:[
"bodgrp.rec.lescom"
:[
...
@@ -113,7 +113,7 @@ let checkObj = {
...
@@ -113,7 +113,7 @@ let checkObj = {
{
max
:
18
,
message
:
"长度不能超过18"
}
{
max
:
18
,
message
:
"长度不能超过18"
}
],
],
"bodgrp.blk.delins"
:[
"bodgrp.blk.delins"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
{
max
:
65
,
message
:
"长度不能超过65"
}
],
],
"botp.drrp.ptsget.sdamod.dadsnd"
:[
"botp.drrp.ptsget.sdamod.dadsnd"
:[
...
@@ -150,7 +150,7 @@ let checkObj = {
...
@@ -150,7 +150,7 @@ let checkObj = {
],
],
"bodgrp.drr.pts.adrblk"
:[
"bodgrp.drr.pts.adrblk"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
35
,
message
:
"长度不能超过35"
}
//
{max: 35,message:"长度不能超过35"}
],
],
"bodgrp.drr.dbfadrblkcn"
:[
"bodgrp.drr.dbfadrblkcn"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
...
@@ -158,7 +158,7 @@ let checkObj = {
...
@@ -158,7 +158,7 @@ let checkObj = {
],
],
"bodgrp.col.pts.adrblk"
:[
"bodgrp.col.pts.adrblk"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
35
,
message
:
"长度不能超过35"
}
//
{max: 35,message:"长度不能超过35"}
],
],
"bodgrp.col.dbfadrblkcn"
:[
"bodgrp.col.dbfadrblkcn"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
...
@@ -190,7 +190,7 @@ let checkObj = {
...
@@ -190,7 +190,7 @@ let checkObj = {
],
],
"bodgrp.dre.pts.adrblk"
:[
"bodgrp.dre.pts.adrblk"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
max
:
35
,
message
:
"长度不能超过35"
}
//
{max: 35,message:"长度不能超过35"}
],
],
"bodgrp.dre.dbfadrblkcn"
:[
"bodgrp.dre.dbfadrblkcn"
:[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
...
@@ -237,7 +237,7 @@ let checkObj = {
...
@@ -237,7 +237,7 @@ let checkObj = {
{
max
:
20
,
message
:
"长度不能超过20"
}
{
max
:
20
,
message
:
"长度不能超过20"
}
],
],
"mtabut.coninf.conexedat"
:[
"mtabut.coninf.conexedat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
],
"mtabut.coninf.usr.extkey"
:[
"mtabut.coninf.usr.extkey"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
src/business/botacc/model/index.js
View file @
afcd69b0
...
@@ -19,6 +19,7 @@ export default class Botacc {
...
@@ -19,6 +19,7 @@ export default class Botacc {
pts
:
new
Pts
().
data
pts
:
new
Pts
().
data
},
},
rec
:
{
rec
:
{
inr
:
''
,
predat
:
''
,
predat
:
''
,
rcvdat
:
''
,
rcvdat
:
''
,
matpercnt
:
''
,
matpercnt
:
''
,
...
@@ -34,6 +35,9 @@ export default class Botacc {
...
@@ -34,6 +35,9 @@ export default class Botacc {
waicolcod
:
''
,
waicolcod
:
''
,
matdat
:
''
,
matdat
:
''
,
nam
:
''
,
nam
:
''
,
opndat
:
''
,
expdat
:
''
,
branchinr
:
''
,
},
},
drr
:
{
drr
:
{
pts
:
new
Pts
().
data
pts
:
new
Pts
().
data
...
...
src/business/botacc/views/Setp.vue
View file @
afcd69b0
...
@@ -188,8 +188,9 @@
...
@@ -188,8 +188,9 @@
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-istream-table
ref=
"table"
:list=
"model.liaall.tenstm.rows || []"
:columns=
"stmData.columns"
<c-istream-table
ref=
"table"
:list=
"model.liaall.tenstm.rows || []"
:columns=
"stmData.columns"
:showSelection=
"true"
v-on:multipleSelect=
"multipleSelect"
prop=
"liaall.tenstm"
>
:showSelection=
"true"
prop=
"liaall.tenstm"
>
</c-istream-table>
</c-istream-table>
<!-- v-on:multipleSelect="multipleSelect"-->
</c-col>
</c-col>
</div>
</div>
</template>
</template>
...
...
src/business/botacc/views/index.vue
View file @
afcd69b0
...
@@ -166,7 +166,11 @@ export default {
...
@@ -166,7 +166,11 @@ export default {
},
},
methods
:
{},
methods
:
{},
created
:
async
function
()
{
created
:
async
function
()
{
}
},
mounted
()
{
this
.
init
()
},
}
}
</
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