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

页面修改

parent ef99ea1c
...@@ -190,3 +190,14 @@ export function SetBackClassProtocolSign(data) { ...@@ -190,3 +190,14 @@ export function SetBackClassProtocolSign(data) {
}) })
} }
/**
* 销售确认退课协议
*
*/
export function SetBackClassProtocolSure(data) {
return request({
url: '/EducationContract/SetBackClassProtocolSure',
method: 'post',
data
})
}
...@@ -44,12 +44,14 @@ ...@@ -44,12 +44,14 @@
<q-td :props="props"> <q-td :props="props">
<div> <div>
<el-tooltip v-if="AuthorityObj.isShowCopyLink" content="复制链接发送给客人签字" placement="top" effect="light"> <el-tooltip v-if="AuthorityObj.isShowCopyLink" content="复制链接发送给客人签字" placement="top" effect="light">
<q-btn flat v-if=" <q-btn flat v-if=" props.row.AuditStatus == 2 &&props.row.IsSure==0" size="xs"
props.row.AuditStatus == 2 &&
(props.row.PartyASign == '' || props.row.PartyASign == null)" size="xs"
icon="iconfont icon-qianming" color="accent" style="font-weight: 400" @click="CopyUrl(props.row)" icon="iconfont icon-qianming" color="accent" style="font-weight: 400" @click="CopyUrl(props.row)"
label="获取合同链接" /> label="获取合同链接" />
</el-tooltip> </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)" <q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goContract(props.row.Id)"
style="font-weight: 400" label="查看" /> style="font-weight: 400" label="查看" />
</div> </div>
...@@ -59,6 +61,9 @@ ...@@ -59,6 +61,9 @@
</div> </div>
</template> </template>
<script> <script>
import {
SetBackClassProtocolSure,
} from "../../api/sale/contract";
export default { export default {
props: { props: {
dataList: { dataList: {
...@@ -133,6 +138,7 @@ ...@@ -133,6 +138,7 @@
//权限显示对象 //权限显示对象
AuthorityObj: { AuthorityObj: {
isShowCopyLink: false, //是否显示复制链接 isShowCopyLink: false, //是否显示复制链接
isShowSure: false, //是否显示确认按钮
}, },
pageMsg: { pageMsg: {
rowsPerPage: 12, rowsPerPage: 12,
...@@ -150,6 +156,9 @@ ...@@ -150,6 +156,9 @@
if (this.authObj.isShowCopyLink != null && this.authObj.isShowCopyLink) { if (this.authObj.isShowCopyLink != null && this.authObj.isShowCopyLink) {
this.AuthorityObj.isShowCopyLink = 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 @@ ...@@ -158,6 +167,41 @@
Id: Id 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 //复制URL
CopyUrl(item) { CopyUrl(item) {
var oInput = document.createElement("input"); var oInput = document.createElement("input");
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
</div> </div>
</div> </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" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" :input="true"
@input="changePage" /> @input="changePage" />
</div> </div>
...@@ -85,6 +86,7 @@ ...@@ -85,6 +86,7 @@
], ],
authObj: { authObj: {
isShowCopyLink: true, //显示复制链接 isShowCopyLink: true, //显示复制链接
isShowSure: true, //显示确认退课协议按钮
} }
}; };
}, },
...@@ -95,6 +97,10 @@ ...@@ -95,6 +97,10 @@
this.getList(); this.getList();
}, },
methods: { methods: {
//刷新页面
refreshClassProtocol() {
this.getList();
},
//获取校区列表 //获取校区列表
getList() { getList() {
this.loading = true; 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