Commit 7c8070e4 authored by GuanHua's avatar GuanHua

Merge branch 'dev-srm' of http://10.0.0.22:3000/lingxi/lingxi-business-system into dev-srm

parents f62b85a7 9ad123ab
...@@ -204,7 +204,7 @@ const MemberPr1: React.FC<{}> = props => { ...@@ -204,7 +204,7 @@ const MemberPr1: React.FC<{}> = props => {
return {}; return {};
}; };
const controllerBtns = ( const ControllerBtns = () => (
<Space> <Space>
<Button onClick={handleBatch}> <Button onClick={handleBatch}>
批量审核通过 批量审核通过
...@@ -226,8 +226,8 @@ const MemberPr1: React.FC<{}> = props => { ...@@ -226,8 +226,8 @@ const MemberPr1: React.FC<{}> = props => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values => ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
expressionScope={{ components={{
controllerBtns, ControllerBtns,
}} }}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
......
...@@ -204,7 +204,7 @@ const MemberPr2: React.FC<{}> = props => { ...@@ -204,7 +204,7 @@ const MemberPr2: React.FC<{}> = props => {
return {}; return {};
}; };
const controllerBtns = ( const ControllerBtns = () => (
<Space> <Space>
<Button onClick={handleBatch}> <Button onClick={handleBatch}>
批量审核通过 批量审核通过
...@@ -226,8 +226,8 @@ const MemberPr2: React.FC<{}> = props => { ...@@ -226,8 +226,8 @@ const MemberPr2: React.FC<{}> = props => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values => ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
expressionScope={{ components={{
controllerBtns, ControllerBtns,
}} }}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
......
...@@ -221,7 +221,7 @@ const MemberPrConfirm: React.FC<{}> = props => { ...@@ -221,7 +221,7 @@ const MemberPrConfirm: React.FC<{}> = props => {
return {}; return {};
}; };
const controllerBtns = ( const ControllerBtns = () => (
<Space> <Space>
<Button onClick={handleBatch}> <Button onClick={handleBatch}>
批量确认审核通过 批量确认审核通过
...@@ -243,8 +243,8 @@ const MemberPrConfirm: React.FC<{}> = props => { ...@@ -243,8 +243,8 @@ const MemberPrConfirm: React.FC<{}> = props => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values => ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
expressionScope={{ components={{
controllerBtns, ControllerBtns,
}} }}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
......
...@@ -24,10 +24,7 @@ export const auditSchema: ISchema = { ...@@ -24,10 +24,7 @@ export const auditSchema: ISchema = {
properties: { properties: {
ctl: { ctl: {
type: 'object', type: 'object',
'x-component': 'Children', 'x-component': 'ControllerBtns',
'x-component-props': {
children: '{{controllerBtns}}',
},
}, },
name: { name: {
type: 'string', type: 'string',
......
...@@ -214,7 +214,7 @@ const MemberPrSubmit: React.FC<{}> = props => { ...@@ -214,7 +214,7 @@ const MemberPrSubmit: React.FC<{}> = props => {
return {}; return {};
}; };
const controllerBtns = ( const ControllerBtns = () => (
<Space> <Space>
<Button onClick={handleBatch}> <Button onClick={handleBatch}>
批量审核通过 批量审核通过
...@@ -236,8 +236,8 @@ const MemberPrSubmit: React.FC<{}> = props => { ...@@ -236,8 +236,8 @@ const MemberPrSubmit: React.FC<{}> = props => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values => ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
expressionScope={{ components={{
controllerBtns, ControllerBtns,
}} }}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
......
...@@ -17,10 +17,7 @@ export const auditSchema: ISchema = { ...@@ -17,10 +17,7 @@ export const auditSchema: ISchema = {
properties: { properties: {
ctl: { ctl: {
type: 'object', type: 'object',
'x-component': 'Children', 'x-component': 'ControllerBtns',
'x-component-props': {
children: '{{controllerBtns}}',
},
}, },
name: { name: {
type: 'string', type: 'string',
......
...@@ -87,32 +87,37 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => { ...@@ -87,32 +87,37 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
return ( return (
<> <>
<Row style={{ marginTop: 24 }} gutter={24}> <Row style={{ marginTop: 24 }} gutter={24}>
<Col span={12}> <Col span={data.orderModel > 30 ? 15: 12}>
<MellowCard title='交易信息' fullHeight> <MellowCard title='交易信息' fullHeight>
<RenderCard infoList={payInfo} dataSource={data} /> <RenderCard infoList={payInfo} dataSource={data} />
</MellowCard> </MellowCard>
</Col> </Col>
<Col span={6}> <Col span={data.orderModel > 30 ? 9: 6}>
<MellowCard title='其他信息' fullHeight> <MellowCard title='其他信息' fullHeight>
<RenderCard infoList={otherInfo} dataSource={data} /> <RenderCard infoList={otherInfo} dataSource={data} />
</MellowCard> </MellowCard>
</Col> </Col>
<Col span={6}> {
<MellowCard title='电子合同' fullHeight> (data.orderModel > 30) ?
<ContractList null
dataSource={ :
data.electronicContractUrl ? <Col span={6}>
[ <MellowCard title='电子合同' fullHeight>
{ <ContractList
electronicContractUrl: data.electronicContractUrl, dataSource={
electronicContractName: data.electronicContractName, data.electronicContractUrl ?
}, [
] : {
null electronicContractUrl: data.electronicContractUrl,
} electronicContractName: data.electronicContractName,
/> },
</MellowCard> ] :
</Col> null
}
/>
</MellowCard>
</Col>
}
</Row> </Row>
<Modal title="发票信息" visible={isModalVisible} onOk={()=>setIsModalVisible(false)} onCancel={()=>setIsModalVisible(false)}> <Modal title="发票信息" visible={isModalVisible} onOk={()=>setIsModalVisible(false)} onCancel={()=>setIsModalVisible(false)}>
<Row gutter={[0 ,10]} style={{fontSize: 14}}> <Row gutter={[0 ,10]} style={{fontSize: 14}}>
......
...@@ -12,12 +12,10 @@ export const PurchaseBidSearchSchema: ISchema = { ...@@ -12,12 +12,10 @@ export const PurchaseBidSearchSchema: ISchema = {
biddingNo: { biddingNo: {
type: 'string', type: 'string',
"x-component": "Search", "x-component": "Search",
"x-mega-props": {
},
"x-component-props": { "x-component-props": {
placeholder: '竞价单号', placeholder: '竞价单号',
align: 'flex-left', align: 'flex-left',
allowClear: true
} }
} }
} }
...@@ -50,18 +48,24 @@ export const PurchaseBidSearchSchema: ISchema = { ...@@ -50,18 +48,24 @@ export const PurchaseBidSearchSchema: ISchema = {
"x-component": "dateSelect", "x-component": "dateSelect",
"x-component-props": { "x-component-props": {
placeholder: '单据时间(全部)', placeholder: '单据时间(全部)',
allowClear: true
} }
}, },
memberName: { memberName: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '采购会员' placeholder: '采购会员',
allowClear: true
} }
}, },
externalState: { externalState: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '外部状态' placeholder: '外部状态',
allowClear: true,
style: {
width: 160
}
}, },
enum: [] enum: []
}, },
...@@ -102,11 +106,9 @@ export const PurchaseBidExamineSearchSchema: ISchema = { ...@@ -102,11 +106,9 @@ export const PurchaseBidExamineSearchSchema: ISchema = {
biddingNo: { biddingNo: {
type: 'string', type: 'string',
"x-component": "Search", "x-component": "Search",
"x-mega-props": {
},
"x-component-props": { "x-component-props": {
placeholder: '竞价单号', placeholder: '竞价单号',
allowClear: true
} }
} }
} }
...@@ -138,12 +140,14 @@ export const PurchaseBidExamineSearchSchema: ISchema = { ...@@ -138,12 +140,14 @@ export const PurchaseBidExamineSearchSchema: ISchema = {
"x-component": "dateSelect", "x-component": "dateSelect",
"x-component-props": { "x-component-props": {
placeholder: '单据时间(全部)', placeholder: '单据时间(全部)',
allowClear: true
} }
}, },
memberName: { memberName: {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '采购会员' placeholder: '采购会员',
allowClear: true
} }
}, },
} }
......
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