|
@@ -46,10 +46,12 @@ |
|
|
<p>预览</p> |
|
|
<p>预览</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="opera_btn" v-if="item.signingMode == '线上' && item.isArchive == '是' "> |
|
|
<div class="opera_btn" v-if="item.signingMode == '线上' && item.isArchive == '是' "> |
|
|
|
|
|
<a :href="'/api'+item.contractPdf" style="color: #333333"> |
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_04.png" alt="" width="35"> |
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_04.png" alt="" width="35"> |
|
|
<p>电子合同</p> |
|
|
<p>电子合同</p> |
|
|
|
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
<div class="opera_btn" v-if="item.signingMode == '线下' "> |
|
|
|
|
|
|
|
|
<div class="opera_btn" v-if="item.signingMode == '线下' " @click="openPopupFile(item.attachement)"> |
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_04.png" alt="" width="35"> |
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_04.png" alt="" width="35"> |
|
|
<p>线下合同</p> |
|
|
<p>线下合同</p> |
|
|
</div> |
|
|
</div> |
|
@@ -58,14 +60,16 @@ |
|
|
</van-swipe-cell> |
|
|
</van-swipe-cell> |
|
|
</van-list> |
|
|
</van-list> |
|
|
</div> |
|
|
</div> |
|
|
<van-popup v-model="show" closeable round position="bottom" > |
|
|
|
|
|
<van-cell-group style="width: 100%;overflow: hidden;padding-top: 10px;padding-bottom: 5%;"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 签字弹出层 --> |
|
|
|
|
|
<van-popup v-model="show" closeable position="right" :style="{ height: '100%' }" > |
|
|
|
|
|
<van-cell-group style="width: 100%;height:100%;overflow: hidden;padding-top: 10px;padding-bottom: 10px;"> |
|
|
<div class="signature-box"> |
|
|
<div class="signature-box"> |
|
|
<vue-esign |
|
|
<vue-esign |
|
|
ref="esign" |
|
|
ref="esign" |
|
|
class="mySign" |
|
|
class="mySign" |
|
|
:width="500" |
|
|
:width="500" |
|
|
:height="225" |
|
|
|
|
|
|
|
|
:height="height" |
|
|
:isCrop="signature.isCrop" |
|
|
:isCrop="signature.isCrop" |
|
|
:lineWidth="signature.lineWidth" |
|
|
:lineWidth="signature.lineWidth" |
|
|
:lineColor="signature.lineColor" |
|
|
:lineColor="signature.lineColor" |
|
@@ -78,6 +82,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
</van-cell-group> |
|
|
</van-cell-group> |
|
|
</van-popup> |
|
|
</van-popup> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 附件弹出层 --> |
|
|
|
|
|
<van-popup v-model="showFile" round closeable position="bottom" :style="{ height: '30%' }" > |
|
|
|
|
|
<van-uploader v-model="fileList" multiple disabled :deletable="false" :show-upload="false" /> |
|
|
|
|
|
</van-popup> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@@ -94,6 +103,7 @@ |
|
|
loading: false, |
|
|
loading: false, |
|
|
finished: false, |
|
|
finished: false, |
|
|
show: false, |
|
|
show: false, |
|
|
|
|
|
showFile: false, |
|
|
fileList:[], |
|
|
fileList:[], |
|
|
listLength:'0', |
|
|
listLength:'0', |
|
|
queryParams:{ |
|
|
queryParams:{ |
|
@@ -113,12 +123,14 @@ |
|
|
isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分 |
|
|
isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分 |
|
|
}, |
|
|
}, |
|
|
signaId:'', |
|
|
signaId:'', |
|
|
|
|
|
height:null |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
if (this.$route.query.type == 'code'){ |
|
|
if (this.$route.query.type == 'code'){ |
|
|
this.showBtn = false; |
|
|
this.showBtn = false; |
|
|
} |
|
|
} |
|
|
|
|
|
this.height = window.screen.height*1.28-20; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getList(){ |
|
|
getList(){ |
|
@@ -142,6 +154,18 @@ |
|
|
this.show = true; |
|
|
this.show = true; |
|
|
this.signaId = id; |
|
|
this.signaId = id; |
|
|
}, |
|
|
}, |
|
|
|
|
|
openPopupFile(file){ |
|
|
|
|
|
this.showFile = true; |
|
|
|
|
|
console.log(file) |
|
|
|
|
|
if (!file) return; |
|
|
|
|
|
let fileArray = file.split(','); |
|
|
|
|
|
fileArray.map(res=>{ |
|
|
|
|
|
this.fileList.push({ |
|
|
|
|
|
url: '/api'+res, |
|
|
|
|
|
isImage: true |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
signaImgFun(url){ |
|
|
signaImgFun(url){ |
|
|
this.signatureImg = url; |
|
|
this.signatureImg = url; |
|
|
// console.log(url) |
|
|
// console.log(url) |
|
@@ -440,10 +464,17 @@ |
|
|
.signature-box{ |
|
|
.signature-box{ |
|
|
border:1px dashed #666; |
|
|
border:1px dashed #666; |
|
|
margin:2px 20px; |
|
|
margin:2px 20px; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
/*canvas{*/ |
|
|
|
|
|
/* height: 100%!important;*/ |
|
|
|
|
|
/*}*/ |
|
|
} |
|
|
} |
|
|
.signature-footer{ |
|
|
.signature-footer{ |
|
|
margin:15px 20px 0; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
transform: rotate(90deg); |
|
|
|
|
|
width: auto; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: 50%; |
|
|
|
|
|
left: 0PX; |
|
|
.clearBtn{ |
|
|
.clearBtn{ |
|
|
margin-left: 15px; |
|
|
margin-left: 15px; |
|
|
} |
|
|
} |
|
|