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
b27fce16
Commit
b27fce16
authored
Oct 20, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
信用证金额、申请人Extkey
parent
0c6978cf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
11 deletions
+44
-11
commonProcess.js
src/mixin/commonProcess.js
+5
-2
Check.js
src/model/Ditopn/Check.js
+15
-1
Default.js
src/model/Ditopn/Default.js
+1
-1
Pattern.js
src/model/Ditopn/Pattern.js
+2
-2
index.js
src/utils/index.js
+16
-0
Ovwp.vue
src/views/Business/Ditopn/Ovwp.vue
+5
-5
No files found.
src/mixin/commonProcess.js
View file @
b27fce16
...
...
@@ -105,9 +105,9 @@ export default {
},
showGridPromptDialog
(
rulePath
)
{
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
=
SUCCESS
){
if
(
res
.
respCode
=
==
SUCCESS
){
if
(
res
.
data
.
params
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
else
{
this
.
root
.
$refs
.
etyDialog
.
show
=
true
this
.
root
.
promptData
=
{
...
...
@@ -118,6 +118,9 @@ export default {
}
}
}
const
fields
=
this
.
root
.
$refs
.
modelForm
.
fields
const
fieldErrors
=
res
.
fieldErrors
;
Utils
.
positioningErrorMsg
(
fieldErrors
,
fields
)
})
},
selectEty
(
val
,
rulePath
)
{
...
...
src/model/Ditopn/Check.js
View file @
b27fce16
...
...
@@ -26,7 +26,7 @@ let checkObj = {
"lidgrp.rec.avbby"
:
null
,
"lidgrp.ben.pts.extkey"
:
null
,
"lidgrp.age.pts.extkey"
:
null
,
"lidgrp.cbs.nom1.amt"
:
null
,
"lidgrp.cbs.nom1.amt"
:
lidgrpCbsNom1AmtCheck
,
"lidgrp.blk.defdet"
:
null
,
"lidgrp.blk.lcrdoc"
:
null
,
"lidgrp.rmb.pts.adrblk"
:
null
,
...
...
@@ -66,5 +66,19 @@ for (const key in checkObj) {
checkObj
[
key
]
=
checkObj
[
key
]
?
checkObj
[
key
]
:
Utils
.
reflectCheck
(
key
)
}
}
async
function
lidgrpCbsNom1AmtCheck
(
rule
,
value
,
callback
){
//调用具体的check
const
key
=
"lidgrp.cbs.nom1.amt"
;
const
res
=
await
this
.
exeuteCheck
(
key
)
if
(
res
.
respCode
==
SUCCESS
){
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
)
}
if
(
Object
.
hasOwnProperty
.
call
(
res
.
fieldErrors
,
key
))
{
callback
(
new
Error
(
res
.
fieldErrors
[
key
]))
}
else
{
callback
();
}
}
export
default
checkObj
src/model/Ditopn/Default.js
View file @
b27fce16
...
...
@@ -7,7 +7,7 @@ import Utils from "~/utils/index"
export
default
{
"lidgrp.cbs.nom1.cur"
:
Utils
.
defaultFunction
,
"lidgrp.cbs.nom1.amt"
:
Utils
.
defaultFunction
,
//
"lidgrp.cbs.nom1.amt" :Utils.defaultFunction,
"lidgrp.rec.shpto"
:
Utils
.
defaultFunction
,
"lidgrp.rec.shpfro"
:
Utils
.
defaultFunction
,
"lidgrp.rmb.pts.extkey"
:
Utils
.
defaultFunction
,
...
...
src/model/Ditopn/Pattern.js
View file @
b27fce16
...
...
@@ -65,11 +65,11 @@ export default {
],
"lidgrp.rec.nomtop"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
required
:
false
,
message
:
"必输项"
},
{
max
:
2
,
message
:
"长度不能超过2"
}
],
"lidgrp.rec.nomton"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
required
:
false
,
message
:
"必输项"
},
{
max
:
2
,
message
:
"长度不能超过2"
}
],
"lidgrp.apl.pta.issbchinf"
:[
...
...
src/utils/index.js
View file @
b27fce16
...
...
@@ -209,6 +209,22 @@ export default class Utils {
}
}
static
showErrorMessage
(
fieldErrors
,
formFields
)
{
for
(
let
i
=
0
;
i
<
formFields
.
length
;
i
++
)
{
const
field
=
formFields
[
i
];
for
(
const
key
in
fieldErrors
)
{
if
(
Object
.
hasOwnProperty
.
call
(
fieldErrors
,
key
))
{
if
(
field
.
prop
===
key
)
{
const
fieldError
=
fieldErrors
[
key
];
field
.
validateState
=
'error'
;
field
.
validateMessage
=
fieldError
;
break
;
}
}
}
}
}
static
defaultFunction
(
rule
,
value
,
callback
){
this
.
executeNotify
().
then
(
res
=>
{
if
(
res
.
respCode
==
SUCCESS
){
...
...
src/views/Business/Ditopn/Ovwp.vue
View file @
b27fce16
...
...
@@ -333,7 +333,7 @@
<el-form-item
label=
""
>
<c-input
type=
"textarea"
v-model=
"model.lidgrp.apl.
pts.adrblk
"
v-model=
"model.lidgrp.apl.
dbfadrblkcn
"
maxlength=
"35"
:rows=
"5"
show-word-limit
...
...
@@ -403,7 +403,7 @@
<el-form-item
label=
""
>
<c-input
type=
"textarea"
v-model=
"model.lidgrp.adv.
pts.adrblk
"
v-model=
"model.lidgrp.adv.
dbfadrblkcn
"
maxlength=
"35"
:rows=
"5"
show-word-limit
...
...
@@ -448,7 +448,7 @@
<el-form-item
label=
""
>
<c-input
type=
"textarea"
v-model=
"model.lidgrp.ben.
pts.adrblk
"
v-model=
"model.lidgrp.ben.
dbfadrblkcn
"
maxlength=
"35"
:rows=
"5"
show-word-limit
...
...
@@ -495,8 +495,8 @@ export default {
return
{
codeTable
:
{
lcrtyp
:
[
{
label
:
"不可撤销可转让"
,
value
:
'
1
'
},
{
label
:
"不可撤销不可转让"
,
value
:
'
2
'
},
{
label
:
"不可撤销可转让"
,
value
:
'
IT
'
},
{
label
:
"不可撤销不可转让"
,
value
:
'
I
'
},
],
isstyp
:
[
{
label
:
"WE ISSUE"
,
value
:
'1'
},
...
...
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