访客信息增加车牌号
This commit is contained in:
@@ -80,7 +80,7 @@ Page({
|
||||
onHostNameInput(e) {
|
||||
this.setData({ 'form.hostName': e.detail.value })
|
||||
},
|
||||
onPlateNumberInput(e) {
|
||||
onPlateNumberChange(e) {
|
||||
this.setData({ 'form.plateNumber': e.detail.value })
|
||||
},
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"usingComponents": {
|
||||
"plate-input": "/components/plate-input/plate-input"
|
||||
},
|
||||
"navigationBarTitleText": "访客预约"
|
||||
}
|
||||
|
||||
@@ -4,32 +4,32 @@
|
||||
<view class="section">
|
||||
<view class="section-title">预约人信息</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">姓名</text>
|
||||
<text class="form-label">姓名<text class="required">*</text></text>
|
||||
<input class="form-input" placeholder="请输入访客姓名" value="{{form.name}}" bindinput="onNameInput" />
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">手机号</text>
|
||||
<text class="form-label">手机号<text class="required">*</text></text>
|
||||
<input class="form-input" type="number" maxlength="11" placeholder="请输入手机号" value="{{form.phone}}" bindinput="onPhoneInput" />
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">公司</text>
|
||||
<text class="form-label">公司<text class="required">*</text></text>
|
||||
<input class="form-input" placeholder="请输入所属公司" value="{{form.company}}" bindinput="onCompanyInput" />
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">来访事由</text>
|
||||
<text class="form-label">来访事由<text class="required">*</text></text>
|
||||
<input class="form-input" placeholder="请输入来访事由" value="{{form.reason}}" bindinput="onReasonInput" />
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">车牌号</text>
|
||||
<input class="form-input" placeholder="如: 粤A12345(选填)" value="{{form.plateNumber}}" bindinput="onPlateNumberInput" maxlength="8" confirm-type="done" />
|
||||
<plate-input value="{{form.plateNumber}}" bindchange="onPlateNumberChange" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 预约时间 -->
|
||||
<!-- 来访时间 -->
|
||||
<view class="section">
|
||||
<view class="section-title">预约时间</view>
|
||||
<view class="section-title">来访时间</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">来访日期</text>
|
||||
<text class="form-label">来访日期<text class="required">*</text></text>
|
||||
<picker class="form-picker-wrap" mode="date" value="{{form.date}}" start="{{today}}" bindchange="onDateChange">
|
||||
<view class="form-picker">
|
||||
<text class="{{form.date ? 'picker-value' : 'picker-placeholder'}}">{{form.date || '请选择日期'}}</text>
|
||||
@@ -38,7 +38,7 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">来访时间</text>
|
||||
<text class="form-label">来访时段<text class="required">*</text></text>
|
||||
<picker class="form-picker-wrap" mode="time" value="{{form.time}}" bindchange="onTimeChange">
|
||||
<view class="form-picker">
|
||||
<text class="{{form.time ? 'picker-value' : 'picker-placeholder'}}">{{form.time || '请选择时间'}}</text>
|
||||
@@ -52,7 +52,7 @@
|
||||
<view class="section">
|
||||
<view class="section-title">被访人信息</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">拜访区域</text>
|
||||
<text class="form-label">拜访区域<text class="required">*</text></text>
|
||||
<picker class="form-picker-wrap" range="{{areas}}" value="{{areaIndex}}" bindchange="onAreaChange">
|
||||
<view class="form-picker">
|
||||
<text class="{{areaIndex >= 0 ? 'picker-value' : 'picker-placeholder'}}">{{areaIndex >= 0 ? areas[areaIndex] : '请选择拜访区域'}}</text>
|
||||
@@ -61,7 +61,7 @@
|
||||
</picker>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="form-label">被访人</text>
|
||||
<text class="form-label">被访人<text class="required">*</text></text>
|
||||
<picker wx:if="{{personNames.length > 0}}" class="form-picker-wrap" range="{{personNames}}" value="{{personIndex}}" bindchange="onPersonChange">
|
||||
<view class="form-picker">
|
||||
<text class="{{personIndex >= 0 ? 'picker-value' : 'picker-placeholder'}}">{{personIndex >= 0 ? personNames[personIndex] : '请选择被访人'}}</text>
|
||||
|
||||
@@ -44,6 +44,11 @@ page {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.required {
|
||||
color: #ff4d4f;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
flex: 1;
|
||||
font-size: 28rpx;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</view>
|
||||
<view class="action-info">
|
||||
<text class="action-title">访客预约</text>
|
||||
<text class="action-desc">选择预约时间和预约人,提交预约信息</text>
|
||||
<text class="action-desc">选择来访时间和预约人,提交预约信息</text>
|
||||
</view>
|
||||
<text class="action-arrow">›</text>
|
||||
</view>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<text class="record-value">{{item.reason}}</text>
|
||||
</view>
|
||||
<view class="record-row">
|
||||
<text class="record-label">预约时间</text>
|
||||
<text class="record-label">来访时间</text>
|
||||
<text class="record-value">{{item.date}} {{item.time}}</text>
|
||||
</view>
|
||||
<view class="record-row">
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
<text class="detail-label">来访事由</text>
|
||||
<text class="detail-value">{{record.reason}}</text>
|
||||
</view>
|
||||
<view class="detail-row" wx:if="{{record.plateNumber}}">
|
||||
<text class="detail-label">车牌号</text>
|
||||
<text class="detail-value">{{record.plateNumber}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-section">
|
||||
|
||||
Reference in New Issue
Block a user