|
@@ -1213,14 +1213,9 @@ const contractChange = Form.create()(
|
|
|
visitCancel() {
|
|
|
this.setState(
|
|
|
{
|
|
|
- activeKey: "a"
|
|
|
- },
|
|
|
- () => {
|
|
|
- this.setState({
|
|
|
- visible: false
|
|
|
- });
|
|
|
- }
|
|
|
- );
|
|
|
+ activeKey: "a",
|
|
|
+ visible: false
|
|
|
+ });
|
|
|
this.loadData(this.state.pageNo);
|
|
|
},
|
|
|
visitOk() {
|
|
@@ -1406,132 +1401,141 @@ const contractChange = Form.create()(
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- <Modal
|
|
|
- className="customeDetails"
|
|
|
- footer=""
|
|
|
- maskClosable={false}
|
|
|
- width="1200px"
|
|
|
- visible={this.state.visible}
|
|
|
- onOk={this.visitOk}
|
|
|
- onCancel={this.visitCancel}
|
|
|
- >
|
|
|
- <Tabs
|
|
|
- activeKey={this.state.activeKey}
|
|
|
- onChange={this.callback}
|
|
|
- type="card"
|
|
|
+ {
|
|
|
+ this.state.visible &&
|
|
|
+ <Modal
|
|
|
+ className="customeDetails"
|
|
|
+ footer=""
|
|
|
+ maskClosable={false}
|
|
|
+ width="1200px"
|
|
|
+ visible={this.state.visible}
|
|
|
+ onOk={this.visitOk}
|
|
|
+ onCancel={this.visitCancel}
|
|
|
>
|
|
|
- <TabPane tab="订单详情" key="a">
|
|
|
- <Form
|
|
|
- layout="horizontal"
|
|
|
- onSubmit={this.handleSubmit}
|
|
|
- id="demand-form"
|
|
|
- style={{ paddingBottom: "40px" }}
|
|
|
- >
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <OrderDetail
|
|
|
- domId='dindanxiangqing'
|
|
|
- orderData={this.state.orderData}
|
|
|
- getOrderLog={this.getOrderLog}
|
|
|
- dataSourceX={this.state.dataSourceX}
|
|
|
- contactList={this.state.contactList}
|
|
|
- orderNo={this.state.orderNo}
|
|
|
- totalCui={this.state.totalCui}
|
|
|
- contactListNew={this.state.contactListNew}
|
|
|
- pictureUrl={this.state.contractPictureUrl}
|
|
|
- isCaiWu={true}
|
|
|
- />
|
|
|
- </Spin>
|
|
|
- </Form>
|
|
|
- </TabPane>
|
|
|
- {tabList.map((item, index, arr) => {
|
|
|
- return (
|
|
|
- <TabPane tab={"合同变更记录" + (tabList.length - index)} key={item.id}>
|
|
|
- <ChangeDetail
|
|
|
- domId={'changeDetail' + (index + 1)}
|
|
|
- id={item.id}
|
|
|
- money={
|
|
|
- index == arr.length - 1
|
|
|
- ? this.state.orderData.totalAmount + ""
|
|
|
- : undefined
|
|
|
+ <Tabs
|
|
|
+ activeKey={this.state.activeKey}
|
|
|
+ onChange={this.callback}
|
|
|
+ type="card"
|
|
|
+ >
|
|
|
+ <TabPane tab="订单详情" key="a">
|
|
|
+ <Form
|
|
|
+ layout="horizontal"
|
|
|
+ onSubmit={this.handleSubmit}
|
|
|
+ id="demand-form"
|
|
|
+ style={{ paddingBottom: "40px" }}
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ {
|
|
|
+ this.state.activeKey == "a" &&
|
|
|
+ <OrderDetail
|
|
|
+ domId='dindanxiangqing'
|
|
|
+ orderData={this.state.orderData}
|
|
|
+ getOrderLog={this.getOrderLog}
|
|
|
+ dataSourceX={this.state.dataSourceX}
|
|
|
+ contactList={this.state.contactList}
|
|
|
+ orderNo={this.state.orderNo}
|
|
|
+ totalCui={this.state.totalCui}
|
|
|
+ contactListNew={this.state.contactListNew}
|
|
|
+ pictureUrl={this.state.contractPictureUrl}
|
|
|
+ isCaiWu={true}
|
|
|
+ />
|
|
|
}
|
|
|
- data={this.state.contractData}
|
|
|
- // loadData={this.ChangeDetail}
|
|
|
- txt={this.state.processStateText}
|
|
|
- pictureUrl={this.state.voucherUrl}
|
|
|
- contractPictureUrl={this.state.contractPictureUrl}
|
|
|
- attachment={this.state.attachment}
|
|
|
- processState={this.props.processState}
|
|
|
- loadData={this.callback}
|
|
|
- reset={this.state.visible}
|
|
|
- dataSource={this.state.dataProps}
|
|
|
- proceedsData={this.state.proceedsData}
|
|
|
- proceedsTotal={this.state.proTotal}
|
|
|
- invoiceTotal={this.state.invTotal}
|
|
|
- contactList={this.state.refundInvoice}
|
|
|
- onCancel={this.visitCancel}
|
|
|
- />
|
|
|
- </TabPane>
|
|
|
- );
|
|
|
- })}
|
|
|
- {tabList.map((item, index) => {
|
|
|
- if (item.usedOrder) {
|
|
|
+ </Spin>
|
|
|
+ </Form>
|
|
|
+ </TabPane>
|
|
|
+ {tabList.map((item, index, arr) => {
|
|
|
return (
|
|
|
- <TabPane
|
|
|
- tab={"原订单" + (tabList.length - index)}
|
|
|
- key={item.usedOrder}
|
|
|
- >
|
|
|
+ <TabPane tab={"合同变更记录" + (tabList.length - index)} key={item.id}>
|
|
|
{
|
|
|
- this.state.activeKey == item.usedOrder &&
|
|
|
- <Form
|
|
|
- layout="horizontal"
|
|
|
- onSubmit={this.handleSubmit}
|
|
|
- id="demand-form"
|
|
|
- style={{ paddingBottom: "40px" }}
|
|
|
- >
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <OrderDetail
|
|
|
- domId={'yuandingdan' + (index + 1)}
|
|
|
- orderData={this.state.primaryOrderData}
|
|
|
- getOrderLog={this.getOrderLog}
|
|
|
- dataSourceX={this.state.dataSourceX}
|
|
|
- contactList={this.state.contactList}
|
|
|
- orderNo={this.state.primaryOrderNo}
|
|
|
- totalCui={this.state.totalCui}
|
|
|
- contactListNew={this.state.contactListNew}
|
|
|
- isCaiWu={true}
|
|
|
- />
|
|
|
- </Spin>
|
|
|
- </Form>
|
|
|
+ this.state.activeKey === String(item.id) &&
|
|
|
+ <ChangeDetail
|
|
|
+ domId={'changeDetail' + (index + 1)}
|
|
|
+ id={item.id}
|
|
|
+ money={
|
|
|
+ index == arr.length - 1
|
|
|
+ ? this.state.orderData.totalAmount + ""
|
|
|
+ : undefined
|
|
|
+ }
|
|
|
+ data={this.state.contractData}
|
|
|
+ // loadData={this.ChangeDetail}
|
|
|
+ txt={this.state.processStateText}
|
|
|
+ pictureUrl={this.state.voucherUrl}
|
|
|
+ contractPictureUrl={this.state.contractPictureUrl}
|
|
|
+ attachment={this.state.attachment}
|
|
|
+ processState={this.props.processState}
|
|
|
+ loadData={this.callback}
|
|
|
+ reset={this.state.visible}
|
|
|
+ dataSource={this.state.dataProps}
|
|
|
+ proceedsData={this.state.proceedsData}
|
|
|
+ proceedsTotal={this.state.proTotal}
|
|
|
+ invoiceTotal={this.state.invTotal}
|
|
|
+ contactList={this.state.refundInvoice}
|
|
|
+ onCancel={this.visitCancel}
|
|
|
+ />
|
|
|
}
|
|
|
</TabPane>
|
|
|
);
|
|
|
- } else {
|
|
|
- return "";
|
|
|
- }
|
|
|
- })}
|
|
|
- {this.state.status === 4 && this.state.isAddition ? (
|
|
|
- this.state.type === 4 || this.state.type === 5 ? (
|
|
|
- <TabPane tab="附加订单" key="c">
|
|
|
- <OrderDetail
|
|
|
- domId='fujiadingdan'
|
|
|
- orderData={this.state.additionalOrderData}
|
|
|
- getOrderLog={this.getOrderLog}
|
|
|
- dataSourceX={this.state.dataSourceX}
|
|
|
- contactList={this.state.contactList}
|
|
|
- totalCui={this.state.totalCui}
|
|
|
- contactListNew={this.state.contactListNew}
|
|
|
- orderNo={this.state.additionalOrder}
|
|
|
- isCaiWu={true}
|
|
|
- />
|
|
|
- </TabPane>
|
|
|
+ })}
|
|
|
+ {tabList.map((item, index) => {
|
|
|
+ if (item.usedOrder) {
|
|
|
+ return (
|
|
|
+ <TabPane
|
|
|
+ tab={"原订单" + (tabList.length - index)}
|
|
|
+ key={item.usedOrder}
|
|
|
+ >
|
|
|
+ {
|
|
|
+ this.state.activeKey == item.usedOrder &&
|
|
|
+ <Form
|
|
|
+ layout="horizontal"
|
|
|
+ onSubmit={this.handleSubmit}
|
|
|
+ id="demand-form"
|
|
|
+ style={{ paddingBottom: "40px" }}
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <OrderDetail
|
|
|
+ domId={'yuandingdan' + (index + 1)}
|
|
|
+ orderData={this.state.primaryOrderData}
|
|
|
+ getOrderLog={this.getOrderLog}
|
|
|
+ dataSourceX={this.state.dataSourceX}
|
|
|
+ contactList={this.state.contactList}
|
|
|
+ orderNo={this.state.primaryOrderNo}
|
|
|
+ totalCui={this.state.totalCui}
|
|
|
+ contactListNew={this.state.contactListNew}
|
|
|
+ isCaiWu={true}
|
|
|
+ />
|
|
|
+ </Spin>
|
|
|
+ </Form>
|
|
|
+ }
|
|
|
+ </TabPane>
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ })}
|
|
|
+ {this.state.status === 4 && this.state.isAddition ? (
|
|
|
+ this.state.type === 4 || this.state.type === 5 ? (
|
|
|
+ <TabPane tab="附加订单" key="c">
|
|
|
+ <OrderDetail
|
|
|
+ domId='fujiadingdan'
|
|
|
+ orderData={this.state.additionalOrderData}
|
|
|
+ getOrderLog={this.getOrderLog}
|
|
|
+ dataSourceX={this.state.dataSourceX}
|
|
|
+ contactList={this.state.contactList}
|
|
|
+ totalCui={this.state.totalCui}
|
|
|
+ contactListNew={this.state.contactListNew}
|
|
|
+ orderNo={this.state.additionalOrder}
|
|
|
+ isCaiWu={true}
|
|
|
+ />
|
|
|
+ </TabPane>
|
|
|
+ ) : (
|
|
|
+ ""
|
|
|
+ )
|
|
|
) : (
|
|
|
""
|
|
|
- )
|
|
|
- ) : (
|
|
|
- ""
|
|
|
- )}
|
|
|
- </Tabs>
|
|
|
- </Modal>
|
|
|
+ )}
|
|
|
+ </Tabs>
|
|
|
+ </Modal>
|
|
|
+ }
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.noVisible}
|