下拉框回显
This commit is contained in:
@ -84,7 +84,7 @@ const props = defineProps({
|
||||
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
||||
curData.value = ''
|
||||
formState.filePath = ''
|
||||
getOption()
|
||||
|
||||
setModalProps({ confirmLoading: false });
|
||||
isUpdate.value = !!data?.isUpdate;
|
||||
isDisable.value = data?.btnType == 'view' ? true : false
|
||||
@ -95,6 +95,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
Object.assign(formState, {...data.record,dateFrom, dateTo})
|
||||
let json = JSON.parse(JSON.stringify(data.record))
|
||||
formState.filePath = (json?.fileList||[])[0]?.tableId
|
||||
getOption()
|
||||
curData.value = json?.docTypeCode
|
||||
}
|
||||
});
|
||||
@ -128,7 +129,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
obj = {'suSign': 'Y'}
|
||||
tableName = 'supplier'
|
||||
}
|
||||
optionList = await getDocCpList({'valid': 'Y',...obj })
|
||||
optionList = await getDocCpList({'valid': 'Y',...obj, docTypeCode: formState.docTypeCode })
|
||||
}
|
||||
const handleCancel = () => {
|
||||
formRef.value.resetFields();
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
return
|
||||
}
|
||||
closeModal();
|
||||
emit('success', selectedValues.value);
|
||||
emit('success', selectedValues.value, deptId.value);
|
||||
}
|
||||
</script>
|
||||
<style >
|
||||
|
||||
Reference in New Issue
Block a user