dev01 vor 10 Monaten
Ursprung
Commit
a64c76c314

+ 551 - 0
js/component/manageCenter/financialManage/account/publicityAccount.jsx

@@ -0,0 +1,551 @@
+import React from "react";
+import $ from "jquery/src/ajax";
+import moment from "moment";
+import {
+  Button,
+  Form,
+  Input,
+  Spin,
+  Table,
+  Select,
+  message,
+  Tabs,
+  DatePicker,
+  AutoComplete,
+  Modal,
+  Tooltip,
+  Tag,
+} from "antd";
+import { ChooseList } from "../../order/orderNew/chooseList";
+import { ShowModal, getAccountName, getSecondaryAccountName, getClockState } from "../../../tools"
+import { accountType, accountStatus } from "@/dataDic";
+import ShowModalDiv from "@/showModal.jsx";
+import OrderDetail from '../../order/orderNew/changeComponent/orderDetail';
+import './index.less';
+
+const FormItem = Form.Item;
+const { RangePicker } = DatePicker;
+const { TabPane } = Tabs;
+
+const PublicityAccount = React.createClass({
+
+  getInitialState() {
+    return {
+      searchValues: {
+        allStatus: "0"
+      }, // 列表筛选条件
+      loading: false, //加载动画
+      changeList: undefined, // 更改后的表格显示数据
+      dataSource: [], // 列表数据
+      departmentArr: [], // 部门信息
+      pagination: {
+        defaultCurrent: 1,
+        defaultPageSize: 10,
+        showQuickJumper: true,
+        pageSize: 10,
+        onChange: function (page) {
+          this.loadData(page);
+        }.bind(this),
+        showTotal: function (total) {
+          return "共" + total + "条数据";
+        },
+      },
+      columns: [
+        {
+          title: "合同/客户",
+          dataIndex: "contractNo",
+          key: "contractNo",
+          width: 300,
+          render: (text, record) => {
+            return (
+              <span>
+                <span>{text}</span>
+                {" / " + record.buyerName}
+              </span>
+            );
+          },
+        },
+        {
+          title: "营销所属部门",
+          dataIndex: "depName",
+          key: "depName",
+          render: (text, record) => {
+            return (
+              <div>
+                {text}
+              </div>
+            );
+          },
+        },
+        {
+          title: "营销员",
+          dataIndex: "salesmanName",
+          key: "salesmanName",
+          render: (text, record) => {
+            return (
+              <div>
+                {text}
+              </div>
+            );
+          },
+        },
+        {
+          title: "公出/实际/超出(时)",
+          dataIndex: "maxDuration",
+          key: "maxDuration",
+          render: (text, record) => {
+            return (
+              <div>
+                {text + " / " + record.actualDuration + " / "}
+                <span style={{ color: record.exceedType == 1 && "red" }}>{record.exceedDuration}</span>
+              </div>
+            );
+          },
+        },
+        {
+          title: "合同总额/已收款(万元)",
+          dataIndex: "totalAmount",
+          key: "totalAmount",
+          render: (text, record) => {
+            return (
+              <div>
+                {text + " / " + record.settlementAmount}
+              </div>
+            );
+          },
+        },
+        {
+          title: "报销总额(元)",
+          dataIndex: "expenseAmount",
+          key: "expenseAmount",
+          render: (text, record) => {
+            return (
+              <div>
+                {text}
+              </div>
+            );
+          },
+        },
+        {
+          title: "已付成本(万元)",
+          dataIndex: "paymentAmount",
+          key: "paymentAmount",
+          render: (text, record) => {
+            return (
+              <div>
+                {text}
+              </div>
+            );
+          },
+        },
+        {
+          title: "报销人数/天数/报销次数",
+          dataIndex: "peopleCount",
+          key: "peopleCount",
+          render: (text, record) => {
+            return (
+              <div>
+                {text + " / " + record.days + " / " + record.expenseCount}
+              </div>
+            );
+          },
+        },
+        {
+          title: "报销未审核/驳回次数",
+          dataIndex: "notExamine",
+          key: "notExamine",
+          render: (text, record) => {
+            return (
+              <div>
+                {text + " / " + record.rejectCount}
+              </div>
+            );
+          },
+        },
+      ],
+    };
+  },
+
+  componentWillMount() {
+    this.departmentList();
+    this.loadData();
+  },
+
+  // 列表接口
+  loadData(pageNo) {
+    const { searchValues, pagination } = this.state;
+    this.setState({
+      loading: true,
+    });
+    let datas = Object.assign(searchValues, {
+      // pageNo: pageNo || 1,
+      // pageSize: pagination.pageSize,
+    });
+    $.ajax({
+      method: "get",
+      dataType: "json",
+      crossDomain: false,
+      url: globalConfig.context + "/api/admin/release/releaseAndExpenseCount",
+      data: datas,
+      success: function (data) {
+        ShowModal(this);
+        this.setState({
+          loading: false,
+        });
+        if (data.error && data.error.length === 0) {
+          if (data.data) {
+            pagination.current = data.data.pageNo;
+            pagination.total = data.data.totalCount;
+            if (data.data && data.data && !data.data.length) {
+              pagination.current = 0;
+              pagination.total = 0;
+            }
+            this.setState({
+              dataSource: data.data,
+              pagination: this.state.pagination,
+              pageNo: data.data.pageNo,
+              totalAmount: data.data.totalAmount,
+            });
+          }
+        } else {
+          message.warning(data.error[0].message);
+        }
+      }.bind(this),
+    }).always(
+      function () {
+        this.setState({
+          loading: false,
+        });
+      }.bind(this)
+    );
+  },
+
+  departmentList() {
+    $.ajax({
+      method: "get",
+      dataType: "json",
+      crossDomain: false,
+      url: globalConfig.context + "/api/admin/organization/selectSuperId",
+      data: {},
+      success: function (data) {
+        let thedata = data.data;
+        let theArr = [];
+        if (!thedata) {
+          if (data.error && data.error.length) {
+            message.warning(data.error[0].message);
+          }
+        } else {
+          thedata.map(function (item, index) {
+            theArr.push({
+              key: index,
+              name: item.name,
+              id: item.id
+            });
+          });
+        }
+        this.setState({
+          departmentArr: theArr
+        });
+      }.bind(this)
+    }).always(
+      function () {
+
+      }.bind(this)
+    );
+  },
+  // 搜索
+  search() {
+    this.loadData();
+  },
+  // 重置
+  reset() {
+    this.setState({
+      searchValues: {
+        allStatus: "0"
+      },
+    }, () => {
+      this.loadData();
+    })
+  },
+
+  changeList(arr) {
+    const newArr = [];
+    this.state.columns.forEach((item) => {
+      arr.forEach((val) => {
+        if (val === item.title) {
+          newArr.push(item);
+        }
+      });
+    });
+    this.setState({
+      changeList: newArr,
+    });
+  },
+  // 导出
+  export() {
+    this.setState({
+      exportExecLoading: true
+    })
+    let loading = message.loading('加载中...');
+    let data = this.state.searchValues;
+    $.ajax({
+      method: "get",
+      dataType: "json",
+      crossDomain: false,
+      url: globalConfig.context + "/api/admin/release/releaseAndExpenseCount/Export",
+      data,
+      success: function (data) {
+        if (data.error.length === 0) {
+          this.download(data.data);
+        } else {
+          message.warning(data.error[0].message);
+        }
+      }.bind(this),
+    }).always(function () {
+      loading();
+      this.setState({
+        exportExecLoading: false
+      })
+    }.bind(this));
+  },
+  // 下载
+  download(fileName) {
+    window.location.href = globalConfig.context + "/open/download?fileName=" + fileName
+  },
+  // 清理缓存
+  getCountsClear() {
+    this.setState({
+      loading: true,
+    });
+    $.ajax({
+      method: "get",
+      dataType: "json",
+      crossDomain: false,
+      url: globalConfig.context + "/api/admin/release/releaseAndExpenseCountClear",
+      data: {},
+      success: function (data) {
+        ShowModal(this);
+        this.setState({
+          loading: false,
+        });
+        if (data.error && data.error.length === 0) {
+          message.success("清除成功!")
+        } else {
+          message.warning(data.error[0].message);
+        }
+      }.bind(this),
+    }).always(
+      function () {
+        this.setState({
+          loading: false,
+        });
+      }.bind(this)
+    );
+  },
+
+  followUp(e) {
+    this.setState({
+      aname: e
+    });
+    $.ajax({
+      method: "get",
+      dataType: "json",
+      crossDomain: false,
+      url: globalConfig.context + "/api/admin/customer/listAdminByName",
+      data: {
+        adminName: 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({
+          fjlist: thedata,
+        });
+      }.bind(this),
+    }).always(
+      function () {
+        this.setState({
+          loading: false,
+        });
+      }.bind(this)
+    );
+  },
+
+  selectF(value) {
+    const { searchValues, fjlist } = this.state;
+    const newdataSources = JSON.stringify(fjlist) == "{}" ? [] : fjlist;
+    this.setState({
+      searchValues: Object.assign(searchValues, {
+        aid: newdataSources.find((item) => item.name == value).id,
+      }),
+    });
+  },
+
+  render() {
+    const { searchValues, } = this.state
+    const dataSources = this.state.fjlist || [];
+    const options = dataSources.map((group) => (
+      <Select.Option key={group.id} value={group.name}>
+        {group.name}
+      </Select.Option>
+    ));
+    return (
+      <div className="user-content">
+        <ShowModalDiv ShowModal={this.state.showModal} />
+        <div className="content-title" style={{ marginBottom: 10 }}>
+          <span style={{ fontWeight: 900, fontSize: 16 }}>公出&报销</span>
+        </div>
+        <Tabs defaultActiveKey="2" className="test">
+          <TabPane tab="搜索" key="2">
+            <div className="user-search" style={{ marginLeft: 10 }}>
+              <Input
+                placeholder="合同编号"
+                value={searchValues["contactNo"]
+                  ? searchValues["contactNo"]
+                  : ""}
+                onChange={(e) => {
+                  searchValues["contactNo"] = e.target.value;
+                  this.setState({
+                    searchValues: searchValues,
+                  });
+                }}
+              />
+              <Input
+                placeholder="客户名称"
+                value={searchValues["buyerName"]
+                  ? searchValues["buyerName"]
+                  : ""}
+                onChange={(e) => {
+                  searchValues["buyerName"] = e.target.value;
+                  this.setState({
+                    searchValues: searchValues,
+                  });
+                }}
+              />
+              <Select
+                placeholder="所属部门"
+                style={{ width: 200, marginRight: 10 }}
+                value={searchValues["depId"]
+                  ? searchValues["depId"]
+                  : undefined}
+                onChange={e => {
+                  searchValues["depId"] = e;
+                  this.setState({
+                    searchValues: searchValues,
+                  });
+                }}
+              >
+                {this.state.departmentArr.map(function (item) {
+                  return <Select.Option key={item.id}>{item.name}</Select.Option>;
+                })}
+              </Select>
+              <AutoComplete
+                className="certain-category-search"
+                dropdownClassName="certain-category-search-dropdown"
+                dropdownMatchSelectWidth={false}
+                style={{ width: 140 }}
+                dataSource={options}
+                placeholder="营销员名称"
+                value={this.state.aname}
+                onChange={this.followUp.bind(this)}
+                filterOption={true}
+                onSelect={this.selectF.bind(this)}
+              >
+                <Input />
+              </AutoComplete>
+              <Select
+                style={{ width: 140 }}
+                placeholder=""
+                value={searchValues["allStatus"]
+                  ? searchValues["allStatus"]
+                  : undefined}
+                onChange={(e) => {
+                  searchValues["allStatus"] = e;
+                  this.setState({
+                    searchValues: searchValues,
+                  });
+                }}
+              >
+                <Option value="0">全部公出</Option>
+                <Option value="1">未超出</Option>
+                <Option value="2">已超出</Option>
+              </Select>
+              <span>报销时间:</span>
+              <RangePicker
+                style={{ width: 300 }}
+                value={[
+                  searchValues.startTime ? moment(searchValues.startTime) : null,
+                  searchValues.endTime ? moment(searchValues.endTime) : null,
+                ]}
+                onChange={(data, dataString) => {
+                  this.setState({
+                    searchValues: Object.assign(searchValues, {
+                      startTime: dataString[0],
+                      endTime: dataString[1],
+                    }),
+                  });
+                }}
+              />
+              <Button
+                type="primary"
+                onClick={this.search}
+                style={{ margin: "0 10px" }}
+              >搜索</Button>
+              <Button onClick={this.reset}>重置</Button>
+              <Button
+                type="primary"
+                onClick={this.getCountsClear}
+                style={{ marginLeft: 10 }}
+              >清理缓存</Button>
+            </div>
+          </TabPane>
+          <TabPane tab="更改表格显示数据" key="1">
+            <div style={{ marginLeft: 10 }}>
+              <ChooseList
+                columns={this.state.columns}
+                changeFn={this.changeList}
+                changeList={this.state.changeList}
+                top={55}
+                margin={11}
+              />
+            </div>
+          </TabPane>
+          <TabPane tab="导出" key="3">
+            <div style={{ float: "left" }}>
+              <Button
+                type="primary"
+                loading={this.state.exportPendingLoading}
+                onClick={this.export}
+                style={{ margin: 10 }}
+              >
+                导出excel
+              </Button>
+            </div>
+          </TabPane>
+        </Tabs>
+        <div className="patent-table">
+          <Spin spinning={this.state.loading}>
+            <Table
+              bordered
+              columns={
+                this.state.changeList == undefined
+                  ? this.state.columns
+                  : this.state.changeList
+              }
+              dataSource={this.state.dataSource}
+              pagination={false}
+              size="small"
+            />
+          </Spin>
+        </div>
+      </div>
+    );
+  },
+});
+
+export default PublicityAccount;

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

@@ -334,6 +334,15 @@ class Content extends Component {
           });
         });
         break;
+      // 公出&报销
+      case "publicityAccount":
+        require.ensure([], () => {
+          const PublicityAccount = require("./account/publicityAccount").default;
+          this.setState({
+            component: <PublicityAccount />,
+          });
+        });
+        break;
       // 费用单列表
       case "accountlist":
         require.ensure([], () => {

+ 4 - 4
js/component/manageCenter/financialManage/distribute/public.less

@@ -44,10 +44,10 @@ button:focus,button:active{
 	margin-bottom: 10px;
 }
 table tr span,table tr td{
-    overflow: hidden;
-    white-space:nowrap; 
-    text-overflow:ellipsis; 
-    -o-text-overflow:ellipsis;
+    // overflow: hidden;
+    // white-space:nowrap; 
+    // text-overflow:ellipsis; 
+    // -o-text-overflow:ellipsis;
 }
 .patent-addNew {
     float: right;

+ 328 - 318
js/component/manageCenter/project/content.jsx

@@ -1,326 +1,336 @@
 import React, { Component } from 'react';
 import '../content.less';
 import LeftTab from '../leftTab';
-import {getMenu} from '../publicMenu.js'
+import { getMenu } from '../publicMenu.js'
 
 class Content extends Component {
-    constructor() {
-        super();
-        this.state = {
-            loading: false,
-            component: <div></div>,
-        };
-    }
-    componentWillMount() {
-        var ids=window.location.href.indexOf('rid=');
-        var idk=window.location.href.substr(ids+4);
-        var rid=idk.split('#');
-        let menu=getMenu(rid);
-        let curry;
-        if(menu[0].subMenus.length>0){
-        	curry=menu[0].subMenus[0].url.split('#');
-        }else{
-        	curry=menu[0].url.split('#');
-        };
-        if (window.location.hash) {
-            this.getKey(window.location.hash.substr(1));
-        } else {
-         this.getKey(curry[1]);
-        };
-    }
-    getKey(key) {
-        switch (key) {
-          //项目派单
-          case "projectAssignment":
-            require.ensure([], () => {
-              const ProjectAssignment = require("./project/projectAssignment")
-                .default;
-              this.setState({
-                component: <ProjectAssignment ApiUrl={""} />
-              });
-            });
-            break;
-          //项目查询
-          case "projectQuery":
-            require.ensure([], () => {
-              const ProjectQuery = require("./project/projectQuery")
-                .default;
-              this.setState({
-                component: <ProjectQuery ApiUrl={""} />
-              });
-            });
-            break;
-            //项目汇总表
-            case "highTech":
-                require.ensure([], () => {
-                    const ProjectQuery = require("./summary/highTech")
-                        .default;
-                    this.setState({
-                        component: <ProjectQuery ApiUrl={""} />
-                    });
-                });
-                break;
-             //项目统计
-            case "projecCount":
-                require.ensure([], () => {
-                    const ProjectQuery = require("./summary/projecCount")
-                        .default;
-                    this.setState({
-                        component: <ProjectQuery ApiUrl={""} />
-                    });
-                });
-                break;
-          //外包派单
-          case "zxsglyOutSourcingPaiDan":
-            require.ensure([], () => {
-              const ZxsglyOutSourcingPaiDan = require("./project/zxsglyOutSourcingPaiDan")
-                .default;
-              this.setState({
-                component: <ZxsglyOutSourcingPaiDan ApiUrl={""} />
-              });
-            });
-            break;
-          //外包任务派单
-          case "outsourceTaskAssignment":
-            require.ensure([], () => {
-              const OutsourceTaskAssignment = require("./project/outsourceTaskAssignment")
-                .default;
-              this.setState({
-                component: <OutsourceTaskAssignment ApiUrl={""} />
-              });
-            });
-            break;
-          //企业项目查询
-          case "enterpriseProjectQuery":
-            require.ensure([], () => {
-                const EnterpriseProjectQuery = require("./project/enterpriseProjectQuery")
-                    .default;
-                this.setState({
-                    component: <EnterpriseProjectQuery ApiUrl={""} />
-                });
-            });
-            break;
-            case "businessManagement":
-                require.ensure([], () => {
-                    const BusinessManagement = require("./task/businessManagement/index")
-                        .default;
-                    this.setState({
-                        component: <BusinessManagement ApiUrl={""} />
-                    });
-                });
-                break;
-          //任务查询
-          case "taskQuery":
-            require.ensure([], () => {
-              const TaskQuery = require("./task/taskQuery").default;
-              this.setState({
-                component: <TaskQuery ApiUrl={""} />
-              });
-            });
-            break;
-          case "taskQueryZxs":
-            require.ensure([], () => {
-              const TaskQuery = require("./task/taskQueryZxs").default;
-              this.setState({
-                component: <TaskQuery ApiUrl={""} />
-              });
-            });
-            break;
-          //任务派单
-          case "taskAssignment":
-            require.ensure([], () => {
-              const TaskAssignment = require("./task/taskAssignment")
-                .default;
-              this.setState({
-                component: <TaskAssignment ApiUrl={""} />
-              });
-            });
-            break;
-            //专利列表
-            case "patentList":
-                require.ensure([], () => {
-                    const PatentList = require("./patent/list")
-                        .default;
-                    this.setState({
-                        component: <PatentList />
-                    });
-                });
-                break;
-            //7天内提醒缴费专利列表
-            case "patentSevenList":
-                require.ensure([], () => {
-                    const PatentList = require("./patent/list")
-                        .default;
-                    this.setState({
-                        component: <PatentList status={5}/>
-                    });
-                });
-                break;
-            //15天内提醒缴费专利列表
-            case "patentFifteenList":
-                require.ensure([], () => {
-                    const PatentList = require("./patent/list")
-                        .default;
-                    this.setState({
-                        component: <PatentList status={4}/>
-                    });
-                });
-                break;
-            //30天内提醒缴费专利列表
-            case "patentThirtyList":
-                require.ensure([], () => {
-                    const PatentList = require("./patent/list")
-                        .default;
-                    this.setState({
-                        component: <PatentList status={3}/>
-                    });
-                });
-                break;
-            //60天内提醒缴费专利列表
-            case "patentSixtyList":
-                require.ensure([], () => {
-                    const PatentList = require("./patent/list")
-                        .default;
-                    this.setState({
-                        component: <PatentList status={2}/>
-                    });
-                });
-                break;
-            //90天内提醒缴费专利列表
-            case "patentNinetyList":
-                require.ensure([], () => {
-                    const PatentList = require("./patent/list")
-                        .default;
-                    this.setState({
-                        component: <PatentList status={1}/>
-                    });
-                });
-                break;
-        //专利成本审核列表(专利管理员查看)
-        case "patentCostList":
-            require.ensure([], () => {
-                const CostAuditList = require("../order/orderNew/costAuditList").default;
-                this.setState({
-                    component: <CostAuditList isPatentManager/>,
-                });
-            });
-            break;
-          //我的任务
-          case "myTask":
-            require.ensure([], () => {
-              const MyTask = require("./task/myTask").default;
-              this.setState({
-                component: <MyTask ApiUrl={""} />
-              });
-            });
-            break;
-          //我的任务
-          case "myTaskZxs":
-            require.ensure([], () => {
-              const MyTask = require("./task/myTaskZxs").default;
-              this.setState({
-                component: <MyTask ApiUrl={""} />
-              });
-            });
-            break;
-          //我的外包任务
-          case "myTaskOutsource":
-            require.ensure([], () => {
-              const MyTaskOutsource = require("./task/myTaskOutsource")
-                .default;
-              this.setState({
-                component: <MyTaskOutsource ApiUrl={""} />
-              });
-            });
-            break;
-          //我的外包任务
-          case "myTaskOutsourceZxs":
-            require.ensure([], () => {
-              const MyTaskOutsource = require("./task/myTaskOutsourceZxs")
-                .default;
-              this.setState({
-                component: <MyTaskOutsource ApiUrl={""} />
-              });
-            });
-            break;
-          //合同变更审核列表
-          case "contractChangeJsy":
-            require.ensure([], () => {
-              const ContractChangeJsy = require("./task/contractChangeJsy")
-                .default;
-              this.setState({
-                component: <ContractChangeJsy ApiUrl={""} />
-              });
-            });
-            break;
-          //合同变更审核列表
-          case "contractChangeJsjl":
-            require.ensure([], () => {
-              const ContractChangeJsjl = require("./task/contractChangeJsjl")
-                .default;
-              this.setState({
-                component: <ContractChangeJsjl ApiUrl={""} />
-              });
-            });
-            break;
-          //合同变更审核列表
-          case "contractChangeJszj":
-            require.ensure([], () => {
-              const ContractChangeJszj = require("./task/contractChangeJszj")
-                .default;
-              this.setState({
-                component: <ContractChangeJszj ApiUrl={""} />
-              });
-            });
-            break;
-            //付款申请驳回列表
-            case "payApplyReject":
-                require.ensure([], () => {
-                    const PayApplyReject = require("./task/payApplyReject/index")
-                        .default;
-                    this.setState({
-                        component: <PayApplyReject ApiUrl={""} />
-                    });
-                });
-                break;
-          //任务统计
-          case "taskCount":
-            require.ensure([], () => {
-              const TaskCount = require("./task/taskCount").default;
-              this.setState({
-                component: <TaskCount ApiUrl={""} />
-              });
-            });
-            break;
-          //我的任务统计
-          case "myTaskCount":
-            require.ensure([], () => {
-              const MyTaskCount = require("./task/myTaskCount").default;
-              this.setState({
-                component: <MyTaskCount ApiUrl={""} />
-              });
-            });
-            break;
-          default:
-            require.ensure([], () => {
-              const Module = require("../module").default;
-              this.setState({
-                component: <Module ApiUrl={""} />
-              });
-            });
-        };
-        window.location.hash = key;
-    }
-    render() {
-        return (
-            <div className="manage-content">
-                <LeftTab handlekey={this.getKey.bind(this)} />
-                <div className="content-right">
-                   {this.state.component}
-                </div>
-            </div>
-        )
-    }
+  constructor() {
+    super();
+    this.state = {
+      loading: false,
+      component: <div></div>,
+    };
+  }
+  componentWillMount() {
+    var ids = window.location.href.indexOf('rid=');
+    var idk = window.location.href.substr(ids + 4);
+    var rid = idk.split('#');
+    let menu = getMenu(rid);
+    let curry;
+    if (menu[0].subMenus.length > 0) {
+      curry = menu[0].subMenus[0].url.split('#');
+    } else {
+      curry = menu[0].url.split('#');
+    };
+    if (window.location.hash) {
+      this.getKey(window.location.hash.substr(1));
+    } else {
+      this.getKey(curry[1]);
+    };
+  }
+  getKey(key) {
+    switch (key) {
+      //项目派单
+      case "projectAssignment":
+        require.ensure([], () => {
+          const ProjectAssignment = require("./project/projectAssignment")
+            .default;
+          this.setState({
+            component: <ProjectAssignment ApiUrl={""} />
+          });
+        });
+        break;
+      //项目查询
+      case "projectQuery":
+        require.ensure([], () => {
+          const ProjectQuery = require("./project/projectQuery")
+            .default;
+          this.setState({
+            component: <ProjectQuery ApiUrl={""} />
+          });
+        });
+        break;
+      //项目汇总表
+      case "highTech":
+        require.ensure([], () => {
+          const ProjectQuery = require("./summary/highTech")
+            .default;
+          this.setState({
+            component: <ProjectQuery ApiUrl={""} />
+          });
+        });
+        break;
+      //项目统计
+      case "projecCount":
+        require.ensure([], () => {
+          const ProjectQuery = require("./summary/projecCount")
+            .default;
+          this.setState({
+            component: <ProjectQuery ApiUrl={""} />
+          });
+        });
+        break;
+      //项目数据
+      case "projecData":
+        require.ensure([], () => {
+          const ProjecData = require("./summary/projecData")
+            .default;
+          this.setState({
+            component: <ProjecData ApiUrl={""} />
+          });
+        });
+        break;
+      //外包派单
+      case "zxsglyOutSourcingPaiDan":
+        require.ensure([], () => {
+          const ZxsglyOutSourcingPaiDan = require("./project/zxsglyOutSourcingPaiDan")
+            .default;
+          this.setState({
+            component: <ZxsglyOutSourcingPaiDan ApiUrl={""} />
+          });
+        });
+        break;
+      //外包任务派单
+      case "outsourceTaskAssignment":
+        require.ensure([], () => {
+          const OutsourceTaskAssignment = require("./project/outsourceTaskAssignment")
+            .default;
+          this.setState({
+            component: <OutsourceTaskAssignment ApiUrl={""} />
+          });
+        });
+        break;
+      //企业项目查询
+      case "enterpriseProjectQuery":
+        require.ensure([], () => {
+          const EnterpriseProjectQuery = require("./project/enterpriseProjectQuery")
+            .default;
+          this.setState({
+            component: <EnterpriseProjectQuery ApiUrl={""} />
+          });
+        });
+        break;
+      case "businessManagement":
+        require.ensure([], () => {
+          const BusinessManagement = require("./task/businessManagement/index")
+            .default;
+          this.setState({
+            component: <BusinessManagement ApiUrl={""} />
+          });
+        });
+        break;
+      //任务查询
+      case "taskQuery":
+        require.ensure([], () => {
+          const TaskQuery = require("./task/taskQuery").default;
+          this.setState({
+            component: <TaskQuery ApiUrl={""} />
+          });
+        });
+        break;
+      case "taskQueryZxs":
+        require.ensure([], () => {
+          const TaskQuery = require("./task/taskQueryZxs").default;
+          this.setState({
+            component: <TaskQuery ApiUrl={""} />
+          });
+        });
+        break;
+      //任务派单
+      case "taskAssignment":
+        require.ensure([], () => {
+          const TaskAssignment = require("./task/taskAssignment")
+            .default;
+          this.setState({
+            component: <TaskAssignment ApiUrl={""} />
+          });
+        });
+        break;
+      //专利列表
+      case "patentList":
+        require.ensure([], () => {
+          const PatentList = require("./patent/list")
+            .default;
+          this.setState({
+            component: <PatentList />
+          });
+        });
+        break;
+      //7天内提醒缴费专利列表
+      case "patentSevenList":
+        require.ensure([], () => {
+          const PatentList = require("./patent/list")
+            .default;
+          this.setState({
+            component: <PatentList status={5} />
+          });
+        });
+        break;
+      //15天内提醒缴费专利列表
+      case "patentFifteenList":
+        require.ensure([], () => {
+          const PatentList = require("./patent/list")
+            .default;
+          this.setState({
+            component: <PatentList status={4} />
+          });
+        });
+        break;
+      //30天内提醒缴费专利列表
+      case "patentThirtyList":
+        require.ensure([], () => {
+          const PatentList = require("./patent/list")
+            .default;
+          this.setState({
+            component: <PatentList status={3} />
+          });
+        });
+        break;
+      //60天内提醒缴费专利列表
+      case "patentSixtyList":
+        require.ensure([], () => {
+          const PatentList = require("./patent/list")
+            .default;
+          this.setState({
+            component: <PatentList status={2} />
+          });
+        });
+        break;
+      //90天内提醒缴费专利列表
+      case "patentNinetyList":
+        require.ensure([], () => {
+          const PatentList = require("./patent/list")
+            .default;
+          this.setState({
+            component: <PatentList status={1} />
+          });
+        });
+        break;
+      //专利成本审核列表(专利管理员查看)
+      case "patentCostList":
+        require.ensure([], () => {
+          const CostAuditList = require("../order/orderNew/costAuditList").default;
+          this.setState({
+            component: <CostAuditList isPatentManager />,
+          });
+        });
+        break;
+      //我的任务
+      case "myTask":
+        require.ensure([], () => {
+          const MyTask = require("./task/myTask").default;
+          this.setState({
+            component: <MyTask ApiUrl={""} />
+          });
+        });
+        break;
+      //我的任务
+      case "myTaskZxs":
+        require.ensure([], () => {
+          const MyTask = require("./task/myTaskZxs").default;
+          this.setState({
+            component: <MyTask ApiUrl={""} />
+          });
+        });
+        break;
+      //我的外包任务
+      case "myTaskOutsource":
+        require.ensure([], () => {
+          const MyTaskOutsource = require("./task/myTaskOutsource")
+            .default;
+          this.setState({
+            component: <MyTaskOutsource ApiUrl={""} />
+          });
+        });
+        break;
+      //我的外包任务
+      case "myTaskOutsourceZxs":
+        require.ensure([], () => {
+          const MyTaskOutsource = require("./task/myTaskOutsourceZxs")
+            .default;
+          this.setState({
+            component: <MyTaskOutsource ApiUrl={""} />
+          });
+        });
+        break;
+      //合同变更审核列表
+      case "contractChangeJsy":
+        require.ensure([], () => {
+          const ContractChangeJsy = require("./task/contractChangeJsy")
+            .default;
+          this.setState({
+            component: <ContractChangeJsy ApiUrl={""} />
+          });
+        });
+        break;
+      //合同变更审核列表
+      case "contractChangeJsjl":
+        require.ensure([], () => {
+          const ContractChangeJsjl = require("./task/contractChangeJsjl")
+            .default;
+          this.setState({
+            component: <ContractChangeJsjl ApiUrl={""} />
+          });
+        });
+        break;
+      //合同变更审核列表
+      case "contractChangeJszj":
+        require.ensure([], () => {
+          const ContractChangeJszj = require("./task/contractChangeJszj")
+            .default;
+          this.setState({
+            component: <ContractChangeJszj ApiUrl={""} />
+          });
+        });
+        break;
+      //付款申请驳回列表
+      case "payApplyReject":
+        require.ensure([], () => {
+          const PayApplyReject = require("./task/payApplyReject/index")
+            .default;
+          this.setState({
+            component: <PayApplyReject ApiUrl={""} />
+          });
+        });
+        break;
+      //任务统计
+      case "taskCount":
+        require.ensure([], () => {
+          const TaskCount = require("./task/taskCount").default;
+          this.setState({
+            component: <TaskCount ApiUrl={""} />
+          });
+        });
+        break;
+      //我的任务统计
+      case "myTaskCount":
+        require.ensure([], () => {
+          const MyTaskCount = require("./task/myTaskCount").default;
+          this.setState({
+            component: <MyTaskCount ApiUrl={""} />
+          });
+        });
+        break;
+      default:
+        require.ensure([], () => {
+          const Module = require("../module").default;
+          this.setState({
+            component: <Module ApiUrl={""} />
+          });
+        });
+    };
+    window.location.hash = key;
+  }
+  render() {
+    return (
+      <div className="manage-content">
+        <LeftTab handlekey={this.getKey.bind(this)} />
+        <div className="content-right">
+          {this.state.component}
+        </div>
+      </div>
+    )
+  }
 }
 
 export default Content;

+ 0 - 0
js/component/manageCenter/project/summary/projecData.jsx


+ 22 - 21
js/component/manageCenter/topTab.jsx

@@ -909,27 +909,28 @@ const TopTab = React.createClass({
           showDesc={this.state.messageModalShow}
           closeDesc={this.closeMessageModal}
         />
-
-        <Modal
-          title="报销清单查询"
-          visible={this.state.visible}
-          onOk={() => { this.onAccount() }}
-          onCancel={() => { this.setState({ visible: false, }) }}
-          okText="确认"
-          cancelText="取消"
-          maskClosable={false}
-        >
-          <div style={{ width: "60%", margin: "40px auto" }}>
-            <Input
-              placeholder="请输入报销单编号"
-              value={this.state.checkNo}
-              onChange={(e) => {
-                this.setState({ checkNo: e.target.value });
-              }}
-            />
-          </div>
-        </Modal>
-
+        {
+          this.state.visible &&
+          <Modal
+            title="报销清单查询"
+            visible={this.state.visible}
+            onOk={() => { this.onAccount() }}
+            onCancel={() => { this.setState({ visible: false, }) }}
+            okText="确认"
+            cancelText="取消"
+            maskClosable={false}
+          >
+            <div style={{ width: "60%", margin: "40px auto" }}>
+              <Input
+                placeholder="请输入报销单编号"
+                value={this.state.checkNo}
+                onChange={(e) => {
+                  this.setState({ checkNo: e.target.value });
+                }}
+              />
+            </div>
+          </Modal>
+        }
         {
           // 报销信息详情
           this.state.detailsPup &&

+ 1 - 1
package.json

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