Houjie
2025-04-25 1d18ff904468e4a864312bdcf6d7c6a7c0477721
pages/TaskManager/TaskManagerList.vue
@@ -48,11 +48,12 @@
                     </view>
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">流程描述:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs     radius text-right">
                        {{item.description}}
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">任务名称:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs   text-orange   radius text-right">
                        {{item.taskName}}
                     </view>
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">流程发起人:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs   text-blue   radius text-right">
@@ -60,13 +61,13 @@
                     </view>
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">任务名称:</view>
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">流程描述:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs     radius text-right">
                        {{item.taskName}}
                        {{item.description}}
                     </view>
                  </view>
               </uni-card>
            </view>
         </mescroll-uni>
@@ -120,7 +121,7 @@
      },
      computed: {
         top() {
            return this.CustomBar * 2 + 130
            return this.CustomBar * 2 + 50
         },
         style() {
            var StatusBar = this.StatusBar;
@@ -144,13 +145,74 @@
          * @param {Object} item
          * 详情页面
          */
         // onClickProductionTask(item) {
         //    const name = item.category_dictText
         //    const type= item.taskName
         //    if (name == '设备点检' && type =='班组长确认') {
         //       uni.navigateTo({
         //          url: '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure?item=' +
         //             encodeURIComponent(JSON.stringify(item))
         //       })
         //    }else  if(name == '设备周保' && type =='班组长确认'){
         //       uni.navigateTo({
         //          url: '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure?item=' +
         //             encodeURIComponent(JSON.stringify(item))
         //       })
         //    }
         // },
         onClickProductionTask(item) {
            uni.navigateTo({
               url: '/pages/TaskManager/TaskManagerDeils/TaskManagerDeils?item=' +
                  encodeURIComponent(JSON.stringify(item))
            })
           const name = item.taskName;
           const type = item.category_dictText;
           let url = '';
           switch (true) {
             case (name === '是否需要领用备件' && type === '设备维修'):
               url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts';
               break;
             case (name === '点检执行' && type === '设备点检'):
               url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure';
               break;
             case (name === '周保执行' && type === '设备周保'):
               url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure';
               break;
             case (name === '班组长确认' && type === '设备点检'):
               url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure';
               break;
             case (name === '班组长确认' && type === '设备周保'):
               url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure';
               break;
             case (name === '设管员初验' && type === '设备周保'):
               url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure';
               break;
             case (name === '设能部终验' && type === '设备周保'):
               url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure';
               break;
             case (name === '管理员领用备件' && type === '设备维修'):
               url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts';
               break;
             case (name === '操作工确认' && type === '设备维修'):
               url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts';
               break;
             case (name === '维修执行' && type === '设备维修'):
               url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts';
               break;
             case (name === '点检工单' && type === '设备点检'):
               url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure';
               break;
             default:
               console.warn(`No URL found for name: ${name} and type: ${type}`);
               return;
           }
           if (url) {
             uni.navigateTo({
               url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}`
             });
           }
         },
         search() {