newEditProject.jsx 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434
  1. import React, { Component } from "react";
  2. import { AutoComplete, Button, Icon, Form, Input, message, Modal, Radio, Select, Spin, Tag, DatePicker } from "antd";
  3. import { boutique } from "../../dataDic";
  4. import $ from "jquery";
  5. import { getboutique, splitUrl } from "../../tools";
  6. import moment from "moment";
  7. import { vipYear, YearList } from "../../dataDic";
  8. import ImgList from "../imgList";
  9. const FormItem = Form.Item;
  10. const Option = Select.Option;
  11. const RadioGroup = Radio.Group;
  12. const confirm = Modal.confirm;
  13. const formItemLayout = {
  14. labelCol: { span: 8 },
  15. wrapperCol: { span: 14 },
  16. };
  17. /**
  18. * 编辑项目 和 查看项目详情
  19. */
  20. class newEditProject extends Component {
  21. constructor(props) {
  22. super(props);
  23. this.state = {
  24. commodityName: '',//项目名称
  25. commodityQuantity: '',//项目数量
  26. patentType: 0,
  27. officialCost: '',
  28. costReduction: '',
  29. commodityPrice: '',//项目价格
  30. main: '',//主要项目 0否 1是
  31. lastYearCapital: '',//上年度总资本
  32. lastYearIncome: '',//上年度总资本
  33. taskComment: '',//项目说明
  34. declarationBatch: '',
  35. ifCertificationFee: '',
  36. displayFees: "none",
  37. customerArr: [],
  38. patentTypeList: [],
  39. loading: false,
  40. orgCodeUrl: [],
  41. patentTransfer: props.dataInfor ? props.dataInfor.patentTransfer : 0, //收否为专利转让 0 否 1 是
  42. serviceLife: [],
  43. isVip: undefined,
  44. histYear: [],
  45. contractTerm: [],//合同期
  46. addyear: undefined,//
  47. isGive: undefined,//是否赠送
  48. splitList: [],//子集
  49. addFrom: false,
  50. isMedit: 0,
  51. isYear: false,//审计是否需要修改上年度年份
  52. }
  53. this.getpatentTypeList = this.getpatentTypeList.bind(this);
  54. this.setValue = this.setValue.bind(this);
  55. }
  56. componentDidMount() {
  57. this.getpatentTypeList();
  58. this.setValue();
  59. }
  60. setValue() {
  61. const { dataInfor, children = "splitList", type = "", readOnly } = this.props;
  62. if (!(dataInfor && Object.keys(dataInfor).length > 0)) { return; }
  63. if (type == "change") {
  64. // 变更编辑 taskType 0通用 1专利 2软著 3审计 4双软 5高新 6商标
  65. if (dataInfor.taskType === 1) {
  66. this.setState({
  67. displayFees: "block",
  68. costReduction: dataInfor.costReduction,
  69. officialCost: dataInfor.officialCost,
  70. patentType: dataInfor.patentType ? dataInfor.patentType : 0,
  71. });
  72. } else {
  73. this.setState({
  74. displayFees: "none",
  75. });
  76. }
  77. } else {
  78. // 正常编辑 type 0通用 1专利 2软著 3审计 4双软 5高新 6商标
  79. if (dataInfor.type === 1) {
  80. this.setState({
  81. displayFees: "block",
  82. costReduction: dataInfor.costReduction,
  83. officialCost: dataInfor.officialCost,
  84. patentType: dataInfor.patentType ? dataInfor.patentType : 0,
  85. });
  86. } else {
  87. this.setState({
  88. displayFees: "none",
  89. });
  90. }
  91. }
  92. let llist = []
  93. if (dataInfor[children] && dataInfor[children].length > 0) {
  94. for (var i = 0; i < dataInfor[children].length; i++) {
  95. // if (dataInfor.splitList[i].commodityId == dataInfor.commodityId) {
  96. // llist.push(dataInfor.splitList[i].serviceYear != dataInfor.serviceYear && dataInfor.splitList[i].serviceYear)
  97. // }
  98. if (dataInfor[children][i].type != 3) {
  99. llist.push(dataInfor[children][i].serviceYear)
  100. }
  101. }
  102. }
  103. this.setState({
  104. jid: dataInfor.id, //项目ID
  105. kid: dataInfor.commodityId, //商品ID
  106. commodityName: dataInfor.commodityName, //项目名称
  107. commodityPrice: dataInfor.commodityPrice, //金额
  108. commodityQuantity: dataInfor.commodityQuantity, //数量
  109. patentTypeName: dataInfor.patentTypeName,//专利类型名称
  110. taskComment: dataInfor.cSort == 6 ? undefined : dataInfor.taskComment, //备注
  111. main: dataInfor.main.toString(), //是否为主要
  112. addState: 0,
  113. addnextVisible: true,
  114. addProjectType: type == "change" ? dataInfor.taskType : dataInfor.type,
  115. declarationBatch: dataInfor.declarationBatch || 1,//申报批次(只有高新有)
  116. ifCertificationFee: isNaN(parseInt(dataInfor.ifCertificationFee)) ? '' : dataInfor.ifCertificationFee,//是否包含认证费
  117. isIso: dataInfor.commodityName.indexOf("贯标") !== -1,
  118. orgCodeUrl: dataInfor.pictureUrl ? splitUrl(dataInfor.pictureUrl, ",", globalConfig.avatarHost + "/upload") : [],//
  119. isYear: !dataInfor.lastYear ? true : false,//
  120. lastYear: dataInfor.lastYear,//上年度年份
  121. lastYearCapital: dataInfor.lastYearCapital,//上年度总资本
  122. lastYearIncome: dataInfor.lastYearIncome,//上年度总收入
  123. isVip: dataInfor.cSort,
  124. yearSum: dataInfor.yearSum,//会员总服务年限
  125. serviceLife: !dataInfor.serviceLife ? [] : JSON.parse(dataInfor.serviceLife), // 会员服务年限
  126. contractTerm: (!dataInfor.contractTerm || (dataInfor.contractTerm.indexOf("-") == -1)) ? [] : JSON.parse(dataInfor.contractTerm), // 合同期
  127. serviceYear: dataInfor.cSort == 6 ? undefined : dataInfor.serviceYear,//本次派单
  128. histYear: llist, // 本次已派单
  129. splitList: dataInfor[children] || [],
  130. tid: dataInfor.id, // 父级项目id
  131. isMedit: readOnly ? 3 : dataInfor.cSort == 6 ? 0 : 1,// 会员项目默认0不可编辑 普通项目默认1可编辑
  132. });
  133. }
  134. onChange(text) {
  135. const { type = "", dataInfor } = this.props
  136. if (isNaN(parseFloat(this.state.commodityPrice))) {
  137. message.warning("请输入正确的金额!");
  138. return false;
  139. }
  140. let reg = /^([0]|[1-9][0-9]*)$/;
  141. if (
  142. !this.state.commodityQuantity ||
  143. !reg.test(this.state.commodityQuantity)
  144. ) {
  145. message.warning("请输入正确服务数量!");
  146. return false;
  147. }
  148. // 3审计
  149. if (this.state.addProjectType == "3") {
  150. if (this.state.serviceLife.length === 0) {
  151. message.warning("请选择服务年限!");
  152. return
  153. }
  154. if (this.state.serviceLife.length != this.state.commodityQuantity) {
  155. message.warning("服务数量与服务年限不符!");
  156. return
  157. }
  158. if (this.state.isYear && !this.state.lastYear) {
  159. message.warning("请选择上年度年份!");
  160. return
  161. }
  162. if (isNaN(parseFloat(this.state.lastYearCapital))) {
  163. message.warning("请输入正确的企业上年度总资本!");
  164. return
  165. }
  166. if (isNaN(parseFloat(this.state.lastYearIncome))) {
  167. message.warning("请输入正确的企业上年度总收入!");
  168. return
  169. }
  170. }
  171. if (!this.state.main) {
  172. message.warning("请选择是否为主要项目!");
  173. return false;
  174. }
  175. // 5高新
  176. if (this.state.addProjectType === 5) {
  177. if (!this.state.declarationBatch) {
  178. message.warning("请选择企业要求申报批次!");
  179. return
  180. }
  181. if (!this.state.serviceYear) {
  182. message.warning("请选择申报年份!");
  183. return
  184. }
  185. }
  186. if (this.state.isVip == 6) {
  187. // if (this.state.yearSum === undefined) {
  188. // message.warning("请选择会员总服务年限!");
  189. // return
  190. // }
  191. if (this.state.serviceLife.length === 0) {
  192. message.warning("请添加会员服务年限!");
  193. return
  194. }
  195. // if (this.state.serviceLife.length != this.state.yearSum) {
  196. // message.warning("会员服务年限与总年限不符合!");
  197. // return
  198. // }
  199. // if (this.state.serviceYear === undefined) {
  200. // message.warning("请选择本次派单年份!");
  201. // return
  202. // }
  203. if (this.state.contractTerm.length === 0 || this.state.contractTerm[1] == "") {
  204. message.warning("请填写合同期!");
  205. return
  206. }
  207. }
  208. this.setState({
  209. loading: true,
  210. });
  211. let infor = {
  212. id: this.state.jid, //项目ID
  213. commodityId: this.state.kid, //商品ID
  214. orderNo: this.props.orderNo, //订单编号
  215. main: this.state.main, //是否为主要
  216. commodityPrice: this.state.commodityPrice, //金额
  217. commodityQuantity: this.state.commodityQuantity, //数量
  218. taskComment: this.state.taskComment, //备注
  219. }
  220. if (this.state.displayFees === 'block') {
  221. infor.officialCost = this.state.officialCost //是否有官费
  222. infor.costReduction = (this.state.patentType === 0 || this.state.patentType === 2) ? this.state.costReduction : 0//是否有费减
  223. infor.patentType = this.state.patentType //专利类型
  224. }
  225. if (this.state.isIso) {
  226. infor.ifCertificationFee = this.state.ifCertificationFee || undefined;//是否包含认证费用
  227. }
  228. if (this.state.addProjectType == "3") {//审计
  229. infor.serviceLife = JSON.stringify(this.state.serviceLife) //服务年限
  230. infor.lastYear = this.state.lastYear //上年度年份
  231. infor.lastYearCapital = this.state.lastYearCapital //上年度总资本
  232. infor.lastYearIncome = this.state.lastYearIncome //上年度总收入
  233. }
  234. if (this.state.addProjectType == "5") {//高新
  235. infor.declarationBatch = this.state.declarationBatch || undefined//申报批次
  236. infor.serviceYear = this.state.serviceYear //申报年份
  237. }
  238. if (this.state.isVip == 6) {//会员
  239. infor.yearSum = this.state.yearSum //会员总服务年限
  240. infor.serviceLife = JSON.stringify(this.state.serviceLife) //会员服务年限
  241. // infor.serviceYear = this.state.serviceYear //本次派单年份
  242. infor.contractTerm = JSON.stringify(this.state.contractTerm)//合同期
  243. }
  244. // 新开单与签单项目变更 -- 编辑项目
  245. if (type == "change") {
  246. infor.id = dataInfor.id
  247. infor.type = dataInfor.tid ? 2 : 1
  248. infor.tid = dataInfor.tid
  249. }
  250. $.ajax({
  251. method: "POST",
  252. dataType: "json",
  253. crossDomain: false,
  254. url: globalConfig.context + type == "change"
  255. ? "/api/admin/orderChange/updateChangeTask"
  256. : "/api/admin/newOrder/updateOrderTask",
  257. data: infor,
  258. }).done(
  259. function (data) {
  260. this.setState({
  261. loading: false,
  262. });
  263. if (!data.error.length) {
  264. message.success("保存成功!");
  265. if (this.state.isVip == 6) {
  266. text == "submit" &&
  267. this.setState({
  268. isMedit: 0
  269. })
  270. } else {
  271. this.props.onCancel();
  272. }
  273. } else {
  274. message.warning(data.error[0].message);
  275. }
  276. }.bind(this)
  277. );
  278. }
  279. getpatentTypeList() {
  280. $.ajax({
  281. method: "get",
  282. dataType: "json",
  283. crossDomain: false,
  284. url: globalConfig.context + '/api/admin/orderProject/getPatentType',
  285. success: function (data) {
  286. if (data.error.length === 0) {
  287. this.setState({
  288. patentTypeList: data.data
  289. })
  290. } else {
  291. message.warning(data.error[0].message);
  292. };
  293. }.bind(this)
  294. });
  295. }
  296. // 删除子项目
  297. deleteMemberSonProject(id) {
  298. const { splitList, histYear } = this.state
  299. $.ajax({
  300. method: "POST",
  301. dataType: "json",
  302. crossDomain: false,
  303. url: globalConfig.context +
  304. this.props.type == "change"
  305. ? '/api/admin/orderChange/deleteMemberSonProject'
  306. : '/api/admin/orderProject/deleteMemberSonProject',
  307. data: {
  308. id,
  309. },
  310. success: function (data) {
  311. if (data.error.length === 0) {
  312. this.onChange()
  313. let splList = splitList
  314. let hlist = []
  315. for (var i = 0; i < splitList.length; i++) {
  316. if (id == splitList[i].id) {
  317. //如果是 type==1 新增 就彻底删除 否则 改为type==3
  318. if (splList[i].type == 0 || splList[i].type == 2) {
  319. splList[i].type = 3
  320. } else {
  321. splList.splice(i, 1)
  322. }
  323. // hlist.splice(i, 1)
  324. }
  325. }
  326. for (var j = 0; j < splList.length; j++) {
  327. splList[j].type != 3 && hlist.push(splList[j].serviceYear)
  328. }
  329. this.setState({
  330. splitList: splList,
  331. histYear: hlist,
  332. })
  333. } else {
  334. message.warning(data.error[0].message);
  335. };
  336. }.bind(this)
  337. });
  338. }
  339. // 恢复子项目
  340. updateMemberSonProject(id, taskComment) {
  341. const { splitList, histYear, serviceYear } = this.state
  342. $.ajax({
  343. method: "POST",
  344. dataType: "json",
  345. crossDomain: false,
  346. url: globalConfig.context + '/api/admin/orderChange/updateMemberSonProject',
  347. data: {
  348. id,
  349. taskComment,
  350. },
  351. success: function (data) {
  352. if (data.error.length === 0) {
  353. // this.onChange()
  354. let splList = splitList
  355. let histList = histYear
  356. for (var i = 0; i < splList.length; i++) {
  357. if (splList[i].id == data.data.id) {
  358. splList[i].type = data.data.type
  359. splList[i].taskComment = data.data.taskComment
  360. }
  361. }
  362. histList.push(serviceYear)
  363. this.setState({
  364. addFrom: false,
  365. splitList: splList,
  366. histYear: histList,
  367. serviceYear: undefined,
  368. taskComment: undefined,
  369. isMedit: 0,
  370. })
  371. message.success("保存成功!")
  372. } else {
  373. message.warning(data.error[0].message);
  374. };
  375. }.bind(this)
  376. });
  377. }
  378. handleClose(removedTag) {
  379. let serviceLife = this.state.serviceLife.filter(tag => { return tag !== removedTag });
  380. this.setState({
  381. serviceLife,
  382. commodityQuantity: serviceLife.length == 0 ? undefined : serviceLife.length,
  383. yearSum: serviceLife.length == 0 ? undefined : serviceLife.length.toString(),
  384. serviceYear: undefined
  385. });
  386. }
  387. aGain() {
  388. const { serviceLife } = this.state
  389. this.setState({
  390. serviceLife: serviceLife,
  391. commodityQuantity: serviceLife.length == 0 ? undefined : serviceLife.length,
  392. yearSum: serviceLife.length == 0 ? undefined : serviceLife.length.toString(),
  393. })
  394. }
  395. tagClose(tag) {
  396. const _this = this
  397. let serviceLife = this.state.serviceLife.filter(t => { return t !== tag });
  398. let delid = ""
  399. const { splitList = [], } = this.state
  400. if (serviceLife.length < 1) {
  401. Modal.error({
  402. title: '提示',
  403. content: (
  404. <div>
  405. <p style={{ color: "red" }}>会员服务年限必须保留一个</p>
  406. </div>
  407. ),
  408. onOk() { },
  409. });
  410. return
  411. }
  412. for (var i = 0; i < splitList.length; i++) {
  413. if (tag == splitList[i].serviceYear && splitList[i].type != 3) {
  414. delid = splitList[i].id
  415. }
  416. }
  417. if (delid != "") {
  418. confirm({
  419. title: '确定要删除吗',
  420. content: '会员子项目也会一并删除',
  421. okText: '确定',
  422. okType: 'danger',
  423. cancelText: '取消',
  424. onOk() {
  425. _this.setState({
  426. serviceLife: serviceLife,
  427. commodityQuantity: serviceLife.length == 0 ? undefined : serviceLife.length,
  428. yearSum: serviceLife.length == 0 ? undefined : serviceLife.length.toString(),
  429. serviceYear: undefined
  430. });
  431. _this.deleteMemberSonProject(delid)
  432. },
  433. onCancel() {
  434. // _this.aGain()
  435. },
  436. });
  437. } else {
  438. this.setState({
  439. serviceLife,
  440. commodityQuantity: serviceLife.length == 0 ? undefined : serviceLife.length,
  441. yearSum: serviceLife.length == 0 ? undefined : serviceLife.length.toString(),
  442. serviceYear: undefined
  443. }, () => {
  444. this.onChange()
  445. });
  446. }
  447. }
  448. // 添加会员子项目
  449. addMemberFirstSonProject() {
  450. if (!this.state.serviceYear) {
  451. message.warning("请选择本次派单年份!");
  452. return
  453. }
  454. let info = {
  455. tid: this.state.tid,
  456. serviceYear: this.state.serviceYear,
  457. taskComment: this.state.taskComment,
  458. }
  459. let changeInfo = {
  460. id: this.state.tid,
  461. serviceYear: this.state.serviceYear,
  462. taskComment: this.state.taskComment,
  463. }
  464. if (this.state.recoveryId != "") {
  465. this.updateMemberSonProject(this.state.recoveryId, this.state.taskComment)
  466. return
  467. }
  468. this.setState({
  469. loading: true,
  470. });
  471. $.ajax({
  472. method: "POST",
  473. dataType: "json",
  474. crossDomain: false,
  475. url: globalConfig.context +
  476. this.props.type == "change"
  477. ? "/api/admin/orderChange/addMemberSonProject"
  478. : "/api/admin/orderProject/addMemberFirstSonProject",
  479. data: this.props.type == "change" ? changeInfo : info,
  480. success: function (data) {
  481. this.setState({
  482. loading: false
  483. });
  484. if (data.error.length === 0) {
  485. message.success("保存成功!");
  486. let list = this.state.splitList
  487. let histList = this.state.histYear
  488. list.push(data.data)
  489. histList.push(data.data.serviceYear)
  490. this.setState({
  491. addFrom: false,
  492. splitList: list,
  493. histYear: histList,
  494. serviceYear: undefined,
  495. taskComment: undefined,
  496. isMedit: 0,
  497. })
  498. } else {
  499. message.warning(data.error[0].message);
  500. };
  501. }.bind(this)
  502. });
  503. }
  504. render() {
  505. let children = vipYear.map(its => (
  506. <Option key={its}>{its}</Option>
  507. ));
  508. const { RangePicker } = DatePicker;
  509. const { readOnly } = this.props;
  510. const { isVip, histYear, isMedit } = this.state
  511. return (
  512. <Modal
  513. maskClosable={false}
  514. visible={this.props.visible}
  515. onOk={this.props.onCancel}
  516. onCancel={this.props.onCancel}
  517. width="900px"
  518. title={readOnly ? "项目任务详情" : "编辑项目任务"}
  519. footer=""
  520. className="admin-desc-content"
  521. >
  522. <Form
  523. layout="horizontal"
  524. >
  525. <Spin spinning={this.state.loading}>
  526. <div>
  527. <div className="clearfix">
  528. <FormItem
  529. className="half-item"
  530. {...formItemLayout}
  531. label="服务名称"
  532. >
  533. {this.state.commodityName}
  534. </FormItem>
  535. {
  536. isVip != 6 &&
  537. <FormItem
  538. className="half-item"
  539. {...formItemLayout}
  540. label="服务数量"
  541. >
  542. {readOnly ? this.state.commodityQuantity :
  543. <Input
  544. placeholder="请输入服务数量"
  545. disabled={isVip == 6}
  546. value={this.state.commodityQuantity}
  547. style={{ width: "200px" }}
  548. onChange={(e) => {
  549. this.setState({ commodityQuantity: e.target.value });
  550. }}
  551. ref="commodityQuantity"
  552. />}
  553. {!readOnly && <span className="mandatory">*</span>}
  554. </FormItem>
  555. }
  556. </div>
  557. <FormItem
  558. className="half-item"
  559. {...formItemLayout}
  560. label="实签价格(万元)"
  561. >
  562. {readOnly ? this.state.commodityPrice :
  563. <Input
  564. type='number'
  565. placeholder="请输入实签价格"
  566. disabled={isMedit != 1}
  567. value={this.state.commodityPrice}
  568. style={{ width: "200px" }}
  569. onChange={(e) => {
  570. this.setState({ commodityPrice: e.target.value });
  571. }}
  572. ref="commodityPrice"
  573. />}
  574. {!readOnly && <span className="mandatory">*</span>}
  575. </FormItem>
  576. <FormItem
  577. className="half-item"
  578. {...formItemLayout}
  579. label="主要业务"
  580. >
  581. {readOnly ? getboutique(this.state.main) :
  582. <Select
  583. placeholder="选择是否为主要业务"
  584. disabled={isMedit != 1}
  585. style={{ width: "200px" }}
  586. value={this.state.main}
  587. onChange={(e) => {
  588. this.setState({ main: e });
  589. }}
  590. >
  591. {boutique.map(function (item) {
  592. return (
  593. <Select.Option key={item.value}>
  594. {item.key}
  595. </Select.Option>
  596. );
  597. })}
  598. </Select>}
  599. {!readOnly && <span className="mandatory">*</span>}
  600. </FormItem>
  601. {
  602. !this.state.patentTransfer &&
  603. <FormItem
  604. className="half-item"
  605. {...formItemLayout}
  606. label="专利类型:"
  607. style={{
  608. display: this.state.displayFees,
  609. }}
  610. >
  611. {readOnly ? this.state.patentTypeName :
  612. <Select
  613. placeholder="请选择专利类型"
  614. style={{ width: "200px" }}
  615. value={this.state.patentType}
  616. onChange={(e) => {
  617. this.setState({ patentType: e });
  618. if (e !== 0 && e !== 2) {
  619. this.setState({
  620. costReduction: ''
  621. })
  622. }
  623. }}
  624. >
  625. {this.state.patentTypeList.map(function (v, k) {
  626. return (
  627. <Select.Option key={k} value={v.id}>{v.name}</Select.Option>
  628. );
  629. })}
  630. </Select>}
  631. <span style={{ color: "red", marginLeft: "8px" }}>
  632. *
  633. </span>
  634. </FormItem>
  635. }
  636. <div className="clearfix">
  637. <FormItem
  638. className="half-item"
  639. {...formItemLayout}
  640. label="官费:"
  641. style={{
  642. display: this.state.displayFees,
  643. }}
  644. >
  645. {readOnly
  646. ? (this.state.officialCost === 1 ? '含官费' : this.state.officialCost === 0 ? '不含官费' : '')
  647. : <Radio.Group
  648. value={this.state.officialCost}
  649. onChange={(e) => {
  650. this.setState({ officialCost: e.target.value });
  651. if (e.target.value === 0) {
  652. this.setState({
  653. costReduction: ''
  654. })
  655. }
  656. }}
  657. >
  658. <Radio value={1}>含官费</Radio>
  659. <Radio value={0}>不含官费</Radio>
  660. </Radio.Group>}
  661. <span style={{ color: "red", marginLeft: "8px" }}>
  662. *
  663. </span>
  664. </FormItem>
  665. </div>
  666. <div className="clearfix">
  667. {
  668. readOnly ?
  669. <FormItem
  670. className="half-item"
  671. {...formItemLayout}
  672. label="费减:"
  673. style={{
  674. display: this.state.displayFees,
  675. }}
  676. >
  677. {this.state.costReduction === 1 ? '有费减' : this.state.costReduction === 0 ? '无费减' : ''}
  678. <span style={{ color: "red", marginLeft: "8px" }}>
  679. *
  680. </span>
  681. </FormItem>
  682. :
  683. (this.state.patentType === 0 || this.state.patentType === 2) &&
  684. <div className="clearfix">
  685. <FormItem
  686. className="half-item"
  687. {...formItemLayout}
  688. label="费减:"
  689. style={{
  690. display: this.state.displayFees,
  691. }}
  692. >
  693. {/*不含官费或者专利类型不为复审或者申请时置灰*/}
  694. <Radio.Group
  695. disabled={this.state.patentType !== 0 && this.state.patentType !== 2}
  696. value={this.state.costReduction}
  697. onChange={(e) => {
  698. this.setState({ costReduction: e.target.value });
  699. }}
  700. >
  701. <Radio value={1}>有费减</Radio>
  702. <Radio value={0}>无费减</Radio>
  703. </Radio.Group>
  704. <span style={{ color: "red", marginLeft: "8px" }}>
  705. *
  706. </span>
  707. </FormItem>
  708. </div>
  709. }
  710. </div>
  711. {
  712. //审计
  713. this.state.addProjectType == "3" &&
  714. <FormItem
  715. className="half-item"
  716. {...formItemLayout}
  717. label="服务年限"
  718. >
  719. {
  720. readOnly ?
  721. !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
  722. <Select
  723. mode="multiple"
  724. style={{ width: '200px' }}
  725. placeholder="请选择服务年限"
  726. value={this.state.serviceLife}
  727. onChange={(e) => {
  728. this.setState({
  729. serviceLife: e,
  730. })
  731. }}
  732. >
  733. {children}
  734. </Select>
  735. }
  736. {!readOnly && <span className="mandatory">*</span>}
  737. </FormItem>
  738. }
  739. {
  740. isVip == 6 &&
  741. <FormItem
  742. className="half-item"
  743. {...formItemLayout}
  744. label="会员服务年限"
  745. >
  746. {
  747. readOnly ?
  748. !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
  749. <div>
  750. {
  751. this.state.serviceLife.map((tag) =>
  752. <Tag
  753. key={tag}
  754. // closable={!isEdit}
  755. // afterClose={() => this.handleClose(tag)}
  756. // onClose={() => this.tagClose(tag)}
  757. onClick={() => isMedit == 1 && this.tagClose(tag)}
  758. >{tag + " "}{isMedit == 1 && <Icon type="close" />}</Tag>
  759. )
  760. }
  761. {
  762. isMedit == 1 && (this.state.serviceLife.length < 10) &&
  763. <Button
  764. size="small"
  765. type="primary"
  766. onClick={() => {
  767. this.setState({
  768. addYears: true,
  769. addyear: undefined,
  770. isGive: undefined,
  771. })
  772. }}>
  773. + 添加服务年限
  774. </Button>
  775. }
  776. </div>
  777. }
  778. </FormItem>
  779. }
  780. {
  781. isVip == 6 &&
  782. <FormItem
  783. className="half-item"
  784. {...formItemLayout}
  785. label="会员总服务年限"
  786. >
  787. {
  788. !this.state.yearSum ? "" :
  789. [
  790. { value: "0", key: "" },
  791. { value: "1", key: "一年" },
  792. { value: "2", key: "二年" },
  793. { value: "3", key: "三年" },
  794. { value: "4", key: "四年" },
  795. { value: "5", key: "五年" },
  796. { value: "6", key: "六年" },
  797. { value: "7", key: "七年" },
  798. { value: "8", key: "八年" },
  799. { value: "9", key: "九年" },
  800. { value: "10", key: "十年" },
  801. ][this.state.yearSum]["key"]
  802. }
  803. </FormItem>
  804. }
  805. {
  806. // 会员合同期
  807. isVip == 6 &&
  808. <div className="clearfix">
  809. <FormItem
  810. className="half-item"
  811. {...formItemLayout}
  812. >
  813. </FormItem>
  814. <FormItem
  815. className="half-item"
  816. {...formItemLayout}
  817. label="合同期"
  818. >
  819. {
  820. readOnly ?
  821. !!this.state.contractTerm ? this.state.contractTerm.toString().replace(",", "至") : "" :
  822. <RangePicker
  823. style={{ width: 200 }}
  824. disabled={isMedit != 1}
  825. value={[
  826. this.state.contractTerm[0]
  827. ? moment(this.state.contractTerm[0])
  828. : null,
  829. this.state.contractTerm[1]
  830. ? moment(this.state.contractTerm[1])
  831. : null,
  832. ]}
  833. onChange={(data, dataString) => {
  834. this.setState({ contractTerm: dataString });
  835. }}
  836. />
  837. // <Select
  838. // mode="multiple"
  839. // style={{ width: '200px' }}
  840. // placeholder="请选择合同期"
  841. // disabled={isMedit != 1}
  842. // value={this.state.contractTerm}
  843. // onChange={e => {
  844. // this.setState({
  845. // contractTerm: e,
  846. // })
  847. // }}
  848. // >
  849. // {children}
  850. // </Select>
  851. }
  852. {!readOnly && <span className="mandatory">*</span>}
  853. </FormItem>
  854. </div>
  855. }
  856. {
  857. // 审计
  858. this.state.addProjectType == "3" &&
  859. <div className="clearfix">
  860. <FormItem
  861. labelCol={{ span: 4 }}
  862. wrapperCol={{ span: 16 }}
  863. label=""
  864. >
  865. <span style={{ color: "red" }}>注:派单年度的上年度总资产和收入。如,当前为2022年,那么需要填写2021年的总资产和收入!</span>
  866. </FormItem>
  867. {
  868. this.state.isYear && !readOnly &&
  869. <div className="clearfix">
  870. <FormItem
  871. className="half-item"
  872. label="企业上年度年份"
  873. {...formItemLayout}
  874. >
  875. <Select
  876. style={{ width: '200px' }}
  877. placeholder="请选择年份"
  878. value={this.state.lastYear}
  879. onChange={e => {
  880. this.setState({
  881. lastYear: e,
  882. })
  883. }}
  884. >
  885. {
  886. YearList.map(its => (
  887. <Option key={its}>{its}</Option>
  888. ))
  889. }
  890. </Select>
  891. <span className="mandatory">*</span>
  892. </FormItem>
  893. </div>
  894. }
  895. <FormItem
  896. className="half-item"
  897. label="企业上年度总资产(万元)"
  898. {...formItemLayout}
  899. >
  900. {
  901. readOnly ? this.state.lastYearCapital :
  902. <Input
  903. type='number'
  904. placeholder=""
  905. value={this.state.lastYearCapital}
  906. style={{ width: "200px" }}
  907. onChange={(e) => {
  908. this.setState({ lastYearCapital: e.target.value });
  909. }}
  910. />
  911. }
  912. {!readOnly && <span className="mandatory">*</span>}
  913. </FormItem>
  914. <FormItem
  915. className="half-item"
  916. label="企业上年度总收入(万元)"
  917. {...formItemLayout}
  918. >
  919. {
  920. readOnly ? this.state.lastYearIncome :
  921. <Input
  922. type='number'
  923. placeholder=""
  924. value={this.state.lastYearIncome}
  925. style={{ width: "200px" }}
  926. onChange={(e) => {
  927. this.setState({ lastYearIncome: e.target.value });
  928. }}
  929. />
  930. }
  931. {!readOnly && <span className="mandatory">*</span>}
  932. </FormItem>
  933. </div>
  934. }
  935. {
  936. // 普通项目说明
  937. isVip != 6 &&
  938. <div className="clearfix">
  939. <FormItem
  940. labelCol={{ span: 4 }}
  941. wrapperCol={{ span: 16 }}
  942. label="项目说明"
  943. >
  944. {readOnly ? this.state.taskComment :
  945. <Input
  946. type="textarea"
  947. placeholder=""
  948. autosize={{ minRows: 4 }}
  949. value={this.state.taskComment}
  950. onChange={(e) => {
  951. this.setState({ taskComment: e.target.value });
  952. }}
  953. />}
  954. </FormItem>
  955. </div>
  956. }
  957. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  958. {
  959. this.state.addProjectType === 5 &&
  960. <div className="clearfix">
  961. <FormItem
  962. className="half-item"
  963. {...formItemLayout}
  964. label="企业要求申报批次"
  965. >
  966. {readOnly ? (
  967. this.state.declarationBatch === 1 ? '第一批' :
  968. this.state.declarationBatch === 2 ? '第二批' :
  969. this.state.declarationBatch === 3 ? '第三批' :
  970. this.state.declarationBatch === 4 ? '第四批' : '未知'
  971. ) :
  972. <Select
  973. placeholder="请选择企业要求申报批次"
  974. style={{ width: "200px" }}
  975. value={this.state.declarationBatch}
  976. onChange={(e) => {
  977. this.setState({ declarationBatch: e });
  978. }}
  979. >
  980. <Select.Option value={1}>
  981. 第一批
  982. </Select.Option>
  983. <Select.Option value={2}>
  984. 第二批
  985. </Select.Option>
  986. <Select.Option value={3}>
  987. 第三批
  988. </Select.Option>
  989. <Select.Option value={4}>
  990. 第四批
  991. </Select.Option>
  992. </Select>}
  993. {!readOnly && <span className="mandatory">*</span>}
  994. </FormItem>
  995. <FormItem
  996. className="half-item"
  997. {...formItemLayout}
  998. label="申报年份"
  999. >
  1000. {
  1001. readOnly ? this.state.serviceYear :
  1002. <Select
  1003. style={{ width: '200px' }}
  1004. placeholder="请选择申报年份"
  1005. value={this.state.serviceYear}
  1006. onChange={e => {
  1007. this.setState({
  1008. serviceYear: e,
  1009. })
  1010. }}
  1011. >
  1012. {
  1013. vipYear.map(its => (
  1014. <Option key={its}>{its}</Option>
  1015. ))
  1016. }
  1017. </Select>
  1018. }
  1019. {!readOnly && <span className="mandatory">*</span>}
  1020. </FormItem>
  1021. </div>
  1022. }
  1023. {
  1024. this.props.isIso || this.state.isIso ?
  1025. <div className="clearfix">
  1026. <FormItem
  1027. className="half-item"
  1028. {...formItemLayout}
  1029. label="是否包含认证费用"
  1030. >
  1031. {readOnly ? (
  1032. this.state.ifCertificationFee == "1" ? '包含' :
  1033. this.state.ifCertificationFee == "0" ? '不包含' : '未知'
  1034. ) : <Select
  1035. placeholder="请选择是否包含认证费用"
  1036. style={{ width: "200px" }}
  1037. value={this.state.ifCertificationFee}
  1038. onChange={(e) => {
  1039. this.setState({ ifCertificationFee: e });
  1040. }}
  1041. >
  1042. <Select.Option value={"0"}>否</Select.Option>
  1043. <Select.Option value={"1"}>是</Select.Option>
  1044. </Select>}
  1045. {!readOnly && <span className="mandatory">*</span>}
  1046. </FormItem>
  1047. </div> : null
  1048. }
  1049. {
  1050. isMedit == 0 && isVip == 6 &&
  1051. <div className="clearfix">
  1052. <FormItem
  1053. wrapperCol={{ span: 12, offset: 8 }}
  1054. className="half-middle"
  1055. >
  1056. <Button
  1057. className="submitSave"
  1058. onClick={() => {
  1059. this.setState({
  1060. isMedit: 1
  1061. })
  1062. }}
  1063. >
  1064. 重新编辑项目任务
  1065. </Button>
  1066. </FormItem>
  1067. </div>
  1068. }
  1069. {
  1070. ((!readOnly && isVip != 6) || (isVip == 6 && isMedit == 1)) &&
  1071. <div className="clearfix">
  1072. <FormItem
  1073. wrapperCol={{ span: 12, offset: 8 }}
  1074. className="half-middle"
  1075. >
  1076. <Button
  1077. className="submitSave"
  1078. type="primary"
  1079. onClick={() => {
  1080. this.onChange("submit");
  1081. }}
  1082. >
  1083. 保存
  1084. </Button>
  1085. <Button
  1086. className="submitSave"
  1087. type="ghost"
  1088. onClick={() => {
  1089. isVip == 6
  1090. ? this.setState({
  1091. isMedit: 0
  1092. })
  1093. : this.props.onCancel()
  1094. }}
  1095. >
  1096. 取消
  1097. </Button>
  1098. </FormItem>
  1099. </div>
  1100. }
  1101. {
  1102. // 会员项目子集列表
  1103. !!this.state.splitList && this.state.splitList.length > 0 &&
  1104. this.state.splitList.map((item) =>
  1105. // 标识为 3=删 不显示
  1106. item.type != 3 &&
  1107. <div
  1108. key={item.id}
  1109. className="clearfix"
  1110. style={{
  1111. width: "100%",
  1112. borderTop: "1px dashed #000000",
  1113. padding: "10px 0"
  1114. }}
  1115. >
  1116. <FormItem
  1117. className="half-item"
  1118. {...formItemLayout}
  1119. label="本次派单"
  1120. >
  1121. {item.serviceYear}
  1122. </FormItem>
  1123. <FormItem
  1124. className="half-item"
  1125. {...formItemLayout}
  1126. label="服务数量"
  1127. >
  1128. {item.commodityQuantity}
  1129. </FormItem>
  1130. {
  1131. (item.memberType == "0" || item.memberType == "1" || item.memberType == "2") &&
  1132. <FormItem
  1133. className="half-item"
  1134. {...formItemLayout}
  1135. label="付款情况"
  1136. >
  1137. {item.memberType == "0"
  1138. ? "已付会员节点全款" : item.memberType == "1"
  1139. ? "已付部分期款,需特批" : item.memberType == "2"
  1140. ? "未付款,需特批" : ""}
  1141. </FormItem>
  1142. }
  1143. {
  1144. (item.memberType == "1" || item.memberType == "2") &&
  1145. <div className="clearfix">
  1146. <FormItem
  1147. labelCol={{ span: 4 }}
  1148. wrapperCol={{ span: 16 }}
  1149. label="附件"
  1150. >
  1151. {item.pictureUrl ?
  1152. <div>
  1153. <ImgList fileList={splitUrl(item.pictureUrl, ",", globalConfig.avatarHost + "/upload")} ItemWidth={'96px'} />
  1154. </div> : <div />}
  1155. </FormItem>
  1156. </div>
  1157. }
  1158. <div className="clearfix">
  1159. <FormItem
  1160. labelCol={{ span: 4 }}
  1161. wrapperCol={{ span: 16 }}
  1162. label="项目说明"
  1163. >
  1164. {item.taskComment}
  1165. </FormItem>
  1166. </div>
  1167. {/* {
  1168. (isMedit == 0 || isMedit == 2) &&
  1169. <div className="clearfix">
  1170. <FormItem
  1171. wrapperCol={{ span: 12, offset: 10 }}
  1172. className="half-middle"
  1173. >
  1174. <Button type="danger"
  1175. onClick={() => {
  1176. const _this = this
  1177. confirm({
  1178. title: '确定要删除吗',
  1179. content: '确定删除本次派单吗',
  1180. okText: '确定',
  1181. okType: 'danger',
  1182. cancelText: '取消',
  1183. onOk() {
  1184. _this.deleteMemberSonProject(item.id)
  1185. },
  1186. onCancel() { },
  1187. });
  1188. }}
  1189. >删除</Button>
  1190. </FormItem>
  1191. </div>
  1192. } */}
  1193. </div>
  1194. )
  1195. }
  1196. {
  1197. (isMedit == 0 || isMedit == 2) &&
  1198. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1199. <div
  1200. className="clearfix"
  1201. style={{
  1202. width: "100%",
  1203. borderTop: "1px dashed #000000",
  1204. padding: "30px 0 10px 0"
  1205. }}
  1206. >
  1207. {
  1208. !this.state.addFrom &&
  1209. // this.state.splitList.length < this.state.yearSum &&
  1210. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1211. <div className="clearfix">
  1212. <FormItem
  1213. wrapperCol={{ span: 19, offset: 8 }}
  1214. className="half-middle"
  1215. >
  1216. <Button
  1217. type="primary"
  1218. onClick={() => {
  1219. this.setState({
  1220. addFrom: true,
  1221. })
  1222. }}
  1223. >
  1224. + 添加本次派单
  1225. </Button>
  1226. <span style={{ color: "#61BBE2", marginLeft: 10 }}>请填写本次派单的年份,派单表示立即安排人员开始相关的工作!!!</span>
  1227. </FormItem>
  1228. </div>
  1229. }
  1230. {
  1231. this.state.addFrom &&
  1232. <div>
  1233. <FormItem
  1234. className="half-item"
  1235. {...formItemLayout}
  1236. label="本次派单"
  1237. >
  1238. <Select
  1239. placeholder="请选择本次派单年份"
  1240. style={{ width: "200px" }}
  1241. value={this.state.serviceYear}
  1242. onChange={(e) => {
  1243. let addId = ""
  1244. let addtext = ""
  1245. if (!!this.state.splitList) {
  1246. for (var i = 0; i < this.state.splitList.length; i++) {
  1247. if (this.state.splitList[i].serviceYear == e && this.state.splitList[i].type == 3) {
  1248. addId = this.state.splitList[i].id
  1249. addtext = this.state.splitList[i].taskComment
  1250. }
  1251. }
  1252. }
  1253. this.setState({
  1254. serviceYear: e,
  1255. recoveryId: addId,
  1256. taskComment: addtext,
  1257. });
  1258. }}
  1259. >
  1260. {this.state.serviceLife.length > 0 && this.state.serviceLife.map(function (item) {
  1261. return (
  1262. <Select.Option key={item} disabled={histYear.includes(item)}>
  1263. {item}
  1264. </Select.Option>
  1265. );
  1266. })}
  1267. </Select>
  1268. {<span className="mandatory">*</span>}
  1269. </FormItem>
  1270. <FormItem
  1271. className="half-item"
  1272. {...formItemLayout}
  1273. label="服务数量"
  1274. >
  1275. <Input
  1276. placeholder="请输入服务数量"
  1277. disabled={isVip == 6}
  1278. value={1}
  1279. style={{ width: "200px" }}
  1280. ref="commodityQuantity"
  1281. />
  1282. {<span className="mandatory">*</span>}
  1283. </FormItem>
  1284. <div className="clearfix">
  1285. <FormItem
  1286. labelCol={{ span: 4 }}
  1287. wrapperCol={{ span: 16 }}
  1288. label="项目说明"
  1289. >
  1290. <Input
  1291. type="textarea"
  1292. placeholder=""
  1293. autosize={{ minRows: 2 }}
  1294. value={this.state.taskComment}
  1295. onChange={(e) => {
  1296. this.setState({ taskComment: e.target.value });
  1297. }}
  1298. />
  1299. </FormItem>
  1300. </div>
  1301. <div className="clearfix">
  1302. <FormItem
  1303. wrapperCol={{ span: 12, offset: 8 }}
  1304. className="half-middle"
  1305. >
  1306. <Button
  1307. className="submitSave"
  1308. type="primary"
  1309. onClick={() => {
  1310. this.addMemberFirstSonProject()
  1311. }}
  1312. >
  1313. 保存
  1314. </Button>
  1315. <Button
  1316. className="submitSave"
  1317. type="ghost"
  1318. onClick={() => {
  1319. this.setState({
  1320. addFrom: false
  1321. })
  1322. }}
  1323. >
  1324. 取消
  1325. </Button>
  1326. </FormItem>
  1327. </div>
  1328. </div>
  1329. }
  1330. </div>
  1331. }
  1332. </div>
  1333. </Spin>
  1334. </Form>
  1335. {
  1336. this.state.addYears &&
  1337. <Modal
  1338. title="添加服务年限"
  1339. visible={this.state.addYears}
  1340. okText="添加"
  1341. onOk={() => {
  1342. if (!this.state.addyear) {
  1343. message.warn("请选择年份!")
  1344. return
  1345. }
  1346. if (this.state.isGive == undefined) {
  1347. message.warn("请选择是否赠送!")
  1348. return
  1349. }
  1350. let slist = this.state.serviceLife
  1351. let newYear = this.state.addyear
  1352. if (this.state.isGive == 0) {
  1353. newYear = newYear
  1354. } else if (this.state.isGive == 1) {
  1355. newYear = newYear + "(赠)"
  1356. }
  1357. slist.push(newYear)
  1358. this.setState({
  1359. serviceLife: slist,
  1360. commodityQuantity: slist.length,
  1361. yearSum: slist.length.toString(),
  1362. addYears: false
  1363. }, () => {
  1364. // let addId = ""
  1365. // if (!!this.state.splitList) {
  1366. // for (var i = 0; i < this.state.splitList.length; i++) {
  1367. // if (this.state.splitList[i].serviceYear == newYear && this.state.splitList[i].type == 3) {
  1368. // addId = this.state.splitList[i].id
  1369. // }
  1370. // }
  1371. // }
  1372. // addId == ""
  1373. // ? this.onChange()
  1374. // : this.updateMemberSonProject(addId)
  1375. })
  1376. }}
  1377. onCancel={() => {
  1378. this.setState({
  1379. addYears: false
  1380. })
  1381. }}
  1382. >
  1383. <Select
  1384. style={{ width: '200px', marginRight: 50 }}
  1385. placeholder="请选择年份"
  1386. onChange={e => {
  1387. this.setState({
  1388. addyear: e,
  1389. })
  1390. }}
  1391. >
  1392. {
  1393. vipYear.map(its => (
  1394. <Option
  1395. key={its}
  1396. disabled={this.state.serviceLife.toString().includes(its)}
  1397. >{its}</Option>
  1398. ))
  1399. }
  1400. </Select>
  1401. <RadioGroup
  1402. onChange={e => {
  1403. this.setState({
  1404. isGive: e.target.value
  1405. })
  1406. }}
  1407. value={this.state.isGive}
  1408. >
  1409. <Radio value={0}>非赠送</Radio>
  1410. <Radio value={1}>赠送</Radio>
  1411. </RadioGroup>
  1412. </Modal>
  1413. }
  1414. </Modal >
  1415. )
  1416. }
  1417. }
  1418. export default newEditProject;