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
7790fddf
Commit
7790fddf
authored
Apr 03, 2023
by
chenwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 表外记账,费用账务,会计分录前后端联调
parent
2c94e7bf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
54 deletions
+77
-54
index.vue
src/business/gitopn/views/index.vue
+3
-5
index.js
src/components/business/setmod/event/index.js
+20
-6
dialog.vue
src/components/business/setmod/views/dialog.vue
+3
-1
index.vue
src/components/business/setmod/views/index.vue
+51
-42
No files found.
src/business/gitopn/views/index.vue
View file @
7790fddf
...
...
@@ -177,7 +177,8 @@ export default {
return
{
root
:
this
,
activeNames
:
[
"ovwp"
],
reflashSetpan
:
this
.
reloadSetpan
// reflashSetpan: this.reloadSetpan,
// setSetgllAccts: this.getSetgllAccts
};
},
// 里面包含了Default、Check等的公共处理
...
...
@@ -296,10 +297,7 @@ 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
()
{
this
.
initModelData
()
...
...
src/components/business/setmod/event/index.js
View file @
7790fddf
...
...
@@ -160,7 +160,7 @@ export default {
async
processSetpan
()
{
//组数据,发post请求
let
loading
=
this
.
loading
(
'正在请求试算费用'
);
let
rulePath
=
'/service/setmod/calcSettleDetail'
;
let
rulePath
=
'/service/
gid/
setmod/calcSettleDetail'
;
let
setfegRequest
=
this
.
buildSetfegRequest
();
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
setfegRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
...
...
@@ -170,7 +170,7 @@ export default {
this
.
model
.
setmod
.
docamt
=
rtnmsg
.
data
.
docamt
;
if
(
this
.
model
.
setmod
.
setfeg
.
setfel
.
length
>
0
)
{
loading
=
this
.
loading
(
'正在请求试算账务'
);
rulePath
=
'/service/setmod/calcPayDetail'
;
rulePath
=
'/service/
gid/
setmod/calcPayDetail'
;
let
setglgRequest
=
this
.
buildSetglgRequest
();
rtnmsg
=
await
Api
.
post
(
rulePath
,
setglgRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
...
...
@@ -180,15 +180,29 @@ export default {
}
loading
.
close
()
},
async
calcPayDetail
()
{
debugger
async
calcPayDetail
()
{
let
loading
=
this
.
loading
(
'正在请求试算账务'
);
let
rulePath
=
'/service/setmod/calcPayDetail'
;
let
setglgRequest
=
this
.
buildSetglgRequest
();
let
rulePath
=
'/service/
gid/
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
()
},
async
setgllAccts
(
index
,
setgll
)
{
this
.
model
.
setmod
.
setglg
.
setgll
=
setgll
;
let
rulePath
=
'/service/gid/setmod/setgll/'
+
index
+
'/accts'
;
let
setglgRequest
=
this
.
buildSetglgRequest
();
setglgRequest
.
setglg
.
setgll
=
setgll
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
setglgRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
model
.
setmod
=
rtnmsg
.
data
;
}
}
}
src/components/business/setmod/views/dialog.vue
View file @
7790fddf
...
...
@@ -372,7 +372,9 @@ export default {
},
computed
:
{
formData
()
{
return
this
.
model
.
setmod
.
setfeg
.
setfel
[
this
.
idx
]
let
formDataTmp
=
this
.
model
.
setmod
.
setfeg
.
setfel
[
this
.
idx
];
formDataTmp
.
fecp1
.
taxrat
=
formDataTmp
.
fecp1
.
taxrat
||
''
;
return
formDataTmp
}
},
methods
:
{
...
...
src/components/business/setmod/views/index.vue
View file @
7790fddf
...
...
@@ -537,7 +537,7 @@
>
<c-select
v-model=
"scope.row.act"
>
<el-option
v-for=
"item in scope.
act
"
v-for=
"item in scope.
row.acts
"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
...
...
@@ -1344,11 +1344,9 @@
// import Event from "~/model/Ditopn/Event";
import
commonProcess
from
"~/mixin/commonProcess"
;
import
SetpanDialog
from
"./dialog.vue"
;
import
Utils
from
"~/utils/index"
;
import
SetfegRequest
from
'../model/SetfegRequest.js'
;
export
default
{
inject
:
[
"root"
,
'reflashSetpan'
],
inject
:
[
"root"
],
components
:
{
SetpanDialog
},
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
...
...
@@ -1413,7 +1411,7 @@ export default {
addRowSetfol
()
{
let
newRow
=
{
...
this
.
newdialog
};
this
.
model
.
setmod
.
setfog
.
setfol
.
splice
(
0
,
0
,
newRow
);
this
.
defaultFunction
();
//
this.defaultFunction();
},
removeRowSetfol
()
{
this
.
model
.
setmod
.
setfog
.
setfol
.
shift
();
...
...
@@ -1433,18 +1431,18 @@ export default {
this
.
model
.
setmod
.
setfeg
.
setfel
.
shift
();
this
.
defaultFunction
();
},
detail1
(
index
,
row
)
{
s
detail1
(
index
,
row
)
{
this
.
index
=
index
;
this
.
dialogVisible
=
true
;
this
.
dialog
=
row
;
},
dispDefault
(
index
)
{
let
vm
=
this
;
// Utils.copyValueFromVO(vm.model, res.data);
vm
.
reflashSetpan
();
let
vm
=
this
;
vm
.
root
.
calcPayDetail
();
},
// 第二个表格
detail2
(
index
,
row
)
{
const
that
=
this
;
that
.
index
=
index
;
that
.
$refs
.
setpanDialog
.
visiable
=
true
;
...
...
@@ -1458,23 +1456,38 @@ export default {
},
async
handleDetail
(
index
,
row
)
{
const
that
=
this
;
const
rule
=
"setmod.setglg.setgll("
+
(
index
+
1
)
+
").det"
;
let
rtnmsg
=
await
this
.
executeRule
(
rule
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
that
.
index
=
index
;
that
.
$refs
.
detpDialog
.
visiable
=
true
;
this
.
detpDialogVisible
=
true
;
that
.
dialog3
=
that
.
model
.
setmod
.
setglg
.
setgll
[
index
];
that
.
rattyp
=
that
.
strCalCode
(
that
.
dialog3
.
rattyp
,
that
.
codes
.
ratetype
);
that
.
dcbrattyp
=
that
.
strCalCode
(
that
.
index
=
index
;
that
.
$refs
.
detpDialog
.
visiable
=
true
;
this
.
detpDialogVisible
=
true
;
that
.
dialog3
=
that
.
model
.
setmod
.
setglg
.
setgll
[
index
];
debugger
that
.
rattyp
=
that
.
strCalCode
(
that
.
dialog3
.
rattyp
,
that
.
codes
.
ratetype
);
that
.
dcbrattyp
=
that
.
strCalCode
(
that
.
dialog3
.
dcbrattyp
,
that
.
codes
.
ratetype
);
that
.
scbrattyp
=
that
.
strCalCode
(
);
that
.
scbrattyp
=
that
.
strCalCode
(
that
.
dialog3
.
scbrattyp
,
that
.
codes
.
ratetype
);
}
);
// const rule = "setmod.setglg.setgll(" + (index + 1) + ").det";
// let rtnmsg = await this.executeRule(rule);
// if (rtnmsg.respCode == SUCCESS) {
// that.index = index;
// that.$refs.detpDialog.visiable = true;
// this.detpDialogVisible = true;
// that.dialog3 = that.model.setmod.setglg.setgll[index];
// that.rattyp = that.strCalCode(that.dialog3.rattyp, that.codes.ratetype);
// that.dcbrattyp = that.strCalCode(
// that.dialog3.dcbrattyp,
// that.codes.ratetype
// );
// that.scbrattyp = that.strCalCode(
// that.dialog3.scbrattyp,
// that.codes.ratetype
// );
// }
},
strCalCode
(
str
,
code
)
{
var
result
=
""
;
...
...
@@ -1534,27 +1547,23 @@ export default {
});
}
},
async
dspChange
(
index
)
{
// 获取记账账号
debugger
const
vm
=
this
;
vm
.
getSetgllAccts
(
1
,
{});
async
dspChange
(
index
)
{
const
vm
=
this
;
vm
.
root
.
setgllAccts
((
index
+
1
),
vm
.
stmData3
);
debugger
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
);
});
});
}
// 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);
// });
// });
// }
},
},
created
:
function
()
{},
...
...
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