Commit 1d97b0e3 authored by 黄奎's avatar 黄奎

页面修改

parent ef99ea1c
......@@ -190,3 +190,14 @@ export function SetBackClassProtocolSign(data) {
})
}
/**
* 销售确认退课协议
*
*/
export function SetBackClassProtocolSure(data) {
return request({
url: '/EducationContract/SetBackClassProtocolSure',
method: 'post',
data
})
}
......@@ -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");
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment