|
|
@ -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 :isShowFromLocationCode="true" ref="filter" otherTitle="ASN" @switchChangeToday="switchChangeToday" |
|
|
|
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday" |
|
|
|
:checkedWaitTask="checkedWaitTask"> |
|
|
|
:checkedWaitTask="checkedWaitTask" @fromLocationCode="fromLocationCode"> |
|
|
|
</job-filter> |
|
|
|
<view v-if="jobList.length>0"> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
@ -113,7 +113,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
getList(type) { |
|
|
|
getList(type, fromLocationCode = '') { |
|
|
|
|
|
|
|
let that = this; |
|
|
|
uni.showLoading({ |
|
|
@ -141,7 +141,14 @@ |
|
|
|
action: "in", |
|
|
|
value: this.status |
|
|
|
}) |
|
|
|
|
|
|
|
if (fromLocationCode != '') { |
|
|
|
// 来源库位 |
|
|
|
filters.push({ |
|
|
|
column: "fromLocationCode", |
|
|
|
action: "==", |
|
|
|
value: fromLocationCode |
|
|
|
}) |
|
|
|
} |
|
|
|
var params = { |
|
|
|
filters: filters, |
|
|
|
pageNo: this.pageNo, |
|
|
@ -177,6 +184,10 @@ |
|
|
|
that.showMessage(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
fromLocationCode(fromLocationCode) { |
|
|
|
console.log('fromLocationCode', fromLocationCode) |
|
|
|
this.getList('refresh', fromLocationCode, '') |
|
|
|
}, |
|
|
|
|
|
|
|
openJobDetail(item) { |
|
|
|
uni.navigateTo({ |
|
|
|