Commit c78310de authored by tjy's avatar tjy

调整

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