diff --git a/src/components/costCenter/index.vue b/src/components/costCenter/index.vue index 8dc22c4..c7f10af 100644 --- a/src/components/costCenter/index.vue +++ b/src/components/costCenter/index.vue @@ -71,7 +71,7 @@ function closeImagePopup() { } function open(list) { isShowSelectItem.value = true - singleColumnList.value = list + // singleColumnList.value = list } // 显示完整内容的浮窗 function showFullText(text) { @@ -100,7 +100,8 @@ function chooseItem(item) { } defineExpose({ isShowSelectItem, - open + open, + singleColumnList }) diff --git a/src/pages/outLocation/addForm.vue b/src/pages/outLocation/addForm.vue index 3ab558c..28a86c1 100644 --- a/src/pages/outLocation/addForm.vue +++ b/src/pages/outLocation/addForm.vue @@ -435,12 +435,9 @@ async function getSparePartsList(warehouseArea) { await costCenterMappingApi .findList(param) .then((res) => { - res.data.map((item) => { - item.value = item.number - item.label = item.name - }) sparePartsList.value = res.data singleColumnList.value = sparePartsList.value + costCenterRef.value.singleColumnList = sparePartsList.value proxy.$modal.closeLoading() }) .catch(() => {