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
2c94e7bf
Commit
2c94e7bf
authored
Mar 31, 2023
by
chenwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 费用账务试算联动修改
parent
2371d292
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
31 deletions
+42
-31
index.vue
src/business/gitopn/views/index.vue
+4
-0
index.js
src/components/business/setmod/event/index.js
+11
-0
index.vue
src/components/business/setmod/views/index.vue
+24
-31
commonProcess.js
src/mixin/commonProcess.js
+3
-0
No files found.
src/business/gitopn/views/index.vue
View file @
2c94e7bf
...
...
@@ -177,6 +177,7 @@ export default {
return
{
root
:
this
,
activeNames
:
[
"ovwp"
],
reflashSetpan
:
this
.
reloadSetpan
};
},
// 里面包含了Default、Check等的公共处理
...
...
@@ -295,6 +296,9 @@ export default {
this
.
model
.
liaall
.
misamt
=
'0.000'
this
.
model
.
pageId
=
'CtxCache-4079be82-bb5e-4ced-835e-0f20d3268ec2'
this
.
model
.
setmod
.
dspflg
=
'CG'
},
reloadSetpan
()
{
this
.
calcPayDetailPro
();
}
},
created
()
{
...
...
src/components/business/setmod/event/index.js
View file @
2c94e7bf
...
...
@@ -179,5 +179,16 @@ export default {
}
}
loading
.
close
()
},
async
calcPayDetail
()
{
debugger
let
loading
=
this
.
loading
(
'正在请求试算账务'
);
let
rulePath
=
'/service/setmod/calcPayDetail'
;
let
setglgRequest
=
this
.
buildSetglgRequest
();
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
setglgRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
model
.
setmod
.
setglg
=
rtnmsg
.
data
.
setglg
;
}
loading
.
close
()
}
}
src/components/business/setmod/views/index.vue
View file @
2c94e7bf
...
...
@@ -56,16 +56,7 @@
>
</el-option>
</c-select>
<template
slot=
"footer"
>
<c-button
style=
""
size=
"small"
type=
"primary"
icon=
"el-icon-info"
@
click=
"onSetmodDet"
>
</c-button>
</
template
>
<template
slot=
"footer"
></
template
>
</c-fullbox>
</el-form-item>
</c-col>
...
...
@@ -1353,10 +1344,11 @@
// import Event from "~/model/Ditopn/Event";
import
commonProcess
from
"~/mixin/commonProcess"
;
import
SetpanDialog
from
"./dialog.vue"
;
import
Utils
from
"~/utils/index"
;
import
Utils
from
"~/utils/index"
;
import
SetfegRequest
from
'../model/SetfegRequest.js'
;
export
default
{
inject
:
[
"root"
],
inject
:
[
"root"
,
'reflashSetpan'
],
components
:
{
SetpanDialog
},
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
...
...
@@ -1404,7 +1396,7 @@ export default {
},
watch
:
{
"model.setmod.setglg.setgll"
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
var
stm
=
[];
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
if
(
val
[
i
].
rol
!=
""
)
{
...
...
@@ -1441,28 +1433,22 @@ export default {
this
.
model
.
setmod
.
setfeg
.
setfel
.
shift
();
this
.
defaultFunction
();
},
detail1
(
index
,
row
)
{
this
.
executeDefault
(
"setfel.det"
).
then
((
res
)
=>
{
this
.
index
=
index
;
this
.
dialogVisible
=
true
;
this
.
dialog
=
row
;
});
},
dispDefault
(
index
)
{
this
.
executeDefault
(
`setmod.setfeg.setfel(
${
index
}
).mac`
).
then
((
res
)
=>
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
});
detail1
(
index
,
row
)
{
s
this
.
index
=
index
;
this
.
dialogVisible
=
true
;
this
.
dialog
=
row
;
},
dispDefault
(
index
)
{
let
vm
=
this
;
// Utils.copyValueFromVO(vm.model, res.data);
vm
.
reflashSetpan
();
},
// 第二个表格
detail2
(
index
,
row
)
{
const
that
=
this
;
const
rule
=
"setmod.setfeg.setfel("
+
(
index
+
1
)
+
").det"
;
that
.
executeRule
(
rule
).
then
((
res
)
=>
{
that
.
index
=
index
;
that
.
$refs
.
setpanDialog
.
visiable
=
true
;
// that.$refs.setpanDialog.formData = that.model.setmod.setfeg.setfel[index];
that
.
dialog2
=
row
;
});
that
.
index
=
index
;
that
.
$refs
.
setpanDialog
.
visiable
=
true
;
that
.
dialog2
=
row
;
},
// 第三个表格
...
...
@@ -1549,6 +1535,13 @@ export default {
}
},
async
dspChange
(
index
)
{
// 获取记账账号
debugger
const
vm
=
this
;
vm
.
getSetgllAccts
(
1
,
{});
debugger
let
rtnmsg
=
await
this
.
executeDefault
(
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").dsp"
);
...
...
src/mixin/commonProcess.js
View file @
2c94e7bf
...
...
@@ -156,6 +156,9 @@ export default {
}
}
},
async
calcPayDetailPro
()
{
this
.
calcPayDetail
();
},
/**
* Tabs切换事件
* @param {VM} tab
...
...
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