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
a7392db8
Commit
a7392db8
authored
a year ago
by
panziyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
letamc修改
parent
d01f8401
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
25 deletions
+38
-25
buildCommons.js
src/business/letamc/event/buildCommons.js
+11
-11
index.js
src/business/letamc/event/index.js
+23
-10
check.js
src/business/letamc/model/check.js
+4
-4
Ovwp1.vue
src/business/letamc/views/Ovwp1.vue
+0
-0
No files found.
src/business/letamc/event/buildCommons.js
View file @
a7392db8
export
default
{
export
default
{
buildPtspta
(
ptsptaObj
)
{
buildPtspta
(
ptsptaObj
)
{
let
pts
=
ptsptaObj
.
pts
;
let
pts
=
ptsptaObj
.
pts
;
let
ptspta
=
{
let
ptspta
=
{
rol
:
pts
.
rol
,
rol
:
pts
.
rol
,
...
@@ -17,7 +17,7 @@ export default {
...
@@ -17,7 +17,7 @@ export default {
};
};
return
ptspta
;
return
ptspta
;
},
},
buildCommonData
(
model
,
trnName
)
{
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
[];
let
ptsptaList
=
[];
if
(
model
.
ledgrp
.
iss
.
pts
.
extkey
)
{
if
(
model
.
ledgrp
.
iss
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
ledgrp
.
iss
));
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
ledgrp
.
iss
));
...
@@ -71,7 +71,7 @@ export default {
...
@@ -71,7 +71,7 @@ export default {
};
};
return
dataObj
return
dataObj
},
},
buildSetfeg
(
model
,
trnName
)
{
buildSetfeg
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
liaall
:
model
.
liaall
,
liaall
:
model
.
liaall
,
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
};
};
return
params
return
params
},
},
buildSetglg
(
model
,
trnName
)
{
buildSetglg
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
setfeg
:
model
.
setmod
.
setfeg
,
setfeg
:
model
.
setmod
.
setfeg
,
...
@@ -89,7 +89,7 @@ export default {
...
@@ -89,7 +89,7 @@ export default {
};
};
return
params
return
params
},
},
buildGlentry
(
model
,
trnName
)
{
buildGlentry
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
liaallg
:
model
.
liaall
.
liaallg
,
liaallg
:
model
.
liaall
.
liaallg
,
...
@@ -99,20 +99,20 @@ export default {
...
@@ -99,20 +99,20 @@ export default {
};
};
return
params
return
params
},
},
buildEngp
(
model
,
trnName
)
{
buildEngp
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
liaallg
:
model
.
liaall
.
liaallg
,
liaallg
:
model
.
liaall
.
liaallg
,
};
};
return
params
return
params
},
},
buildDocpan
(
model
,
trnName
)
{
buildDocpan
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
};
};
return
params
return
params
},
},
buildCcvpan
(
model
,
trnName
)
{
buildCcvpan
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
liaccvg
:
model
.
liaccv
.
liaccvg
,
liaccvg
:
model
.
liaccv
.
liaccvg
,
...
@@ -122,7 +122,7 @@ export default {
...
@@ -122,7 +122,7 @@ export default {
};
};
return
params
return
params
},
},
buildLimitbody
(
model
,
trnName
)
{
buildLimitbody
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
rec
:
{
...
@@ -133,7 +133,7 @@ export default {
...
@@ -133,7 +133,7 @@ export default {
};
};
return
params
return
params
},
},
buildDoctre
(
model
,
trnName
)
{
buildDoctre
(
model
,
trnName
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
rec
:
{
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
return
params
return
params
},
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts
(
model
,
trnName
,
setglg
)
{
buildSetgllAccts
(
model
,
trnName
,
setglg
)
{
let
params
=
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
...
this
.
buildCommonData
(
model
,
trnName
),
setglg
setglg
...
...
This diff is collapsed.
Click to expand it.
src/business/letamc/event/index.js
View file @
a7392db8
...
@@ -20,21 +20,21 @@ export default {
...
@@ -20,21 +20,21 @@ export default {
...
ccvpan
,
...
ccvpan
,
...
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
)),
trninr
:
this
.
$route
.
query
.
trninr
,
trninr
:
this
.
$route
.
query
.
trninr
,
}
}
if
(
typeof
(
this
.
$route
.
query
.
inr
)
==
'string'
)
{
if
(
typeof
(
this
.
$route
.
query
.
inr
)
==
'string'
)
{
params
.
spt
=
null
params
.
spt
=
null
}
}
const
res
=
await
Api
.
post
(
'/service/letamc/init'
,
{
const
res
=
await
Api
.
post
(
'/service/letamc/init'
,
{
...
params
,
...
params
,
transName
:
this
.
trnName
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
ledgrp
:{
ledgrp
:
{
rec
:{
rec
:
{
inr
:
this
.
$route
.
query
.
inr
inr
:
this
.
$route
.
query
.
inr
}
}
},
},
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
this
.
copyValueFromVoData
(
this
.
model
.
setmod
.
setglg
,
res
.
data
.
setglg
)
this
.
copyValueFromVoData
(
this
.
model
.
setmod
.
setglg
,
res
.
data
.
setglg
)
},
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData
(
model
,
data
)
{
copyValueFromVoData
(
model
,
data
)
{
let
keysList
=
Object
.
keys
(
model
)
let
keysList
=
Object
.
keys
(
model
)
keysList
.
map
((
key
)
=>
{
keysList
.
map
((
key
)
=>
{
if
(
data
[
key
])
{
if
(
data
[
key
])
{
...
@@ -133,7 +133,7 @@ export default {
...
@@ -133,7 +133,7 @@ export default {
handleChangePurpos
()
{
handleChangePurpos
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
},
},
buildLiaccv
()
{
buildLiaccv
()
{
let
params
=
{
let
params
=
{
...
buildFn
.
buildCommonData
(
this
.
model
,
this
.
trnName
),
...
buildFn
.
buildCommonData
(
this
.
model
,
this
.
trnName
),
liaccvg
:
this
.
model
.
liaccv
.
liaccvg
,
liaccvg
:
this
.
model
.
liaccv
.
liaccvg
,
...
@@ -141,11 +141,11 @@ export default {
...
@@ -141,11 +141,11 @@ export default {
chgamt
:
this
.
model
.
liaccv
.
chgamt
,
chgamt
:
this
.
model
.
liaccv
.
chgamt
,
concur
:
this
.
model
.
liaccv
.
concur
,
concur
:
this
.
model
.
liaccv
.
concur
,
};
};
return
params
return
params
},
},
// 公共组件setmod处理方式改变触发联动
// 公共组件setmod处理方式改变触发联动
changeSetmodModel
(
emitParams
)
{
changeSetmodModel
(
emitParams
)
{
let
reqParams
=
{}
let
reqParams
=
{}
switch
(
emitParams
.
code
)
{
switch
(
emitParams
.
code
)
{
case
'processMethods'
:
case
'processMethods'
:
...
@@ -155,12 +155,25 @@ export default {
...
@@ -155,12 +155,25 @@ export default {
case
'changeDsp'
:
case
'changeDsp'
:
let
index
=
emitParams
.
index
;
let
index
=
emitParams
.
index
;
let
setglgRequest
=
buildFn
.
buildSetglg
(
this
.
model
,
this
.
trnName
);
let
setglgRequest
=
buildFn
.
buildSetglg
(
this
.
model
,
this
.
trnName
);
setglgRequest
.
setglg
=
{
setgll
:
emitParams
.
list
};
setglgRequest
.
setglg
=
{
setgll
:
emitParams
.
list
};
this
.
setgllAccts
(
setglgRequest
,
index
);
this
.
setgllAccts
(
setglgRequest
,
index
);
break
break
default
:
default
:
return
return
}
}
}
},
//最大金额
async
cbsmax
()
{
let
params
=
{
nom1cur
:
this
.
model
.
ledgrp
.
cbs
.
nom1
.
cur
,
nom1amt
:
this
.
model
.
ledgrp
.
cbs
.
nom1
.
amt
,
nomtop
:
this
.
model
.
ledgrp
.
rec
.
nomtop
};
let
res
=
await
Api
.
post
(
'/service/letopn/cbsmax'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
model
.
ledgrp
.
cbs
.
max
.
cur
=
res
.
data
.
maxcur
;
this
.
model
.
ledgrp
.
cbs
.
max
.
amt
=
res
.
data
.
maxamt
;
}
},
},
},
};
};
This diff is collapsed.
Click to expand it.
src/business/letamc/model/check.js
View file @
a7392db8
...
@@ -50,10 +50,10 @@ export default {
...
@@ -50,10 +50,10 @@ export default {
{
max
:
18
,
message
:
"整数位不能超过14位"
,
trigger
:
"blur"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
,
trigger
:
"blur"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
],
//
"ledgrp.rec.partcon":[
"ledgrp.rec.partcon"
:[
//
{type: "string", required: false, message: "必输项",trigger:"blur"},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
,
trigger
:
"blur"
},
//
{max: 6,message:"长度不能超过6",trigger:"blur"}
{
max
:
6
,
message
:
"长度不能超过6"
,
trigger
:
"blur"
}
//
],
],
"reqdat"
:[
"reqdat"
:[
{
required
:
false
,
message
:
"输入正确的日期"
}
{
required
:
false
,
message
:
"输入正确的日期"
}
],
],
...
...
This diff is collapsed.
Click to expand it.
src/business/letamc/views/Ovwp1.vue
View file @
a7392db8
This diff is collapsed.
Click to expand it.
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