dev01 2 years ago
parent
commit
49007ce55d
1 changed files with 4 additions and 47 deletions
  1. 4 47
      src/pages/applyDepart/enterprise.jsx

+ 4 - 47
src/pages/applyDepart/enterprise.jsx

@@ -57,6 +57,7 @@ class Enterprise extends Component {
     }
     this.getList(value);
   }
+
   getByUid(val) {
     this.setState({
       listState: "LOADING",
@@ -78,6 +79,7 @@ class Enterprise extends Component {
       }
     });
   }
+
   getList(value = this.state.value, pageNo = 1) {
     this.setState({
       listState: "LOADING",
@@ -170,11 +172,6 @@ class Enterprise extends Component {
                   arrow="right"
                   iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
                   onClick={() => {
-                    // this.setState({
-                    //   listVisible: true,
-                    //   listValue: v,
-                    // })
-                    // this.getByUid(v)
                     Taro.eventCenter.trigger("enterprise", v);
                   }}
                 />
@@ -193,7 +190,6 @@ class Enterprise extends Component {
                         listValue: v,
                       });
                       this.getByUid(v);
-                      // Taro.eventCenter.trigger('enterprise', v)
                     }}
                   />
                 </View>
@@ -244,14 +240,12 @@ class Enterprise extends Component {
                         </View>
                       </View>
                     ))}{" "}
-                    <View
-                      style={{ color: "red", width: "260px", margin: "0 auto" }}
-                    >
+                    <View style={{ color: "red", width: "260px", margin: "0 auto" }}>
                       注:请选择正确的派单编号!公出信息将统计至对应的订单中。
                     </View>
                   </View>
                 ) : (
-                  <View style={{ color: "red" }}>
+                  <View style={{ color: "red", width: "260px", margin: "0 auto" }}>
                     该企业暂无订单,无法技术公出!请联系营销员查询派单情况
                   </View>
                 )}
@@ -260,43 +254,6 @@ class Enterprise extends Component {
           ) : (
             ""
           )}
-          {this.props.type == 0
-            ? this.state.list.map((v, k) => (
-              <View key={k}>
-                <AtListItem
-                  title={v.name}
-                  arrow="right"
-                  iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
-                  onClick={() => {
-                    // this.setState({
-                    //   listVisible: true,
-                    //   listValue: v,
-                    // })
-                    // this.getByUid(v)
-                    Taro.eventCenter.trigger("enterprise", v);
-                  }}
-                />
-              </View>
-            ))
-            : !this.state.listVisible
-              ? this.state.list.map((v, k) => (
-                <View key={k}>
-                  <AtListItem
-                    title={v.name}
-                    arrow="right"
-                    iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
-                    onClick={() => {
-                      this.setState({
-                        listVisible: true,
-                        listValue: v,
-                      });
-                      this.getByUid(v);
-                      // Taro.eventCenter.trigger('enterprise', v)
-                    }}
-                  />
-                </View>
-              ))
-              : ""}
           <ListBottomStart
             state={this.state.listState}
             reload={() => {