|
@ -1,7 +1,7 @@ |
|
|
<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" :isShowAsn="true" @switchChangeToday="switchChangeToday" |
|
|
<job-filter ref="filter" :isShowAsn="isShowAsn" :isShowJob="isShowJob" @switchChangeToday="switchChangeToday" |
|
|
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" @onScanAsnNumber="getScanAsnNumber" |
|
|
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" @onScanAsnNumber="getScanAsnNumber" |
|
|
:checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"> |
|
|
:checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"> |
|
|
</job-filter> |
|
|
</job-filter> |
|
@ -82,7 +82,15 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
props: { |
|
|
props: { |
|
|
operation: "receipt" //reject 收货 拒绝 |
|
|
operation: "receipt" ,//reject 收货 拒绝 |
|
|
|
|
|
isShowAsn:{ |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: true |
|
|
|
|
|
}, |
|
|
|
|
|
isShowJob:{ |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: true |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// onShow() { |
|
|
// onShow() { |
|
@ -330,46 +338,66 @@ |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.openJobDetail(item, item.packingNumber); |
|
|
this.openJobDetail(item, item.packingNumber); |
|
|
}, |
|
|
}, |
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
var filters = [{ |
|
|
let filters = [] |
|
|
column: "packingNumber", |
|
|
if(result.label.barType=="BarCode"){ |
|
|
action: "==", |
|
|
// ASN单号 |
|
|
value: result.label.packingNumber |
|
|
filters = [{ |
|
|
}, |
|
|
column: "asn_number", |
|
|
{ |
|
|
action: "==", |
|
|
column: "batch", |
|
|
value: result.label.code |
|
|
action: "==", |
|
|
}] |
|
|
value: result.label.batch |
|
|
}else{ |
|
|
}, |
|
|
filters = [{ |
|
|
// { |
|
|
column: "packingNumber", |
|
|
// column: "qty", |
|
|
action: "==", |
|
|
// action: "==", |
|
|
value: result.label.packingNumber |
|
|
// value: result.label.qty |
|
|
}, |
|
|
// }, |
|
|
{ |
|
|
{ |
|
|
column: "batch", |
|
|
column: "itemCode", |
|
|
action: "==", |
|
|
action: "==", |
|
|
value: result.label.batch |
|
|
value: result.label.itemCode |
|
|
}, |
|
|
}, |
|
|
// { |
|
|
// { |
|
|
// column: "qty", |
|
|
// column: "fromLocationCode", |
|
|
// action: "==", |
|
|
// action: "==", |
|
|
// value: result.label.qty |
|
|
// value: result.label.fromLocationCode |
|
|
// }, |
|
|
// } |
|
|
{ |
|
|
] |
|
|
column: "itemCode", |
|
|
|
|
|
action: "==", |
|
|
|
|
|
value: result.label.itemCode |
|
|
|
|
|
}, |
|
|
|
|
|
// { |
|
|
|
|
|
// column: "fromLocationCode", |
|
|
|
|
|
// action: "==", |
|
|
|
|
|
// value: result.label.fromLocationCode |
|
|
|
|
|
// } |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getPurchaseReceiptJobList({ |
|
|
getPurchaseReceiptJobList({ |
|
|
filters: filters, |
|
|
filters: filters, |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 100, |
|
|
pageSize: 100, |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
var list = res.data.list; |
|
|
let resultList = res.data.list; |
|
|
list.forEach(item => { |
|
|
if (resultList.length > 0) { |
|
|
item.title = item.number; |
|
|
resultList.forEach(item => { |
|
|
item.selected = false |
|
|
item.title = item.number; |
|
|
}) |
|
|
item.selected = false |
|
|
console.log('list', list) |
|
|
}) |
|
|
if (list.length > 0) { |
|
|
let list = [] |
|
|
|
|
|
resultList.forEach(item=>{ |
|
|
|
|
|
if(!list.find(subItem=>subItem.title==item.title)){ |
|
|
|
|
|
list.push(item) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
console.log('list', list) |
|
|
if (list.length > 1) { |
|
|
if (list.length > 1) { |
|
|
this.$refs.jobList.openList(list) |
|
|
this.$refs.jobList.openList(list) |
|
|
} else { |
|
|
} else { |
|
|