Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
eddaf3d6
Commit
eddaf3d6
authored
Dec 25, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成单据修改
parent
dc3e6ec3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
20 deletions
+50
-20
bill.js
src/api/sale/bill.js
+18
-7
backbill.vue
src/pages/user/backbill.vue
+32
-13
No files found.
src/api/sale/bill.js
View file @
eddaf3d6
...
@@ -41,10 +41,21 @@ export function queryBackBillAduitInfo(data) {
...
@@ -41,10 +41,21 @@ export function queryBackBillAduitInfo(data) {
* 学员退课预计金额
* 学员退课预计金额
*/
*/
export
function
queryBackBillMoney
(
data
)
{
export
function
queryBackBillMoney
(
data
)
{
return
request
({
return
request
({
url
:
'/stu/GetBackBillMoney'
,
url
:
'/stu/GetBackBillMoney'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
}
\ No newline at end of file
/**
* 学员退课审核
*/
export
function
saveStudentBackFinance
(
data
)
{
return
request
({
url
:
'/stu/SetStudentBackFinance'
,
method
:
'post'
,
data
})
}
src/pages/user/backbill.vue
View file @
eddaf3d6
...
@@ -51,11 +51,10 @@
...
@@ -51,11 +51,10 @@
{{
props
.
row
.
School_Id
>
0
?
props
.
row
.
SchoolName
:
'总部'
}}
{{
props
.
row
.
School_Id
>
0
?
props
.
row
.
SchoolName
:
'总部'
}}
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-
DeptPostList
=
"props"
>
<
template
v-slot:body-cell-
RealityBackMoney
=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<template
v-if=
"props.row.DeptPostList&&props.row.DeptPostList.length>0"
<template
v-if=
"props.row.AuditStatus==2"
>
v-for=
"(item,index) in props.row.DeptPostList"
>
<span
style=
"color:red"
>
{{
props
.
row
.
RealityBackMoney
}}
</span>
<q-badge
:key=
"index"
color=
"red"
:label=
"item.PostName"
class=
"q-mr-xs"
/>
</
template
>
</
template
>
</q-td>
</q-td>
</template>
</template>
...
@@ -66,16 +65,15 @@
...
@@ -66,16 +65,15 @@
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<template
v-if=
"tabCheck=='3'"
>
<template
v-if=
"tabCheck=='3'"
>
<div>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"审核"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"审核"
@
click=
"showBillForm(props.row,2)"
/>
@
click=
"showBillForm(props.row,2)"
/>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div>
<q-btn
v-if=
"tabCheck=='1' && props.row.AuditStatus==2"
flat
size=
"xs"
icon=
"edit"
color=
"accent"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"查看"
style=
"font-weight:400"
label=
"生成单据"
@
click=
"createBillForm(props.row)"
/>
@
click=
"showBillForm(props.row,1)"
/>
</div>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"查看"
@
click=
"showBillForm(props.row,1)"
/>
</
template
>
</
template
>
</q-td>
</q-td>
</template>
</template>
...
@@ -88,7 +86,8 @@
...
@@ -88,7 +86,8 @@
</template>
</template>
<
script
>
<
script
>
import
{
import
{
queryStudentBackClassPage
queryStudentBackClassPage
,
saveStudentBackFinance
,
//生成财务单据
}
from
'../../api/sale/bill'
}
from
'../../api/sale/bill'
import
backbillForm
from
'../../components/sale/backbill-form'
;
import
backbillForm
from
'../../components/sale/backbill-form'
;
export
default
{
export
default
{
...
@@ -143,6 +142,12 @@
...
@@ -143,6 +142,12 @@
field
:
'BackMoney'
,
field
:
'BackMoney'
,
align
:
'left'
align
:
'left'
},
},
{
name
:
'RealityBackMoney'
,
label
:
'实际退费金额'
,
field
:
'RealityBackMoney'
,
align
:
'left'
},
{
{
name
:
'CreateTimeStr'
,
name
:
'CreateTimeStr'
,
label
:
'申请时间'
,
label
:
'申请时间'
,
...
@@ -210,6 +215,20 @@
...
@@ -210,6 +215,20 @@
this
.
getStuBackBill
();
this
.
getStuBackBill
();
},
},
methods
:
{
methods
:
{
//生成财务单据
createBillForm
(
item
)
{
console
.
log
(
"item"
,
item
);
var
billMsg
=
{
BackClassId
:
item
.
BackId
,
IsPublic
:
1
,
CurrencyId
:
1
,
ClientType
:
1
,
ClientId
:
item
.
GuestId
};
saveStudentBackFinance
(
billMsg
).
then
(
res
=>
{
console
.
log
(
"createBillForm"
,
res
);
});
},
//关闭表单
//关闭表单
closeBillForm
()
{
closeBillForm
()
{
this
.
isShowBillForm
=
false
;
this
.
isShowBillForm
=
false
;
...
...
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