Commit bb3919ab authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

修改需求发布详情里查看商品的弹框,修改需求发布bug

parent b6a8db75
...@@ -33,7 +33,7 @@ export const TimeList = [ ...@@ -33,7 +33,7 @@ export const TimeList = [
/** /**
* @description: 需求单发布状态筛选 * @description: 需求单发布状态筛选
* @param {type} 外部 * @param {type} 外部1.提交需求单 2.审核需求单 3.提交报价单 4.确认报价单 5.完成 6.审核不通过 7.取消报价单
* @return {type} 1.提交需求单 2.审核需求单 3.提交报价单 4.确认报价单 5.完成 6.审核不通过 7.取消报价单 * @return {type} 1.提交需求单 2.审核需求单 3.提交报价单 4.确认报价单 5.完成 6.审核不通过 7.取消报价单
*/ */
export const filterExternalStateList = [ export const filterExternalStateList = [
......
...@@ -200,7 +200,7 @@ export const demandExternalState = (text:any) => { ...@@ -200,7 +200,7 @@ export const demandExternalState = (text:any) => {
text === 2 ? component = <Tag color="default">待审核需求单</Tag>: text === 2 ? component = <Tag color="default">待审核需求单</Tag>:
text === 3 ? component = <Tag color="processing">待提交报价单</Tag>: text === 3 ? component = <Tag color="processing">待提交报价单</Tag>:
text === 4 ? component = <Tag color="warning">待确认报价单</Tag>: text === 4 ? component = <Tag color="warning">待确认报价单</Tag>:
text === 4 ? component = <Tag color="success">确认通过</Tag>: text === 5 ? component = <Tag color="success">确认通过</Tag>:
component = <Tag color="error">报价不通过</Tag> component = <Tag color="error">报价不通过</Tag>
return component; return component;
} }
...@@ -222,7 +222,7 @@ export const demandInteriorState = (text:any) => { ...@@ -222,7 +222,7 @@ export const demandInteriorState = (text:any) => {
return component; return component;
} }
/********************************需求报价********************************* */ /********************************需求报价 & 需求发布********************************* */
/** /**
* @description: 需求报价-外部状态查询 * @description: 需求报价-外部状态查询
* @author: HJX * @author: HJX
...@@ -235,7 +235,7 @@ export const demandQuoteExternalState = (text:any) => { ...@@ -235,7 +235,7 @@ export const demandQuoteExternalState = (text:any) => {
text === 2 ? component = <Tag color="default">待审核需求单</Tag>: text === 2 ? component = <Tag color="default">待审核需求单</Tag>:
text === 3 ? component = <Tag color="processing">待提交报价单</Tag>: text === 3 ? component = <Tag color="processing">待提交报价单</Tag>:
text === 4 ? component = <Tag color="warning">待确认报价单</Tag>: text === 4 ? component = <Tag color="warning">待确认报价单</Tag>:
text === 4 ? component = <Tag color="success">确认通过</Tag>: text === 5 ? component = <Tag color="success">确认通过</Tag>:
component = <Tag color="error">报价不通过</Tag> component = <Tag color="error">报价不通过</Tag>
return component; return component;
} }
...@@ -256,4 +256,6 @@ export const demandQuoteInteriorState = (text:any) => { ...@@ -256,4 +256,6 @@ export const demandQuoteInteriorState = (text:any) => {
text === 6 ? component = <Badge status='error' text="审核不通过" />: text === 6 ? component = <Badge status='error' text="审核不通过" />:
component = <Badge status='error' text="审核不通过" /> component = <Badge status='error' text="审核不通过" />
return component; return component;
} }
\ No newline at end of file
/********************************需求发布******************************* */
...@@ -502,7 +502,7 @@ const DetailsInfo: React.FC<dataInfoType> = (props) => { ...@@ -502,7 +502,7 @@ const DetailsInfo: React.FC<dataInfoType> = (props) => {
* @param {type} * @param {type}
* @return {type} * @return {type}
*/ */
const getOrderProductAll = (id) => { const getOrderProductAll = (id: any) => {
setrequisitionFormId(id)//需求id setrequisitionFormId(id)//需求id
PublicApi.getOrderRequisitionFormProductAll({ id: id }).then(res => { PublicApi.getOrderRequisitionFormProductAll({ id: id }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
...@@ -611,7 +611,7 @@ const DetailsInfo: React.FC<dataInfoType> = (props) => { ...@@ -611,7 +611,7 @@ const DetailsInfo: React.FC<dataInfoType> = (props) => {
<div>内部状态:</div> <div>内部状态:</div>
<div> <div>
{ {
enquiryOfferSearchInteriorState(dataInfo.interiorState)//4 enquiryOfferSearchInteriorState(dataInfo.interiorState + 1)//4
} }
</div> </div>
......
...@@ -603,7 +603,7 @@ const detailInfo: React.FC<dataInfoType> = (props) => { ...@@ -603,7 +603,7 @@ const detailInfo: React.FC<dataInfoType> = (props) => {
<div className={style['headerMain-left-option']}> <div className={style['headerMain-left-option']}>
<div>内部状态:</div> <div>内部状态:</div>
<div> <div>
{demandInteriorState(dataInfo.interiorState)} {demandInteriorState(dataInfo.interiorState + 1)}
</div> </div>
</div> </div>
......
...@@ -34,7 +34,7 @@ import { ...@@ -34,7 +34,7 @@ import {
} from 'god/dist/src/standard-table/TableController'; } from 'god/dist/src/standard-table/TableController';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusSwitch from '@/components/StatusSwitch'; import StatusSwitch from '@/components/StatusSwitch';
import {interiorState,interiorStateTwo,enquirySearchInteriorState} from '../../common/tableStatusList' import {demandQuoteInteriorState,demandQuoteExternalState} from '../../common/tableStatusList'
import statuStyle from '../../common/colorTag' import statuStyle from '../../common/colorTag'
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import {timeRange} from '@/utils/index' import {timeRange} from '@/utils/index'
...@@ -144,15 +144,8 @@ const List:React.FC<listParams> = (props) => { ...@@ -144,15 +144,8 @@ const List:React.FC<listParams> = (props) => {
key:'externalState', key:'externalState',
dataIndex:'externalState', dataIndex:'externalState',
align:'center', align:'center',
render: (text: any, reconds) => { render: (text: any, reconds) =>
let component: ReactNode = null demandQuoteExternalState(text)
if (text == 3) {
component = <><span style={statuStyle.warn}>审核不通过需求单</span></>
}else if (text == 1) {
component = <><span style={statuStyle.default}>待提交需求单</span></>
}
return component
}
}, },
{ {
title:'内部状态', title:'内部状态',
...@@ -160,9 +153,7 @@ const List:React.FC<listParams> = (props) => { ...@@ -160,9 +153,7 @@ const List:React.FC<listParams> = (props) => {
dataIndex:'interiorState', dataIndex:'interiorState',
align:'center', align:'center',
render:(text:any) => render:(text:any) =>
// props.type === 1 ? interiorState(text) : demandQuoteInteriorState(text)
// props.type === 2 || props.type == 3? interiorStateTwo(text) : ''
enquirySearchInteriorState(text)
}, },
{ {
title:'操作', title:'操作',
......
...@@ -22,6 +22,8 @@ export interface Params { ...@@ -22,6 +22,8 @@ export interface Params {
onOK?: Function; onOK?: Function;
initialValues?: any; initialValues?: any;
dontReceive?: boolean; //默认展示 dontReceive?: boolean; //默认展示
check?: any, // 查看详情
view?: boolean
} }
const layout = { const layout = {
layout: 'vertical', layout: 'vertical',
...@@ -39,6 +41,7 @@ const layout = { ...@@ -39,6 +41,7 @@ const layout = {
* @return {type} * @return {type}
*/ */
const comfirmDialog: React.FC<Params> = (props) => { const comfirmDialog: React.FC<Params> = (props) => {
console.log(props.sourceData)
const [form] = Form.useForm() const [form] = Form.useForm()
const [placeOfOriginList, setplaceOfOriginList] = useState([])//产地 const [placeOfOriginList, setplaceOfOriginList] = useState([])//产地
const handleCancel = () => { const handleCancel = () => {
...@@ -46,12 +49,12 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -46,12 +49,12 @@ const comfirmDialog: React.FC<Params> = (props) => {
const handletOk = async () => { const handletOk = async () => {
try { try {
const value = await form.validateFields(); const value = await form.validateFields();
// for(let key in value) { console.log(value, '添加商品')
// if(key !== 'model' && key !== 'brand' && key !== 'purchaseNuit' && key !== 'purchaseQuantity') { if(props.view) {
// value[key] = value[key].join('/'); props.onCancel()
// } } else {
// } props.onOK(value)
props.onOK(value) }
} catch(err) { } catch(err) {
message.error('有必填项没填写请检查!') message.error('有必填项没填写请检查!')
} }
...@@ -97,6 +100,7 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -97,6 +100,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
style={{ width: 200 }} style={{ width: 200 }}
options={options} options={options}
placeholder="选择或输入" placeholder="选择或输入"
disabled={props.view}
filterOption={(inputValue, option) => filterOption={(inputValue, option) =>
option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1 option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1
} }
...@@ -124,11 +128,11 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -124,11 +128,11 @@ const comfirmDialog: React.FC<Params> = (props) => {
message: '此项为必填项' message: '此项为必填项'
}]} }]}
> >
<Checkbox.Group onChange={(v) => onChange(v, attrItem)}> <Checkbox.Group onChange={(v) => onChange(v, attrItem)} >
{ {
attrItem.attributeValueList.length && attrItem.attributeValueList.map((item: any, index: string) => ( attrItem.attributeValueList.length && attrItem.attributeValueList.map((item: any, index: string) => (
<Checkbox key={item.id} value={item.value}>{item.value}</Checkbox> <Checkbox disabled={props.view} key={item.id} value={item.value}>{item.value}</Checkbox>
)) ))
} }
</Checkbox.Group> </Checkbox.Group>
...@@ -154,6 +158,15 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -154,6 +158,15 @@ const comfirmDialog: React.FC<Params> = (props) => {
</> </>
) )
} }
// 查看详情渲染
useEffect(() => {
if(Object.keys(props.check).length > 0) {
form.setFieldsValue(props.check);
}
}, [props.view])
return ( return (
<> <>
<Modal <Modal
...@@ -188,7 +201,7 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -188,7 +201,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
message: '此项为必填项' message: '此项为必填项'
}]} }]}
> >
<Input placeholder='' /> <Input disabled={props.view} placeholder='' />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label='商品品牌' label='商品品牌'
...@@ -198,7 +211,7 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -198,7 +211,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
message: '此项为必填项' message: '此项为必填项'
}]} }]}
> >
<Input placeholder='' /> <Input disabled={props.view} placeholder='' />
</Form.Item> </Form.Item>
</Tabs.TabPane> </Tabs.TabPane>
...@@ -229,7 +242,7 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -229,7 +242,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
message: '此项为必填项' message: '此项为必填项'
}]} }]}
> >
<Input placeholder='' /> <Input disabled={props.view} placeholder='' />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
...@@ -240,7 +253,7 @@ const comfirmDialog: React.FC<Params> = (props) => { ...@@ -240,7 +253,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
message: '此项为必填项' message: '此项为必填项'
}]} }]}
> >
<Input type='number' placeholder='' /> <Input disabled={props.view} type='number' placeholder='' />
</Form.Item> </Form.Item>
</Tabs.TabPane> </Tabs.TabPane>
......
...@@ -5,6 +5,7 @@ const EnquiryOneDetail: React.FC<{}> = () => { ...@@ -5,6 +5,7 @@ const EnquiryOneDetail: React.FC<{}> = () => {
return ( return (
<AuditComponents <AuditComponents
pagetype={1} pagetype={1}
operation={1}
/> />
); );
}; };
......
...@@ -34,8 +34,7 @@ import { ...@@ -34,8 +34,7 @@ import {
} from 'god/dist/src/standard-table/TableController'; } from 'god/dist/src/standard-table/TableController';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusSwitch from '@/components/StatusSwitch'; import StatusSwitch from '@/components/StatusSwitch';
import {interiorState,interiorStateTwo, import {demandQuoteExternalState, demandQuoteInteriorState} from '../../common/tableStatusList'
enquirySearchInteriorState,enquirySearchexternalState} from '../../common/tableStatusList'
import statuStyle from '../../common/colorTag' import statuStyle from '../../common/colorTag'
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import {timeRange} from '@/utils/index' import {timeRange} from '@/utils/index'
...@@ -63,10 +62,14 @@ const List:React.FC<{listParams}> = (props) => { ...@@ -63,10 +62,14 @@ const List:React.FC<{listParams}> = (props) => {
const format = (text) => { const format = (text) => {
return <>{moment(text).format("YYYY-MM-DD HH:mm:ss")}</> return <>{moment(text).format("YYYY-MM-DD HH:mm:ss")}</>
} }
const fetchData = async (params: any) => { const fetchData = (params: any) => {
const res = await PublicApi.getOrderRequisitionFormList(params); return new Promise((resolve, reject) => {
return res.data PublicApi.getOrderRequisitionFormList({...params}).then(res => {
if(res.code === 1000) {
resolve(res.data)
}
})
})
} }
/** /**
...@@ -130,7 +133,7 @@ const List:React.FC<{listParams}> = (props) => { ...@@ -130,7 +133,7 @@ const List:React.FC<{listParams}> = (props) => {
filterMultiple: false, filterMultiple: false,
onFilter: (value, record) => record.externalState === value, onFilter: (value, record) => record.externalState === value,
render: (text: any, reconds) => render: (text: any, reconds) =>
enquirySearchexternalState(text) demandQuoteExternalState(text)
}, },
{ {
title:'内部状态', title:'内部状态',
...@@ -141,7 +144,7 @@ const List:React.FC<{listParams}> = (props) => { ...@@ -141,7 +144,7 @@ const List:React.FC<{listParams}> = (props) => {
filterMultiple: false, filterMultiple: false,
onFilter: (value, record) => record.interiorState === value, onFilter: (value, record) => record.interiorState === value,
render:(text:any) => render:(text:any) =>
enquirySearchInteriorState(text) demandQuoteInteriorState(text)
} }
......
...@@ -5,6 +5,7 @@ const EnquiryTwoDetail: React.FC<{}> = () => { ...@@ -5,6 +5,7 @@ const EnquiryTwoDetail: React.FC<{}> = () => {
return ( return (
<AuditComponents <AuditComponents
pagetype={2} pagetype={2}
operation={1}
/> />
); );
}; };
......
...@@ -177,7 +177,7 @@ export const enquierySearchSchema: ISchema = { ...@@ -177,7 +177,7 @@ export const enquierySearchSchema: ISchema = {
}, },
voucherTime:{ voucherTime:{
type:'string', type:'string',
default: 0, // default: 0,
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
......
...@@ -61,6 +61,7 @@ const { Option } = Select ...@@ -61,6 +61,7 @@ const { Option } = Select
import styled from 'styled-components' import styled from 'styled-components'
import { findItemAndDelete } from '@/utils' import { findItemAndDelete } from '@/utils'
import cx from 'classnames' import cx from 'classnames'
import EyePreview from '@/components/EyePreview';
const RowStyleLayout = styled(props => <div {...props} />)` const RowStyleLayout = styled(props => <div {...props} />)`
.card-checkbox { .card-checkbox {
...@@ -235,7 +236,9 @@ const Detail: React.FC<{}> = () => { ...@@ -235,7 +236,9 @@ const Detail: React.FC<{}> = () => {
const [tabData, settabData] = useState<any>({}) const [tabData, settabData] = useState<any>({})
const [platType, setplatType] = useState(1) //需求对接类型 const [platType, setplatType] = useState(1) //需求对接类型
const [addres, setaddres] = useState<any>({}); const [addres, setaddres] = useState<any>({});
const [memberType, setmemberType] = useState(1) const [memberType, setmemberType] = useState(1);
const [check, setCheck] = useState<any>({}); // 添加商品查看详情
const [view, setView ] = useState<boolean>(false);// 添加商品查看详情
const { ProductStore } = store const { ProductStore } = store
const { setAreaOption, productInfoByEdit, getBasicFormParamsByEdit, setAttributeLists, setProductName } = ProductStore const { setAreaOption, productInfoByEdit, getBasicFormParamsByEdit, setAttributeLists, setProductName } = ProductStore
const columnsSetMember: any[] = [ const columnsSetMember: any[] = [
...@@ -281,7 +284,6 @@ const Detail: React.FC<{}> = () => { ...@@ -281,7 +284,6 @@ const Detail: React.FC<{}> = () => {
} }
] ]
const FormSumbit = (values: any) => { const FormSumbit = (values: any) => {
setTimeout(() => { setTimeout(() => {
history.goBack() history.goBack()
...@@ -459,16 +461,22 @@ const Detail: React.FC<{}> = () => { ...@@ -459,16 +461,22 @@ const Detail: React.FC<{}> = () => {
} }
] ]
// 添加商品查看详情
const handleCheck = (value: any) => {
console.log(value)
setCheck(value)
setView(true)
setdialogVisible(true);
}
const equiryColumns: ColumnType<any>[] = [ const equiryColumns: ColumnType<any>[] = [
{ {
title: '商品规格型号', title: '商品规格型号',
dataIndex: 'model', dataIndex: 'model',
key: 'model', key: 'model',
align: 'left' align: 'left',
render:(text:any, record:any) => <EyePreview type='button' handleClick={() => handleCheck(record)}>{text}</EyePreview>
}, },
{ {
title: '品牌', title: '品牌',
dataIndex: 'brand', dataIndex: 'brand',
...@@ -639,8 +647,9 @@ const Detail: React.FC<{}> = () => { ...@@ -639,8 +647,9 @@ const Detail: React.FC<{}> = () => {
} }
//品类 //品类
if (data.productCategory) { if (data.productCategory) {
const idx = data.productCategory.ids.length - 1;
setcustomerCategoryId([data.productCategory.ids]) setcustomerCategoryId([data.productCategory.ids])
initCreatePro(data.productCategory.id, false)//生产弹窗 initCreatePro(data.productCategory.ids[idx], false)//生产弹窗
} }
...@@ -971,8 +980,8 @@ const Detail: React.FC<{}> = () => { ...@@ -971,8 +980,8 @@ const Detail: React.FC<{}> = () => {
} }
list.push(item) list.push(item)
setproductSource([...productSource, ...list])//新增就要合并 setproductSource([...productSource, ...list])//新增就要合并
console.log(productSource, 967)
setdialogVisible(false) setdialogVisible(false)
setView(false)
} }
const onFinish = fieldsValue => { const onFinish = fieldsValue => {
const values = { const values = {
...@@ -1349,10 +1358,12 @@ const Detail: React.FC<{}> = () => { ...@@ -1349,10 +1358,12 @@ const Detail: React.FC<{}> = () => {
</Row> </Row>
<RroductModal <RroductModal
sourceData={tabData} sourceData={tabData}
check={check}
view={view}
dialogVisible={dialogVisible} dialogVisible={dialogVisible}
mode={0} mode={0}
onOK={(values: any) => handleSubmit(values)} onOK={(values: any) => handleSubmit(values)}
onCancel={() => setdialogVisible(false)} onCancel={() => {setdialogVisible(false); setView(false)}}
> >
</RroductModal> </RroductModal>
......
...@@ -29,7 +29,7 @@ import { ...@@ -29,7 +29,7 @@ import {
} from 'god/dist/src/standard-table/TableController'; } from 'god/dist/src/standard-table/TableController';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import StatusSwitch from '@/components/StatusSwitch'; import StatusSwitch from '@/components/StatusSwitch';
import {interiorState} from '../../common/tableStatusList' import {demandQuoteExternalState, demandQuoteInteriorState} from '../../common/tableStatusList'
import statuStyle from '../../common/colorTag' import statuStyle from '../../common/colorTag'
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import {timeRange} from '@/utils/index' import {timeRange} from '@/utils/index'
...@@ -107,22 +107,16 @@ const List:React.FC<{}> = () => { ...@@ -107,22 +107,16 @@ const List:React.FC<{}> = () => {
key:'externalState', key:'externalState',
dataIndex:'externalState', dataIndex:'externalState',
align:'center', align:'center',
render: (text: any, reconds) => { render: (text: any, reconds) =>
let component: ReactNode = null demandQuoteExternalState(text)
if (text == 3) {
component = <><span style={statuStyle.warn}>审核不通过需求单</span></>
}else if (text == 1) {
component = <><span style={statuStyle.default}>待提交需求单</span></>
}
return component
}
}, },
{ {
title:'内部状态', title:'内部状态',
key:'interiorState', key:'interiorState',
dataIndex:'interiorState', dataIndex:'interiorState',
align:'center', align:'center',
render:(text:any) => interiorState(text) render:(text:any) =>
demandQuoteInteriorState(text)
}, },
{ {
title:'操作', title:'操作',
......
...@@ -118,8 +118,8 @@ const ReviewList: React.FC<parmas> = (props) => { ...@@ -118,8 +118,8 @@ const ReviewList: React.FC<parmas> = (props) => {
// 搜索 // 搜索
const search = (values: any) => { const search = (values: any) => {
if (values.voucherTime) { if (values.voucherTime) {
values.startVoucherTime = timeRange(values.voucherTime).st values.startDocumentsTime = timeRange(values.voucherTime).st
values.endVoucherTime = timeRange(values.voucherTime).et values.endDocumentsTime = timeRange(values.voucherTime).et
delete values.voucherTime delete values.voucherTime
} }
ref.current.reload(values) ref.current.reload(values)
......
...@@ -14,41 +14,11 @@ const PendingReviewTwo: React.FC<{}> = () => { ...@@ -14,41 +14,11 @@ const PendingReviewTwo: React.FC<{}> = () => {
console.log(values, '我是多选的id') console.log(values, '我是多选的id')
} }
//列表数据 //列表数据
// const data = { // 模拟的数据
// totalCount: 6,
// data: [{
// id: 1,
// inquiryListNo: 'SZX125KJS',
// details: '模拟的数据',
// memberName: '冰红茶',
// memberId: 10,
// deliveryTime: '2020-10-13 13:59:00',
// quotationAsTime: '2020-10-13 23:59:00',
// voucherTime: '2020-10-13 13:59:00',
// externalState: 1,
// interiorState: 1
// }, {
// id: 2,
// inquiryListNo: 'SZX125LIP',
// details: '模拟的数据10086',
// memberName: '打喷嚏',
// memberId: 1,
// deliveryTime: '2020-10-12 13:59:00',
// quotationAsTime: '2020-10-14 23:59:00',
// voucherTime: '2020-10-12 13:59:00',
// externalState: 1,
// interiorState: 1
// }]
// }
const fetchData = (params?: any) => { const fetchData = (params?: any) => {
console.log(params)//可以直接打印参数
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getOrderInquiryToAuditListTwo({...params}).then(res => { PublicApi.getOrderInquiryToAuditListTwo({...params}).then(res => {
resolve(res.data) resolve(res.data)
}) })
// setTimeout(() => {
// resolve(data)
// }, 500)
}) })
} }
// 批量操作 // 批量操作
......
...@@ -117,8 +117,8 @@ const PendingSubmit: React.FC<{}> = () => { ...@@ -117,8 +117,8 @@ const PendingSubmit: React.FC<{}> = () => {
/**搜索 */ /**搜索 */
const handleSumbit = (values: any) => { const handleSumbit = (values: any) => {
if (values.voucherTime) { if (values.voucherTime) {
values.startVoucherTime = timeRange(values.voucherTime).st values.startDocumentsTime = timeRange(values.voucherTime).st
values.endVoucherTime = timeRange(values.voucherTime).et values.endDocumentsTime = timeRange(values.voucherTime).et
delete values.voucherTime delete values.voucherTime
} }
console.log('values', values) console.log('values', values)
......
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 {TimeList} from '../../common/statusList' import {TimeList, filterExternalStateLabelList, filterInternalStateLabelList} from '../../common/statusList'
import TranactionRoute from 'config/routes/tranactionRoute' import TranactionRoute from 'config/routes/tranactionRoute'
/** /**
...@@ -32,7 +32,7 @@ export const pendingReviewSchema: ISchema = { ...@@ -32,7 +32,7 @@ export const pendingReviewSchema: ISchema = {
}, },
"x-component-props":{ "x-component-props":{
placeholder:'询价单搜索' placeholder:'询价单搜索'
} }
} }
} }
...@@ -65,7 +65,7 @@ export const pendingReviewSchema: ISchema = { ...@@ -65,7 +65,7 @@ export const pendingReviewSchema: ISchema = {
placeholder:'询价单摘要' placeholder:'询价单摘要'
} }
}, },
memberName:{ inquiryListMemberName:{
type:'string', type:'string',
"x-component-props":{ "x-component-props":{
placeholder:'被询价会员' placeholder:'被询价会员'
...@@ -73,12 +73,28 @@ export const pendingReviewSchema: ISchema = { ...@@ -73,12 +73,28 @@ export const pendingReviewSchema: ISchema = {
}, },
voucherTime:{ voucherTime:{
type:'string', type:'string',
default: 0, // default: 0,
"x-component-props":{ "x-component-props":{
placeholder:'请选择单据时间' placeholder:'请选择单据时间'
}, },
enum: TimeList enum: TimeList
}, },
externalState:{
type:'string',
// default: 0,
"x-component-props":{
placeholder:'外部状态'
},
enum: filterExternalStateLabelList
},
interiorState :{
type:'string',
// default: 0,
"x-component-props":{
placeholder:'内部状态'
},
enum: filterInternalStateLabelList
},
} }
}, },
sumbit:{ sumbit:{
......
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