Commit 55f071e3 authored by XieZhiXiong's avatar XieZhiXiong

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

parents b67efb14 002a3d19
...@@ -5,24 +5,28 @@ import { Button, Drawer, } from 'antd'; ...@@ -5,24 +5,28 @@ import { Button, Drawer, } from 'antd';
import { StandardTable } from 'god'; import { StandardTable } from 'god';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import moment from 'moment';
export interface Iprops extends IAntdSchemaFormProps { export interface Iprops extends IAntdSchemaFormProps {
/* 显示隐藏 */ /* 显示隐藏 */
visible: any, visible: any,
applyId: any, item: any,
contractId: any,
setDrawerModal: Function setDrawerModal: Function
} }
const DrawerModal: React.FC<Iprops> = ({ const DrawerModal: React.FC<Iprops> = ({
visible, visible,
applyId, item,
setDrawerModal setDrawerModal,
contractId,
}) => { }) => {
console.log(item)
const ref = useRef({}); const ref = useRef({});
const [selectRow, setSelectRow] = useState<any[]>([]) // 抽屉选择的行数据 const [selectRow, setSelectRow] = useState<any[]>([]) // 抽屉选择的行数据
const [selectedRowKeys, setSelectedRowKeys] = useState<Array<string>>([]) const [selectedRowKeys, setSelectedRowKeys] = useState<Array<string>>([])
const PaymentList: any = [ const PaymentList: any = [
{ {
title: '单据号/摘要', dataIndex: 'orderNO', align: 'center', title: '请款单号/摘要', dataIndex: 'applyNo', align: 'center',
render: (text: any, record: any) => { render: (text: any, record: any) => {
return ( return (
<div> <div>
...@@ -31,14 +35,36 @@ const DrawerModal: React.FC<Iprops> = ({ ...@@ -31,14 +35,36 @@ const DrawerModal: React.FC<Iprops> = ({
> >
{text} {text}
</EyePreview> </EyePreview>
<p>{record.orderAbstract}</p> <p>{record.applyAbstract}</p>
</div> </div>
); );
}, },
}, },
{ title: '单据类型', dataIndex: 'orderTypeName', align: 'center', }, { title: '状态', dataIndex: 'statusName', align: 'center', },
{ title: '单据状态', dataIndex: 'orderStatusName', align: 'center', }, {
{ title: '单据时间', dataIndex: 'orderTime', align: 'center', }, title: '请款时间', dataIndex: 'orderTime', align: 'center',
render: (text: any, record: any) => (
<div>{moment(Number(text)).format('YYYY-MM-DD')}</div>
)
},
{
title: '请款金额', dataIndex: 'applyAmount', align: 'center',
render: (text: any, record: any) => (
<div>{text}</div>
)
},
{
title: '付款时间', dataIndex: 'payTime', align: 'center',
render: (text: any, record: any) => (
<div>{moment(Number(text)).format('YYYY-MM-DD')}</div>
)
},
{
title: '付款金额', dataIndex: 'payAmount', align: 'center',
render: (text: any, record: any) => (
<div>{text}</div>
)
},
] ]
/* 查看付款明细————————————————————查看付款明细———————————————————— */ /* 查看付款明细————————————————————查看付款明细———————————————————— */
const rowSelection: any = { const rowSelection: any = {
...@@ -49,15 +75,16 @@ const DrawerModal: React.FC<Iprops> = ({ ...@@ -49,15 +75,16 @@ const DrawerModal: React.FC<Iprops> = ({
} }
} }
/* 请求查看付款明细 */ /* 请求查看付款明细 */
const getPaymentList = (params) => { const fetchTableData = (params) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getContractExecuteExecuteInfoPayDetailInfoPagePayDetail({ PublicApi.getContractExecuteExecuteInfoPayDetailList({
...params, ...params,
applyId, executeId: item.id,
contractId,
}).then(res => { }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
console.log(res, '请求查看付款明细') console.log(res.data, '请求查看付款明细')
resolve(res.data) resolve(res)
} }
}) })
}) })
...@@ -92,7 +119,7 @@ const DrawerModal: React.FC<Iprops> = ({ ...@@ -92,7 +119,7 @@ const DrawerModal: React.FC<Iprops> = ({
columns={PaymentList} columns={PaymentList}
currentRef={ref} currentRef={ref}
rowSelection={rowSelection} rowSelection={rowSelection}
fetchTableData={(params: any) => getPaymentList(params)} fetchTableData={(params: any) => fetchTableData(params)}
/> />
</Drawer> </Drawer>
......
...@@ -59,7 +59,8 @@ const Details = (props: any) => { ...@@ -59,7 +59,8 @@ const Details = (props: any) => {
/* 待请款 */ /* 待请款 */
const [unApplyAmount, setunApplyAmount] = useState<number>(0) const [unApplyAmount, setunApplyAmount] = useState<number>(0)
/* 请款单id */ /* 请款单id */
const [applyId, setapplyId] = useState<number>(0) // const [applyId, setapplyId] = useState<number>(0)
const [item, setitem] = useState({});
/* 执行情况分页 */ /* 执行情况分页 */
const getContracInfoList = (data) => { const getContracInfoList = (data) => {
setListLoading(true); setListLoading(true);
...@@ -242,7 +243,7 @@ const Details = (props: any) => { ...@@ -242,7 +243,7 @@ const Details = (props: any) => {
return ( return (
<div> <div>
{ {
record.payAmount > 0 || record.unPayApplyAmount > 0 && <a onClick={() => getPayment(record.id)} className={style.gesture}>查看付款明细</a> record.payAmount > 0 || record.unPayApplyAmount > 0 && <a onClick={() => getPayment(record)} className={style.gesture}>查看付款明细</a>
} }
<a onClick={() => onModal(record, false)} style={{ marginLeft: 10 }} className={style.gesture}>请款</a> <a onClick={() => onModal(record, false)} style={{ marginLeft: 10 }} className={style.gesture}>请款</a>
</div> </div>
...@@ -282,8 +283,8 @@ const Details = (props: any) => { ...@@ -282,8 +283,8 @@ const Details = (props: any) => {
} }
} }
/* 点击显示弹出 */ /* 点击显示弹出 */
const getPayment = (id) => { const getPayment = (item) => {
setapplyId(id) setitem(item)
setVisible(!visible) setVisible(!visible)
} }
...@@ -444,7 +445,7 @@ const Details = (props: any) => { ...@@ -444,7 +445,7 @@ const Details = (props: any) => {
<DetailedList contractId={contractId} /> <DetailedList contractId={contractId} />
</div> </div>
{/* 选择弹出内容 */} {/* 选择弹出内容 */}
<DrawerModal visible={visible} applyId={applyId} setDrawerModal={setDrawerModal} /> <DrawerModal visible={visible} item={item} contractId={contractId} setDrawerModal={setDrawerModal} />
{/* 请款弹出 */} {/* 请款弹出 */}
<PopModal ModalVisible={ModalVisible} payType={payType} selectRowList={selectRow} contractId={contractId} basics={basics} setDrawerPopModal={setDrawerPopModal} /> <PopModal ModalVisible={ModalVisible} payType={payType} selectRowList={selectRow} contractId={contractId} basics={basics} setDrawerPopModal={setDrawerPopModal} />
</div> </div>
......
...@@ -66,10 +66,10 @@ const coordinationList = () => { ...@@ -66,10 +66,10 @@ const coordinationList = () => {
render: (text, record) => render: (text, record) =>
<div> <div>
{ {
text && text && record.sourceId &&
<EyePreview <EyePreview
type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'} type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`} url={record.sourceType == 1 ? `/memberCenter/procurementAbility/offter/offter/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
...@@ -71,11 +71,15 @@ const pageToBeExamineOne = () => { ...@@ -71,11 +71,15 @@ const pageToBeExamineOne = () => {
align: 'center', align: 'center',
render: (text, record) => render: (text, record) =>
<div> <div>
{
text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/offter/offter/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
}
<p>{record.sourceTypeName}</p> <p>{record.sourceTypeName}</p>
</div> </div>
}, },
......
...@@ -70,11 +70,15 @@ const pageToBeExamineTwo = () => { ...@@ -70,11 +70,15 @@ const pageToBeExamineTwo = () => {
align: 'center', align: 'center',
render: (text, record) => render: (text, record) =>
<div> <div>
{
text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/offter/offter/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
}
<p>{record.sourceTypeName}</p> <p>{record.sourceTypeName}</p>
</div> </div>
}, },
......
...@@ -68,11 +68,15 @@ const pageToBeSubmitExamine = () => { ...@@ -68,11 +68,15 @@ const pageToBeSubmitExamine = () => {
align: 'center', align: 'center',
render: (text, record) => render: (text, record) =>
<div> <div>
{
text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/offter/offter/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
}
<p>{record.sourceTypeName}</p> <p>{record.sourceTypeName}</p>
</div> </div>
}, },
......
...@@ -67,11 +67,15 @@ const Sign = () => { ...@@ -67,11 +67,15 @@ const Sign = () => {
align: 'center', align: 'center',
render: (text, record) => render: (text, record) =>
<div> <div>
{
text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/offter/offter/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
}
<p>{record.sourceTypeName}</p> <p>{record.sourceTypeName}</p>
</div> </div>
}, },
......
...@@ -82,7 +82,7 @@ const table = (props: any) => { ...@@ -82,7 +82,7 @@ const table = (props: any) => {
title: '含税/税率', dataIndex: 'taxRate', align: 'left', title: '含税/税率', dataIndex: 'taxRate', align: 'left',
render: (text, record) => render: (text, record) =>
<div> <div>
<div>{text ? '是' : '否'}</div> <div>{record.isHasTax ? '是' : '否'}</div>
<div>%{text}</div> <div>%{text}</div>
</div> </div>
......
...@@ -29,6 +29,7 @@ const BillDetails = (props: any) => { ...@@ -29,6 +29,7 @@ const BillDetails = (props: any) => {
const [isModalVisible, setIsModalVisible] = useState(false); const [isModalVisible, setIsModalVisible] = useState(false);
const [StepList, setStepList] = useState<any>([]); const [StepList, setStepList] = useState<any>([]);
const [applyAbstract, setapplyAbstract] = useState(''); const [applyAbstract, setapplyAbstract] = useState('');
const [applyNo, setapplyNo] = useState('');
const [reason, setDatareason] = useState(''); const [reason, setDatareason] = useState('');
const [status, setstatus] = useState<any>() const [status, setstatus] = useState<any>()
const [ExamineFlag, setExamineFlag] = useState<boolean>(false); const [ExamineFlag, setExamineFlag] = useState<boolean>(false);
...@@ -87,6 +88,7 @@ const BillDetails = (props: any) => { ...@@ -87,6 +88,7 @@ const BillDetails = (props: any) => {
setbasicInfo(basicInfo) setbasicInfo(basicInfo)
setStepList(taskStepList); setStepList(taskStepList);
setapplyAbstract(basics.applyAbstract) setapplyAbstract(basics.applyAbstract)
setapplyNo(basics.applyNo)
setstatus(basics.status) setstatus(basics.status)
} }
}) })
...@@ -172,7 +174,7 @@ const BillDetails = (props: any) => { ...@@ -172,7 +174,7 @@ const BillDetails = (props: any) => {
marginLeft: '8px', marginLeft: '8px',
}} }}
> >
{applyAbstract} {applyAbstract} | {applyNo}
</span> </span>
</div> </div>
......
...@@ -80,7 +80,7 @@ const QueryList = () => { ...@@ -80,7 +80,7 @@ const QueryList = () => {
return ( return (
<div> <div>
{ {
text && text && record.sourceId &&
<EyePreview <EyePreview
type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'} type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`} url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
......
.anchorWrap :global .ant-pro-basicLayout-content {
margin: 0 !important;
}
.anchorWrap :global .ant-anchor { .anchorWrap :global .ant-anchor {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -59,6 +62,8 @@ ...@@ -59,6 +62,8 @@
} }
.card .list { .card .list {
display: flex; display: flex;
}
.card .list h5 {
margin-bottom: 2em; margin-bottom: 2em;
} }
.card .list .listLable { .card .list .listLable {
...@@ -71,7 +76,6 @@ ...@@ -71,7 +76,6 @@
.listItem .label { .listItem .label {
flex: 0.2; flex: 0.2;
padding: 0 16px; padding: 0 16px;
color: #00b37a;
background: linear-gradient(270deg, #ffffff 0%, #daf2e7 100%); background: linear-gradient(270deg, #ffffff 0%, #daf2e7 100%);
} }
.listItem .text { .listItem .text {
...@@ -157,7 +161,3 @@ ...@@ -157,7 +161,3 @@
margin-left: 19px; margin-left: 19px;
color: #c0c4cc; color: #c0c4cc;
} }
.box :global .ant-table-expanded-row-level-1 .ant-table-cell {
padding: 0px !important;
background-color: #ffffff;
}
.anchorWrap { .anchorWrap {
:global { :global {
.ant-pro-basicLayout-content{
margin: 0 !important;
}
.ant-anchor { .ant-anchor {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -33,6 +36,7 @@ ...@@ -33,6 +36,7 @@
padding: 0 16px; padding: 0 16px;
} }
} }
/** 卡片样式 */ /** 卡片样式 */
.card { .card {
margin: 24px; margin: 24px;
...@@ -66,9 +70,8 @@ ...@@ -66,9 +70,8 @@
} }
.list { .list {
display: flex; display: flex;
margin-bottom: 2em;
h5 { h5 {
// margin-bottom: 2em; margin-bottom: 2em;
} }
.listLable { .listLable {
flex: 0 0 25%; flex: 0 0 25%;
...@@ -82,7 +85,6 @@ ...@@ -82,7 +85,6 @@
.label { .label {
flex: 0.2; flex: 0.2;
padding: 0 16px; padding: 0 16px;
color: #00b37a;
background: linear-gradient(270deg, #ffffff 0%, #daf2e7 100%); background: linear-gradient(270deg, #ffffff 0%, #daf2e7 100%);
} }
.text { .text {
...@@ -168,7 +170,6 @@ ...@@ -168,7 +170,6 @@
.upload_right { .upload_right {
color: #00b37a; color: #00b37a;
cursor: pointer; cursor: pointer;
:global { :global {
.anticon-delete { .anticon-delete {
margin-left: 19px; margin-left: 19px;
...@@ -176,13 +177,8 @@ ...@@ -176,13 +177,8 @@
} }
} }
} }
} }
.box{
:global {
.ant-table-expanded-row-level-1 .ant-table-cell {
padding: 0px !important;
background-color: #ffffff;
}
}
}
...@@ -60,6 +60,7 @@ const Details = (props: any) => { ...@@ -60,6 +60,7 @@ const Details = (props: any) => {
const [targetOffset, setTargetOffset] = useState<number | undefined>(undefined); const [targetOffset, setTargetOffset] = useState<number | undefined>(undefined);
const [contractAbstract, setcontractAbstract] = useState(''); const [contractAbstract, setcontractAbstract] = useState('');
const [signatureLogId, setsignatureLogId] = useState<any>('') // 签署地址id const [signatureLogId, setsignatureLogId] = useState<any>('') // 签署地址id
const [contractNo, setcontractNo] = useState('');
/* 总金额 */ /* 总金额 */
const [tobidCount, settobidCount] = useState<number>(0); const [tobidCount, settobidCount] = useState<number>(0);
const [bidAmount, setbidAmount] = useState<number>(0); const [bidAmount, setbidAmount] = useState<number>(0);
...@@ -103,6 +104,7 @@ const Details = (props: any) => { ...@@ -103,6 +104,7 @@ const Details = (props: any) => {
setpayPlanList(payPlanList) setpayPlanList(payPlanList)
setcontractText(contractText) setcontractText(contractText)
setcontractAbstract(contractAbstract) setcontractAbstract(contractAbstract)
setcontractNo(basics.contractNo)
} }
}) })
} }
...@@ -308,7 +310,7 @@ const Details = (props: any) => { ...@@ -308,7 +310,7 @@ const Details = (props: any) => {
}} }}
> >
{contractAbstract} {contractAbstract} | {contractNo}
</span> </span>
</div> </div>
......
...@@ -80,10 +80,10 @@ const Examine = () => { ...@@ -80,10 +80,10 @@ const Examine = () => {
return ( return (
<div> <div>
{ {
text && text && record.sourceId &&
<EyePreview <EyePreview
type={record.sourceId ? 'link' : 'button'} type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={`/memberCenter/procurementAbility/offter/view?id${record.sourceId}&number${record.sourceNo}`} url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
...@@ -81,9 +81,10 @@ const Levelexamine = () => { ...@@ -81,9 +81,10 @@ const Levelexamine = () => {
return ( return (
<div> <div>
{ {
text && text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
...@@ -76,9 +76,10 @@ const Secondaryexamine = () => { ...@@ -76,9 +76,10 @@ const Secondaryexamine = () => {
return ( return (
<div> <div>
{ {
text && text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
...@@ -80,9 +80,10 @@ const Signacontract = () => { ...@@ -80,9 +80,10 @@ const Signacontract = () => {
return ( return (
<div> <div>
{ {
text && text && record.sourceId &&
<EyePreview <EyePreview
type="button" type={record.sourceType == 1 ? record.sourceId ? 'link' : "button" : 'link'}
url={record.sourceType == 1 ? `/memberCenter/procurementAbility/confirmOffer/offerInquire/demand/preview?id=${record.sourceId}&number${record.sourceNo}` : `/memberCenter/procurementAbility/callForBids/callForBidsSearch/detail?id=${record.sourceId}`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
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