|
@@ -67,9 +67,7 @@ class CheckProject extends Component {
|
|
|
dataIndex: 'totalAmount',
|
|
|
key: 'totalAmount',
|
|
|
render: (text, record) => {
|
|
|
- if (text) {
|
|
|
- return <span>{text}</span>
|
|
|
- }
|
|
|
+ return <span>{text}</span>
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -192,9 +190,7 @@ class CheckProject extends Component {
|
|
|
dataIndex: 'totalAmount',
|
|
|
key: 'totalAmount',
|
|
|
render: (text, record) => {
|
|
|
- if (text) {
|
|
|
- return <span>***</span>
|
|
|
- }
|
|
|
+ return <span>{text}</span>
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -246,10 +242,759 @@ class CheckProject extends Component {
|
|
|
setTimeout(()=>{
|
|
|
this.getSelectOutsourceLog();
|
|
|
this.getSelectOrderPayment();
|
|
|
+ this.projectTypeTabContent(this.props.projectType);
|
|
|
},500)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ projectTypeTabContent(projectType) {
|
|
|
+ if(projectType === 0){ //0正常 1专利 2软著 3审计
|
|
|
+ this.setState({
|
|
|
+ ContactsListsNew: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价(万元)',
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
+ key: 'unitPrice',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价(万元)',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ dataIndex: 'remarks',
|
|
|
+ key: 'remarks',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ key: 'action',
|
|
|
+ render: (text, record) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
|
|
|
+ {/*存在支付节点时不显示第三方的申请付款*/}
|
|
|
+ {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
|
|
|
+ {
|
|
|
+ <Button disabled={
|
|
|
+ !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
|
|
|
+ } type="primary" onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ previewPayVisible: true,
|
|
|
+ previewPayInfor: record,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ 申请付款
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.confirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginLeft: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ //付款节点表头
|
|
|
+ PayNodeTableColunms: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款科目',
|
|
|
+ dataIndex: 'dunType',
|
|
|
+ key: 'dunType',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款时间',
|
|
|
+ dataIndex: 'partyTimes',
|
|
|
+ key: 'partyTimes',
|
|
|
+ render: (text, record) => {
|
|
|
+ return <span>{text ? text : '/'}</span>
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ return <span>{text}</span>
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '已付',
|
|
|
+ dataIndex: 'partyAmount',
|
|
|
+ key: 'partyAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'dels',
|
|
|
+ key: 'dels',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.payNodeConfirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginRight: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ })
|
|
|
+ }else if(projectType === 2){ //2软著
|
|
|
+ this.setState({
|
|
|
+ ContactsListsNew: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价(万元)',
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
+ key: 'unitPrice',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价(万元)',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>***</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '材料',
|
|
|
+ dataIndex: 'material',
|
|
|
+ key: 'material',
|
|
|
+ render: (text, record) => {
|
|
|
+ return getMaterialStatus(text)
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '加急',
|
|
|
+ dataIndex: 'urgent',
|
|
|
+ key: 'urgent',
|
|
|
+ render: (text, record) => {
|
|
|
+ return getUrgentStatus(text)
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ key: 'action',
|
|
|
+ render: (text, record) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
|
|
|
+ {/*存在支付节点时不显示第三方的申请付款*/}
|
|
|
+ {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
|
|
|
+ {
|
|
|
+ <Button disabled={
|
|
|
+ !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
|
|
|
+ } type="primary" onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ previewPayVisible: true,
|
|
|
+ previewPayInfor: record,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ 申请付款
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.confirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginLeft: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ //付款节点表头
|
|
|
+ PayNodeTableColunms: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款科目',
|
|
|
+ dataIndex: 'dunType',
|
|
|
+ key: 'dunType',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款时间',
|
|
|
+ dataIndex: 'partyTimes',
|
|
|
+ key: 'partyTimes',
|
|
|
+ render: (text, record) => {
|
|
|
+ return <span>{text ? text : '/'}</span>
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ return <span>***</span>
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '已付',
|
|
|
+ dataIndex: 'partyAmount',
|
|
|
+ key: 'partyAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'dels',
|
|
|
+ key: 'dels',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.payNodeConfirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginRight: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ })
|
|
|
+ }else if(projectType === 1){ //1专利
|
|
|
+ if(this.props.patentType === 0){ //专利申请
|
|
|
+ this.setState({
|
|
|
+ ContactsListsNew: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价(万元)',
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
+ key: 'unitPrice',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "官费",
|
|
|
+ dataIndex: "officialCost",
|
|
|
+ key: "officialCost",
|
|
|
+ render: (text) => {
|
|
|
+ return text === 1 ? '含官费' : '不含官费'
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "费减",
|
|
|
+ dataIndex: "costReduction",
|
|
|
+ key: "costReduction",
|
|
|
+ render: (text) => {
|
|
|
+ return text === 1 ? '有费减' : '无费减'
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价(万元)',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ dataIndex: 'remarks',
|
|
|
+ key: 'remarks',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ key: 'action',
|
|
|
+ render: (text, record) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
|
|
|
+ {/*存在支付节点时不显示第三方的申请付款*/}
|
|
|
+ {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
|
|
|
+ {
|
|
|
+ <Button disabled={
|
|
|
+ !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
|
|
|
+ } type="primary" onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ previewPayVisible: true,
|
|
|
+ previewPayInfor: record,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ 申请付款
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ {
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{
|
|
|
+ marginLeft: '10px',
|
|
|
+ }}
|
|
|
+ disabled={!(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)}
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ previewPayVisible: true,
|
|
|
+ previewPayInfor: record,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ 付官费
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.confirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginLeft: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.setState({
|
|
|
+ ContactsListsNew: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价(万元)',
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
+ key: 'unitPrice',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价(万元)',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注',
|
|
|
+ dataIndex: 'remarks',
|
|
|
+ key: 'remarks',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ key: 'action',
|
|
|
+ render: (text, record) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
|
|
|
+ {/*存在支付节点时不显示第三方的申请付款*/}
|
|
|
+ {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
|
|
|
+ {
|
|
|
+ <Button disabled={
|
|
|
+ !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
|
|
|
+ } type="primary" onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ previewPayVisible: true,
|
|
|
+ previewPayInfor: record,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ 申请付款
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.confirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginLeft: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else if(projectType === 3){ //3审计
|
|
|
+ this.setState({
|
|
|
+ ContactsListsNew: [
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ dataIndex: 'companyName',
|
|
|
+ key: 'companyName',
|
|
|
+ render: (text, record, index) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单价(万元)',
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
+ key: 'unitPrice',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数量',
|
|
|
+ dataIndex: 'quantity',
|
|
|
+ key: 'quantity',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '总价(万元)',
|
|
|
+ dataIndex: 'totalAmount',
|
|
|
+ key: 'totalAmount',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>***</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审计',
|
|
|
+ dataIndex: 'audit',
|
|
|
+ key: 'audit',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text===0?'无审计':text===1?'年审':'专审'}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '公司资产(万元)',
|
|
|
+ dataIndex: 'assets',
|
|
|
+ key: 'assets',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '收入(万元)',
|
|
|
+ dataIndex: 'income',
|
|
|
+ key: 'income',
|
|
|
+ render: (text, record) => {
|
|
|
+ if (text) {
|
|
|
+ return <span>{text}</span>
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
+ key: 'action',
|
|
|
+ render: (text, record) => {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
|
|
|
+ {/*存在支付节点时不显示第三方的申请付款*/}
|
|
|
+ {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
|
|
|
+ {
|
|
|
+ <Button disabled={
|
|
|
+ !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
|
|
|
+ } type="primary" onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ previewPayVisible: true,
|
|
|
+ previewPayInfor: record,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ 申请付款
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ <Popconfirm
|
|
|
+ title="是否删除?"
|
|
|
+ onConfirm={() => {
|
|
|
+ this.confirmDeletNew(record)
|
|
|
+ }}
|
|
|
+ okText="删除"
|
|
|
+ cancelText="不删除"
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ onClick={(e) => {
|
|
|
+ e.stopPropagation()
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ marginLeft: '10px',
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
onChange() {
|
|
|
this.setState({
|
|
|
value: e.target.value,
|