diff --git a/src/mycomponents/detail/comDetailCard.vue b/src/mycomponents/detail/comDetailCard.vue index f66c77f9..2604939e 100644 --- a/src/mycomponents/detail/comDetailCard.vue +++ b/src/mycomponents/detail/comDetailCard.vue @@ -90,12 +90,12 @@ watch( } ) onMounted(() => { - // if (detailOptions.value.length == 0) { - // detailOptions.value = getDetailOption() - // } - // if (scanOptions.value.length == 0) { - // scanOptions.value = getPurchaseReceiptOption(props.settingParam.allowModifyQty, false) - // } + if (detailOptions.value.length == 0) { + detailOptions.value = getDetailOption() + } + if (scanOptions.value.length == 0) { + scanOptions.value = getPurchaseReceiptOption(settingParam.value.allowModifyQty, false) + } nextTick((res) => { collapse.value.init() }) diff --git a/src/mycomponents/job/jobFilter.vue b/src/mycomponents/job/jobFilter.vue index 6bb867e5..26279904 100644 --- a/src/mycomponents/job/jobFilter.vue +++ b/src/mycomponents/job/jobFilter.vue @@ -101,13 +101,8 @@ watch( ) // 生产线 -const productionLineCodeConfirm = () => { - let lineCode = '' - productionline.value.forEach((item) => { - if (item.text == productionLineCode.value) { - lineCode = item.value - } - }) +const productionLineCodeConfirm = (e) => { + const lineCode = e emit('productionLineCode', productionLineCode.value) } // 来源库位 @@ -144,9 +139,11 @@ const switchChangeWait = (isOn) => { } const scanNumberClick = () => { scanNumber.value.openScanPopup() + closeScanPopup() } const scanOtherClick = () => { scanAsnNumber.value.openScanPopup() + closeScanPopup() } const getScanAsNumber = (val) => { emit('onScanAsnNumber', val) @@ -158,7 +155,7 @@ const getScanNumber = (val) => { scanNumber.value.closeScanPopup() closeScanPopup() } -const emit = defineEmits(['switchChangeToday', 'switchChangeWait', 'onScanNumber', 'onScanAsnNumber', 'productionLineCode', 'fromLocationCode']) +const emit = defineEmits(['switchChangeToday', 'switchChangeWait', 'onScanNumber', 'onScanAsnNumber', 'productionLineCode', 'fromLocationCode', 'fromLocationCodeConfirm']) defineExpose({ openFilter })