dev01 2 年之前
父节点
当前提交
6610dd4d46

+ 0 - 71
js/component/manageCenter/financialManage/distribute/projectvipall.jsx

@@ -326,48 +326,6 @@ const ProjectVipAll = React.createClass({
       this.loadData();
     })
   },
-  // 点击审核
-  checkRemark(record, nmb) {
-    this.setState({
-      checkVisible: true,
-      checkId: record.id,
-      result: nmb
-    });
-  },
-  // 审核
-  toExamine() {
-    if (!this.state.checkData) {
-      message.warning("请填写审核说明~");
-      return;
-    }
-    this.setState({
-      loading: true,
-    });
-    $.ajax({
-      method: "POST",
-      dataType: "json",
-      crossDomain: false,
-      url: globalConfig.context + "/api/admin/orderProject/examineMemberProject",
-      data: {
-        id: this.state.checkId,
-        remarks: this.state.content,
-        result: this.state.result, //1同意 0驳回
-        type: 0, //0财务审核  1特批审核
-      },
-    }).done(
-      function (data) {
-        if (!data.error.length) {
-          message.success("审核成功!");
-          this.setState({
-            loading: false,
-          });
-          this.loadData()
-        } else {
-          message.warning(data.error[0].message);
-        }
-      }.bind(this)
-    );
-  },
   // 更改表格显示数据
   changeList(arr) {
     const newArr = [];
@@ -769,35 +727,6 @@ const ProjectVipAll = React.createClass({
             />
           </Modal>
         }
-        {
-          //审核弹窗
-          this.state.checkVisible &&
-          <Modal
-            maskClosable={false}
-            title="审核订单"
-            confirmLoading={this.state.loading}
-            visible={this.state.checkVisible}
-            onOk={this.toExamine}
-            okText={this.state.result == 1 ? "通过" : this.state.result == 0 && "驳回"}
-            onCancel={() => {
-              this.loadData()
-              this.setState({
-                checkVisible: false,
-                checkData: '',
-              })
-            }}
-          >
-            <TextArea
-              value={this.state.checkData}
-              onChange={(e) => {
-                this.setState({
-                  checkData: e.target.value,
-                })
-              }}
-              placeholder="请填写审核内容"
-            />
-          </Modal>
-        }
       </div>
     );
   },

+ 1 - 1
js/component/manageCenter/order/orderNew/approvedvipproject.jsx

@@ -387,7 +387,7 @@ const ApprovedVipProject = React.createClass({
       url: globalConfig.context + "/api/admin/orderProject/examineMemberProject",
       data: {
         id: this.state.checkId,
-        remarks: this.state.content,
+        remarks: this.state.checkData,
         result: this.state.result, //1同意 0驳回
         type: 1, //0财务审核  1特批审核
       },

+ 0 - 29
js/component/manageCenter/order/orderNew/myprojectvip.jsx

@@ -764,35 +764,6 @@ const MyProjectVip = React.createClass({
           </Modal>
         }
         {
-          //审核弹窗
-          this.state.checkVisible &&
-          <Modal
-            maskClosable={false}
-            title="审核订单"
-            confirmLoading={this.state.loading}
-            visible={this.state.checkVisible}
-            onOk={this.toExamine}
-            okText={this.state.result == 1 ? "通过" : this.state.result == 0 && "驳回"}
-            onCancel={() => {
-              this.loadData()
-              this.setState({
-                checkVisible: false,
-                checkData: '',
-              })
-            }}
-          >
-            <TextArea
-              value={this.state.checkData}
-              onChange={(e) => {
-                this.setState({
-                  checkData: e.target.value,
-                })
-              }}
-              placeholder="请填写审核内容"
-            />
-          </Modal>
-        }
-        {
           // 会员项目添加编辑
           this.state.vipVisible &&
           <ProjectOperationVip