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