k94314517
2024-10-16 17efddc6a667670dca682bf36b51a43e99615e6d
h5/pages/staff/visitorReport.vue
@@ -6,19 +6,20 @@
          <text>*</text>
          <text>被访人姓名</text>
        </view>
        <view class="list_item_content" @click="showName = true">
        <!-- <view class="list_item_content" @click="showName = true"> -->
        <view class="list_item_content">
          <text :style="{ color: form1.receptMemberName ? '#000000' : '' }">{{
            form1.receptMemberName
              ? form1.receptMemberName + " " + form1.receptCompanyName
              : "请选择"
          }}</text>
          <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
          <!-- <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon> -->
        </view>
      </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' : '' }">{{
@@ -30,7 +31,7 @@
      <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' : '' }">{{
@@ -124,7 +125,7 @@
    <view class="footer"
      ><view class="footer_btn" @click="submit">提交</view></view
    >
    <!-- 入场时间 -->
    <!-- 入园时间 -->
    <u-datetime-picker
      :show="show4"
      :minDate="new Date().getTime()"
@@ -132,7 +133,7 @@
      @cancel="show4 = false"
      @confirm="setinDate"
    ></u-datetime-picker>
    <!-- 离场时间 -->
    <!-- 离园时间 -->
    <u-datetime-picker
      v-if="form1.starttime"
      :show="show5"
@@ -234,7 +235,7 @@
    const userInfo = uni.getStorageSync('userInfo') || {}
    this.$set(this.form1, 'receptMemberName', userInfo.realname)
    this.$set(this.form1, 'receptMemberId', userInfo.id || '')
    this.$set(this.form1, 'receptCompanyName', userInfo.company.companyName || '')
    this.$set(this.form1, 'receptCompanyName', userInfo.company.name || '')
    // this.getvisit()
    // this.getVisit1()
    // this.getUserValid()
@@ -276,12 +277,12 @@
        })
      if (!this.form1.starttime)
        return uni.showToast({
          title: '入场时间不能为空',
          title: '入园时间不能为空',
          icon: 'none'
        })
      if (!this.form1.endtime)
        return uni.showToast({
          title: '离场时间不能为空',
          title: '离园时间不能为空',
          icon: 'none'
        })
      if (!this.form1.name) return uni.showToast({
@@ -292,6 +293,12 @@
        title: '手机号不能为空',
        icon: 'none'
      })
      var re = /^1[3,4,5,6,7,8,9][0-9]{9}$/;
        var result = re.test(this.form1.phone);
      if (!result) return uni.showToast({
        title: '手机号格式不正确',
        icon: 'none'
      })
      if (!this.form1.companyName) return uni.showToast({
        title: '来访单位不能为空',
        icon: 'none'
@@ -385,7 +392,7 @@
    openLC() {
      if (!this.form1.starttime)
        return uni.showToast({
          title: '请先选择入厂时间',
          title: '请先选择入园时间',
          icon: 'none'
        })
      this.show5 = true
@@ -445,7 +452,7 @@
  }
};
</script>
<style>
<style lang="scss">
page {
  background-color: #f7f7f7 !important;
}
@@ -465,7 +472,7 @@
      line-height: 100rpx;
      text-align: center;
      font-size: 32rpx;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
    .list {
@@ -521,7 +528,7 @@
      text-align: center;
      font-size: 32rpx;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-weight: 600;
      color: #222222;
    }
    .addcar_ipt {
@@ -655,7 +662,7 @@
      height: 88rpx;
      line-height: 88rpx;
      text-align: center;
      background: #4e99a9;
      background: $uni-color-primary;
      border-radius: 44rpx;
      font-size: 32rpx;
      color: #ffffff;