首页跳转
This commit is contained in:
parent
278a2da67f
commit
b250e14aab
|
|
@ -3,7 +3,7 @@
|
|||
<div class="app-container">
|
||||
<div class="page-header">
|
||||
<el-button type="text" icon="el-icon-arrow-left" @click="goBack">返回</el-button>
|
||||
<span class="page-title">装备维修</span>
|
||||
<span class="page-title">装备退役</span>
|
||||
</div>
|
||||
|
||||
<el-form ref="outFormRef" :model="outForm" inline :rules="outFormRules" label-width="auto" size="small">
|
||||
|
|
|
|||
|
|
@ -149,9 +149,9 @@
|
|||
<el-form-item label="质检日期" prop="qcTime">
|
||||
<el-date-picker
|
||||
v-model="addOrEditForm.qcTime"
|
||||
type="datetime"
|
||||
type="date"
|
||||
placeholder="请选择质检日期"
|
||||
value-format="YYYY-MM-DD hh:mm:ss"
|
||||
value-format="yyyy-MM-dd"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
@change="onQcChange"
|
||||
|
|
@ -164,9 +164,9 @@
|
|||
<el-form-item label="下次质检日期" prop="nextCheckTime">
|
||||
<el-date-picker
|
||||
v-model="addOrEditForm.nextCheckTime"
|
||||
type="datetime"
|
||||
type="date"
|
||||
placeholder="请选择下次质检日期"
|
||||
value-format="YYYY-MM-DD hh:mm:ss"
|
||||
value-format="yyyy-MM-dd"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
/>
|
||||
|
|
@ -312,7 +312,6 @@
|
|||
<template slot-scope="{ row }">
|
||||
<el-popconfirm
|
||||
width="220"
|
||||
:icon="InfoFilled"
|
||||
icon-color="#626AEF"
|
||||
title="确定删除该记录吗?"
|
||||
@confirm="onDelete(row)"
|
||||
|
|
@ -625,7 +624,7 @@ export default {
|
|||
}
|
||||
} catch (error) {
|
||||
console.error('删除质检记录失败:', error)
|
||||
this.$message.error('删除失败,请重试')
|
||||
// this.$message.error('删除失败,请重试')
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -278,10 +278,29 @@ export default {
|
|||
// 对于有多个出线的节点,默认高亮第一条线
|
||||
if (nodeId === 'equipmentLedger') {
|
||||
this.activeLine = 'ledgerToShelf';
|
||||
this.$router.push({ path: '/equipment/equipment-ledger' })
|
||||
} else if (nodeId === 'equipmentShelf') {
|
||||
this.activeLine = 'shelfToRental';
|
||||
this.$router.push({ path: '/equipment/equipment-ledger' })
|
||||
} else if (nodeId === 'equipmentRepair') {
|
||||
this.activeLine = 'repairToRetire';
|
||||
this.$router.push({ path: '/equipment/equ-repair' })
|
||||
} else if (nodeId === 'equipmentEntry') {
|
||||
this.$router.push({ path: '/equipment/equipmentEntry/equipment-entry-apply' })
|
||||
} else if (nodeId === 'entryAudit') {
|
||||
this.$router.push({ path: '/equipment/equipmentEntry/equipment-entry-approval' })
|
||||
} else if (nodeId === 'equipmentOffShelf') {
|
||||
this.$router.push({ path: '/equipment/equipment-ledger' })
|
||||
} else if (nodeId === 'selfUseOut') {
|
||||
this.$router.push({ path: '/equipment/euq-out' })
|
||||
} else if (nodeId === 'equipmentRetire') {
|
||||
this.$router.push({ path: '/equipment/equipment-retire' })
|
||||
} else if (nodeId === 'equipmentReturn' || nodeId === 'shareReturn') {
|
||||
this.$router.push({ path: '/equipment/equ-repair' })
|
||||
} else if (nodeId === 'rentalHall') {
|
||||
this.$router.push({ path: '/equipmentShared/MallIframe' })
|
||||
} else if (nodeId === 'shareOut') {
|
||||
this.$router.push({ path: '/equipmentShared/equipment-shared-lessor' })
|
||||
}
|
||||
},
|
||||
updateConnections() {
|
||||
|
|
@ -308,7 +327,7 @@ export default {
|
|||
this.lineDefs.forEach((ld) => {
|
||||
const fromEl = this.$refs[ld.from];
|
||||
const toEl = this.$refs[ld.to];
|
||||
const f = buildMetrics(fromEl);
|
||||
const f = buildMetrics(fromEl);
|
||||
const t = buildMetrics(toEl);
|
||||
if (!f || !t) return;
|
||||
const fa = getEdgeAnchors(f);
|
||||
|
|
|
|||
Loading…
Reference in New Issue