You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.3 KiB
106 lines
2.3 KiB
1 year ago
|
<template>
|
||
|
<uni-popup ref="popup">
|
||
|
<view class="maskbox" @tap="maskClick"></view>
|
||
|
<view class="uni-flex uni-column center"
|
||
|
style="background-color: white;width: 200px; height:auto;padding: 20rpx;z-index: 99;position: relative;">
|
||
|
<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="checkedWaitTask" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeWait"></u-switch>
|
||
|
</view>
|
||
|
<view class="">
|
||
|
<view class="uni-flex u-row-center" style="margin-top: 30rpx;">
|
||
|
<button class="filter_button" hover-class="filter_button_after"
|
||
|
@click="scanNumberClick">扫描申请编号</button>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</uni-popup>
|
||
|
<win-scan-job-number ref="scanNumber" title="申请编号" @getScanCode='getScanNumber'></win-scan-job-number>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import {
|
||
|
getTodayDate
|
||
|
} from '@/common/basic.js';
|
||
|
|
||
|
import winScanJobNumber from "@/mycomponents/scan/winScanJobNumber.vue"
|
||
|
|
||
|
export default {
|
||
|
emits: ["switchChangeToday", "switchChangeWait", "onScanNumber", "onScanAsnNumber"],
|
||
|
components: {
|
||
|
winScanJobNumber,
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
dataContent: {},
|
||
|
}
|
||
|
},
|
||
|
props: {
|
||
|
checkedToday: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
checkedWaitTask: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
otherTitle: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
isShowAsn:{
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
}
|
||
|
},
|
||
|
watch: {
|
||
|
},
|
||
|
mounted() {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
// 点击遮罩
|
||
|
maskClick() {
|
||
|
// 如果不允许点击遮罩,直接返回
|
||
|
this.closeScanPopup();
|
||
|
},
|
||
|
openFilter() {
|
||
|
this.$refs['popup'].open("right");
|
||
|
},
|
||
|
closeScanPopup() {
|
||
|
this.$refs.popup.close()
|
||
|
},
|
||
|
switchChangeWait(isOn) {
|
||
|
let status = "";
|
||
|
if (isOn) {
|
||
|
status = "6";
|
||
|
}
|
||
|
this.$emit("switchChangeWait", isOn, status)
|
||
|
this.closeScanPopup()
|
||
|
},
|
||
|
|
||
|
scanNumberClick() {
|
||
|
this.$refs.scanNumber.openScanPopup();
|
||
|
},
|
||
|
|
||
|
getScanNumber(val) {
|
||
|
this.$emit("onScanNumber", val)
|
||
|
this.$refs.scanNumber.closeScanPopup();
|
||
|
this.closeScanPopup();
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
<style lang="scss">
|
||
|
.maskbox {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
z-index: 0;
|
||
|
}
|
||
|
</style>
|