Explorar o código

驾驶舱-默认查看列表

wanglt hai 4 meses
pai
achega
02e03c7541
Modificáronse 2 ficheiros con 32 adicións e 1 borrados
  1. 31 0
      ygtx-ui/src/views/gxt/repairOrder/index.vue
  2. 1 1
      ygtx-ui/src/views/index4.vue

+ 31 - 0
ygtx-ui/src/views/gxt/repairOrder/index.vue

@@ -2621,6 +2621,14 @@ function cancel() {
   reset()
 }
 
+function resetTimeOutOrder() {
+  if (queryParams.value.timeOutNum != null) {
+    queryParams.value.timeOutNum = null;
+    queryParams.value.workOrderStatus = null;
+    queryParams.value.userType = null;
+  }
+}
+
 // 表单重置
 function reset() {
   form.value = {}
@@ -2666,6 +2674,7 @@ function onEquipmentSelected(row) {
 function resetQuery() {
   proxy.resetForm("queryRef")
   handleQuery()
+  resetTimeOutOrder();
 }
 
 // 多选框选中数据
@@ -2710,12 +2719,14 @@ function submitForm() {
         updateRepairOrder(form.value).then(response => {
           proxy.$modal.msgSuccess("下发成功")
           openDialog.value = false
+          resetTimeOutOrder();
           getList()
         })
       } else {
         addRepairOrder(form.value).then(response => {
           proxy.$modal.msgSuccess("新建成功")
           openDialog.value = false
+          resetTimeOutOrder();
           getList()
         })
       }
@@ -2733,12 +2744,14 @@ function submitFormAndIssue() {
         updateRepairOrder(form.value).then(response => {
           proxy.$modal.msgSuccess("下发成功")
           openDialog.value = false
+          resetTimeOutOrder();
           getList()
         })
       } else {
         addRepairOrder(form.value).then(response => {
           proxy.$modal.msgSuccess("新建成功")
           openDialog.value = false
+          resetTimeOutOrder();
           getList()
         })
       }
@@ -2753,6 +2766,7 @@ function handleDelete(row) {
   proxy.$modal.confirm('是否确认删除维修工单编码为"' + workOrderProjectNo + '"的数据项?').then(function() {
     return delRepairOrder(ids)
   }).then(() => {
+    resetTimeOutOrder();
     getList()
     proxy.$modal.msgSuccess("删除成功")
   }).catch(() => {})
@@ -2852,6 +2866,7 @@ async function submitAssign() {
 
         proxy.$modal.msgSuccess("下发成功")
         assignDialogVisible.value = false
+        resetTimeOutOrder();
         getList()
       } catch (error) {
         proxy.$modal.msgError("下发失败: " + error.message)
@@ -2888,6 +2903,7 @@ async function submitAccept() {
 
         proxy.$modal.msgSuccess("接单成功")
         acceptDialogVisible.value = false
+        resetTimeOutOrder();
         getList()
       } catch (error) {
         proxy.$modal.msgError("接单失败: " + error.message)
@@ -2911,6 +2927,7 @@ function handleStart(row) {
   }).then(function() {
     startRepairOrder(row);
   }).then(() => {
+    resetTimeOutOrder();
     getList()
     proxy.$modal.msgSuccess("恢复成功")
   }).catch(() => {})
@@ -2923,6 +2940,7 @@ async function submitStart() {
 
     proxy.$modal.msgSuccess("工单已开始处理");
     startDialogVisible.value = false;
+    resetTimeOutOrder();
     getList();
   } catch (error) {
     proxy.$modal.msgError("操作失败: " + error.message);
@@ -2941,6 +2959,7 @@ async function handlePause(row) {
       await pauseRepairOrder(updateData)
 
       proxy.$modal.msgSuccess("工单已暂停")
+      resetTimeOutOrder();
       getList()
     } catch (error) {
       proxy.$modal.msgError("操作失败: " + error.message)
@@ -2961,6 +2980,7 @@ async function handleResume(row) {
     };
     resumeRepairOrder(updateData);
   }).then(() => {
+    resetTimeOutOrder();
     getList()
     proxy.$modal.msgSuccess("恢复成功")
   }).catch(() => {})
@@ -2979,6 +2999,7 @@ async function handleRevoke(row) {
     };
     revokeRepairOrder(updateData);
   }).then(() => {
+    resetTimeOutOrder();
     getList()
     proxy.$modal.msgSuccess("撤回成功")
   }).catch(() => {})
@@ -3083,6 +3104,7 @@ async function submitComplete() {
 
         proxy.$modal.msgSuccess("处理完成,工单进入待结单状态")
         completeDialogVisible.value = false
+        resetTimeOutOrder();
         getList()
       } catch (error) {
         proxy.$modal.msgError("操作失败: " + error.message)
@@ -3108,6 +3130,7 @@ async function submitRating() {
         await ratingRepairOrder(ratingForm.value)
         proxy.$modal.msgSuccess("评分成功")
         ratingDialogVisible.value = false
+        resetTimeOutOrder();
         getList()
       } catch (error) {
         proxy.$modal.msgError("操作失败: " + error.message)
@@ -3146,6 +3169,7 @@ async function submitSuspend() {
 
         proxy.$modal.msgSuccess("挂起申请已提交");
         suspendDialogVisible.value = false;
+        resetTimeOutOrder();
         getList();
       } catch (error) {
         proxy.$modal.msgError("挂起申请失败: " + error.message);
@@ -3190,6 +3214,7 @@ async function submitReturn() {
 
         proxy.$modal.msgSuccess("退回成功");
         returnDialogVisible.value = false;
+        resetTimeOutOrder();
         getList();
       } catch (error) {
         proxy.$modal.msgError("退回失败: " + error.message);
@@ -3220,6 +3245,7 @@ async function submitApprove(approvalStatusValue) {
 
         proxy.$modal.msgSuccess("操作完成");
         approveDialogVisible.value = false;
+        resetTimeOutOrder();
         getList();
       } catch (error) {
         proxy.$modal.msgError("操作失败: " + error.message);
@@ -3309,6 +3335,7 @@ async function submitFinalize() {
 
         proxy.$modal.msgSuccess("工单结单成功")
         finalizeDialogVisible.value = false
+        resetTimeOutOrder();
         getList()
       } catch (error) {
         proxy.$modal.msgError("操作失败: " + error.message)
@@ -3356,6 +3383,7 @@ async function submitRestart() {
 
         proxy.$modal.msgSuccess("复运成功")
         restartDialogVisible.value = false
+        resetTimeOutOrder();
         getList()
       } catch (error) {
         proxy.$modal.msgError("操作失败: " + error.message)
@@ -3423,6 +3451,7 @@ const handleFileSuccessMis = (response, file, fileList) => {
   uploadMis.isUploading = false
   proxy.$refs["uploadMisRef"].handleRemove(file)
   proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true })
+  resetTimeOutOrder();
   getList()
 }
 
@@ -3486,6 +3515,7 @@ const handleFileSuccess = (response, file, fileList) => {
   upload.isUploading = false
   proxy.$refs["uploadRef"].handleRemove(file)
   proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true })
+  resetTimeOutOrder();
   getList()
 }
 
@@ -3542,6 +3572,7 @@ async function submitInvalidate() {
       await invalidateRepairOrder(invalidateForm.value);
       proxy.$modal.msgSuccess("作废成功");
       invalidateDialogVisible.value = false;
+      resetTimeOutOrder();
       getList();
     } catch (error) {
       proxy.$modal.msgError("操作失败: " + error.message);

+ 1 - 1
ygtx-ui/src/views/index4.vue

@@ -1426,7 +1426,7 @@ export default {
       if(num==0) {
         // 加密参数并传递到目标路由页面
         const params = {
-          timeOutNum: this.homePageData.timeOutNum,
+          timeOutNum: 30,
           workOrderStatus: 'assigned'
         };
         const encryptedParams = encryptParams(params);