|
@@ -140,7 +140,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmTotal', {
|
|
|
- initialValue: this.props.data.firmTotal || null
|
|
|
+ initialValue: this.props.data.firmTotal || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -150,7 +150,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techTotal', {
|
|
|
- initialValue: this.props.data.techTotal || null
|
|
|
+ initialValue: this.props.data.techTotal || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -171,7 +171,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmInService', {
|
|
|
- initialValue: this.props.data.firmInService || null
|
|
|
+ initialValue: this.props.data.firmInService || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -181,7 +181,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techInService', {
|
|
|
- initialValue: this.props.data.techInService || null
|
|
|
+ initialValue: this.props.data.techInService || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -192,7 +192,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmPartTime', {
|
|
|
- initialValue: this.props.data.firmPartTime || null
|
|
|
+ initialValue: this.props.data.firmPartTime || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -202,7 +202,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techPartTime', {
|
|
|
- initialValue: this.props.data.techPartTime || null
|
|
|
+ initialValue: this.props.data.techPartTime || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -213,7 +213,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmTemporary', {
|
|
|
- initialValue: this.props.data.firmTemporary || null
|
|
|
+ initialValue: this.props.data.firmTemporary || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -223,7 +223,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techTemporary', {
|
|
|
- initialValue: this.props.data.techTemporary || null
|
|
|
+ initialValue: this.props.data.techTemporary || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -234,7 +234,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmForeign', {
|
|
|
- initialValue: this.props.data.firmForeign || null
|
|
|
+ initialValue: this.props.data.firmForeign || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -244,7 +244,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techForeign', {
|
|
|
- initialValue: this.props.data.techForeign || null
|
|
|
+ initialValue: this.props.data.techForeign || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -255,7 +255,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmAbroad', {
|
|
|
- initialValue: this.props.data.firmAbroad || null
|
|
|
+ initialValue: this.props.data.firmAbroad || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -265,7 +265,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techAbroad', {
|
|
|
- initialValue: this.props.data.techAbroad || null
|
|
|
+ initialValue: this.props.data.techAbroad || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -276,7 +276,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="企业职工"
|
|
|
>
|
|
|
{getFieldDecorator('firmCore', {
|
|
|
- initialValue: this.props.data.firmCore || null
|
|
|
+ initialValue: this.props.data.firmCore || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -286,7 +286,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="科技人员"
|
|
|
>
|
|
|
{getFieldDecorator('techCore', {
|
|
|
- initialValue: this.props.data.techCore || null
|
|
|
+ initialValue: this.props.data.techCore || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -300,7 +300,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="博士"
|
|
|
>
|
|
|
{getFieldDecorator('doctor', {
|
|
|
- initialValue: this.props.data.doctor || null
|
|
|
+ initialValue: this.props.data.doctor || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -310,7 +310,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="硕士"
|
|
|
>
|
|
|
{getFieldDecorator('master', {
|
|
|
- initialValue: this.props.data.master || null
|
|
|
+ initialValue: this.props.data.master || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -320,7 +320,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="本科"
|
|
|
>
|
|
|
{getFieldDecorator('undergraduate', {
|
|
|
- initialValue: this.props.data.undergraduate || null
|
|
|
+ initialValue: this.props.data.undergraduate || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -330,7 +330,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="大专及以下"
|
|
|
>
|
|
|
{getFieldDecorator('college', {
|
|
|
- initialValue: this.props.data.college || null
|
|
|
+ initialValue: this.props.data.college || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -343,7 +343,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="高级职称"
|
|
|
>
|
|
|
{getFieldDecorator('seniorTitle', {
|
|
|
- initialValue: this.props.data.seniorTitle || null
|
|
|
+ initialValue: this.props.data.seniorTitle || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -353,7 +353,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="中级职称"
|
|
|
>
|
|
|
{getFieldDecorator('intermediateTitle', {
|
|
|
- initialValue: this.props.data.intermediateTitle || null
|
|
|
+ initialValue: this.props.data.intermediateTitle || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -363,7 +363,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="初级职称"
|
|
|
>
|
|
|
{getFieldDecorator('juniorTitle', {
|
|
|
- initialValue: this.props.data.juniorTitle || null
|
|
|
+ initialValue: this.props.data.juniorTitle || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -373,7 +373,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="高级技工"
|
|
|
>
|
|
|
{getFieldDecorator('seniorMechanic', {
|
|
|
- initialValue: this.props.data.seniorMechanic || null
|
|
|
+ initialValue: this.props.data.seniorMechanic || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -386,7 +386,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="30及以下"
|
|
|
>
|
|
|
{getFieldDecorator('belowThirty', {
|
|
|
- initialValue: this.props.data.belowThirty || null
|
|
|
+ initialValue: this.props.data.belowThirty || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -396,7 +396,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="31-34"
|
|
|
>
|
|
|
{getFieldDecorator('thirtyoneToThirtyfour', {
|
|
|
- initialValue: this.props.data.thirtyoneToThirtyfour || null
|
|
|
+ initialValue: this.props.data.thirtyoneToThirtyfour || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -406,7 +406,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="41-50"
|
|
|
>
|
|
|
{getFieldDecorator('fortyoneToFifty', {
|
|
|
- initialValue: this.props.data.fortyoneToFifty || null
|
|
|
+ initialValue: this.props.data.fortyoneToFifty || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -416,7 +416,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="50以上"
|
|
|
>
|
|
|
{getFieldDecorator('aboveFifty', {
|
|
|
- initialValue: this.props.data.aboveFifty || null
|
|
|
+ initialValue: this.props.data.aboveFifty || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -430,7 +430,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="新增就业人数"
|
|
|
>
|
|
|
{getFieldDecorator('newEmployment', {
|
|
|
- initialValue: this.props.data.newEmployment || null
|
|
|
+ initialValue: this.props.data.newEmployment || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -441,7 +441,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
label="高校应届毕业生人数"
|
|
|
>
|
|
|
{getFieldDecorator('graduateNumber', {
|
|
|
- initialValue: this.props.data.graduateNumber || null
|
|
|
+ initialValue: this.props.data.graduateNumber || 0
|
|
|
})(
|
|
|
<InputNumber />
|
|
|
)}
|
|
@@ -451,7 +451,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
<Upload
|
|
|
name="ratepay"
|
|
|
action={globalConfig.context + "/techservice/cognizance/upload"}
|
|
|
- data={{ 'sign': 'roster_' + ( this.state.year || theData.year ) }}
|
|
|
+ data={{ 'sign': 'roster_' + (this.state.year || theData.year) }}
|
|
|
beforeUpload={beforeUploadFile}
|
|
|
showUploadList={false}
|
|
|
onChange={(info) => {
|
|
@@ -473,13 +473,13 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
>
|
|
|
<Button><Icon type="upload" /> 上传花名册 </Button>
|
|
|
</Upload>
|
|
|
- <p style={{ marginTop: '10px' }}>{theData.rosterUrl ? <a onClick={downloadFile.bind(null, theData.rosterUrl, theData.rosterDownloadFileName)}>{theData.rosterDownloadFileName}</a> : <span>未上传!</span>}</p>
|
|
|
+ <p style={{ marginTop: '10px' }}>{theData.rosterUrl ? <a onClick={downloadFile.bind(null, theData.rosterUrl, theData.rosterDownloadFileName)}>{theData.rosterDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</div>
|
|
|
<div className="hrSituation-roster">
|
|
|
<Upload
|
|
|
name="ratepay"
|
|
|
action={globalConfig.context + "/techservice/cognizance/upload"}
|
|
|
- data={{ 'sign': 'social_security_' + ( this.state.year || theData.year ) }}
|
|
|
+ data={{ 'sign': 'social_security_' + (this.state.year || theData.year) }}
|
|
|
beforeUpload={beforeUploadFile}
|
|
|
showUploadList={false}
|
|
|
onChange={(info) => {
|
|
@@ -501,7 +501,7 @@ const HrSituationDescFrom = Form.create()(React.createClass({
|
|
|
>
|
|
|
<Button><Icon type="upload" /> 上传社保情况 </Button>
|
|
|
</Upload>
|
|
|
- <p style={{ marginTop: '10px' }}>{theData.socialSecurityUrl ? <a onClick={downloadFile.bind(null, theData.socialSecurityUrl, theData.socialSecurityDownloadFileName)}>{theData.socialSecurityDownloadFileName}</a> : <span>未上传!</span>}</p>
|
|
|
+ <p style={{ marginTop: '10px' }}>{theData.socialSecurityUrl ? <a onClick={downloadFile.bind(null, theData.socialSecurityUrl, theData.socialSecurityDownloadFileName)}>{theData.socialSecurityDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
<span style={{ color: "red" }}>提示</span>
|
|
@@ -694,7 +694,7 @@ const HrSituation = React.createClass({
|
|
|
key: 'attachment',
|
|
|
render: (text) => {
|
|
|
return <div>
|
|
|
- <a style={{marginRight:'10px'}} onClick={downloadFile.bind(null, text[0], text[1])}> {text[1]} </a>
|
|
|
+ <a style={{ marginRight: '10px' }} onClick={downloadFile.bind(null, text[0], text[1])}> {text[1]} </a>
|
|
|
<a onClick={downloadFile.bind(null, text[2], text[3])}> {text[3]} </a>
|
|
|
</div>
|
|
|
}
|