|
|
@ -1,9 +1,9 @@ |
|
|
|
<template> |
|
|
|
<view class=""> |
|
|
|
<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" |
|
|
|
:checkedWaitTask="checkedWaitTask"> |
|
|
|
:checkedWaitTask="checkedWaitTask" @onQuery="getListByFilter"> |
|
|
|
</job-filter> |
|
|
|
|
|
|
|
<view v-if="jobList.length>0"> |
|
|
@ -67,7 +67,15 @@ |
|
|
|
title: { |
|
|
|
type: String, |
|
|
|
default: "" |
|
|
|
} |
|
|
|
}, |
|
|
|
isShowItemCode: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
isShowQurery: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -82,7 +90,8 @@ |
|
|
|
status: '1,2', //待处理 、进行中 |
|
|
|
detailOptions: [], |
|
|
|
detailGiveupOptions: [], |
|
|
|
titleName:"" |
|
|
|
titleName:"", |
|
|
|
filterItemCode:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -172,6 +181,15 @@ |
|
|
|
value: this.status |
|
|
|
}) |
|
|
|
|
|
|
|
if(this.filterItemCode){ |
|
|
|
// 物料代码 |
|
|
|
filters.push({ |
|
|
|
column: "itemCode", |
|
|
|
action: "like", |
|
|
|
value: this.filterItemCode |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
filters.push({ |
|
|
|
column: "accept_user_id", |
|
|
|
action: "==", |
|
|
@ -260,6 +278,27 @@ |
|
|
|
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) { |
|
|
|
this.checkedToday = state; |
|
|
|