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