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
63c82e4e
Commit
63c82e4e
authored
Dec 24, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
9d1be477
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
35 deletions
+66
-35
bill.js
src/api/sale/bill.js
+23
-10
backflow-form.vue
src/components/sale/backflow-form.vue
+1
-1
backinfo-form.vue
src/components/sale/backinfo-form.vue
+42
-24
No files found.
src/api/sale/bill.js
View file @
63c82e4e
...
@@ -17,21 +17,34 @@ export function queryStudentBackClassPage(data) {
...
@@ -17,21 +17,34 @@ export function queryStudentBackClassPage(data) {
* 学员退课审核
* 学员退课审核
*/
*/
export
function
saveBackBillAduit
(
data
)
{
export
function
saveBackBillAduit
(
data
)
{
return
request
({
return
request
({
url
:
'/stu/SetBackBillAduit'
,
url
:
'/stu/SetBackBillAduit'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
}
/**
/**
* 学员退课审核
* 学员退课审核
*/
*/
export
function
queryBackBillAduitInfo
(
data
)
{
export
function
queryBackBillAduitInfo
(
data
)
{
return
request
({
url
:
'/stu/GetBackBillAduitInfo'
,
method
:
'post'
,
data
})
}
/**
* 学员退课预计金额
*/
export
function
queryBackBillMoney
(
data
)
{
return
request
({
return
request
({
url
:
'/stu/GetBackBill
AduitInfo
'
,
url
:
'/stu/GetBackBill
Money
'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
}
\ No newline at end of file
\ No newline at end of file
src/components/sale/backflow-form.vue
View file @
63c82e4e
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
<div
class=
"backflow_Top"
>
<div
class=
"backflow_Top"
>
<div
class=
"back_Circle"
>
{{
item
.
AduitStatusName
}}
</div>
<div
class=
"back_Circle"
>
{{
item
.
AduitStatusName
}}
</div>
<span
class=
"back_Name"
>
{{
item
.
NodeName
}}
</span>
<span
class=
"back_Name"
>
{{
item
.
NodeName
}}
</span>
<span
class=
"back_OrderStatus"
v-if=
"item.AuditWayName"
>
{{
item
.
AuditWayName
}}
</span>
<span
class=
"back_OrderStatus"
v-if=
"item.AuditWayName
&& item.SubList&&item.SubList.length>1
"
>
{{
item
.
AuditWayName
}}
</span>
</div>
</div>
<div
class=
"back_Bottom"
v-for=
"(subItem,subIndex) in item.SubList"
:key=
"subIndex"
>
<div
class=
"back_Bottom"
v-for=
"(subItem,subIndex) in item.SubList"
:key=
"subIndex"
>
<div
class=
"back_subList"
>
<div
class=
"back_subList"
>
...
...
src/components/sale/backinfo-form.vue
View file @
63c82e4e
...
@@ -176,16 +176,14 @@
...
@@ -176,16 +176,14 @@
{{
setingObj
.
ApplyReason
}}
{{
setingObj
.
ApplyReason
}}
</div>
</div>
</div>
</div>
<template>
<span
v-if=
"showType==1"
>
退课金额:
{{
setingObj
.
BackMoney
}}
</span>
</
template
>
<template
v-if=
"setingObj.SpecialNode==1"
>
<template
v-if=
"setingObj.SpecialNode==1"
>
<span>
<span>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"backBillMsg.BackMoney"
class=
"col-12"
label=
"退课金额"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"backBillMsg.BackMoney"
class=
"col-12"
label=
"退课金额"
:rules=
"[val => !!val || '请填退课金额']"
/>
:rules=
"[val => !!val || '请填退课金额']"
/>
</span>
</span>
<span>
系统计算课时费为:(课时)*30(课单价)=7200元,请你最终确认退款金额
</span>
</
template
>
</
template
>
<div
v-if=
"showType==2"
>
<div
v-if=
"showType==2"
>
<div
style=
"display:flex;justify-content:space-between;align-items:center;"
>
<div
style=
"display:flex;justify-content:space-between;align-items:center;"
>
...
@@ -211,7 +209,7 @@
...
@@ -211,7 +209,7 @@
</
template
>
</
template
>
</div>
</div>
<div
class=
"col-6"
style=
"justify-content: flex-end;display:flex;align-items:center;"
>
<div
class=
"col-6"
style=
"justify-content: flex-end;display:flex;align-items:center;"
>
<i
class=
"iconfont icon-aite"
style=
"font-size:20px;margin:7px 20px 0 0;cursor:pointer;"
>
<i
class=
"iconfont icon-aite"
style=
"font-size:20px;margin:7px 20px 0 0;cursor:pointer;"
v-if=
"showType==2"
>
<q-popup-proxy>
<q-popup-proxy>
<q-banner>
<q-banner>
<div
style=
"width:350px;"
>
<div
style=
"width:350px;"
>
...
@@ -231,7 +229,7 @@
...
@@ -231,7 +229,7 @@
</q-banner>
</q-banner>
</q-popup-proxy>
</q-popup-proxy>
</i>
</i>
<q-btn
class=
"q-mr-md"
label=
"
取消
"
@
click=
"closeBackInfo"
/>
<q-btn
class=
"q-mr-md"
label=
"
关闭
"
@
click=
"closeBackInfo"
/>
<q-btn
v-if=
"showType==2"
color=
"accent q-px-md"
label=
"确认"
@
click=
"saveBackClassInfo()"
/>
<q-btn
v-if=
"showType==2"
color=
"accent q-px-md"
label=
"确认"
@
click=
"saveBackClassInfo()"
/>
</div>
</div>
</div>
</div>
...
@@ -242,7 +240,8 @@
...
@@ -242,7 +240,8 @@
<
script
>
<
script
>
import
{
import
{
saveBackBillAduit
saveBackBillAduit
,
queryBackBillMoney
}
from
'../../api/sale/bill'
}
from
'../../api/sale/bill'
import
{
import
{
queryEmployee
queryEmployee
...
@@ -270,8 +269,10 @@
...
@@ -270,8 +269,10 @@
BackMoney
:
0
,
//实际退款金额
BackMoney
:
0
,
//实际退款金额
Description
:
""
,
//审批意见
Description
:
""
,
//审批意见
AuditStatus
:
0
,
//审核状态
AuditStatus
:
0
,
//审核状态
SpecialNode
:
0
,
//是否特殊节点
SpecialNode
:
0
,
//是否特殊节点
RecipientIds
:
""
,
//抄送人
},
},
classPriceObj
:
{},
//课程价格信息
EmployeeList
:
[],
EmployeeList
:
[],
AllemployeeList
:
[],
AllemployeeList
:
[],
tempPeople
:
[],
//抄送人数组
tempPeople
:
[],
//抄送人数组
...
@@ -280,30 +281,47 @@
...
@@ -280,30 +281,47 @@
created
()
{},
created
()
{},
mounted
()
{
mounted
()
{
this
.
backBillMsg
.
BackId
=
this
.
setingObj
.
BackId
;
this
.
backBillMsg
.
BackId
=
this
.
setingObj
.
BackId
;
this
.
backBillMsg
.
SpecialNode
=
this
.
setingObj
.
SpecialNode
;
this
.
backBillMsg
.
SpecialNode
=
this
.
setingObj
.
SpecialNode
;
if
(
this
.
backBillMsg
.
SpecialNode
==
1
)
{
this
.
getBackBillMoney
();
}
this
.
getEmployee
();
this
.
getEmployee
();
},
},
methods
:
{
methods
:
{
getBackBillMoney
()
{
queryBackBillMoney
({
BackId
:
this
.
backBillMsg
.
BackId
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
classPriceObj
=
res
.
Data
;
console
.
log
(
" this.classPriceObj"
,
this
.
classPriceObj
);
}
});
},
closeBackInfo
()
{
closeBackInfo
()
{
this
.
persistent
=
false
;
this
.
persistent
=
false
;
this
.
$emit
(
'close'
);
this
.
$emit
(
'close'
);
},
},
//退课单据审核
//退课单据审核
saveBackClassInfo
()
{
saveBackClassInfo
()
{
saveBackBillAduit
(
this
.
backBillMsg
).
then
(
res
=>
{
console
.
log
(
"this.tempPeople"
,
this
.
tempPeople
);
if
(
res
.
Code
==
1
)
{
if
(
this
.
tempPeople
&&
this
.
tempPeople
.
length
>
0
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
}
color
:
'accent'
,
// saveBackBillAduit(this.backBillMsg).then(res => {
timeout
:
2000
,
// if (res.Code == 1) {
message
:
'审核成功!'
,
// this.$q.notify({
position
:
'top'
// icon: 'iconfont icon-chenggong',
})
// color: 'accent',
//调用父页面成功方法
// timeout: 2000,
this
.
$emit
(
'success'
);
// message: '审核成功!',
this
.
$emit
(
'close'
);
// position: 'top'
}
// })
})
// //调用父页面成功方法
// this.$emit('success');
// this.$emit('close');
// }
// })
},
},
//获取员工列表
//获取员工列表
getEmployee
()
{
getEmployee
()
{
...
...
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