dev01 1 year ago
parent
commit
2a01448e06
1 changed files with 35 additions and 23 deletions
  1. 35 23
      js/component/manageCenter/project/task/myTask.jsx

+ 35 - 23
js/component/manageCenter/project/task/myTask.jsx

@@ -1881,30 +1881,42 @@ const Task = React.createClass({
   },
   //导出
   exportExec() {
-    let departmentName = '',
-      depart = this.state.departmentArr || []
-    depart.map((item) => {
-      if (this.state.departmentId == item.id) {
-        departmentName = item.name
-        return
-      }
-    })
-    // 导出
-    let categoryName = '',
-      category = this.state.categoryArr || []
-    category.map((item) => {
-      if (this.state.categoryId == item.id) {
-        categoryName = item.name
-        return
-      }
-    })
+    // let departmentName = '',
+    //   depart = this.state.departmentArr || []
+    // depart.map((item) => {
+    //   if (this.state.departmentId == item.id) {
+    //     departmentName = item.name
+    //     return
+    //   }
+    // })
+    // // 导出
+    // let categoryName = '',
+    //   category = this.state.categoryArr || []
+    // category.map((item) => {
+    //   if (this.state.categoryId == item.id) {
+    //     categoryName = item.name
+    //     return
+    //   }
+    // })
     let data = {
-      departmentId: this.state.departmentId,
-      departmentName: departmentName,
-      salesName: this.state.orderRefundSearch, //订单负责人
-      startTime: this.state.releaseDate[0],
-      endTime: this.state.releaseDate[1],
-      grantStatus: this.state.grantStatus,
+      orderNo: this.state.orderNoSearch, //订单编号
+      contractNo: this.state.contractNoSearch, //合同编号
+      name: this.state.nameSearch, //客户名称
+      taskId: this.state.taskNoSearch, //项目编号
+      cid: this.state.category,//项目分类
+      deps: this.state.departmenttSearch, //订单部门
+      taskStatus: this.state.taskStatuSearch, //项目状态
+      approval: this.state.approvalSearch, //特批状态搜索
+      outsourceStatus:
+        this.state.outsourceStatusSearch >= 999
+          ? undefined
+          : this.state.outsourceStatusSearch, //外包状态搜索
+      projectName: this.state.projectName, // 项目名称
+    }
+    for (let key in data) {
+      if (!data[key]) {
+        delete data[key]
+      }
     }
     window.location.href =
       globalConfig.context +