剩余模块:生产退料
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { reactive, nextTick, onMounted, ref, computed, defineEmits, watch, defineExpose,defineProps } from 'vue';
|
||||
import { reactive, nextTick, onMounted, ref, computed, defineEmits, watch, defineExpose, defineProps } from 'vue';
|
||||
import { onLoad, onShow, onReachBottom, } from '@dcloudio/uni-app'
|
||||
import warehouse from '../warehouse/warehouse.vue'
|
||||
import location from '../warehouse/location.vue'
|
||||
@@ -77,10 +77,10 @@
|
||||
import { fStockFlexDetailList } from '../../common/request/api/api';
|
||||
const getI18n = useI18n()
|
||||
const { t, locale } = getI18n
|
||||
const eimts = defineEmits(['scanFrameDataFeedback', 'confirmation', 'fast', 'err'])
|
||||
const eimts = defineEmits(['scanFrameDataFeedback', 'confirmation', 'fast', 'err', 'boxShow'])
|
||||
const props = defineProps({
|
||||
types:{
|
||||
type:Array,
|
||||
types: {
|
||||
type: Array,
|
||||
default: () => {
|
||||
return ['warehouseStr', 'locationStr', 'articlesStr', 'quantityStr', 'batchNumberStr']
|
||||
}
|
||||
@@ -113,8 +113,8 @@
|
||||
/**
|
||||
* 数据逻辑
|
||||
*/
|
||||
const screeningTypes = (str:string) => {
|
||||
if(props.types.indexOf(str) !== -1) return true
|
||||
const screeningTypes = (str : string) => {
|
||||
if (props.types.indexOf(str) !== -1) return true
|
||||
else return false
|
||||
}
|
||||
watch(() => state.scanFrame, () => {
|
||||
@@ -238,9 +238,10 @@
|
||||
//手动确认返回数据
|
||||
const confirmationFun = () => {
|
||||
if (dataVerifyFun()) {
|
||||
console.log({ ...state.scanFrame, warehouseData: state.warehouseData, locationData: state.locationData, id: state.receiveBillScanData.Id });
|
||||
eimts('confirmation', { ...state.scanFrame, warehouseData: state.warehouseData, locationData: state.locationData || {}, id: state.receiveBillScanData.Id })
|
||||
dataErase()
|
||||
state.show = false
|
||||
eimts('boxShow',state.show)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,8 +292,14 @@
|
||||
/**
|
||||
* 弹窗逻辑
|
||||
*/
|
||||
const close = () => { state.show = false }
|
||||
const open = () => { } //待使用
|
||||
const close = () => {
|
||||
state.show = false
|
||||
console.log('===================<><><><><><>=====================',state.show);
|
||||
eimts('boxShow',state.show)
|
||||
}
|
||||
const open = () => {
|
||||
eimts('boxShow',state.show)
|
||||
} //待使用
|
||||
const stateShow = (val : boolean) => { state.show = val }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user