hujie123456 5 years ago
parent
commit
168f0c66ea

+ 17 - 0
js/component/manageCenter/financialManage/content.jsx

@@ -183,6 +183,23 @@ class Content extends Component {
               });
             });
             break;
+          case "shouKuanAll": //全部收款列表
+            require.ensure([], () => {
+              let Module = require("./distribute/shouKuanAll").default;
+              this.setState({
+                component: <Module />
+              });
+            });
+            break;
+          case "approvedOutsourcingAll": //全部外包收款列表
+            require.ensure([], () => {
+              let Module = require("./distribute/approvedOutsourcingAll")
+                .default;
+              this.setState({
+                component: <Module />
+              });
+            });
+            break;
           default:
             require.ensure([], () => {
               let Module = require("../module").default;

+ 57 - 11
js/component/manageCenter/financialManage/distribute/approvedOutsourcing.jsx

@@ -163,6 +163,7 @@ const approvedOutsourcing = React.createClass({
   },
   getInitialState() {
     return {
+      rotateDeg: 0,
       searchMore: true,
       assignVisibleX: false,
       assignVisibleY: false,
@@ -1374,6 +1375,44 @@ const approvedOutsourcing = React.createClass({
       // }
     }, 100);
   },
+  downImg() {
+    let num = 0;
+    for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
+      if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
+        num = i;
+      }
+    }
+    if (num == this.state.orgCodeUrl.length - 1) {
+      return message.warning("已经是最后一张了哦");
+    }
+    this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
+    this.setState({
+      previewImage: this.state.previewImage,
+      rotateDeg: 0
+    });
+  },
+  upImg() {
+    let num = 0;
+    for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
+      if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
+        num = i;
+      }
+    }
+    if (num == 0) {
+      return message.warning("已经是第一张了哦");
+    }
+    this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
+    this.setState({
+      previewImage: this.state.previewImage,
+      rotateDeg: 0
+    });
+  },
+  rotate() {
+    let rotateDeg = this.state.rotateDeg + 90;
+    this.setState({
+      rotateDeg
+    });
+  },
   render() {
     const { TextArea } = Input;
     const { RangePicker } = DatePicker;
@@ -1388,7 +1427,7 @@ const approvedOutsourcing = React.createClass({
     const rowSelection = {
       selectedRowKeys,
       onChange: this.onSelectChange,
-      hideDefaultSelections: true,
+      hideDefaultSelections: true
     };
     const jsDate = this.state.jsDate || [];
     return (
@@ -1396,7 +1435,7 @@ const approvedOutsourcing = React.createClass({
         <div className="content-title" style={{ marginBottom: 10 }}>
           <span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
         </div>
-        <Tabs defaultActiveKey="2" onChange={this.callback}>
+        <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
           <TabPane tab="更改表格显示数据" key="1">
             <div style={{ marginLeft: 10 }}>
               <ChooseList
@@ -1404,6 +1443,7 @@ const approvedOutsourcing = React.createClass({
                 changeFn={this.changeList}
                 changeList={this.state.changeList}
                 top={55}
+                margin={11}
               />
             </div>
           </TabPane>
@@ -1498,7 +1538,7 @@ const approvedOutsourcing = React.createClass({
           <TabPane tab="打印" key="3">
             <Button
               type="primary"
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.printAll}
               disabled={!this.state.dataSource.length}
             >
@@ -1507,7 +1547,7 @@ const approvedOutsourcing = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.inRecordData();
                 this.setState({
@@ -1520,7 +1560,7 @@ const approvedOutsourcing = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.waterData();
                 this.setState({
@@ -1534,7 +1574,7 @@ const approvedOutsourcing = React.createClass({
           <TabPane tab="导出Excel" key="4">
             <Button
               type="primary"
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.exportAll}
             >
               导出当前列表
@@ -1542,7 +1582,7 @@ const approvedOutsourcing = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.exportKaip}
             >
               导出所选开票详情
@@ -1550,7 +1590,7 @@ const approvedOutsourcing = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.exportWater}
             >
               导出所选收款详情流水
@@ -1560,7 +1600,7 @@ const approvedOutsourcing = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.inRecordData();
                 this.setState({
@@ -1573,7 +1613,7 @@ const approvedOutsourcing = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.waterData();
                 this.setState({
@@ -1755,9 +1795,15 @@ const approvedOutsourcing = React.createClass({
                         >
                           <img
                             alt=""
-                            style={{ width: "100%" }}
+                            style={{
+                              width: "100%",
+                              transform: `rotate(${this.state.rotateDeg}deg)`
+                            }}
                             src={this.state.previewImage || ""}
                           />
+                          <Button onClick={this.rotate}>旋转</Button>
+                          <Button onClick={this.upImg}>上一张</Button>
+                          <Button onClick={this.downImg}>下一张</Button>
                         </Modal>
                         <Button
                           style={{

File diff suppressed because it is too large
+ 2325 - 0
js/component/manageCenter/financialManage/distribute/approvedOutsourcingAll.jsx


+ 41 - 16
js/component/manageCenter/financialManage/distribute/huiKuan.jsx

@@ -305,8 +305,8 @@ const HuiKuan = React.createClass({
                 str = "金额异常";
               } else if (status.first == 4) {
                 str = "名称异常";
-              }else {
-                str = "未知异常"
+              } else if (status.first == 5) {
+                str = "已收款";
               }
             }
             return (
@@ -441,8 +441,15 @@ const HuiKuan = React.createClass({
         // console.log(this.state.modalData);
       }
     })
-    
-    
+  },
+  tableRowClick(record) {
+    this.setState({
+      visible: true,
+      choose: true
+    });
+    this.setState({
+      modalData: JSON.parse(JSON.stringify(record))
+    });
   },
 
   handleOk() {
@@ -470,6 +477,7 @@ const HuiKuan = React.createClass({
             message.warning(data.error[0].message);
           } else {
             // console.log("成功", data);
+            message.success("添加成功!")
             this.loadData();
             this.state.selectedRowKeys = [];
             this.setState({
@@ -508,6 +516,7 @@ const HuiKuan = React.createClass({
             message.warning(data.error[0].message);
           }else {
             // console.log("成功",data);
+            message.success("修改成功!")
             this.loadData()
             this.state.selectedRowKeys = [];
             this.setState({
@@ -529,7 +538,7 @@ const HuiKuan = React.createClass({
   },
 
   handleCancel() {
-    this.loadData()
+    // this.loadData()
     this.setState({ visible: false });
   },
   callback(key) {
@@ -551,6 +560,7 @@ const HuiKuan = React.createClass({
         if (data.error && data.error.length) {
           message.warning(data.error[0].message);
         }
+        message.success("删除成功!")
       }.bind(this)
     }).always(
       function() {
@@ -578,6 +588,7 @@ const HuiKuan = React.createClass({
         if (data.error && data.error.length) {
           message.warning(data.error[0].message);
         }
+        message.success("删除全部成功!")
       }.bind(this)
     }).always(
       function() {
@@ -666,7 +677,7 @@ const HuiKuan = React.createClass({
           <span style={{ fontWeight: 900, fontSize: 16 }}>批量回款</span>
         </div>
 
-        <Tabs defaultActiveKey="1" onChange={this.callback}>
+        <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
           <TabPane tab="搜索" key="1">
             <div className="user-search" style={{ marginLeft: 10 }}>
               <Input
@@ -766,6 +777,7 @@ const HuiKuan = React.createClass({
                 changeFn={this.changeList}
                 changeList={this.state.changeList}
                 top={55}
+                margin={11}
                 display={"inline-block"}
                 style={{ marginBottom: 17 }}
               />
@@ -800,7 +812,7 @@ const HuiKuan = React.createClass({
 
             <Button
               type="primary"
-              style={{ marginBottom: 20, marginLeft: 15 }}
+              style={{ marginBottom: 11, marginLeft: 25 }}
               onClick={this.download}
             >
               下载回款列表模板
@@ -816,7 +828,7 @@ const HuiKuan = React.createClass({
 
             <Button
               type="primary"
-              style={{ marginBottom: 20, marginLeft: 15 }}
+              style={{ marginBottom: 11, marginLeft: 15 }}
               disabled={this.state.selectedRowKeys.length == 1 ? false : true}
               onClick={this.showModal}
             >
@@ -825,7 +837,7 @@ const HuiKuan = React.createClass({
 
             <Button
               type="primary"
-              style={{ marginBottom: 20, marginLeft: 15 }}
+              style={{ marginBottom: 11, marginLeft: 15 }}
               onClick={this.addModal}
             >
               添加单条数据
@@ -841,7 +853,7 @@ const HuiKuan = React.createClass({
               <Button
                 primary
                 type="danger"
-                style={{ marginBottom: 20, marginLeft: 15 }}
+                style={{ marginBottom: 11, marginLeft: 15 }}
                 disabled={this.state.selectedRowKeys.length > 0 ? false : true}
               >
                 删除选中项
@@ -857,7 +869,7 @@ const HuiKuan = React.createClass({
             >
               <Button
                 type="danger"
-                style={{ marginBottom: 20, marginLeft: 15 }}
+                style={{ marginBottom: 11, marginLeft: 15 }}
                 disabled={this.state.dataSource.length == 0}
               >
                 删除全部
@@ -865,17 +877,29 @@ const HuiKuan = React.createClass({
             </Popconfirm>
             <Button
               type="danger"
-              style={{ marginBottom: 20, marginLeft: 15 }}
+              style={{ marginBottom: 11, marginLeft: 15 }}
               disabled={this.state.dataSource.length == 0}
               onClick={e => {
                 this.loadData(1, 100);
                 this.setState({
-                  mergeModal: true,
+                  mergeModal: true
                 });
               }}
             >
               确认合并回款
             </Button>
+            <Button
+              type="danger"
+              style={{ marginBottom: 11, marginLeft: 15 }}
+              disabled={this.state.dataSource.length == 0}
+              onClick={e => {
+                this.setState({
+                  selectedRowKeys: []
+                });
+              }}
+            >
+              重置选项
+            </Button>
           </TabPane>
         </Tabs>
 
@@ -891,6 +915,7 @@ const HuiKuan = React.createClass({
               dataSource={this.state.dataSource}
               pagination={this.state.pagination}
               rowSelection={rowSelection}
+              onRowDoubleClick={this.tableRowClick.bind(this)}
               bordered
               size="small"
             />
@@ -1015,7 +1040,7 @@ const HuiKuan = React.createClass({
               display: this.state.choose ? "block" : "none"
             }}
           >
-            合同额(万元):
+            合同额(万元)
             <Input
               style={{
                 width: "auto",
@@ -1031,7 +1056,7 @@ const HuiKuan = React.createClass({
             />
           </p>
           <p style={{ marginBottom: 10 }}>
-            本次回款(万元):
+            本次回款(万元)
             <Input
               style={{ width: "auto" }}
               value={this.state.modalData.amount}
@@ -1104,7 +1129,7 @@ const HuiKuan = React.createClass({
           onOk={this.mergeAll}
           onCancel={() => {
             this.setState({
-              mergeModal: false,
+              mergeModal: false
             });
           }}
         >

+ 3 - 0
js/component/manageCenter/financialManage/distribute/huiKuan.less

@@ -24,4 +24,7 @@
     position: absolute;
     left: 33%;
     bottom: 10px;
+}
+.test>.ant-tabs-bar {
+    margin-bottom: 0 !important;
 }

File diff suppressed because it is too large
+ 1384 - 0
js/component/manageCenter/financialManage/distribute/shouKuanAll.jsx


+ 10 - 9
js/component/manageCenter/financialManage/distribute/shouKuang.jsx

@@ -905,7 +905,7 @@ const ShouKuang = React.createClass({
           <span style={{ fontWeight: 900, fontSize: 16 }}>收款结算</span>
         </div>
 
-        <Tabs defaultActiveKey="2" onChange={this.callback}>
+        <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
           <TabPane tab="更改表格显示数据" key="1">
             <div style={{ marginLeft: 10 }}>
               <ChooseList
@@ -913,6 +913,7 @@ const ShouKuang = React.createClass({
                 changeFn={this.changeList}
                 changeList={this.state.changeList}
                 top={55}
+                margin={11}
               />
             </div>
           </TabPane>
@@ -1007,7 +1008,7 @@ const ShouKuang = React.createClass({
           <TabPane tab="打印" key="3">
             <Button
               type="primary"
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.printAll}
               disabled={!this.state.dataSource.length}
             >
@@ -1016,7 +1017,7 @@ const ShouKuang = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.inRecordData();
                 this.setState({
@@ -1029,7 +1030,7 @@ const ShouKuang = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.waterData();
                 this.setState({
@@ -1043,7 +1044,7 @@ const ShouKuang = React.createClass({
           <TabPane tab="导出Excel" key="4">
             <Button
               type="primary"
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.exportAll}
             >
               导出当前列表
@@ -1051,7 +1052,7 @@ const ShouKuang = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.exportKaip}
             >
               导出所选开票详情
@@ -1059,7 +1060,7 @@ const ShouKuang = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={this.exportWater}
             >
               导出所选收款详情流水
@@ -1069,7 +1070,7 @@ const ShouKuang = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.inRecordData();
                 this.setState({
@@ -1082,7 +1083,7 @@ const ShouKuang = React.createClass({
             <Button
               type="primary"
               disabled={this.state.selectedRowKeys.length != 1}
-              style={{ margin: "0px 0px 10px 10px" }}
+              style={{ margin: "11px 0px 10px 10px" }}
               onClick={() => {
                 this.waterData();
                 this.setState({

+ 1 - 1
js/component/manageCenter/financialManage/flowWater/waterDetail.jsx

@@ -85,7 +85,7 @@ const WaterDetail=React.createClass({
                                         <span>{theData.billNo}</span>
                                     </FormItem>
                                     <FormItem className="half-item" {...formItemLayout} label="财务流水时间">
-							            <span>{theData.financialPayTimes?(new Date(theData.financialPayTimes)).toLocaleString():''}</span>
+							            <span>{theData.financialPayTimes ? theData.financialPayTimes.slice(0,theData.financialPayTimes.length - 2) : ''}</span>
                                     </FormItem>
                                     <FormItem className="half-item" {...formItemLayout} label="金额(万元)">
                                         <span>{theData.transactionAmount}</span>

+ 134 - 73
js/component/manageCenter/financialManage/orderDetail/orderDetail.jsx

@@ -66,78 +66,95 @@ const OrderDetail = Form.create()(React.createClass({
     },
     getInitialState() {
         return {
-            visible: false,
-			avisible:false,
-            loading: false,
-            jsDate:[],
-            auditStatus: 0,
-            textFileList: [],
-            videoFileList: [],
-            pictureUrl: [],
-            pictureUrlMin:[],
-            columns: [
-				{
-                    title: '业务项目名称',
-                    dataIndex: 'commodityName',
-                    key: 'commodityName',
-                    render:text=>{
-                        return text&&text.length>6?<span title={text}>{text.substr(0,8)}...</span>:text
-                    }
-                }, {
-                    title: '项目类别',
-                    dataIndex: 'cname',
-                    key: 'cname'
-                },  {
-                    title: '项目数量(个)',
-                    dataIndex: 'commodityQuantity',
-                    key: 'commodityQuantity'
-                },{
-                    title: '服务市价(万元)',
-                    dataIndex: 'commodityPrice',
-                    key: 'commodityPrice'
-                }, {
-                    title: '项目状态',
-                    dataIndex: 'projectStatus',
-                    key: 'projectStatus',
-                    render:text=>{
-                        return getProjectStatus(text);
-                    }
-                }, {
-                    title: '证书编号',
-                    dataIndex: 'certificateNumber',
-                    key: 'certificateNumber'
-                }, {
-                    title: '是否主要项目',
-                    dataIndex: 'main',
-                    key: 'main',
-                    render:text=>{
-                        return text?'是':'否'
-                    }
-                },{
-                    title: '项目说明',
-                    dataIndex: 'taskComment',
-                    key: 'taskComment',
-					render:text=>{
-                        return text&&text.length>8?<span title={text}>{text.substr(0,8)}...</span>:text
-                    }
-                }
-			],
-			columnsX:[
-				{
-					title:'流程',
-					dataIndex: 'processName',
-					key: 'processName'
-				},
-				{
-					title:'操作人',
-					dataIndex: 'adminName',
-					key: 'adminName'
-				},{
-					title:'时间',
-					dataIndex: 'createDate',
-					key: 'createDate'
-				}
-			]
+          rotateDeg: 0,
+          visible: false,
+          avisible: false,
+          loading: false,
+          jsDate: [],
+          auditStatus: 0,
+          textFileList: [],
+          videoFileList: [],
+          pictureUrl: [],
+          pictureUrlMin: [],
+          columns: [
+            {
+              title: "业务项目名称",
+              dataIndex: "commodityName",
+              key: "commodityName",
+              render: text => {
+                return text && text.length > 6 ? (
+                  <span title={text}>{text.substr(0, 8)}...</span>
+                ) : (
+                  text
+                );
+              }
+            },
+            {
+              title: "项目类别",
+              dataIndex: "cname",
+              key: "cname"
+            },
+            {
+              title: "项目数量(个)",
+              dataIndex: "commodityQuantity",
+              key: "commodityQuantity"
+            },
+            {
+              title: "服务市价(万元)",
+              dataIndex: "commodityPrice",
+              key: "commodityPrice"
+            },
+            {
+              title: "项目状态",
+              dataIndex: "projectStatus",
+              key: "projectStatus",
+              render: text => {
+                return getProjectStatus(text);
+              }
+            },
+            {
+              title: "证书编号",
+              dataIndex: "certificateNumber",
+              key: "certificateNumber"
+            },
+            {
+              title: "是否主要项目",
+              dataIndex: "main",
+              key: "main",
+              render: text => {
+                return text ? "是" : "否";
+              }
+            },
+            {
+              title: "项目说明",
+              dataIndex: "taskComment",
+              key: "taskComment",
+              render: text => {
+                return text && text.length > 8 ? (
+                  <span title={text}>{text.substr(0, 8)}...</span>
+                ) : (
+                  text
+                );
+              }
+            }
+          ],
+          columnsX: [
+            {
+              title: "流程",
+              dataIndex: "processName",
+              key: "processName"
+            },
+            {
+              title: "操作人",
+              dataIndex: "adminName",
+              key: "adminName"
+            },
+            {
+              title: "时间",
+              dataIndex: "createDate",
+              key: "createDate"
+            }
+          ]
         };
     },
     loadData(record){
@@ -287,6 +304,44 @@ const OrderDetail = Form.create()(React.createClass({
             this.props.form.resetFields();
         };
     },
+  downImg() {
+    let num = 0;
+    for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
+      if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
+        num = i;
+      }
+    }
+    if (num == this.state.orgCodeUrl.length - 1) {
+      return message.warning("已经是最后一张了哦");
+    }
+    this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
+    this.setState({
+      previewImage: this.state.previewImage,
+      rotateDeg: 0
+    });
+  },
+  upImg() {
+    let num = 0;
+    for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
+      if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
+        num = i;
+      }
+    }
+    if (num == 0) {
+      return message.warning("已经是第一张了哦");
+    }
+    this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
+    this.setState({
+      previewImage: this.state.previewImage,
+      rotateDeg: 0
+    });
+  },
+  rotate() {
+    let rotateDeg = this.state.rotateDeg + 90;
+    this.setState({
+      rotateDeg
+    });
+  },
     render() {
         const theData = this.state.orderList || {};
         const FormItem = Form.Item
@@ -409,9 +464,15 @@ const OrderDetail = Form.create()(React.createClass({
                     >
                       <img
                         alt=""
-                        style={{ width: "100%" }}
+                        style={{
+                          width: "100%",
+                          transform: `rotate(${this.state.rotateDeg}deg)`
+                        }}
                         src={this.state.previewImage || ""}
                       />
+                      <Button onClick={this.rotate}>旋转</Button>
+                      <Button onClick={this.upImg}>上一张</Button>
+                      <Button onClick={this.downImg}>下一张</Button>
                     </Modal>
                     <Button
                       style={{

+ 1 - 1
js/component/manageCenter/order/orderNew/chooseList.jsx

@@ -158,7 +158,7 @@ class ChooseList extends Component {
     return (
       // style={{ position: "absolute", right: "187px", top: this.props.top }}
       <div style={{ display: this.props.display }}>
-        <Button type="primary" onClick={this.showModal} style={{ marginBottom: 10 }}>
+        <Button type="primary" onClick={this.showModal} style={{ marginBottom: 10, marginTop: this.props.margin }}>
           更改表格显示数据
         </Button>
         <Modal

+ 2 - 1
js/component/manageCenter/project/task/myTaskOutsource.jsx

@@ -850,7 +850,8 @@ const MyTaskOutsource = React.createClass({
     this.setState({
       visible: false,
       speVisible: false,
-      modKey: "1"
+      modKey: "1",
+      updataSwicth: false
     });
     this.companyReset();
     this.reset();

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "afanti",
-  "version": "1.1.23",
+  "version": "1.1.24",
   "description": "",
   "main": "index.js",
   "scripts": {