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
cf7eab82
Commit
cf7eab82
authored
Aug 30, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
letame交易首页金额计算修改
parent
e4317c45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
22 deletions
+27
-22
Pattern.js
src/model/Letame/Pattern.js
+2
-2
Amep.vue
src/views/Business/Letame/Amep.vue
+25
-20
No files found.
src/model/Letame/Pattern.js
View file @
cf7eab82
...
...
@@ -57,13 +57,13 @@ export default {
{
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
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位" }
],
"letamep.engamt"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
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位" }
{
pattern
:
/
(
^-
?\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^-
?\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"trnmod.swiadd.newamt"
:[
...
...
src/views/Business/Letame/Amep.vue
View file @
cf7eab82
...
...
@@ -115,18 +115,14 @@
label-width=
"5px"
prop=
"oldledgrp.cbs.nom1.amt"
>
<c-input
-currency
<c-input
v-model=
"model.oldledgrp.cbs.nom1.amt"
placeholder=
"请输入Original Data"
style=
"width: 100%"
@
keyup
.
enter
.
native=
"
defaultFunction(
'oldledgrp.cbs.nom1.amt',
model.oldledgrp.cbs.nom1.amt
)
"
@
keyup
.
enter
.
native=
"$event.target.blur()"
class=
"m-input-currency"
disabled
></c-input
-currency
>
></c-input>
</el-form-item>
</c-col>
...
...
@@ -148,13 +144,15 @@
label-width=
"5px"
prop=
"trnmod.swiadd.ameamt"
>
<c-input
-currency
<c-input
v-model=
"model.trnmod.swiadd.ameamt"
placeholder=
"请输入Amended"
@
keyup
.
enter
.
native=
"$event.target.blur()"
@
blur=
"ameamtOtherDefault"
@
keyup
.
enter
.
native=
"$event.target.blur"
style=
"width: 100%"
></c-input-currency>
class=
"m-input-currency"
></c-input>
<!-- 回车失去焦点,失去焦点会自动触发默认事件:@keyup.enter.native="$event.target.blur()" -->
</el-form-item>
</c-col>
...
...
@@ -177,7 +175,7 @@
label-width=
"5px"
prop=
"trnmod.swiadd.newamt"
>
<c-input
-currency
<c-input
v-model=
"model.trnmod.swiadd.newamt"
placeholder=
"请输入New Data"
@
keyup
.
enter
.
native=
"
...
...
@@ -186,7 +184,8 @@
)
"
style=
"width: 100%"
></c-input-currency>
class=
"m-input-currency"
></c-input>
</el-form-item>
</c-col>
</c-col>
...
...
@@ -238,6 +237,7 @@
v-model
.
number=
"model.trnmod.swiadd.newnomtop"
placeholder=
"请输入New positive tolerance"
style=
"width: 100%"
@
keyup
.
enter
.
native=
"$event.target.blur()"
></c-input>
</el-form-item>
</c-col>
...
...
@@ -252,6 +252,7 @@
v-model
.
number=
"model.trnmod.swiadd.newnomton"
placeholder=
"请输入New negative tolerance"
style=
"width: 100%"
@
keyup
.
enter
.
native=
"$event.target.blur()"
></c-input>
</el-form-item>
</c-col>
...
...
@@ -281,12 +282,13 @@
label-width=
"5px"
prop=
"oldledgrp.cbs.max.amt"
>
<c-input
-currency
<c-input
v-model=
"model.oldledgrp.cbs.max.amt"
placeholder=
"请输入Original Data"
style=
"width: 100%"
disabled
></c-input-currency>
class=
"m-input-currency"
></c-input>
</el-form-item>
</c-col>
...
...
@@ -304,11 +306,12 @@
</c-col>
<c-col
:span=
"14"
>
<el-form-item
label=
""
label-width=
"5px"
prop=
"letamep.engamt"
>
<c-input
-currency
<c-input
v-model=
"model.letamep.engamt"
placeholder=
"请输入Total Amendment"
disabled
></c-input-currency>
class=
"m-input-currency"
></c-input>
</el-form-item>
</c-col>
...
...
@@ -326,11 +329,12 @@
</c-col>
<c-col
:span=
"14"
>
<el-form-item
label=
""
label-width=
"5px"
prop=
"letamep.maxamt"
>
<c-input
-currency
<c-input
v-model=
"model.letamep.maxamt"
placeholder=
"请输入New Maximum Amount"
disabled
></c-input-currency>
class=
"m-input-currency"
></c-input>
</el-form-item>
</c-col>
</c-col>
...
...
@@ -1019,6 +1023,7 @@ import Api from '~/service/Api'
import
commonProcess
from
'~/mixin/commonProcess'
import
CodeTable
from
'~/config/CodeTable'
import
Event
from
'~/model/Letame/Event'
import
Utils
from
"~/utils"
export
default
{
inject
:
[
'root'
],
...
...
@@ -1032,7 +1037,7 @@ export default {
onSeainf
(){},
ameamtOtherDefault
(){
this
.
executeDefault
(
'letamep.swiadd.newamt'
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
(
res
.
respCode
==
SUCCESS
)
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
}
})
...
...
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