|
@@ -34,7 +34,6 @@ import {
|
|
|
orderTypes,
|
|
|
customerType,
|
|
|
jiedian,
|
|
|
- tepi,
|
|
|
boutique,
|
|
|
} from "../../../dataDic.js";
|
|
|
import {
|
|
@@ -55,7 +54,7 @@ import { changeType, getChangeType } from "./changeComponent/changeDetailYxgly";
|
|
|
import ImgList from "../../../common/imgList";
|
|
|
import OrderItemStatus from "../../../common/orderItemStatus";
|
|
|
import EnterpriseNameChange from "../../../common/enterpriseNameChange";
|
|
|
-// const Options = Select.Option;
|
|
|
+import ProjectOperation from '.././../../common/projectOperation';
|
|
|
const Option = AutoComplete.Option;
|
|
|
const confirm = Modal.confirm;
|
|
|
|
|
@@ -151,6 +150,8 @@ const NewService = Form.create()(
|
|
|
},
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
+ patentType:'',
|
|
|
+ patentTypeList:[],
|
|
|
rotateDeg: 0,
|
|
|
isCaoGao: false,
|
|
|
cuiFlag: false,
|
|
@@ -1619,6 +1620,23 @@ const NewService = Form.create()(
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
+ getpatentTypeList() {
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + '/api/admin/orderProject/getPatentType',
|
|
|
+ success: function (data) {
|
|
|
+ if (data.error.length === 0) {
|
|
|
+ this.setState({
|
|
|
+ patentTypeList:data.data
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ }.bind(this)
|
|
|
+ });
|
|
|
+ },
|
|
|
departmentList() {
|
|
|
this.setState({
|
|
|
loading: true,
|
|
@@ -2368,15 +2386,11 @@ const NewService = Form.create()(
|
|
|
|
|
|
nextCancel() {
|
|
|
this.setState({
|
|
|
- addnextVisible: false,
|
|
|
- changeVisible: false,
|
|
|
- displayFees: "none",
|
|
|
- officialCost: "", //是否有官费
|
|
|
- costReduction: "", //是否有费减
|
|
|
- addProjectType: "",
|
|
|
- ifCertificationFee: "",//是否包含认证费用
|
|
|
- isIso: false,//是否为贯标项目
|
|
|
- declarationBatch: 1,
|
|
|
+ projectOperationVisible: false,
|
|
|
+ gid: "",
|
|
|
+ dataInfor:{},
|
|
|
+ },()=>{
|
|
|
+ this.loadData();
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -2853,197 +2867,16 @@ const NewService = Form.create()(
|
|
|
//点击添加项目明细
|
|
|
addDetailed() {
|
|
|
this.setState({
|
|
|
- gid: "",
|
|
|
- customerArr: [],
|
|
|
- commodityName: "",
|
|
|
- commodityQuantity: "",
|
|
|
- commodityId: "",
|
|
|
- taskComment: "",
|
|
|
- main: undefined,
|
|
|
- commodityPrice: "",
|
|
|
- addState: 1,
|
|
|
- addnextVisible: true,
|
|
|
- dataInfor:{},
|
|
|
- displayFees: "none",
|
|
|
- officialCost: "",
|
|
|
- costReduction: "",
|
|
|
- });
|
|
|
- },
|
|
|
- //新建项目明细保存
|
|
|
- nextSubmit(e) {
|
|
|
- e.preventDefault();
|
|
|
- if (this.state.gid == undefined || !this.state.gid) {
|
|
|
- message.warning("服务名称不匹配!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.state.displayFees=='block') {
|
|
|
- if(this.state.officialCost==''){
|
|
|
- message.warning("请选择官费!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.state.costReduction == "") {
|
|
|
- message.warning("请选择费减!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
- if(isNaN(parseFloat(this.state.commodityPrice))){
|
|
|
- message.warning("请输入正确的金额!");
|
|
|
- this.refs.commodityPrice.focus();
|
|
|
- return false;
|
|
|
- }
|
|
|
- let reg = /^([0]|[1-9][0-9]*)$/;
|
|
|
- if (
|
|
|
- !this.state.commodityQuantity ||
|
|
|
- !reg.test(this.state.commodityQuantity)
|
|
|
- ) {
|
|
|
- message.warning("请输入正确商品数量!");
|
|
|
- this.refs.commodityQuantity.focus();
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!this.state.main) {
|
|
|
- message.warning("请选择是否为主要项目!");
|
|
|
- this.refs.commodityQuantity.focus();
|
|
|
- return false;
|
|
|
- }
|
|
|
- if(this.state.addProjectType === 5 && !this.state.declarationBatch){
|
|
|
- message.warning("请选择企业要求申报批次!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if(this.state.isIso && !this.state.ifCertificationFee){
|
|
|
- message.warning("请选择是否包含认证费用!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- this.setState({
|
|
|
- loading: true,
|
|
|
+ projectOperationVisible: true,
|
|
|
});
|
|
|
- let infor = {
|
|
|
- commodityId: this.state.gid, //商品ID
|
|
|
- orderNo: this.props.datauser.orderNo, //订单编号
|
|
|
- commodityName: this.state.commodityName, //商品名称
|
|
|
- commodityQuantity: this.state.commodityQuantity, //商品数量
|
|
|
- commodityPrice: this.state.commodityPrice, //签单总价
|
|
|
- taskComment: this.state.taskComment, //服务说明
|
|
|
-
|
|
|
- main: this.state.main, //是否为主要项目
|
|
|
- officialCost: this.state.displayFees==='block' ? this.state.officialCost : '', //是否有官费
|
|
|
- costReduction: this.state.displayFees==='block' ?this.state.costReduction : '', //是否有费减
|
|
|
- }
|
|
|
- if(this.state.addProjectType === 5){
|
|
|
- infor.declarationBatch = this.state.declarationBatch || 1//申报批次
|
|
|
- }
|
|
|
- if(this.state.isIso){
|
|
|
- infor.ifCertificationFee = this.state.ifCertificationFee || undefined;//是否包含认证费用
|
|
|
- }
|
|
|
- let api = this.state.addState
|
|
|
- ? "/api/admin/newOrder/addOrderTask"
|
|
|
- : "/api/bianji";
|
|
|
- $.ajax({
|
|
|
- method: "POST",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + api,
|
|
|
- data: infor,
|
|
|
- }).done(
|
|
|
- function (data) {
|
|
|
- this.setState({
|
|
|
- loading: false,
|
|
|
- });
|
|
|
- if (!data.error.length) {
|
|
|
- message.success("保存成功!");
|
|
|
- this.nextCancel();
|
|
|
- //this.loaduser(this.props.datauser);
|
|
|
- this.loadData();
|
|
|
- } else {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- }
|
|
|
- }.bind(this)
|
|
|
- );
|
|
|
},
|
|
|
//点击打卡项目详情
|
|
|
tableRowClick(record) {
|
|
|
- if (record.type=='1'){
|
|
|
- this.setState({
|
|
|
- displayFees: "block",
|
|
|
- costReduction: record.costReduction,
|
|
|
- officialCost: record.officialCost,
|
|
|
- });
|
|
|
- }else{
|
|
|
- this.setState({
|
|
|
- displayFees: "none",
|
|
|
- });
|
|
|
- }
|
|
|
this.setState({
|
|
|
- jid: record.id, //项目ID
|
|
|
- kid: record.commodityId, //商品ID
|
|
|
- commodityName: record.commodityName, //项目名称
|
|
|
- commodityPrice: record.commodityPrice, //金额
|
|
|
- commodityQuantity: record.commodityQuantity, //数量
|
|
|
- taskComment: record.taskComment, //备注
|
|
|
- main: record.main.toString(), //是否为主要
|
|
|
- addState: 0,
|
|
|
- addnextVisible: true,
|
|
|
+ projectOperationVisible:true,
|
|
|
dataInfor:record,
|
|
|
- addProjectType: record.type,
|
|
|
- declarationBatch: record.declarationBatch || 1,//申报批次(只有高新有)
|
|
|
- ifCertificationFee: isNaN(parseInt(record.ifCertificationFee)) ? '' : record.ifCertificationFee,//是否包含认证费
|
|
|
- isIso: record.commodityName.indexOf("贯标") !== -1,
|
|
|
- });
|
|
|
- },
|
|
|
- //修改项目详情
|
|
|
- tabRowSave(e) {
|
|
|
- e.preventDefault();
|
|
|
- if(isNaN(parseFloat(this.state.commodityPrice))){
|
|
|
- message.warning("请输入正确的金额!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- let reg = /^([0]|[1-9][0-9]*)$/;
|
|
|
- if (
|
|
|
- !this.state.commodityQuantity ||
|
|
|
- !reg.test(this.state.commodityQuantity)
|
|
|
- ) {
|
|
|
- message.warning("请输入正确商品数量!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!this.state.main) {
|
|
|
- message.warning("请选择是否为主要项目!");
|
|
|
- this.refs.commodityQuantity.focus();
|
|
|
- return false;
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- method: "POST",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/newOrder/updateOrderTask",
|
|
|
- data: {
|
|
|
- id: this.state.jid, //项目ID
|
|
|
- commodityId: this.state.kid, //商品ID
|
|
|
- orderNo: this.props.datauser.orderNo, //订单编号
|
|
|
- main: this.state.main, //是否为主要
|
|
|
- commodityPrice: this.state.commodityPrice, //金额
|
|
|
- commodityQuantity: this.state.commodityQuantity, //数量
|
|
|
- taskComment: this.state.taskComment, //备注
|
|
|
- officialCost: this.state.officialCost, //是否有官费
|
|
|
- costReduction: this.state.costReduction, //是否有费减
|
|
|
- declarationBatch: this.state.declarationBatch || undefined,//申报批次
|
|
|
- ifCertificationFee: isNaN(parseInt(this.state.ifCertificationFee)) ? undefined : this.state.ifCertificationFee,
|
|
|
- },
|
|
|
- }).done(
|
|
|
- function (data) {
|
|
|
- this.setState({
|
|
|
- loading: false,
|
|
|
- });
|
|
|
- if (!data.error.length) {
|
|
|
- message.success("保存成功!");
|
|
|
- this.nextCancel();
|
|
|
- //this.loaduser(this.props.datauser);
|
|
|
- this.loadData();
|
|
|
- } else {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- }
|
|
|
- }.bind(this)
|
|
|
- );
|
|
|
+ })
|
|
|
},
|
|
|
-
|
|
|
//签单时间选择
|
|
|
selTime(e, index) {
|
|
|
this.setState({
|
|
@@ -3324,6 +3157,7 @@ const NewService = Form.create()(
|
|
|
},
|
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
+ this.getpatentTypeList();
|
|
|
//props改变时触发
|
|
|
this.state.visible = nextProps.showDesc;
|
|
|
this.state.signBillVisible = nextProps.signBillVisible;
|
|
@@ -6253,562 +6087,6 @@ const NewService = Form.create()(
|
|
|
</Modal>
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
- visible={this.state.addnextVisible}
|
|
|
- onOk={this.nextCancel}
|
|
|
- onCancel={this.nextCancel}
|
|
|
- width="800px"
|
|
|
- title={this.state.addState ? "添加项目任务" : "项目任务详情"}
|
|
|
- footer=""
|
|
|
- className="admin-desc-content"
|
|
|
- >
|
|
|
- <Form
|
|
|
- layout="horizontal"
|
|
|
- onSubmit={this.nextSubmit}
|
|
|
- // id="demand-form"
|
|
|
- >
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- {this.state.addState ? (
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="服务名称"
|
|
|
- >
|
|
|
- <AutoComplete
|
|
|
- className="certain-category-search"
|
|
|
- dropdownClassName="certain-category-search-dropdown"
|
|
|
- dropdownMatchSelectWidth={false}
|
|
|
- dropdownStyle={{ width: 200 }}
|
|
|
- style={{ width: "200px" }}
|
|
|
- dataSource={options}
|
|
|
- placeholder="输入服务名称"
|
|
|
- value={this.state.commodityName}
|
|
|
- onChange={this.httpChange}
|
|
|
- filterOption={true}
|
|
|
- onSelect={this.selectAuto}
|
|
|
- >
|
|
|
- <Input />
|
|
|
- </AutoComplete>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
-
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="服务数量"
|
|
|
- >
|
|
|
- <Input
|
|
|
- placeholder="请输入服务数量"
|
|
|
- value={this.state.commodityQuantity}
|
|
|
- style={{ width: "200px" }}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ commodityQuantity: e.target.value });
|
|
|
- }}
|
|
|
- ref="commodityQuantity"
|
|
|
- />
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="官费:"
|
|
|
- style={{
|
|
|
- display: this.state.displayFees,
|
|
|
- marginLeft: "55px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span style={{ color: "red", marginRight: "27px" }}>
|
|
|
- *
|
|
|
- </span>
|
|
|
- <Radio.Group
|
|
|
- value={this.state.officialCost}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ officialCost: e.target.value });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Radio value="1">含官费</Radio>
|
|
|
- <Radio value="0">不含官费</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="费减:"
|
|
|
- style={{
|
|
|
- display: this.state.displayFees,
|
|
|
- marginLeft: "55px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span style={{ color: "red", marginRight: "27px" }}>
|
|
|
- *
|
|
|
- </span>
|
|
|
- <Radio.Group
|
|
|
- value={this.state.costReduction}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ costReduction: e.target.value });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Radio value="1">有费减</Radio>
|
|
|
- <Radio value="0">无费减</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="实签价格(万元)"
|
|
|
- >
|
|
|
- <Input
|
|
|
- placeholder="请输入实签价格"
|
|
|
- value={this.state.commodityPrice}
|
|
|
- style={{ width: "200px" }}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ commodityPrice: e.target.value });
|
|
|
- }}
|
|
|
- ref="commodityPrice"
|
|
|
- />
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="主要业务"
|
|
|
- >
|
|
|
- <Select
|
|
|
- placeholder="选择是否为主要业务"
|
|
|
- style={{ width: "200px" }}
|
|
|
- value={this.state.main}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ main: e });
|
|
|
- }}
|
|
|
- >
|
|
|
- {boutique.map(function (item) {
|
|
|
- return (
|
|
|
- <Select.Option key={item.value}>
|
|
|
- {item.key}
|
|
|
- </Select.Option>
|
|
|
- );
|
|
|
- })}
|
|
|
- </Select>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 16 }}
|
|
|
- label="服务说明"
|
|
|
- >
|
|
|
- <Input
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入服务说明"
|
|
|
- value={this.state.taskComment}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ taskComment: e.target.value });
|
|
|
- }}
|
|
|
- />
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
|
|
|
- {this.state.addProjectType === 5 ?
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="企业要求申报批次"
|
|
|
- >
|
|
|
- <Select
|
|
|
- placeholder="请选择企业要求申报批次"
|
|
|
- style={{ width: "200px" }}
|
|
|
- value={this.state.declarationBatch}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ declarationBatch: e });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Select.Option value={1}>
|
|
|
- 第一批
|
|
|
- </Select.Option>
|
|
|
- <Select.Option value={2}>
|
|
|
- 第二批
|
|
|
- </Select.Option>
|
|
|
- <Select.Option value={3}>
|
|
|
- 第三批
|
|
|
- </Select.Option>
|
|
|
- <Select.Option value={4}>
|
|
|
- 第四批
|
|
|
- </Select.Option>
|
|
|
- </Select>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- </div>: null
|
|
|
- }
|
|
|
- {
|
|
|
- this.state.isIso?<div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="是否包含认证费用"
|
|
|
- >
|
|
|
- <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
|
|
|
- }
|
|
|
- <FormItem
|
|
|
- wrapperCol={{ span: 12, offset: 4 }}
|
|
|
- className="half-middle"
|
|
|
- >
|
|
|
- <Button
|
|
|
- className="submitSave"
|
|
|
- type="primary"
|
|
|
- htmlType="submit"
|
|
|
- >
|
|
|
- 保存
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- className="submitSave"
|
|
|
- type="ghost"
|
|
|
- onClick={this.nextCancel}
|
|
|
- >
|
|
|
- 取消
|
|
|
- </Button>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- ) : (
|
|
|
- <div className="clearfix">
|
|
|
- {this.state.processStatus == 0 ? (
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目名称"
|
|
|
- >
|
|
|
- <span>{this.state.commodityName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目数量"
|
|
|
- >
|
|
|
- <Input
|
|
|
- placeholder="请输入数量"
|
|
|
- value={this.state.commodityQuantity}
|
|
|
- style={{ width: "200px" }}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({
|
|
|
- commodityQuantity: e.target.value,
|
|
|
- });
|
|
|
- }}
|
|
|
- />
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="官费:"
|
|
|
- style={{
|
|
|
- display: this.state.displayFees,
|
|
|
- marginLeft: "55px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span style={{ color: "red", marginRight: "27px" }}>
|
|
|
- *
|
|
|
- </span>
|
|
|
- <Radio.Group
|
|
|
- value={this.state.officialCost}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ officialCost: e.target.value });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Radio value={1}>含官费</Radio>
|
|
|
- <Radio value={0}>不含官费</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="费减:"
|
|
|
- style={{
|
|
|
- display: this.state.displayFees,
|
|
|
- marginLeft: "55px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <span style={{ color: "red", marginRight: "27px" }}>
|
|
|
- *
|
|
|
- </span>
|
|
|
- <Radio.Group
|
|
|
- value={this.state.costReduction}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ costReduction: e.target.value });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Radio value={1}>有费减</Radio>
|
|
|
- <Radio value={0}>无费减</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="金额(万元)"
|
|
|
- >
|
|
|
- <Input
|
|
|
- placeholder="请输入签单金额"
|
|
|
- value={this.state.commodityPrice}
|
|
|
- style={{ width: "200px" }}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ commodityPrice: e.target.value });
|
|
|
- }}
|
|
|
- />
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="主要项目"
|
|
|
- >
|
|
|
- <Select
|
|
|
- placeholder="选择是否为主要业务"
|
|
|
- style={{ width: "200px" }}
|
|
|
- value={this.state.main}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ main: e });
|
|
|
- }}
|
|
|
- >
|
|
|
- {boutique.map(function (item) {
|
|
|
- return (
|
|
|
- <Select.Option key={item.value}>
|
|
|
- {item.key}
|
|
|
- </Select.Option>
|
|
|
- );
|
|
|
- })}
|
|
|
- </Select>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 16 }}
|
|
|
- label="服务说明"
|
|
|
- >
|
|
|
- <Input
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入服务说明"
|
|
|
- value={this.state.taskComment}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ taskComment: e.target.value });
|
|
|
- }}
|
|
|
- />
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- {this.state.addProjectType === 5 ?
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="企业要求申报批次"
|
|
|
- >
|
|
|
- <Select
|
|
|
- placeholder="请选择企业要求申报批次"
|
|
|
- style={{ width: "200px" }}
|
|
|
- value={this.state.declarationBatch}
|
|
|
- onChange={(e) => {
|
|
|
- this.setState({ declarationBatch: e });
|
|
|
- }}
|
|
|
- >
|
|
|
- <Select.Option value={1}>
|
|
|
- 第一批
|
|
|
- </Select.Option>
|
|
|
- <Select.Option value={2}>
|
|
|
- 第二批
|
|
|
- </Select.Option>
|
|
|
- <Select.Option value={3}>
|
|
|
- 第三批
|
|
|
- </Select.Option>
|
|
|
- <Select.Option value={4}>
|
|
|
- 第四批
|
|
|
- </Select.Option>
|
|
|
- </Select>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- </div>: null
|
|
|
- }
|
|
|
- {
|
|
|
- this.state.isIso ?<div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="认证费用"
|
|
|
- >
|
|
|
- <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
|
|
|
- }
|
|
|
- <FormItem
|
|
|
- wrapperCol={{ span: 12, offset: 4 }}
|
|
|
- className="half-middle"
|
|
|
- >
|
|
|
- <Button
|
|
|
- className="submitSave"
|
|
|
- type="primary"
|
|
|
- onClick={this.tabRowSave}
|
|
|
- >
|
|
|
- 保存
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- className="submitSave"
|
|
|
- type="ghost"
|
|
|
- onClick={this.nextCancel}
|
|
|
- >
|
|
|
- 取消
|
|
|
- </Button>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- ) : (
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目名称"
|
|
|
- >
|
|
|
- <span>{this.state.commodityName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目数量"
|
|
|
- >
|
|
|
- <span>{this.state.commodityQuantity}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="官费"
|
|
|
- style={{ display: this.state.displayFees }}
|
|
|
- >
|
|
|
- <span>
|
|
|
- {this.state.officialCost == 0 ? "无官费" : "有官费"}
|
|
|
- </span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="费减"
|
|
|
- style={{ display: this.state.displayFees }}
|
|
|
- >
|
|
|
- <span>
|
|
|
- {this.state.costReduction == 0
|
|
|
- ? "无费减"
|
|
|
- : "有费减"}
|
|
|
- </span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="金额(万元)"
|
|
|
- >
|
|
|
- <span>{this.state.commodityPrice}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="主要项目"
|
|
|
- >
|
|
|
- <span>{getboutique(this.state.main)}</span>
|
|
|
- </FormItem>
|
|
|
- {this.state.dataInfor && this.state.dataInfor.type === 5 && <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="企业申报批次"
|
|
|
- >
|
|
|
- <span>
|
|
|
- {
|
|
|
- this.state.declarationBatch === 1 ? '第一批' :
|
|
|
- this.state.declarationBatch === 2 ? '第二批' :
|
|
|
- this.state.declarationBatch === 3 ? '第三批' :
|
|
|
- this.state.declarationBatch === 4 ? '第四批' : '未知'
|
|
|
- }
|
|
|
- </span>
|
|
|
- </FormItem>}
|
|
|
- {this.state.isIso && <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="认证费"
|
|
|
- >
|
|
|
- <span>
|
|
|
- {
|
|
|
- this.state.ifCertificationFee === 1 ? '包含' :
|
|
|
- this.state.ifCertificationFee === 0 ? '不包含' :'未知'
|
|
|
- }
|
|
|
- </span>
|
|
|
- </FormItem> }
|
|
|
- {/*{this.state.isIso && this.state.ifCertificationFee === 1 ?<FormItem*/}
|
|
|
- {/* className="half-item"*/}
|
|
|
- {/* {...formItemLayout}*/}
|
|
|
- {/* label="认证费(万元)"*/}
|
|
|
- {/*>*/}
|
|
|
- {/* <span>{this.state.ifCertificationFee || '暂无'}</span>*/}
|
|
|
- {/*</FormItem> : null}*/}
|
|
|
- {/*{this.state.isIso && this.state.ifCertificationFee === 1 ? <FormItem*/}
|
|
|
- {/* className="half-item"*/}
|
|
|
- {/* {...formItemLayout}*/}
|
|
|
- {/* label=""*/}
|
|
|
- {/*/> : null}*/}
|
|
|
- {/*{this.state.isIso && this.state.ifCertificationFee === 1 ? <FormItem*/}
|
|
|
- {/* className="half-item"*/}
|
|
|
- {/* {...formItemLayout}*/}
|
|
|
- {/* label="付款公司名称"*/}
|
|
|
- {/*>*/}
|
|
|
- {/* <span>{this.state.certificationCorporate || '暂无'}</span>*/}
|
|
|
- {/*</FormItem>:null}*/}
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 16 }}
|
|
|
- label="服务说明"
|
|
|
- >
|
|
|
- <span>{this.state.taskComment}</span>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- )}
|
|
|
- </div>
|
|
|
- )}
|
|
|
- </Spin>
|
|
|
- </Form>
|
|
|
- </Modal>
|
|
|
- <Modal
|
|
|
- maskClosable={false}
|
|
|
visible={this.state.changeVisible}
|
|
|
onOk={this.nextCancel}
|
|
|
onCancel={this.nextCancel}
|
|
@@ -6864,6 +6142,39 @@ const NewService = Form.create()(
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 14 }}
|
|
|
+ label="专利类型:"
|
|
|
+ style={{
|
|
|
+ display: this.state.displayFees,
|
|
|
+ marginLeft: "55px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Select
|
|
|
+ placeholder="请选择专利类型"
|
|
|
+ style={{ width: "200px" }}
|
|
|
+ value={this.state.patentType}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ patentType: e });
|
|
|
+ if(e === 1){
|
|
|
+ this.setState({
|
|
|
+ costReduction: ''
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {this.state.patentTypeList.map(function (v,k) {
|
|
|
+ return (
|
|
|
+ <Select.Option key={k} value={v.id}>{v.name}</Select.Option>
|
|
|
+ );
|
|
|
+ })}
|
|
|
+ </Select>
|
|
|
+ <span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
+ *
|
|
|
+ </span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 14 }}
|
|
|
label="官费:"
|
|
@@ -6879,6 +6190,11 @@ const NewService = Form.create()(
|
|
|
value={this.state.officialCost}
|
|
|
onChange={(e) => {
|
|
|
this.setState({ officialCost: e.target.value });
|
|
|
+ if(e.target.value === '0'){
|
|
|
+ this.setState({
|
|
|
+ costReduction: ''
|
|
|
+ })
|
|
|
+ }
|
|
|
}}
|
|
|
>
|
|
|
<Radio value="1">含官费</Radio>
|
|
@@ -6899,6 +6215,7 @@ const NewService = Form.create()(
|
|
|
*
|
|
|
</span>
|
|
|
<Radio.Group
|
|
|
+ disabled={this.state.officialCost === '0' || this.state.patentType === 1}
|
|
|
value={this.state.costReduction}
|
|
|
onChange={(e) => {
|
|
|
this.setState({ costReduction: e.target.value });
|
|
@@ -7161,6 +6478,13 @@ const NewService = Form.create()(
|
|
|
visible={this.state.rizhivisible}
|
|
|
loading={this.state.loading}
|
|
|
/>
|
|
|
+ {this.state.projectOperationVisible ? <ProjectOperation
|
|
|
+ readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
|
|
|
+ orderNo={this.props.datauser.orderNo}
|
|
|
+ visible={this.state.projectOperationVisible}
|
|
|
+ dataInfor={this.state.dataInfor}
|
|
|
+ onCancel={this.nextCancel}
|
|
|
+ /> : null}
|
|
|
</div>
|
|
|
);
|
|
|
},
|