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
4367e8a9
Commit
4367e8a9
authored
Nov 16, 2023
by
panziyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
letdrv修改
parent
0bb4c1aa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
51 deletions
+44
-51
buildCommons.js
src/business/betdrv/event/buildCommons.js
+11
-11
index.js
src/business/betdrv/event/index.js
+9
-9
check.js
src/business/betdrv/model/check.js
+4
-4
buildCommons.js
src/business/letdrv/event/buildCommons.js
+0
-7
check.js
src/business/letdrv/model/check.js
+9
-9
Drv.vue
src/business/letdrv/views/Drv.vue
+11
-11
No files found.
src/business/betdrv/event/buildCommons.js
View file @
4367e8a9
export
default
{
buildPtspta
(
ptsptaObj
)
{
buildPtspta
(
ptsptaObj
)
{
let
pts
=
ptsptaObj
.
pts
;
let
ptspta
=
{
rol
:
pts
.
rol
,
...
...
@@ -17,7 +17,7 @@ export default {
};
return
ptspta
;
},
buildCommonData
(
model
,
trnName
)
{
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
[];
if
(
model
.
bedgrp
.
prb
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
bedgrp
.
prb
));
...
...
@@ -64,7 +64,7 @@ export default {
};
return
dataObj
},
buildSetfeg
(
model
,
trnName
)
{
buildSetfeg
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
liaall
:
model
.
liaall
,
...
...
@@ -73,7 +73,7 @@ export default {
};
return
params
},
buildSetglg
(
model
,
trnName
)
{
buildSetglg
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
setfeg
:
model
.
setmod
.
setfeg
,
...
...
@@ -82,7 +82,7 @@ export default {
};
return
params
},
buildGlentry
(
model
,
trnName
)
{
buildGlentry
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
liaallg
:
model
.
liaall
.
liaallg
,
...
...
@@ -92,20 +92,20 @@ export default {
};
return
params
},
buildEngp
(
model
,
trnName
)
{
buildEngp
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
liaallg
:
model
.
liaall
.
liaallg
,
};
return
params
},
buildDocpan
(
model
,
trnName
)
{
buildDocpan
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
};
return
params
},
buildCcvpan
(
model
,
trnName
)
{
buildCcvpan
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
liaccvg
:
model
.
liaccv
.
liaccvg
,
...
...
@@ -115,7 +115,7 @@ export default {
};
return
params
},
buildLimitbody
(
model
,
trnName
)
{
buildLimitbody
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
...
...
@@ -126,7 +126,7 @@ export default {
};
return
params
},
buildDoctre
(
model
,
trnName
)
{
buildDoctre
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
...
...
@@ -138,7 +138,7 @@ export default {
return
params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts
(
model
,
trnName
,
setglg
)
{
buildSetgllAccts
(
model
,
trnName
,
setglg
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
setglg
...
...
src/business/betdrv/event/index.js
View file @
4367e8a9
...
...
@@ -20,21 +20,21 @@ export default {
...
ccvpan
,
...
limitbody
,
...
doctre
,
async
init
()
{
async
init
()
{
const
params
=
{
spt
:
JSON
.
parse
(
localStorage
.
getItem
(
'row_'
+
this
.
trnName
)),
trninr
:
this
.
$route
.
query
.
trninr
,
}
if
(
typeof
(
this
.
$route
.
query
.
inr
)
==
'string'
)
{
if
(
typeof
(
this
.
$route
.
query
.
inr
)
==
'string'
)
{
params
.
spt
=
null
}
const
res
=
await
Api
.
post
(
'/service/betdrv/init'
,
{
...
params
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
bedgrp
:{
rec
:{
bedgrp
:
{
rec
:
{
inr
:
this
.
$route
.
query
.
inr
}
},
...
...
@@ -48,7 +48,7 @@ export default {
this
.
copyValueFromVoData
(
this
.
model
.
setmod
.
setglg
,
res
.
data
.
setglg
)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData
(
model
,
data
)
{
copyValueFromVoData
(
model
,
data
)
{
let
keysList
=
Object
.
keys
(
model
)
keysList
.
map
((
key
)
=>
{
if
(
data
[
key
])
{
...
...
@@ -137,7 +137,7 @@ export default {
handleChangePurpos
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
},
buildLiaccv
()
{
buildLiaccv
()
{
let
params
=
{
...
buildFn
.
buildCommonData
(
this
.
model
,
this
.
trnName
),
liaccvg
:
this
.
model
.
liaccv
.
liaccvg
,
...
...
@@ -145,11 +145,11 @@ export default {
chgamt
:
this
.
model
.
liaccv
.
chgamt
,
concur
:
this
.
model
.
liaccv
.
concur
,
};
return
params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel
(
emitParams
)
{
changeSetmodModel
(
emitParams
)
{
let
reqParams
=
{}
switch
(
emitParams
.
code
)
{
case
'processMethods'
:
...
...
@@ -159,7 +159,7 @@ export default {
case
'changeDsp'
:
let
index
=
emitParams
.
index
;
let
setglgRequest
=
buildFn
.
buildSetglg
(
this
.
model
,
this
.
trnName
);
setglgRequest
.
setglg
=
{
setgll
:
emitParams
.
list
};
setglgRequest
.
setglg
=
{
setgll
:
emitParams
.
list
};
this
.
setgllAccts
(
setglgRequest
,
index
);
break
default
:
...
...
src/business/betdrv/model/check.js
View file @
4367e8a9
...
...
@@ -168,7 +168,7 @@ export default {
{
max
:
35
,
message
:
"长度不能超过35"
}
],
"bedgrp.blk.matper"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
],
"bedgrp.prb.adrelc"
:[
...
...
@@ -176,7 +176,7 @@ export default {
{
max
:
35
,
message
:
"长度不能超过35"
}
],
"ledgrp.rec.utlnbr"
:[
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
max
:
999
,
message
:
"长度不能超过3"
}
],
// "bedgrp.blk.docdis":[
...
...
@@ -184,7 +184,7 @@ export default {
// {max: 3500,message:"长度不能超过3500"}
// ],
"bedgrp.blk.intdis"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
1300
,
message
:
"长度不能超过1300"
}
],
"bedgrp.oth.pts.ref"
:[
...
...
@@ -192,7 +192,7 @@ export default {
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"bedgrp.blk.comcon"
:[
{
type
:
"string"
,
required
:
tru
e
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
fals
e
,
message
:
"必输项"
},
{
max
:
1300
,
message
:
"长度不能超过1300"
}
],
"bedgrp.blk.setinsbe"
:[
...
...
src/business/letdrv/event/buildCommons.js
View file @
4367e8a9
...
...
@@ -42,13 +42,6 @@ export default {
branchInr
:
model
.
ledgrp
.
rec
.
branchinr
,
hndtyp
:
model
.
ledgrp
.
rec
.
hndtyp
,
gartyp
:
model
.
ledgrp
.
rec
.
gartyp
,
fingua
:
model
.
ledgrp
.
rec
.
fingua
,
// segtyp: model.bedgrp.ghd.segtyp,
fromflg
:
model
.
ledgrp
.
rec
.
fromflg
,
othersno
:
model
.
ledgrp
.
rec
.
othersno
,
sndto
:
model
.
ledgrp
.
rec
.
sndto
,
// swiftflg: model.gitp.swiftflg,
giduil
:
model
.
ledgrp
.
rec
.
giduil
,
purpos
:
model
.
ledgrp
.
rec
.
purpos
,
revflg
:
model
.
ledgrp
.
rec
.
revflg
,
cnfsta
:
model
.
ledgrp
.
rec
.
cnfsta
,
...
...
src/business/letdrv/model/check.js
View file @
4367e8a9
...
...
@@ -60,17 +60,17 @@ export default {
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"ledgrp.rec.opndat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"ledgrp.rec.shpdat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bedgrp.prb.pts.ref"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
],
"ledgrp.rec.expdat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"ledgrp.rec.expplc"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
@@ -127,10 +127,10 @@ export default {
{
max
:
35
,
message
:
"长度不能超过35"
}
],
"bedgrp.rec.rcvdat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bedgrp.rec.orddat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bedgrp.prb.pts.adrblk"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
@@ -141,10 +141,10 @@ export default {
{
max
:
35
,
message
:
"长度不能超过35"
}
],
"bedgrp.rec.matdat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bedgrp.rec.shpdat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bedgrp.prb.adrelc"
:
[
{
type
:
"string"
,
required
:
true
,
message
:
"必输项"
},
...
...
@@ -301,7 +301,7 @@ export default {
// { max: 60, message: "长度不能超过60" }
// ],
"mtabut.coninf.conexedat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"mtabut.coninf.usr.extkey"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
@@ -325,7 +325,7 @@ export default {
{
max
:
80
,
message
:
"长度不能超过80"
}
],
"bedgrp.srm.djudat"
:
[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
"bedgrp.srm.djuref"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
src/business/letdrv/views/Drv.vue
View file @
4367e8a9
...
...
@@ -287,7 +287,7 @@
<c-col
:span=
"12"
>
<el-form-item
label=
""
label-width=
"5px"
prop=
"bedgrp.cbs.max.amt"
>
<c-input-currency
v-model=
"m
ax
amt"
v-model=
"m
odel.bedgrp.cbs.max.
amt"
placeholder=
"请输入金额"
></c-input-currency>
</el-form-item>
...
...
@@ -638,17 +638,17 @@ export default {
this
.
model
.
bedgrp
.
cbs
.
max
.
cur
=
this
.
model
.
ledgrp
.
cbs
.
nom1
.
cur
return
this
.
model
.
bedgrp
.
cbs
.
max
.
cur
},
maxamt
:{
get
:
function
(){
// this.model.bedgrp.cbs.max.amt = this.model.ledgrp.cbs.opn1.amt
return
this
.
model
.
bedgrp
.
cbs
.
max
.
amt
},
// set:function (newVal){
// this.model.bedgrp.cbs.max.amt = newVal
// }
set
:
function
(){}
//
maxamt:{
//
get:function (){
//
// this.model.bedgrp.cbs.max.amt = this.model.ledgrp.cbs.opn1.amt
//
return this.model.bedgrp.cbs.max.amt
//
},
//
// set:function (newVal){
//
// this.model.bedgrp.cbs.max.amt = newVal
//
// }
//
set:function (){}
},
//
},
opn2cur
(){
this
.
model
.
bedgrp
.
cbs
.
opn2
.
cur
=
this
.
model
.
ledgrp
.
cbs
.
nom1
.
cur
return
this
.
model
.
bedgrp
.
cbs
.
opn2
.
cur
...
...
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