|
|
@@ -1,5 +1,17 @@ |
|
|
|
<template> |
|
|
|
<view> |
|
|
|
<view> |
|
|
|
<view class="cu-bar bg-white cu-title solid-bottom"> |
|
|
|
<view class="action" style="vertical-align: middle;"> |
|
|
|
<text class="margin-right-xs text-blue cuIcon-title"> |
|
|
|
<span></span> |
|
|
|
</text> |
|
|
|
<text class="text-xl"> |
|
|
|
<span>经费开支申报单</span> |
|
|
|
</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<l-label title="流程名称:">{{ taskParam.taskName }}</l-label> |
|
|
|
<l-label title="当前操作:">{{ typeText }}{{ type === 'sign' ? '' : ` [${taskParam.name}]` }}</l-label> |
|
|
|
<l-organize-picker |
|
|
@@ -120,7 +132,8 @@ export default { |
|
|
|
passshow:false, |
|
|
|
password:'', |
|
|
|
PitchonSign:'', |
|
|
|
|
|
|
|
canvasW:'', |
|
|
|
canvasH:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@@ -204,9 +217,9 @@ export default { |
|
|
|
// 取消 |
|
|
|
cancelpswd(){ |
|
|
|
this.passshow = false |
|
|
|
this.password = '' |
|
|
|
this.pitchon = '' |
|
|
|
this.PitchonSign = '' |
|
|
|
// this.password = '' |
|
|
|
// this.pitchon = '' |
|
|
|
// this.PitchonSign = '' |
|
|
|
}, |
|
|
|
// 确认 |
|
|
|
confirmpswd(){ |
|
|
@@ -221,6 +234,7 @@ export default { |
|
|
|
console.log(_this.pitchon.F_StampId) |
|
|
|
let imgurl = _this.API + `/learun/adms/StampPersonal/img?data=${_this.pitchon.F_StampId}` |
|
|
|
console.log(imgurl) |
|
|
|
// _this.clearSign() |
|
|
|
_this.SignaApply(imgurl) |
|
|
|
_this.Signimg = imgurl |
|
|
|
_this.passshow = false |
|
|
@@ -235,15 +249,19 @@ export default { |
|
|
|
}, |
|
|
|
// 绘制签章图片到canvas |
|
|
|
SignaApply(goodsImg){ |
|
|
|
let _this = this |
|
|
|
uni.getImageInfo({ |
|
|
|
src:goodsImg, |
|
|
|
success:function(image){ |
|
|
|
// console.log(image) |
|
|
|
_this.canvasW = image.width / 5;//因为需要所以缩放了8倍 |
|
|
|
_this.canvasH = image.height / 5; |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
context.drawImage(goodsImg,200,180,150,80) |
|
|
|
console.log(_this.canvasW) |
|
|
|
context.drawImage(goodsImg,250,150,100,100) |
|
|
|
context.draw(true,(res)=>{ |
|
|
|
// console.log(res) |
|
|
|
}) |
|
|
|