Commit 517cae99 authored by zhengke's avatar zhengke

修改

parent dd0fda81
...@@ -177,3 +177,16 @@ export function GetBackClassProtocol(data) { ...@@ -177,3 +177,16 @@ export function GetBackClassProtocol(data) {
data data
}) })
} }
/**
* 获取签字
*
*/
export function SetBackClassProtocolSign(data) {
return request({
url: '/EducationContract/SetBackClassProtocolSign',
method: 'post',
data
})
}
...@@ -46,10 +46,12 @@ ...@@ -46,10 +46,12 @@
<q-btn flat size="xs" v-if="props.row.Status == 0 || props.row.Status == 3" icon="edit" color="accent" <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="编辑" /> style="font-weight: 400" @click="EditContract(props.row)" label="编辑" />
<el-tooltip content="复制链接发送给客人签字" placement="top" effect="light"> <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.AuditStatus == 2 &&
(props.row.Sign == '' || props.row.Sign == null) (props.row.Sign == '' || props.row.Sign == null)
" 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="获取合同链接" /> -->
<q-btn flat size="xs" icon="iconfont icon-qianming" color="accent" style="font-weight: 400" @click="CopyUrl(props.row)"
label="获取合同链接" /> label="获取合同链接" />
</el-tooltip> </el-tooltip>
<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)"
...@@ -143,6 +145,18 @@ ...@@ -143,6 +145,18 @@
this.OpenNewUrl('/courseRefund',{ this.OpenNewUrl('/courseRefund',{
Id:Id 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 @@ ...@@ -88,7 +88,6 @@
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
console.log(this.dataList ,"this.dataList ");
} }
}); });
}, },
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
changePage(val) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, }
}, },
}; };
......
...@@ -28,18 +28,21 @@ ...@@ -28,18 +28,21 @@
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
} }
.signature .icoDicv{
width:40px; .signature .icoDicv {
height:40px; width: 40px;
height: 40px;
background: gray; background: gray;
border-radius: 50%; border-radius: 50%;
color:#fff; color: #fff;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
} }
.signature .icoDicv i{
font-size:25px; .signature .icoDicv i {
font-size: 25px;
} }
</style> </style>
<template> <template>
<div class="signature" @touchmove.prevent> <div class="signature" @touchmove.prevent>
...@@ -70,7 +73,8 @@ ...@@ -70,7 +73,8 @@
</template> </template>
<script> <script>
import { import {
SetEducationContractSign SetEducationContractSign,
SetBackClassProtocolSign
} from '../api/sale/contract' } from '../api/sale/contract'
export default { export default {
data() { data() {
...@@ -83,11 +87,15 @@ ...@@ -83,11 +87,15 @@
y: 0, y: 0,
}, },
moving: false, // 是否正在绘制中且移动 moving: false, // 是否正在绘制中且移动
msg:{ msg: {
ContractId: 0, ContractId: 0,
Sign:'' Sign: ''
}, },
Money:0 Money: 0,
Type: 1, //1为电子合同签字 2为退课协议签字
BackMsg: {
Id: 0
}
}; };
}, },
mounted() { mounted() {
...@@ -100,10 +108,15 @@ ...@@ -100,10 +108,15 @@
if (this.$route.query.ContractId) { if (this.$route.query.ContractId) {
this.msg.ContractId = 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; 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: { methods: {
// 触摸(开始) // 触摸(开始)
...@@ -214,6 +227,7 @@ ...@@ -214,6 +227,7 @@
}, },
//提交数据 //提交数据
SaveMsg() { SaveMsg() {
if (this.Type == 1) {
SetEducationContractSign(this.msg).then(res => { SetEducationContractSign(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
...@@ -232,6 +246,26 @@ ...@@ -232,6 +246,26 @@
}); });
} }
}) })
}
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 //base64转Blob
...@@ -258,12 +292,21 @@ ...@@ -258,12 +292,21 @@
}, },
//返回上一级 //返回上一级
goback() { goback() {
if(this.Type==1){
this.$router.push({ this.$router.push({
path: '/contractConfirm', path: '/contractConfirm',
query: { query: {
ContractId: this.msg.ContractId 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