Browse Source

部门bug修复

dev01 2 years ago
parent
commit
1334715675

+ 24 - 9
js/component/manageCenter/financialManage/distribute/huiKuan.jsx

@@ -64,9 +64,9 @@ const HuiKuan = React.createClass({
         // 客户名称
         nickname: this.state.nickname,
         // 订单所属部门id
-        deps: this.state.orderBranch,
+        orderDeps: this.state.orderDeps,
         // 管理员部门id
-        adminDepId: this.state.principalList
+        adminDeps: this.state.adminDeps
       },
       success: function (data) {
         let theArr = [];
@@ -420,12 +420,13 @@ const HuiKuan = React.createClass({
     this.state.adminName = "";
     this.state.departmenttList = [];
     this.state.nickname = "";
-    this.state.principalList = [];
     this.state.payFrom = "";
     this.state.statusSearch = [];
-    this.state.orderBranch = undefined;
+    this.state.adminDeps = undefined;
+    this.state.orderDeps = undefined;
     this.state.statusSearch = [];
-    this.Cascaders.empty();
+    this.Cascaders1.empty();
+    this.Cascaders2.empty();
     this.loadData();
   },
 
@@ -746,7 +747,7 @@ const HuiKuan = React.createClass({
                 }}
               />
               <Cascaders
-                ref={node => this.Cascaders = node}
+                ref={node => this.Cascaders1 = node}
                 placeholder="订单所属部门"
                 id="id"
                 name="name"
@@ -754,7 +755,7 @@ const HuiKuan = React.createClass({
                 height={28}
                 onSel={(e) => {
                   this.setState({
-                    orderBranch: JSON.stringify(e),
+                    orderDeps: JSON.stringify(e),
                   })
                 }}
               />
@@ -774,7 +775,21 @@ const HuiKuan = React.createClass({
                 })}
               </Select> */}
 
-              <Select
+              <Cascaders
+                ref={node => this.Cascaders2 = node}
+                placeholder="负责人所属部门"
+                id="id"
+                name="name"
+                children="list"
+                height={28}
+                onSel={(e) => {
+                  this.setState({
+                    adminDeps: JSON.stringify(e),
+                  })
+                }}
+              />
+
+              {/* <Select
                 placeholder="负责人所属部门"
                 style={{ width: 150, marginRight: 10 }}
                 value={this.state.principalList}
@@ -787,7 +802,7 @@ const HuiKuan = React.createClass({
                     <Select.Option key={item.id}>{item.name}</Select.Option>
                   );
                 })}
-              </Select>
+              </Select> */}
 
               <Input
                 placeholder="付款方"

+ 6 - 3
js/component/manageCenter/project/patent/list.jsx

@@ -389,7 +389,12 @@ class List extends Component {
                     isFollow: 1,
                     aname: undefined,
                     patentNo: undefined,
-                }, () => { this.loadData(); })
+                }, () => {
+                    this.Cascaders1.empty();
+                    this.Cascaders2.empty();
+                    this.Cascaders3.empty();
+                    this.loadData();
+                })
                 // this.departmentList();
             })
         }
@@ -501,7 +506,6 @@ class List extends Component {
             "/api/admin/patentNew/exportTemplate?" +
             "sign=new_patent_template";
     }
-
     //部门
     departmentList() {
         $.ajax({
@@ -583,7 +587,6 @@ class List extends Component {
     download(fileName) {
         window.location.href = globalConfig.context + "/open/download?fileName=" + fileName
     }
-
     //获取营销管理员列表
     getAdminList(name) {
         this.setState({