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
47c806a4
Commit
47c806a4
authored
Sep 24, 2021
by
liushikai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.0.110:11080/fukai/vue-gjjs
parents
20929483
719dbe02
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
67 additions
and
23 deletions
+67
-23
commonApi.js
src/mixin/commonApi.js
+6
-1
index.js
src/model/Cptadv/index.js
+2
-0
Check.js
src/model/Cptopn/Check.js
+5
-1
Default.js
src/model/Cptopn/Default.js
+23
-2
Pattern.js
src/model/Cptopn/Pattern.js
+1
-1
index.js
src/model/Cptopn/index.js
+2
-0
index.js
src/model/Ditame/index.js
+2
-0
Opnp1.vue
src/views/Business/Cptopn/Opnp1.vue
+14
-12
index.vue
src/views/Business/Cptopn/index.vue
+12
-6
No files found.
src/mixin/commonApi.js
View file @
47c806a4
...
@@ -40,6 +40,10 @@ export default {
...
@@ -40,6 +40,10 @@ export default {
return
return
let
data
=
await
Api
.
post
(
"display/"
+
inr
)
let
data
=
await
Api
.
post
(
"display/"
+
inr
)
Utils
.
copyValueFromVO
(
this
.
model
,
JSON
.
parse
(
data
.
data
))
Utils
.
copyValueFromVO
(
this
.
model
,
JSON
.
parse
(
data
.
data
))
}
},
executeNotify
(
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeNotify"
,
Utils
.
getRequestDataFn
.
call
(
this
,
params
))
},
}
}
}
}
\ No newline at end of file
src/model/Cptadv/index.js
View file @
47c806a4
...
@@ -217,6 +217,7 @@ export default class Cptadv{
...
@@ -217,6 +217,7 @@ export default class Cptadv{
libflg
:
""
,
// 是否报送跨境人民币2106表 .cnybop.libflg
libflg
:
""
,
// 是否报送跨境人民币2106表 .cnybop.libflg
vouflg
:
""
,
// 是否报送跨境人民币2122表 .cnybop.vouflg
vouflg
:
""
,
// 是否报送跨境人民币2122表 .cnybop.vouflg
},
},
pageId
:
""
// ctx的key
}
}
}
}
}
}
\ No newline at end of file
src/model/Cptopn/Check.js
View file @
47c806a4
...
@@ -602,8 +602,12 @@ function checkFinmodAct3N1000()
...
@@ -602,8 +602,12 @@ function checkFinmodAct3N1000()
* source:cptopn.@0023.script
* source:cptopn.@0023.script
*
*
*/
*/
function
checkCpdgrpCbsNom1AmtN1000
()
function
checkCpdgrpCbsNom1AmtN1000
(
rule
,
value
,
callback
)
{
{
const
that
=
this
;
that
.
exeuteCheck
(
"cpdgrp.cbs.nom1.amt"
).
then
(
res
=>
{
callback
()
})
}
}
/**
/**
* source:finmod.@0024.script
* source:finmod.@0024.script
...
...
src/model/Cptopn/Default.js
View file @
47c806a4
...
@@ -37,6 +37,7 @@ export default {
...
@@ -37,6 +37,7 @@ export default {
"cptp.orcadr"
:
defaultCptpOrcadr
,
"cptp.orcadr"
:
defaultCptpOrcadr
,
"trdgrp.rec.pntref"
:
defaultTrdgrpRecPntref
,
"trdgrp.rec.pntref"
:
defaultTrdgrpRecPntref
,
"cpdgrp.cbs.nom1.cur"
:
defaultCpdgrpCbsNom1Cur
,
"cpdgrp.cbs.nom1.cur"
:
defaultCpdgrpCbsNom1Cur
,
"cpdgrp.cbs.nom1.amt"
:
defaultCpdgrpCbsNom1Amt
,
"finmod.ovdintrat"
:
defaultFinmodOvdintrat
,
"finmod.ovdintrat"
:
defaultFinmodOvdintrat
,
"cptp.evebch"
:
defaultCptpEvebch
,
"cptp.evebch"
:
defaultCptpEvebch
,
"trdgrp.rec.pntnam"
:
defaultTrdgrpRecPntnam
,
"trdgrp.rec.pntnam"
:
defaultTrdgrpRecPntnam
,
...
@@ -208,8 +209,28 @@ function defaultCptpOrcadr()
...
@@ -208,8 +209,28 @@ function defaultCptpOrcadr()
function
defaultTrdgrpRecPntref
()
function
defaultTrdgrpRecPntref
()
{
{
}
}
function
defaultCpdgrpCbsNom1Cur
()
function
defaultCpdgrpCbsNom1Cur
(
rule
,
value
,
callback
)
{
{
const
that
=
this
;
that
.
executeDefault
(
"cpdgrp.rec.nam"
).
then
(
res
=>
{
that
.
model
.
cpdgrp
.
cbs
.
max
.
cur
=
value
;
that
.
model
.
cpdgrp
.
rec
.
nam
=
res
.
data
.
cpdgrp_rec_nam
;
callback
()
})
}
function
defaultCpdgrpCbsNom1Amt
(
rule
,
value
,
callback
)
{
const
that
=
this
;
that
.
executeDefault
(
"cpdgrp.cbs.max.amt"
).
then
(
res
=>
{
that
.
model
.
cpdgrp
.
rec
.
nam
=
res
.
data
.
cpdgrp_rec_nam
;
// // 信用证最大金额
// that.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt;
callback
()
})
that
.
executeDefault
(
"cpdgrp.rec.nam"
).
then
(
res
=>
{
that
.
model
.
cpdgrp
.
rec
.
nam
=
res
.
data
.
cpdgrp_rec_nam
;
callback
()
})
}
}
function
defaultFinmodOvdintrat
()
function
defaultFinmodOvdintrat
()
{
{
...
...
src/model/Cptopn/Pattern.js
View file @
47c806a4
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
"cpdgrp.cbs.nom1.amt"
:[
"cpdgrp.cbs.nom1.amt"
:[
{
type
:
"number"
,
required
:
false
,
message
:
"必输项"
},
{
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
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位"
}
],
],
...
...
src/model/Cptopn/index.js
View file @
47c806a4
...
@@ -269,6 +269,7 @@ export default class Cptopn{
...
@@ -269,6 +269,7 @@ export default class Cptopn{
libflg
:
""
,
// 是否报送跨境人民币2106表 .cnybop.libflg
libflg
:
""
,
// 是否报送跨境人民币2106表 .cnybop.libflg
vouflg
:
""
,
// 是否报送跨境人民币2122表 .cnybop.vouflg
vouflg
:
""
,
// 是否报送跨境人民币2122表 .cnybop.vouflg
},
},
pageId
:
""
// ctx的key
}
}
}
}
}
}
\ No newline at end of file
src/model/Ditame/index.js
View file @
47c806a4
...
@@ -322,6 +322,7 @@ export default class Ditame{
...
@@ -322,6 +322,7 @@ export default class Ditame{
},
},
},
},
},
},
pageId
:
""
// ctx的key
}
}
}
}
}
}
\ No newline at end of file
src/views/Business/Cptopn/Opnp1.vue
View file @
47c806a4
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
<el-form-item
label=
"Name"
prop=
"cpdgrp.rec.ownref"
>
<el-form-item
label=
"Name"
prop=
"cpdgrp.rec.ownref"
>
<c-input
<c-input
v-model=
"model.cpdgrp.rec.
ownref
"
v-model=
"model.cpdgrp.rec.
nam
"
maxlength=
"16"
maxlength=
"16"
placeholder=
""
placeholder=
""
readonly
readonly
...
@@ -278,7 +278,9 @@
...
@@ -278,7 +278,9 @@
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<el-form-item
label=
"报文类型"
label-width=
"120px"
>
<el-form-item
label=
"报文类型"
label-width=
"120px"
>
<c-input
style=
"width: 100%"
placeholder=
""
readonly
>
</c-input>
<c-select
style=
"width: 100%"
placeholder=
""
v-model=
"model.cpdgrp.rec.swftyp"
>
<el-option
v-for=
"item in codes.swftyp"
:label=
"item.label"
:value=
"item.value"
:key=
"item.value"
></el-option>
</c-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-col>
</el-col>
...
@@ -1374,20 +1376,20 @@ export default {
...
@@ -1374,20 +1376,20 @@ export default {
{
value
:
'8'
,
label
:
'大豆'
},
{
value
:
'8'
,
label
:
'大豆'
},
],
],
options6
:[
options6
:[
{
value
:
'
1
'
,
label
:
'贸易'
},
{
value
:
'
0
'
,
label
:
'贸易'
},
{
value
:
'
2
'
,
label
:
'非贸易'
},
{
value
:
'
1
'
,
label
:
'非贸易'
},
{
value
:
'
3
'
,
label
:
'资本'
},
{
value
:
'
2
'
,
label
:
'资本'
},
{
value
:
'
4
'
,
label
:
'其他'
},
{
value
:
'
3
'
,
label
:
'其他'
},
],
],
options7
:[
options7
:[
{
value
:
'
1
'
,
label
:
'电汇'
},
{
value
:
'
0
'
,
label
:
'电汇'
},
{
value
:
'
2
'
,
label
:
'票汇'
},
{
value
:
'
1
'
,
label
:
'票汇'
},
{
value
:
'
3
'
,
label
:
'信汇'
},
{
value
:
'
2
'
,
label
:
'信汇'
},
{
value
:
'
4
'
,
label
:
'其他'
},
{
value
:
'
3
'
,
label
:
'其他'
},
],
],
options8
:[
options8
:[
{
value
:
'
1
'
,
label
:
'对公'
},
{
value
:
'
0
'
,
label
:
'对公'
},
{
value
:
'
2
'
,
label
:
'对私'
},
{
value
:
'
1
'
,
label
:
'对私'
},
],
],
options9
:[
options9
:[
{
value
:
'1'
,
label
:
'跨境收支'
},
{
value
:
'1'
,
label
:
'跨境收支'
},
...
...
src/views/Business/Cptopn/index.vue
View file @
47c806a4
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
ref=
"modelForm"
ref=
"modelForm"
label-width=
"200px"
label-width=
"200px"
size=
"small"
size=
"small"
:validate-on-rule-change=
"false"
>
>
<el-tabs
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
>
<el-tabs
ref=
"elment"
type=
"card"
@
tab-click=
"tabClick"
>
<el-tab-pane
label=
"Overview"
>
<el-tab-pane
label=
"Overview"
>
...
@@ -71,10 +72,13 @@
...
@@ -71,10 +72,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
;
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
import
CodeTable
from
"~/config/CodeTable"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Cptopn
from
"~/model/Cptopn"
;
import
Cptopn
from
"~/model/Cptopn"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
Pattern
from
"~/model/Cptopn/Pattern"
;
import
Pattern
from
"~/model/Cptopn/Pattern"
;
import
Default
from
"~/model/Cptopn/Default"
;
import
Check
from
"~/model/Cptopn/Check"
;
import
Opnp1
from
"./Opnp1"
;
import
Opnp1
from
"./Opnp1"
;
import
Setpan
from
"./Setpan"
;
import
Setpan
from
"./Setpan"
;
import
Glepan
from
"./Glepan"
;
import
Glepan
from
"./Glepan"
;
...
@@ -106,11 +110,13 @@ export default {
...
@@ -106,11 +110,13 @@ export default {
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
CommonProcess
],
// 里面包含了Default、Check等的公共处理
data
()
{
data
()
{
return
{
return
{
trnName
:
"cptopn"
,
model
:
new
Cptopn
().
data
,
model
:
new
Cptopn
().
data
,
// defaultRule:Default,
checkRules
:
Check
,
// rules:this.mergeRules(Pattern,Check),
defaultRules
:
Default
,
rules
:
Pattern
,
pattern
:
Pattern
,
codes
:
{},
rules
:
null
,
codes
:
{...
CodeTable
},
// init: {
// init: {
// uri: "/cptopn/init",
// uri: "/cptopn/init",
// fileName: "cptopn.json",
// fileName: "cptopn.json",
...
@@ -1339,8 +1345,8 @@ export default {
...
@@ -1339,8 +1345,8 @@ export default {
created
:
async
function
()
{
created
:
async
function
()
{
console
.
log
(
"进入cptopn交易"
);
console
.
log
(
"进入cptopn交易"
);
let
rtnmsg
=
await
Api
.
post
(
"cptopn/init"
,
{
params
:
{}
});
let
rtnmsg
=
await
Api
.
post
(
"cptopn/init"
,
{
params
:
{}
});
if
(
rtnmsg
.
re
tcod
==
SUCCESS
)
{
if
(
rtnmsg
.
re
spCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
)
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
...
...
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