dev01 2 years ago
parent
commit
659b2e9a09

+ 51 - 123
js/component/manageCenter/order/orderNew/addService.jsx

@@ -37,7 +37,8 @@ import {
   boutique,
   ssalesType,
   qsalesType,
-} from "../../../dataDic.js";
+  cuiJieDian,
+} from "@/dataDic.js";
 import {
   splitUrl,
   getProcessStatus,
@@ -50,7 +51,6 @@ import {
   moneyVerify,
   getProcessStatusNew,
 } from "../../../tools.js";
-import { cuiJieDian } from "@/dataDic.js";
 import PicturesWall from "./changeComponent/picturesWall.js";
 import { changeType, getChangeType } from "./changeComponent/changeDetailYxgly";
 import ImgList from "../../../common/imgList";
@@ -58,6 +58,7 @@ import OrderItemStatus from "../../../common/orderItemStatus";
 import EnterpriseNameChange from "../../../common/enterpriseNameChange";
 import ProjectOperation from ".././../../common/projectOperation";
 import { instanceOf } from "prop-types";
+import UpdateSales from './updatesales';
 const Option = AutoComplete.Option;
 const confirm = Modal.confirm;
 
@@ -766,7 +767,6 @@ const NewService = Form.create()(
             key: "createDate",
           },
         ],
-
         contactList: [],
         ContactsLists: [
           {
@@ -1718,6 +1718,7 @@ const NewService = Form.create()(
             },
           },
         ],
+        updatas: {},//销售类型修改数据
       };
     },
     getpatentTypeList() {
@@ -1905,11 +1906,12 @@ const NewService = Form.create()(
       let api = this.props.userDetaile
         ? "/api/admin/newOrder/updateServiceOrderNew"
         : "/api/admin/newOrder/createOrder";
-      const { selectSales, other, channelid, channelname } = this.state
+      const { selectSales, other, channelid, channelname, userType } = this.state
       let datas = {
         uid: this.state.autoId,//用户id
         orderType: this.state.orderType,//订单类型
         salesType: selectSales,//销售类型 
+        userType: userType,//客户所属类型
       };
       if (selectSales == "3") { //传渠道编号  other里面传渠道名称
         datas = Object.assign(datas, {
@@ -2092,6 +2094,15 @@ const NewService = Form.create()(
             outsource: thisData.outsource,
             deleteSign: thisData.deleteSign,
             orderUid: thisData.uid,
+            salesType: thisData.salesType,//销售类型
+            userType: thisData.userType,//客户所属类型
+            updatas: {
+              salesType: thisData.salesType,//销售类型
+              userType: thisData.userType,//客户所属类型
+              other: thisData.other,//3渠道名 4,5描述
+            },
+            channelName: thisData.salesType == "3" ? thisData.other : "",//销售类型为渠道的时候给编辑出的渠道名称赋值
+
           });
           // 判断状态
           if (this.state.processStatus === 0) {
@@ -2858,7 +2869,7 @@ const NewService = Form.create()(
         data: state
           ? {
             name: e,
-            type: this.state.customType,
+            type: this.state.userType,
           }
           : {
             businessName: e,
@@ -3041,7 +3052,7 @@ const NewService = Form.create()(
     },
     //客户名称自动补全
     customerChange(e) {
-      if (this.state.customType) {
+      if (this.state.userType) {
         this.state.autoId = "";
         if (e.length >= 2) {
           this.supervisor(e, true);
@@ -3381,7 +3392,7 @@ const NewService = Form.create()(
           customerArr: [],
           contractType: undefined,
           bussStats: false,
-          customType: undefined,
+          userType: undefined,
           channelName: "",
           channelid: "",
           channelArr: [],
@@ -4834,10 +4845,10 @@ const NewService = Form.create()(
                         <Select
                           placeholder="请选择客户所属类型"
                           style={{ width: "200px" }}
-                          value={this.state.customType}
+                          value={this.state.userType}
                           onChange={(e) => {
                             this.setState({
-                              customType: e,
+                              userType: e,
                               customerArr: [],
                               autoId: "",
                               customerName: "",
@@ -4865,8 +4876,8 @@ const NewService = Form.create()(
                             });
                           }}
                         >
-                          {(this.state.customType == "0"
-                            ? ssalesType : this.state.customType == "1"
+                          {(this.state.userType == "0"
+                            ? ssalesType : this.state.userType == "1"
                               ? qsalesType : []).map(function (item) {
                                 return (
                                   <Select.Option key={item.value}>
@@ -4996,6 +5007,31 @@ const NewService = Form.create()(
                             <FormItem
                               className="half-item"
                               {...formItemLayout}
+                              label="销售类型"
+                            >
+                              <span>{(["私有客户", "签单客户"][this.state.userType] || " ") + "-" +
+                                ([
+                                  "电话新开发",
+                                  "电话自带资源",
+                                  "网络",
+                                  "渠道",
+                                  "转介绍",
+                                  "其他",
+                                  "高新复购",
+                                  "其他复购",
+                                ][this.state.salesType] || "")}</span>
+                              {
+                                this.state.processStatus === 0 &&
+                                <UpdateSales
+                                  orderNo={this.state.orderNo}
+                                  updatas={this.state.updatas}
+                                  onRefresh={this.loaduser.bind(this, { orderNo: this.state.orderNo })}
+                                />
+                              }
+                            </FormItem>
+                            <FormItem
+                              className="half-item"
+                              {...formItemLayout}
                               label="结算状态"
                             >
                               <span>
@@ -5021,17 +5057,7 @@ const NewService = Form.create()(
                                       this.setState({ approval: e });
                                     }}
                                   >
-                                    {/* {tepi.map(function(item) {
-                                      // if(item.key == "特批通过" || item.key == "特批驳回")
-                                      return (
-                                        <Select.Option key={item.value}>
-                                          {item.key}
-                                        </Select.Option>
-                                      );
-                                    })} */}
-                                    <Select.Option key={0}>
-                                      非特批
-                                    </Select.Option>
+                                    <Select.Option key={0}>非特批</Select.Option>
                                     <Select.Option key={1}>特批</Select.Option>
                                   </Select>
                                 </FormItem>
@@ -5071,7 +5097,7 @@ const NewService = Form.create()(
                                   label="订单部门"
                                 >
                                   <Select
-                                    placeholder="请输入订单部门"
+                                    placeholder="请选择订单部门"
                                     style={{ width: 240 }}
                                     value={this.state.organizationSearch}
                                     onChange={(e) => {
@@ -5152,7 +5178,6 @@ const NewService = Form.create()(
                                   }}
                                   style={{ width: "240px" }}
                                 />
-                                {/* <span className="mandatory">*</span> */}
                               </FormItem>
                               <FormItem
                                 className="half-item"
@@ -5170,7 +5195,6 @@ const NewService = Form.create()(
                                   }}
                                   style={{ width: "240px" }}
                                 />
-                                {/* <span className="mandatory">*</span> */}
                               </FormItem>
                               <FormItem
                                 className="half-item"
@@ -5405,17 +5429,6 @@ const NewService = Form.create()(
                                   wrapperCol={{ span: 18 }}
                                   label="合同扫描件"
                                 >
-                                  {/*<Upload*/}
-                                  {/*  className="demandDetailShow-upload"*/}
-                                  {/*  listType="picture-card"*/}
-                                  {/*  fileList={this.state.orgCodeUrl}*/}
-                                  {/*  onPreview={(file) => {*/}
-                                  {/*    this.setState({*/}
-                                  {/*      previewImage: file.url || file.thumbUrl,*/}
-                                  {/*      previewVisible: true,*/}
-                                  {/*    });*/}
-                                  {/*  }}*/}
-                                  {/*/>*/}
                                   <div
                                     style={{
                                       paddingTop: "10px",
@@ -5503,17 +5516,6 @@ const NewService = Form.create()(
                                   wrapperCol={{ span: 18 }}
                                   label="补充协议"
                                 >
-                                  {/*<Upload*/}
-                                  {/*  className="demandDetailShow-upload"*/}
-                                  {/*  listType="picture-card"*/}
-                                  {/*  fileList={this.state.replenishUrl}*/}
-                                  {/*  onPreview={(file) => {*/}
-                                  {/*    this.setState({*/}
-                                  {/*      previewImage: file.url || file.thumbUrl,*/}
-                                  {/*      previewVisibles: true,*/}
-                                  {/*    });*/}
-                                  {/*  }}*/}
-                                  {/*/>*/}
                                   <div
                                     style={{
                                       paddingTop: "10px",
@@ -5847,7 +5849,6 @@ const NewService = Form.create()(
                                   })
                                   : "无"}
                               </div>
-                              {/* <div style={{opacity:'0'}}>1213131132</div> */}
                             </div>
                             <div
                               style={{
@@ -6058,7 +6059,6 @@ const NewService = Form.create()(
                                     onChange={(e) => {
                                       this.setState({
                                         contentView: e.target.value,
-                                        // contentViewLength:this.state.contentView.length+1
                                       }, () => {
                                         if (!this.state.contentView) {
                                           this.setState({
@@ -6073,7 +6073,6 @@ const NewService = Form.create()(
                                     }}
                                     maxLength={500}
                                   >
-                                    {/* <span>{this.state.contentViewLength}</span> */}
                                   </TextArea>
                                   <div style={{ position: 'absolute', right: '20px', bottom: '-5px', zIndex: '10' }}>{this.state.contentViewLength + '/500'}</div>
                                 </Form.Item>
@@ -6140,7 +6139,6 @@ const NewService = Form.create()(
                               </div>
                             </Modal>
                           </div>
-                          {/*  */}
                           <div>
                             <span
                               style={{ marginLeft: "50px", fontSize: "20px" }}
@@ -6302,7 +6300,7 @@ const NewService = Form.create()(
                               </Form>
                             </Spin>
                           </div>
-                          {this.state.processStatus == 0 ? (
+                          {this.state.processStatus == 0 &&
                             <div
                               className="addSave"
                               style={{ marginTop: "15px" }}
@@ -6336,9 +6334,7 @@ const NewService = Form.create()(
                                 取消
                               </Button>
                             </div>
-                          ) : (
-                            ""
-                          )}
+                          }
                         </div>
                       </TabPane>
                       <TabPane tab="合同变更发起" key="2">
@@ -6373,11 +6369,7 @@ const NewService = Form.create()(
                                 {...formItemLayout}
                                 label="申请变更部门"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <span>{this.state.depName}</span>
-                                {/* ) : (
-                                  <span>{contractData.depName}</span>
-                                )} */}
                               </FormItem>
                               <FormItem
                                 className="half-item"
@@ -6393,7 +6385,6 @@ const NewService = Form.create()(
                                 wrapperCol={{ span: 18 }}
                                 label="变更类型"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <Select
                                   placeholder="选择合同变更类型"
                                   style={{ width: 200 }}
@@ -6508,7 +6499,6 @@ const NewService = Form.create()(
                                 ) : (
                                   ""
                                 )}
-                                {/* <Button type="danger" >取消本次变更</Button> */}
                               </FormItem>
                             </div>
                             <div className="clearfix">
@@ -6517,7 +6507,6 @@ const NewService = Form.create()(
                                 wrapperCol={{ span: 18 }}
                                 label="合同额(万元)"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <Input
                                   placeholder="请输入合同额"
                                   disabled={this.state.hetongFlag}
@@ -6530,9 +6519,6 @@ const NewService = Form.create()(
                                   }}
                                   style={{ width: "240px" }}
                                 />
-                                {/* ) : (
-                                  <span>{contractData.totalAmount}</span>
-                                )} */}
                               </FormItem>
                               <FormItem
                                 labelCol={{ span: 4 }}
@@ -6552,7 +6538,6 @@ const NewService = Form.create()(
                                 wrapperCol={{ span: 18 }}
                                 label="申请退款(万元)"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <Input
                                   placeholder="请输入申请退款"
                                   ref="signTotalAmount"
@@ -6565,12 +6550,8 @@ const NewService = Form.create()(
                                   }}
                                   style={{ width: "240px" }}
                                 />
-                                {/* ) : (
-                                  <span>{contractData.changeAmount}</span>
-                                )} */}
                               </FormItem>
                             </div>
-                            {/* 动态展示项目以及催款节点 */}
                             <div
                               style={{
                                 display: this.state.isCaoGao ? "block" : "none",
@@ -6637,15 +6618,6 @@ const NewService = Form.create()(
                                 <span style={{ color: "red" }}>
                                   (注:节点删除后,无论节点是否触发,均会删除,请谨慎删除!双击可修改对应金额!)
                                 </span>
-                                {/* <span
-                                style={{
-                                  display: "inline-block",
-                                  marginLeft: 10,
-                                  color: "red"
-                                }}
-                              >
-                                金额总计(万元): {this.state.totalCui}
-                              </span> */}
                                 <Button
                                   type="primary"
                                   onClick={(e) => {
@@ -6696,7 +6668,6 @@ const NewService = Form.create()(
                                 wrapperCol={{ span: 18 }}
                                 label="变更原因"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <TextArea
                                   rows={4}
                                   placeholder="请输入变更原因"
@@ -6709,9 +6680,6 @@ const NewService = Form.create()(
                                     });
                                   }}
                                 />
-                                {/* ) : (
-                                  <span>{contractData.remarks}</span>
-                                )} */}
                               </FormItem>
                             </div>
                             <div className="clearfix">
@@ -6721,7 +6689,6 @@ const NewService = Form.create()(
                                 wrapperCol={{ span: 18 }}
                                 label="备注"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <TextArea
                                   rows={4}
                                   placeholder="请输入备注"
@@ -6734,20 +6701,14 @@ const NewService = Form.create()(
                                     });
                                   }}
                                 />
-                                {/* ) : (
-                                  <span>{contractData.startRemarks}</span>
-                                )} */}
                               </FormItem>
                             </div>
-
-                            {/* ---- */}
                             <div className="clearfix">
                               <FormItem
                                 labelCol={{ span: 4 }}
                                 wrapperCol={{ span: 18 }}
                                 label="变更凭证"
                               >
-                                {/* {!this.state.mark ? ( */}
                                 <PicturesWall
                                   domId={"addService5"}
                                   fileList={this.getVoucherUrl}
@@ -6755,42 +6716,9 @@ const NewService = Form.create()(
                                   url="/api/admin/orderChange/uploadFile"
                                   sign="order_change_file"
                                 />
-                                {/* ) : (
-                                  <div>
-                                    <Upload
-                                      className="demandDetailShow-upload"
-                                      listType="picture-card"
-                                      fileList={this.state.voucherUrl}
-                                      onPreview={file => {
-                                        this.setState({
-                                          previewImage:
-                                            file.url || file.thumbUrl,
-                                          previewVisible: true
-                                        });
-                                      }}
-                                    />
-                                    <Modal
-                                      maskClosable={false}
-                                      footer={null}
-                                      visible={this.state.previewVisible}
-                                      onCancel={() => {
-                                        this.setState({
-                                          previewVisible: false
-                                        });
-                                      }}
-                                    >
-                                      <img
-                                        alt=""
-                                        style={{ width: "100%" }}
-                                        src={this.state.previewImage || ""}
-                                      />
-                                    </Modal>
-                                  </div>
-                                )} */}
                                 <p>图片建议:要清晰。</p>
                               </FormItem>
                             </div>
-                            {/* {!this.state.mark ? ( */}
                             <div className="clearfix">
                               <Button
                                 type="primary"

+ 32 - 1
js/component/manageCenter/order/orderNew/reject.jsx

@@ -41,6 +41,7 @@ import EnterpriseNameChange from "../../../common/enterpriseNameChange";
 import OrderCoor from './changeComponent/orderCoor';
 import ProjectOperation from "../../../common/projectOperation";
 import ContentUrl from './contentUrl';
+import UpdateSales from './updatesales';
 //图片组件
 const PicturesWall = React.createClass({
   getInitialState() {
@@ -853,6 +854,7 @@ const IntentionCustomer = Form.create()(
             },
           },
         ],
+        updatas: {},
       };
     },
     //删除
@@ -999,6 +1001,14 @@ const IntentionCustomer = Form.create()(
               //approval:thisdata.approval==0?thisdata.approval.toString():thisdata.approval,//特批状态
               outsource: thisdata.outsource == 0 ? "否" : "是",
               deleteSign: thisdata.deleteSign,
+              salesType: thisdata.salesType,//销售类型
+              userType: thisdata.userType,//客户所属类型
+              updatas: {
+                salesType: thisdata.salesType,//销售类型
+                userType: thisdata.userType,//客户所属类型
+                other: thisdata.other,//3渠道名 4,5描述
+              },
+              channelName: thisdata.salesType == "3" ? thisdata.other : "",//销售类型为渠道的时候给编辑出的渠道名称赋值
             });
           }
         }.bind(this),
@@ -2071,7 +2081,28 @@ const IntentionCustomer = Form.create()(
                         style={{ marginLeft: 10 }}
                         enterpriseId={this.state.orderUid} />
                     </FormItem>
-
+                    <FormItem
+                      className="half-item"
+                      {...formItemLayout}
+                      label="销售类型"
+                    >
+                      <span>{(["私有客户", "签单客户"][this.state.userType] || " ") + "-" +
+                        ([
+                          "电话新开发",
+                          "电话自带资源",
+                          "网络",
+                          "渠道",
+                          "转介绍",
+                          "其他",
+                          "高新复购",
+                          "其他复购",
+                        ][this.state.salesType] || "")}</span>
+                      <UpdateSales
+                        orderNo={this.state.orderNo}
+                        updatas={this.state.updatas}
+                        onRefresh={this.xiangqing.bind(this, this.state.orderNo)}
+                      />
+                    </FormItem>
                     <FormItem
                       className="half-item"
                       {...formItemLayout}

+ 296 - 0
js/component/manageCenter/order/orderNew/updatesales.jsx

@@ -0,0 +1,296 @@
+import React, { Component } from 'react';
+import {
+  Modal,
+  message,
+  Input,
+  Select,
+  Button,
+  Form,
+  AutoComplete,
+} from "antd";
+import $ from 'jquery/src/ajax';
+import {
+  customerType,
+  ssalesType,
+  qsalesType,
+} from "@/dataDic.js";
+
+const FormItem = Form.Item;
+const { TextArea } = Input;
+const formItemLayout = {
+  labelCol: { span: 8 },
+  wrapperCol: { span: 14 },
+};
+
+class UpdateSales extends Component {
+
+  constructor(props) {
+    super(props);
+    this.state = {
+      loading: false,
+      channelArr: [],
+      upsalesType: false,//修改销售类型弹窗
+      channelName: "",
+      datas: {},
+      channelid: '',
+      channelname: '',
+    }
+  }
+
+  // 关闭弹窗
+  close() {
+    this.setState({
+      upsalesType: false,
+      datas: {},
+      channelid: '',
+      channelname: '',
+    })
+  }
+  // 修改订单销售类型提交
+  updateSalesType() {
+    const { channelid, channelname, channelName, datas } = this.state;
+    const { orderNo, onRefresh = () => { } } = this.props;
+    if (datas.salesType == "3" && channelid == "" && !!channelName) {//渠道类型时--如果打开弹窗无更改将直接关闭不调接口
+      this.close();
+      return
+    }
+    this.setState({
+      loading: true,
+    });
+    let post = {
+      orderNo: orderNo,
+      salesType: datas.salesType,//销售类型 
+    };
+    if (datas.salesType == "3") { //传渠道编号  other里面传渠道名称
+      post = Object.assign(post, {
+        channelId: channelid,
+        other: channelname,
+      })
+    } else if (datas.salesType == "4" || datas.salesType == "5") { //4,5要传描述
+      post = Object.assign(post, {
+        other: datas.other,
+      })
+    }
+    $.ajax({
+      url: globalConfig.context + "/api/admin/newOrder/updateSalesType",
+      method: "post",
+      data: post,
+    }).done(
+      function (data) {
+        this.setState({
+          loading: false,
+        });
+        if (!data.error.length) {
+          message.success("修改成功!");
+          onRefresh();
+          this.close();
+        } else {
+          message.warning(data.error[0].message);
+        }
+      }.bind(this)
+    );
+  }
+
+  goSelect(value) {
+    let channelid;
+    let fwList = this.state.channelArr;
+    fwList.map(function (item) {
+      if (value == item.name) {
+        channelid = item.id;
+      }
+    });
+    this.setState({
+      channelname: value,
+      channelid: channelid,
+    });
+  }
+  //渠道名称自动补全
+  channelChange(e) {
+    this.setState({
+      channelName: e
+    })
+    if (e.length >= 2) {
+      this.selectChannel(e);
+    }
+  }
+  // 渠道查询
+  selectChannel(e) {
+    $.ajax({
+      method: "get",
+      dataType: "json",
+      crossDomain: false,
+      url: globalConfig.context + "/api/admin/customer/selectChannelUserList",
+      data: {
+        name: e,
+      },
+      success: function (data) {
+        let thedata = data.data;
+        if (!thedata) {
+          if (data.error && data.error.length) {
+            message.warning(data.error[0].message);
+          }
+          thedata = {};
+        }
+        this.setState({
+          channelArr: thedata,
+        });
+      }.bind(this),
+    }).always(
+      function () {
+        this.setState({
+          loading: false,
+        });
+      }.bind(this)
+    );
+  }
+  // 是否在数组中存在
+  isArray(arr, value, title) {
+    for (var i = 0; i < arr.length; i++) {
+      if (value == arr[i][title]) {
+        return true
+      }
+    }
+    return false
+  }
+  // 
+  update() {
+    const { updatas } = this.props;
+    let defaults = JSON.parse(JSON.stringify(updatas));
+    if (updatas.userType == null && updatas.salesType == null) {//无客户所属类型 无销售类型则可选取所有销售类型
+      defaults.userType = 2
+    } else {
+      if (updatas.salesType != null) {
+        this.isArray(ssalesType, updatas.salesType, "value") && (defaults.userType = 0);//有销售类型(私有客户)
+        this.isArray(qsalesType, updatas.salesType, "value") && (defaults.userType = 1);//有销售类型(以签单客户)
+      }
+    }
+    this.setState({
+      datas: defaults,
+      channelName: defaults.salesType == "3" ? defaults.other : "",//销售类型为渠道的时候给编辑出的渠道名称赋值
+      upsalesType: true,
+    })
+  }
+
+  render() {
+    const { datas } = this.state;
+    let cdataSources = this.state.channelArr || [];
+    let channeloptions = cdataSources.map((group) => (
+      <Select.Option key={group.id} value={group.name}>
+        {group.name}
+      </Select.Option>
+    ));
+    return (
+      <span style={{ marginLeft: 10 }}>
+        <Button
+          type="primary"
+          onClick={this.update.bind(this)}
+        >修改</Button>
+        {
+          this.state.upsalesType &&
+          <Modal
+            title="修改"
+            visible={this.state.upsalesType}
+            width="600px"
+            onOk={this.updateSalesType.bind(this)}
+            onCancel={this.close.bind(this)}
+          >
+            <Form>
+              {
+                datas.userType != null &&
+                <FormItem {...formItemLayout} label="客户所属类型">
+                  <Select
+                    placeholder="请选择客户所属类型"
+                    style={{ width: "200px" }}
+                    value={datas.userType.toString()}
+                    disabled={true}
+                  >
+                    {customerType.map(function (item) {
+                      return (
+                        <Select.Option key={item.value}>
+                          {item.key}
+                        </Select.Option>
+                      );
+                    })}
+                  </Select>
+                </FormItem>
+              }
+              <FormItem {...formItemLayout} label="销售类型">
+                <Select
+                  placeholder="请选择销售类型"
+                  style={{ width: "200px" }}
+                  value={datas.salesType == null ? undefined : datas.salesType.toString()}
+                  onChange={(e) => {
+                    this.setState({
+                      datas: Object.assign(datas, {
+                        salesType: e,
+                      }),
+                    });
+                  }}
+                >
+                  {(datas.userType == "0"
+                    ? ssalesType : datas.userType == "1"
+                      ? qsalesType : datas.userType == "2"
+                        ? [...ssalesType, ...qsalesType] : []).map(function (item) {
+                          return (
+                            <Select.Option key={item.value}>
+                              {item.key}
+                            </Select.Option>
+                          );
+                        })}
+                </Select>
+              </FormItem>
+              {
+                (datas.salesType == "4" || datas.salesType == "5") &&
+                <FormItem {...formItemLayout} label="描述">
+                  <TextArea
+                    placeholder="请填写描述"
+                    style={{ width: 300, height: 80 }}
+                    value={datas.other}
+                    onChange={(e) => {
+                      this.setState({
+                        datas: Object.assign(datas, {
+                          other: e.target.value,
+                        }),
+                      });
+                    }}
+                  />
+                </FormItem>
+              }
+              {
+                datas.salesType == "3" &&
+                <div className="clearfix">
+                  <FormItem {...formItemLayout} label="渠道名称">
+                    <AutoComplete
+                      className="certain-category-search"
+                      dropdownClassName="certain-category-search-dropdown"
+                      dropdownMatchSelectWidth={false}
+                      dropdownStyle={{ width: 200 }}
+                      size="large"
+                      style={{ width: "200px" }}
+                      dataSource={channeloptions}
+                      placeholder="请输入渠道关键字"
+                      value={this.state.channelName}
+                      onChange={this.channelChange.bind(this)}
+                      filterOption={true}
+                      onSelect={this.goSelect.bind(this)}
+                    >
+                      <Input />
+                    </AutoComplete>
+                    <span className="mandatory">*</span>
+                  </FormItem>
+                </div>
+              }
+            </Form>
+          </Modal>
+        }
+      </span>
+    )
+  }
+}
+export default UpdateSales;
+
+
+
+
+
+