newEditProject.jsx 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432
  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.officialCost === 1 ? this.state.costReduction : 0) : 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. {
  667. readOnly ?
  668. <FormItem
  669. className="half-item"
  670. {...formItemLayout}
  671. label="费减:"
  672. style={{
  673. display: this.state.displayFees,
  674. }}
  675. >
  676. {this.state.costReduction === 1 ? '有费减' : this.state.costReduction === 0 ? '无费减' : ''}
  677. <span style={{ color: "red", marginLeft: "8px" }}>
  678. *
  679. </span>
  680. </FormItem>
  681. :
  682. (this.state.patentType === 0 || this.state.patentType === 2) && this.state.officialCost === 1 &&
  683. <div className="clearfix">
  684. <FormItem
  685. className="half-item"
  686. {...formItemLayout}
  687. label="费减:"
  688. style={{
  689. display: this.state.displayFees,
  690. }}
  691. >
  692. {/*不含官费或者专利类型不为复审或者申请时置灰*/}
  693. <Radio.Group
  694. disabled={this.state.officialCost === 0 || (this.state.patentType !== 0 && this.state.patentType !== 2)}
  695. value={this.state.costReduction}
  696. onChange={(e) => {
  697. this.setState({ costReduction: e.target.value });
  698. }}
  699. >
  700. <Radio value={1}>有费减</Radio>
  701. <Radio value={0}>无费减</Radio>
  702. </Radio.Group>
  703. <span style={{ color: "red", marginLeft: "8px" }}>
  704. *
  705. </span>
  706. </FormItem>
  707. </div>
  708. }
  709. {
  710. //审计
  711. this.state.addProjectType == "3" &&
  712. <FormItem
  713. className="half-item"
  714. {...formItemLayout}
  715. label="服务年限"
  716. >
  717. {
  718. readOnly ?
  719. !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
  720. <Select
  721. mode="multiple"
  722. style={{ width: '200px' }}
  723. placeholder="请选择服务年限"
  724. value={this.state.serviceLife}
  725. onChange={(e) => {
  726. this.setState({
  727. serviceLife: e,
  728. })
  729. }}
  730. >
  731. {children}
  732. </Select>
  733. }
  734. {!readOnly && <span className="mandatory">*</span>}
  735. </FormItem>
  736. }
  737. {
  738. isVip == 6 &&
  739. <FormItem
  740. className="half-item"
  741. {...formItemLayout}
  742. label="会员服务年限"
  743. >
  744. {
  745. readOnly ?
  746. !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
  747. <div>
  748. {
  749. this.state.serviceLife.map((tag) =>
  750. <Tag
  751. key={tag}
  752. // closable={!isEdit}
  753. // afterClose={() => this.handleClose(tag)}
  754. // onClose={() => this.tagClose(tag)}
  755. onClick={() => isMedit == 1 && this.tagClose(tag)}
  756. >{tag + " "}{isMedit == 1 && <Icon type="close" />}</Tag>
  757. )
  758. }
  759. {
  760. isMedit == 1 && (this.state.serviceLife.length < 10) &&
  761. <Button
  762. size="small"
  763. type="primary"
  764. onClick={() => {
  765. this.setState({
  766. addYears: true,
  767. addyear: undefined,
  768. isGive: undefined,
  769. })
  770. }}>
  771. + 添加服务年限
  772. </Button>
  773. }
  774. </div>
  775. }
  776. </FormItem>
  777. }
  778. {
  779. isVip == 6 &&
  780. <FormItem
  781. className="half-item"
  782. {...formItemLayout}
  783. label="会员总服务年限"
  784. >
  785. {
  786. !this.state.yearSum ? "" :
  787. [
  788. { value: "0", key: "" },
  789. { value: "1", key: "一年" },
  790. { value: "2", key: "二年" },
  791. { value: "3", key: "三年" },
  792. { value: "4", key: "四年" },
  793. { value: "5", key: "五年" },
  794. { value: "6", key: "六年" },
  795. { value: "7", key: "七年" },
  796. { value: "8", key: "八年" },
  797. { value: "9", key: "九年" },
  798. { value: "10", key: "十年" },
  799. ][this.state.yearSum]["key"]
  800. }
  801. </FormItem>
  802. }
  803. {
  804. // 会员合同期
  805. isVip == 6 &&
  806. <div className="clearfix">
  807. <FormItem
  808. className="half-item"
  809. {...formItemLayout}
  810. >
  811. </FormItem>
  812. <FormItem
  813. className="half-item"
  814. {...formItemLayout}
  815. label="合同期"
  816. >
  817. {
  818. readOnly ?
  819. !!this.state.contractTerm ? this.state.contractTerm.toString().replace(",", "至") : "" :
  820. <RangePicker
  821. style={{ width: 200 }}
  822. disabled={isMedit != 1}
  823. value={[
  824. this.state.contractTerm[0]
  825. ? moment(this.state.contractTerm[0])
  826. : null,
  827. this.state.contractTerm[1]
  828. ? moment(this.state.contractTerm[1])
  829. : null,
  830. ]}
  831. onChange={(data, dataString) => {
  832. this.setState({ contractTerm: dataString });
  833. }}
  834. />
  835. // <Select
  836. // mode="multiple"
  837. // style={{ width: '200px' }}
  838. // placeholder="请选择合同期"
  839. // disabled={isMedit != 1}
  840. // value={this.state.contractTerm}
  841. // onChange={e => {
  842. // this.setState({
  843. // contractTerm: e,
  844. // })
  845. // }}
  846. // >
  847. // {children}
  848. // </Select>
  849. }
  850. {!readOnly && <span className="mandatory">*</span>}
  851. </FormItem>
  852. </div>
  853. }
  854. {
  855. // 审计
  856. this.state.addProjectType == "3" &&
  857. <div className="clearfix">
  858. <FormItem
  859. labelCol={{ span: 4 }}
  860. wrapperCol={{ span: 16 }}
  861. label=""
  862. >
  863. <span style={{ color: "red" }}>注:派单年度的上年度总资产和收入。如,当前为2022年,那么需要填写2021年的总资产和收入!</span>
  864. </FormItem>
  865. {
  866. this.state.isYear && !readOnly &&
  867. <div className="clearfix">
  868. <FormItem
  869. className="half-item"
  870. label="企业上年度年份"
  871. {...formItemLayout}
  872. >
  873. <Select
  874. style={{ width: '200px' }}
  875. placeholder="请选择年份"
  876. value={this.state.lastYear}
  877. onChange={e => {
  878. this.setState({
  879. lastYear: e,
  880. })
  881. }}
  882. >
  883. {
  884. YearList.map(its => (
  885. <Option key={its}>{its}</Option>
  886. ))
  887. }
  888. </Select>
  889. <span className="mandatory">*</span>
  890. </FormItem>
  891. </div>
  892. }
  893. <FormItem
  894. className="half-item"
  895. label="企业上年度总资产(万元)"
  896. {...formItemLayout}
  897. >
  898. {
  899. readOnly ? this.state.lastYearCapital :
  900. <Input
  901. type='number'
  902. placeholder=""
  903. value={this.state.lastYearCapital}
  904. style={{ width: "200px" }}
  905. onChange={(e) => {
  906. this.setState({ lastYearCapital: e.target.value });
  907. }}
  908. />
  909. }
  910. {!readOnly && <span className="mandatory">*</span>}
  911. </FormItem>
  912. <FormItem
  913. className="half-item"
  914. label="企业上年度总收入(万元)"
  915. {...formItemLayout}
  916. >
  917. {
  918. readOnly ? this.state.lastYearIncome :
  919. <Input
  920. type='number'
  921. placeholder=""
  922. value={this.state.lastYearIncome}
  923. style={{ width: "200px" }}
  924. onChange={(e) => {
  925. this.setState({ lastYearIncome: e.target.value });
  926. }}
  927. />
  928. }
  929. {!readOnly && <span className="mandatory">*</span>}
  930. </FormItem>
  931. </div>
  932. }
  933. {
  934. // 普通项目说明
  935. isVip != 6 &&
  936. <div className="clearfix">
  937. <FormItem
  938. labelCol={{ span: 4 }}
  939. wrapperCol={{ span: 16 }}
  940. label="项目说明"
  941. >
  942. {readOnly ? this.state.taskComment :
  943. <Input
  944. type="textarea"
  945. placeholder=""
  946. autosize={{ minRows: 4 }}
  947. value={this.state.taskComment}
  948. onChange={(e) => {
  949. this.setState({ taskComment: e.target.value });
  950. }}
  951. />}
  952. </FormItem>
  953. </div>
  954. }
  955. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  956. {
  957. this.state.addProjectType === 5 &&
  958. <div className="clearfix">
  959. <FormItem
  960. className="half-item"
  961. {...formItemLayout}
  962. label="企业要求申报批次"
  963. >
  964. {readOnly ? (
  965. this.state.declarationBatch === 1 ? '第一批' :
  966. this.state.declarationBatch === 2 ? '第二批' :
  967. this.state.declarationBatch === 3 ? '第三批' :
  968. this.state.declarationBatch === 4 ? '第四批' : '未知'
  969. ) :
  970. <Select
  971. placeholder="请选择企业要求申报批次"
  972. style={{ width: "200px" }}
  973. value={this.state.declarationBatch}
  974. onChange={(e) => {
  975. this.setState({ declarationBatch: e });
  976. }}
  977. >
  978. <Select.Option value={1}>
  979. 第一批
  980. </Select.Option>
  981. <Select.Option value={2}>
  982. 第二批
  983. </Select.Option>
  984. <Select.Option value={3}>
  985. 第三批
  986. </Select.Option>
  987. <Select.Option value={4}>
  988. 第四批
  989. </Select.Option>
  990. </Select>}
  991. {!readOnly && <span className="mandatory">*</span>}
  992. </FormItem>
  993. <FormItem
  994. className="half-item"
  995. {...formItemLayout}
  996. label="申报年份"
  997. >
  998. {
  999. readOnly ? this.state.serviceYear :
  1000. <Select
  1001. style={{ width: '200px' }}
  1002. placeholder="请选择申报年份"
  1003. value={this.state.serviceYear}
  1004. onChange={e => {
  1005. this.setState({
  1006. serviceYear: e,
  1007. })
  1008. }}
  1009. >
  1010. {
  1011. vipYear.map(its => (
  1012. <Option key={its}>{its}</Option>
  1013. ))
  1014. }
  1015. </Select>
  1016. }
  1017. {!readOnly && <span className="mandatory">*</span>}
  1018. </FormItem>
  1019. </div>
  1020. }
  1021. {
  1022. this.props.isIso || this.state.isIso ?
  1023. <div className="clearfix">
  1024. <FormItem
  1025. className="half-item"
  1026. {...formItemLayout}
  1027. label="是否包含认证费用"
  1028. >
  1029. {readOnly ? (
  1030. this.state.ifCertificationFee == "1" ? '包含' :
  1031. this.state.ifCertificationFee == "0" ? '不包含' : '未知'
  1032. ) : <Select
  1033. placeholder="请选择是否包含认证费用"
  1034. style={{ width: "200px" }}
  1035. value={this.state.ifCertificationFee}
  1036. onChange={(e) => {
  1037. this.setState({ ifCertificationFee: e });
  1038. }}
  1039. >
  1040. <Select.Option value={"0"}>否</Select.Option>
  1041. <Select.Option value={"1"}>是</Select.Option>
  1042. </Select>}
  1043. {!readOnly && <span className="mandatory">*</span>}
  1044. </FormItem>
  1045. </div> : null
  1046. }
  1047. {
  1048. isMedit == 0 && isVip == 6 &&
  1049. <div className="clearfix">
  1050. <FormItem
  1051. wrapperCol={{ span: 12, offset: 8 }}
  1052. className="half-middle"
  1053. >
  1054. <Button
  1055. className="submitSave"
  1056. onClick={() => {
  1057. this.setState({
  1058. isMedit: 1
  1059. })
  1060. }}
  1061. >
  1062. 重新编辑项目任务
  1063. </Button>
  1064. </FormItem>
  1065. </div>
  1066. }
  1067. {
  1068. ((!readOnly && isVip != 6) || (isVip == 6 && isMedit == 1)) &&
  1069. <div className="clearfix">
  1070. <FormItem
  1071. wrapperCol={{ span: 12, offset: 8 }}
  1072. className="half-middle"
  1073. >
  1074. <Button
  1075. className="submitSave"
  1076. type="primary"
  1077. onClick={() => {
  1078. this.onChange("submit");
  1079. }}
  1080. >
  1081. 保存
  1082. </Button>
  1083. <Button
  1084. className="submitSave"
  1085. type="ghost"
  1086. onClick={() => {
  1087. isVip == 6
  1088. ? this.setState({
  1089. isMedit: 0
  1090. })
  1091. : this.props.onCancel()
  1092. }}
  1093. >
  1094. 取消
  1095. </Button>
  1096. </FormItem>
  1097. </div>
  1098. }
  1099. {
  1100. // 会员项目子集列表
  1101. !!this.state.splitList && this.state.splitList.length > 0 &&
  1102. this.state.splitList.map((item) =>
  1103. // 标识为 3=删 不显示
  1104. item.type != 3 &&
  1105. <div
  1106. key={item.id}
  1107. className="clearfix"
  1108. style={{
  1109. width: "100%",
  1110. borderTop: "1px dashed #000000",
  1111. padding: "10px 0"
  1112. }}
  1113. >
  1114. <FormItem
  1115. className="half-item"
  1116. {...formItemLayout}
  1117. label="本次派单"
  1118. >
  1119. {item.serviceYear}
  1120. </FormItem>
  1121. <FormItem
  1122. className="half-item"
  1123. {...formItemLayout}
  1124. label="服务数量"
  1125. >
  1126. {item.commodityQuantity}
  1127. </FormItem>
  1128. {
  1129. (item.memberType == "0" || item.memberType == "1" || item.memberType == "2") &&
  1130. <FormItem
  1131. className="half-item"
  1132. {...formItemLayout}
  1133. label="付款情况"
  1134. >
  1135. {item.memberType == "0"
  1136. ? "已付会员节点全款" : item.memberType == "1"
  1137. ? "已付部分期款,需特批" : item.memberType == "2"
  1138. ? "未付款,需特批" : ""}
  1139. </FormItem>
  1140. }
  1141. {
  1142. (item.memberType == "1" || item.memberType == "2") &&
  1143. <div className="clearfix">
  1144. <FormItem
  1145. labelCol={{ span: 4 }}
  1146. wrapperCol={{ span: 16 }}
  1147. label="附件"
  1148. >
  1149. {item.pictureUrl ?
  1150. <div>
  1151. <ImgList fileList={splitUrl(item.pictureUrl, ",", globalConfig.avatarHost + "/upload")} ItemWidth={'96px'} />
  1152. </div> : <div />}
  1153. </FormItem>
  1154. </div>
  1155. }
  1156. <div className="clearfix">
  1157. <FormItem
  1158. labelCol={{ span: 4 }}
  1159. wrapperCol={{ span: 16 }}
  1160. label="项目说明"
  1161. >
  1162. {item.taskComment}
  1163. </FormItem>
  1164. </div>
  1165. {/* {
  1166. (isMedit == 0 || isMedit == 2) &&
  1167. <div className="clearfix">
  1168. <FormItem
  1169. wrapperCol={{ span: 12, offset: 10 }}
  1170. className="half-middle"
  1171. >
  1172. <Button type="danger"
  1173. onClick={() => {
  1174. const _this = this
  1175. confirm({
  1176. title: '确定要删除吗',
  1177. content: '确定删除本次派单吗',
  1178. okText: '确定',
  1179. okType: 'danger',
  1180. cancelText: '取消',
  1181. onOk() {
  1182. _this.deleteMemberSonProject(item.id)
  1183. },
  1184. onCancel() { },
  1185. });
  1186. }}
  1187. >删除</Button>
  1188. </FormItem>
  1189. </div>
  1190. } */}
  1191. </div>
  1192. )
  1193. }
  1194. {
  1195. (isMedit == 0 || isMedit == 2) &&
  1196. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1197. <div
  1198. className="clearfix"
  1199. style={{
  1200. width: "100%",
  1201. borderTop: "1px dashed #000000",
  1202. padding: "30px 0 10px 0"
  1203. }}
  1204. >
  1205. {
  1206. !this.state.addFrom &&
  1207. // this.state.splitList.length < this.state.yearSum &&
  1208. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1209. <div className="clearfix">
  1210. <FormItem
  1211. wrapperCol={{ span: 19, offset: 8 }}
  1212. className="half-middle"
  1213. >
  1214. <Button
  1215. type="primary"
  1216. onClick={() => {
  1217. this.setState({
  1218. addFrom: true,
  1219. })
  1220. }}
  1221. >
  1222. + 添加本次派单
  1223. </Button>
  1224. <span style={{ color: "#61BBE2", marginLeft: 10 }}>请填写本次派单的年份,派单表示立即安排人员开始相关的工作!!!</span>
  1225. </FormItem>
  1226. </div>
  1227. }
  1228. {
  1229. this.state.addFrom &&
  1230. <div>
  1231. <FormItem
  1232. className="half-item"
  1233. {...formItemLayout}
  1234. label="本次派单"
  1235. >
  1236. <Select
  1237. placeholder="请选择本次派单年份"
  1238. style={{ width: "200px" }}
  1239. value={this.state.serviceYear}
  1240. onChange={(e) => {
  1241. let addId = ""
  1242. let addtext = ""
  1243. if (!!this.state.splitList) {
  1244. for (var i = 0; i < this.state.splitList.length; i++) {
  1245. if (this.state.splitList[i].serviceYear == e && this.state.splitList[i].type == 3) {
  1246. addId = this.state.splitList[i].id
  1247. addtext = this.state.splitList[i].taskComment
  1248. }
  1249. }
  1250. }
  1251. this.setState({
  1252. serviceYear: e,
  1253. recoveryId: addId,
  1254. taskComment: addtext,
  1255. });
  1256. }}
  1257. >
  1258. {this.state.serviceLife.length > 0 && this.state.serviceLife.map(function (item) {
  1259. return (
  1260. <Select.Option key={item} disabled={histYear.includes(item)}>
  1261. {item}
  1262. </Select.Option>
  1263. );
  1264. })}
  1265. </Select>
  1266. {<span className="mandatory">*</span>}
  1267. </FormItem>
  1268. <FormItem
  1269. className="half-item"
  1270. {...formItemLayout}
  1271. label="服务数量"
  1272. >
  1273. <Input
  1274. placeholder="请输入服务数量"
  1275. disabled={isVip == 6}
  1276. value={1}
  1277. style={{ width: "200px" }}
  1278. ref="commodityQuantity"
  1279. />
  1280. {<span className="mandatory">*</span>}
  1281. </FormItem>
  1282. <div className="clearfix">
  1283. <FormItem
  1284. labelCol={{ span: 4 }}
  1285. wrapperCol={{ span: 16 }}
  1286. label="项目说明"
  1287. >
  1288. <Input
  1289. type="textarea"
  1290. placeholder=""
  1291. autosize={{ minRows: 2 }}
  1292. value={this.state.taskComment}
  1293. onChange={(e) => {
  1294. this.setState({ taskComment: e.target.value });
  1295. }}
  1296. />
  1297. </FormItem>
  1298. </div>
  1299. <div className="clearfix">
  1300. <FormItem
  1301. wrapperCol={{ span: 12, offset: 8 }}
  1302. className="half-middle"
  1303. >
  1304. <Button
  1305. className="submitSave"
  1306. type="primary"
  1307. onClick={() => {
  1308. this.addMemberFirstSonProject()
  1309. }}
  1310. >
  1311. 保存
  1312. </Button>
  1313. <Button
  1314. className="submitSave"
  1315. type="ghost"
  1316. onClick={() => {
  1317. this.setState({
  1318. addFrom: false
  1319. })
  1320. }}
  1321. >
  1322. 取消
  1323. </Button>
  1324. </FormItem>
  1325. </div>
  1326. </div>
  1327. }
  1328. </div>
  1329. }
  1330. </div>
  1331. </Spin>
  1332. </Form>
  1333. {
  1334. this.state.addYears &&
  1335. <Modal
  1336. title="添加服务年限"
  1337. visible={this.state.addYears}
  1338. okText="添加"
  1339. onOk={() => {
  1340. if (!this.state.addyear) {
  1341. message.warn("请选择年份!")
  1342. return
  1343. }
  1344. if (this.state.isGive == undefined) {
  1345. message.warn("请选择是否赠送!")
  1346. return
  1347. }
  1348. let slist = this.state.serviceLife
  1349. let newYear = this.state.addyear
  1350. if (this.state.isGive == 0) {
  1351. newYear = newYear
  1352. } else if (this.state.isGive == 1) {
  1353. newYear = newYear + "(赠)"
  1354. }
  1355. slist.push(newYear)
  1356. this.setState({
  1357. serviceLife: slist,
  1358. commodityQuantity: slist.length,
  1359. yearSum: slist.length.toString(),
  1360. addYears: false
  1361. }, () => {
  1362. // let addId = ""
  1363. // if (!!this.state.splitList) {
  1364. // for (var i = 0; i < this.state.splitList.length; i++) {
  1365. // if (this.state.splitList[i].serviceYear == newYear && this.state.splitList[i].type == 3) {
  1366. // addId = this.state.splitList[i].id
  1367. // }
  1368. // }
  1369. // }
  1370. // addId == ""
  1371. // ? this.onChange()
  1372. // : this.updateMemberSonProject(addId)
  1373. })
  1374. }}
  1375. onCancel={() => {
  1376. this.setState({
  1377. addYears: false
  1378. })
  1379. }}
  1380. >
  1381. <Select
  1382. style={{ width: '200px', marginRight: 50 }}
  1383. placeholder="请选择年份"
  1384. onChange={e => {
  1385. this.setState({
  1386. addyear: e,
  1387. })
  1388. }}
  1389. >
  1390. {
  1391. vipYear.map(its => (
  1392. <Option
  1393. key={its}
  1394. disabled={this.state.serviceLife.toString().includes(its)}
  1395. >{its}</Option>
  1396. ))
  1397. }
  1398. </Select>
  1399. <RadioGroup
  1400. onChange={e => {
  1401. this.setState({
  1402. isGive: e.target.value
  1403. })
  1404. }}
  1405. value={this.state.isGive}
  1406. >
  1407. <Radio value={0}>非赠送</Radio>
  1408. <Radio value={1}>赠送</Radio>
  1409. </RadioGroup>
  1410. </Modal>
  1411. }
  1412. </Modal >
  1413. )
  1414. }
  1415. }
  1416. export default newEditProject;