doum
2025-09-11 7298d5354963a88643a543b51b90192dc9fc934c
h5/pages/staff/task/index.vue
@@ -8,6 +8,7 @@
            v-model="search.title"
            @blur="querylist"
            type="text"
                  confirm-type="search"
            placeholder="搜索任务名称"
          />
        </view>
@@ -206,6 +207,7 @@
      :show="tiemShow"
      v-model="startDate"
      mode="date"
         :formatter="formatter"
      @confirm="confirmLeft"
      @cancel="tiemShow = false"
    ></u-datetime-picker>
@@ -216,6 +218,7 @@
      "
      v-model="startDate"
      mode="date"
         :formatter="formatter"
      @confirm="confirmRight"
      @cancel="tiemShow1 = false"
    ></u-datetime-picker>
@@ -248,7 +251,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 +279,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 +360,7 @@
        isDetail: '1'
      }).then(res => {
        this.headData = res.data
            this.getList()
      })
    },
    handleReady() {
@@ -358,10 +380,13 @@
          this.getHeadList()
        })
      }
         if (item.type == 7) {
           window.open('https://atwl.ahzyssl.com/dps/web/wxAuth/loginV2?oaId=atwl&redirectId=index')
      if (item.type == 7) {
         if(item.remark){
            window.open(item.remark);
            // 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}`
@@ -476,7 +501,7 @@
      justify-content: space-between;
      align-items: center;
      .active {
        border: 1rpx solid #4c99a8 !important;
        border: 2rpx solid #4c99a8 !important;
        color: #4c99a8 !important;
      }
      .box_head_item {
@@ -486,7 +511,7 @@
        line-height: 60rpx;
        box-sizing: border-box;
        border-radius: 30rpx;
        border: 1rpx solid #999999;
        border: 2rpx solid #999999;
        font-size: 26rpx;
        font-weight: 400;
        color: #333333;