diff --git a/src/views/bookingcabin/CabinManagement/detail/index.vue b/src/views/bookingcabin/CabinManagement/detail/index.vue index 76701cfc..4a38885b 100644 --- a/src/views/bookingcabin/CabinManagement/detail/index.vue +++ b/src/views/bookingcabin/CabinManagement/detail/index.vue @@ -274,7 +274,7 @@ import { AutoComplete } from 'ant-design-vue' import { GetCtnSelectList, GetClientListByCode } from '/@/api/common' import DsFile from '/@/components/File/index.vue' -import { ref, reactive, onMounted, watch } from 'vue' +import { ref, nextTick, onMounted, watch } from 'vue' import { getVesselInfoService, DjyCustomerSuggest, GetSysUserPage, GetPortloadlist, GetPortlist, BookingSlotSave, BookingSlotDetail, BookingSlotDelete, BookingSlotGetFile @@ -743,7 +743,11 @@ async function handleSave() { const useFlag = ref(false) function handleOpenUse() { setFieldsValueUse({ - useType: 'add' + useType: 'add', + useToValShow:'', + useTo:'', + useToVal:'', + useToName:'' }) useFlag.value = true } @@ -774,9 +778,12 @@ function editUse(row, index) { useFlag.value = true useIndex.value = index row.useType = 'edit' - setFieldsValueUse({ + setTimeout(() => { + setFieldsValueUse({ ...row }) + }, 100) + } // 点击箱