Browse Source

内蒙专利

HW 3 years ago
parent
commit
7059ebff29

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

@@ -3157,7 +3157,6 @@ const NewService = Form.create()(
     },
 
     componentWillReceiveProps(nextProps) {
-      this.getpatentTypeList();
       //props改变时触发
       this.state.visible = nextProps.showDesc;
       this.state.signBillVisible = nextProps.signBillVisible;
@@ -3241,6 +3240,7 @@ const NewService = Form.create()(
       });
     },
     changeAddPro() {
+      this.getpatentTypeList();
       this.setState({
         changeVisible: true,
         gid: "",

+ 3 - 0
js/component/manageCenter/project/patent/patent.less

@@ -0,0 +1,3 @@
+.ant-table-thead .ant-table-selection-column .ant-checkbox-wrapper{
+  display: inline-block;
+}

+ 70 - 0
js/component/manageCenter/project/patent/reminderLog.jsx

@@ -0,0 +1,70 @@
+import React,{Component} from "react";
+import {message, Modal, Table} from "antd";
+import $ from "jquery/src/ajax";
+
+class ReminderLog extends Component{
+    constructor(props) {
+        super(props);
+        this.state={
+            dataSource:[],
+            columns:[],
+        }
+        this.loadData = this.loadData.bind(this);
+    }
+
+    componentDidMount() {
+        this.loadData();
+    }
+
+    loadData() {
+        this.setState({
+            loading: true,
+        });
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            crossDomain: false,
+            url: globalConfig.context + "/api/admin/company/selectPaymentList",
+            data: {},
+            success: function (data) {
+                if(data.error.length === 0){
+                    this.setState({
+                        columns: [],
+                    });
+                }else{
+                    message.warning(data.error[0].message);
+                }
+            }.bind(this),
+        }).always(
+            function () {
+                this.setState({
+                    loading: false,
+                });
+            }.bind(this)
+        );
+    }
+
+    render() {
+        return (
+            this.props.visible ? <Modal
+                title='提醒日志'
+                className='payRecordComponent'
+                width={800}
+                maskClosable={false}
+                footer={null}
+                visible={this.props.visible}
+                onCancel={this.props.onCancel}
+            >
+                <Table
+                    columns={this.state.columns}
+                    dataSource={this.state.dataSource}
+                    pagination={false}
+                    bordered
+                    size="small"
+                />
+            </Modal> : null
+        );
+    }
+}
+
+export default ReminderLog;