<!--
|
* @Date: 2024-01-06 17:40:19
|
* @LastEditors: Sneed
|
* @LastEditTime: 2024-01-13 11:33:27
|
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue
|
-->
|
<template>
|
<div class="maintenance">
|
<div class="nav">设备保养/日常保养</div>
|
<List ref="list" url="/component/pageQuery">
|
<template slot="search">
|
<div class="item">
|
<span>统一编号</span>
|
<el-input class="item-value" v-model="query.no"></el-input>
|
</div>
|
<div class="item">
|
<span>设备名称</span>
|
<!-- <el-input class="item-value" v-model="query.no"></el-input> -->
|
<el-select class="item-value" v-model="query.no" placeholder="请选择">
|
<el-option
|
v-for="item in options"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value">
|
</el-option>
|
</el-select>
|
</div>
|
<div class="item">
|
<span>设备型号</span>
|
<el-input class="item-value" v-model="query.no"></el-input>
|
</div>
|
<div class="item">
|
<span>设备规格</span>
|
<el-input class="item-value" v-model="query.no"></el-input>
|
</div>
|
<div class="item">
|
<span>使用部门</span>
|
<el-input class="item-value" v-model="query.no"></el-input>
|
</div>
|
<div class="item">
|
<span>安装位置</span>
|
<el-input class="item-value" v-model="query.no"></el-input>
|
</div>
|
<div class="item">
|
<span>计划开始日期</span>
|
<!-- <el-input class="item-value" v-model="query.no"></el-input> -->
|
<el-date-picker
|
class="item-value"
|
v-model="query.no"
|
align="right"
|
type="date"
|
placeholder="选择日期"
|
>
|
</el-date-picker>
|
</div>
|
<div class="item">
|
<span>计划完成日期</span>
|
<el-date-picker
|
class="item-value"
|
v-model="query.no"
|
align="right"
|
type="date"
|
placeholder="选择日期"
|
>
|
</el-date-picker>
|
</div>
|
<div class="item">
|
<el-button type="primary" size="small" @click="query">查询</el-button>
|
</div>
|
<div class="item">
|
<el-button type="primary" size="small" @click="reset">重置</el-button>
|
</div>
|
</template>
|
<template slot="table-tool">
|
<el-button type="primary" size="mini" @click="add">添加</el-button>
|
</template>
|
<template slot="columns">
|
<el-table-column
|
type="selection"
|
align="center"
|
width="55">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="统一编号"
|
prop="uuid">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="设备名称"
|
width="150"
|
:show-overflow-tooltip="true"
|
prop="machineName">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="设备型号"
|
prop="type">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="设备规格"
|
prop="specification">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="使用单位"
|
prop="department">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="保养者"
|
prop="userName">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="保养周期"
|
prop="period">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="保养类型"
|
prop="style">
|
<template slot-scope="scope">
|
<span>{{scope.row.style === "1" ? "日常保养" : scope.row.style === "2" ? "一级保养" :
|
scope.row.style === "3" ? "二级保养" : "三级保养" }}</span>
|
</template>
|
</el-table-column>
|
<el-table-column
|
align="center"
|
width="110"
|
label="是否合格"
|
prop="isQualified">
|
<template slot-scope="scope">
|
<span>{{scope.row.isQualified === "1"? "合格" : "不合格"}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column
|
align="center"
|
width="120"
|
:show-overflow-tooltip="true"
|
label="计划开始时间">
|
<template slot-scope="scope">
|
<span v-if="scope.row.startDateFrom">{{scope.row.startDateFrom+ '~' +scope.row.startDateTo}}</span>
|
<span v-else></span>
|
</template>
|
</el-table-column>
|
<el-table-column
|
align="center"
|
width="120"
|
:show-overflow-tooltip="true"
|
label="计划完成时间">
|
<template slot-scope="scope">
|
<span v-if="scope.row.completeDateFrom">{{scope.row.completeDateFrom+ '~' +scope.row.completeDateTo}}</span>
|
<span v-else></span>
|
</template>
|
</el-table-column>
|
<el-table-column
|
align="center"
|
width="150"
|
:show-overflow-tooltip="true"
|
label="保养内容与存在问题"
|
prop="detail">
|
</el-table-column>
|
<el-table-column
|
align="center"
|
label="编辑"
|
prop="editor">
|
<template slot-scope="scope">
|
<el-button size="mini" type="text" @click="addDevice(2,scope.row,$event)">编辑</el-button>
|
<el-button size="mini" type="text" @click="deleteHandle(2,scope.row)">删除</el-button>
|
</template>
|
</el-table-column>
|
</template>
|
</List>
|
</div>
|
</template>
|
<script>
|
import List from '../list/index.vue'
|
export default {
|
components: {
|
List
|
},
|
data () {
|
return {
|
query: {
|
no: ''
|
},
|
options: [{}]
|
}
|
}
|
}
|
</script>
|
<style lang="scss">
|
.maintenance {
|
.item-value {
|
.el-input__inner {
|
background: transparent;
|
border-radius: 2px;
|
border: 1px solid #435F9E;
|
}
|
}
|
.el-button--mini {
|
background: transparent;
|
}
|
.el-button--primary {
|
background-color: transparent;
|
}
|
}
|
</style>
|
<style lang="scss" scoped>
|
.maintenance {
|
width: 100%;
|
height: 100%;
|
overflow: hidden;
|
color: #FFF;
|
display: flex;
|
flex-direction: column;
|
|
.nav {
|
padding: 10px 30px;
|
}
|
|
.item {
|
margin-top: 20px;
|
margin-left: 50px;
|
display: flex;
|
align-items: center;
|
|
span {
|
width: 120px;
|
font-size: 16px;
|
font-family: PingFangSC, PingFang SC;
|
color: #C6DCE0;
|
text-align: right;
|
padding-right: 20px;
|
}
|
|
.item-value {
|
width: 200px;
|
border: 1px solid #435F9E;
|
}
|
|
.btn {
|
line-height: 1.5;
|
width: 100px;
|
text-align: center;
|
font-size: 16px;
|
cursor: pointer;
|
}
|
|
.reset {
|
background: #AAB6BA;
|
color: #FFF;
|
}
|
|
.query {
|
background: #5DD1FC;
|
color: #FFF;
|
}
|
}
|
}
|
</style>
|