|
|
|
@ -69,14 +69,6 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="false" label="循环执行时间开始" prop="planLoopStart">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.planLoopStart"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择循环执行时间开始">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="false" label="循环执行时间结束" prop="planLoopEnd">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.planLoopEnd"
|
|
|
|
@ -104,12 +96,14 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="90px" label="是否可生产" prop="planRestrict">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.planRestrict"
|
|
|
|
|
placeholder="请输入是否可生产"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
<el-select v-model="queryParams.planRestrict" placeholder="请选择计划状态" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.device_yes_no"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="false" label="是否委外" prop="planOutsource">
|
|
|
|
|
<el-input
|
|
|
|
@ -191,7 +185,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建人" prop="createBy">
|
|
|
|
|
<el-form-item v-if="false" label="创建人" prop="createBy">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.createBy"
|
|
|
|
|
placeholder="请输入创建人"
|
|
|
|
@ -199,7 +193,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建时间" prop="createTime">
|
|
|
|
|
<el-form-item v-if="false" label="创建时间" prop="createTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.createTimeArray"
|
|
|
|
|
type="daterange"
|
|
|
|
@ -212,7 +206,20 @@
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="更新人" prop="updateBy">
|
|
|
|
|
<el-form-item label-width="100px" label="循环开始时间" prop="planLoopStart">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.loopStartArray"
|
|
|
|
|
type="daterange"
|
|
|
|
|
align="right"
|
|
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="false" label="更新人" prop="updateBy">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.updateBy"
|
|
|
|
|
placeholder="请输入更新人"
|
|
|
|
@ -220,7 +227,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="更新时间" prop="updateTime">
|
|
|
|
|
<el-form-item v-if="false" label="更新时间" prop="updateTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.updateTimeArray"
|
|
|
|
|
type="daterange"
|
|
|
|
@ -302,12 +309,12 @@
|
|
|
|
|
<dict-tag :options="dict.type.device_loop_type" :value="scope.row.planLoopType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="循环执行时间开始" align="center" prop="planLoopStart" width="180">
|
|
|
|
|
<el-table-column label="循环开始时间" align="center" prop="planLoopStart" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="循环执行时间结束" align="center" prop="planLoopEnd" width="180">
|
|
|
|
|
<el-table-column v-if="false" label="循环执行时间结束" align="center" prop="planLoopEnd" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.planLoopEnd, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
@ -423,9 +430,15 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span=12 :offset="1">
|
|
|
|
|
<el-col :span="9" :offset="2">
|
|
|
|
|
<el-form-item label-width="100px" label="点检开始时间">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="form.planLoopStart"
|
|
|
|
|
type="date"
|
|
|
|
|
placeholder="开始时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-if="false"
|
|
|
|
|
@change="changeArray"
|
|
|
|
|
v-model="form.planTimeArray"
|
|
|
|
|
type="datetimerange"
|
|
|
|
@ -780,6 +793,7 @@ export default {
|
|
|
|
|
updateTime: null,
|
|
|
|
|
createTimeArray: [],
|
|
|
|
|
updateTimeArray: [],
|
|
|
|
|
loopStartArray: [],
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {
|
|
|
|
@ -793,6 +807,7 @@ export default {
|
|
|
|
|
personList: [],
|
|
|
|
|
planWorkshop: null,
|
|
|
|
|
planType: "spotInspection",
|
|
|
|
|
planLoopStart: null,
|
|
|
|
|
},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {}
|
|
|
|
@ -1123,6 +1138,7 @@ export default {
|
|
|
|
|
planTimeArray: [],
|
|
|
|
|
equipmentItem: [],
|
|
|
|
|
personList: [],
|
|
|
|
|
loopStartArray: [],
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
@ -1137,6 +1153,7 @@ export default {
|
|
|
|
|
// 重置日期范围
|
|
|
|
|
this.queryParams.createTimeArray = [];
|
|
|
|
|
this.queryParams.updateTimeArray = [];
|
|
|
|
|
this.queryParams.loopStartArray = [];
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|