Commit 36198726 authored by XieZhiXiong's avatar XieZhiXiong
parents 24c6c5c2 f5fb8eab
...@@ -44,6 +44,9 @@ export const schema: ISchema = { ...@@ -44,6 +44,9 @@ export const schema: ISchema = {
'x-component-props': { 'x-component-props': {
allowClear: true, allowClear: true,
placeholder: ["结算时间(开始时间)", "结算时间(结束时间)"], placeholder: ["结算时间(开始时间)", "结算时间(结束时间)"],
style: {
minWidth: "320px"
}
} }
}, },
status: { status: {
...@@ -146,7 +149,10 @@ export const detailSchema: ISchema = { ...@@ -146,7 +149,10 @@ export const detailSchema: ISchema = {
'x-component-props': { 'x-component-props': {
showTime: false, showTime: false,
allowClear: true, allowClear: true,
placeholder: ["单据时间(开始时间)", "单据时间(结束时间)"] placeholder: ["单据时间(开始时间)", "单据时间(结束时间)"],
style: {
minWidth: "320px"
}
}, },
}, },
"[receiveStartTime, receiveEndTime]": { "[receiveStartTime, receiveEndTime]": {
...@@ -155,7 +161,10 @@ export const detailSchema: ISchema = { ...@@ -155,7 +161,10 @@ export const detailSchema: ISchema = {
'x-component-props': { 'x-component-props': {
showTime: false, showTime: false,
allowClear: true, allowClear: true,
placeholder: ["收货时间(开始时间)", "收货时间(结束时间)"] placeholder: ["收货时间(开始时间)", "收货时间(结束时间)"],
style: {
minWidth: "320px"
}
}, },
}, },
...@@ -229,7 +238,10 @@ export const logisticsDetailSchema: ISchema = { ...@@ -229,7 +238,10 @@ export const logisticsDetailSchema: ISchema = {
'x-component-props': { 'x-component-props': {
showTime: false, showTime: false,
allowClear: true, allowClear: true,
placeholder: ["单据时间(开始时间)", "单据时间(结束时间)"] placeholder: ["单据时间(开始时间)", "单据时间(结束时间)"],
style: {
minWidth: "320px"
}
}, },
}, },
......
...@@ -44,6 +44,9 @@ export const schema: ISchema = { ...@@ -44,6 +44,9 @@ export const schema: ISchema = {
'x-component-props': { 'x-component-props': {
allowClear: true, allowClear: true,
placeholder: ["结算时间(开始时间)", "结算时间(结束时间)"], placeholder: ["结算时间(开始时间)", "结算时间(结束时间)"],
style: {
minWidth: "320px"
}
} }
}, },
status: { status: {
......
...@@ -22,6 +22,7 @@ import EyePreview from '@/components/EyePreview' ...@@ -22,6 +22,7 @@ import EyePreview from '@/components/EyePreview'
import { fetchOptions } from '../../common'; import { fetchOptions } from '../../common';
const formActions = createFormActions(); const formActions = createFormActions();
const { RangePicker } = DatePicker;
// 平台代收账款结算 - 收款方查看凭证 能力中心 // 平台代收账款结算 - 收款方查看凭证 能力中心
const PLATFORM_BENEFICIARY = 3; const PLATFORM_BENEFICIARY = 3;
...@@ -138,7 +139,7 @@ const AccountReceivable = () => { ...@@ -138,7 +139,7 @@ const AccountReceivable = () => {
const handleSearch = (values: any) => { const handleSearch = (values: any) => {
const format = 'YYYY-MM-DD' const format = 'YYYY-MM-DD'
const startTime = values.startTime?.format(format); const startTime = values.startTime?.format(format);
const endTime = values.endTime?.format(format); const endTime = values.endTime ? values.endTime.format(format) + " 23:59:59" : "";;
ref.current.reload({...values, startTime, endTime}); ref.current.reload({...values, startTime, endTime});
} }
...@@ -157,7 +158,7 @@ const AccountReceivable = () => { ...@@ -157,7 +158,7 @@ const AccountReceivable = () => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
expressionScope={{}} expressionScope={{}}
components={{DatePicker}} components={{RangePicker}}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect($, actions, 'megaLayout.settlementNo', FORM_FILTER_PATH); useStateFilterSearchLinkageEffect($, actions, 'megaLayout.settlementNo', FORM_FILTER_PATH);
useAsyncSelect( useAsyncSelect(
......
...@@ -24,30 +24,43 @@ export const schema: ISchema = { ...@@ -24,30 +24,43 @@ export const schema: ISchema = {
}, },
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
type: 'object', type: 'object',
'x-component': 'mega-layout', 'x-component': 'flex-layout',
'x-component-props': { 'x-component-props': {
grid: true, rowStyle: {
full: true, justifyContent: "flex-start",
autoRow: true, },
columns: 6, colStyle: {
marginRight: 20,
},
}, },
properties: { properties: {
startTime: { "[startTime, endTime]": {
type: 'string', type: 'object',
'x-component': 'DatePicker', "x-component": 'RangePicker',
'x-component-props': {
allowClear: true,
placeholder: '结算日期(开始时间)'
}
},
endTime: {
type: 'string',
'x-component': 'DatePicker',
'x-component-props': { 'x-component-props': {
allowClear: true, allowClear: true,
placeholder: '结算日期(结束时间)' placeholder: ["结算时间(开始时间)", "结算时间(结束时间)"],
style: {
minWidth: "320px"
}
} }
}, },
// startTime: {
// type: 'string',
// 'x-component': 'DatePicker',
// 'x-component-props': {
// allowClear: true,
// placeholder: '结算日期(开始时间)'
// }
// },
// endTime: {
// type: 'string',
// 'x-component': 'DatePicker',
// 'x-component-props': {
// allowClear: true,
// placeholder: '结算日期(结束时间)'
// }
// },
status: { status: {
type: 'string', type: 'string',
enum: [ enum: [
......
...@@ -21,6 +21,7 @@ import EyePreview from '@/components/EyePreview'; ...@@ -21,6 +21,7 @@ import EyePreview from '@/components/EyePreview';
import { fetchOptions } from '../../common'; import { fetchOptions } from '../../common';
import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect'; import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect';
const { RangePicker } = DatePicker;
// 平台积分结算-收款方查看凭证, 能力中心 // 平台积分结算-收款方查看凭证, 能力中心
const SCORE_BENEFINCIARY = 5; const SCORE_BENEFINCIARY = 5;
const formActions = createFormActions(); const formActions = createFormActions();
...@@ -140,7 +141,7 @@ const Integral: React.FC = () => { ...@@ -140,7 +141,7 @@ const Integral: React.FC = () => {
const handleSearch = (values: any) => { const handleSearch = (values: any) => {
const format = 'YYYY-MM-DD' const format = 'YYYY-MM-DD'
const startTime = values.startTime?.format(format); const startTime = values.startTime?.format(format);
const endTime = values.endTime?.format(format); const endTime = values.endTime ? values.endTime.format(format) + " 23:59:59" : "";
ref.current.reload({...values, startTime, endTime}); ref.current.reload({...values, startTime, endTime});
} }
......
...@@ -29,30 +29,43 @@ export const schema: ISchema = { ...@@ -29,30 +29,43 @@ export const schema: ISchema = {
}, },
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
type: 'object', type: 'object',
'x-component': 'mega-layout', 'x-component': 'flex-layout',
'x-component-props': { 'x-component-props': {
grid: true, rowStyle: {
full: true, justifyContent: "flex-start",
autoRow: true, },
columns: 6, colStyle: {
marginRight: 20,
},
}, },
properties: { properties: {
startTime: { "[startTime, endTime]": {
type: 'string', type: 'object',
'x-component': 'DatePicker', "x-component": 'RangePicker',
'x-component-props': {
allowClear: true,
placeholder: '结算日期(开始时间)'
}
},
endTime: {
type: 'string',
'x-component': 'DatePicker',
'x-component-props': { 'x-component-props': {
allowClear: true, allowClear: true,
placeholder: '结算日期(结束时间)' placeholder: ["结算时间(开始时间)", "结算时间(结束时间)"],
style: {
minWidth: "320px"
}
} }
}, },
// startTime: {
// type: 'string',
// 'x-component': 'DatePicker',
// 'x-component-props': {
// allowClear: true,
// placeholder: '结算日期(开始时间)'
// }
// },
// endTime: {
// type: 'string',
// 'x-component': 'DatePicker',
// 'x-component-props': {
// allowClear: true,
// placeholder: '结算日期(结束时间)'
// }
// },
status: { status: {
type: 'string', type: 'string',
enum: [ enum: [
......
...@@ -251,27 +251,26 @@ const Detail: React.FC<{}> = () => { ...@@ -251,27 +251,26 @@ const Detail: React.FC<{}> = () => {
const SubmitBtn = <Button loading={loading} icon={<FormOutlined />} onClick={submit} type="primary"> 提交通知单</Button> const SubmitBtn = <Button loading={loading} icon={<FormOutlined />} onClick={submit} type="primary"> 提交通知单</Button>
const NextBtn = <Button loading={loading} icon={<SaveOutlined />} onClick={toNext} type="primary">提交</Button> const NextBtn = <Button loading={loading} icon={<SaveOutlined />} onClick={toNext} type="primary">提交</Button>
const AllReceiptReceive = ( const AllReceiptReceive = (
<Space direction={"vertical"}> !hasProductNoReply ?
{ (
!hasProductNoReply <Space direction={"vertical"}>
? <Popconfirm
title={'确认本单全部发货单是否已全部收到回单'}
onConfirm={() => handleAllReceiptReceive(true)}
>
<Button loading={loading} type="primary" style={{width: '100%'}}>确认本单全部发货单已收到回单</Button>
</Popconfirm>
: null
}
<div style={{display: 'flex', justifyContent: 'flex-end'}}>
<Popconfirm <Popconfirm
title={hasProductNoDelievery ? '是否继续发货' : '您商品都已发货,是否确认还需要继续发货'} title={'确认本单全部发货单是否已全部收到回单'}
onConfirm={() => handleAllReceiptReceive(false)} onConfirm={() => handleAllReceiptReceive(true)}
> >
<Button loading={loading}>继续发货</Button> <Button loading={loading} type="primary" style={{width: '100%'}}>确认本单全部发货单已收到回单</Button>
</Popconfirm> </Popconfirm>
</div> <div style={{display: 'flex', justifyContent: 'flex-end'}}>
<Popconfirm
</Space> title={hasProductNoDelievery ? '是否继续发货' : '您商品都已发货,是否确认还需要继续发货'}
onConfirm={() => handleAllReceiptReceive(false)}
>
<Button loading={loading}>继续发货</Button>
</Popconfirm>
</div>
</Space>
) :
null
) )
const COMPONENT_MAP = { const COMPONENT_MAP = {
......
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