|
@@ -33,6 +33,7 @@ import {
|
|
|
const FormItem =Form.Item;
|
|
|
const {TabPane} = Tabs
|
|
|
import ShowModalDiv from "@/showModal.jsx";
|
|
|
+import ImgList from "../../../common/imgList";
|
|
|
|
|
|
const Task = React.createClass({
|
|
|
loadData(pageNo) {
|
|
@@ -1093,7 +1094,7 @@ const Task = React.createClass({
|
|
|
specially={0}
|
|
|
roleName={this.state.nub}
|
|
|
/>
|
|
|
- <Modal
|
|
|
+ {this.state.visible ? <Modal
|
|
|
className="customeDetails"
|
|
|
footer=""
|
|
|
title=""
|
|
@@ -1104,7 +1105,7 @@ const Task = React.createClass({
|
|
|
>
|
|
|
<Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
|
|
|
<TabPane tab="项目概况" key="1">
|
|
|
- <Form
|
|
|
+ {this.state.activeKey === "1" ? <Form
|
|
|
layout="horizontal"
|
|
|
onSubmit={this.handleSubmit}
|
|
|
id="demand-form"
|
|
@@ -1342,7 +1343,7 @@ const Task = React.createClass({
|
|
|
className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label=""
|
|
|
- ></FormItem>
|
|
|
+ />
|
|
|
<FormItem className="half-item" {...formItemLayout}>
|
|
|
<span style={{ paddingLeft: "12em" }}>
|
|
|
{this.state.postalAddress}
|
|
@@ -1530,17 +1531,20 @@ const Task = React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="附件"
|
|
|
>
|
|
|
- <Upload
|
|
|
- className="demandDetailShow-upload"
|
|
|
- listType="picture-card"
|
|
|
- fileList={this.state.attachmentUrl}
|
|
|
- onPreview={(file) => {
|
|
|
- this.setState({
|
|
|
- previewImage: file.url || file.thumbUrl,
|
|
|
- previewVisible: true,
|
|
|
- });
|
|
|
- }}
|
|
|
- ></Upload>
|
|
|
+ {/*<Upload*/}
|
|
|
+ {/* className="demandDetailShow-upload"*/}
|
|
|
+ {/* listType="picture-card"*/}
|
|
|
+ {/* fileList={this.state.attachmentUrl}*/}
|
|
|
+ {/* onPreview={(file) => {*/}
|
|
|
+ {/* this.setState({*/}
|
|
|
+ {/* previewImage: file.url || file.thumbUrl,*/}
|
|
|
+ {/* previewVisible: true,*/}
|
|
|
+ {/* });*/}
|
|
|
+ {/* }}*/}
|
|
|
+ {/*/>*/}
|
|
|
+ {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
+ <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'}/>
|
|
|
+ </div> : <div/>}
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
footer={null}
|
|
@@ -1598,11 +1602,11 @@ const Task = React.createClass({
|
|
|
</div>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
+ </Form> : <div/>}
|
|
|
</TabPane>
|
|
|
{!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
|
|
|
<TabPane tab="订单详情" key="2">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
+ {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
|
|
|
<OrderDetail
|
|
|
orderData={this.state.orderData}
|
|
|
getOrderLog={this.getOrderLog}
|
|
@@ -1613,13 +1617,13 @@ const Task = React.createClass({
|
|
|
contactListNew={this.state.jiedianNew}
|
|
|
pictureUrl={this.state.contractPictureUrl}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
+ </Spin> : <div/>}
|
|
|
</TabPane>
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
</Tabs>
|
|
|
- </Modal>
|
|
|
+ </Modal> : <div/>}
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.addnextVisible}
|
|
@@ -1686,7 +1690,7 @@ const Task = React.createClass({
|
|
|
</Spin>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
- <Modal
|
|
|
+ {this.state.speVisible ? <Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.speVisible}
|
|
|
onOk={this.visitOk}
|
|
@@ -1698,6 +1702,8 @@ const Task = React.createClass({
|
|
|
>
|
|
|
<Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
|
|
|
<TabPane tab="项目概况" key="1">
|
|
|
+ {this.state.activeKey === "1" ?
|
|
|
+ <div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -1892,7 +1898,7 @@ const Task = React.createClass({
|
|
|
className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label=""
|
|
|
- ></FormItem>
|
|
|
+ />
|
|
|
<FormItem className="half-item" {...formItemLayout} label="">
|
|
|
<span style={{ paddingLeft: "12em" }}>
|
|
|
{this.state.postalAddress}
|
|
@@ -1939,17 +1945,20 @@ const Task = React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="附件"
|
|
|
>
|
|
|
- <Upload
|
|
|
- className="demandDetailShow-upload"
|
|
|
- listType="picture-card"
|
|
|
- fileList={this.state.attachmentUrl}
|
|
|
- onPreview={(file) => {
|
|
|
- this.setState({
|
|
|
- previewImage: file.url || file.thumbUrl,
|
|
|
- previewVisible: true,
|
|
|
- });
|
|
|
- }}
|
|
|
- ></Upload>
|
|
|
+ {/*<Upload*/}
|
|
|
+ {/* className="demandDetailShow-upload"*/}
|
|
|
+ {/* listType="picture-card"*/}
|
|
|
+ {/* fileList={this.state.attachmentUrl}*/}
|
|
|
+ {/* onPreview={(file) => {*/}
|
|
|
+ {/* this.setState({*/}
|
|
|
+ {/* previewImage: file.url || file.thumbUrl,*/}
|
|
|
+ {/* previewVisible: true,*/}
|
|
|
+ {/* });*/}
|
|
|
+ {/* }}*/}
|
|
|
+ {/*/>*/}
|
|
|
+ {this.state.speVisible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
+ <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'}/>
|
|
|
+ </div> : <div/>}
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
footer={null}
|
|
@@ -2054,10 +2063,11 @@ const Task = React.createClass({
|
|
|
</Spin>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>:<div/>}
|
|
|
</TabPane>
|
|
|
{!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
|
|
|
<TabPane tab="订单详情" key="2">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
+ {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
|
|
|
<OrderDetail
|
|
|
orderData={this.state.orderData}
|
|
|
getOrderLog={this.getOrderLog}
|
|
@@ -2068,13 +2078,13 @@ const Task = React.createClass({
|
|
|
contactListNew={this.state.jiedianNew}
|
|
|
pictureUrl={this.state.contractPictureUrl}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
+ </Spin> : <div/>}
|
|
|
</TabPane>
|
|
|
) : (
|
|
|
""
|
|
|
)}
|
|
|
</Tabs>
|
|
|
- </Modal>
|
|
|
+ </Modal> : <div/>}
|
|
|
<Modal
|
|
|
width="800px"
|
|
|
visible={this.state.visibleA}
|