|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!--
|
|
|
|
|
<el-form-item label="工单生产日期" prop="incomeTime">
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.incomeTime"
|
|
|
|
@ -26,7 +27,19 @@
|
|
|
|
|
style="width:205px"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>-->
|
|
|
|
|
|
|
|
|
|
<el-form-item label="任务时间" prop="incomeTimeArray">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="queryParams.incomeTimeArray"
|
|
|
|
|
format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
type="datetimerange"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >搜索</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
@ -155,6 +168,7 @@ export default {
|
|
|
|
|
open: false,
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
incomeTimeArray: [],
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
checkNo: null,
|
|
|
|
@ -212,7 +226,9 @@ export default {
|
|
|
|
|
/**获取默认查询时间段**/
|
|
|
|
|
getDate() {
|
|
|
|
|
let start = this.Fungetdate (0)
|
|
|
|
|
this.queryParams.incomeTime =start
|
|
|
|
|
let end = this.Fungetdate (1)
|
|
|
|
|
this.queryParams.incomeTimeArray.push(start,end)
|
|
|
|
|
//this.queryParams.checkTimeArray.push(start,end)
|
|
|
|
|
},
|
|
|
|
|
Fungetdate (num) {
|
|
|
|
|
var dd = new Date();
|
|
|
|
@ -231,9 +247,12 @@ export default {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.queryParams.incomeTime != null){
|
|
|
|
|
this.queryParams.incomeTimeStr = moment(this.queryParams.incomeTime).format('YYYY-MM-DD');
|
|
|
|
|
|
|
|
|
|
if(this.queryParams.incomeTimeArray != null &&this.queryParams.incomeTimeArray.length>0){
|
|
|
|
|
this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss');
|
|
|
|
|
this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
|
|
|
|
|
}else{
|
|
|
|
|
this.queryParams.incomeTimeStart = null;
|
|
|
|
|
this.queryParams.incomeTimeEnd = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getXJCheckTableList(this.queryParams).then(response => {
|
|
|
|
|