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


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

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


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

@ -104,7 +104,7 @@
imageHeight : graph.h, imageHeight : graph.h,
imageWidth : graph.w, imageWidth : graph.w,
positionX : graph.x, positionX : graph.x,
positonY : graph.y,
positonY : Number(graph.y) + 0.062,
pdfPath : this.detail.contract, pdfPath : this.detail.contract,
imagePath, imagePath,
// pdfPath : 'https://augcl.oss-cn-guangzhou.aliyuncs.com/test/mytest.pdf', // 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" <view class="form-item"
:key="item.id" :key="item.id"
v-for="(item, index) in formList"> v-for="(item, index) in formList">
<view class="label">
<view class="label"
:class="{req : item.isFill == 1}">
{{ item.title }} {{ item.title }}
<br> <br>
<text>{{ item.descrip }}</text> <text>{{ item.descrip }}</text>
@ -179,6 +180,9 @@
this.formList = res.result.employMaterialList this.formList = res.result.employMaterialList
res.result.employMaterialList.forEach(n => { res.result.employMaterialList.forEach(n => {
if(n.isFill != 1){
return
}
if(n.type == 0){ if(n.type == 0){
this.verification[n.keyName] = '请输入' + n.title this.verification[n.keyName] = '请输入' + n.title
this.form[n.keyName] = '' this.form[n.keyName] = ''
@ -216,6 +220,10 @@
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
} }
&.req::before{
content: '*';
color: #f00;
}
} }
.input{ .input{
margin-left: auto; margin-left: auto;


Loading…
Cancel
Save