|
@@ -40,19 +40,20 @@ |
|
|
class="sign-canvas" |
|
|
class="sign-canvas" |
|
|
></canvas> |
|
|
></canvas> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="sign-action padding-bottom text-right"> |
|
|
|
|
|
<l-button @click="clearSign" color="red" style="margin-right: 15px;">清空签名板</l-button> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="cu-form-group"><view class="title">签章:</view></view> |
|
|
|
|
|
<view v-if="" class="Signwrap"> |
|
|
|
|
|
<image style="width: 50px;height: 50px;margin: 15px;" :src="Signimg"></image> |
|
|
|
|
|
</view> |
|
|
<view class="sign-action padding-bottom text-right"> |
|
|
<view class="sign-action padding-bottom text-right"> |
|
|
<!-- <l-button @click="Signature" color="" style="color: #FFFFFF; background: #0081ff; margin-right: 15px;">签章</l-button> --> |
|
|
<!-- <l-button @click="Signature" color="" style="color: #FFFFFF; background: #0081ff; margin-right: 15px;">签章</l-button> --> |
|
|
<picker class="cu-btn df" style="background-color: #0081ff;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Signature" :range="Signaitem" range-key="F_StampName">个人签章</picker> |
|
|
<picker class="cu-btn df" style="background-color: #0081ff;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Signature" :range="Signaitem" range-key="F_StampName">个人签章</picker> |
|
|
<picker v-if="ComStatus" class="cu-btn df" style="background-color: #fe955c;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Commonture" :range="Commonseal" range-key="F_StampName">学校签章</picker> |
|
|
<picker v-if="ComStatus" class="cu-btn df" style="background-color: #fe955c;color: #ffffff;margin-right: 15px;border-radius: 5px;" @change="Commonture" :range="Commonseal" range-key="F_StampName">学校签章</picker> |
|
|
<l-button @click="clearSign" color="red" style="margin-right: 15px;">清空签名板</l-button> |
|
|
|
|
|
|
|
|
<l-button @click="clearcom" color="red" style="margin-right: 15px;">清空签章</l-button> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<!-- <view> |
|
|
|
|
|
<image style="width: 100px;height: 100px;" :src="Signimg"></image> |
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<l-textarea v-model="remark" :placeholder="`输入${typeText}意见`" title="审核意见:" required /> |
|
|
<l-textarea v-model="remark" :placeholder="`输入${typeText}意见`" title="审核意见:" required /> |
|
|
|
|
|
|
|
|
<!-- 弹层 --> |
|
|
<!-- 弹层 --> |
|
@@ -133,7 +134,9 @@ export default { |
|
|
password:'', |
|
|
password:'', |
|
|
PitchonSign:'', |
|
|
PitchonSign:'', |
|
|
canvasW:'', |
|
|
canvasW:'', |
|
|
canvasH:'' |
|
|
|
|
|
|
|
|
canvasH:'', |
|
|
|
|
|
signshow:false, |
|
|
|
|
|
ConfirmSign:'' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@@ -141,14 +144,12 @@ export default { |
|
|
await this.init() |
|
|
await this.init() |
|
|
// this.Signimg = this.API + `/learun/adms/user/img?data=${'System'}` |
|
|
// this.Signimg = this.API + `/learun/adms/user/img?data=${'System'}` |
|
|
// this.Signimg = this.API + `/learun/adms/StampPersonal/img?data=${'47201f98-7611-4052-b271-bb99bd7b1d3c'}` |
|
|
// this.Signimg = this.API + `/learun/adms/StampPersonal/img?data=${'47201f98-7611-4052-b271-bb99bd7b1d3c'}` |
|
|
// console.log(this.Signimg) |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 页面初始化 |
|
|
// 页面初始化 |
|
|
async init() { |
|
|
async init() { |
|
|
this.taskParam = this.GET_PARAM() |
|
|
this.taskParam = this.GET_PARAM() |
|
|
console.log(this.taskParam) |
|
|
|
|
|
this.type = this.taskParam.type |
|
|
this.type = this.taskParam.type |
|
|
this.typeText = this.taskParam.type === 'sign' ? '加签' : '审核' |
|
|
this.typeText = this.taskParam.type === 'sign' ? '加签' : '审核' |
|
|
await this.getComstatus() |
|
|
await this.getComstatus() |
|
@@ -164,7 +165,6 @@ export default { |
|
|
getSigna(){ |
|
|
getSigna(){ |
|
|
return this.HTTP_GET("learun/adms/StampPersonal/list",{},"加载数据时出错").then(async res=>{ |
|
|
return this.HTTP_GET("learun/adms/StampPersonal/list",{},"加载数据时出错").then(async res=>{ |
|
|
if(res){ |
|
|
if(res){ |
|
|
console.log(res) |
|
|
|
|
|
this.Signaitem = res |
|
|
this.Signaitem = res |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@@ -174,7 +174,6 @@ export default { |
|
|
getComstatus(){ |
|
|
getComstatus(){ |
|
|
return this.HTTP_GET("learun/adms/StampPersonal/ishaveright",{},"加载数据时出错").then(async res=>{ |
|
|
return this.HTTP_GET("learun/adms/StampPersonal/ishaveright",{},"加载数据时出错").then(async res=>{ |
|
|
if(res){ |
|
|
if(res){ |
|
|
console.log(res) |
|
|
|
|
|
this.ComStatus = res.result |
|
|
this.ComStatus = res.result |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@@ -184,7 +183,6 @@ export default { |
|
|
getCommonseal(){ |
|
|
getCommonseal(){ |
|
|
return this.HTTP_GET("learun/adms/StampPersonal/schoollist",{},"加载数据时出错").then(async res=>{ |
|
|
return this.HTTP_GET("learun/adms/StampPersonal/schoollist",{},"加载数据时出错").then(async res=>{ |
|
|
if(res){ |
|
|
if(res){ |
|
|
console.log(res) |
|
|
|
|
|
this.Commonseal = res |
|
|
this.Commonseal = res |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@@ -218,26 +216,19 @@ export default { |
|
|
cancelpswd(){ |
|
|
cancelpswd(){ |
|
|
this.passshow = false |
|
|
this.passshow = false |
|
|
this.password = '' |
|
|
this.password = '' |
|
|
// this.pitchon = '' |
|
|
|
|
|
// this.PitchonSign = '' |
|
|
|
|
|
}, |
|
|
}, |
|
|
// 确认 |
|
|
// 确认 |
|
|
confirmpswd(){ |
|
|
confirmpswd(){ |
|
|
console.log(this.pitchon) |
|
|
|
|
|
let _this = this |
|
|
let _this = this |
|
|
this.HTTP_POST('learun/adms/StampPersonal/equalPassword', { |
|
|
this.HTTP_POST('learun/adms/StampPersonal/equalPassword', { |
|
|
F_StampId:this.pitchon.F_StampId, |
|
|
F_StampId:this.pitchon.F_StampId, |
|
|
F_Password: this.MD5(this.password) |
|
|
F_Password: this.MD5(this.password) |
|
|
}).then(async res=>{ |
|
|
}).then(async res=>{ |
|
|
if(res.result){ |
|
|
if(res.result){ |
|
|
console.log(res) |
|
|
|
|
|
console.log(_this.pitchon.F_StampId) |
|
|
|
|
|
|
|
|
_this.ConfirmSign = _this.PitchonSign |
|
|
let imgurl = _this.API + `/learun/adms/StampPersonal/img?data=${_this.pitchon.F_StampId}` |
|
|
let imgurl = _this.API + `/learun/adms/StampPersonal/img?data=${_this.pitchon.F_StampId}` |
|
|
// console.log(imgurl) |
|
|
|
|
|
context.clearRect(250,150,100,100) |
|
|
|
|
|
// _this.clearSign() |
|
|
|
|
|
_this.SignaApply(imgurl) |
|
|
|
|
|
_this.Signimg = imgurl |
|
|
_this.Signimg = imgurl |
|
|
|
|
|
_this.signshow = true |
|
|
_this.passshow = false |
|
|
_this.passshow = false |
|
|
_this.password = '' |
|
|
_this.password = '' |
|
|
_this.pitchon = '' |
|
|
_this.pitchon = '' |
|
@@ -254,7 +245,6 @@ export default { |
|
|
uni.getImageInfo({ |
|
|
uni.getImageInfo({ |
|
|
src:goodsImg, |
|
|
src:goodsImg, |
|
|
success:function(image){ |
|
|
success:function(image){ |
|
|
// console.log(image) |
|
|
|
|
|
_this.canvasW = image.width / 5;//因为需要所以缩放了8倍 |
|
|
_this.canvasW = image.width / 5;//因为需要所以缩放了8倍 |
|
|
_this.canvasH = image.height / 5; |
|
|
_this.canvasH = image.height / 5; |
|
|
} |
|
|
} |
|
@@ -284,7 +274,6 @@ export default { |
|
|
this.submitPostData.auditors = JSON.stringify({[this.reviewerListId]:this.reviewer.toString()}) |
|
|
this.submitPostData.auditors = JSON.stringify({[this.reviewerListId]:this.reviewer.toString()}) |
|
|
delete this.submitPostData.formreq |
|
|
delete this.submitPostData.formreq |
|
|
// this.submitPostData.auditors[this.reviewerListId] = this.reviewer |
|
|
// this.submitPostData.auditors[this.reviewerListId] = this.reviewer |
|
|
console.log(this.submitPostData) |
|
|
|
|
|
const success = await this.HTTP_POST( |
|
|
const success = await this.HTTP_POST( |
|
|
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/auditors', |
|
|
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/auditors', |
|
|
this.submitPostData, |
|
|
this.submitPostData, |
|
@@ -320,10 +309,9 @@ export default { |
|
|
taskId: this.taskParam.taskId, |
|
|
taskId: this.taskParam.taskId, |
|
|
des: this.remark, |
|
|
des: this.remark, |
|
|
formreq: this.taskParam.formreq, |
|
|
formreq: this.taskParam.formreq, |
|
|
stamp: this.PitchonSign |
|
|
|
|
|
|
|
|
stamp: this.ConfirmSign |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log(postData) |
|
|
|
|
|
|
|
|
|
|
|
if (this.type === 'sign') { |
|
|
if (this.type === 'sign') { |
|
|
postData.userId = this.staff |
|
|
postData.userId = this.staff |
|
@@ -397,7 +385,6 @@ export default { |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
if(Object.keys(userList).length==0){ |
|
|
if(Object.keys(userList).length==0){ |
|
|
console.log('为空') |
|
|
|
|
|
const success = await this.HTTP_POST( |
|
|
const success = await this.HTTP_POST( |
|
|
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit', |
|
|
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit', |
|
|
postData, |
|
|
postData, |
|
@@ -464,7 +451,7 @@ export default { |
|
|
signEnd(e) { |
|
|
signEnd(e) { |
|
|
touchs = [] |
|
|
touchs = [] |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 手写板事件(绘出线型) |
|
|
// 手写板事件(绘出线型) |
|
|
drawLine() { |
|
|
drawLine() { |
|
|
if (touchs.length < 2) { |
|
|
if (touchs.length < 2) { |
|
@@ -498,7 +485,11 @@ export default { |
|
|
this.canvasInit() |
|
|
this.canvasInit() |
|
|
}) |
|
|
}) |
|
|
// #endif |
|
|
// #endif |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
clearcom(){ |
|
|
|
|
|
this.Signimg = '' |
|
|
|
|
|
this.ConfirmSign = '' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
@@ -605,4 +596,10 @@ export default { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.Signwrap{ |
|
|
|
|
|
margin: 11px; |
|
|
|
|
|
border: 1px dashed #444444; |
|
|
|
|
|
background: #ffffff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |