| | |
| | | <!-- 基础表单校验 --> |
| | | <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> |
| | |
| | | @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"> |
| | |
| | | scrollLeft: 0, |
| | | formData: { |
| | | type: '', |
| | | num:'' |
| | | num: '' |
| | | }, |
| | | storageTypeList: [], |
| | | NavBarColor: this.NavBarColor, |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | 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}` |
| | | // }); |
| | | } |
| | | }, |
| | | |
| | |
| | | /* 重置查询条件 */ |
| | | resetTask() { |
| | | this.formData.type = '', |
| | | this.formData.num='', |
| | | this.$refs.popup.close(); |
| | | this.formData.num = '', |
| | | this.$refs.popup.close(); |
| | | this.mescroll.resetUpScroll() |
| | | |
| | | }, |
| | |
| | | column: 'createTime', |
| | | order: 'desc', |
| | | category: this.formData.type, |
| | | title:this.formData.num |
| | | title: this.formData.num |
| | | }, |
| | | |
| | | }).then(res => { |
| | |
| | | } |
| | | |
| | | .popupView { |
| | | margin-top: 45px; |
| | | margin-top: 55px; |
| | | height: auto; |
| | | } |
| | | </style> |