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
1d97b0e3
Commit
1d97b0e3
authored
Aug 05, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ef99ea1c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
4 deletions
+65
-4
contract.js
src/api/sale/contract.js
+11
-0
courserefund-form.vue
src/components/course/courserefund-form.vue
+47
-3
contractRefund.vue
src/pages/sale/contractRefund.vue
+7
-1
No files found.
src/api/sale/contract.js
View file @
1d97b0e3
...
...
@@ -190,3 +190,14 @@ export function SetBackClassProtocolSign(data) {
})
}
/**
* 销售确认退课协议
*
*/
export
function
SetBackClassProtocolSure
(
data
)
{
return
request
({
url
:
'/EducationContract/SetBackClassProtocolSure'
,
method
:
'post'
,
data
})
}
src/components/course/courserefund-form.vue
View file @
1d97b0e3
...
...
@@ -44,12 +44,14 @@
<q-td
:props=
"props"
>
<div>
<el-tooltip
v-if=
"AuthorityObj.isShowCopyLink"
content=
"复制链接发送给客人签字"
placement=
"top"
effect=
"light"
>
<q-btn
flat
v-if=
"
props.row.AuditStatus == 2 &&
(props.row.PartyASign == '' || props.row.PartyASign == null)"
size=
"xs"
<q-btn
flat
v-if=
" props.row.AuditStatus == 2 &&props.row.IsSure==0"
size=
"xs"
icon=
"iconfont icon-qianming"
color=
"accent"
style=
"font-weight: 400"
@
click=
"CopyUrl(props.row)"
label=
"获取合同链接"
/>
</el-tooltip>
<q-btn
flat
v-if=
"AuthorityObj.isShowSure&& props.row.AuditStatus == 2 &&props.row.PartyASign!=null && props.row.PartyASign!='' &&props.row.IsSure == 0"
size=
"xs"
icon=
"iconfont icon-View"
color=
"accent"
@
click=
"SureProtocol(props.row)"
style=
"font-weight: 400"
label=
"确认退课协议"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
color=
"accent"
@
click=
"goContract(props.row.Id)"
style=
"font-weight: 400"
label=
"查看"
/>
</div>
...
...
@@ -59,6 +61,9 @@
</div>
</template>
<
script
>
import
{
SetBackClassProtocolSure
,
}
from
"../../api/sale/contract"
;
export
default
{
props
:
{
dataList
:
{
...
...
@@ -133,6 +138,7 @@
//权限显示对象
AuthorityObj
:
{
isShowCopyLink
:
false
,
//是否显示复制链接
isShowSure
:
false
,
//是否显示确认按钮
},
pageMsg
:
{
rowsPerPage
:
12
,
...
...
@@ -150,6 +156,9 @@
if
(
this
.
authObj
.
isShowCopyLink
!=
null
&&
this
.
authObj
.
isShowCopyLink
)
{
this
.
AuthorityObj
.
isShowCopyLink
=
this
.
authObj
.
isShowCopyLink
;
}
if
(
this
.
authObj
.
isShowSure
!=
null
&&
this
.
authObj
.
isShowSure
)
{
this
.
AuthorityObj
.
isShowSure
=
this
.
authObj
.
isShowSure
;
}
}
},
//跳转至详情
...
...
@@ -158,6 +167,41 @@
Id
:
Id
})
},
//确认退课协议
SureProtocol
(
item
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"提示信息"
,
message
:
"你正在进行确认退课协议,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
var
postMsg
=
{
Id
:
item
.
Id
,
IsSure
:
1
};
SetBackClassProtocolSure
(
postMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"退课协议确认成功!"
,
position
:
"top"
,
});
this
.
$emit
(
"success"
);
}
});
})
},
//复制URL
CopyUrl
(
item
)
{
var
oInput
=
document
.
createElement
(
"input"
);
...
...
src/pages/sale/contractRefund.vue
View file @
1d97b0e3
...
...
@@ -22,7 +22,8 @@
</div>
</div>
</div>
<courserefund-form
:loading=
"loading"
:dataList=
"dataList"
:authObj=
"authObj"
></courserefund-form>
<courserefund-form
:loading=
"loading"
:dataList=
"dataList"
:authObj=
"authObj"
@
success=
"refreshClassProtocol"
>
</courserefund-form>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</div>
...
...
@@ -85,6 +86,7 @@
],
authObj
:
{
isShowCopyLink
:
true
,
//显示复制链接
isShowSure
:
true
,
//显示确认退课协议按钮
}
};
},
...
...
@@ -95,6 +97,10 @@
this
.
getList
();
},
methods
:
{
//刷新页面
refreshClassProtocol
()
{
this
.
getList
();
},
//获取校区列表
getList
()
{
this
.
loading
=
true
;
...
...
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