From 4e8ea77a7251fe5355b594ea70cea64d4bac4f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 16 Jan 2024 10:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=BB=84=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=E7=9B=98=E7=82=B9=E6=89=93=E5=BC=80=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=BC=96=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../countManage/count/countPlanMain/index.vue | 105 +++++++++--------- 1 file changed, 53 insertions(+), 52 deletions(-) diff --git a/src/views/wms/countManage/count/countPlanMain/index.vue b/src/views/wms/countManage/count/countPlanMain/index.vue index 185022072..fca8e509c 100644 --- a/src/views/wms/countManage/count/countPlanMain/index.vue +++ b/src/views/wms/countManage/count/countPlanMain/index.vue @@ -366,60 +366,61 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue) } // 详情打开的编辑的时候设置盘点范围值列表 -const detailOpenForm = (row) => { +const detailOpenForm = (type, row) => { console.log(row) - - if ( - row.type == 'OWNER' || - row.type == 'SUPPLIER' || - row.type == 'CUSTOMER' || - row.type == 'ABC' || - row.type == 'ITEMS_TYPE' || - row.type == 'ITEMS_GROUP' || - row.type == 'ITEMS_CODE' || - row.type == 'WAREHOUSE_CODE' || - row.type == 'AREABASIC_CODE' || - row.type == 'LOCATIONGROUP_CODE' || - row.type == 'LOCATION_CODE' - ) { - formTypeDetail.value = 'Select' - switch (row.type) { - case 'OWNER': - countPlanAllList.value = allList.value.ownerAllList - break - case 'SUPPLIER': - countPlanAllList.value = allList.value.supplierAllList - break - case 'CUSTOMER': - countPlanAllList.value = allList.value.customerAllList - break - case 'ABC': - countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS) - break - case 'ITEMS_TYPE': - countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE) - break - case 'ITEMS_GROUP': - countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP) - break - case 'ITEMS_CODE': - countPlanAllList.value = allList.value.itembasicAllList - break - case 'WAREHOUSE_CODE': - countPlanAllList.value = allList.value.warehouseAllList - break - case 'AREABASIC_CODE': - countPlanAllList.value = allList.value.areaAllList - break - case 'LOCATIONGROUP_CODE': - countPlanAllList.value = allList.value.locationgroupAllList - break - case 'LOCATION_CODE': - countPlanAllList.value = allList.value.locationAllList - break + if (type == 'update' ) { + if ( + row.type == 'OWNER' || + row.type == 'SUPPLIER' || + row.type == 'CUSTOMER' || + row.type == 'ABC' || + row.type == 'ITEMS_TYPE' || + row.type == 'ITEMS_GROUP' || + row.type == 'ITEMS_CODE' || + row.type == 'WAREHOUSE_CODE' || + row.type == 'AREABASIC_CODE' || + row.type == 'LOCATIONGROUP_CODE' || + row.type == 'LOCATION_CODE' + ) { + formTypeDetail.value = 'Select' + switch (row.type) { + case 'OWNER': + countPlanAllList.value = allList.value.ownerAllList + break + case 'SUPPLIER': + countPlanAllList.value = allList.value.supplierAllList + break + case 'CUSTOMER': + countPlanAllList.value = allList.value.customerAllList + break + case 'ABC': + countPlanAllList.value = getStrDictOptions(DICT_TYPE.ABC_CLASS) + break + case 'ITEMS_TYPE': + countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_TYPE) + break + case 'ITEMS_GROUP': + countPlanAllList.value = getStrDictOptions(DICT_TYPE.ITEM_GROUP) + break + case 'ITEMS_CODE': + countPlanAllList.value = allList.value.itembasicAllList + break + case 'WAREHOUSE_CODE': + countPlanAllList.value = allList.value.warehouseAllList + break + case 'AREABASIC_CODE': + countPlanAllList.value = allList.value.areaAllList + break + case 'LOCATIONGROUP_CODE': + countPlanAllList.value = allList.value.locationgroupAllList + break + case 'LOCATION_CODE': + countPlanAllList.value = allList.value.locationAllList + break + } + } else if (val == 'PROJECT') { + formTypeDetail.value = 'InputString' } - } else if (val == 'PROJECT') { - formTypeDetail.value = 'InputString' } }