dev01 2 years ago
parent
commit
cbc5c7dabd

+ 7 - 5
js/component/manageCenter/order/orderNew/addService.jsx

@@ -4826,6 +4826,7 @@ const NewService = Form.create()(
       )) : '';
       let { closable } = this.state;
       let assistList = this.assistList;
+      const { addPop = "" } = this.props
       return (
         <div>
           {this.state.resVisible ? (
@@ -4846,18 +4847,17 @@ const NewService = Form.create()(
             width={!this.props.userDetaile ? "600px" : "900px"}
             title={!this.props.userDetaile ? "创建订单" : ""}
             footer=""
-            // width={1300}
             className="admin-desc-content"
           >
             <Form
               layout="horizontal"
               onSubmit={this.handleSubmit}
-              // id="demand-form"
               style={{ paddingBottom: "40px" }}
             >
               <Spin spinning={this.state.loading}>
                 <div className="clearfix">
-                  {!this.props.userDetaile ? (
+                  {
+                    addPop == "add" &&
                     <div className="clearfix">
                       <div className="clearfix">
                         <FormItem {...formItemLayout} label="订单类型">
@@ -5005,7 +5005,9 @@ const NewService = Form.create()(
                         </Button>
                       </div>
                     </div>
-                  ) : (
+                  }
+                  {
+                    addPop == "edit" &&
                     <Tabs
                       onChange={this.callback}
                       activeKey={this.state.activeKey}
@@ -7209,7 +7211,7 @@ const NewService = Form.create()(
                         ""
                       )}
                     </Tabs>
-                  )}
+                  }
                 </div>
               </Spin>
             </Form>

+ 4 - 0
js/component/manageCenter/order/orderNew/billing.jsx

@@ -1548,6 +1548,7 @@ const MyService = Form.create()(
         signBillVisible: false,
         signBillState: true,
         showDesc: true,
+        addPop: "edit"
       });
       localStorage.setItem("newData", "{}");
     },
@@ -1584,6 +1585,7 @@ const MyService = Form.create()(
     addClick() {
       this.state.userDetaile = false;
       this.setState({
+        addPop: "add",
         signBillVisible: false,
         showDesc: true,
       });
@@ -1592,6 +1594,7 @@ const MyService = Form.create()(
       this.state.userDetaile = false;
       this.state.signBillVisible = false;
       this.state.showDesc = e;
+      this.state.addPop = ""
       this.loadData(this.state.pageNo);
       // if (s) {
       //   this.loadData(this.state.pageNo);
@@ -2129,6 +2132,7 @@ const MyService = Form.create()(
               datauser={this.state.datauser}
               showDesc={this.state.showDesc}
               closeDesc={this.closeDesc}
+              addPop={this.state.addPop}
             />
 
             {this.state.avisible ? (