Commit 7f845688 authored by XieZhiXiong's avatar XieZhiXiong

对接售后维修中...

parent a5d255d2
.goods { .order {
display: flex;
flex-direction: column;
height: 100%;
&-head { &-head {
flex-shrink: 0;
} }
&-body { &-body {
flex: 1;
} }
&-foot { &-foot {
flex-shrink: 0;
margin-top: 32px;
text-align: right;
} }
} }
\ No newline at end of file
...@@ -7,7 +7,17 @@ ...@@ -7,7 +7,17 @@
*/ */
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
import { UPLOAD_TYPE } from '@/constants'; import {
ORDER_TYPE2_INQUIRY,
ORDER_TYPE2_DEMAND,
ORDER_TYPE2_SPOT,
ORDER_TYPE2_CENTRALIZED,
ORDER_TYPE2_POINTS,
ORDER_TYPE2_CHANNEL_DIRECT,
ORDER_TYPE2_CHANNEL_SPOT,
ORDER_TYPE2_CHANNEL_POINTS,
ORDER_TYPE2,
} from '@/constants';
export const listSearchSchema: ISchema = { export const listSearchSchema: ISchema = {
type: 'object', type: 'object',
...@@ -16,13 +26,13 @@ export const listSearchSchema: ISchema = { ...@@ -16,13 +26,13 @@ export const listSearchSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'mega-layout', 'x-component': 'mega-layout',
properties: { properties: {
applyNo: { orderNo: {
type: 'string', type: 'string',
'x-component': 'Search', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
placeholder: '搜索', placeholder: '搜索',
align: 'flex-left', align: 'flex-left',
tip: '输入 申请单号 进行搜索', tip: '输入 单号 进行搜索',
}, },
}, },
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
...@@ -35,47 +45,47 @@ export const listSearchSchema: ISchema = { ...@@ -35,47 +45,47 @@ export const listSearchSchema: ISchema = {
columns: 6, columns: 6,
}, },
properties: { properties: {
abstract: { orderThe: {
type: 'string', type: 'string',
'x-component-props': { 'x-component-props': {
placeholder: '申请单摘要', placeholder: '单摘要',
allowClear: true, allowClear: true,
}, },
}, },
'[startTime, endTime]': { supplyMembersName: {
type: 'string', type: 'string',
default: '',
'x-component': 'dateSelect',
'x-component-props': { 'x-component-props': {
placeholder: '单据时间(全部)', placeholder: '供应会员',
allowClear: true, allowClear: true,
}, },
}, },
supplier: { '[startCreateTime, endCreateTime]': {
type: 'string', type: 'string',
default: '',
'x-component': 'dateSelect',
'x-component-props': { 'x-component-props': {
placeholder: '供应会员(全部)', placeholder: '下单时间(全部)',
allowClear: true, allowClear: true,
}, },
}, },
outerStatus: { type: {
type: 'string', type: 'string',
default: undefined, default: undefined,
enum: [], enum: [
{ label: ORDER_TYPE2[ORDER_TYPE2_INQUIRY], value: ORDER_TYPE2_INQUIRY },
{ label: ORDER_TYPE2[ORDER_TYPE2_DEMAND], value: ORDER_TYPE2_DEMAND },
{ label: ORDER_TYPE2[ORDER_TYPE2_SPOT], value: ORDER_TYPE2_SPOT },
{ label: ORDER_TYPE2[ORDER_TYPE2_CENTRALIZED], value: ORDER_TYPE2_CENTRALIZED },
{ label: ORDER_TYPE2[ORDER_TYPE2_POINTS], value: ORDER_TYPE2_POINTS },
{ label: ORDER_TYPE2[ORDER_TYPE2_CHANNEL_DIRECT], value: ORDER_TYPE2_CHANNEL_DIRECT },
{ label: ORDER_TYPE2[ORDER_TYPE2_CHANNEL_SPOT], value: ORDER_TYPE2_CHANNEL_SPOT },
{ label: ORDER_TYPE2[ORDER_TYPE2_CHANNEL_POINTS], value: ORDER_TYPE2_CHANNEL_POINTS },
],
'x-component-props': { 'x-component-props': {
placeholder: '外部状态(全部)', placeholder: '外部状态(全部)',
allowClear: true, allowClear: true,
}, },
}, },
innerStatus: {
type: 'string',
default: undefined,
enum: [],
'x-component-props': {
placeholder: '内部状态(全部)',
allowClear: true,
},
},
submit: { submit: {
'x-component': 'Submit', 'x-component': 'Submit',
'x-mega-props': { 'x-mega-props': {
......
...@@ -95,6 +95,10 @@ const RepairForm: React.FC<BillsFormProps> = ({ ...@@ -95,6 +95,10 @@ const RepairForm: React.FC<BillsFormProps> = ({
} }
}; };
const handleGoodsConfirm = values => {
console.log('values', values);
};
return ( return (
<Spin spinning={infoLoading}> <Spin spinning={infoLoading}>
<PageHeaderWrapper <PageHeaderWrapper
...@@ -156,6 +160,7 @@ const RepairForm: React.FC<BillsFormProps> = ({ ...@@ -156,6 +160,7 @@ const RepairForm: React.FC<BillsFormProps> = ({
<GoodsDrawer <GoodsDrawer
visible={visibleDrawer} visible={visibleDrawer}
onClose={() => setVisibleDrawer(false)} onClose={() => setVisibleDrawer(false)}
onConfirm={handleGoodsConfirm}
/> />
<Prompt when={unsaved} message="您还有未保存的内容,是否确定要离开?" /> <Prompt when={unsaved} message="您还有未保存的内容,是否确定要离开?" />
......
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