Ver código fonte

增加单选功能2个

ws2z3gr2017 7 anos atrás
pai
commit
4f302d054c

+ 29 - 1
js/component/manageCenter/achievement/techAchievementDesc.jsx

@@ -7,7 +7,6 @@ import { maturityList, innovationList, transferModeList } from '../../dataDic';
 import { IndustryObject, getIndustryCategory } from '../../DicIndustryList.js';
 import { beforeUploadFile, splitUrl, companySearch, getTransferMode, getAchievementCategory, getTechAuditStatus, getDemandType, getMaturity, getInnovation } from '../../tools.js';
 import throttle from '../../throttle.js';
-
 const KeyWordTagGroup = React.createClass({
     getInitialState() {
         return {
@@ -398,6 +397,18 @@ const AchievementDetailShow = Form.create()(React.createClass({
                                 }
                             })()}
                         </FormItem>
+                        <FormItem className="half-item"
+                            {...formItemLayout}
+                            label="精品成果" >
+                            {(() => {
+                                switch (theData.boutique) {
+                                    case "0":
+                                        return <span>否</span>;
+                                    case "1":
+                                        return <span>是</span>;
+                                }
+                            })()}
+                        </FormItem>
                     </div>            
                     <div className="clearfix">
                         <FormItem className="half-item"
@@ -973,6 +984,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
                         businessPlanUrl: this.state.businessPlanUrl,
                         auditStatus: this.state.auditStatus,
                         jmrhFlag: values.jmrhFlag,
+                        boutique: values.boutique,                       
                     }
                 }).done(function (data) {
                     this.state.auditStatus = 0;
@@ -1076,6 +1088,22 @@ const AchievementDetailForm = Form.create()(React.createClass({
                                     </Radio.Group>
                                     )}
                         </FormItem>
+                        
+                        
+                         <FormItem className="half-item"
+                                {...formItemLayout}
+                                label="精品成果" >
+                                {getFieldDecorator('boutique', {
+                                    initialValue: theData.boutique
+                                })(
+                                    <Radio.Group>
+                                        <Radio value="0">否</Radio>
+                                        <Radio value="1">是</Radio>
+                                    </Radio.Group>
+                                    )}
+                        </FormItem>
+                        
+                        
                         <div className="clearfix">
                             <FormItem className="half-item"
                                 {...formItemLayout}

+ 27 - 2
js/component/manageCenter/demand/techDemandDesc.jsx

@@ -598,6 +598,18 @@ const DemandDetailShow = Form.create()(React.createClass({
                         </FormItem>
                         <FormItem className="half-item"
                             {...formItemLayout}
+                            label="精品需求" >
+                            {(() => {
+                                switch (theData.boutique) {
+                                    case "0":
+                                        return <span>否</span>;
+                                    case "1":
+                                        return <span>是</span>;
+                                }
+                            })()}
+                        </FormItem>
+                        <FormItem className="half-item"
+                            {...formItemLayout}
                             label="有效期限" >
                             <span>{theData.validityPeriodFormattedDate}</span>
                         </FormItem>
@@ -800,7 +812,7 @@ const DemandDetailForm = Form.create()(React.createClass({
                         fixedCycle: values.fixedCycle,
                         peopleNumber: values.peopleNumber,
                         fixedScheme: values.fixedScheme,
-                        costEscrow: values.costEscrow,
+                        costEscrow: values.costEscrow,                        
                         budgetCost: values.budgetCost,
                         //
                         switchSign: this.state.switchValue ? 1 : 0,
@@ -818,7 +830,8 @@ const DemandDetailForm = Form.create()(React.createClass({
                         validityPeriodFormattedDate: values.validityPeriod ? values.validityPeriod.format('YYYY-MM-DD') : undefined,
                         //
                         status: this.state.status,
-                        auditStatus: this.state.auditStatus
+                        auditStatus: this.state.auditStatus,
+                        boutique: values.boutique, 
                     }
                 }).done(function (data) {
                     this.state.auditStatus = 0;
@@ -1224,6 +1237,18 @@ const DemandDetailForm = Form.create()(React.createClass({
                                 )}
                         </FormItem>
                         <FormItem className="half-item"
+                                {...formItemLayout}
+                                label="精品需求" >
+                                {getFieldDecorator('boutique', {
+                                    initialValue: theData.boutique
+                                })(
+                                    <Radio.Group>
+                                        <Radio value="0">否</Radio>
+                                        <Radio value="1">是</Radio>
+                                    </Radio.Group>
+                                    )}
+                        </FormItem>
+                        <FormItem className="half-item"
                             {...formItemLayout}
                             label="有效期限" >
                             {getFieldDecorator('validityPeriod', {

+ 1 - 1
webpack.config.js

@@ -231,7 +231,7 @@ module.exports = (function () {
         }));
     }
     let staticHost = 'http://afts.hnzhiming.com';
-    //let staticHost = 'http://127.0.0.1';
+    //let staticHost = 'http://127.0.0.1';    
     switch (argv.env.deploy) {
         case 'stage':
             staticHost = 'http://aftts.hnzhiming.com';