From 323b67c8ad046be509379c74e758b17729024f65 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 10 Sep 2024 09:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E6=96=99=E5=92=8C?= =?UTF-8?q?=E5=8F=91=E6=96=99=E6=8E=A5=E6=94=B6=E4=BB=BB=E5=8A=A1=E7=AD=9B?= =?UTF-8?q?=E9=80=892024/7/23=2016:52:17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/detail/comDetailCard.vue | 12 ++--- src/mycomponents/job/jobFilter.vue | 13 ++--- src/pages/fg/coms/comReceiptPopup.vue | 2 +- src/pages/fg/receiptByPlan.vue | 4 +- src/pages/issue/coms/comIssueJobCard.vue | 4 ++ src/pages/issue/job/issueJob.vue | 50 +++++++++++------- .../package/record/overPackageRecord.vue | 10 +++- .../coms/comProductionJobCard.vue | 4 ++ .../job/productionReceiptJob.vue | 52 +++++++++++++++---- src/pages/putaway/job/putawayDetail.vue | 4 ++ src/pages/putaway/job/putawayJob.vue | 30 +++++++---- 11 files changed, 128 insertions(+), 57 deletions(-) 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 })