|
|
|
@ -54,15 +54,15 @@
|
|
|
|
<!-- 身份证输入 -->
|
|
|
|
<!-- 身份证输入 -->
|
|
|
|
<view class="form-item">
|
|
|
|
<view class="form-item">
|
|
|
|
<text class="form-label">※ 身份证件:</text>
|
|
|
|
<text class="form-label">※ 身份证件:</text>
|
|
|
|
<view class="id-input-group idcard-group">
|
|
|
|
<view class="id-input-group idcard-group">
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
v-model="select.idcard"
|
|
|
|
v-model="select.idcard"
|
|
|
|
placeholder="请输入身份证"
|
|
|
|
placeholder="请输入身份证"
|
|
|
|
class="form-input input-field"
|
|
|
|
class="form-input input-field"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<!-- #ifdef H5 -->
|
|
|
|
<!-- #ifdef H5 -->
|
|
|
|
<view class="id-action" @click="getIdcard">查询身份证</view>
|
|
|
|
<view class="id-action" @click="getIdcard">查询身份证</view>
|
|
|
|
<!-- #endif -->
|
|
|
|
<!-- #endif -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@ -115,6 +115,12 @@
|
|
|
|
getVisitDateRange(visitData)
|
|
|
|
getVisitDateRange(visitData)
|
|
|
|
}}</text>
|
|
|
|
}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">到访时间:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{
|
|
|
|
|
|
|
|
visitData.time ? visitData.time : ""
|
|
|
|
|
|
|
|
}}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="info-item" v-if="visitData.visit_time_detail">
|
|
|
|
<view class="info-item" v-if="visitData.visit_time_detail">
|
|
|
|
<text class="info-label">到访时段:</text>
|
|
|
|
<text class="info-label">到访时段:</text>
|
|
|
|
<text class="info-value"
|
|
|
|
<text class="info-value"
|
|
|
|
@ -144,7 +150,24 @@
|
|
|
|
<text class="info-value">{{ visitData.plate }}</text>
|
|
|
|
<text class="info-value">{{ visitData.plate }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 被访人信息 -->
|
|
|
|
|
|
|
|
<view class="info-section">
|
|
|
|
|
|
|
|
<text class="section-title">被访人信息</text>
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">被访人:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{
|
|
|
|
|
|
|
|
visitData.accept_admin ? visitData.accept_admin.name : "-"
|
|
|
|
|
|
|
|
}}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<!-- <view class="info-item" v-if="visitData.accompanyName">
|
|
|
|
|
|
|
|
<text class="info-label">陪同人:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{ visitData.accompanyName }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="info-item" v-if="visitData.goodsName">
|
|
|
|
|
|
|
|
<text class="info-label">收货人:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{ visitData.goodsName }}</text>
|
|
|
|
|
|
|
|
</view> -->
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<!-- 拜访人信息 -->
|
|
|
|
<!-- 拜访人信息 -->
|
|
|
|
<view class="info-section">
|
|
|
|
<view class="info-section">
|
|
|
|
<text class="section-title">拜访人信息</text>
|
|
|
|
<text class="section-title">拜访人信息</text>
|
|
|
|
@ -172,11 +195,24 @@
|
|
|
|
<text class="info-label">单位名称:</text>
|
|
|
|
<text class="info-label">单位名称:</text>
|
|
|
|
<text class="info-value">{{ visitData.company_name }}</text>
|
|
|
|
<text class="info-value">{{ visitData.company_name }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="info-item" v-if="visitData.cda">
|
|
|
|
<view class="info-item">
|
|
|
|
<text class="info-label">CDA编号:</text>
|
|
|
|
<text class="info-label">状态:</text>
|
|
|
|
<text class="info-value">{{ visitData.cda }}</text>
|
|
|
|
<text class="info-value status-badge"
|
|
|
|
|
|
|
|
:class="getStatusInfo(visitData.audit_status).class">
|
|
|
|
|
|
|
|
{{ getStatusInfo(visitData.audit_status).text }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 人员编号输入 -->
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">ID卡:</text>
|
|
|
|
|
|
|
|
<view class="info-input-wrapper">
|
|
|
|
|
|
|
|
<input
|
|
|
|
|
|
|
|
v-model="personNoValue"
|
|
|
|
|
|
|
|
placeholder="请输入ID卡"
|
|
|
|
|
|
|
|
class="info-input"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 随访人员信息 -->
|
|
|
|
<!-- 随访人员信息 -->
|
|
|
|
<view
|
|
|
|
<view
|
|
|
|
@ -209,6 +245,17 @@
|
|
|
|
}}</text>
|
|
|
|
}}</text>
|
|
|
|
<text class="info-value">{{ person.idcard }}</text>
|
|
|
|
<text class="info-value">{{ person.idcard }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<!-- ID卡输入框 -->
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">ID卡:</text>
|
|
|
|
|
|
|
|
<view class="info-input-wrapper">
|
|
|
|
|
|
|
|
<input
|
|
|
|
|
|
|
|
v-model="person.follw_people_person_no"
|
|
|
|
|
|
|
|
placeholder="请输入ID卡"
|
|
|
|
|
|
|
|
class="info-input"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view
|
|
|
|
<view
|
|
|
|
class="separator"
|
|
|
|
class="separator"
|
|
|
|
v-if="index < visitData.follw_people.length - 1"
|
|
|
|
v-if="index < visitData.follw_people.length - 1"
|
|
|
|
@ -216,46 +263,6 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 被访人信息 -->
|
|
|
|
|
|
|
|
<view class="info-section">
|
|
|
|
|
|
|
|
<text class="section-title">被访人信息</text>
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">被访人:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{
|
|
|
|
|
|
|
|
visitData.accept_admin ? visitData.accept_admin.name : "-"
|
|
|
|
|
|
|
|
}}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="info-item" v-if="visitData.accompanyName">
|
|
|
|
|
|
|
|
<text class="info-label">陪同人:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{ visitData.accompanyName }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="info-item" v-if="visitData.goodsName">
|
|
|
|
|
|
|
|
<text class="info-label">收货人:</text>
|
|
|
|
|
|
|
|
<text class="info-value">{{ visitData.goodsName }}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">状态:</text>
|
|
|
|
|
|
|
|
<text
|
|
|
|
|
|
|
|
class="info-value status-badge"
|
|
|
|
|
|
|
|
:class="getStatusInfo(visitData.audit_status).class"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ getStatusInfo(visitData.audit_status).text }}
|
|
|
|
|
|
|
|
</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 人员编号输入 -->
|
|
|
|
|
|
|
|
<view class="info-item">
|
|
|
|
|
|
|
|
<text class="info-label">ID卡:</text>
|
|
|
|
|
|
|
|
<view class="info-input-wrapper">
|
|
|
|
|
|
|
|
<input
|
|
|
|
|
|
|
|
v-model="personNoValue"
|
|
|
|
|
|
|
|
placeholder="请输入ID卡"
|
|
|
|
|
|
|
|
class="info-input"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 备注输入 -->
|
|
|
|
<!-- 备注输入 -->
|
|
|
|
<view class="info-item">
|
|
|
|
<view class="info-item">
|
|
|
|
<text class="info-label">备注:</text>
|
|
|
|
<text class="info-label">备注:</text>
|
|
|
|
@ -366,7 +373,9 @@
|
|
|
|
class="visitor-item"
|
|
|
|
class="visitor-item"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<view class="visitor-name">{{ visitor.name }}</view>
|
|
|
|
<view class="visitor-name">{{ visitor.name }}</view>
|
|
|
|
<view class="visitor-visited">{{ visitor.accept_admin ? visitor.accept_admin.name : '-' }}</view>
|
|
|
|
<view class="visitor-visited">{{
|
|
|
|
|
|
|
|
visitor.accept_admin ? visitor.accept_admin.name : "-"
|
|
|
|
|
|
|
|
}}</view>
|
|
|
|
<view
|
|
|
|
<view
|
|
|
|
class="visitor-status status-badge"
|
|
|
|
class="visitor-status status-badge"
|
|
|
|
:class="getStatusInfo(visitor.audit_status).class"
|
|
|
|
:class="getStatusInfo(visitor.audit_status).class"
|
|
|
|
@ -378,7 +387,9 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="modal-footer">
|
|
|
|
<view class="modal-footer">
|
|
|
|
<button @click="closeListModal" size="mini" class="btn btn-primary">关闭</button>
|
|
|
|
<button @click="closeListModal" size="mini" class="btn btn-primary">
|
|
|
|
|
|
|
|
关闭
|
|
|
|
|
|
|
|
</button>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -676,6 +687,18 @@ export default {
|
|
|
|
// reason, cars, plate, credent, idcard, company_name, cda,
|
|
|
|
// reason, cars, plate, credent, idcard, company_name, cda,
|
|
|
|
// follw_people, accompanyName, goodsName
|
|
|
|
// follw_people, accompanyName, goodsName
|
|
|
|
this.visitData = visitor;
|
|
|
|
this.visitData = visitor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 确保每个随访人员都有follw_people_person_no字段
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
this.visitData.follw_people &&
|
|
|
|
|
|
|
|
this.visitData.follw_people.length > 0
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
this.visitData.follw_people.forEach((person) => {
|
|
|
|
|
|
|
|
if (!person.follw_people_person_no) {
|
|
|
|
|
|
|
|
person.follw_people_person_no = "";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
this.personNoValue = visitor.person_no;
|
|
|
|
this.personNoValue = visitor.person_no;
|
|
|
|
this.remarkValue = visitor.remark;
|
|
|
|
this.remarkValue = visitor.remark;
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
@ -928,13 +951,15 @@ export default {
|
|
|
|
// 验证必填字段 - 由于去除action,暂无必填验证
|
|
|
|
// 验证必填字段 - 由于去除action,暂无必填验证
|
|
|
|
|
|
|
|
|
|
|
|
this.updating = true;
|
|
|
|
this.updating = true;
|
|
|
|
|
|
|
|
console.log("this.visitData", this.visitData);
|
|
|
|
|
|
|
|
// return
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const updateParams = {
|
|
|
|
const updateParams = {
|
|
|
|
...this.visitData,
|
|
|
|
...this.visitData,
|
|
|
|
id: this.visitData.id,
|
|
|
|
id: this.visitData.id,
|
|
|
|
remark: this.remarkValue,
|
|
|
|
remark: this.remarkValue,
|
|
|
|
person_no: this.personNoValue,
|
|
|
|
person_no: this.personNoValue,
|
|
|
|
|
|
|
|
// follw_people 中包含了每个人员的 follw_people_person_no 字段
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 如果type==3,添加车辆照片数据
|
|
|
|
// 如果type==3,添加车辆照片数据
|
|
|
|
@ -1083,7 +1108,7 @@ export default {
|
|
|
|
@media (max-width: 750px) {
|
|
|
|
@media (max-width: 750px) {
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
margin-bottom: 3%;
|
|
|
|
margin-bottom: 3%;
|
|
|
|
color:#fff
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1109,7 +1134,7 @@ export default {
|
|
|
|
@media (max-width: 750px) {
|
|
|
|
@media (max-width: 750px) {
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
margin-bottom: 1.5%;
|
|
|
|
margin-bottom: 1.5%;
|
|
|
|
color:#fff
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
@ -1238,7 +1263,7 @@ export default {
|
|
|
|
font-size: 24rpx;
|
|
|
|
font-size: 24rpx;
|
|
|
|
min-width: 30rpx;
|
|
|
|
min-width: 30rpx;
|
|
|
|
padding: 0 8rpx;
|
|
|
|
padding: 0 8rpx;
|
|
|
|
color:#fff
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|