dev01 2 years ago
parent
commit
08090d6941

+ 21 - 18
js/component/account/evaluate/index.jsx

@@ -70,20 +70,20 @@ const Evaluate = React.createClass({
   addClick() {
     this.state.RowData = {};
     this.setState({
-        showDesc: true
+      showDesc: true
     });
   },
   closeDesc(e, s) {
-      this.state.showDesc = e;
-      if (s) {
-          this.loadData(this.state.page);
-      };
+    this.state.showDesc = e;
+    if (s) {
+      this.loadData(this.state.page);
+    };
   },
   tableRowClick(record, index) {
-      this.state.RowData = record;
-      this.setState({
-          showDesc: true
-      });
+    this.state.RowData = record;
+    this.setState({
+      showDesc: true
+    });
   },
   remove() {
     if (this.state.loading || !this.state.selectedRowKeys.length) {
@@ -102,7 +102,7 @@ const Evaluate = React.createClass({
         if (res.error && res.error.length) {
           message.error(res.error[0].message);
         } else {
-          message.info("删除" + (res.data || 0) + '条记录。',0.1, () => {
+          message.info("删除" + (res.data || 0) + '条记录。', 0.1, () => {
             this.loadData(this.state.pagination.current);
           })
         }
@@ -148,9 +148,10 @@ const Evaluate = React.createClass({
         key: 'preview',
         render: (text, record) => {
           return record.value ?
-            <Icon type="eye-o" style={{ fontSize: 18,cursor:"pointer" }} onClick={(e) => {
-              this.preview(e, record)
-            }}></Icon> : <div />
+            <Icon type="eye-o" style={{ fontSize: 18, cursor: "pointer" }}
+              onClick={(e) => {
+                this.preview(e, record)
+              }}></Icon> : <div />
         }
       }, {
         title: '日期',
@@ -165,22 +166,24 @@ const Evaluate = React.createClass({
         <div className="content-container">
           <div className="content-title">
             科技评估管理列表
-              <div className="content-actions"><Button type="primary" onClick={this.addClick}>开始新评估<Icon type="plus" /></Button></div>
+            <div className="content-actions"><Button type="primary" onClick={this.addClick}>开始新评估<Icon type="plus" /></Button></div>
           </div>
           <div className="content-search">
             <Button type="danger" onClick={this.remove} disabled={!hasSelected}>删除</Button>
           </div>
           <div className="content-body">
-            <Table rowKey="id" columns={columns}
+            <Table
+              rowKey="id"
+              columns={columns}
               dataSource={this.state.dataSource}
               pagination={this.state.pagination}
               onRowClick={this.tableRowClick}
               rowSelection={rowSelection} />
           </div>
           <CreateDes
-              data={this.state.RowData}
-              showDesc={this.state.showDesc}
-              closeDesc={this.closeDesc} />
+            data={this.state.RowData}
+            showDesc={this.state.showDesc}
+            closeDesc={this.closeDesc} />
         </div>
       </Spin>
     )

+ 1 - 1
js/component/account/evaluate/info.jsx

@@ -372,7 +372,7 @@ const evaluateInfo = React.createClass({
       </div>
       <div className="report-page">
         <div className="report-subtitle">第一部分   声明</div>
-        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一、本系统在进行无形资产价值评估过程中,采用了通行的经济理论及通用的评估方法,评估流程参考了《资产评估准则-无形资产》,但本评估报告并非《中国资产评估法》及《资产评估准则-评估报告》所规定和约束的评估报告,而是本在线系统出具的简式评估报告。</p>
+        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一、本系统在进行无形资产价值评估过程中,采用了通行的经济理论及通用的评估方法,评估流程参考了《资产评估执业准则-无形资产》,但本评估报告并非《中国资产评估法》及《资产评估执业准则-评估报告》所规定和约束的评估报告,而是本在线系统出具的简式评估报告。</p>
         <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;二、本系统测算所依据的财务及技术资料均由客户填写,系统仅引用该数据进行目标价值之评估,对其填写内容的合法性、真实性、完整性、合理性我们未进行核实,也不承担任何责任。</p>
         <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;三、本系统认为系统采用的公共信息、购买的非公开信息及行业统计信息都来自可靠的信息来源。但是因为本系统并未对这些信息做进一步的验证,无法保证这些信息的准确性或完整性。</p>
         <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;四、本评估结果仅作为指定目的下的价值参考,不应当被认为是对评估对象可实现价格的保证。</p>

+ 34 - 25
js/component/account/evaluate/steps/step1.jsx

@@ -27,17 +27,17 @@ const EvaluateStep1 = Form.create({})(React.createClass({
     };
   },
   componentWillMount() {
-      this.loadData();
-      this.state.initialData = this.props.data || {};
+    this.loadData();
+    this.state.initialData = this.props.data || {};
   },
   componentWillReceiveProps(nextProps) {
-      if(!this.props.visible&&nextProps.visible){
-        this.setState({
-          initialData:nextProps.data
-        })
-        this.loadData()
-      }
-	},
+    if (!this.props.visible && nextProps.visible) {
+      this.setState({
+        initialData: nextProps.data
+      })
+      this.loadData()
+    }
+  },
   loadData() {
     $.when($.ajax({
       url: globalConfig.context + '/open/findIndustryCategory'
@@ -166,6 +166,9 @@ const EvaluateStep1 = Form.create({})(React.createClass({
           method: 'post',
           data: values
         }).done(function (res) {
+          this.setState({
+            loading: false
+          })
           if (res.error && res.error.length) {
             message.error(res.error[0].message)
           } else {
@@ -181,8 +184,8 @@ const EvaluateStep1 = Form.create({})(React.createClass({
       }
     });
   },
-  onDateChange(date) {
-    date && date.date(1)
+  onDateChange(date, dataString) {
+    // date && date.date(1)
     this.changeFormField({
       'benchmarkDate': date
     });
@@ -192,8 +195,8 @@ const EvaluateStep1 = Form.create({})(React.createClass({
   },
   render() {
     const { getFieldDecorator } = this.props.form;
-    let { subIndustry, industry, district, loading} = this.state;
-    let initialData=this.state.initialData||{};
+    let { subIndustry, industry, district, loading } = this.state;
+    let initialData = this.state.initialData || {};
     return (
       <Spin spinning={loading}>
         <Form className="steps-form">
@@ -203,24 +206,24 @@ const EvaluateStep1 = Form.create({})(React.createClass({
               initialValue: initialData.name
             })(
               <Input placeholder="请输入技术名称" />
-              )}
+            )}
           </FormItem>
           <FormItem label="所属主行业" {...formItemLayout}>
             {getFieldDecorator('industry', {
               rules: [{ required: true, message: '请选择技术所属主行业!' }],
-              initialValue:initialData.industry
+              initialValue: initialData.industry
             })(
               <Select placeholder="请选择技术所属主行业" onChange={this.loadSubIndustry}>
                 {industry.map((it) => {
                   return <Option key={it.id} value={String(it.id)}>{it.name}</Option>
                 })}
               </Select>
-              )}
+            )}
           </FormItem>
           <FormItem label="所属子行业" {...formItemLayout}>
             {getFieldDecorator('subIndustry', {
               rules: [{ required: true, message: '请选择技术所属子行业!' }],
-              initialValue:initialData.subIndustry
+              initialValue: initialData.subIndustry
             })(
               <Select placeholder="请选择技术所属子行业" allowClear={true} multiple={true} onChange={this.subIndustryChanged}>
                 {
@@ -229,7 +232,7 @@ const EvaluateStep1 = Form.create({})(React.createClass({
                   }) : []
                 }
               </Select>
-              )}
+            )}
           </FormItem>
           <FormItem label="转让方式" {...formItemLayout}>
             {getFieldDecorator('transferType', {
@@ -241,7 +244,7 @@ const EvaluateStep1 = Form.create({})(React.createClass({
                   return <Option key={it.id} value={it.id}>{it.text}</Option>
                 })}
               </Select>
-              )}
+            )}
           </FormItem>
           <FormItem label="预估技术剩余寿命" {...formItemLayout}>
             {getFieldDecorator('timeLeft', {
@@ -253,27 +256,33 @@ const EvaluateStep1 = Form.create({})(React.createClass({
                   return <Option key={it.id} value={it.id}>{it.text}</Option>
                 })}
               </Select>
-              )}
+            )}
           </FormItem>
           <FormItem label="转让区域" {...formItemLayout}>
             {getFieldDecorator('transferArea', {
               rules: [{ required: true, message: '请选择技术转让区域!' }],
-              initialValue:initialData.transferArea
+              initialValue: initialData.transferArea
             })(
               <Select placeholder="请选择技术转让区域" allowClear={true} multiple={true} onChange={this.districtChanged}>
                 {district.map((it) => {
                   return <Option key={it.id} value={String(it.id)}>{it.name}</Option>
                 })}
               </Select>
-              )}
+            )}
           </FormItem>
           <FormItem label="评估基准日" {...formItemLayout}>
             {getFieldDecorator('benchmarkDate', {
               rules: [{ required: true, message: '请输入评估基准日!' }],
               initialValue: initialData.benchmarkDate ? moment(initialData.benchmarkDate, 'YYYY-MM-DD') : null
             })(
-              <MonthPicker allowClear={false} onChange={this.onDateChange} placeholder="请输入评估基准日" format="YYYY-MM-DD" />
-              )}
+              <DatePicker
+                allowClear={false}
+                onChange={this.onDateChange}
+                placeholder="请输入评估基准日"
+                format="YYYY-MM-DD"
+              />
+              // <MonthPicker allowClear={false} onChange={this.onDateChange} placeholder="请输入评估基准日" format="YYYY-MM-DD" />
+            )}
           </FormItem>
           <FormItem label="评估币种" {...formItemLayout}>
             {getFieldDecorator('currencyType', {
@@ -285,7 +294,7 @@ const EvaluateStep1 = Form.create({})(React.createClass({
                   return <Option key={idx} value={it}>{it}</Option>
                 })}
               </Select>
-              )}
+            )}
           </FormItem>
         </Form>
         <div className="steps-action">

+ 1 - 1
js/component/account/services/evaluate/info.jsx

@@ -365,7 +365,7 @@ const evaluateInfo = React.createClass({
       </div>
       <div className="report-page">
         <div className="report-subtitle">第一部分   声明</div>
-        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一、本系统在进行无形资产价值评估过程中,采用了通行的经济理论及通用的评估方法,评估流程参考了《资产评估准则-无形资产》,但本评估报告并非《中国资产评估法》及《资产评估准则-评估报告》所规定和约束的评估报告,而是本在线系统出具的简式评估报告。</p>
+        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一、本系统在进行无形资产价值评估过程中,采用了通行的经济理论及通用的评估方法,评估流程参考了《资产评估执业准则-无形资产》,但本评估报告并非《中国资产评估法》及《资产评估执业准则-评估报告》所规定和约束的评估报告,而是本在线系统出具的简式评估报告。</p>
         <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;二、本系统测算所依据的财务及技术资料均由客户填写,系统仅引用该数据进行目标价值之评估,对其填写内容的合法性、真实性、完整性、合理性我们未进行核实,也不承担任何责任。</p>
         <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;三、本系统认为系统采用的公共信息、购买的非公开信息及行业统计信息都来自可靠的信息来源。但是因为本系统并未对这些信息做进一步的验证,无法保证这些信息的准确性或完整性。</p>
         <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;四、本评估结果仅作为指定目的下的价值参考,不应当被认为是对评估对象可实现价格的保证。</p>