|
@ -13,7 +13,7 @@ |
|
|
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" |
|
|
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" |
|
|
@change="switchChangeToday"></u-switch> |
|
|
@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;" v-if="isShowStatus"> |
|
|
|
|
|
|
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
只看待处理 |
|
|
只看待处理 |
|
@ -43,10 +43,35 @@ |
|
|
<view v-if="isShowFromLocationCode" class="uni-flex space-between u-col-center" |
|
|
<view v-if="isShowFromLocationCode" 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;"> |
|
|
来源库位 |
|
|
{{fromLoactionCodeName}} |
|
|
</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="`请输入${fromLoactionCodeName}`" |
|
|
|
|
|
@confirm="fromLocationCodeConfirm" /> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view v-if="isShowToLocationCode" 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="toLocationCode" :border="true" |
|
|
|
|
|
placeholder="请输入目标库位" /> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view v-if="isShowFromAreaCode" 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="fromAreaCode" :border="true" |
|
|
|
|
|
placeholder="请输入来源库区" /> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view v-if="isShowToAreaCode" 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: 50rpx;" confirmType="search" v-model="toAreaCode" :border="true" |
|
|
|
|
|
placeholder="请输入到库区" /> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- <view class=""> |
|
|
<!-- <view class=""> |
|
@ -98,10 +123,18 @@ const props = defineProps({ |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: true |
|
|
default: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
fromLoactionCodeName:{ |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: "来源库位" |
|
|
|
|
|
}, |
|
|
isShowFromLocationCode: { |
|
|
isShowFromLocationCode: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: false |
|
|
default: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
isShowToLocationCode: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
|
|
|
}, |
|
|
isShowProductionLineCode: { |
|
|
isShowProductionLineCode: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: false |
|
|
default: false |
|
@ -117,7 +150,21 @@ const props = defineProps({ |
|
|
isShowQurery: { |
|
|
isShowQurery: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: false |
|
|
default: false |
|
|
} |
|
|
}, |
|
|
|
|
|
//来源库区 |
|
|
|
|
|
isShowFromAreaCode: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
|
|
|
}, |
|
|
|
|
|
//到库区 |
|
|
|
|
|
isShowToAreaCode: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
|
|
|
}, |
|
|
|
|
|
isShowStatus: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: true |
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |
|
|
const dataContent = ref({}) |
|
|
const dataContent = ref({}) |
|
|
const checkedTodayModel = ref(false) |
|
|
const checkedTodayModel = ref(false) |
|
@ -129,7 +176,14 @@ const scanNumber = ref() |
|
|
const scanAsnNumber = ref() |
|
|
const scanAsnNumber = ref() |
|
|
const itemCode = ref('')//物料代码 |
|
|
const itemCode = ref('')//物料代码 |
|
|
const creationTime = ref('') |
|
|
const creationTime = ref('') |
|
|
const status = ref('') |
|
|
const status = ref('1,2') |
|
|
|
|
|
const toLocationCode = ref('') |
|
|
|
|
|
const toAreaCode = ref('') |
|
|
|
|
|
const fromAreaCode = ref('') |
|
|
|
|
|
const isOnToday = ref(false) |
|
|
|
|
|
const isOnWait = ref(false) |
|
|
|
|
|
const params = ref({}) |
|
|
|
|
|
const popup = ref(null) |
|
|
// 监视属性 |
|
|
// 监视属性 |
|
|
watch( |
|
|
watch( |
|
|
() => props.checkedToday, |
|
|
() => props.checkedToday, |
|
@ -150,6 +204,9 @@ const getQueryCondition = ()=>{ |
|
|
let params = { |
|
|
let params = { |
|
|
productionLineCode: productionLineCode.value, |
|
|
productionLineCode: productionLineCode.value, |
|
|
fromLocationCode: fromLocationCode.value, |
|
|
fromLocationCode: fromLocationCode.value, |
|
|
|
|
|
toLocationCode:toLocationCode.value, |
|
|
|
|
|
fromAreaCode: fromAreaCode.value, // 来源库区 |
|
|
|
|
|
toAreaCode: toAreaCode.value, // 到库区 |
|
|
itemCode: itemCode.value, |
|
|
itemCode: itemCode.value, |
|
|
creationTime: creationTime.value, |
|
|
creationTime: creationTime.value, |
|
|
status: status.value |
|
|
status: status.value |
|
@ -162,13 +219,18 @@ const query = ()=> { |
|
|
closeScanPopup(); |
|
|
closeScanPopup(); |
|
|
} |
|
|
} |
|
|
const reset = ()=>{ |
|
|
const reset = ()=>{ |
|
|
|
|
|
checkedTodayModel.value = false |
|
|
|
|
|
checkedWaitModel.value = false |
|
|
productionLineCode.value = '' |
|
|
productionLineCode.value = '' |
|
|
fromLocationCode.value = '' |
|
|
fromLocationCode.value = '' |
|
|
|
|
|
toLocationCode.value = false |
|
|
|
|
|
fromAreaCode.value = false |
|
|
|
|
|
toAreaCode.value = false |
|
|
itemCode.value = '' |
|
|
itemCode.value = '' |
|
|
creationTime.value = '' |
|
|
creationTime.value = '' |
|
|
status.value = '' |
|
|
status.value = '1,2' |
|
|
query() |
|
|
query() |
|
|
}, |
|
|
} |
|
|
// 生产线 |
|
|
// 生产线 |
|
|
const productionLineCodeConfirm = (e) => { |
|
|
const productionLineCodeConfirm = (e) => { |
|
|
const lineCode = e |
|
|
const lineCode = e |
|
@ -189,6 +251,20 @@ const maskClick = () => { |
|
|
const openFilter = () => { |
|
|
const openFilter = () => { |
|
|
show.value = true |
|
|
show.value = true |
|
|
} |
|
|
} |
|
|
|
|
|
const openFilterParams = (params)=>{ |
|
|
|
|
|
popup.value.open('top') |
|
|
|
|
|
if(params){ |
|
|
|
|
|
productionLineCode.value = params.productionLineCode |
|
|
|
|
|
fromLocationCode.value = params.fromLocationCode |
|
|
|
|
|
fromAreaCode.value = params.fromAreaCode |
|
|
|
|
|
toAreaCode.value = params.toAreaCode |
|
|
|
|
|
itemCode.value = params.itemCode |
|
|
|
|
|
creationTime.value = params.creationTime |
|
|
|
|
|
status.value = params.status |
|
|
|
|
|
checkedTodayModel.value = !!creationTime |
|
|
|
|
|
checkedWaitModel.value = this.status=="1" |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
const closeScanPopup = () => { |
|
|
const closeScanPopup = () => { |
|
|
show.value = false |
|
|
show.value = false |
|
|
} |
|
|
} |
|
|