Browse Source

补料任务,来源库位

hella_online_20240829
yufei0306 6 months ago
parent
commit
c9106101cd
  1. 19
      src/pages/repleinsh/job/repleinshJob.vue

19
src/pages/repleinsh/job/repleinshJob.vue

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

Loading…
Cancel
Save