|
@@ -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>
|
|
|
);
|
|
|
},
|