This commit is contained in:
parent
b801b5b7c5
commit
f1f8020f50
|
|
@ -112,7 +112,7 @@
|
||||||
<el-table-column align="center" label="规格型号" prop="typeModelName"/>
|
<el-table-column align="center" label="规格型号" prop="typeModelName"/>
|
||||||
<el-table-column align="center" label="管理模式" prop="manageMode" width="110"/>
|
<el-table-column align="center" label="管理模式" prop="manageMode" width="110"/>
|
||||||
<el-table-column align="center" label="设备编码" prop="code" width="150"/>
|
<el-table-column align="center" label="设备编码" prop="code" width="150"/>
|
||||||
<el-table-column align="center" label="在修数量" prop="tobeRepairNum" width="100"/>
|
<el-table-column align="center" label="在库数量" prop="tobeRepairNum" width="100"/>
|
||||||
<el-table-column align="center" label="维修数量" width="120">
|
<el-table-column align="center" label="维修数量" width="120">
|
||||||
<template v-slot="{ row }">
|
<template v-slot="{ row }">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<span style="font-size: 20px; font-weight: 800">维修申请设备</span>
|
<span style="font-size: 20px; font-weight: 800">维修申请设备</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="!routerParams.isView" :span="20" style="display: flex; justify-content: flex-end">
|
<el-col v-if="!routerParams.isView" :span="20" style="display: flex; justify-content: flex-end">
|
||||||
<el-button type="primary" @click="handleNumDialog">添加</el-button>
|
<el-button v-if="!routerParams.isSubmit" type="primary" @click="handleNumDialog">添加</el-button>
|
||||||
<el-button type="primary" @click="submit">确认申请</el-button>
|
<el-button type="primary" @click="submit">确认申请</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -106,7 +106,7 @@
|
||||||
<!-- 操作列 -->
|
<!-- 操作列 -->
|
||||||
<el-table-column label="操作" align="center" width="80px" v-if="!routerParams.isView">
|
<el-table-column label="操作" align="center" width="80px" v-if="!routerParams.isView">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button :disabled="scope.row.status && scope.row.status === '通过'"
|
<el-button v-if="!routerParams.isSubmit" :disabled="scope.row.status && scope.row.status === '通过'"
|
||||||
size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" style="color: red">
|
size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" style="color: red">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -265,6 +265,7 @@ export default {
|
||||||
let title = '新增维修'
|
let title = '新增维修'
|
||||||
if (this.routerParams.isView) title = '维修查看'
|
if (this.routerParams.isView) title = '维修查看'
|
||||||
else if (this.routerParams.isEdit) title = '维修编辑'
|
else if (this.routerParams.isEdit) title = '维修编辑'
|
||||||
|
else if (this.routerParams.isSubmit) title = '维修提交'
|
||||||
|
|
||||||
this.queryParams.id = this.routerParams.applyId || ''
|
this.queryParams.id = this.routerParams.applyId || ''
|
||||||
const obj = Object.assign({}, this.$route, { title })
|
const obj = Object.assign({}, this.$route, { title })
|
||||||
|
|
|
||||||
|
|
@ -87,13 +87,14 @@
|
||||||
<el-tag v-if="scope.row.status == '1'" type="warning" @click="openDialog(scope.row)" style="cursor: pointer">审批中</el-tag>
|
<el-tag v-if="scope.row.status == '1'" type="warning" @click="openDialog(scope.row)" style="cursor: pointer">审批中</el-tag>
|
||||||
<el-tag v-if="scope.row.status == '2'" type="success" @click="openDialog(scope.row)" style="cursor: pointer">已审批</el-tag>
|
<el-tag v-if="scope.row.status == '2'" type="success" @click="openDialog(scope.row)" style="cursor: pointer">已审批</el-tag>
|
||||||
<el-tag v-if="scope.row.status == '3'" type="danger" @click="openDialog(scope.row)" style="cursor: pointer">审批驳回</el-tag>
|
<el-tag v-if="scope.row.status == '3'" type="danger" @click="openDialog(scope.row)" style="cursor: pointer">审批驳回</el-tag>
|
||||||
|
<el-tag v-if="scope.row.status == '5'" type="info" style="cursor: pointer">待提交</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="handleView(row)">查看</el-button>
|
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="handleView(row)">查看</el-button>
|
||||||
<el-button v-if="row.status == '0' || row.status == '3'" size="mini" type="text" icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button v-if="row.status == '0' || row.status == '3' || row.status == '5'" size="mini" type="text" icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>
|
||||||
<el-button v-if="row.status == '0' || row.status == '3'" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(row)" style="color: red"
|
<el-button v-if="row.status == '0' || row.status == '3'" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(row)" style="color: red"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
|
|
@ -139,6 +140,7 @@ export default {
|
||||||
endTime: null,
|
endTime: null,
|
||||||
},
|
},
|
||||||
statusList: [
|
statusList: [
|
||||||
|
{ label: '待提交', value: '5' },
|
||||||
{ label: '待审批', value: '0' },
|
{ label: '待审批', value: '0' },
|
||||||
{ label: '审批中', value: '1' },
|
{ label: '审批中', value: '1' },
|
||||||
{ label: '已审批', value: '2' },
|
{ label: '已审批', value: '2' },
|
||||||
|
|
@ -251,7 +253,12 @@ export default {
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
|
if (row.status=='5'){
|
||||||
|
this.$router.push({ path: './addRepair', query: { applyId: row.id, isSubmit: true } })
|
||||||
|
} else {
|
||||||
this.$router.push({ path: './addRepair', query: { applyId: row.id, isEdit: true } })
|
this.$router.push({ path: './addRepair', query: { applyId: row.id, isEdit: true } })
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ export default {
|
||||||
createBy: null,
|
createBy: null,
|
||||||
startTime: null,
|
startTime: null,
|
||||||
endTime: null,
|
endTime: null,
|
||||||
|
isAudit:1
|
||||||
},
|
},
|
||||||
statusList: [
|
statusList: [
|
||||||
{ label: '待审批', value: '0' },
|
{ label: '待审批', value: '0' },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue