Browse Source

修改发料筛选 2024/8/7

pull/1/head
王志国 3 months ago
parent
commit
f50a44b1d9
  1. 39
      src/mycomponents/job/jobFilter.vue
  2. 6
      src/pages/issue/job/issueJob.vue
  3. 10
      src/pages/repleinsh/job/repleinshJob.vue

39
src/mycomponents/job/jobFilter.vue

@ -5,7 +5,7 @@
style="background-color: white;width: 100%; height:auto;padding: 20rpx;z-index: 99;position: relative; border-radius: 10rpx;"> style="background-color: white;width: 100%; height:auto;padding: 20rpx;z-index: 99;position: relative; border-radius: 10rpx;">
<!-- 现场并不需要这两个筛选条件暂时拿掉 --> <!-- 现场并不需要这两个筛选条件暂时拿掉 -->
<!-- <view class="uni-flex space-between u-col-center" style="width: 100%;"> <view class="uni-flex space-between u-col-center" style="width: 100%;">
<view class="" style="font-size: 32rpx;"> <view class="" style="font-size: 32rpx;">
只看当天 只看当天
</view> </view>
@ -20,7 +20,7 @@
</view> </view>
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" <u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35"
@change="switchChangeWait"></u-switch> @change="switchChangeWait"></u-switch>
</view> --> </view>
<view v-if="isShowProductionLineCode" class="uni-flex space-between u-col-center" <view v-if="isShowProductionLineCode" class="uni-flex space-between u-col-center"
style="width: 100%;margin-top: 30rpx;"> style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;"> <view class="" style="font-size: 32rpx;">
@ -59,7 +59,8 @@
@click="scanNumberClick">扫描任务编号</button> @click="scanNumberClick">扫描任务编号</button>
</view> </view>
</view> --> </view> -->
<view class=" uni-flex uni-row" style="margin-top: 5px;"> <view class=" uni-flex uni-row" style="margin-top: 5px;" v-if="isShowQurery">
<button class="btn_single_clear" hover-class="btn_commit_after" @click="query()">重置</button>
<button class="btn_single_commit" hover-class="btn_commit_after" @click="query()">查询</button> <button class="btn_single_commit" hover-class="btn_commit_after" @click="query()">查询</button>
</view> </view>
</view> </view>
@ -112,6 +113,10 @@ const props = defineProps({
isShowItemCode: { isShowItemCode: {
type: Boolean, type: Boolean,
default: false default: false
},
isShowQurery: {
type: Boolean,
default: false
} }
}) })
const dataContent = ref({}) const dataContent = ref({})
@ -123,6 +128,8 @@ const show = ref(false)
const scanNumber = ref() const scanNumber = ref()
const scanAsnNumber = ref() const scanAsnNumber = ref()
const itemCode = ref('')// const itemCode = ref('')//
const creationTime = ref('')
const status = ref('')
// //
watch( watch(
() => props.checkedToday, () => props.checkedToday,
@ -143,7 +150,9 @@ const getQueryCondition = ()=>{
let params = { let params = {
productionLineCode: productionLineCode.value, productionLineCode: productionLineCode.value,
fromLocationCode: fromLocationCode.value, fromLocationCode: fromLocationCode.value,
itemCode: itemCode.value itemCode: itemCode.value,
creationTime: creationTime.value,
status: status.value
} }
return params; return params;
} }
@ -176,20 +185,26 @@ const closeScanPopup = () => {
show.value = false show.value = false
} }
const switchChangeToday = (isOn) => { const switchChangeToday = (isOn) => {
let creationTime = '' let creationTimeCode = ''
if (isOn) { if (isOn) {
creationTime = getTodayDate() creationTimeCode = getTodayDate()
}
creationTime.value = creationTimeCode;
emit('switchChangeToday', isOn, creationTimeCode)
if (!props.isShowQurery) {
closeScanPopup()
} }
emit('switchChangeToday', isOn, creationTime)
closeScanPopup()
} }
const switchChangeWait = (isOn) => { const switchChangeWait = (isOn) => {
let status = '1,2' let statusCode = '1,2'
if (isOn) { if (isOn) {
status = '1' statusCode = '1'
}
status.value = statusCode;
emit('switchChangeWait', isOn, statusCode)
if (!props.isShowQurery) {
closeScanPopup()
} }
emit('switchChangeWait', isOn, status)
closeScanPopup()
} }
const scanNumberClick = () => { const scanNumberClick = () => {
scanNumber.value.openScanPopup() scanNumber.value.openScanPopup()

6
src/pages/issue/job/issueJob.vue

@ -2,10 +2,8 @@
<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" :isShowProductionLineCode="true" :productionline="productionlineList" <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" :productionline="productionlineList"
ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" ref="filter" otherTitle="" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"
@onScanNumber="getScanNumber" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" :isShowItemCode="true" @onQuery="getListByFilter" :isShowQurery='true'>
:isShowItemCode="true" @productionLineCode="productionLineCode" @fromLocationCode="fromLocationCode"
@onQuery="getListByFilter">
<!-- <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" <!-- <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true"
:productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" :productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday"
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"

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

@ -1,11 +1,11 @@
<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 :isShowFromLocationCode="true" :isShowProductionLineCode="false" :productionline="productionlineList" <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="false"
ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" :productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday"
@onScanNumber="getScanNumber" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"
:isShowItemCode="true" @productionLineCode="productionLineCode" @fromLocationCode="fromLocationCode" :checkedWaitTask="checkedWaitTask" :isShowItemCode="true" @productionLineCode="productionLineCode"
@onQuery="getListByFilter"> @fromLocationCode="fromLocationCode" :isShowQurery='true' @onQuery="getListByFilter">
</job-filter> </job-filter>
<view v-if="jobList.length > 0" class="u-m-20"> <view v-if="jobList.length > 0" class="u-m-20">
<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in jobList" :key="index" :options="item.status == '2' ? detailGiveupOptions : item.status == '1' ? detailCloseOptions : detailOptions" bg-color="rgba(255,255,255,0)" class="u-m-b-20" @click="swipeClick"> <u-swipe-action :show="item.show" :index="index" v-for="(item, index) in jobList" :key="index" :options="item.status == '2' ? detailGiveupOptions : item.status == '1' ? detailCloseOptions : detailOptions" bg-color="rgba(255,255,255,0)" class="u-m-b-20" @click="swipeClick">

Loading…
Cancel
Save