|
@@ -12,7 +12,8 @@ import {
|
|
|
Popconfirm,
|
|
|
Modal,
|
|
|
AutoComplete,
|
|
|
- DatePicker
|
|
|
+ DatePicker,
|
|
|
+ Radio,
|
|
|
} from "antd";
|
|
|
import $ from "jquery/src/ajax";
|
|
|
import moment from "moment";
|
|
@@ -29,6 +30,8 @@ import {
|
|
|
} from "@/dataDic.js";
|
|
|
import { moneyVerify } from "@/tools.js"
|
|
|
import EnterpriseNameChange from "../../../../common/enterpriseNameChange";
|
|
|
+// F:\developmentFile\kede-client\js\component\common\projectOperation\index.jsx
|
|
|
+import ProjectOperation from "../../../../common/projectOperation";
|
|
|
const FormItem = Form.Item;
|
|
|
const confirm = Modal.confirm;
|
|
|
const Option = AutoComplete.Option;
|
|
@@ -213,9 +216,9 @@ class ChangeApply extends Component {
|
|
|
record.customizeTimes = "";
|
|
|
record.customizeName = "";
|
|
|
}
|
|
|
- if(e == 0){
|
|
|
+ if (e == 0) {
|
|
|
record.dunTypeCustom = true;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
record.dunTypeCustom = false;
|
|
|
}
|
|
|
if (e != 1) {
|
|
@@ -352,7 +355,7 @@ class ChangeApply extends Component {
|
|
|
if (record.dunTypeName) {
|
|
|
if (record.appropriationRatio) {
|
|
|
return <span>{record.appropriationRatio}(拨款比例)</span>;
|
|
|
- } else{
|
|
|
+ } else {
|
|
|
return <span>{text}</span>;
|
|
|
}
|
|
|
}
|
|
@@ -417,26 +420,26 @@ class ChangeApply extends Component {
|
|
|
return <span>{text}</span>;
|
|
|
}
|
|
|
return (
|
|
|
- <div>
|
|
|
- {
|
|
|
- record.dunType != 0 ?
|
|
|
- <Select
|
|
|
- placeholder="请选择年限"
|
|
|
- style={{ width: "150px" }}
|
|
|
- disabled={this.state.yearFlag ? true : false}
|
|
|
- onChange={(e) => {
|
|
|
- record.effectiveCount = e;
|
|
|
- }}
|
|
|
- >
|
|
|
- {/* <Select.Option key={null}>无</Select.Option> */}
|
|
|
- <Select.Option key={1}>一年</Select.Option>
|
|
|
- <Select.Option key={3}>两年</Select.Option>
|
|
|
- <Select.Option key={5}>三年</Select.Option>
|
|
|
- <Select.Option key={7}>四年</Select.Option>
|
|
|
- <Select.Option key={9}>五年</Select.Option>
|
|
|
- </Select> : <div/>
|
|
|
- }
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ {
|
|
|
+ record.dunType != 0 ?
|
|
|
+ <Select
|
|
|
+ placeholder="请选择年限"
|
|
|
+ style={{ width: "150px" }}
|
|
|
+ disabled={this.state.yearFlag ? true : false}
|
|
|
+ onChange={(e) => {
|
|
|
+ record.effectiveCount = e;
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {/* <Select.Option key={null}>无</Select.Option> */}
|
|
|
+ <Select.Option key={1}>一年</Select.Option>
|
|
|
+ <Select.Option key={3}>两年</Select.Option>
|
|
|
+ <Select.Option key={5}>三年</Select.Option>
|
|
|
+ <Select.Option key={7}>四年</Select.Option>
|
|
|
+ <Select.Option key={9}>五年</Select.Option>
|
|
|
+ </Select> : <div />
|
|
|
+ }
|
|
|
+ </div>
|
|
|
);
|
|
|
},
|
|
|
},
|
|
@@ -615,6 +618,8 @@ class ChangeApply extends Component {
|
|
|
},
|
|
|
},
|
|
|
],
|
|
|
+ patentTypeList: [],
|
|
|
+ displayFees: "none",
|
|
|
};
|
|
|
this.departmentList = this.departmentList.bind(this);
|
|
|
this.changeApply = this.changeApply.bind(this);
|
|
@@ -646,6 +651,7 @@ class ChangeApply extends Component {
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
+ this.getpatentTypeList()
|
|
|
}
|
|
|
nextCancel() {
|
|
|
this.setState({
|
|
@@ -683,6 +689,24 @@ class ChangeApply extends Component {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ 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)
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
//服务值改变时请求客户名称
|
|
|
httpChange(e) {
|
|
|
this.state.gid = "";
|
|
@@ -721,12 +745,23 @@ class ChangeApply extends Component {
|
|
|
kid = item;
|
|
|
}
|
|
|
});
|
|
|
+ if (kid.type == "1") {
|
|
|
+ this.setState({
|
|
|
+ displayFees: "block",
|
|
|
+ patentTransfer: kid.patentTransfer,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.setState({
|
|
|
+ displayFees: "none",
|
|
|
+ });
|
|
|
+ }
|
|
|
this.setState({
|
|
|
commodityName: value,
|
|
|
gid: kid.id,
|
|
|
+ addProjectType: kid.type,
|
|
|
//commodityPrice:kid.price==0?kid.price.toString():kid.price,
|
|
|
- commodityFirstPayment:
|
|
|
- kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment
|
|
|
+ commodityFirstPayment: kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment,
|
|
|
+ isIso: value.indexOf("贯标") !== -1,// 是否为贯标项目
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -864,7 +899,7 @@ class ChangeApply extends Component {
|
|
|
// });
|
|
|
// }
|
|
|
|
|
|
- // 拆分详细
|
|
|
+ // 拆分详细
|
|
|
showRes(record) {
|
|
|
this.setState({
|
|
|
resVisible: true,
|
|
@@ -929,7 +964,7 @@ class ChangeApply extends Component {
|
|
|
},
|
|
|
success: function (data) {
|
|
|
this.setState({
|
|
|
- loading:false
|
|
|
+ loading: false
|
|
|
})
|
|
|
if (data.data && data.data.length) {
|
|
|
if (id) {
|
|
@@ -946,7 +981,7 @@ class ChangeApply extends Component {
|
|
|
this.setState({
|
|
|
loading: false,
|
|
|
});
|
|
|
- }else if(data.error && data.error.length) {
|
|
|
+ } else if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message)
|
|
|
this.setState({
|
|
|
loading: false,
|
|
@@ -1180,7 +1215,7 @@ class ChangeApply extends Component {
|
|
|
if (isNaN(parseInt(record.money)) && !record.boStatus) {
|
|
|
message.warning("请填写金额");
|
|
|
return;
|
|
|
- }else if((isNaN(parseInt(record.money)) && record.boStatus)){
|
|
|
+ } else if ((isNaN(parseInt(record.money)) && record.boStatus)) {
|
|
|
message.warning("请填写比例");
|
|
|
return;
|
|
|
}
|
|
@@ -1220,9 +1255,9 @@ class ChangeApply extends Component {
|
|
|
effectiveCount: record.effectiveCount,
|
|
|
cid: this.state.data.id, //变更ID
|
|
|
ustomizeTimes:
|
|
|
- record.dunType == 0 ? record.customizeTimes : undefined,
|
|
|
- customizeName:
|
|
|
- record.dunType == 0 ? record.customizeName : undefined,
|
|
|
+ record.dunType == 0 ? record.customizeTimes : undefined,
|
|
|
+ customizeName:
|
|
|
+ record.dunType == 0 ? record.customizeName : undefined,
|
|
|
}
|
|
|
}).done(
|
|
|
function (data) {
|
|
@@ -1255,10 +1290,10 @@ class ChangeApply extends Component {
|
|
|
waitDay: record.waitDay,
|
|
|
effectiveCount: record.effectiveCount,
|
|
|
cid: this.state.data.id, //变更ID
|
|
|
- customizeTimes:
|
|
|
- record.dunType == 0 ? record.customizeTimes : undefined,
|
|
|
- customizeName:
|
|
|
- record.dunType == 0 ? record.customizeName : undefined,
|
|
|
+ customizeTimes:
|
|
|
+ record.dunType == 0 ? record.customizeTimes : undefined,
|
|
|
+ customizeName:
|
|
|
+ record.dunType == 0 ? record.customizeName : undefined,
|
|
|
}
|
|
|
}).done(
|
|
|
function (data) {
|
|
@@ -1288,16 +1323,16 @@ class ChangeApply extends Component {
|
|
|
message.warning("请选择变更类型");
|
|
|
return false;
|
|
|
}
|
|
|
- if (
|
|
|
- this.state.typeChange == 0 ||
|
|
|
- this.state.typeChange == 1 ||
|
|
|
- this.state.typeChange == 3
|
|
|
- ) {
|
|
|
- if (this.state.settlementAmount < this.state.changeAmount) {
|
|
|
- message.warning("退款金额大于已收款金额");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
+ if (
|
|
|
+ this.state.typeChange == 0 ||
|
|
|
+ this.state.typeChange == 1 ||
|
|
|
+ this.state.typeChange == 3
|
|
|
+ ) {
|
|
|
+ if (this.state.settlementAmount < this.state.changeAmount) {
|
|
|
+ message.warning("退款金额大于已收款金额");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.state.processStatus != 5 || this.state.processStatus != 6) {
|
|
|
message.warning("当前订单流程不能发起变更!");
|
|
|
return false;
|
|
@@ -1382,10 +1417,10 @@ class ChangeApply extends Component {
|
|
|
});
|
|
|
}
|
|
|
submitEditCui(type) {
|
|
|
- if(isNaN(parseFloat(this.state.editCuiMoney))){
|
|
|
- if(type === 1){
|
|
|
+ if (isNaN(parseFloat(this.state.editCuiMoney))) {
|
|
|
+ if (type === 1) {
|
|
|
message.warn('请输入比例')
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
message.warn('请输入金额')
|
|
|
}
|
|
|
return;
|
|
@@ -1398,9 +1433,9 @@ class ChangeApply extends Component {
|
|
|
type: this.state.editCuiTid ? 2 : 1,
|
|
|
tid: this.state.editCuiTid,
|
|
|
}
|
|
|
- if(type === 1){
|
|
|
+ if (type === 1) {
|
|
|
data.appropriationRatio = this.state.editCuiMoney;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
data.money = this.state.editCuiMoney;
|
|
|
}
|
|
|
$.ajax({
|
|
@@ -1656,10 +1691,10 @@ class ChangeApply extends Component {
|
|
|
{record.splitStatus == 1 ? (
|
|
|
<Tag
|
|
|
color="#108ee9"
|
|
|
- // onClick={e => {
|
|
|
- // e.stopPropagation();
|
|
|
- // this.showRes(record);
|
|
|
- // }}
|
|
|
+ // onClick={e => {
|
|
|
+ // e.stopPropagation();
|
|
|
+ // this.showRes(record);
|
|
|
+ // }}
|
|
|
>
|
|
|
父项目
|
|
|
</Tag>
|
|
@@ -1669,10 +1704,10 @@ class ChangeApply extends Component {
|
|
|
{record.splitStatus == 2 ? (
|
|
|
<Tag
|
|
|
color="#108ee9"
|
|
|
- // onClick={e => {
|
|
|
- // e.stopPropagation();
|
|
|
- // this.showRes(record);
|
|
|
- // }}
|
|
|
+ // onClick={e => {
|
|
|
+ // e.stopPropagation();
|
|
|
+ // this.showRes(record);
|
|
|
+ // }}
|
|
|
>
|
|
|
子项目
|
|
|
</Tag>
|
|
@@ -1814,9 +1849,9 @@ class ChangeApply extends Component {
|
|
|
>
|
|
|
<span>{data.userName}</span>
|
|
|
<EnterpriseNameChange
|
|
|
- type='journal'
|
|
|
- style={{ marginLeft: 10 }}
|
|
|
- enterpriseId={this.props.orderUid}/>
|
|
|
+ type='journal'
|
|
|
+ style={{ marginLeft: 10 }}
|
|
|
+ enterpriseId={this.props.orderUid} />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
@@ -2270,7 +2305,7 @@ class ChangeApply extends Component {
|
|
|
maskClosable={false}
|
|
|
title={isNaN(parseFloat(this.state.appropriationRatio)) ? "修改催款节点金额" : "修改催款节点比例"}
|
|
|
visible={this.state.editCuiVisible}
|
|
|
- onOk={()=>{
|
|
|
+ onOk={() => {
|
|
|
this.submitEditCui(isNaN(parseFloat(this.state.appropriationRatio)) ? 0 : 1);
|
|
|
}}
|
|
|
okText={"保存"}
|
|
@@ -2300,6 +2335,16 @@ class ChangeApply extends Component {
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
+ {/* {
|
|
|
+ this.state.changeVisible &&
|
|
|
+ <ProjectOperation
|
|
|
+ readOnly={false}
|
|
|
+ orderNo={this.state.data.orderNo}
|
|
|
+ visible={this.state.changeVisible}
|
|
|
+ dataInfor={{}}
|
|
|
+ onCancel={this.nextCancel}
|
|
|
+ />
|
|
|
+ } */}
|
|
|
<Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.changeVisible}
|
|
@@ -2312,9 +2357,7 @@ class ChangeApply extends Component {
|
|
|
>
|
|
|
<Form
|
|
|
layout="horizontal"
|
|
|
- // id="demand-form"
|
|
|
>
|
|
|
- {/* <Spin spinning={this.state.loading}> */}
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
@@ -2355,7 +2398,94 @@ class ChangeApply extends Component {
|
|
|
/>
|
|
|
<span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
|
- <div style={{marginTop: "33px", color : "red", textAlign : "right", position : "relative", top: "-8", left : "0"}}>如会员项目,服务一年,请填写1,服务二年,请填写2,依次类推</div>
|
|
|
+ <div style={{ marginTop: "33px", color: "red", textAlign: "right", position: "relative", top: "-8", left: "0" }}>如会员项目,服务一年,请填写1,服务二年,请填写2,依次类推</div>
|
|
|
+ {!this.state.patentTransfer &&
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 14 }}
|
|
|
+ label="专利类型:"
|
|
|
+ style={{
|
|
|
+ display: this.state.displayFees,
|
|
|
+ marginLeft: "63px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {<Select
|
|
|
+ placeholder="请选择专利类型"
|
|
|
+ style={{ width: "200px" }}
|
|
|
+ value={this.state.patentType}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ patentType: e });
|
|
|
+ if (e !== 0 && e !== 2) {
|
|
|
+ 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="官费:"
|
|
|
+ style={{
|
|
|
+ display: this.state.displayFees,
|
|
|
+ marginLeft: "63px",
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {<Radio.Group
|
|
|
+ value={this.state.officialCost}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ officialCost: e.target.value });
|
|
|
+ if (e.target.value === 0) {
|
|
|
+ this.setState({
|
|
|
+ costReduction: ''
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Radio value={1}>含官费</Radio>
|
|
|
+ <Radio value={0}>不含官费</Radio>
|
|
|
+ </Radio.Group>}
|
|
|
+ <span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
+ *
|
|
|
+ </span>
|
|
|
+ </FormItem>
|
|
|
+ <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 value={1}>有费减</Radio>
|
|
|
+ <Radio value={0}>无费减</Radio>
|
|
|
+ </Radio.Group>}
|
|
|
+ <span style={{ color: "red", marginLeft: "8px" }}>
|
|
|
+ *
|
|
|
+ </span>
|
|
|
+ </FormItem>
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -2411,6 +2541,66 @@ class ChangeApply extends Component {
|
|
|
/>
|
|
|
</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>
|
|
|
+ }
|
|
|
<FormItem
|
|
|
wrapperCol={{ span: 12, offset: 4 }}
|
|
|
className="half-middle"
|
|
@@ -2431,7 +2621,6 @@ class ChangeApply extends Component {
|
|
|
</Button>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- {/* </Spin> */}
|
|
|
</Form>
|
|
|
</Modal>
|
|
|
</Spin>
|