| | |
| | | <el-dialog
|
| | | :title="title"
|
| | | width="80%"
|
| | | @close="cancel"
|
| | | :visible.sync="dialogVisibleAdd" class="role-select">
|
| | | <!-- 查询表单 -->
|
| | | <el-form :model="dataForm" ref="dataForm" label-width="150px" style="margin-top:10px;">
|
| | | <el-row :gutter="24">
|
| | | <el-col :xs="24":sm="6":md="6":lg="6":xl="6">
|
| | | <el-form-item label="设备名称" prop="machineName">
|
| | | <el-select v-model="dataForm.machineId" placeholder="---请选择---">
|
| | | <el-select v-model="dataForm.machineId" placeholder="---请选择---" clearable>
|
| | | <el-option
|
| | | v-for="item in machineList"
|
| | | :key="item.id"
|
| | | :label="item.name"
|
| | | :label="item.machineName"
|
| | | :value="item.id">
|
| | | </el-option>
|
| | | </el-select>
|
| | |
| | | </el-col>
|
| | | <el-col :xs="24":sm="6":md="6":lg="6":xl="6">
|
| | | <el-form-item label="保养内容与存在问题" prop="detail">
|
| | | <el-input size="mini" type="text" v-model="dataForm.detail"></el-input>
|
| | | <el-input size="mini" type="text" v-model="dataForm.detail" clearable></el-input>
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | <el-col :xs="24":sm="6":md="6":lg="6":xl="6">
|
| | |
| | | value-format="yyyy-MM-dd"
|
| | | v-model="dataForm.planStartDate"
|
| | | range-separator="至"
|
| | | clearable
|
| | | type="daterange"
|
| | | start-placeholder="开始日期"
|
| | | end-placeholder="结束日期">
|
| | |
| | | value-format="yyyy-MM-dd"
|
| | | v-model="dataForm.planFinishDate"
|
| | | range-separator="至"
|
| | | clearable
|
| | | type="daterange"
|
| | | start-placeholder="开始日期"
|
| | | end-placeholder="结束日期">
|
| | |
| | | import { getMachineList, maintainCreate, maintainUpdate, userList, departmentGet } from '@/api/MdcApi'
|
| | | import { getRequest } from '@/api/Api'
|
| | | export default {
|
| | | props: ['styles', 'departmentlist','machineList','userList'],
|
| | | props: ['styleName','styles','styleValue', 'departmentlist','machineList','userList'],
|
| | | data() {
|
| | | return {
|
| | | dataForm: {
|
| | |
| | | maintainPerson: '',
|
| | | isQualified: '',
|
| | | detail: '',
|
| | | style: '',
|
| | | },
|
| | | dialogVisibleAdd: false,
|
| | | // 下拉框
|
| | |
| | | init(n, data) {
|
| | | this.data = data
|
| | | this.no = n
|
| | | |
| | | if (n === 1) {
|
| | | this.title = '新增' + this.style
|
| | | this.title = '新增' + this.styleName
|
| | | Object.keys(this.dataForm).forEach(key => {
|
| | | this.dataForm[key] = ''
|
| | | })
|
| | | this.dataForm['style'] = ''
|
| | | } else {
|
| | | this.title = '修改' + this.style
|
| | | Object.keys(this.dataForm).forEach(key => {
|
| | |
| | | completeDateFrom,
|
| | | completeDateTo,
|
| | | isQualified,
|
| | | styles: this.style
|
| | | style: this.styleValue
|
| | | }).then(res => {
|
| | | if (res.result === 'SUCCESS') {
|
| | | this.$message({
|
| | |
| | | completeDateFrom,
|
| | | completeDateTo,
|
| | | isQualified,
|
| | | styles: this.style
|
| | | style: this.styleValue
|
| | | }).then(res => {
|
| | | if (res.result === 'SUCCESS') {
|
| | | this.$message({
|