dev01 2 years ago
parent
commit
bbe6d4e2bd

+ 30 - 29
js/component/manageCenter/financialManage/distribute/invoiceApplyListWai.jsx

@@ -155,10 +155,10 @@ const invoiceApplyListWai = React.createClass({
           recipientAddress: thisdata.recipientAddress,
           orgCodeUrl: thisdata.voucherUrl
             ? splitUrl(
-                thisdata.voucherUrl,
-                ",",
-                globalConfig.avatarHost + "/upload"
-              )
+              thisdata.voucherUrl,
+              ",",
+              globalConfig.avatarHost + "/upload"
+            )
             : [],
         });
       }.bind(this),
@@ -424,6 +424,9 @@ const invoiceApplyListWai = React.createClass({
     });
     if (this.state.examine === 3 && this.state.reason === "") {
       message.warning("拒绝理由不能为空!");
+      this.setState({
+        loading: false,
+      })
       return;
     }
     $.ajax({
@@ -436,7 +439,7 @@ const invoiceApplyListWai = React.createClass({
         examine: this.state.examine,
         reason: this.state.reason,
       },
-      success: function () {}.bind(this),
+      success: function () { }.bind(this),
     }).done(
       function () {
         this.setState({
@@ -677,29 +680,27 @@ const invoiceApplyListWai = React.createClass({
           width="400px"
           onCancel={this.rejectCancels}
         >
-          <Spin spinning={this.state.Loading}>
-            <Input.TextArea
-              placeholder="请输入拒绝理由"
-              rows={4}
-              value={this.state.reason}
-              onChange={(e) => {
-                this.setState({ reason: e.target.value });
+          <Input.TextArea
+            placeholder="请输入拒绝理由"
+            rows={4}
+            value={this.state.reason}
+            onChange={(e) => {
+              this.setState({ reason: e.target.value });
+            }}
+          />
+          <div className="clearfix" style={{ marginTop: "20px" }}>
+            <Button
+              loading={this.state.loading}
+              type="primary"
+              onClick={(e) => {
+                e.stopPropagation();
+                this.commit();
               }}
-            />
-            <div className="clearfix" style={{ marginTop: "20px" }}>
-              <Button
-                loading={this.state.loading}
-                type="primary"
-                onClick={(e) => {
-                  e.stopPropagation();
-                  this.commit();
-                }}
-                style={{ float: "right" }}
-              >
-                提交
-              </Button>
-            </div>
-          </Spin>
+              style={{ float: "right" }}
+            >
+              提交
+            </Button>
+          </div>
         </Modal>
         <Modal
           className="admin-desc-content"
@@ -781,8 +782,8 @@ const invoiceApplyListWai = React.createClass({
                       {this.state.invoiceType === 0
                         ? "增值税专用发票"
                         : this.state.invoiceType === 1
-                        ? "增值税普通发票"
-                        : "其他"}
+                          ? "增值税普通发票"
+                          : "其他"}
                     </span>
                   </FormItem>
                 </div>