|
@@ -4,7 +4,7 @@ import { boutique } from "../../dataDic";
|
|
|
import $ from "jquery";
|
|
|
import { getboutique, splitUrl } from "../../tools";
|
|
|
import moment from "moment";
|
|
|
-import { vipYear } from "../../dataDic";
|
|
|
+import { vipYear, YearList } from "../../dataDic";
|
|
|
import ImgList from "../imgList";
|
|
|
|
|
|
const FormItem = Form.Item;
|
|
@@ -52,6 +52,7 @@ class newEditProject extends Component {
|
|
|
splitList: [],//子集
|
|
|
addFrom: false,
|
|
|
isMedit: 0,
|
|
|
+ isYear: false,//审计是否需要修改上年度年份
|
|
|
}
|
|
|
this.getpatentTypeList = this.getpatentTypeList.bind(this);
|
|
|
this.setValue = this.setValue.bind(this);
|
|
@@ -122,6 +123,8 @@ class newEditProject extends Component {
|
|
|
ifCertificationFee: isNaN(parseInt(dataInfor.ifCertificationFee)) ? '' : dataInfor.ifCertificationFee,//是否包含认证费
|
|
|
isIso: dataInfor.commodityName.indexOf("贯标") !== -1,
|
|
|
orgCodeUrl: dataInfor.pictureUrl ? splitUrl(dataInfor.pictureUrl, ",", globalConfig.avatarHost + "/upload") : [],//
|
|
|
+ isYear: !dataInfor.lastYear ? true : false,//
|
|
|
+ lastYear: dataInfor.lastYear,//上年度年份
|
|
|
lastYearCapital: dataInfor.lastYearCapital,//上年度总资本
|
|
|
lastYearIncome: dataInfor.lastYearIncome,//上年度总收入
|
|
|
isVip: dataInfor.cSort,
|
|
@@ -160,6 +163,10 @@ class newEditProject extends Component {
|
|
|
message.warning("服务数量与服务年限不符!");
|
|
|
return
|
|
|
}
|
|
|
+ if (this.state.isYear && !this.state.lastYear) {
|
|
|
+ message.warning("请选择上年度年份!");
|
|
|
+ return
|
|
|
+ }
|
|
|
if (isNaN(parseFloat(this.state.lastYearCapital))) {
|
|
|
message.warning("请输入正确的企业上年度总资本!");
|
|
|
return
|
|
@@ -228,6 +235,7 @@ class newEditProject extends Component {
|
|
|
}
|
|
|
if (this.state.addProjectType == "3") {//审计
|
|
|
infor.serviceLife = JSON.stringify(this.state.serviceLife) //服务年限
|
|
|
+ infor.lastYear = this.state.lastYear //上年度年份
|
|
|
infor.lastYearCapital = this.state.lastYearCapital //上年度总资本
|
|
|
infor.lastYearIncome = this.state.lastYearIncome //上年度总收入
|
|
|
}
|
|
@@ -867,6 +875,34 @@ class newEditProject extends Component {
|
|
|
>
|
|
|
<span style={{ color: "red" }}>注:派单年度的上年度总资产和收入。如,当前为2022年,那么需要填写2021年的总资产和收入!</span>
|
|
|
</FormItem>
|
|
|
+ {
|
|
|
+ this.state.isYear && !readOnly &&
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ label="企业上年度年份"
|
|
|
+ {...formItemLayout}
|
|
|
+ >
|
|
|
+ <Select
|
|
|
+ style={{ width: '200px' }}
|
|
|
+ placeholder="请选择年份"
|
|
|
+ value={this.state.lastYear}
|
|
|
+ onChange={e => {
|
|
|
+ this.setState({
|
|
|
+ lastYear: e,
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {
|
|
|
+ YearList.map(its => (
|
|
|
+ <Option key={its}>{its}</Option>
|
|
|
+ ))
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
label="企业上年度总资本(万元)"
|