|
|
@ -72,48 +72,8 @@
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="创建方式" prop="createMethod">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="queryParams.createMethod"
|
|
|
|
|
|
|
|
placeholder="创建方式"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.dms_create_method"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="调试时间">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
v-model="queryParams.params.beginTime"
|
|
|
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
placeholder="选择日期时间"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd "
|
|
|
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item><div>-</div></el-form-item>
|
|
|
|
<el-form-item><div>-</div></el-form-item>
|
|
|
|
<el-form-item
|
|
|
|
|
|
|
|
><el-date-picker
|
|
|
|
|
|
|
|
v-model="queryParams.params.endTime"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd "
|
|
|
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
placeholder="选择日期时间"
|
|
|
|
|
|
|
|
></el-date-picker
|
|
|
|
|
|
|
|
></el-form-item>
|
|
|
|
|
|
|
|
<!-- <el-form-item label="是否标识:1-是;2-否" prop="isFlag">-->
|
|
|
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
|
|
|
<!-- v-model="queryParams.isFlag"-->
|
|
|
|
|
|
|
|
<!-- placeholder="请输入是否标识:1-是;2-否"-->
|
|
|
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
|
|
|
<!-- />-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
@ -170,13 +130,6 @@
|
|
|
|
<el-table v-loading="loading" :data="maintList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="maintList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="planMaintId" />-->
|
|
|
|
<!-- <el-table-column label="主键标识" align="center" prop="planMaintId" />-->
|
|
|
|
<el-table-column label="主键标识" align="center" prop="planMaintId" >
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<router-link :to="'/dms/maintDetail/index/' + scope.row.planMaintId" class="link-type">
|
|
|
|
|
|
|
|
<span>{{ scope.row.planMaintId }}</span>
|
|
|
|
|
|
|
|
</router-link>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="计划编号" align="center" prop="planMaintCode" />
|
|
|
|
<el-table-column label="计划编号" align="center" prop="planMaintCode" />
|
|
|
|
<!-- <el-table-column label="保养级别:1-日常保养;2-月度保养;3-年度保养" align="center" prop="maintLevel" />-->
|
|
|
|
<!-- <el-table-column label="保养级别:1-日常保养;2-月度保养;3-年度保养" align="center" prop="maintLevel" />-->
|
|
|
|
<el-table-column label="保养级别" align="center" prop="maintLevel">
|
|
|
|
<el-table-column label="保养级别" align="center" prop="maintLevel">
|
|
|
@ -199,19 +152,6 @@
|
|
|
|
<span v-show="scope.row.timeLimitHours!=0&&scope.row.timeLimitHours!=null">{{scope.row.timeLimitHours}}小时</span>
|
|
|
|
<span v-show="scope.row.timeLimitHours!=0&&scope.row.timeLimitHours!=null">{{scope.row.timeLimitHours}}小时</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- <el-table-column label="循环周期" align="center" prop="cyclePeriod" />-->
|
|
|
|
|
|
|
|
<!-- <el-table-column label="保养状态:1-待保养;2-保养中;3-已完成" align="center" prop="maintStatus" />-->
|
|
|
|
|
|
|
|
<el-table-column label="保养状态" align="center" prop="maintStatus">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.dms_maint_status" :value="scope.row.maintStatus"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- <el-table-column label="创建方式:1-人工创建;2-自动创建" align="center" prop="createMethod" />-->
|
|
|
|
|
|
|
|
<el-table-column label="创建方式" align="center" prop="createMethod">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.dms_create_method" :value="scope.row.createMethod"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- <el-table-column label="是否标识:1-是;2-否" align="center" prop="isFlag" />-->
|
|
|
|
<!-- <el-table-column label="是否标识:1-是;2-否" align="center" prop="isFlag" />-->
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
@ -222,7 +162,7 @@
|
|
|
|
icon="el-icon-s-order"
|
|
|
|
icon="el-icon-s-order"
|
|
|
|
@click="jumpToDetail(scope.row)"
|
|
|
|
@click="jumpToDetail(scope.row)"
|
|
|
|
v-hasPermi="['dms:checkplan:edit']"
|
|
|
|
v-hasPermi="['dms:checkplan:edit']"
|
|
|
|
>详情</el-button>
|
|
|
|
>计划明细</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -251,13 +191,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改保养计划信息对话框 -->
|
|
|
|
<!-- 添加或修改保养计划信息对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form-item label="计划编号" prop="planMaintCode">
|
|
|
|
<el-form-item label="计划编号" prop="planMaintCode" v-if="false">
|
|
|
|
<el-input v-model="form.planMaintCode" placeholder="请输入计划编号" />
|
|
|
|
<el-input v-model="form.planMaintCode" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="保养级别:1-日常保养;2-月度保养;3-年度保养" prop="maintLevel">-->
|
|
|
|
|
|
|
|
<!-- <el-input v-model="form.maintLevel" placeholder="请输入保养级别:1-日常保养;2-月度保养;3-年度保养" />-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<el-form-item label="保养级别" prop="maintLevel">
|
|
|
|
<el-form-item label="保养级别" prop="maintLevel">
|
|
|
|
<el-radio-group v-model="form.maintLevel">
|
|
|
|
<el-radio-group v-model="form.maintLevel">
|
|
|
|
<el-radio
|
|
|
|
<el-radio
|
|
|
@ -287,42 +224,29 @@
|
|
|
|
<!-- <el-form-item label="创建方式:1-人工创建;2-自动创建" prop="createMethod">-->
|
|
|
|
<!-- <el-form-item label="创建方式:1-人工创建;2-自动创建" prop="createMethod">-->
|
|
|
|
<!-- <el-input v-model="form.createMethod" placeholder="请输入创建方式:1-人工创建;2-自动创建" />-->
|
|
|
|
<!-- <el-input v-model="form.createMethod" placeholder="请输入创建方式:1-人工创建;2-自动创建" />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="job" prop="jobId" v-if="false">
|
|
|
|
|
|
|
|
<el-input v-model="form.jobId" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="时限" prop="timeLimitDays">
|
|
|
|
<el-form-item label="时限" prop="timeLimitDays">
|
|
|
|
<el-input-number v-model="form.timeLimitDays" placeholder="请输入天数" :min="0" :max="10000"/>
|
|
|
|
<el-input-number v-model="form.timeLimitDays" placeholder="请输入天数" :precision="0" :min="0" :max="10000"/>
|
|
|
|
<el-input-number v-model="form.timeLimitHours" placeholder="请输入小时" :min="0" :max="23"/>
|
|
|
|
<el-input-number v-model="form.timeLimitHours" placeholder="请输入小时" :precision="0" :min="0" :max="23"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-form-item label="cron表达式" prop="cronExpression">
|
|
|
|
<el-form-item label="定时计划" prop="cronExpression">
|
|
|
|
<el-input v-model="form.cronExpression" placeholder="请输入cron执行表达式">
|
|
|
|
<el-input v-model="form.cronExpression" placeholder="请输入cron执行表达式" readonly>
|
|
|
|
<template slot="append">
|
|
|
|
<template slot="append">
|
|
|
|
<el-button type="primary" @click="handleShowCron">
|
|
|
|
<el-button type="primary" @click="handleShowCron">
|
|
|
|
生成表达式
|
|
|
|
生成计划表达式
|
|
|
|
<i class="el-icon-time el-icon--right"></i>
|
|
|
|
<i class="el-icon-time el-icon--right"></i>
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="保养状态" prop="maintStatus">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.maintStatus">
|
|
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
|
|
v-for="dict in dict.type.dms_maint_status"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="创建方式" prop="createMethod">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.createMethod">
|
|
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
|
|
v-for="dict in dict.type.dms_create_method"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- <el-form-item label="是否标识:1-是;2-否" prop="isFlag">-->
|
|
|
|
<!-- <el-form-item label="是否标识:1-是;2-否" prop="isFlag">-->
|
|
|
|
<!-- <el-input v-model="form.isFlag" placeholder="请输入是否标识:1-是;2-否" />-->
|
|
|
|
<!-- <el-input v-model="form.isFlag" placeholder="请输入是否标识:1-是;2-否" />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
@ -362,6 +286,8 @@ export default {
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
|
|
codes: [],
|
|
|
|
// 子表选中数据
|
|
|
|
// 子表选中数据
|
|
|
|
checkedDmsPlanMaintDetail: [],
|
|
|
|
checkedDmsPlanMaintDetail: [],
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
@ -408,8 +334,8 @@ export default {
|
|
|
|
planMaintCode: [
|
|
|
|
planMaintCode: [
|
|
|
|
{ required: true, message: "计划编号不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "计划编号不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
isFlag: [
|
|
|
|
cronExpression: [
|
|
|
|
{ required: true, message: "是否标识:1-是;2-否不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "定时计划不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -480,6 +406,7 @@ export default {
|
|
|
|
cyclePeriod: null,
|
|
|
|
cyclePeriod: null,
|
|
|
|
maintStatus: null,
|
|
|
|
maintStatus: null,
|
|
|
|
createMethod: null,
|
|
|
|
createMethod: null,
|
|
|
|
|
|
|
|
cronExpression: null,
|
|
|
|
isFlag: null,
|
|
|
|
isFlag: null,
|
|
|
|
remark: null,
|
|
|
|
remark: null,
|
|
|
|
createBy: null,
|
|
|
|
createBy: null,
|
|
|
@ -503,6 +430,7 @@ export default {
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.planMaintId)
|
|
|
|
this.ids = selection.map(item => item.planMaintId)
|
|
|
|
|
|
|
|
this.codes = selection.map(item => item.planMaintCode)
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.multiple = !selection.length
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -518,7 +446,6 @@ export default {
|
|
|
|
const planMaintId = row.planMaintId || this.ids
|
|
|
|
const planMaintId = row.planMaintId || this.ids
|
|
|
|
getMaint(planMaintId).then(response => {
|
|
|
|
getMaint(planMaintId).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.dmsPlanMaintDetailList = response.data.dmsPlanMaintDetailList;
|
|
|
|
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改保养计划信息";
|
|
|
|
this.title = "修改保养计划信息";
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -547,7 +474,8 @@ export default {
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const planMaintIds = row.planMaintId || this.ids;
|
|
|
|
const planMaintIds = row.planMaintId || this.ids;
|
|
|
|
this.$modal.confirm('是否确认删除保养计划信息编号为"' + planMaintIds + '"的数据项?').then(function() {
|
|
|
|
const planMatinCodes = row.planMatinCode || this.codes
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认删除保养计划编号为"' + planMatinCodes + '"的数据项?').then(function() {
|
|
|
|
return delMaint(planMaintIds);
|
|
|
|
return delMaint(planMaintIds);
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|