| | |
| | | <view class="list_item"> |
| | | <view class="list_item_label"> |
| | | <text>拜访事由</text> |
| | | <text></text> |
| | | <text>*</text> |
| | | </view> |
| | | <view class="list_item_content"> |
| | | <input type="text" v-model="form1.reason" placeholder="请输入来访事由,您来做什么的" placeholder-style="color: #999999;" /> |
| | |
| | | <text>*</text> |
| | | </view> |
| | | <view class="adduser_list_item_ipt"> |
| | | <input type="text" v-model="withUserList.idcardNo" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入证件号码" /> |
| | | <input type="text" v-model="withUserList.idcardNo" maxlength="18" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入证件号码" /> |
| | | </view> |
| | | </view> |
| | | <view class="adduser_list_item"> |
| | |
| | | }, |
| | | submit() { |
| | | if (!this.form1.receptMemberId) return uni.showToast({ |
| | | title: '被访人不能为空', |
| | | title: '请填写有效的访问人', |
| | | icon: 'none' |
| | | }) |
| | | if (!this.form1.starttime) return uni.showToast({ |
| | |
| | | title: '访问门禁不能为空', |
| | | icon: 'none' |
| | | }) |
| | | // if (!this.form1.reason) return uni.showToast({ |
| | | // title: '拜访事由不能为空', |
| | | // icon: 'none' |
| | | // }) |
| | | this.form1.starttime = this.form1.starttime + ':00' |
| | | this.form1.endtime = this.form1.endtime + ':00' |
| | | if (!this.form1.reason) return uni.showToast({ |
| | | title: '拜访事由不能为空', |
| | | icon: 'none' |
| | | }) |
| | | // this.form1.starttime = this.form1.starttime + ':00' |
| | | // this.form1.endtime = this.form1.endtime + ':00' |
| | | let data = JSON.parse(JSON.stringify(this.form1)) |
| | | data.starttime = data.starttime + ':00' |
| | | data.endtime = data.endtime + ':00' |
| | | this.$u.api.createFk({ |
| | | ...this.form, |
| | | ...this.form1, |
| | | ...data, |
| | | openid: this.$store.state.openId, |
| | | withUserList: this.personnel |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | console.log(res) |
| | | uni.reLaunch({ |
| | | url: `/pages/appointmentDetails/appointmentDetails?id=${res.data}` |
| | | }) |
| | | } |
| | | }) |
| | | }, |