|
@ -1,9 +1,9 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-empty-view v-if="jobList.length==0"></com-empty-view> |
|
|
<com-empty-view v-if="jobList.length==0"></com-empty-view> |
|
|
<job-filter ref="filter" otherTitle="ASN" @switchChangeToday="switchChangeToday" |
|
|
<job-filter ref="filter" :isShowItemCode="isShowItemCode" :isShowQurery="isShowQurery" otherTitle="ASN" @switchChangeToday="switchChangeToday" |
|
|
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday" |
|
|
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday" |
|
|
:checkedWaitTask="checkedWaitTask"> |
|
|
:checkedWaitTask="checkedWaitTask" @onQuery="getListByFilter"> |
|
|
</job-filter> |
|
|
</job-filter> |
|
|
|
|
|
|
|
|
<view v-if="jobList.length>0"> |
|
|
<view v-if="jobList.length>0"> |
|
@ -67,7 +67,15 @@ |
|
|
title: { |
|
|
title: { |
|
|
type: String, |
|
|
type: String, |
|
|
default: "" |
|
|
default: "" |
|
|
} |
|
|
}, |
|
|
|
|
|
isShowItemCode: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
|
|
|
}, |
|
|
|
|
|
isShowQurery: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -82,7 +90,8 @@ |
|
|
status: '1,2', //待处理 、进行中 |
|
|
status: '1,2', //待处理 、进行中 |
|
|
detailOptions: [], |
|
|
detailOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
titleName:"" |
|
|
titleName:"", |
|
|
|
|
|
filterItemCode:'' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -172,6 +181,15 @@ |
|
|
value: this.status |
|
|
value: this.status |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if(this.filterItemCode){ |
|
|
|
|
|
// 物料代码 |
|
|
|
|
|
filters.push({ |
|
|
|
|
|
column: "itemCode", |
|
|
|
|
|
action: "like", |
|
|
|
|
|
value: this.filterItemCode |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
filters.push({ |
|
|
filters.push({ |
|
|
column: "accept_user_id", |
|
|
column: "accept_user_id", |
|
|
action: "==", |
|
|
action: "==", |
|
@ -260,6 +278,27 @@ |
|
|
this.showMessage(error) |
|
|
this.showMessage(error) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
getListByFilter(params) { |
|
|
|
|
|
console.log('getListByFilter',params) |
|
|
|
|
|
if (params.itemCode) { |
|
|
|
|
|
// 物料代码 |
|
|
|
|
|
this.filterItemCode = params.itemCode |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.filterItemCode = '' |
|
|
|
|
|
} |
|
|
|
|
|
if (params.status) { |
|
|
|
|
|
this.status = params.status |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
this.status = "1,2" |
|
|
|
|
|
} |
|
|
|
|
|
if(params.creationTime==""){ |
|
|
|
|
|
this.checkedToday = false; |
|
|
|
|
|
} |
|
|
|
|
|
this.todayTime = params.creationTime |
|
|
|
|
|
|
|
|
|
|
|
this.getList('refresh') |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
switchChangeToday(state, creationTime) { |
|
|
switchChangeToday(state, creationTime) { |
|
|
this.checkedToday = state; |
|
|
this.checkedToday = state; |
|
|