Houjie
8 天以前 964faa1077a89713910063c39ebe08fac4e4c56e
pages/ToDoList/ToDoList.vue
@@ -26,17 +26,19 @@
                        <uni-easyinput v-model="formData.num" placeholder="请输入设备编号" />
                     </uni-forms-item>
                  </uni-group>
                  <uni-forms-item>
                     <view class="flex">
                        <view
                           class="cuIcon-search flex-sub bg-blue radius padding-sm margin-xs margin-left-lg margin-right-lg text-sm text-center"
                           @click="getSera">查询
                        </view>
                        <view
                           class="cuIcon-refresh flex-sub bg-white solids padding-sm margin-xs radius text-sm text-center margin-left-lg margin-right-lg"
                           @click="resetTask">重置</view>
                     </view>
                  </uni-forms-item>
               </uni-forms>
               <view class="flex">
                  <view
                     class="cuIcon-search flex-sub bg-blue padding-sm margin-xs margin-left-lg margin-right-lg text-sm text-center"
                     @click="getSera">查询
                  </view>
                  <view
                     class="cuIcon-refresh flex-sub bg-white solids padding-sm margin-xs radius text-sm text-center margin-left-lg margin-right-lg"
                     @click="resetTask">重置</view>
               </view>
            </view>
         </uni-popup>
@@ -55,12 +57,12 @@
                        {{item.category_dictText}}
                     </view>
                  </view>
                  <view class="flex">
                  <!-- <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-bold  radius text-right">
                        {{item.flowName}}
                     </view>
                  </view>
                  </view> -->
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">之前处理人:</view>
@@ -96,6 +98,8 @@
</template>
<script>
   import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
   export default {
      mixins: [MescrollMixin], // 使用mixin
@@ -212,7 +216,7 @@
               case (name === '设能部终验' && type === '设备周保'):
                  url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure';
                  break;
               case (name === '管理员领用备件' && type === '设备维修'):
               case (name === '等待备件中' && type === '设备维修'):
                  url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts';
                  break;
               case (name === '操作工确认' && type === '设备维修'):
@@ -223,6 +227,8 @@
                  break;
               case (name === '点检工单' && type === '设备点检'):
                  url = '/pages/ToDoList/ToDoListDeils/ToDoCheckDetils';
                  case (name === '点检工单' && type === '设备点检'):
                     url = '/pages/ToDoList/ToDoListDeils/ToDoCheckDetils';
                  
                  break;
               default:ToDoCheckDetils
@@ -231,9 +237,13 @@
            }
            if (url) {
               uni.redirectTo({
               uni.navigateTo({
                  url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}`
               });
               // uni.redirectTo({
               //    url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}`
               // });
            }
         },
@@ -352,7 +362,7 @@
   }
   .popupView {
      margin-top: 85px;
      margin-top: 45px;
      height: auto;
   }
</style>