|
|
|
|
@ -34,14 +34,26 @@
|
|
|
|
|
<span>-</span>
|
|
|
|
|
<DatePicker v-model="select.date_end" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="结束日期" style="width: 120px" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search-item">
|
|
|
|
|
<span>截止日期:</span>
|
|
|
|
|
<DatePicker v-model="select.end_date_start" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="截止日期" style="width: 120px" />
|
|
|
|
|
<span>-</span>
|
|
|
|
|
<DatePicker v-model="select.end_date_end" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="结束日期" style="width: 120px" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search-item">
|
|
|
|
|
<span>关键词:</span>
|
|
|
|
|
<Input v-model="select.keyword" placeholder="维护物资/运维内容" style="width: 200px" />
|
|
|
|
|
<Input v-model="select.keyword" placeholder="维护物资" style="width: 120px" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search-item">
|
|
|
|
|
<span>运维内容:</span>
|
|
|
|
|
<Input v-model="select.content" placeholder="运维内容" style="width: 120px" />
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-top: 8px;">
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="getList">查询</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="resetSearch">重置</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="createMaintenance">新增</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="exportExcel(new Date().getTime().toString())">导出</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="getList">查询</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="resetSearch">重置</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="createMaintenance">新增</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 8px;" @click="exportExcel(new Date().getTime().toString())">导出</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</slot>
|
|
|
|
|
</lx-header>
|
|
|
|
|
@ -452,7 +464,10 @@ export default {
|
|
|
|
|
is_expire:'',
|
|
|
|
|
date_start: '',
|
|
|
|
|
date_end: '',
|
|
|
|
|
keyword: ''
|
|
|
|
|
end_date_start:'',
|
|
|
|
|
end_date_end:'',
|
|
|
|
|
keyword: '',
|
|
|
|
|
content: ''
|
|
|
|
|
},
|
|
|
|
|
stats: {
|
|
|
|
|
total: 0,
|
|
|
|
|
@ -703,13 +718,18 @@ export default {
|
|
|
|
|
value:this.select.status?this.select.status:(this.select.status===0?0:'')
|
|
|
|
|
},{
|
|
|
|
|
'key':'planned_maintenance_date',
|
|
|
|
|
op:'eq',
|
|
|
|
|
value:this.select.date_start?this.formatDate(this.select.date_start):''
|
|
|
|
|
op:'range',
|
|
|
|
|
value:this.select.date_start?this.formatDate(this.select.date_start)+','+this.formatDate(this.select.date_end):''
|
|
|
|
|
},{
|
|
|
|
|
'key':'maintenance_date',
|
|
|
|
|
op:'eq',
|
|
|
|
|
value:this.select.date_end?this.formatDate(this.select.date_end):''
|
|
|
|
|
}],
|
|
|
|
|
'key':'end_date',
|
|
|
|
|
op:'range',
|
|
|
|
|
value:this.select.end_date_start?this.formatDate(this.select.end_date_start)+','+this.formatDate(this.select.end_date_end):''
|
|
|
|
|
},{
|
|
|
|
|
'key':'content',
|
|
|
|
|
op:'like',
|
|
|
|
|
value:this.select.content?this.select.content:''
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
const res = await getOperationList(params)
|
|
|
|
|
@ -1196,9 +1216,6 @@ export default {
|
|
|
|
|
"export_fields[status_text]" : "状态",
|
|
|
|
|
is_export:1,
|
|
|
|
|
// warehouse: this.select.warehouse,
|
|
|
|
|
// status: this.select.status,
|
|
|
|
|
// date_start: this.select.date_start,
|
|
|
|
|
date_end: this.select.date_end,
|
|
|
|
|
keyword: this.select.keyword,
|
|
|
|
|
filter:[{
|
|
|
|
|
'key':'status',
|
|
|
|
|
@ -1210,8 +1227,12 @@ export default {
|
|
|
|
|
value:this.select.date_start?this.formatDate(this.select.date_start):''
|
|
|
|
|
},{
|
|
|
|
|
'key':'maintenance_date',
|
|
|
|
|
op:'eq',
|
|
|
|
|
value:this.select.date_end?this.formatDate(this.select.date_end):''
|
|
|
|
|
op:'range',
|
|
|
|
|
value:this.select.end_date_start?this.formatDate(this.select.end_date_start)+','+this.formatDate(this.select.end_date_end):''
|
|
|
|
|
},{
|
|
|
|
|
'key':'content',
|
|
|
|
|
op:'like',
|
|
|
|
|
value:this.select.content?this.select.content:''
|
|
|
|
|
}],
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|