|
@@ -38,6 +38,7 @@ import './customer.less';
|
|
|
import { ChooseList } from "../orderNew/chooseList";
|
|
|
import ShowModalDiv from "@/showModal.jsx";
|
|
|
import Project from "../../../../component/project";
|
|
|
+import ImgList from "../../../common/imgList";
|
|
|
const { TabPane } = Tabs;
|
|
|
const { TextArea } = Input;
|
|
|
//图片组件
|
|
@@ -73,39 +74,23 @@ const PicturesWall = React.createClass({
|
|
|
},
|
|
|
render() {
|
|
|
const {
|
|
|
- previewVisible,
|
|
|
- previewImage,
|
|
|
fileList
|
|
|
} = this.state;
|
|
|
- const uploadButton = (
|
|
|
- <div>
|
|
|
- <Icon type="plus" />
|
|
|
- <div className="ant-upload-text">点击上传</div>
|
|
|
- </div>
|
|
|
- );
|
|
|
return (
|
|
|
<div style={{ display: "inline-block" }}>
|
|
|
- <Upload
|
|
|
- action={
|
|
|
- globalConfig.context + "/api/admin/customer/uploadCustomerImg"
|
|
|
- }
|
|
|
- data={{ sign: "" }}
|
|
|
- listType="picture-card"
|
|
|
- fileList={fileList}
|
|
|
- multiple
|
|
|
- onPreview={this.handlePreview}
|
|
|
- onChange={this.handleChange}
|
|
|
- >
|
|
|
- {uploadButton}
|
|
|
- </Upload>
|
|
|
- <Modal
|
|
|
- maskClosable={false}
|
|
|
- visible={previewVisible}
|
|
|
- footer={null}
|
|
|
- onCancel={this.handleCancel}
|
|
|
- >
|
|
|
- <img alt="example" style={{ width: "100%" }} src={previewImage} />
|
|
|
- </Modal>
|
|
|
+ <ImgList
|
|
|
+ domId={this.props.domId}
|
|
|
+ uploadConfig={{
|
|
|
+ action:globalConfig.context + "/api/admin/customer/uploadCustomerImg",
|
|
|
+ data:{ 'sign': '' },
|
|
|
+ multiple:true,
|
|
|
+ listType:"picture-card",
|
|
|
+ }}
|
|
|
+ onChange={(infor)=>{
|
|
|
+ this.handleChange(infor)
|
|
|
+ }}
|
|
|
+ fileList={fileList}
|
|
|
+ />
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
@@ -2275,7 +2260,7 @@ const IntentionCustomer = Form.create()(
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- <Modal
|
|
|
+ {this.state.visible ? <Modal
|
|
|
className="customeDetails"
|
|
|
footer=""
|
|
|
title="订单详情"
|
|
@@ -2420,6 +2405,7 @@ const IntentionCustomer = Form.create()(
|
|
|
}
|
|
|
>
|
|
|
<PicturesWall
|
|
|
+ domId={'approveds1'}
|
|
|
fileList={this.getOrgCodeUrl}
|
|
|
pictureUrl={this.state.orgCodeUrl}
|
|
|
/>
|
|
@@ -2445,6 +2431,7 @@ const IntentionCustomer = Form.create()(
|
|
|
}
|
|
|
>
|
|
|
<PicturesWall
|
|
|
+ domId={'approveds2'}
|
|
|
fileList={this.getReplenishUrl}
|
|
|
pictureUrl={this.state.replenishUrl}
|
|
|
url="/api/admin/order/uploadOrderImg"
|
|
@@ -2588,7 +2575,7 @@ const IntentionCustomer = Form.create()(
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Form>
|
|
|
- </Modal>
|
|
|
+ </Modal> : <div/>}
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.addnextVisible}
|