jiangping
2025-02-26 4e2e52b766d87fc528d02bdebc1757c3dda8c596
h5/pages/staff/task/index.vue
@@ -206,6 +206,7 @@
      :show="tiemShow"
      v-model="startDate"
      mode="date"
         :formatter="formatter"
      @confirm="confirmLeft"
      @cancel="tiemShow = false"
    ></u-datetime-picker>
@@ -216,6 +217,7 @@
      "
      v-model="startDate"
      mode="date"
         :formatter="formatter"
      @confirm="confirmRight"
      @cancel="tiemShow1 = false"
    ></u-datetime-picker>
@@ -248,7 +250,8 @@
        { name: '访客报备', id: 1 },
        { name: '用车申请', id: 2 },
        { name: '隐患随手拍', id: 3 },
        { name: '物流车申请', id: 4 },
        { name: '物流车申请', id: 6 },
        { name: '考勤代办', id: 7 },
      ],
      startDate: dayjs().format('YYYY-MM-DD'),
    }
@@ -275,10 +278,27 @@
  onShow() {
    this.pagination.page = 0
    this.dataList = []
    this.getHeadList()
    this.getList()
      this.getHeadList()
  },
  methods: {
      formatter(type, value) {
         if (type === 'year') {
            return `${value}年`
         }
         if (type === 'month') {
            return `${value}月`
         }
         if (type === 'day') {
            return `${value}日`
         }
         if (type === 'hour') {
            return `${value}时`
         }
         if (type === 'minute') {
            return `${value}分`
         }
         return value
      },
    statusClick(val) {
      this.pagination.page = 0
      this.dataList = []
@@ -339,6 +359,7 @@
        isDetail: '1'
      }).then(res => {
        this.headData = res.data
            this.getList()
      })
    },
    handleReady() {
@@ -358,6 +379,10 @@
          this.getHeadList()
        })
      }
         if (item.type == 7) {
           window.open('https://atwl.ahzyssl.com/dps/web/wxAuth/loginV2?oaId=atwl&redirectId=index')
            return
         }
      if (objType === 2) {
        uni.navigateTo({
          url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&info=${info}`
@@ -370,7 +395,7 @@
        uni.navigateTo({
          url: `/pages/staff/task/vDangetAppr?id=${objId}&objType=${objType}&info=${info}`
        })
      } else if (objType === 6 || objType === 5) {
      }else if (objType === 6 || objType === 5) {
        uni.navigateTo({
          url: `/pages/staff/task/driver?id=${objId}&objType=${objType}&info=${info}`
        })
@@ -542,6 +567,7 @@
              font-weight: 400;
               color: #999999;
               width: 120rpx;
               text-align: right;
            }
        .loading {
          color: $uni-color-primary;