Browse Source

fix: 修复电子签名位置偏移并调整表单验证逻辑

- 修正electronicSignature.vue中签名位置Y坐标计算错误
- 在postConsult.vue中添加必填字段标记和验证逻辑
- 调整certification.vue中技能证书上传位置和验证规则
master
前端-胡立永 1 month ago
parent
commit
44233804cb
4 changed files with 35 additions and 23 deletions
  1. +3
    -1
      components/list/userList/userItem.vue
  2. +22
    -20
      pages_order/auth/certification.vue
  3. +1
    -1
      pages_order/contract/electronicSignature.vue
  4. +9
    -1
      pages_order/work/postConsult.vue

+ 3
- 1
components/list/userList/userItem.vue View File

@ -59,8 +59,10 @@
<!-- 09月23日 1620 -->
{{ $dayjs(createTime || item.createTime).format('YYYY-MM-DD') }}
</view>
<!-- @click.stop="callPhone" -->
<view class="phone"
@click.stop="callPhone">
>
<image src="/static/image/home/phone.png" mode=""></image>
联系他
</view>


+ 22
- 20
pages_order/auth/certification.vue View File

@ -43,6 +43,25 @@
v-model="form.phone"/>
</view>
<view class="form-item">
<view class="title">
技能证书
</view>
</view>
<view class="form-item">
<uv-upload
:fileList="skillBook"
:maxCount="9"
width="280rpx"
height="280rpx"
multiple
name="skillBook"
@afterRead="afterRead"
@delete="deleteImage">
</uv-upload>
</view>
<view class="form-item">
<view class="title">
请上传身份证人像面照片选填
@ -52,6 +71,7 @@
</view>
</view>
<view class="form-item">
<uv-upload
:fileList="fileList"
@ -98,25 +118,6 @@
</uv-upload>
</view>
<view class="form-item">
<view class="title">
技能证书选填
</view>
</view>
<view class="form-item">
<uv-upload
:fileList="skillBook"
:maxCount="9"
width="280rpx"
height="280rpx"
multiple
name="skillBook"
@afterRead="afterRead"
@delete="deleteImage">
</uv-upload>
</view>
</view>
@ -258,7 +259,8 @@
name:'请输入姓名',
cerNo:'请输入身份证号码',
phone:'请输入电话号码',
// image:'',
skillBook:'请上传技能证书',
image:'身份证照片不能为空',
})) {
return
}


+ 1
- 1
pages_order/contract/electronicSignature.vue View File

@ -104,7 +104,7 @@
imageHeight : graph.h,
imageWidth : graph.w,
positionX : graph.x,
positonY : graph.y,
positonY : Number(graph.y) + 0.062,
pdfPath : this.detail.contract,
imagePath,
// pdfPath : 'https://augcl.oss-cn-guangzhou.aliyuncs.com/test/mytest.pdf',


+ 9
- 1
pages_order/work/postConsult.vue View File

@ -11,7 +11,8 @@
<view class="form-item"
:key="item.id"
v-for="(item, index) in formList">
<view class="label">
<view class="label"
:class="{req : item.isFill == 1}">
{{ item.title }}
<br>
<text>{{ item.descrip }}</text>
@ -179,6 +180,9 @@
this.formList = res.result.employMaterialList
res.result.employMaterialList.forEach(n => {
if(n.isFill != 1){
return
}
if(n.type == 0){
this.verification[n.keyName] = '请输入' + n.title
this.form[n.keyName] = ''
@ -216,6 +220,10 @@
font-size: 24rpx;
font-weight: 500;
}
&.req::before{
content: '*';
color: #f00;
}
}
.input{
margin-left: auto;


Loading…
Cancel
Save