|
@@ -18,6 +18,7 @@ const formItemLayout = {
|
|
|
};
|
|
|
|
|
|
const PicturesWall = React.createClass({
|
|
|
+
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
previewVisible: false,
|
|
@@ -25,28 +26,34 @@ const PicturesWall = React.createClass({
|
|
|
fileList: this.props.pictureUrl,
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
getDefaultProps() {
|
|
|
return {
|
|
|
changeClick: this.modifyChange,
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
handleCancel() {
|
|
|
this.setState({ previewVisible: false });
|
|
|
},
|
|
|
+
|
|
|
handlePreview(file) {
|
|
|
this.setState({
|
|
|
previewImage: file.url || file.thumbUrl,
|
|
|
previewVisible: true,
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
handleChange(info) {
|
|
|
let fileList = info.fileList;
|
|
|
this.setState({ fileList });
|
|
|
this.props.fileList(fileList);
|
|
|
},
|
|
|
+
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
this.state.fileList = nextProps.pictureUrl;
|
|
|
},
|
|
|
+
|
|
|
render() {
|
|
|
const { fileList } = this.state;
|
|
|
return (
|
|
@@ -67,6 +74,7 @@ const PicturesWall = React.createClass({
|
|
|
</div>
|
|
|
);
|
|
|
},
|
|
|
+
|
|
|
});
|
|
|
|
|
|
/**
|
|
@@ -77,14 +85,16 @@ class NewAddProject extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
- commodityName: '',
|
|
|
- commodityQuantity: '',
|
|
|
+ commodityName: '',//项目名称
|
|
|
+ commodityQuantity: '',//项目数量
|
|
|
patentType: 0,
|
|
|
officialCost: '',
|
|
|
costReduction: '',
|
|
|
- commodityPrice: '',
|
|
|
- main: '',
|
|
|
- taskComment: '',
|
|
|
+ commodityPrice: '',//项目价格
|
|
|
+ main: '',//主要项目 0否 1是
|
|
|
+ lastYearCapital: '',//上年度总资本
|
|
|
+ lastYearIncome: '',//上年度总资本
|
|
|
+ taskComment: '',//项目说明
|
|
|
declarationBatch: '',
|
|
|
ifCertificationFee: '',
|
|
|
displayFees: "none",
|
|
@@ -93,7 +103,7 @@ class NewAddProject extends Component {
|
|
|
loading: false,
|
|
|
orgCodeUrl: [],
|
|
|
patentTransfer: 0, //收否为专利转让 0 否 1 是
|
|
|
- serviceLife: [],
|
|
|
+ serviceLife: [],//服务年份
|
|
|
isVip: undefined,
|
|
|
histYear: [],
|
|
|
editName: false,
|
|
@@ -170,7 +180,8 @@ class NewAddProject extends Component {
|
|
|
message.warning("请输入正确的金额!");
|
|
|
return false;
|
|
|
}
|
|
|
- if (this.state.addProjectType == "3") {// 3审计
|
|
|
+ // 3审计
|
|
|
+ if (this.state.addProjectType == "3") {
|
|
|
if (this.state.serviceLife.length === 0) {
|
|
|
message.warning("请选择服务年限!");
|
|
|
return
|
|
@@ -179,12 +190,21 @@ class NewAddProject extends Component {
|
|
|
message.warning("服务数量与服务年限不符!");
|
|
|
return
|
|
|
}
|
|
|
+ if (isNaN(parseFloat(this.state.lastYearCapital))) {
|
|
|
+ message.warning("请输入正确的企业上年度总资本!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (isNaN(parseFloat(this.state.lastYearIncome))) {
|
|
|
+ message.warning("请输入正确的企业上年度总收入!");
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if (!this.state.main) {
|
|
|
message.warning("请选择是否为主要项目!");
|
|
|
return false;
|
|
|
}
|
|
|
- if (this.state.addProjectType === 5) {// 5高新
|
|
|
+ // 5高新
|
|
|
+ if (this.state.addProjectType === 5) {
|
|
|
if (!this.state.declarationBatch) {
|
|
|
message.warning("请选择企业要求申报批次!");
|
|
|
return
|
|
@@ -243,7 +263,8 @@ class NewAddProject extends Component {
|
|
|
}
|
|
|
if (this.state.displayFees === 'block') {
|
|
|
infor.officialCost = this.state.officialCost //是否有官费
|
|
|
- infor.costReduction = (this.state.patentType === 0 || this.state.patentType === 2) ? (this.state.officialCost === 1 ? this.state.costReduction : 0) : 0//是否有费减
|
|
|
+ infor.costReduction = (this.state.patentType === 0 || this.state.patentType === 2) ?
|
|
|
+ (this.state.officialCost === 1 ? this.state.costReduction : 0) : 0//是否有费减
|
|
|
infor.patentType = this.state.patentType //专利类型
|
|
|
}
|
|
|
if (this.state.isIso) {
|
|
@@ -251,6 +272,9 @@ class NewAddProject extends Component {
|
|
|
}
|
|
|
if (this.state.addProjectType == "3") {//审计
|
|
|
infor.serviceLife = JSON.stringify(this.state.serviceLife) //服务年限
|
|
|
+ infor.lastYear = new Date().getFullYear() - 1 //上年度年份
|
|
|
+ infor.lastYearCapital = this.state.lastYearCapital //上年度总资本
|
|
|
+ infor.lastYearIncome = this.state.lastYearIncome //上年度总收入
|
|
|
}
|
|
|
if (this.state.addProjectType == "5") {//高新
|
|
|
infor.declarationBatch = this.state.declarationBatch || 1//申报批次
|
|
@@ -589,7 +613,7 @@ class NewAddProject extends Component {
|
|
|
<Option key={its}>{its}</Option>
|
|
|
));
|
|
|
const { RangePicker } = DatePicker;
|
|
|
- const { readOnly, type = "" } = this.props;
|
|
|
+ const { type = "" } = this.props;
|
|
|
const { isVip, histYear, isEdit } = this.state
|
|
|
return (
|
|
|
<Modal
|
|
@@ -598,7 +622,7 @@ class NewAddProject extends Component {
|
|
|
onOk={this.props.onCancel}
|
|
|
onCancel={this.props.onCancel}
|
|
|
width="900px"
|
|
|
- title={readOnly ? "项目任务详情" : "新增项目任务"}
|
|
|
+ title={"新增项目任务"}
|
|
|
footer=""
|
|
|
className="admin-desc-content"
|
|
|
>
|
|
@@ -645,7 +669,7 @@ class NewAddProject extends Component {
|
|
|
>
|
|
|
<Input />
|
|
|
</AutoComplete>}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
}
|
|
|
|
|
@@ -656,7 +680,7 @@ class NewAddProject extends Component {
|
|
|
{...formItemLayout}
|
|
|
label="服务数量"
|
|
|
>
|
|
|
- {readOnly ? this.state.commodityQuantity :
|
|
|
+ {
|
|
|
<Input
|
|
|
placeholder="请输入服务数量"
|
|
|
disabled={isVip == 6}
|
|
@@ -666,8 +690,9 @@ class NewAddProject extends Component {
|
|
|
this.setState({ commodityQuantity: e.target.value });
|
|
|
}}
|
|
|
ref="commodityQuantity"
|
|
|
- />}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ />
|
|
|
+ }
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
}
|
|
|
</div>
|
|
@@ -676,7 +701,7 @@ class NewAddProject extends Component {
|
|
|
{...formItemLayout}
|
|
|
label="实签价格(万元)"
|
|
|
>
|
|
|
- {readOnly ? this.state.commodityPrice :
|
|
|
+ {
|
|
|
<Input
|
|
|
type='number'
|
|
|
placeholder="请输入实签价格"
|
|
@@ -687,15 +712,16 @@ class NewAddProject extends Component {
|
|
|
this.setState({ commodityPrice: e.target.value });
|
|
|
}}
|
|
|
ref="commodityPrice"
|
|
|
- />}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ />
|
|
|
+ }
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="主要业务"
|
|
|
>
|
|
|
- {readOnly ? getboutique(this.state.main) :
|
|
|
+ {
|
|
|
<Select
|
|
|
placeholder="选择是否为主要业务"
|
|
|
disabled={isEdit}
|
|
@@ -712,8 +738,9 @@ class NewAddProject extends Component {
|
|
|
</Select.Option>
|
|
|
);
|
|
|
})}
|
|
|
- </Select>}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ </Select>
|
|
|
+ }
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
{!this.state.patentTransfer &&
|
|
|
<FormItem
|
|
@@ -726,7 +753,7 @@ class NewAddProject extends Component {
|
|
|
marginLeft: "63px",
|
|
|
}}
|
|
|
>
|
|
|
- {readOnly ? this.state.patentTypeName :
|
|
|
+ {
|
|
|
<Select
|
|
|
placeholder="请选择专利类型"
|
|
|
style={{ width: "200px" }}
|
|
@@ -745,7 +772,8 @@ class NewAddProject extends Component {
|
|
|
<Select.Option key={k} value={v.id}>{v.name}</Select.Option>
|
|
|
);
|
|
|
})}
|
|
|
- </Select>}
|
|
|
+ </Select>
|
|
|
+ }
|
|
|
<span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
*
|
|
|
</span>
|
|
@@ -760,9 +788,8 @@ class NewAddProject extends Component {
|
|
|
marginLeft: "63px",
|
|
|
}}
|
|
|
>
|
|
|
- {readOnly
|
|
|
- ? (this.state.officialCost === 1 ? '含官费' : this.state.officialCost === 0 ? '不含官费' : '')
|
|
|
- : <Radio.Group
|
|
|
+ {
|
|
|
+ <Radio.Group
|
|
|
value={this.state.officialCost}
|
|
|
onChange={(e) => {
|
|
|
this.setState({ officialCost: e.target.value });
|
|
@@ -775,55 +802,39 @@ class NewAddProject extends Component {
|
|
|
>
|
|
|
<Radio value={1}>含官费</Radio>
|
|
|
<Radio value={0}>不含官费</Radio>
|
|
|
- </Radio.Group>}
|
|
|
+ </Radio.Group>
|
|
|
+ }
|
|
|
<span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
*
|
|
|
</span>
|
|
|
</FormItem>
|
|
|
{
|
|
|
- readOnly ?
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="费减:"
|
|
|
- style={{
|
|
|
- display: this.state.displayFees,
|
|
|
- marginLeft: "63px",
|
|
|
- }}
|
|
|
- >
|
|
|
- {this.state.costReduction === 1 ? '有费减' : this.state.costReduction === 0 ? '无费减' : ''}
|
|
|
- <span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
- *
|
|
|
- </span>
|
|
|
- </FormItem>
|
|
|
- :
|
|
|
- (this.state.patentType === 0 || this.state.patentType === 2) && this.state.officialCost === 1 &&
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="费减:"
|
|
|
- style={{
|
|
|
- display: this.state.displayFees,
|
|
|
- marginLeft: "63px",
|
|
|
+ (this.state.patentType === 0 || this.state.patentType === 2) && this.state.officialCost === 1 &&
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ labelCol={{ span: 3 }}
|
|
|
+ wrapperCol={{ span: 14 }}
|
|
|
+ label="费减:"
|
|
|
+ style={{
|
|
|
+ display: this.state.displayFees,
|
|
|
+ marginLeft: "63px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {/*不含官费或者专利类型不为复审或者申请时置灰*/}
|
|
|
+ <Radio.Group
|
|
|
+ disabled={this.state.officialCost === 0 || (this.state.patentType !== 0 && this.state.patentType !== 2)}
|
|
|
+ value={this.state.costReduction}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ costReduction: e.target.value });
|
|
|
}}
|
|
|
>
|
|
|
- {/*不含官费或者专利类型不为复审或者申请时置灰*/}
|
|
|
- <Radio.Group
|
|
|
- disabled={this.state.officialCost === 0 || (this.state.patentType !== 0 && this.state.patentType !== 2)}
|
|
|
- value={this.state.costReduction}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ costReduction: e.target.value });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Radio value={1}>有费减</Radio>
|
|
|
- <Radio value={0}>无费减</Radio>
|
|
|
- </Radio.Group>
|
|
|
- <span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
- *
|
|
|
- </span>
|
|
|
- </FormItem>
|
|
|
+ <Radio value={1}>有费减</Radio>
|
|
|
+ <Radio value={0}>无费减</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ <span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
+ *
|
|
|
+ </span>
|
|
|
+ </FormItem>
|
|
|
}
|
|
|
{
|
|
|
//审计
|
|
@@ -834,23 +845,21 @@ class NewAddProject extends Component {
|
|
|
label="服务年限"
|
|
|
>
|
|
|
{
|
|
|
- readOnly ?
|
|
|
- !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
|
|
|
- <Select
|
|
|
- mode="multiple"
|
|
|
- style={{ width: '200px' }}
|
|
|
- placeholder="请选择服务年限"
|
|
|
- value={this.state.serviceLife}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({
|
|
|
- serviceLife: e,
|
|
|
- })
|
|
|
- }}
|
|
|
- >
|
|
|
- {children}
|
|
|
- </Select>
|
|
|
+ <Select
|
|
|
+ mode="multiple"
|
|
|
+ style={{ width: '200px' }}
|
|
|
+ placeholder="请选择服务年限"
|
|
|
+ value={this.state.serviceLife}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({
|
|
|
+ serviceLife: e,
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {children}
|
|
|
+ </Select>
|
|
|
}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
}
|
|
|
{
|
|
@@ -861,32 +870,30 @@ class NewAddProject extends Component {
|
|
|
label="会员服务年限"
|
|
|
>
|
|
|
{
|
|
|
- readOnly ?
|
|
|
- !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
|
|
|
- <div>
|
|
|
- {
|
|
|
- this.state.serviceLife.map((tag) =>
|
|
|
- <Tag closable={!isEdit} key={tag}
|
|
|
- afterClose={() => this.handleClose(tag)}
|
|
|
- >{tag}</Tag>
|
|
|
- )
|
|
|
- }
|
|
|
- {
|
|
|
- !isEdit && (this.state.serviceLife.length < 5) &&
|
|
|
- <Button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- onClick={() => {
|
|
|
- this.setState({
|
|
|
- addYears: true,
|
|
|
- addyear: undefined,
|
|
|
- isGive: undefined,
|
|
|
- })
|
|
|
- }}>
|
|
|
- + 添加服务年限
|
|
|
- </Button>
|
|
|
- }
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ this.state.serviceLife.map((tag) =>
|
|
|
+ <Tag closable={!isEdit} key={tag}
|
|
|
+ afterClose={() => this.handleClose(tag)}
|
|
|
+ >{tag}</Tag>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ {
|
|
|
+ !isEdit && (this.state.serviceLife.length < 5) &&
|
|
|
+ <Button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ onClick={() => {
|
|
|
+ this.setState({
|
|
|
+ addYears: true,
|
|
|
+ addyear: undefined,
|
|
|
+ isGive: undefined,
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ + 添加服务年限
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
}
|
|
|
</FormItem>
|
|
|
}
|
|
@@ -898,7 +905,6 @@ class NewAddProject extends Component {
|
|
|
label="会员总服务年限"
|
|
|
>
|
|
|
{
|
|
|
- // readOnly ?
|
|
|
!this.state.yearSum ? "" :
|
|
|
[
|
|
|
{ value: "0", key: "" },
|
|
@@ -908,37 +914,11 @@ class NewAddProject extends Component {
|
|
|
{ value: "4", key: "四年" },
|
|
|
{ value: "5", key: "五年" },
|
|
|
][this.state.yearSum]["key"]
|
|
|
- // : <Select
|
|
|
- // placeholder="请选择会员总服务年限"
|
|
|
- // disabled={true}
|
|
|
- // style={{ width: "200px" }}
|
|
|
- // value={typeof (this.state.yearSum) === "number" ? this.state.yearSum.toString() : this.state.yearSum}
|
|
|
- // onChange={(e) => {
|
|
|
- // this.setState({
|
|
|
- // yearSum: e,
|
|
|
- // serviceLife: [],
|
|
|
- // serviceYear: undefined,
|
|
|
- // });
|
|
|
- // }}
|
|
|
- // >
|
|
|
- // {[
|
|
|
- // { value: "1", key: "一年" },
|
|
|
- // { value: "2", key: "二年" },
|
|
|
- // { value: "3", key: "三年" },
|
|
|
- // { value: "4", key: "四年" },
|
|
|
- // { value: "5", key: "五年" },
|
|
|
- // ].map(function (item) {
|
|
|
- // return (
|
|
|
- // <Select.Option key={item.value}>
|
|
|
- // {item.key}
|
|
|
- // </Select.Option>
|
|
|
- // );
|
|
|
- // })}
|
|
|
- // </Select>
|
|
|
}
|
|
|
</FormItem>
|
|
|
}
|
|
|
{
|
|
|
+ // 会员合同期
|
|
|
isVip == 6 &&
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
@@ -952,39 +932,68 @@ class NewAddProject extends Component {
|
|
|
label="合同期"
|
|
|
>
|
|
|
{
|
|
|
- readOnly ?
|
|
|
- !!this.state.contractTerm ? this.state.contractTerm.toString() : "" :
|
|
|
- <RangePicker
|
|
|
- style={{ width: 200 }}
|
|
|
- disabled={isEdit}
|
|
|
- value={[
|
|
|
- this.state.contractTerm[0]
|
|
|
- ? moment(this.state.contractTerm[0])
|
|
|
- : null,
|
|
|
- this.state.contractTerm[1]
|
|
|
- ? moment(this.state.contractTerm[1])
|
|
|
- : null,
|
|
|
- ]}
|
|
|
- onChange={(data, dataString) => {
|
|
|
- this.setState({ contractTerm: dataString });
|
|
|
- }}
|
|
|
- />
|
|
|
- // <Select
|
|
|
- // mode="multiple"
|
|
|
- // style={{ width: '200px' }}
|
|
|
- // placeholder="请选择合同期"
|
|
|
- // disabled={isEdit}
|
|
|
- // value={this.state.contractTerm}
|
|
|
- // onChange={e => {
|
|
|
- // this.setState({
|
|
|
- // contractTerm: e,
|
|
|
- // })
|
|
|
- // }}
|
|
|
- // >
|
|
|
- // {children}
|
|
|
- // </Select>
|
|
|
+ <RangePicker
|
|
|
+ style={{ width: 200 }}
|
|
|
+ disabled={isEdit}
|
|
|
+ value={[
|
|
|
+ this.state.contractTerm[0]
|
|
|
+ ? moment(this.state.contractTerm[0])
|
|
|
+ : null,
|
|
|
+ this.state.contractTerm[1]
|
|
|
+ ? moment(this.state.contractTerm[1])
|
|
|
+ : null,
|
|
|
+ ]}
|
|
|
+ onChange={(data, dataString) => {
|
|
|
+ this.setState({ contractTerm: dataString });
|
|
|
+ }}
|
|
|
+ />
|
|
|
}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ {
|
|
|
+ // 审计
|
|
|
+ this.state.addProjectType == "3" &&
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label=""
|
|
|
+ >
|
|
|
+ <span style={{ color: "red" }}>注:派单年度的上年度总资产和收入。如,当前为2022年,那么需要填写2021年的总资产和收入!</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ label="企业上年度总资本(万元)"
|
|
|
+ {...formItemLayout}
|
|
|
+ >
|
|
|
+ <Input
|
|
|
+ type='number'
|
|
|
+ placeholder=""
|
|
|
+ value={this.state.lastYearCapital}
|
|
|
+ style={{ width: "200px" }}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ lastYearCapital: e.target.value });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ label="企业上年度总收入(万元)"
|
|
|
+ {...formItemLayout}
|
|
|
+ >
|
|
|
+ <Input
|
|
|
+ type='number'
|
|
|
+ placeholder=""
|
|
|
+ value={this.state.lastYearIncome}
|
|
|
+ style={{ width: "200px" }}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ lastYearIncome: e.target.value });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
}
|
|
@@ -997,16 +1006,17 @@ class NewAddProject extends Component {
|
|
|
wrapperCol={{ span: 16 }}
|
|
|
label="项目说明"
|
|
|
>
|
|
|
- {readOnly ? this.state.taskComment :
|
|
|
+ {
|
|
|
<Input
|
|
|
type="textarea"
|
|
|
placeholder=""
|
|
|
- autosize={{ minRows: 4 }}
|
|
|
+ autosize={{ minRows: 3 }}
|
|
|
value={this.state.taskComment}
|
|
|
onChange={(e) => {
|
|
|
this.setState({ taskComment: e.target.value });
|
|
|
}}
|
|
|
- />}
|
|
|
+ />
|
|
|
+ }
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
}
|
|
@@ -1018,12 +1028,7 @@ class NewAddProject extends Component {
|
|
|
{...formItemLayout}
|
|
|
label="企业要求申报批次"
|
|
|
>
|
|
|
- {readOnly ? (
|
|
|
- this.state.declarationBatch === 1 ? '第一批' :
|
|
|
- this.state.declarationBatch === 2 ? '第二批' :
|
|
|
- this.state.declarationBatch === 3 ? '第三批' :
|
|
|
- this.state.declarationBatch === 4 ? '第四批' : '未知'
|
|
|
- ) :
|
|
|
+ {
|
|
|
<Select
|
|
|
placeholder="请选择企业要求申报批次"
|
|
|
style={{ width: "200px" }}
|
|
@@ -1044,8 +1049,9 @@ class NewAddProject extends Component {
|
|
|
<Select.Option value={4}>
|
|
|
第四批
|
|
|
</Select.Option>
|
|
|
- </Select>}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ </Select>
|
|
|
+ }
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -1053,25 +1059,24 @@ class NewAddProject extends Component {
|
|
|
label="申报年份"
|
|
|
>
|
|
|
{
|
|
|
- readOnly ? this.state.serviceYear :
|
|
|
- <Select
|
|
|
- style={{ width: '200px' }}
|
|
|
- placeholder="请选择申报年份"
|
|
|
- value={this.state.serviceYear}
|
|
|
- onChange={e => {
|
|
|
- this.setState({
|
|
|
- serviceYear: e,
|
|
|
- })
|
|
|
- }}
|
|
|
- >
|
|
|
- {
|
|
|
- vipYear.map(its => (
|
|
|
- <Option key={its}>{its}</Option>
|
|
|
- ))
|
|
|
- }
|
|
|
- </Select>
|
|
|
+ <Select
|
|
|
+ style={{ width: '200px' }}
|
|
|
+ placeholder="请选择申报年份"
|
|
|
+ value={this.state.serviceYear}
|
|
|
+ onChange={e => {
|
|
|
+ this.setState({
|
|
|
+ serviceYear: e,
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {
|
|
|
+ vipYear.map(its => (
|
|
|
+ <Option key={its}>{its}</Option>
|
|
|
+ ))
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
}
|
|
@@ -1083,25 +1088,24 @@ class NewAddProject extends Component {
|
|
|
{...formItemLayout}
|
|
|
label="是否包含认证费用"
|
|
|
>
|
|
|
- {readOnly ? (
|
|
|
- this.state.ifCertificationFee == "1" ? '包含' :
|
|
|
- this.state.ifCertificationFee == "0" ? '不包含' : '未知'
|
|
|
- ) : <Select
|
|
|
- placeholder="请选择是否包含认证费用"
|
|
|
- style={{ width: "200px" }}
|
|
|
- value={this.state.ifCertificationFee}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ ifCertificationFee: e });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Select.Option value={"0"}>否</Select.Option>
|
|
|
- <Select.Option value={"1"}>是</Select.Option>
|
|
|
- </Select>}
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ {
|
|
|
+ <Select
|
|
|
+ placeholder="请选择是否包含认证费用"
|
|
|
+ style={{ width: "200px" }}
|
|
|
+ value={this.state.ifCertificationFee}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ ifCertificationFee: e });
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Select.Option value={"0"}>否</Select.Option>
|
|
|
+ <Select.Option value={"1"}>是</Select.Option>
|
|
|
+ </Select>
|
|
|
+ }
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
</div> : null
|
|
|
}
|
|
|
- {((!readOnly && isVip != 6) || (isVip == 6 && !isEdit)) &&
|
|
|
+ {((isVip != 6) || (isVip == 6 && !isEdit)) &&
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
wrapperCol={{ span: 12, offset: 8 }}
|
|
@@ -1309,7 +1313,7 @@ class NewAddProject extends Component {
|
|
|
fileList={this.getOrgCodeUrl}
|
|
|
pictureUrl={this.state.orgCodeUrl}
|
|
|
/>
|
|
|
- {!readOnly && <span className="mandatory">*</span>}
|
|
|
+ {<span className="mandatory">*</span>}
|
|
|
</FormItem>
|
|
|
<div style={{ color: "red", marginLeft: 144, marginBottom: 15 }}>
|
|
|
特批需上传附件图,请上传客户同意我方继续服务并安排给我司付款的聊天记录截图,
|