|
|
@ -5,7 +5,7 @@ |
|
|
|
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 +20,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 +59,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> |
|
|
@ -112,6 +113,10 @@ const props = defineProps({ |
|
|
|
isShowItemCode: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
isShowQurery: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
} |
|
|
|
}) |
|
|
|
const dataContent = ref({}) |
|
|
@ -123,6 +128,8 @@ const show = ref(false) |
|
|
|
const scanNumber = ref() |
|
|
|
const scanAsnNumber = ref() |
|
|
|
const itemCode = ref('')//物料代码 |
|
|
|
const creationTime = ref('') |
|
|
|
const status = ref('') |
|
|
|
// 监视属性 |
|
|
|
watch( |
|
|
|
() => props.checkedToday, |
|
|
@ -143,7 +150,9 @@ const getQueryCondition = ()=>{ |
|
|
|
let params = { |
|
|
|
productionLineCode: productionLineCode.value, |
|
|
|
fromLocationCode: fromLocationCode.value, |
|
|
|
itemCode: itemCode.value |
|
|
|
itemCode: itemCode.value, |
|
|
|
creationTime: creationTime.value, |
|
|
|
status: status.value |
|
|
|
} |
|
|
|
return params; |
|
|
|
} |
|
|
@ -176,20 +185,26 @@ const closeScanPopup = () => { |
|
|
|
show.value = false |
|
|
|
} |
|
|
|
const switchChangeToday = (isOn) => { |
|
|
|
let creationTime = '' |
|
|
|
let creationTimeCode = '' |
|
|
|
if (isOn) { |
|
|
|
creationTime = getTodayDate() |
|
|
|
creationTimeCode = getTodayDate() |
|
|
|
} |
|
|
|
emit('switchChangeToday', isOn, creationTime) |
|
|
|
creationTime.value = creationTimeCode; |
|
|
|
emit('switchChangeToday', isOn, creationTimeCode) |
|
|
|
if (!props.isShowQurery) { |
|
|
|
closeScanPopup() |
|
|
|
} |
|
|
|
} |
|
|
|
const switchChangeWait = (isOn) => { |
|
|
|
let status = '1,2' |
|
|
|
let statusCode = '1,2' |
|
|
|
if (isOn) { |
|
|
|
status = '1' |
|
|
|
statusCode = '1' |
|
|
|
} |
|
|
|
emit('switchChangeWait', isOn, status) |
|
|
|
status.value = statusCode; |
|
|
|
emit('switchChangeWait', isOn, statusCode) |
|
|
|
if (!props.isShowQurery) { |
|
|
|
closeScanPopup() |
|
|
|
} |
|
|
|
} |
|
|
|
const scanNumberClick = () => { |
|
|
|
scanNumber.value.openScanPopup() |
|
|
|