Commit c78310de authored by tjy's avatar tjy

调整

parent d467376d
import React from 'react';
import { Row, Col, Input } from 'antd';
import styled from 'styled-components';
import cx from 'classnames';
const RowStyleLayout = styled(props => <div {...props} />)`
width: 100%;
`;
const Relevance = props => {
return (
<Row>
<Col>123</Col>
<Col>456</Col>
</Row>
<RowStyleLayout>
<Row>
<Col span={16}>123</Col>
<Col span={8}>456</Col>
</Row>
</RowStyleLayout>
);
};
......
......@@ -16,18 +16,18 @@ const AddBills: React.FC<{}> = (props: any) => {
const ref = useRef({});
const [warehouseList, setWarehouseList] = useState<any>([]);
useEffect(() => {
PublicApi.getWarehouseWarehouseList({
current: '1',
pageSize: '10000',
}).then((res: any) => {
let list = [];
for (let item of res.data) {
list.push({ label: item.name, value: item.id });
}
setWarehouseList(list);
});
}, []);
// useEffect(() => {
// PublicApi.getWarehouseWarehouseList({
// current: '1',
// pageSize: '10000',
// }).then((res: any) => {
// let list = [];
// for (let item of res.data) {
// list.push({ label: item.name, value: item.id });
// }
// setWarehouseList(list);
// });
// }, []);
const handleSubmit = value => {
if (usePageStatus().pageStatus === 0)
......
......@@ -182,9 +182,8 @@ export const getBillsDetailSchema = warehouseList => {
},
relevanceInvoicesId: {
type: 'string',
'x-component': 'Text',
'x-component': 'CustomRelevance',
title: '关联单据',
default: '暂无',
},
// itemNo: {
// type: 'string',
......
import React, { useState, useEffect, useRef } from 'react';
import { history } from 'umi';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Input, Button, Card } from 'antd';
import {
PlusOutlined,
EyeOutlined,
UpOutlined,
DeleteOutlined,
DownOutlined,
} from '@ant-design/icons';
import { Input, Card } from 'antd';
import { StandardTable } from 'god';
import { ColumnType } from 'antd/lib/table/interface';
import EyePreview from '@/components/EyePreview';
......@@ -17,7 +10,6 @@ import { createFormActions, FormEffectHooks } from '@formily/antd';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { inventorySchema } from './schema';
import style from './index.less';
import { PublicApi } from '@/services/api';
const formActions = createFormActions();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment