Houjie
5 天以前 964faa1077a89713910063c39ebe08fac4e4c56e
pages/TaskManager/TaskManagerList.vue
@@ -16,11 +16,11 @@
               <!-- 基础表单校验 -->
               <uni-forms ref="form" :modelValue="formData" validate-trigger="bind" err-show-type="undertext">
                  <uni-group title="" top="0">
                     <uni-forms-item name="type"   :labelWidth="80" label="流程分类:">
                     <uni-forms-item name="type" :labelWidth="80" label="流程分类:">
                        <uni-data-select v-model="formData.type" :localdata="storageTypeList"
                           @change="changeSelectType" />
                     </uni-forms-item>
                     <uni-forms-item name="num"   :labelWidth="80" label="设备编号:">
                     <uni-forms-item name="num" :labelWidth="80" label="设备编号:">
                        <uni-easyinput v-model="formData.num" placeholder="请输入设备编号" />
                     </uni-forms-item>
                  </uni-group>
@@ -49,16 +49,17 @@
                  @click="onClickProductionTask(item)">
                  <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 text-blue  radius text-right">
                     <view
                        class="flex-sub bg-white padding-xs margin-xs   text-bold text-blue  radius text-right">
                        {{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.procDefName}}
                     </view>
                  </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-orange   radius text-right">
@@ -97,7 +98,7 @@
            scrollLeft: 0,
            formData: {
               type: '',
               num:''
               num: ''
            },
            storageTypeList: [],
            NavBarColor: this.NavBarColor,
@@ -190,9 +191,9 @@
               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/ToDoListCheckSure/ToDoListCheckSure';
                  break;
@@ -214,6 +215,9 @@
               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;
@@ -226,10 +230,14 @@
            }
            if (url) {
               uni.redirectTo({
               uni.navigateTo({
                  url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}&flag=${flag}`
               });
               // uni.redirectTo({
               //    url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}&flag=${flag}`
               // });
            }
         },
@@ -277,8 +285,8 @@
         /* 重置查询条件 */
         resetTask() {
            this.formData.type = '',
            this.formData.num='',
            this.$refs.popup.close();
               this.formData.num = '',
               this.$refs.popup.close();
            this.mescroll.resetUpScroll()
         },
@@ -294,7 +302,7 @@
                  column: 'createTime',
                  order: 'desc',
                  category: this.formData.type,
                  title:this.formData.num
                  title: this.formData.num
               },
            }).then(res => {
@@ -348,7 +356,7 @@
   }
   .popupView {
      margin-top: 45px;
      margin-top: 55px;
      height: auto;
   }
</style>