|
|
@@ -429,60 +429,60 @@
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <!-- 挂起对话框 -->
|
|
|
- <el-dialog title="申请挂起工单" v-model="suspendDialogVisible" width="800px" append-to-body>
|
|
|
- <el-form ref="suspendRef" :model="suspendForm" :rules="suspendRules" label-width="120px" label-position="top">
|
|
|
- <el-row style="margin-bottom: 20px;">
|
|
|
- <el-col :span="24">
|
|
|
- <el-alert type="warning" :closable="false">
|
|
|
- <template #default>
|
|
|
- <i class="fa fa-exclamation-circle mr-2"></i>
|
|
|
- 请选择挂起原因,提交后需等待班长审批。
|
|
|
- </template>
|
|
|
- </el-alert>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="工单编码">
|
|
|
- <el-input v-model="suspendForm.workOrderProjectNo" disabled />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="风机编号">
|
|
|
- <el-input v-model="suspendForm.pcsDeviceName" disabled />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row v-if="suspendForm.content">
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="维保内容" prop="content">
|
|
|
- <el-input v-model="suspendForm.content" type="textarea" :rows="3" disabled />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="挂起原因" prop="suspendReason">
|
|
|
- <el-select v-model="suspendForm.suspendReason" placeholder="请选择挂起原因" style="width: 100%">
|
|
|
- <el-option
|
|
|
- v-for="dict in gxt_order_suspend_reason"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <template #footer>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button @click="suspendDialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submitSuspend">提交申请</el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-dialog>
|
|
|
+<!-- <!– 挂起对话框 –>-->
|
|
|
+<!-- <el-dialog title="申请挂起工单" v-model="suspendDialogVisible" width="800px" append-to-body>-->
|
|
|
+<!-- <el-form ref="suspendRef" :model="suspendForm" :rules="suspendRules" label-width="120px" label-position="top">-->
|
|
|
+<!-- <el-row style="margin-bottom: 20px;">-->
|
|
|
+<!-- <el-col :span="24">-->
|
|
|
+<!-- <el-alert type="warning" :closable="false">-->
|
|
|
+<!-- <template #default>-->
|
|
|
+<!-- <i class="fa fa-exclamation-circle mr-2"></i>-->
|
|
|
+<!-- 请选择挂起原因,提交后需等待班长审批。-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-alert>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+<!-- <el-row>-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="工单编码">-->
|
|
|
+<!-- <el-input v-model="suspendForm.workOrderProjectNo" disabled />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="风机编号">-->
|
|
|
+<!-- <el-input v-model="suspendForm.pcsDeviceName" disabled />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+<!-- <el-row v-if="suspendForm.content">-->
|
|
|
+<!-- <el-col :span="24">-->
|
|
|
+<!-- <el-form-item label="维保内容" prop="content">-->
|
|
|
+<!-- <el-input v-model="suspendForm.content" type="textarea" :rows="3" disabled />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+<!-- <el-row>-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="挂起原因" prop="suspendReason">-->
|
|
|
+<!-- <el-select v-model="suspendForm.suspendReason" placeholder="请选择挂起原因" style="width: 100%">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="dict in gxt_order_suspend_reason"-->
|
|
|
+<!-- :key="dict.value"-->
|
|
|
+<!-- :label="dict.label"-->
|
|
|
+<!-- :value="dict.value"-->
|
|
|
+<!-- />-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+<!-- </el-form>-->
|
|
|
+<!-- <template #footer>-->
|
|
|
+<!-- <div class="dialog-footer">-->
|
|
|
+<!-- <el-button @click="suspendDialogVisible = false">取 消</el-button>-->
|
|
|
+<!-- <el-button type="primary" @click="submitSuspend">提交申请</el-button>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-dialog>-->
|
|
|
<!-- 接单对话框 -->
|
|
|
<el-dialog :title="'接单'" v-model="acceptDialogVisible" width="800px" append-to-body>
|
|
|
<!-- <div style="max-height: 500px; overflow-y: auto; padding-right: 10px;">-->
|
|
|
@@ -669,6 +669,15 @@
|
|
|
:on-submit="submitFinishFromParent"
|
|
|
@success="handleFinishSuccess"
|
|
|
/>
|
|
|
+
|
|
|
+ <!-- 维保挂起对话框 -->
|
|
|
+ <SuspendDialog
|
|
|
+ v-model="suspendDialogVisible"
|
|
|
+ :data="suspendForm"
|
|
|
+ :suspend-reason-options="gxt_order_suspend_reason"
|
|
|
+ :on-submit="submitSuspendFromParent"
|
|
|
+ @success="handleSuspendSuccess"
|
|
|
+ />
|
|
|
<!-- 复运对话框 -->
|
|
|
<el-dialog title="复运" v-model="restartDialogVisible" width="800px" append-to-body>
|
|
|
<div class="space-y-4">
|
|
|
@@ -1160,12 +1169,6 @@
|
|
|
<div class="info-content">
|
|
|
<el-form label-width="100px" label-position="top">
|
|
|
<el-row :gutter="20">
|
|
|
-<!-- <el-col :span="24">-->
|
|
|
-<!-- <el-form-item label="下发人">{{ detailData.assignUserName }}</el-form-item>-->
|
|
|
-<!-- </el-col>-->
|
|
|
-<!-- <el-col :span="24">-->
|
|
|
-<!-- <el-form-item label="下发时间">{{ parseTime(detailData.assignTime) }}</el-form-item>-->
|
|
|
-<!-- </el-col>-->
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="接单人">{{ detailData.acceptUserName || '-'}}</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -1196,15 +1199,6 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="外来人员数(人)">{{ detailData.wlryNum || '-' }}</el-form-item>
|
|
|
</el-col>
|
|
|
-<!-- <el-col :span="24">-->
|
|
|
-<!-- <el-form-item label="维保类型">-->
|
|
|
-<!-- <dict-tag v-if="detailData.inspectionType" :options="gxt_inspection_type" :value="detailData.inspectionType" />-->
|
|
|
-<!-- <span v-else>-</span>-->
|
|
|
-<!-- </el-form-item>-->
|
|
|
-<!-- </el-col>-->
|
|
|
-<!-- <el-col :span="24">-->
|
|
|
-<!-- <el-form-item label="实际维保内容">{{ detailData.realContent || '-' }}</el-form-item>-->
|
|
|
-<!-- </el-col>-->
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="恢复运行时间">{{ parseTime(detailData.restartTime,'{y}-{m}-{d} {h}:{i}') || '-' }}</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -1416,6 +1410,7 @@ import {listMisInfo, listWorkPerson} from "@/api/gxt/misInfo.js";
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
import EquipmentSelectSingle from "@/components/equipmentSelect/single.vue";
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
+import SuspendDialog from "@/components/repairOrder/suspend.vue";
|
|
|
|
|
|
// 工作负责人快速检索相关响应式数据
|
|
|
const showTeamLeaderQuickSelect = ref(false)
|
|
|
@@ -2350,6 +2345,17 @@ function handleFinishSuccess() {
|
|
|
getList()
|
|
|
}
|
|
|
|
|
|
+// 用于传递给退回组件的提交方法
|
|
|
+async function submitSuspendFromParent(data) {
|
|
|
+ await suspendWorkOrder(data.id, data)
|
|
|
+}
|
|
|
+
|
|
|
+// 在提交退回成功后的回调函数
|
|
|
+function handleSuspendSuccess() {
|
|
|
+ suspendDialogVisible.value = false
|
|
|
+ getList()
|
|
|
+}
|
|
|
+
|
|
|
/** 复运 */
|
|
|
function handleRestart(row) {
|
|
|
getGxtOrder(row.id).then(response => {
|
|
|
@@ -2438,7 +2444,7 @@ function handleSuspend(row) {
|
|
|
suspendForm.value.orderId = row.id
|
|
|
suspendDialogVisible.value = true
|
|
|
// 打开对话框后重置表单验证错误
|
|
|
- proxy.resetForm("suspendRef")
|
|
|
+ proxy.resetForm("suspendFormRef")
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -2516,7 +2522,7 @@ function submitSuspend() {
|
|
|
}
|
|
|
|
|
|
suspendWorkOrder(suspendForm.value.orderId, gxtWorkOrder).then(response => {
|
|
|
- proxy.$modal.msgSuccess("挂起申请已提交")
|
|
|
+ proxy.$modal.msgSuccess("挂起申请提交成功")
|
|
|
suspendDialogVisible.value = false
|
|
|
getList()
|
|
|
}).catch(error => {
|