dengzhiguo 6 years ago
parent
commit
6e0cf306c3

+ 19 - 11
js/component/manageCenter/customer/NEW/crm/crm.jsx

@@ -6,7 +6,7 @@ import moment from 'moment';
 import TechAchievementDesc from '@/manageCenter/achievement/crmAchievement.jsx';
 import { citySelect, provinceList ,areaSelect} from '@/NewDicProvinceList';
 import { socialAttribute, industry, auditStatusL, lvl, currentMember ,slcRedit,dataGrade} from '@/dataDic.js';
-import { getSocialAttribute, beforeUploadFile,splitUrl ,getSlcRedit,getDataGrade,getAchievementCategory,getTechAuditStatus,getboutique,getPreview} from '@/tools.js';
+import { getSocialAttribute, beforeUploadFile,splitUrl ,getSlcRedit,getDataGrade,getAchievementCategory,getTechAuditStatus,getboutique,getPreviews,getPreview} from '@/tools.js';
 import './customer.less';
 const TabPane = Tabs.TabPane;
 const Dragger = Upload.Dragger;
@@ -706,6 +706,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 			message.warning('请输入转交人姓名')
 		}
 	},
+	
 	//详情打开
 	visitOk(e) {
 		this.setState({
@@ -1086,21 +1087,23 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                    	 {...formItemLayout}
 								                         label="上年度销售额"
 							                            >
-							                                <Input ref='consul' placeholder="请输入上年度销售额" value={this.state.yearSalesAmount} style={{width:'95%'}}
+							                                <Input ref='consul' placeholder="请输入上年度销售额" value={this.state.yearSalesAmount} style={{width:'90%'}}
 														onChange={(e) => {this.setState({yearSalesAmount: e.target.value })}}/>万
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 							                    </FormItem>
 							                    <FormItem className="half-item"
 								                    	 {...formItemLayout}
 								                         label="上年度研发费用"
 							                            >
-							                                <Input ref='consul' placeholder="请输入上年度研发费用" value={this.state.lastYearResearchAmount} style={{width:'95%'}}
+							                                <Input ref='consul' placeholder="请输入上年度研发费用" value={this.state.lastYearResearchAmount} style={{width:'90%'}}
 														onChange={(e) => {this.setState({lastYearResearchAmount: e.target.value })}}/>万
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 							                    </FormItem>
 							                    <FormItem className="half-item" 
 						                            {...formItemLayout}
 						                           label="客户信用等级"
 						                           > 
-													    <Select placeholder="客户信用等级" value={this.state.creditRating}  
+													    <Select placeholder="客户信用等级" value={this.state.creditRating}   style={{width:'90%'}}
 												    				onChange={(e)=>{this.setState({creditRating:e})}}> 
 					                                     {
 					                                        slcRedit.map(function (item) {
@@ -1108,13 +1111,15 @@ const IntentionCustomer = Form.create()(React.createClass({
 					                                        })
 					                                    }
 					                                </Select>  
+					                                <span style={{color:'red',marginLeft:'5px'}}>*</span>
 						                   		 </FormItem>
 							                    <FormItem className="half-item"
 								                    	 {...formItemLayout}
 								                         label="上年度总资产情况"
 							                            >
-							                                <Input ref='consul' placeholder="上年度总资产情况" value={this.state.assets} style={{width:'95%'}}
+							                                <Input ref='consul' placeholder="上年度总资产情况" value={this.state.assets} style={{width:'90%'}}
 														onChange={(e) => {this.setState({assets: e.target.value })}}/>万
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 							                    </FormItem>
 							                    
 							                    <div className='clearfix'>
@@ -1122,8 +1127,9 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        labelCol={{ span:4 }}
 								                        wrapperCol={{ span: 19 }}
 								                        label="企业核心技术" >
-								                            <Input type="textarea" rows={3} value={this.state.coreTechnology} 
+								                            <Input type="textarea" rows={3} value={this.state.coreTechnology} style={{width:'96%'}}
 														onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}}/>
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1132,7 +1138,8 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="企业资质情况" >
 								                            <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
-														onChange={(e,pre) => { this.setState({ qualification: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ qualification: e.target.value })}} style={{width:'96%'}}/>
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1141,7 +1148,8 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="企业已做项目" >
 								                            <Input type="textarea" rows={3} value={this.state.accomplishSituation} placeholder="请按如下格式填写:项目类型+主管部门+申报时间+立项情况+验收情况"
-														onChange={(e,pre) => { this.setState({ accomplishSituation: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ accomplishSituation: e.target.value })}} style={{width:'96%'}}/>
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1150,7 +1158,8 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="高企合作情况" >
 								                            <Input type="textarea" rows={3} value={this.state.cooperationSituation} 
-														onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}} style={{width:'96%'}}/>
+														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1191,13 +1200,12 @@ const IntentionCustomer = Form.create()(React.createClass({
 									                            <span style={{ marginTop: '10px' ,marginLeft:"20px"}}>{this.state.pojectApplicationUrl ?
 										                            <span className="download-file">
 										                                <a onClick={() => {
-										                                    var newTab = window.open('about:blank'); getPreview(this.state.detailId, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
+										                                    var newTab = window.open('about:blank'); getPreviews(this.state.detailId, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
 										                                }}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>
 										                            </span>
 										                            : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}
 									                            </span>
 									                        </Upload>
-													    
                     
 													</FormItem>
 												 </div>

+ 8 - 3
js/component/manageCenter/servicesManage/projectOrder/projectManagement/projectManageDetaile.jsx

@@ -493,7 +493,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
     	this.state.departmenttList=undefined;
     	this.state.financeNameSearch='';
     	this.state.lvRadio=0;
-    	this.contactLists();
+    	//this.contactLists();
     },
     distributionCancel(){
     	this.setState({
@@ -930,7 +930,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
 		this.state.departmenttList=undefined;
     	this.state.financeNameSearch='';
     	this.state.lvRadio=0;
-		this.contactLists();
+		//this.contactLists();
 	},
 	/* -----变更操作开始----- */
 	//新建变更
@@ -1099,13 +1099,18 @@ const MySettlementDetaile = Form.create()(React.createClass({
 				lvRadio:e.target.value,
 				lvState:false
 			})
+			this.setState({
+				distributionList:[],
+			})
+			
 		}else{
 			this.setState({
 				lvRadio:e.target.value,
 				lvState:true
 			})
+			this.contactList();
 		}
-		this.contactList();
+		
 	},
 	
 	

+ 21 - 0
js/component/tools.js

@@ -482,6 +482,27 @@ module.exports = {
             }
         });
     },
+    //预览接口
+    getPreviews(id,url,sign,callback){
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            crossDomain: false,
+            url: globalConfig.context + "/api/admin/customer/" + url,
+            data:{
+                "id": id,
+                "sign": sign
+                },
+            success: function (data) {
+                if (!data.data) {
+                    if ( data.error && data.error.length ) {
+                        message.warning(data.error[0].message);
+                    };
+                };
+                callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/customer?" + data.data));
+            }
+        });
+    },
     //获取企业规模
     getScaleState(e) {
         if (e) {