Commit ba669df7 authored by alwayOnlie's avatar alwayOnlie

BUG修复

parent 4de7f18b
...@@ -77,8 +77,9 @@ const Details = (props: any) => { ...@@ -77,8 +77,9 @@ const Details = (props: any) => {
keyId: index + 1, keyId: index + 1,
} }
}) })
console.log(list)
setdata(list) setdata(list)
} else {
setdata([]);
} }
setTotal(res.data.totalCount) setTotal(res.data.totalCount)
setunApplyAmount(unApplyAmount) setunApplyAmount(unApplyAmount)
...@@ -294,6 +295,7 @@ const Details = (props: any) => { ...@@ -294,6 +295,7 @@ const Details = (props: any) => {
setSelectRow(selectedRows) setSelectRow(selectedRows)
} }
}; };
const [values, setvalues] = useState('');
/* 搜素 */ /* 搜素 */
const onSearch = (values) => { const onSearch = (values) => {
const data = { const data = {
...@@ -305,6 +307,21 @@ const Details = (props: any) => { ...@@ -305,6 +307,21 @@ const Details = (props: any) => {
current: 1, current: 1,
pageSize: 5, pageSize: 5,
} }
setvalues(values)
getContracInfoList(data)
}
/* 重置 */
const Reset = () => {
setvalues('');
const data = {
contractId,
orderNo: '',
orderAbstract: '',
startTime: "",
endTime: "",
current: 1,
pageSize: 5,
}
getContracInfoList(data) getContracInfoList(data)
} }
/* 查看付款明细回调 */ /* 查看付款明细回调 */
...@@ -328,11 +345,7 @@ const Details = (props: any) => { ...@@ -328,11 +345,7 @@ const Details = (props: any) => {
console.log(data) console.log(data)
getContracInfoList(data) getContracInfoList(data)
}; };
/* 非手工单进入请款 */
const like = (sourceType) => {
sessionStorage.setItem('basics', JSON.stringify(basics));
history.push('/memberCenter/contract/funds/addbill/Add?applyId=' + contractId + '&sourceType=' + sourceType)
}
return ( return (
<div className={style.anchorWrap}> <div className={style.anchorWrap}>
<Anchor <Anchor
...@@ -398,8 +411,10 @@ const Details = (props: any) => { ...@@ -398,8 +411,10 @@ const Details = (props: any) => {
placeholder="搜素" placeholder="搜素"
allowClear allowClear
onSearch={onSearch} onSearch={onSearch}
value={values}
onChange={e => setvalues(e.target.value)}
/> />
<Button style={{ paddingLeft: 10, paddingRight: 10, marginLeft: 10, marginRight: 10 }}> 重置 </Button> <Button style={{ paddingLeft: 10, paddingRight: 10, marginLeft: 10, marginRight: 10 }} onClick={Reset}> 重置 </Button>
<Button type="primary" onClick={() => onselect()}>批量请款</Button> <Button type="primary" onClick={() => onselect()}>批量请款</Button>
</div> </div>
</div> </div>
......
...@@ -74,7 +74,7 @@ const table = (props: any) => { ...@@ -74,7 +74,7 @@ const table = (props: any) => {
dataIndex: 'orderAmount', align: 'center', dataIndex: 'orderAmount', align: 'center',
render: (text, record) => render: (text, record) =>
<div> <div>
<div>{text}</div> <div>{record.orderType == 2 ? `-${text}` : ''}</div>
</div> </div>
}, },
......
...@@ -24,11 +24,12 @@ const BiddingList = () => { ...@@ -24,11 +24,12 @@ const BiddingList = () => {
const columns: ColumnType<any>[] = [{ const columns: ColumnType<any>[] = [{
title: '招标编号/项目', title: '招标编号/项目',
dataIndex: 'inviteBidNO', dataIndex: 'inviteBidNO',
align: 'center', align: 'left',
render: (text, record) => render: (text, record) =>
<div> <div>
<EyePreview <EyePreview
type="button" url={`/memberCenter/procurementAbility/callForBids/tenderSearch/detail?id=${record.bidId}`}
// type=""
> >
{text} {text}
</EyePreview> </EyePreview>
...@@ -37,17 +38,17 @@ const BiddingList = () => { ...@@ -37,17 +38,17 @@ const BiddingList = () => {
}, { }, {
title: '投标编号', title: '投标编号',
dataIndex: 'bidNo', dataIndex: 'bidNo',
align: 'center', align: 'left',
}, },
{ {
title: '中标会员', title: '中标会员',
dataIndex: 'bidWinnerName', dataIndex: 'bidWinnerName',
align: 'center', align: 'left',
}, },
{ {
title: '中标通知时间', title: '中标通知时间',
dataIndex: 'bidWinnerNoticeTime', dataIndex: 'bidWinnerNoticeTime',
align: 'center', align: 'left',
sorter: { sorter: {
compare: (a, b) => a.bidWinnerNoticeTime - b.bidWinnerNoticeTime, compare: (a, b) => a.bidWinnerNoticeTime - b.bidWinnerNoticeTime,
multiple: 1, multiple: 1,
...@@ -56,7 +57,7 @@ const BiddingList = () => { ...@@ -56,7 +57,7 @@ const BiddingList = () => {
{ {
title: '中标金额', title: '中标金额',
dataIndex: 'bidWinnerAmount', dataIndex: 'bidWinnerAmount',
align: 'center', align: 'left',
sorter: { sorter: {
compare: (a, b) => a.bidWinnerAmount - b.bidWinnerAmount, compare: (a, b) => a.bidWinnerAmount - b.bidWinnerAmount,
multiple: 1, multiple: 1,
...@@ -65,7 +66,7 @@ const BiddingList = () => { ...@@ -65,7 +66,7 @@ const BiddingList = () => {
{ {
title: '外部状态', title: '外部状态',
dataIndex: 'outerStatus', dataIndex: 'outerStatus',
align: 'center', align: 'left',
render: (text) => { render: (text) => {
return ( return (
...@@ -76,7 +77,7 @@ const BiddingList = () => { ...@@ -76,7 +77,7 @@ const BiddingList = () => {
{ {
title: '内部状态', title: '内部状态',
dataIndex: 'innerStatus', dataIndex: 'innerStatus',
align: 'center', align: 'left',
render: (text) => { render: (text) => {
return ( return (
<div> <div>
...@@ -88,7 +89,7 @@ const BiddingList = () => { ...@@ -88,7 +89,7 @@ const BiddingList = () => {
}, { }, {
title: '操作', title: '操作',
dataIndex: 'state', dataIndex: 'state',
align: 'center', align: 'left',
render: (_, record) => { render: (_, record) => {
return ( return (
<div> <div>
......
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 { OrderTypeMap, PurchaseOrderInsideWorkStateTexts, PurchaseOrderOutWorkStateTexts } from '@/constants/order'; import { OrderTypeMap, PurchaseOrderInsideWorkStateTexts, PurchaseOrderOutWorkStateTexts } from '@/constants/order';
import moment from 'moment';
/** /**
* 除了订单必填字段, 默认 * 除了订单必填字段, 默认
*/ */
...@@ -114,7 +112,7 @@ export const BidListSchema: any = { ...@@ -114,7 +112,7 @@ export const BidListSchema: any = {
"inviteBidAbstract": { "inviteBidAbstract": {
type: 'string', type: 'string',
"x-component-props": { "x-component-props": {
placeholder: '请输入招标摘要' placeholder: '请输入项目'
} }
}, },
"bidNo": { "bidNo": {
...@@ -128,9 +126,6 @@ export const BidListSchema: any = { ...@@ -128,9 +126,6 @@ export const BidListSchema: any = {
"x-component": 'DateRangePickerUnix', "x-component": 'DateRangePickerUnix',
'x-component-props': { 'x-component-props': {
placeholder: ['开始时间', '结束时间'], placeholder: ['开始时间', '结束时间'],
disabledDate: current => {
return current && current < moment().startOf('day')
}
}, },
}, },
"bidWinnerName": { "bidWinnerName": {
...@@ -185,9 +180,9 @@ export const ViePriceListSchema: any = { ...@@ -185,9 +180,9 @@ export const ViePriceListSchema: any = {
"x-component": 'DateRangePickerUnix', "x-component": 'DateRangePickerUnix',
'x-component-props': { 'x-component-props': {
placeholder: ['开始时间', '结束时间'], placeholder: ['开始时间', '结束时间'],
disabledDate: current => { // disabledDate: current => {
return current && current < moment().startOf('day') // return current && current < moment().startOf('day')
} // }
}, },
}, },
"awardName": { "awardName": {
......
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