Browse Source

update 合同流转状态bug修复

yee 7 years ago
parent
commit
e26c526c96

+ 3 - 1
js/component/manageCenter/servicesManage/contract/contract.jsx

@@ -28,6 +28,7 @@ const Contract = React.createClass({
                 uid: this.state.unitId,
                 type: this.state.contractType,
                 status: this.state.contractState,
+                contractId: this.state.contractId,
                 startDateFormattedDate: this.state.startDateFormattedDate,
                 endDateFormattedDate: this.state.endDateFormattedDate,
             },
@@ -380,6 +381,7 @@ const Contract = React.createClass({
         this.state.unitId = undefined;
         this.state.contractState = undefined;
         this.state.contractType = undefined;
+        this.state.contractId = undefined;
         this.state.startDateFormattedDate = [];
         this.state.endDateFormattedDate = [];
         this.loadData();
@@ -444,7 +446,7 @@ const Contract = React.createClass({
                             {this.state.typeOption}
                         </Select>
                         <Select style={{ width: 120 }}
-                            value={this.state.searchStatus}
+                            value={this.state.contractState}
                             onChange={(e) => { this.setState({ contractState: e }) }}
                             placeholder="选择一个状态">
                             {this.state.stateOption}

+ 2 - 2
js/component/manageCenter/servicesManage/contract/contractDetail.jsx

@@ -487,8 +487,8 @@ const ContractDetailForm = Form.create()(React.createClass({
     handleSubmit(e) {
         e.preventDefault();
         this.props.form.validateFields((err, values) => {
-            if (values.status || values.principal || values.recordTime || values.comment) {
-                if (!values.status || !values.principal || !values.recordTime) {
+            if (values.status || values.principals || values.recordTime || values.comment) {
+                if (!values.status || !values.principals || !values.recordTime) {
                     message.warning("请填写完整的状态流转信息!");
                     return;
                 };

+ 1 - 0
js/component/manageCenter/servicesManage/highTech/highTechApply.jsx

@@ -1115,6 +1115,7 @@ const Cognizance = React.createClass({
         this.getContractList();
         if (window.location.search) {
             let theObj = getSearchUrl(window.location.search);
+            debugger
             if (theObj.rid) {
                 theObj.cid = theObj.rid;
                 if (theObj.rid != 'null' && theObj.uid != 'null' && theObj.year != 'null') {