ouyj il y a 5 mois
Parent
commit
bad390b7c1
1 fichiers modifiés avec 0 ajouts et 75 suppressions
  1. 0 75
      ygtx-ui/src/views/gxt/orderScore/index.vue

+ 0 - 75
ygtx-ui/src/views/gxt/orderScore/index.vue

@@ -1015,17 +1015,6 @@ function handleMaintenanceTypeChange() {
   }
 }
 
-// 维保工单处理
-function handleMaintenanceTypeChangeForMaintenance() {
-  if (selfEvaluationForm.value.orderType === 1) {
-    // 维修工单
-    calculateRepairScores();
-  } else if (selfEvaluationForm.value.orderType === 2) {
-    // 维保工单
-    calculateMaintenanceScores();
-  }
-}
-
 // 计算维修工单复评得分
 function calculateRepairReviewScores() {
   const maintenanceType = reviewForm.value.maintenanceType;
@@ -1118,70 +1107,6 @@ function calculateMaintenanceReviewScores() {
   });
 }
 
-// 处理复评得分变化
-function handleReviewScoreChange() {
-  // 可以在这里添加额外的逻辑
-}
-
-/** 确认/反馈操作命令处理 */
-function handleConfirmCommand(row, command) {
-  if (command === 'confirm') {
-    // 确认操作,将状态改为待终评
-    if (row.orderType === 1) {
-      // 维修工单
-      const order = {
-        id: row.id,
-        scoringStatus: 'to_final'
-      };
-      
-      // 这里应该调用API更新状态,为简化代码直接更新列表
-      gxtRepairOrderService.updateGxtRepairOrder(order).then(response => {
-        proxy.$modal.msgSuccess("确认成功");
-        getList();
-      });
-    } else if (row.orderType === 2) {
-      // 维保工单
-      const order = {
-        id: row.id,
-        scoringStatus: 'to_final'
-      };
-      
-      // 这里应该调用API更新状态,为简化代码直接更新列表
-      gxtWorkOrderService.updateGxtWorkOrder(order).then(response => {
-        proxy.$modal.msgSuccess("确认成功");
-        getList();
-      });
-    }
-  } else if (command === 'feedback') {
-    // 反馈操作,将状态改回待复评
-    if (row.orderType === 1) {
-      // 维修工单
-      const order = {
-        id: row.id,
-        scoringStatus: 'to_re'
-      };
-      
-      // 这里应该调用API更新状态,为简化代码直接更新列表
-      gxtRepairOrderService.updateGxtRepairOrder(order).then(response => {
-        proxy.$modal.msgSuccess("反馈成功");
-        getList();
-      });
-    } else if (row.orderType === 2) {
-      // 维保工单
-      const order = {
-        id: row.id,
-        scoringStatus: 'to_re'
-      };
-      
-      // 这里应该调用API更新状态,为简化代码直接更新列表
-      gxtWorkOrderService.updateGxtWorkOrder(order).then(response => {
-        proxy.$modal.msgSuccess("反馈成功");
-        getList();
-      });
-    }
-  }
-}
-
 /** 关闭复评对话框 */
 function closeReviewDialog() {
   reviewDialogVisible.value = false;