|
@@ -434,7 +434,6 @@ const contractChange = Form.create()(
|
|
|
addnextVisible: false
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
// 合同变更详情
|
|
|
ChangeDetail(id) {
|
|
|
let url = window.location.href.substring(7);
|
|
@@ -530,7 +529,6 @@ const contractChange = Form.create()(
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
//订单详情
|
|
|
xiangqing(orderNos) {
|
|
|
$.ajax({
|
|
@@ -573,7 +571,6 @@ const contractChange = Form.create()(
|
|
|
}.bind(this)
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
// 原订单数据
|
|
|
primaryOrder(primaryOrder) {
|
|
|
$.ajax({
|
|
@@ -598,7 +595,6 @@ const contractChange = Form.create()(
|
|
|
}.bind(this)
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
// 附加订单数据
|
|
|
additionalOrder(additionalOrder) {
|
|
|
$.ajax({
|
|
@@ -623,7 +619,6 @@ const contractChange = Form.create()(
|
|
|
}.bind(this)
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
//项目列表
|
|
|
xiangmu(orderNos) {
|
|
|
$.ajax({
|
|
@@ -714,6 +709,7 @@ const contractChange = Form.create()(
|
|
|
});
|
|
|
this.rizhi(orderNo);
|
|
|
},
|
|
|
+
|
|
|
closeOrderLog() {
|
|
|
this.setState({
|
|
|
rizhivisible: false
|
|
@@ -756,6 +752,7 @@ const contractChange = Form.create()(
|
|
|
}.bind(this)
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
jiedianNew(orderNos) {
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -1012,7 +1009,6 @@ const contractChange = Form.create()(
|
|
|
this.loadData(this.state.pageNo);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
// 获取原订单编号
|
|
|
getPrimaryOrder(value) {
|
|
|
this.setState({
|
|
@@ -1105,7 +1101,6 @@ const contractChange = Form.create()(
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
-
|
|
|
//关闭输入理由框
|
|
|
noCancel() {
|
|
|
this.setState({
|
|
@@ -1127,6 +1122,7 @@ const contractChange = Form.create()(
|
|
|
this.state.completeSearch = 0;
|
|
|
this.loadData(1);
|
|
|
},
|
|
|
+
|
|
|
outReset() {
|
|
|
this.setState({
|
|
|
companyName: "",
|
|
@@ -1138,6 +1134,7 @@ const contractChange = Form.create()(
|
|
|
pictureUrl: []
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
getOrgCodeUrl(e) {
|
|
|
this.setState({ pictureUrl: e });
|
|
|
},
|
|
@@ -1155,11 +1152,13 @@ const contractChange = Form.create()(
|
|
|
);
|
|
|
this.loadData(this.state.pageNo);
|
|
|
},
|
|
|
+
|
|
|
visitOk() {
|
|
|
this.setState({
|
|
|
visible: false
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
changeList(arr) {
|
|
|
const newArr = [];
|
|
|
this.state.columns.forEach(item => {
|
|
@@ -1173,6 +1172,7 @@ const contractChange = Form.create()(
|
|
|
changeList: newArr
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
createTabs() {
|
|
|
$.ajax({
|
|
|
url: globalConfig.context + "/api/admin/orderChange/getOrderChange",
|
|
@@ -1191,6 +1191,7 @@ const contractChange = Form.create()(
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
render() {
|
|
|
const tabList = this.state.tabList || []
|
|
|
const formItemLayout = {
|
|
@@ -1260,142 +1261,144 @@ const contractChange = Form.create()(
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- {this.state.visible ? <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"
|
|
|
- tabBarExtraContent={
|
|
|
- <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
|
|
|
- <OrderItemStatus deleteSign={this.state.deleteSign} />
|
|
|
- </div>
|
|
|
- }
|
|
|
+ {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">
|
|
|
- {this.state.activeKey === 'a' ? <div>
|
|
|
- {this.state.orderData.deleteSign === 3 ? (
|
|
|
- <AddOrders
|
|
|
- orderUid={this.state.orderUid}
|
|
|
- processStatus={0}
|
|
|
- data={this.state.orderData.orderNo}
|
|
|
- mark={this.state.buttonStatus}
|
|
|
- getPrimaryOrder={this.getPrimaryOrder}
|
|
|
- totalCui={this.state.totalCui}
|
|
|
- closeDesc={this.closeDesc}
|
|
|
- getAdditionalOrder={this.getAdditionalOrder}
|
|
|
- deleteSign={this.state.orderData.deleteSign}
|
|
|
- />
|
|
|
- ) : (
|
|
|
- <Form
|
|
|
- layout="horizontal"
|
|
|
- onSubmit={this.handleSubmit}
|
|
|
- id="demand-form"
|
|
|
- style={{ paddingBottom: "40px" }}
|
|
|
- >
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <OrderDetail
|
|
|
- domId='dindanxiangqing'
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Tabs
|
|
|
+ activeKey={this.state.activeKey}
|
|
|
+ onChange={this.callback}
|
|
|
+ type="card"
|
|
|
+ tabBarExtraContent={
|
|
|
+ <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
|
|
|
+ <OrderItemStatus deleteSign={this.state.deleteSign} />
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ >
|
|
|
+ <TabPane tab="订单详情" key="a">
|
|
|
+ {this.state.activeKey === 'a' ? <div>
|
|
|
+ {this.state.orderData.deleteSign === 3 ? (
|
|
|
+ <AddOrders
|
|
|
orderUid={this.state.orderUid}
|
|
|
- orderData={this.state.orderData}
|
|
|
- getOrderLog={this.getOrderLog}
|
|
|
- totalCui={parseFloat(this.state.totalCui)}
|
|
|
- dataSourceX={this.state.dataSourceX}
|
|
|
- contactList={this.state.contactList}
|
|
|
- contactListNew={this.state.contactListNew}
|
|
|
- orderNo={this.state.orderNo}
|
|
|
+ processStatus={0}
|
|
|
+ data={this.state.orderData.orderNo}
|
|
|
+ mark={this.state.buttonStatus}
|
|
|
+ getPrimaryOrder={this.getPrimaryOrder}
|
|
|
+ totalCui={this.state.totalCui}
|
|
|
+ closeDesc={this.closeDesc}
|
|
|
+ getAdditionalOrder={this.getAdditionalOrder}
|
|
|
+ deleteSign={this.state.orderData.deleteSign}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
- </Form>
|
|
|
- )}
|
|
|
- </div> : <div />}
|
|
|
- </TabPane>
|
|
|
- {tabList.map((item, index, arr) => {
|
|
|
- return (
|
|
|
- <TabPane tab={"合同变更记录" + (index + 1)} key={item.id}>
|
|
|
- {
|
|
|
- this.state.activeKey === String(item.id) ?
|
|
|
- (
|
|
|
- this.state.contractData.processState === 0 &&
|
|
|
- this.state.contractData.status != 5 ? (
|
|
|
- <ChangeApply
|
|
|
- orderUid={this.state.orderUid}
|
|
|
- id={Math.random()}
|
|
|
- orderData={this.state.contractData}
|
|
|
- voucherUrl={this.state.voucherUrl}
|
|
|
- onCancel={this.visitCancel}
|
|
|
- />
|
|
|
- ) : (
|
|
|
- <ChangeDetail
|
|
|
- domId={'hetongbiangenjilu' + (index + 1)}
|
|
|
+ ) : (
|
|
|
+ <Form
|
|
|
+ layout="horizontal"
|
|
|
+ onSubmit={this.handleSubmit}
|
|
|
+ id="demand-form"
|
|
|
+ style={{ paddingBottom: "40px" }}
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <OrderDetail
|
|
|
+ domId='dindanxiangqing'
|
|
|
orderUid={this.state.orderUid}
|
|
|
- id={item.id}
|
|
|
- money={
|
|
|
- index == arr.length - 1
|
|
|
- ? this.state.orderData.totalAmount + ""
|
|
|
- : undefined
|
|
|
- }
|
|
|
- visitCancel={this.visitCancel}
|
|
|
- data={this.state.contractData}
|
|
|
- pictureUrl={this.state.voucherUrl}
|
|
|
- attachment={this.state.attachment}
|
|
|
- processState={this.props.processState}
|
|
|
- dataSource={this.state.dataProps}
|
|
|
- proceedsData={this.state.proceedsData}
|
|
|
- proceedsTotal={this.state.proTotal}
|
|
|
- invoiceTotal={this.state.invTotal}
|
|
|
- contactList={this.state.refundInvoice}
|
|
|
+ orderData={this.state.orderData}
|
|
|
+ getOrderLog={this.getOrderLog}
|
|
|
+ totalCui={parseFloat(this.state.totalCui)}
|
|
|
+ dataSourceX={this.state.dataSourceX}
|
|
|
+ contactList={this.state.contactList}
|
|
|
+ contactListNew={this.state.contactListNew}
|
|
|
+ orderNo={this.state.orderNo}
|
|
|
/>
|
|
|
- )
|
|
|
- ) : <div />
|
|
|
- }
|
|
|
+ </Spin>
|
|
|
+ </Form>
|
|
|
+ )}
|
|
|
+ </div> : <div />}
|
|
|
</TabPane>
|
|
|
- );
|
|
|
- })}
|
|
|
- {tabList.map((item, index) => {
|
|
|
- if (item.usedOrder) {
|
|
|
- return (
|
|
|
- <TabPane
|
|
|
- tab={"原订单" + (index + 1)}
|
|
|
- key={item.usedOrder}
|
|
|
- >
|
|
|
- {
|
|
|
- this.state.activeKey === String(item.usedOrder) ?
|
|
|
- <Form
|
|
|
- layout="horizontal"
|
|
|
- onSubmit={this.handleSubmit}
|
|
|
- id="demand-form"
|
|
|
- style={{ paddingBottom: "40px" }}
|
|
|
- >
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <OrderDetail
|
|
|
- domId={'yuandingdan' + (index + 1)}
|
|
|
- orderUid={this.state.orderUid}
|
|
|
- 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}
|
|
|
- />
|
|
|
- </Spin>
|
|
|
- </Form> : <div />
|
|
|
- }
|
|
|
- </TabPane>
|
|
|
- );
|
|
|
- } else {
|
|
|
- return "";
|
|
|
- }
|
|
|
- })}
|
|
|
- {/* {this.state.status === 4 ? (
|
|
|
+ {tabList.map((item, index, arr) => {
|
|
|
+ return (
|
|
|
+ <TabPane tab={"合同变更记录" + (index + 1)} key={item.id}>
|
|
|
+ {
|
|
|
+ this.state.activeKey === String(item.id) ?
|
|
|
+ (
|
|
|
+ this.state.contractData.processState === 0 &&
|
|
|
+ this.state.contractData.status != 5 ? (
|
|
|
+ <ChangeApply
|
|
|
+ orderUid={this.state.orderUid}
|
|
|
+ id={Math.random()}
|
|
|
+ orderData={this.state.contractData}
|
|
|
+ voucherUrl={this.state.voucherUrl}
|
|
|
+ onCancel={this.visitCancel}
|
|
|
+ />
|
|
|
+ ) : (
|
|
|
+ <ChangeDetail
|
|
|
+ domId={'hetongbiangenjilu' + (index + 1)}
|
|
|
+ orderUid={this.state.orderUid}
|
|
|
+ id={item.id}
|
|
|
+ money={
|
|
|
+ index == arr.length - 1
|
|
|
+ ? this.state.orderData.totalAmount + ""
|
|
|
+ : undefined
|
|
|
+ }
|
|
|
+ visitCancel={this.visitCancel}
|
|
|
+ data={this.state.contractData}
|
|
|
+ pictureUrl={this.state.voucherUrl}
|
|
|
+ attachment={this.state.attachment}
|
|
|
+ processState={this.props.processState}
|
|
|
+ dataSource={this.state.dataProps}
|
|
|
+ proceedsData={this.state.proceedsData}
|
|
|
+ proceedsTotal={this.state.proTotal}
|
|
|
+ invoiceTotal={this.state.invTotal}
|
|
|
+ contactList={this.state.refundInvoice}
|
|
|
+ />
|
|
|
+ )
|
|
|
+ ) : <div />
|
|
|
+ }
|
|
|
+ </TabPane>
|
|
|
+ );
|
|
|
+ })}
|
|
|
+ {tabList.map((item, index) => {
|
|
|
+ if (item.usedOrder) {
|
|
|
+ return (
|
|
|
+ <TabPane
|
|
|
+ tab={"原订单" + (index + 1)}
|
|
|
+ key={item.usedOrder}
|
|
|
+ >
|
|
|
+ {
|
|
|
+ this.state.activeKey === String(item.usedOrder) ?
|
|
|
+ <Form
|
|
|
+ layout="horizontal"
|
|
|
+ onSubmit={this.handleSubmit}
|
|
|
+ id="demand-form"
|
|
|
+ style={{ paddingBottom: "40px" }}
|
|
|
+ >
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <OrderDetail
|
|
|
+ domId={'yuandingdan' + (index + 1)}
|
|
|
+ orderUid={this.state.orderUid}
|
|
|
+ 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}
|
|
|
+ />
|
|
|
+ </Spin>
|
|
|
+ </Form> : <div />
|
|
|
+ }
|
|
|
+ </TabPane>
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ })}
|
|
|
+ {/* {this.state.status === 4 ? (
|
|
|
<TabPane tab="原订单" key="3">
|
|
|
<Form
|
|
|
layout="horizontal"
|
|
@@ -1419,32 +1422,34 @@ const contractChange = Form.create()(
|
|
|
) : (
|
|
|
""
|
|
|
)} */}
|
|
|
- {this.state.status === 4 && this.state.isAddition ? (
|
|
|
- this.state.type === 4 || this.state.type === 5 ? (
|
|
|
- <TabPane tab="附加订单" key="c">
|
|
|
- {
|
|
|
- this.state.activeKey === "c" ?
|
|
|
- <AddOrders
|
|
|
- domId='fujiadingdan'
|
|
|
- orderUid={this.state.orderUid}
|
|
|
- processStatus={0}
|
|
|
- data={this.state.orderData.additionalOrder}
|
|
|
- mark={this.state.buttonStatusA}
|
|
|
- getPrimaryOrder={this.getPrimaryOrder}
|
|
|
- closeDesc={this.closeDesc}
|
|
|
- getAdditionalOrder={this.getAdditionalOrder}
|
|
|
- activeKey={this.state.activeKey}
|
|
|
- /> : <div />
|
|
|
- }
|
|
|
- </TabPane>
|
|
|
- ) : (
|
|
|
- ""
|
|
|
- )
|
|
|
- ) : (
|
|
|
- ""
|
|
|
- )}
|
|
|
- </Tabs>
|
|
|
- </Modal> : <div />}
|
|
|
+ {this.state.status === 4 && this.state.isAddition ? (
|
|
|
+ this.state.type === 4 || this.state.type === 5 ? (
|
|
|
+ <TabPane tab="附加订单" key="c">
|
|
|
+ {
|
|
|
+ this.state.activeKey === "c" ?
|
|
|
+ <AddOrders
|
|
|
+ domId='fujiadingdan'
|
|
|
+ orderUid={this.state.orderUid}
|
|
|
+ processStatus={0}
|
|
|
+ data={this.state.orderData.additionalOrder}
|
|
|
+ mark={this.state.buttonStatusA}
|
|
|
+ getPrimaryOrder={this.getPrimaryOrder}
|
|
|
+ closeDesc={this.closeDesc}
|
|
|
+ getAdditionalOrder={this.getAdditionalOrder}
|
|
|
+ activeKey={this.state.activeKey}
|
|
|
+ /> : <div />
|
|
|
+ }
|
|
|
+ </TabPane>
|
|
|
+ ) : (
|
|
|
+ ""
|
|
|
+ )
|
|
|
+ ) : (
|
|
|
+ ""
|
|
|
+ )}
|
|
|
+ </Tabs>
|
|
|
+ </Spin>
|
|
|
+ </Modal>
|
|
|
+ }
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.noVisible}
|