|
@@ -17,13 +17,6 @@
|
|
|
@listData="list"
|
|
|
@listCreate="listCreate">
|
|
|
<div slot="custom" style="display:flex">
|
|
|
- <!-- <div class="label_center">
|
|
|
- <p class="search__label">类型:</p>
|
|
|
- <el-select @clear="$refs.list.param.content.pageNumber = 1 ;$refs.list.param.content.type = '';$refs.list.listData()" v-model="type" clearable style="margin-right:10px" size="small" placeholder="请选择类型" @change="$refs.list.param.content.pageNumber = 1 ;$refs.list.param.content.type = type;$refs.list.listData()">
|
|
|
- <el-option label="退货单" value="退货单" />
|
|
|
- <el-option label="借用归还单" value="借用归还单" />
|
|
|
- </el-select>
|
|
|
- </div> -->
|
|
|
<div class="label_center">
|
|
|
<p class="search__label">状态:</p>
|
|
|
<el-select @clear="$refs.list.param.content.pageNumber = 1 ;$refs.list.param.content.where.status = '';$refs.list.listData()" v-model="status" clearable style="margin-right:10px" size="small" placeholder="请选择状态" @change="$refs.list.param.content.pageNumber = 1 ;$refs.list.param.content.where.status = status;$refs.list.listData()">
|
|
@@ -33,6 +26,21 @@
|
|
|
<el-option label="复核" value="复核" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
+ <div class="label_center">
|
|
|
+ <label class="search__label">创建时间:</label>
|
|
|
+ <el-date-picker
|
|
|
+ style="margin-right: 24px !important;"
|
|
|
+ size="small"
|
|
|
+ @change="selectChange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ v-model="dateSelect"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ clearable>
|
|
|
+ </el-date-picker>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<template v-slot:tbList="scope">
|
|
|
<span v-if="scope.data.column.columnname == 'status'">
|
|
@@ -61,6 +69,7 @@ export default {
|
|
|
return {
|
|
|
options:[],
|
|
|
status:'',
|
|
|
+ dateSelect:'',
|
|
|
type:'借用归还单'
|
|
|
}
|
|
|
},
|
|
@@ -71,7 +80,17 @@ export default {
|
|
|
},
|
|
|
listCreate (param) {
|
|
|
param.content.type = this.type
|
|
|
- }
|
|
|
+ },
|
|
|
+ selectChange(){
|
|
|
+ if (this.dateSelect !== '' && this.dateSelect !== null){
|
|
|
+ this.$refs.list.param.content.where.startdate = this.dateSelect[0]
|
|
|
+ this.$refs.list.param.content.where.enddate = this.dateSelect[1]
|
|
|
+ }else {
|
|
|
+ this.$refs.list.param.content.where.startdate = ''
|
|
|
+ this.$refs.list.param.content.where.enddate = ''
|
|
|
+ }
|
|
|
+ this.$refs.list.listData()
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
|