import React, { Component } from 'react' import { Form, Spin, Table, Modal, Radio, Col, Upload, Input, Button, } from 'antd' import { getMaterialStatus, getUrgentStatus } from '@/tools' import './checkProjectStyle.less' const radioGroupStyle = { display: 'flex', flexFlow: 'row nowrap', alignItems: 'flex-start', flex: 1, } const layout = { labelCol: { span: 8, }, wrapperCol: { span: 16, }, }; const tailLayout = { wrapperCol: { offset: 8, span: 16, }, }; const radioStyle = { display: 'flex', flexFlow: 'row nowrap', } const FormItem = Form.Item class CheckProject extends Component { constructor(props) { super(props) this.state = { value: '', loading: false, previewImage: '', previewVisible: false, previewPayVisible: false, // 专利 ContactsListsNew: [ { title: '供应商名称', dataIndex: 'companyName', key: 'companyName', render: (text, record, index) => { if (text) { return {text} } }, }, { title: '单价(万元)', dataIndex: 'unitPrice', key: 'unitPrice', render: (text, record) => { if (text) { return {text} } }, }, { title: '数量', dataIndex: 'quantity', key: 'quantity', render: (text, record) => { if (text) { return {text} } }, }, { title: '总价(万元)', dataIndex: 'totalAmount', key: 'totalAmount', render: (text, record) => { if (text) { return {text} } }, }, { 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 (
) }, }, ], //付款节点表头 PayNodeTableColunms: [ { title: '供应商名称', dataIndex: 'companyName', key: 'companyName', render: (text, record, index) => { if (text) { return {text} } }, }, { title: '付款科目', dataIndex: 'dunType', key: 'dunType', render: (text, record) => { if (text) { return {text} } }, }, { title: '付款时间', dataIndex: 'partyTimes', key: 'partyTimes', render: (text, record) => { if (text) { return {text} } }, }, { title: '数量', dataIndex: 'quantity', key: 'quantity', render: (text, record) => { if (text) { return {text} } }, }, { title: '总价(万元)', dataIndex: 'totalAmount', key: 'totalAmount', render: (text, record) => { if (text) { return {text} } }, }, { title: '付款(万元)', dataIndex: 'partyAmount', key: 'partyAmount', render: (text, record) => { if (text) { return {text} } }, }, ], } } onChange() { this.setState({ value: e.target.value, }) } tableRowClickOne(record) {} //点击付款节点详情 payNodeTableRowClickOne(record) {} //第三方信息 新增支付 addOrderPayment(id) { $.ajax({ method: 'POST', dataType: 'json', crossDomain: false, url: globalConfig.context + '/api/admin/company/addOrderPayment', data: {}, }).done( function (data) { this.setState({ loading: false, }) if (!data.error.length) { message.success('保存成功!') this.noCancel() } else { message.warning(data.error[0].message) } }.bind(this) ) } handleSubmit(e){ e.preventDefault(); console.log('Success:',this.props.form); } render() { return (
*
类型:
供应商信息(外包派单,不走总部)
提示高于总部价格,费用个人承担
供应商信息(普通单)
第三方信息
付款节点
{ this.setState({ previewImage: file.url || file.thumbUrl, previewVisible: true, }) }} /> { this.setState({ previewVisible: false }) }} >
{/* 申请付款 */} { this.setState({ previewPayVisible: false }) }} >
支付供应商费用
) } } export default CheckProject