k94314517
2024-10-16 17efddc6a667670dca682bf36b51a43e99615e6d
h5/pages/visitorApplication/visitorApplication.vue
@@ -1,29 +1,11 @@
<template>
  <view class="visit">
    <view class="head">拜访信息</view>
    <!-- <view class="head">拜访信息</view> -->
    <view class="list">
      <!-- <view class="list_item">
            <view class="list_item_label">
               <text>被访人手机</text>
               <text>*</text>
            </view>
            <view class="list_item_content">
               <input type="number" maxlength="11" v-model="form1.phone1" :placeholder="verify == '0' ? '输入手机号后自动获取' : '请输入手机号'" @blur="getUser" placeholder-style="color: #999999;" />
            </view>
         </view>
         <view class="list_item">
            <view class="list_item_label">
               <text>被访人姓名</text>
               <text>*</text>
            </view>
            <view class="list_item_content">
               <input type="text" placeholder="请输入姓名" v-model="form1.receptMemberName" @blur="getUser" placeholder-style="color: #999999;" />
            </view>
         </view> -->
      <view class="list_item">
        <view class="list_item_label">
          <text>被访人</text>
          <text>*</text>
          <text>被访人</text>
        </view>
        <view class="list_item_content" @click="showName = true">
          <text :style="{ color: form1.receptMemberName ? '#000000' : '' }">{{
@@ -34,8 +16,8 @@
      </view>
      <view class="list_item">
        <view class="list_item_label">
          <text>入园时间</text>
          <text>*</text>
          <text>入园时间</text>
        </view>
        <view class="list_item_content" @click="show4 = true">
          <text :style="{ color: form1.starttime ? '#000000' : '' }">{{
@@ -46,8 +28,8 @@
      </view>
      <view class="list_item">
        <view class="list_item_label">
          <text>离园时间</text>
          <text>*</text>
          <text>离园时间</text>
        </view>
        <view class="list_item_content" @click="openLC">
          <text :style="{ color: form1.endtime ? '#000000' : '' }">{{
@@ -69,8 +51,8 @@
      <div class="empty"></div>
      <view class="list_item">
        <view class="list_item_label">
          <text>拜访事由</text>
          <text>*</text>
          <text>拜访事由</text>
        </view>
        <view class="list_item_content" @click="showReason = true">
          <text :style="{ color: form1.reason ? '#000000' : '' }">{{
@@ -81,8 +63,8 @@
      </view>
      <view class="list_item">
        <view class="list_item_label">
          <text></text>
          <text>是否施工作业</text>
          <text>*</text>
        </view>
        <view class="list_item_content">
          <switch
@@ -94,6 +76,7 @@
      </view>
      <view v-if="form1.type == '1'" class="list_item">
        <view class="list_item_label">
          <text></text>
          <text>施工内容</text>
          <!-- <text>*</text> -->
        </view>
@@ -108,8 +91,8 @@
      </view>
      <view class="list_item">
        <view class="list_item_label">
          <text>随行车辆</text>
          <text></text>
          <text>随行车辆</text>
        </view>
        <view class="list_item_content" @click="openInput(1)">
          <text :style="{ color: form1.carNos ? '#000000' : '' }">{{
@@ -136,6 +119,7 @@
      v-if="form1.starttime"
      :show="show5"
      :minDate="formatTimeStamp(form1.starttime)"
      :maxDate="formatTimeStamp(form1.starttime.slice(0,10) + ' 23:59')"
      mode="datetime"
      @cancel="show5 = false"
      @confirm="setendtime"
@@ -323,8 +307,8 @@
          </view>
          <view class="adduser_list_item">
            <view class="adduser_list_item_label">
              <text>公司</text>
              <text>*</text>
              <text>公司</text>
            </view>
            <view class="adduser_list_item_ipt">
              <input
@@ -337,8 +321,8 @@
          </view>
          <view class="adduser_list_item">
            <view class="adduser_list_item_label">
              <text>随行车辆</text>
              <text></text>
              <text>随行车辆</text>
            </view>
            <view class="adduser_list_item_ipt" @click="openInput(2)">
              <text :style="{ color: withUserList.carNos ? '#000000' : '' }">{{
@@ -603,7 +587,7 @@
        withUserList: this.personnel
      }).then(res => {
        if (res.code === 200) {
          uni.reLaunch({
          uni.navigateTo({
            url: `/pages/appointmentDetails/appointmentDetails?id=${res.data}`
          })
        }
@@ -792,7 +776,7 @@
      this.form1.starttime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
      // this.maxTime = getDaysAfterDate(uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM'), this.day)
      this.maxTime = this.form1.starttime
      console.log(this.form1.starttime)
      console.log(this.form1.starttime.slice(0,10))
      this.show4 = false
    },
    setendtime(e) {
@@ -871,7 +855,7 @@
      line-height: 100rpx;
      text-align: center;
      font-size: 32rpx;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
    .list {
@@ -908,7 +892,7 @@
        align-items: center;
        justify-content: center;
        border-radius: 10rpx;
        background-color: #025eef;
        background-color: $uni-color-primary;
        color: #ffffff;
        font-size: 26rpx;
        margin-left: 30rpx;
@@ -927,7 +911,7 @@
      text-align: center;
      font-size: 32rpx;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
    .adduser_list {
@@ -968,18 +952,14 @@
          flex-shrink: 0;
          display: flex;
          align-items: center;
          font-family: PingFangSC, PingFang SC;
          font-size: 30rpx;
          text {
            &:nth-child(1) {
              font-size: 30rpx;
              font-family: PingFangSC, PingFang SC;
              font-weight: 400;
              color: #222222;
              color: #e0312a;
            }
            &:nth-child(2) {
              font-size: 30rpx;
              font-family: PingFangSC, PingFang SC;
              font-weight: 400;
              color: #e0312a;
              color: #222222;
            }
          }
        }
@@ -1053,7 +1033,7 @@
      text-align: center;
      font-size: 32rpx;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
    .addcar_ipt {
@@ -1110,7 +1090,7 @@
      width: 100%;
      text-align: center;
      font-size: 32rpx;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
    .search-box {
@@ -1253,7 +1233,7 @@
        background: #025eef;
        border-radius: 8rpx;
        font-size: 28rpx;
        font-weight: 500;
        font-weight: 600;
        color: #ffffff;
      }
    }
@@ -1298,13 +1278,13 @@
          &:nth-child(1) {
            font-size: 30rpx;
            font-weight: 400;
            color: #222222;
            color: #e42d2d;
          }
          &:nth-child(2) {
            font-size: 30rpx;
            font-weight: 400;
            color: #e42d2d;
            color: #222222;
          }
        }
      }
@@ -1344,7 +1324,7 @@
    .cate_head {
      font-size: 32rpx;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
@@ -1420,7 +1400,7 @@
      background: #4c99a8;
      border-radius: 44rpx;
      font-size: 32rpx;
      font-weight: 500;
      font-weight: 600;
      color: #ffffff;
    }
  }