供应商信息,默认取登录用户ID
This commit is contained in:
@ -22,7 +22,8 @@ interface Props {
|
||||
record?: string;
|
||||
}
|
||||
const OtherAttachmentsTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
//语言切换
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
|
@ -23,7 +23,8 @@ interface Props {
|
||||
record?: string;
|
||||
}
|
||||
const BankInfoTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
//双语
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
|
@ -48,7 +48,8 @@ interface BaseInfoTabProps {
|
||||
}
|
||||
|
||||
const BaseInfoTab: React.FC<BaseInfoTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [registerInfo, setRegisterInfo] = useState<Request>();
|
||||
//变更说明与附件
|
||||
|
@ -20,7 +20,8 @@ interface Props {
|
||||
record?: string;
|
||||
}
|
||||
const ContactsInfoTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [data, setData] = useState<Contact[]>([]);
|
||||
const [pagination, setPagination] = useState<TablePaginationConfig>({
|
||||
|
@ -24,7 +24,8 @@ interface InvoiceTabProps {
|
||||
}
|
||||
|
||||
const InvoiceTab: React.FC<InvoiceTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
//语言切换
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
|
@ -39,7 +39,8 @@ interface BaseInfoTabProps {
|
||||
}
|
||||
|
||||
const BaseInfoTab: React.FC<BaseInfoTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [registerInfo, setRegisterInfo] = useState<Request>();
|
||||
const fetchData = async () => {
|
||||
|
@ -23,7 +23,8 @@ interface QualificationTabProps {
|
||||
}
|
||||
|
||||
const QualificationTab: React.FC<QualificationTabProps> = (props) => {
|
||||
const { viewType = false, record = '' } = props;
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
const { viewType = false, record = userId } = props;
|
||||
const intl = useIntl();
|
||||
const [data, setData] = useState<Qualification[]>([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
Reference in New Issue
Block a user