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
zhouqian
vue-gjjs
Commits
a892133a
Commit
a892133a
authored
Dec 15, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getopn金额框“必输项”解决
parent
679e4336
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
23 deletions
+12
-23
Pattern.js
src/model/Getopn/Pattern.js
+6
-6
Ovwp1.vue
src/views/Business/Getopn/Ovwp1.vue
+6
-17
No files found.
src/model/Getopn/Pattern.js
View file @
a892133a
...
...
@@ -23,9 +23,9 @@ export default {
"gidgrp.cbs.max.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
8
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
7
,
message
:
"整数位不能超过14位"
},
//
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.apl.pts.ref"
:[
...
...
@@ -38,9 +38,9 @@ export default {
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"gidgrp.cbs.opn1.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
8
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
1
7
,
message
:
"整数位不能超过14位"
},
//
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.rec.oldref"
:[
...
...
src/views/Business/Getopn/Ovwp1.vue
View file @
a892133a
...
...
@@ -77,17 +77,11 @@
<c-col
:span=
"9"
>
<el-form-item
label-width=
"5px"
prop=
"gidgrp.cbs.max.amt"
>
<c-input
<c-input
-currency
v-model=
"model.gidgrp.cbs.max.amt"
placeholder=
"请输入保函金额"
@
blur=
"amtBlur"
@
keyup
.
enter
.
native=
"
defaultFunction(
'gidgrp.cbs.max.amt',
model.gidgrp.cbs.max.amt
)
"
></c-input>
@
keyup
.
enter
.
native=
"$event.target.blur()"
></c-input-currency>
</el-form-item>
</c-col>
<c-col
...
...
@@ -112,11 +106,12 @@
</c-col>
<c-col
:span=
"9"
>
<el-form-item
label-width=
"5px"
prop=
"gidgrp.cbs.opn1.amt"
>
<c-input
<!-- 因暂不确定此金额框能否显示负数,且此框为disabled,暂用-min标签,可回显负数 -->
<c-input-currency-min
disabled
v-model=
"model.gidgrp.cbs.opn1.amt"
placeholder=
"请输入"
></c-input>
></c-input
-currency-min
>
</el-form-item>
</c-col>
<c-col
...
...
@@ -1644,12 +1639,6 @@ export default {
},
methods
:
{
...
Event
,
async
amtBlur
()
{
let
rtnmsg
=
await
this
.
executeDefault
(
"gidgrp.cbs.max.amt"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
},
},
created
:
function
()
{},
};
...
...
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