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
fc616fe9
Commit
fc616fe9
authored
Oct 19, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setpan费用账务结算页,修改金额/币种/金额/处理方式触发事件并触发点击会计分录页更新页面
parent
01b0839e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
3 deletions
+46
-3
Setpan.vue
src/views/Public/Setpan.vue
+39
-2
SetpanDialog.vue
src/views/Public/SetpanDialog.vue
+7
-1
No files found.
src/views/Public/Setpan.vue
View file @
fc616fe9
...
...
@@ -461,7 +461,8 @@
</el-table-column>
<el-table-column
label=
"即收币种"
prop=
"acccur"
width=
"70px"
>
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"scope.row.acccur"
>
<c-select
v-model=
"scope.row.acccur"
@
change=
"accucrChange(scope.$index)"
>
<!-- @change="eventfunction('setgll.accur')" -->
<el-option
v-for=
"item in codes.acccur"
:key=
"item.value"
...
...
@@ -483,7 +484,7 @@
</el-table-column>
<el-table-column
label=
"处理方式"
width=
"100px"
>
<
template
#
default=
"scope"
>
<c-select
v-model=
"scope.row.dsp"
>
<c-select
v-model=
"scope.row.dsp"
@
change=
"dspChange(scope.$index)"
>
<el-option
v-for=
"item in codes.setgll_dsp"
:key=
"item.value"
...
...
@@ -1472,6 +1473,21 @@ export default {
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
},
async
accucrChange
(
index
){
let
rtnmsg
=
await
this
.
executeRule
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").acccur"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
)
})
})
}
},
async
fmtaccamtChange
(
index
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").fmtaccamt"
...
...
@@ -1479,6 +1495,27 @@ export default {
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
)
})
})
}
},
async
dspChange
(
index
){
let
rtnmsg
=
await
this
.
executeDefault
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").dsp"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
);
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
)
})
})
}
},
},
...
...
src/views/Public/SetpanDialog.vue
View file @
fc616fe9
...
...
@@ -136,7 +136,7 @@
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"优惠金额"
>
<c-input
v-model=
"formData.dctamt"
@
keyup
.
enter
.
native=
"eventFunction('setmod.setfeg.setfel('+ (idx+1) +').dctamt')"
/>
<c-input
v-model=
"formData.dctamt"
@
keyup
.
enter
.
native=
$event.target.blur()
@
blur=
"eventFunction('setmod.setfeg.setfel('+ (idx+1) +').dctamt')"
/>
</el-form-item>
</c-col>
</c-col>
...
...
@@ -378,6 +378,12 @@ export default {
methods
:
{
saveDialog
()
{
this
.
model
.
setmod
.
setfeg
.
setfel
.
splice
(
this
.
idx
,
1
,
this
.
formData
);
this
.
$nextTick
(()
=>
{
this
.
executeRule
(
"setmod.glemod.glepan"
).
then
((
res
)
=>
{
//TODO 处理数据逻辑
if
(
res
.
respCode
==
SUCCESS
)
this
.
updateModel
(
res
.
data
)
})
})
this
.
visiable
=
false
;
},
beforeClose
(
done
)
{
...
...
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