liukangdong
2024-06-07 ac44819c6bb4e71161c0b042d27a91c4f2c6666e
h5/pages/staff/visitorReport.vue
@@ -18,7 +18,7 @@
      <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 +30,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 +124,7 @@
    <view class="footer"
      ><view class="footer_btn" @click="submit">提交</view></view
    >
    <!-- 入场时间 -->
    <!-- 入园时间 -->
    <u-datetime-picker
      :show="show4"
      :minDate="new Date().getTime()"
@@ -132,7 +132,7 @@
      @cancel="show4 = false"
      @confirm="setinDate"
    ></u-datetime-picker>
    <!-- 离场时间 -->
    <!-- 离园时间 -->
    <u-datetime-picker
      v-if="form1.starttime"
      :show="show5"
@@ -276,12 +276,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({
@@ -385,7 +385,7 @@
    openLC() {
      if (!this.form1.starttime)
        return uni.showToast({
          title: '请先选择入厂时间',
          title: '请先选择入园时间',
          icon: 'none'
        })
      this.show5 = true