Browse Source

修改发料筛选

lijuncheng0816
niexiting 1 month ago
parent
commit
c2f5c47a1b
  1. 32
      src/mycomponents/job/jobFilter.vue
  2. 8
      src/pages/issue/job/issueJob.vue
  3. 12
      src/pages/repleinsh/job/repleinshJob.vue

32
src/mycomponents/job/jobFilter.vue

@ -3,9 +3,7 @@
<view class="maskbox" @tap="maskClick"></view> <view class="maskbox" @tap="maskClick"></view>
<view class="uni-flex uni-column center" <view class="uni-flex uni-column center"
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 +18,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 +57,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>
@ -122,6 +121,10 @@
isShowItemCode: { isShowItemCode: {
type: Boolean, type: Boolean,
default: false default: false
},
isShowQurery: {
type: Boolean,
default: false
} }
}, },
data() { data() {
@ -131,7 +134,9 @@
checkedWaitModel: false, checkedWaitModel: false,
productionLineCode: '', // 线 productionLineCode: '', // 线
fromLocationCode: '', // fromLocationCode: '', //
itemCode: '' // itemCode: '', //
creationTime: '',
status: ''
} }
}, },
watch: { watch: {
@ -156,7 +161,9 @@
let params = { let params = {
productionLineCode: this.productionLineCode, productionLineCode: this.productionLineCode,
fromLocationCode: this.fromLocationCode, fromLocationCode: this.fromLocationCode,
itemCode: this.itemCode itemCode: this.itemCode,
creationTime: this.creationTime,
status: this.status
} }
return params; return params;
}, },
@ -198,17 +205,22 @@
if (isOn) { if (isOn) {
creationTime = getTodayDate(); creationTime = getTodayDate();
} }
this.creationTime = creationTime;
this.$emit("switchChangeToday", isOn, creationTime) this.$emit("switchChangeToday", isOn, creationTime)
this.closeScanPopup() if (!this.isShowQurery) {
this.closeScanPopup()
}
}, },
switchChangeWait(isOn) { switchChangeWait(isOn) {
let status = "1,2"; let status = "1,2";
if (isOn) { if (isOn) {
status = "1" status = "1"
} }
this.status = status;
this.$emit("switchChangeWait", isOn, status) this.$emit("switchChangeWait", isOn, status)
this.closeScanPopup() if (!this.isShowQurery) {
this.closeScanPopup()
}
}, },
scanNumberClick() { scanNumberClick() {

8
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"
@ -181,7 +179,7 @@
} }
}) })
}, },
getList(type, fromLocation = '', productionLine = '') { getList(type, fromLocation = '', productionLine = '') {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({

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

@ -6,11 +6,11 @@
:checkedWaitTask="checkedWaitTask" @fromLocationCode="fromLocationCode"> :checkedWaitTask="checkedWaitTask" @fromLocationCode="fromLocationCode">
</job-filter> --> </job-filter> -->
<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"> <view v-if="jobList.length>0">
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
@ -276,7 +276,7 @@
value: params.fromLocationCode value: params.fromLocationCode
}) })
} }
if (params.itemCode) { if (params.itemCode) {
// 线 // 线
filters.push({ filters.push({

Loading…
Cancel
Save