Browse Source

修改补料任务筛选

hella_online_20240829
lijuncheng 3 months ago
parent
commit
d6a0284868
  1. 25
      src/pages/repleinsh/job/repleinshJob.vue

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

@ -2,10 +2,16 @@
<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 :isShowFromLocationCode="true" <job-filter :isShowFromLocationCode="true" :isShowFromAreaCode="true" :isShowToAreaCode="true"
:isShowProductionLineCode="false"
ref="filter" otherTitle="" :isShowItemCode="true" ref="filter" otherTitle="" :isShowItemCode="true"
@onQuery="getListByFilter" :isShowQurery='true'> @onQuery="getListByFilter" :isShowQurery='true'>
</job-filter> </job-filter>
<!-- <job-filter :isShowFromLocationCode="true"
ref="filter" otherTitle="" :isShowItemCode="true"
@onQuery="getListByFilter" :isShowQurery='true'>
</job-filter> -->
<view v-if="jobList.length>0"> <view v-if="jobList.length>0">
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<view v-for="(item, index) in jobList" :key="index"> <view v-for="(item, index) in jobList" :key="index">
@ -231,6 +237,23 @@
value: queryParams.itemCode value: queryParams.itemCode
}) })
} }
//
if (queryParams.fromAreaCode) {
filterParams.push({
column: "fromAreaCode",
action: "==",
value: queryParams.fromAreaCode
})
}
//
if (queryParams.toAreaCode) {
filterParams.push({
column: "toAreaCode",
action: "==",
value: queryParams.toAreaCode
})
}
return filterParams; return filterParams;
}, },

Loading…
Cancel
Save