Quellcode durchsuchen

审报单和审核添加表头,绘制签章图片

新疆警官学校中职
lb01 vor 2 Jahren
Ursprung
Commit
7d0ee6f1b7
2 geänderte Dateien mit 35 neuen und 5 gelöschten Zeilen
  1. +12
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue
  2. +23
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue

+ 12
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue Datei anzeigen

@@ -1,5 +1,17 @@
<template>
<view class="page">
<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>
<view v-if="ready">
<l-input @input="setValue('FundsApply.EnCode', $event)" :value="getValue('FundsApply.EnCode')"
title="申报单号" /> <!-- v-if="!edit" :disabled="!edit" -->


+ 23
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue Datei anzeigen

@@ -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)
})


Laden…
Abbrechen
Speichern