Browse Source

修改发料筛选

lijuncheng0816
niexiting 4 months 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="uni-flex uni-column center"
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>
@ -20,7 +18,7 @@
</view>
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35"
@change="switchChangeWait"></u-switch>
</view> -->
</view>
<view v-if="isShowProductionLineCode" class="uni-flex space-between u-col-center"
style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;">
@ -59,7 +57,8 @@
@click="scanNumberClick">扫描任务编号</button>
</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>
</view>
</view>
@ -122,6 +121,10 @@
isShowItemCode: {
type: Boolean,
default: false
},
isShowQurery: {
type: Boolean,
default: false
}
},
data() {
@ -131,7 +134,9 @@
checkedWaitModel: false,
productionLineCode: '', // 线
fromLocationCode: '', //
itemCode: '' //
itemCode: '', //
creationTime: '',
status: ''
}
},
watch: {
@ -156,7 +161,9 @@
let params = {
productionLineCode: this.productionLineCode,
fromLocationCode: this.fromLocationCode,
itemCode: this.itemCode
itemCode: this.itemCode,
creationTime: this.creationTime,
status: this.status
}
return params;
},
@ -198,17 +205,22 @@
if (isOn) {
creationTime = getTodayDate();
}
this.creationTime = creationTime;
this.$emit("switchChangeToday", isOn, creationTime)
this.closeScanPopup()
if (!this.isShowQurery) {
this.closeScanPopup()
}
},
switchChangeWait(isOn) {
let status = "1,2";
if (isOn) {
status = "1"
}
this.status = status;
this.$emit("switchChangeWait", isOn, status)
this.closeScanPopup()
if (!this.isShowQurery) {
this.closeScanPopup()
}
},
scanNumberClick() {

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

@ -2,10 +2,8 @@
<view class="">
<com-empty-view v-if="jobList.length==0"></com-empty-view>
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" :productionline="productionlineList"
ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait"
@onScanNumber="getScanNumber" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"
:isShowItemCode="true" @productionLineCode="productionLineCode" @fromLocationCode="fromLocationCode"
@onQuery="getListByFilter">
ref="filter" otherTitle="" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"
:isShowItemCode="true" @onQuery="getListByFilter" :isShowQurery='true'>
<!-- <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true"
:productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday"
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"
@ -181,7 +179,7 @@
}
})
},
getList(type, fromLocation = '', productionLine = '') {
let that = this;
uni.showLoading({

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

@ -6,11 +6,11 @@
:checkedWaitTask="checkedWaitTask" @fromLocationCode="fromLocationCode">
</job-filter> -->
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="false" :productionline="productionlineList"
ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait"
@onScanNumber="getScanNumber" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"
:isShowItemCode="true" @productionLineCode="productionLineCode" @fromLocationCode="fromLocationCode"
@onQuery="getListByFilter">
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="false"
:productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday"
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"
:checkedWaitTask="checkedWaitTask" :isShowItemCode="true" @productionLineCode="productionLineCode"
@fromLocationCode="fromLocationCode" :isShowQurery='true' @onQuery="getListByFilter">
</job-filter>
<view v-if="jobList.length>0">
<uni-swipe-action ref="swipeAction">
@ -276,7 +276,7 @@
value: params.fromLocationCode
})
}
if (params.itemCode) {
// 线
filters.push({

Loading…
Cancel
Save