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
e53b665d
Commit
e53b665d
authored
Jun 12, 2023
by
WH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复brtdcr的BUG
parent
e3680dd3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
156 additions
and
136 deletions
+156
-136
buildCommons.js
src/business/brtdcr/event/buildCommons.js
+12
-6
index.js
src/business/brtdcr/event/index.js
+22
-20
index.js
src/business/brtdcr/model/index.js
+0
-45
Utlp.vue
src/business/brtdcr/views/Utlp.vue
+115
-65
index.vue
src/business/brtdcr/views/index.vue
+7
-0
No files found.
src/business/brtdcr/event/buildCommons.js
View file @
e53b665d
...
...
@@ -19,14 +19,20 @@ export default {
},
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
[];
if
(
model
.
gidgrp
.
apl
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
gidgrp
.
apl
));
if
(
model
.
brdgrp
.
prb
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
brdgrp
.
prb
));
}
if
(
model
.
gidgrp
.
adv
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
gidgrp
.
adv
));
if
(
model
.
brdgrp
.
apl
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
brdgrp
.
apl
));
}
if
(
model
.
gidgrp
.
ben
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
gidgrp
.
ben
));
if
(
model
.
brdgrp
.
ben
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
brdgrp
.
ben
));
}
if
(
model
.
brdgrp
.
oth
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
brdgrp
.
oth
));
}
if
(
model
.
brdgrp
.
acb
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
brdgrp
.
acb
));
}
let
dataObj
=
{
rec
:
{
...
...
src/business/brtdcr/event/index.js
View file @
e53b665d
...
...
@@ -104,7 +104,7 @@ export default {
// 业务信息=》基本信息=》保函编号-----获取保函编号
async
queryOwnref
()
{
let
params
=
{
ptainr
:
this
.
model
.
gi
dgrp
.
apl
.
pts
.
ptainr
,
ptainr
:
this
.
model
.
br
dgrp
.
apl
.
pts
.
ptainr
,
businessType
:
'LG'
,
tbl
:
'LG'
,
};
...
...
@@ -112,7 +112,7 @@ export default {
let
res
=
await
Api
.
post
(
'/service/brtdcr/getOwnRef'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
loading
.
close
();
this
.
model
.
gi
dgrp
.
rec
.
ownref
=
res
.
data
;
this
.
model
.
br
dgrp
.
rec
.
ownref
=
res
.
data
;
}
},
// 获取brtdcr弹框表格数据
...
...
@@ -128,6 +128,7 @@ export default {
this
.
root
.
promptData
.
data
=
res
.
data
.
ptaInfos
;
this
.
root
.
promptData
.
type
=
type
;
}
debugger
},
// 选中brtdcr弹框表格的行数据
async
selectGridEtyPromptData
(
row
)
{
...
...
@@ -136,7 +137,8 @@ export default {
};
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
// this.$set(this.model.brdgrp, row.role.toLowerCase(), res.data);
this
.
$set
(
this
.
model
.
brdgrp
,
row
.
role
.
toLowerCase
()
,
res
.
data
);
}
},
// 业务信息=》基本信息=》支出目的
...
...
@@ -144,23 +146,23 @@ export default {
this
.
handleChangeForm
(
key
,
value
);
},
// 初始化保函开立类型码表下拉列表
async
queryHndtypCodeTableList
(
trnName
)
{
let
params
=
{
gitp
:
{
swiftflg
:
this
.
model
.
gitp
.
swiftflg
,
},
gidgrp
:
{
rec
:
{
purpos
:
this
.
model
.
gidgrp
.
rec
.
purpos
,
},
},
transName
:
trnName
.
toUpperCase
(),
};
let
res
=
await
Api
.
post
(
'/service/brtdcr/initHndtyp'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
codes
,
'voHndtyp'
,
res
.
data
);
}
},
//
async queryHndtypCodeTableList(trnName) {
//
let params = {
//
gitp: {
//
swiftflg: this.model.gitp.swiftflg,
//
},
//
gidgrp: {
//
rec: {
//
purpos: this.model.gidgrp.rec.purpos,
//
},
//
},
//
transName: trnName.toUpperCase(),
//
};
//
let res = await Api.post('/service/brtdcr/initHndtyp', params);
//
if (res.respCode == SUCCESS) {
//
this.$set(this.codes, 'voHndtyp', res.data);
//
}
//
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg
()
{
this
.
queryHndtypCodeTableList
(
this
.
root
.
trnName
);
...
...
src/business/brtdcr/model/index.js
View file @
e53b665d
...
...
@@ -3,51 +3,6 @@ import Pub from '~/components/business/commonModel/index.js';
export
default
class
Brtdcr
{
constructor
()
{
this
.
data
=
{
gitp
:{
swiftflg
:
''
,
},
gidgrp
:{
ghd
:
{
// wahnum: '',
// remark: '',
// bustyp: '',
segtyp
:
''
,
},
rec
:{
ownref
:
''
},
con
:
{
pts
:
new
Pts
().
data
,
},
iss
:
{
pts
:
new
Pts
().
data
,
},
ben
:
{
pts
:
new
Pts
().
data
,
},
atb
:
{
pts
:
new
Pts
().
data
,
},
avc
:
{
pts
:
new
Pts
().
data
,
},
apl
:
{
pts
:
new
Pts
().
data
,
},
adv
:
{
pts
:
new
Pts
().
data
,
},
ctr
:
{
pts
:
new
Pts
().
data
,
},
cbs
:
{
max
:
{
cur
:
''
,
amt
:
''
,
},
},
},
brtp
:
{
matp
:{
mattxtlab
:
''
...
...
src/business/brtdcr/views/Utlp.vue
View file @
e53b665d
...
...
@@ -164,72 +164,122 @@
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"交单人"
prop=
"brdgrp.rec.docprbrol"
>
<c-select
disabled
v-model=
"model.brdgrp.rec.docprbrol"
style=
"width: 100%"
placeholder=
"请选择内容"
>
<el-option
v-for=
"item in codes.docprbrol"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<c-ptap1
:model=
"model"
:argadr=
"{
title: '',
grp: 'brdgrp',
rol: 'prb',
}"
:disabled=
"this.flag1"
>
</c-ptap1>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"交单人"
prop=
"brdgrp.rec.docprbrol"
>
<c-select
disabled
:code=
"codes.docprbrol"
v-model=
"model.brdgrp.rec.docprbrol"
style=
"width: 100%"
placeholder=
"请选择"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"交单人地址编码"
prop=
"brdgrp.prb.pts.extkey"
>
<c-fullbox>
<c-input
v-model=
"model.brdgrp.prb.pts.extkey"
maxlength=
"16"
placeholder=
"请输入地址编码"
:disabled=
"model.brdgrp.rec.docprbrol != 'PRB'"
@
keyup
.
enter
.
native=
"
queryGridEtyPromptDialogData('PRB', 'C')
"
></c-input>
<
template
slot=
"footer"
>
<c-button
style=
"margin: 0 10px 0 10px; padding: 0 12px"
size=
"small"
type=
"primary"
@
click=
"model.brtp.prbp.ptsget.sdamod.seainf"
icon=
"el-icon-search"
>
</c-button>
<c-button
style=
"margin: 0 0"
size=
"small"
type=
"primary"
icon=
"el-icon-info"
>
</c-button>
</
template
>
</c-fullbox>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"名称地址"
prop=
"brdgrp.prb.pts.adrblk"
>
<c-input
:rows=
"4"
type=
"textarea"
v-model=
"model.brdgrp.prb.pts.adrblk"
maxlength=
"300"
show-word-limit
placeholder=
"请输入名称地址"
:disabled=
"model.brdgrp.rec.docprbrol != 'PRB'"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"付款人"
prop=
"brdgrp.rec.payrol"
>
<c-select
disabled
:code=
"codes.payrol"
v-model=
"model.brdgrp.rec.payrol"
style=
"width: 100%"
placeholder=
"请选择"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"付款人地址编码"
prop=
"brdgrp.oth.pts.extkey"
>
<c-fullbox>
<c-input
v-model=
"model.brdgrp.oth.pts.extkey"
maxlength=
"16"
placeholder=
"请输入地址编码"
disabled
@
keyup
.
enter
.
native=
"
queryGridEtyPromptDialogData('OTH', 'C')
"
></c-input>
<
template
slot=
"footer"
>
<c-button
style=
"margin: 0 10px 0 10px; padding: 0 12px"
size=
"small"
type=
"primary"
@
click=
"model.brtp.prbp.ptsget.sdamod.seainf"
icon=
"el-icon-search"
>
</c-button>
<c-button
style=
"margin: 0 0"
size=
"small"
type=
"primary"
icon=
"el-icon-info"
>
</c-button>
</
template
>
</c-fullbox>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"名称地址"
prop=
"brdgrp.oth.pts.adrblk"
>
<c-input
disabled
:rows=
"4"
type=
"textarea"
v-model=
"model.brdgrp.oth.pts.adrblk"
maxlength=
"300"
show-word-limit
placeholder=
"请输入名称地址"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"付款人"
prop=
"brdgrp.rec.payrol"
>
<c-select
disabled
v-model=
"model.brdgrp.rec.payrol"
style=
"width: 100%"
placeholder=
"请选择付款人"
>
<el-option
v-for=
"item in codes.payrol"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<c-ptap1
:model=
"model"
:argadr=
"{
title: '',
grp: 'brtp',
rol: 'oth',
}"
:disabled=
"true"
:isAdrblk=
"false"
:disabled1=
"true"
>
</c-ptap1>
</c-col>
</c-col>
<c-col
:span=
"12"
>
...
...
src/business/brtdcr/views/index.vue
View file @
e53b665d
...
...
@@ -81,6 +81,13 @@
:handleStash=
"handleStash"
>
</c-function-btn>
<c-grid-ety-prompt-dialog
ref=
"etyDialog"
:promptData=
"promptData"
v-on:select-ety=
"selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</div>
...
...
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