|
|
@ -1,32 +1,47 @@ |
|
|
|
<template> |
|
|
|
<uni-popup ref="popup" > |
|
|
|
<uni-popup ref="popup"> |
|
|
|
<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="" style="font-size: 32rpx;"> |
|
|
|
只看当天 |
|
|
|
</view> |
|
|
|
|
|
|
|
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeToday"></u-switch> |
|
|
|
<!-- 现场并不需要这两个筛选条件,暂时拿掉 --> |
|
|
|
<!-- <view class="uni-flex space-between u-col-center" style="width: 100%;"> |
|
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
|
只看当天 |
|
|
|
</view> |
|
|
|
|
|
|
|
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" |
|
|
|
@change="switchChangeToday"></u-switch> |
|
|
|
</view> |
|
|
|
<view class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;"> |
|
|
|
|
|
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
|
只看待处理 |
|
|
|
</view> |
|
|
|
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeWait"></u-switch> |
|
|
|
</view> |
|
|
|
<view v-if="isShowProductionLineCode" class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;"> |
|
|
|
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" |
|
|
|
@change="switchChangeWait"></u-switch> |
|
|
|
</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;"> |
|
|
|
生产线 |
|
|
|
</view> |
|
|
|
<!-- <u-input style="margin-left: 20rpx;" v-model="productionLineCode" :border="true" |
|
|
|
placeholder="请输入生产线" @confirm="productionLineCodeConfirm" /> --> |
|
|
|
<uni-data-select class="uni-data-select" style="margin-left: 50rpx;" placeholder="请输入生产线" v-model="productionLineCode" :clear="false" :localdata="productionline" @change="productionLineCodeConfirm"></uni-data-select> |
|
|
|
|
|
|
|
<uni-data-select class="uni-data-select" style="margin-left: 50rpx;" placeholder="请输入生产线" |
|
|
|
v-model="productionLineCode" :clear="false" :localdata="productionline" |
|
|
|
@change="productionLineCodeConfirm"></uni-data-select> |
|
|
|
</view> |
|
|
|
<view v-if="isShowItemCode" class="uni-flex space-between u-col-center" |
|
|
|
style="width: 100%;margin-top: 30rpx;"> |
|
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
|
物料代码 |
|
|
|
</view> |
|
|
|
<u-input style="margin-left: 20rpx;" confirmType="search" v-model="itemCode" :border="true" |
|
|
|
placeholder="请输入物料代码" @confirm="itemCodeConfirm" /> |
|
|
|
</view> |
|
|
|
<view v-if="isShowFromLocationCode" class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;"> |
|
|
|
<view v-if="isShowFromLocationCode" class="uni-flex space-between u-col-center" |
|
|
|
style="width: 100%;margin-top: 30rpx;"> |
|
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
|
来源库位 |
|
|
|
</view> |
|
|
@ -34,7 +49,7 @@ |
|
|
|
placeholder="请输入来源库位" @confirm="fromLocationCodeConfirm" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class=""> |
|
|
|
<!-- <view class=""> |
|
|
|
<view class="uni-flex u-row-center" style="margin-top: 30rpx;" v-if="isShowAsn"> |
|
|
|
<button class="filter_button" hover-class="filter_button_after" |
|
|
|
@click="scanOtherClick">扫描ASN单号</button> |
|
|
@ -43,8 +58,12 @@ |
|
|
|
<button class="filter_button" hover-class="filter_button_after" |
|
|
|
@click="scanNumberClick">扫描任务编号</button> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class=" uni-flex uni-row" style="margin-top: 5px;"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="query()">查询</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</uni-popup> |
|
|
|
<win-scan-job-number ref="scanNumber" title="任务编号" @getScanCode='getScanNumber'></win-scan-job-number> |
|
|
|
<win-scan-asn-number ref="scanAsnNumber" :title="otherTitle" @getScanCode='getScanAsNumber'></win-scan-asn-number> |
|
|
@ -59,7 +78,9 @@ |
|
|
|
import winScanAsnNumber from "@/mycomponents/scan/winScanAsnNumber.vue" |
|
|
|
|
|
|
|
export default { |
|
|
|
emits: ["switchChangeToday", "switchChangeWait", "onScanNumber", "onScanAsnNumber","productionLineCode","fromLocationCode","fromLocationCodeConfirm"], |
|
|
|
emits: ["switchChangeToday", "switchChangeWait", "onScanNumber", "onScanAsnNumber", "productionLineCode", |
|
|
|
"fromLocationCode", "fromLocationCodeConfirm", "itemCodeConfirm", "onQuery" |
|
|
|
], |
|
|
|
components: { |
|
|
|
winScanJobNumber, |
|
|
|
winScanAsnNumber |
|
|
@ -78,34 +99,39 @@ |
|
|
|
type: String, |
|
|
|
default: "" |
|
|
|
}, |
|
|
|
isShowAsn:{ |
|
|
|
isShowAsn: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
isShowJob:{ |
|
|
|
isShowJob: { |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
isShowFromLocationCode:{ |
|
|
|
isShowFromLocationCode: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
isShowProductionLineCode:{ |
|
|
|
isShowProductionLineCode: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
productionline:{ |
|
|
|
productionline: { |
|
|
|
type: Array, |
|
|
|
default: [] |
|
|
|
}, |
|
|
|
isShowItemCode: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dataContent: {}, |
|
|
|
checkedTodayModel:false, |
|
|
|
checkedWaitModel:false, |
|
|
|
productionLineCode:'',// 生产线 |
|
|
|
fromLocationCode:'',// 来源库位 |
|
|
|
checkedTodayModel: false, |
|
|
|
checkedWaitModel: false, |
|
|
|
productionLineCode: '', // 生产线 |
|
|
|
fromLocationCode: '', // 来源库位 |
|
|
|
itemCode: '' //物料代码 |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
@ -124,19 +150,36 @@ |
|
|
|
deep: true |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
mounted() {}, |
|
|
|
methods: { |
|
|
|
// 生产线 |
|
|
|
productionLineCodeConfirm(e){ |
|
|
|
var lineCode=e |
|
|
|
this.$emit("productionLineCode", lineCode) |
|
|
|
getQueryCondition() { |
|
|
|
let params = { |
|
|
|
productionLineCode: this.productionLineCode, |
|
|
|
fromLocationCode: this.fromLocationCode, |
|
|
|
itemCode: this.itemCode |
|
|
|
} |
|
|
|
return params; |
|
|
|
}, |
|
|
|
|
|
|
|
query() { |
|
|
|
let params = this.getQueryCondition(); |
|
|
|
this.$emit("onQuery", params) |
|
|
|
this.closeScanPopup(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 生产线 |
|
|
|
productionLineCodeConfirm(e) { |
|
|
|
var lineCode = e |
|
|
|
this.productionLineCode = e; |
|
|
|
// this.$emit("productionLineCode", lineCode) |
|
|
|
}, |
|
|
|
|
|
|
|
// 来源库位 |
|
|
|
fromLocationCodeConfirm(){ |
|
|
|
this.$emit("fromLocationCode", this.fromLocationCode) |
|
|
|
fromLocationCodeConfirm() { |
|
|
|
// this.$emit("fromLocationCode", this.fromLocationCode) |
|
|
|
}, |
|
|
|
|
|
|
|
itemCodeConfirm() {}, |
|
|
|
// 点击遮罩 |
|
|
|
maskClick() { |
|
|
|
// 如果不允许点击遮罩,直接返回 |
|
|
@ -149,7 +192,6 @@ |
|
|
|
this.$refs.popup.close() |
|
|
|
}, |
|
|
|
switchChangeToday(isOn) { |
|
|
|
|
|
|
|
let creationTime = ''; |
|
|
|
if (isOn) { |
|
|
|
creationTime = getTodayDate(); |
|
|
@ -160,8 +202,8 @@ |
|
|
|
}, |
|
|
|
switchChangeWait(isOn) { |
|
|
|
let status = "1,2"; |
|
|
|
if(isOn){ |
|
|
|
status="1" |
|
|
|
if (isOn) { |
|
|
|
status = "1" |
|
|
|
} |
|
|
|
this.$emit("switchChangeWait", isOn, status) |
|
|
|
this.closeScanPopup() |
|
|
|