|
@ -3,9 +3,7 @@ |
|
|
<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="uni-flex space-between u-col-center" style="width: 100%;"> |
|
|
|
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
<view class="" style="font-size: 32rpx;"> |
|
|
只看当天 |
|
|
只看当天 |
|
|
</view> |
|
|
</view> |
|
@ -20,7 +18,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" |
|
|
<u-switch v-model="checkedWaitModel" active-color="#4DD865" inactive-color="#eee" size="35" |
|
|
@change="switchChangeWait"></u-switch> |
|
|
@change="switchChangeWait"></u-switch> |
|
|
</view> --> |
|
|
</view> |
|
|
<view v-if="isShowProductionLineCode" class="uni-flex space-between u-col-center" |
|
|
<view v-if="isShowProductionLineCode" 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;"> |
|
@ -59,7 +57,8 @@ |
|
|
@click="scanNumberClick">扫描任务编号</button> |
|
|
@click="scanNumberClick">扫描任务编号</button> |
|
|
</view> |
|
|
</view> |
|
|
</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> |
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="query()">查询</button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -122,6 +121,10 @@ |
|
|
isShowItemCode: { |
|
|
isShowItemCode: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: false |
|
|
default: false |
|
|
|
|
|
}, |
|
|
|
|
|
isShowQurery: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
@ -131,7 +134,9 @@ |
|
|
checkedWaitModel: false, |
|
|
checkedWaitModel: false, |
|
|
productionLineCode: '', // 生产线 |
|
|
productionLineCode: '', // 生产线 |
|
|
fromLocationCode: '', // 来源库位 |
|
|
fromLocationCode: '', // 来源库位 |
|
|
itemCode: '' //物料代码 |
|
|
itemCode: '', //物料代码 |
|
|
|
|
|
creationTime: '', |
|
|
|
|
|
status: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
@ -156,7 +161,9 @@ |
|
|
let params = { |
|
|
let params = { |
|
|
productionLineCode: this.productionLineCode, |
|
|
productionLineCode: this.productionLineCode, |
|
|
fromLocationCode: this.fromLocationCode, |
|
|
fromLocationCode: this.fromLocationCode, |
|
|
itemCode: this.itemCode |
|
|
itemCode: this.itemCode, |
|
|
|
|
|
creationTime: this.creationTime, |
|
|
|
|
|
status: this.status |
|
|
} |
|
|
} |
|
|
return params; |
|
|
return params; |
|
|
}, |
|
|
}, |
|
@ -198,17 +205,22 @@ |
|
|
if (isOn) { |
|
|
if (isOn) { |
|
|
creationTime = getTodayDate(); |
|
|
creationTime = getTodayDate(); |
|
|
} |
|
|
} |
|
|
|
|
|
this.creationTime = creationTime; |
|
|
this.$emit("switchChangeToday", isOn, creationTime) |
|
|
this.$emit("switchChangeToday", isOn, creationTime) |
|
|
this.closeScanPopup() |
|
|
if (!this.isShowQurery) { |
|
|
|
|
|
this.closeScanPopup() |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
switchChangeWait(isOn) { |
|
|
switchChangeWait(isOn) { |
|
|
let status = "1,2"; |
|
|
let status = "1,2"; |
|
|
if (isOn) { |
|
|
if (isOn) { |
|
|
status = "1" |
|
|
status = "1" |
|
|
} |
|
|
} |
|
|
|
|
|
this.status = status; |
|
|
this.$emit("switchChangeWait", isOn, status) |
|
|
this.$emit("switchChangeWait", isOn, status) |
|
|
this.closeScanPopup() |
|
|
if (!this.isShowQurery) { |
|
|
|
|
|
this.closeScanPopup() |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
scanNumberClick() { |
|
|
scanNumberClick() { |
|
|