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
0e9aa709
Commit
0e9aa709
authored
Sep 07, 2022
by
Wuyuqiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug解决,lttopn交易完善功能
parent
bc5c673a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
251 additions
and
21 deletions
+251
-21
Event.js
src/model/Letdrv/Event.js
+18
-1
index.js
src/model/Letdrv/index.js
+1
-0
Check.js
src/model/Lttopn/Check.js
+2
-0
Default.js
src/model/Lttopn/Default.js
+3
-0
Event.js
src/model/Lttopn/Event.js
+0
-0
Pattern.js
src/model/Lttopn/Pattern.js
+16
-0
index.js
src/model/Lttopn/index.js
+0
-0
Drv.vue
src/views/Business/Letdrv/Drv.vue
+5
-1
Dscins.vue
src/views/Business/Letdrv/Dscins.vue
+1
-0
Srmp.vue
src/views/Business/Letdrv/Srmp.vue
+3
-3
Aamp.vue
src/views/Business/Lttopn/Aamp.vue
+149
-0
Ovwp.vue
src/views/Business/Lttopn/Ovwp.vue
+46
-15
index.vue
src/views/Business/Lttopn/index.vue
+7
-1
No files found.
src/model/Letdrv/Event.js
View file @
0e9aa709
...
...
@@ -255,7 +255,23 @@ export default {
}
},
onSeainf
()
{},
onDetpButgetref
()
{},
async
onDetpButgetref
(){
let
rtnmsg
=
await
this
.
executeRule
(
"butgetref"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
)
this
.
$message
({
type
:
'success'
,
message
:
'获取成功!'
});
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onBenpDet
()
{},
}
\ No newline at end of file
src/model/Letdrv/index.js
View file @
0e9aa709
...
...
@@ -44,6 +44,7 @@ export default class Letdrv {
},
ledgrp
:
{
rec
:
{
inr
:
""
,
ownref
:
""
,
// Reference .ledgrp.rec.ownref
nam
:
""
,
// 摘要 .ledgrp.rec.nam
revflg
:
""
,
// Revolving Flag .ledgrp.rec.revflg
...
...
src/model/Lttopn/Check.js
View file @
0e9aa709
...
...
@@ -53,6 +53,8 @@ let checkObj = {
"ltdgrp.rec.avbby"
:
null
,
"ltdgrp.blk.preper"
:
null
,
"ltdgrp.rmt.namelc"
:
null
,
"ltdgrp.blk.addamtcov"
:
null
,
"ltdgrp.cbs.max2.amt"
:
null
,
"ltdgrp.rec.ownref"
:
null
,
"ltdgrp.be2.adrelc"
:
null
,
"ltdgrp.adt.pts.adrblk"
:
null
,
...
...
src/model/Lttopn/Default.js
View file @
0e9aa709
...
...
@@ -105,5 +105,8 @@ export default {
"ltdgrp.rec.shptrss18"
:
Utils
.
defaultFunction
,
"ltdgrp.rec.expplc"
:
Utils
.
defaultFunction
,
"ltdgrp.rec.cnfins"
:
Utils
.
defaultFunction
,
"ltdgrp.cbs.max2.amt"
:
Utils
.
defaultFunction
,
"ltdgrp.cbs.max2.cur"
:
Utils
.
defaultFunction
,
"ltdgrp.blk.addamtcov"
:
Utils
.
defaultFunction
,
}
//你可以添加自动default处理
src/model/Lttopn/Event.js
View file @
0e9aa709
This diff is collapsed.
Click to expand it.
src/model/Lttopn/Pattern.js
View file @
0e9aa709
...
...
@@ -642,4 +642,19 @@ export default {
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
65
,
message
:
"长度不能超过65"
}
],
"ltdgrp.cbs.max2.amt"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"ltdgrp.cbs.opn2.amt"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"ltdgrp.blk.addamtcov"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
35
,
message
:
"长度不能超过35"
}
],
}
\ No newline at end of file
src/model/Lttopn/index.js
View file @
0e9aa709
This diff is collapsed.
Click to expand it.
src/views/Business/Letdrv/Drv.vue
View file @
0e9aa709
...
...
@@ -298,8 +298,12 @@
style=
"margin: 0 0"
size=
"small"
type=
"primary"
:disabled=
"this.flag"
@
click=
"onDetpButgetref"
:disabled=
"
model.ledgrp.adv.pts.inr &&!model.bedgrp.rec.ownref
? false
: true
"
>
Get
</c-button>
...
...
src/views/Business/Letdrv/Dscins.vue
View file @
0e9aa709
...
...
@@ -24,6 +24,7 @@
type=
"primary"
:disabled=
"!docdisflg"
@
click=
"showGridPromptDialog('betp.docdis.buttxmsel',null,null,
{TXT:'bedgrp.blk.docdis'},{TXT:false},'doxpDialog')"
@change="defaultFunction('betp.folwupopt')"
>
...
</c-button>
...
...
src/views/Business/Letdrv/Srmp.vue
View file @
0e9aa709
...
...
@@ -29,7 +29,7 @@
v-model=
"model.bedgrp.srm.djuusr"
maxlength=
"80"
placeholder=
"请输入单据出具人"
:disabled=
"model.bedgrp.srm.djutyp==
='D
'"
:disabled=
"model.bedgrp.srm.djutyp==
'D'||model.bedgrp.srm.djutyp=='
'"
></c-input>
</c-form-item>
</c-col>
...
...
@@ -46,7 +46,7 @@
v-model=
"model.bedgrp.srm.djudat"
style=
"width: 100%"
placeholder=
"请选择单据出具日期"
:disabled=
"model.bedgrp.srm.djutyp==
='D
'"
:disabled=
"model.bedgrp.srm.djutyp==
'D'||model.bedgrp.srm.djutyp=='
'"
></c-date-picker>
</el-form-item>
</c-col>
...
...
@@ -58,7 +58,7 @@
v-model=
"model.bedgrp.srm.djuref"
maxlength=
"40"
placeholder=
"请输入货权单据编号"
:disabled=
"model.bedgrp.srm.djutyp==
='D
'"
:disabled=
"model.bedgrp.srm.djutyp==
'D'||model.bedgrp.srm.djutyp=='
'"
></c-input>
</c-form-item>
</c-col>
...
...
src/views/Business/Lttopn/Aamp.vue
0 → 100644
View file @
0e9aa709
<
template
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"11"
>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"Additional Amount"
prop=
"ltdgrp.cbs.max2.cur"
>
<c-select
v-model=
"model.ltdgrp.cbs.max2.cur"
style=
"width: 100%"
placeholder=
"Please select cur"
disabled
:code=
"codes.curtxt1"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
label-width=
"20px"
prop=
"ltdgrp.cbs.max2.amt"
>
<c-input-currency
v-model=
"model.ltdgrp.cbs.max2.amt"
style=
"width: 100%"
placeholder=
"Please input Additional Amount"
@
keyup
.
enter
.
native=
"max2amtEvent"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"Open Add. Amount"
prop=
"ltdgrp.cbs.opn2.cur"
>
<c-select
v-model=
"model.ltdgrp.cbs.opn2.cur"
style=
"width: 100%"
placeholder=
"Please select cur"
:code=
"codes.curtxt1"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
label-width=
"20px"
prop=
"ltdgrp.cbs.opn2.amt"
>
<c-input-currency
v-model=
"model.ltdgrp.cbs.opn2.amt"
style=
"width: 100%"
placeholder=
"Please input Open Add. Amount"
disabled
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"Covered"
prop=
"ltdgrp.blk.addamtcov"
>
<c-input
type=
"textarea"
v-model=
"model.ltdgrp.blk.addamtcov"
maxlength=
"35"
show-word-limit
placeholder=
"请输入Covered"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!--
<c-col
:span=
"12"
>
<el-form-item
label=
"Additional Amount"
prop=
"ltdgrp.cbs.max2.cur"
>
<c-select
v-model=
"model.ltdgrp.cbs.max2.cur"
style=
"width: 100%"
placeholder=
"请选择Additional Amount"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Additional Amount"
prop=
"ltdgrp.cbs.max2.amt"
>
<c-input
v-model=
"model.ltdgrp.cbs.max2.amt"
placeholder=
"请输入Additional Amount"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Open Add. Amount"
prop=
"ltdgrp.cbs.opn2.cur"
>
<c-select
v-model=
"model.ltdgrp.cbs.opn2.cur"
style=
"width: 100%"
placeholder=
"请选择Open Add. Amount"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Open Add. Amount"
prop=
"ltdgrp.cbs.opn2.amt"
>
<c-input
v-model=
"model.ltdgrp.cbs.opn2.amt"
placeholder=
"请输入Open Add. Amount"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Covered"
prop=
"ltdgrp.blk.addamtcov"
>
<c-input
type=
"textarea"
v-model=
"model.ltdgrp.blk.addamtcov"
maxlength=
"35"
show-word-limit
placeholder=
"请输入Covered"
></c-input>
</el-form-item>
</c-col>
-->
</div>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Letrsv/Event"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
data
()
{
return
{};
},
methods
:
{
...
Event
,
max2amtEvent
()
{
this
.
executeDefault
(
"ltdgrp.cbs.max2.amt"
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
}
});
},
},
created
:
function
()
{},
};
</
script
>
<
style
>
</
style
>
src/views/Business/Lttopn/Ovwp.vue
View file @
0e9aa709
...
...
@@ -11,14 +11,13 @@
<c-fullbox>
<c-input
v-model=
"model.ledgrp.rec.ownref"
maxlength=
"
16
"
maxlength=
"
8
"
placeholder=
"Please input Reference"
style=
"width: 95%"
:disabled=
"true"
></c-input>
<template
slot=
"footer"
>
<c-button
style=
"margin
: 0 10px 0 0
; padding: 0 12px"
style=
"margin
-left:10px
; padding: 0 12px"
size=
"small"
type=
"primary"
@
click=
"onSeainf"
...
...
@@ -32,15 +31,6 @@
>
i
</span
>
</c-button>
<c-button
style=
"margin: 0 0"
size=
"small"
type=
"primary"
:disabled=
"true"
@
click=
"onLetpButgetref"
>
Get
</c-button>
</
template
>
</c-fullbox>
</el-form-item>
...
...
@@ -58,6 +48,7 @@
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"11"
>
<el-form-item
...
...
@@ -93,8 +84,12 @@
style=
"margin: 0 0"
size=
"small"
type=
"primary"
:disabled=
"true"
@
click=
"onLetpButgetref"
:disabled=
"
!model.ltdgrp.rec.ownref
? false
: true
"
@
click=
"onLttpButgetref"
>
Get
</c-button>
...
...
@@ -198,7 +193,8 @@
<c-checkbox
v-model=
"model.lttp.aamp.aammod.addamtflg"
style=
"margin-left: 10px"
disabled
:disabled=
"model.ltdgrp.cbs.max2.amt==''"
@
change=
"openAddDetails"
>
Add. Amount
</c-checkbox
>
</c-col>
...
...
@@ -845,6 +841,41 @@ export default {
this
.
model
.
ltdgrp
.
rec
.
apprultxt
=
""
;
}
},
openAddDetails
(
val
){
if
(
val
===
''
&&
!
(
this
.
model
.
ltdgrp
.
cbs
.
max2
.
amt
==
'0'
&&
this
.
model
.
ltdgrp
.
cbs
.
opn2
.
amt
==
'0'
&&
this
.
model
.
ltdgrp
.
blk
.
addamtcov
===
''
)
){
this
.
$confirm
(
'Do you really want to delete the additional amount of this contract?'
,
'提示'
,{
confirmButtonText
:
'Yes'
,
cancelButtonText
:
'No'
,
type
:
'warning'
,
showClose
:
false
}).
then
(()
=>
{
//yes的执行在这里写
this
.
executeRule
(
'lttp.aamp.aammod.addamtflg'
).
then
(
res
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
model
.
ltdgrp
.
cbs
.
max2
.
amt
=
'0'
;
this
.
model
.
ltdgrp
.
blk
.
addamtcov
=
''
;
this
.
updateModel
(
res
.
data
)
}
})
// this.model.ledgrp.rec.revtyp ='';
// this.model.ledgrp.rec.revtimes = '0';
// this.model.ledgrp.rec.revdat ='';
// this.model.ledgrp.rec.revcum ='';
// this.model.ledgrp.blk.revcls ='';
// this.model.ledgrp.blk.revnotes ='';
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).
catch
(()
=>
{
//No的功能在这里写
this
.
model
.
lttp
.
aamp
.
aammod
.
addamtflg
=
'X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
}
},
created
:
function
()
{},
};
...
...
src/views/Business/Lttopn/index.vue
View file @
0e9aa709
...
...
@@ -30,6 +30,10 @@
<el-tab-pane
label=
"Overview"
name=
"ovwp"
>
<m-ovwp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--aamp PD000001 Additional Amount -->
<el-tab-pane
label=
"Additional Amount"
name=
"aamp"
v-if=
"model.lttp.aamp.aammod.addamtflg"
>
<m-aamp
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
<!--lttp PD000077 Details -->
<el-tab-pane
label=
"Details"
name=
"detp"
>
<c-content>
...
...
@@ -152,7 +156,8 @@ import Coninfp from "~/views/Public/Coninfp";
import
Docpan
from
"~/views/Public/Docpan"
;
import
Doctre
from
"~/views/Public/Doctre"
;
import
Glepan
from
"~/views/Public/Glepan"
;
import
Doxp
from
'~/views/Public/Doxp'
import
Doxp
from
'~/views/Public/Doxp'
;
import
Aamp
from
"./Aamp"
export
default
{
name
:
"Lttopn"
,
...
...
@@ -170,6 +175,7 @@ export default {
"m-detp"
:
Detp
,
'm-doxp'
:
Doxp
,
'm-dogp'
:
Dogp
,
"m-aamp"
:
Aamp
,
},
provide
()
{
return
{
...
...
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