|
|
@ -13,14 +13,14 @@ import { |
|
|
|
|
|
|
|
import TopBackTitle from "@/components/TopBackTitle/index.vue"; |
|
|
|
import RecordDetail from "./components/RecordDetail.vue"; |
|
|
|
import { getAreasData } from "@/api/areas/index"; |
|
|
|
import {getAreasData} from "@/api/areas/index"; |
|
|
|
|
|
|
|
import { reqCountMixins } from "@/mixins/reqCount"; |
|
|
|
import { paginationMixins } from "@/mixins/commonPagination"; |
|
|
|
import {reqCountMixins} from "@/mixins/reqCount"; |
|
|
|
import {paginationMixins} from "@/mixins/commonPagination"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "InspectionItems", |
|
|
|
components: { TopBackTitle, RecordDetail }, |
|
|
|
components: {TopBackTitle, RecordDetail}, |
|
|
|
mixins: [reqCountMixins, paginationMixins], |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -311,7 +311,7 @@ export default { |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
> |
|
|
|
<el-option label="全部" value=""> </el-option> |
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
<el-option |
|
|
|
:label="item.dictLabel" |
|
|
|
:value="item.dictValue" |
|
|
@ -349,13 +349,15 @@ export default { |
|
|
|
class="flex-shrink-0 myml-12" |
|
|
|
type="success" |
|
|
|
@click="handleChangeQuery" |
|
|
|
>查询</el-button |
|
|
|
>查询 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
class="flex-shrink-0" |
|
|
|
size="small" |
|
|
|
@click="handleResetQuery" |
|
|
|
>重置</el-button |
|
|
|
>重置 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -363,10 +365,14 @@ export default { |
|
|
|
<div class="flex justify-end mb-16"> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" @click="handleAdd" |
|
|
|
>新增</el-button |
|
|
|
v-hasPermi="['sz:run:inspection:record:add']" |
|
|
|
>新增 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
<el-button type="danger" size="small" @click="handleDelAll" :disabled="tableCheckData.length === 0" |
|
|
|
>删除</el-button |
|
|
|
v-hasPermi="['sz:run:inspection:record:delAll']" |
|
|
|
>删除 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -376,39 +382,41 @@ export default { |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
> |
|
|
|
<el-table-column type="selection" width="55"></el-table-column> |
|
|
|
<el-table-column prop="wagaName" align="center" label="水闸名称" /> |
|
|
|
<el-table-column prop="wagaName" align="center" label="水闸名称"/> |
|
|
|
<el-table-column prop="wagaType" align="center" label="水闸类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ getwagaTypeName(scope.row.wagaType) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="name" align="center" label="维养计划名称" > |
|
|
|
<el-table-column prop="name" align="center" label="维养计划名称"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.plan.name }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="维养类型" > |
|
|
|
<el-table-column align="center" label="维养类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ getTypeName(scope.row.plan.type) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="完成维养时间" > |
|
|
|
<el-table-column align="center" label="完成维养时间"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{scope.row.plan.endDate}}</span> |
|
|
|
<span>{{ scope.row.plan.endDate }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="维养单位" > |
|
|
|
<el-table-column align="center" label="维养单位"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.plan && scope.row.plan.engineeringUnit }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="维养负责人" > |
|
|
|
<el-table-column align="center" label="维养负责人"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.plan.responsiblePerson && |
|
|
|
scope.row.plan.responsiblePerson.name }}</span> |
|
|
|
<span>{{ |
|
|
|
scope.row.plan.responsiblePerson && |
|
|
|
scope.row.plan.responsiblePerson.name |
|
|
|
}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="supplements" align="center" label="资金来源/万元" > |
|
|
|
<el-table-column prop="supplements" align="center" label="资金来源/万元"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ getSupplementName(scope.row.supplements) }}</span> |
|
|
|
</template> |
|
|
@ -448,43 +456,45 @@ export default { |
|
|
|
<el-button |
|
|
|
style="margin-right: 16px; margin-left: 10px;" |
|
|
|
@click="handleCheck(scope.row)" |
|
|
|
v-hasPermi="['sz:run:inspection:record:item:check']" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
>查看</el-button |
|
|
|
>查看 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
<el-popconfirm |
|
|
|
style="margin-right: 16px;" |
|
|
|
v-if="scope.row.status == '0'" |
|
|
|
confirm-button-text="确定" |
|
|
|
cancel-button-text="取消" |
|
|
|
icon="el-icon-info" |
|
|
|
icon-color="red" |
|
|
|
title="确认提交吗?" |
|
|
|
class="ml-10" |
|
|
|
@confirm="handleConfirmAccept(scope.row)" |
|
|
|
<el-button |
|
|
|
style="margin-right: 16px" |
|
|
|
v-if="scope.row.status == 0" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
v-hasPermi="['sz:run:inspection:record:item:submit']" |
|
|
|
@click="handleConfirmAccept(scope.row)" |
|
|
|
> |
|
|
|
<el-button type="text" size="small" slot="reference" |
|
|
|
>提交验收</el-button |
|
|
|
> |
|
|
|
</el-popconfirm> |
|
|
|
提交验收 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
style="color: red; margin-right: 16px" |
|
|
|
v-if="scope.row.status == 1" |
|
|
|
v-hasPermi="['sz:run:inspection:record:item:return']" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="handleReturn(scope.row)" |
|
|
|
>撤回</el-button |
|
|
|
>撤回 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
style="margin-right: 16px" |
|
|
|
@click="handleEdit(scope.row)" |
|
|
|
type="text" |
|
|
|
v-if="scope.row.status == '0'" |
|
|
|
v-hasPermi="['sz:run:inspection:record:item:edit']" |
|
|
|
size="small" |
|
|
|
>编辑</el-button |
|
|
|
>编辑 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
<el-popconfirm |
|
|
|
v-if="scope.row.status == '0'" |
|
|
|
v-hasPermi="['sz:run:inspection:record:item:del']" |
|
|
|
confirm-button-text="确定" |
|
|
|
cancel-button-text="取消" |
|
|
|
icon="el-icon-info" |
|
|
@ -497,7 +507,8 @@ export default { |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
slot="reference" |
|
|
|
>删除</el-button |
|
|
|
>删除 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
</el-popconfirm> |
|
|
|
</template> |
|
|
@ -532,7 +543,9 @@ export default { |
|
|
|
</div> |
|
|
|
<div class="drawer-footer p-16"> |
|
|
|
<el-button size="mini" type="primary" @click="handleEdit(currentRow)" |
|
|
|
>编辑</el-button |
|
|
|
v-hasPermi="['sz:run:inspection:record:item:edit']" |
|
|
|
>编辑 |
|
|
|
</el-button |
|
|
|
> |
|
|
|
<el-button size="mini" @click="dialogVisible = false">取消</el-button> |
|
|
|
</div> |
|
|
@ -544,6 +557,7 @@ export default { |
|
|
|
.search-form { |
|
|
|
.search-item { |
|
|
|
margin-bottom: 16px; |
|
|
|
|
|
|
|
.search-label { |
|
|
|
width: 100px; |
|
|
|
text-align: right; |
|
|
@ -551,6 +565,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.line { |
|
|
|
background: #e5e5e5; |
|
|
|
width: 100%; |
|
|
@ -570,9 +585,11 @@ export default { |
|
|
|
.w-160 { |
|
|
|
width: 170px; |
|
|
|
} |
|
|
|
|
|
|
|
.w-240 { |
|
|
|
width: 240px; |
|
|
|
} |
|
|
|
|
|
|
|
.w-360 { |
|
|
|
width: 360px; |
|
|
|
} |
|
|
|