Commit 517cae99 authored by zhengke's avatar zhengke

修改

parent dd0fda81
......@@ -176,4 +176,17 @@ export function GetBackClassProtocol(data) {
method: 'post',
data
})
}
\ No newline at end of file
}
/**
* 获取签字
*
*/
export function SetBackClassProtocolSign(data) {
return request({
url: '/EducationContract/SetBackClassProtocolSign',
method: 'post',
data
})
}
......@@ -46,10 +46,12 @@
<q-btn flat size="xs" v-if="props.row.Status == 0 || props.row.Status == 3" icon="edit" color="accent"
style="font-weight: 400" @click="EditContract(props.row)" label="编辑" />
<el-tooltip content="复制链接发送给客人签字" placement="top" effect="light">
<q-btn flat size="xs" v-if="
<!-- <q-btn flat size="xs" v-if="
props.row.AuditStatus == 2 &&
(props.row.Sign == '' || props.row.Sign == null)
" icon="iconfont icon-qianming" color="accent" style="font-weight: 400" @click="CopyUrl(props.row)"
label="获取合同链接" /> -->
<q-btn flat size="xs" icon="iconfont icon-qianming" color="accent" style="font-weight: 400" @click="CopyUrl(props.row)"
label="获取合同链接" />
</el-tooltip>
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goContract(props.row.Id)"
......@@ -143,6 +145,18 @@
this.OpenNewUrl('/courseRefund',{
Id:Id
})
},
//复制URL
CopyUrl(item) {
var oInput = document.createElement("input");
var url = window.location.host;
oInput.value = url + "/#/courseRefundH5" + `?Id=${item.Id}`;
document.body.appendChild(oInput);
oInput.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令
oInput.className = "oInput";
oInput.style.display = "none";
this.Info("复制成功!");
}
}
}
......
......@@ -88,7 +88,6 @@
if (res.Code == 1) {
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
console.log(this.dataList ,"this.dataList ");
}
});
},
......@@ -101,7 +100,7 @@
changePage(val) {
this.msg.pageIndex = val;
this.getList();
},
}
},
};
......
......@@ -28,18 +28,21 @@
justify-content: space-around;
align-items: center;
}
.signature .icoDicv{
width:40px;
height:40px;
.signature .icoDicv {
width: 40px;
height: 40px;
background: gray;
border-radius: 50%;
color:#fff;
color: #fff;
text-align: center;
line-height: 40px;
}
.signature .icoDicv i{
font-size:25px;
.signature .icoDicv i {
font-size: 25px;
}
</style>
<template>
<div class="signature" @touchmove.prevent>
......@@ -70,7 +73,8 @@
</template>
<script>
import {
SetEducationContractSign
SetEducationContractSign,
SetBackClassProtocolSign
} from '../api/sale/contract'
export default {
data() {
......@@ -83,11 +87,15 @@
y: 0,
},
moving: false, // 是否正在绘制中且移动
msg:{
msg: {
ContractId: 0,
Sign:''
Sign: ''
},
Money:0
Money: 0,
Type: 1, //1为电子合同签字 2为退课协议签字
BackMsg: {
Id: 0
}
};
},
mounted() {
......@@ -100,10 +108,15 @@
if (this.$route.query.ContractId) {
this.msg.ContractId = this.$route.query.ContractId;
}
if (this.$route.query.Money){
if (this.$route.query.Money) {
this.Money = this.$route.query.Money;
}
if (this.$route.query.Id) {
this.BackMsg.Id = this.$route.query.Id;
}
if (this.$route.query.Type) {
this.Type = this.$route.query.Type;
}
},
methods: {
// 触摸(开始)
......@@ -214,24 +227,45 @@
},
//提交数据
SaveMsg() {
SetEducationContractSign(this.msg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '保存成功!',
position: 'top'
})
this.$router.push({
path: '/contractPay',
query: {
contractId: this.msg.ContractId,
Money: this.Money
}
});
}
})
if (this.Type == 1) {
SetEducationContractSign(this.msg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '保存成功!',
position: 'top'
})
this.$router.push({
path: '/contractPay',
query: {
contractId: this.msg.ContractId,
Money: this.Money
}
});
}
})
}
if(this.Type == 2){
SetBackClassProtocolSign(this.BackMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '保存成功!',
position: 'top'
})
this.$router.push({
path: '/courseRefundH5',
query: {
Id: this.BackMsg.Id,
}
});
}
})
}
},
//base64转Blob
......@@ -258,12 +292,21 @@
},
//返回上一级
goback() {
this.$router.push({
path: '/contractConfirm',
query: {
ContractId: this.msg.ContractId
}
});
if(this.Type==1){
this.$router.push({
path: '/contractConfirm',
query: {
ContractId: this.msg.ContractId
}
});
}else{
this.$router.push({
path: '/courseRefundH5',
query: {
Id: this.BackMsg.Id
}
});
}
},
},
};
......
This diff is collapsed.
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