newEditProject.jsx 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427
  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. this.setState({
  455. loading: true,
  456. });
  457. let info = {
  458. tid: this.state.tid,
  459. serviceYear: this.state.serviceYear,
  460. taskComment: this.state.taskComment,
  461. }
  462. let changeInfo = {
  463. id: this.state.tid,
  464. serviceYear: this.state.serviceYear,
  465. taskComment: this.state.taskComment,
  466. }
  467. if (this.state.recoveryId != "") {
  468. this.updateMemberSonProject(this.state.recoveryId, this.state.taskComment)
  469. return
  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. }).done(
  481. function (data) {
  482. this.setState({
  483. loading: false,
  484. });
  485. if (!data.error.length) {
  486. message.success("保存成功!");
  487. let list = this.state.splitList
  488. let histList = this.state.histYear
  489. list.push(data.data)
  490. histList.push(data.data.serviceYear)
  491. this.setState({
  492. addFrom: false,
  493. splitList: list,
  494. histYear: histList,
  495. serviceYear: undefined,
  496. taskComment: undefined,
  497. isMedit: 0,
  498. })
  499. } else {
  500. message.warning(data.error[0].message);
  501. }
  502. }.bind(this)
  503. );
  504. }
  505. render() {
  506. let children = vipYear.map(its => (
  507. <Option key={its}>{its}</Option>
  508. ));
  509. const { RangePicker } = DatePicker;
  510. const { readOnly } = this.props;
  511. const { isVip, histYear, isMedit } = this.state
  512. return (
  513. <Modal
  514. maskClosable={false}
  515. visible={this.props.visible}
  516. onOk={this.props.onCancel}
  517. onCancel={this.props.onCancel}
  518. width="900px"
  519. title={readOnly ? "项目任务详情" : "编辑项目任务"}
  520. footer=""
  521. className="admin-desc-content"
  522. >
  523. <Form
  524. layout="horizontal"
  525. >
  526. <Spin spinning={this.state.loading}>
  527. <div>
  528. <div className="clearfix">
  529. <FormItem
  530. className="half-item"
  531. {...formItemLayout}
  532. label="服务名称"
  533. >
  534. {this.state.commodityName}
  535. </FormItem>
  536. {
  537. isVip != 6 &&
  538. <FormItem
  539. className="half-item"
  540. {...formItemLayout}
  541. label="服务数量"
  542. >
  543. {readOnly ? this.state.commodityQuantity :
  544. <Input
  545. placeholder="请输入服务数量"
  546. disabled={isVip == 6}
  547. value={this.state.commodityQuantity}
  548. style={{ width: "200px" }}
  549. onChange={(e) => {
  550. this.setState({ commodityQuantity: e.target.value });
  551. }}
  552. ref="commodityQuantity"
  553. />}
  554. {!readOnly && <span className="mandatory">*</span>}
  555. </FormItem>
  556. }
  557. </div>
  558. <FormItem
  559. className="half-item"
  560. {...formItemLayout}
  561. label="实签价格(万元)"
  562. >
  563. {readOnly ? this.state.commodityPrice :
  564. <Input
  565. type='number'
  566. placeholder="请输入实签价格"
  567. disabled={isMedit != 1}
  568. value={this.state.commodityPrice}
  569. style={{ width: "200px" }}
  570. onChange={(e) => {
  571. this.setState({ commodityPrice: e.target.value });
  572. }}
  573. ref="commodityPrice"
  574. />}
  575. {!readOnly && <span className="mandatory">*</span>}
  576. </FormItem>
  577. <FormItem
  578. className="half-item"
  579. {...formItemLayout}
  580. label="主要业务"
  581. >
  582. {readOnly ? getboutique(this.state.main) :
  583. <Select
  584. placeholder="选择是否为主要业务"
  585. disabled={isMedit != 1}
  586. style={{ width: "200px" }}
  587. value={this.state.main}
  588. onChange={(e) => {
  589. this.setState({ main: e });
  590. }}
  591. >
  592. {boutique.map(function (item) {
  593. return (
  594. <Select.Option key={item.value}>
  595. {item.key}
  596. </Select.Option>
  597. );
  598. })}
  599. </Select>}
  600. {!readOnly && <span className="mandatory">*</span>}
  601. </FormItem>
  602. {
  603. !this.state.patentTransfer &&
  604. <FormItem
  605. className="half-item"
  606. labelCol={{ span: 4 }}
  607. wrapperCol={{ span: 14 }}
  608. label="专利类型:"
  609. style={{
  610. display: this.state.displayFees,
  611. marginLeft: "63px",
  612. }}
  613. >
  614. {readOnly ? this.state.patentTypeName :
  615. <Select
  616. placeholder="请选择专利类型"
  617. style={{ width: "200px" }}
  618. value={this.state.patentType}
  619. onChange={(e) => {
  620. this.setState({ patentType: e });
  621. if (e !== 0 && e !== 2) {
  622. this.setState({
  623. costReduction: ''
  624. })
  625. }
  626. }}
  627. >
  628. {this.state.patentTypeList.map(function (v, k) {
  629. return (
  630. <Select.Option key={k} value={v.id}>{v.name}</Select.Option>
  631. );
  632. })}
  633. </Select>}
  634. <span style={{ color: "red", marginLeft: "8px" }}>
  635. *
  636. </span>
  637. </FormItem>
  638. }
  639. <FormItem
  640. className="half-item"
  641. labelCol={{ span: 3 }}
  642. wrapperCol={{ span: 14 }}
  643. label="官费:"
  644. style={{
  645. display: this.state.displayFees,
  646. marginLeft: "63px",
  647. }}
  648. >
  649. {readOnly
  650. ? (this.state.officialCost === 1 ? '含官费' : this.state.officialCost === 0 ? '不含官费' : '')
  651. : <Radio.Group
  652. value={this.state.officialCost}
  653. onChange={(e) => {
  654. this.setState({ officialCost: e.target.value });
  655. if (e.target.value === 0) {
  656. this.setState({
  657. costReduction: ''
  658. })
  659. }
  660. }}
  661. >
  662. <Radio value={1}>含官费</Radio>
  663. <Radio value={0}>不含官费</Radio>
  664. </Radio.Group>}
  665. <span style={{ color: "red", marginLeft: "8px" }}>
  666. *
  667. </span>
  668. </FormItem>
  669. {
  670. readOnly ?
  671. <FormItem
  672. className="half-item"
  673. labelCol={{ span: 3 }}
  674. wrapperCol={{ span: 14 }}
  675. label="费减:"
  676. style={{
  677. display: this.state.displayFees,
  678. marginLeft: "63px",
  679. }}
  680. >
  681. {this.state.costReduction === 1 ? '有费减' : this.state.costReduction === 0 ? '无费减' : ''}
  682. <span style={{ color: "red", marginLeft: "8px" }}>
  683. *
  684. </span>
  685. </FormItem>
  686. :
  687. (this.state.patentType === 0 || this.state.patentType === 2) && this.state.officialCost === 1 &&
  688. <FormItem
  689. className="half-item"
  690. labelCol={{ span: 3 }}
  691. wrapperCol={{ span: 14 }}
  692. label="费减:"
  693. style={{
  694. display: this.state.displayFees,
  695. marginLeft: "63px",
  696. }}
  697. >
  698. {/*不含官费或者专利类型不为复审或者申请时置灰*/}
  699. <Radio.Group
  700. disabled={this.state.officialCost === 0 || (this.state.patentType !== 0 && this.state.patentType !== 2)}
  701. value={this.state.costReduction}
  702. onChange={(e) => {
  703. this.setState({ costReduction: e.target.value });
  704. }}
  705. >
  706. <Radio value={1}>有费减</Radio>
  707. <Radio value={0}>无费减</Radio>
  708. </Radio.Group>
  709. <span style={{ color: "red", marginLeft: "8px" }}>
  710. *
  711. </span>
  712. </FormItem>
  713. }
  714. {
  715. //审计
  716. this.state.addProjectType == "3" &&
  717. <FormItem
  718. className="half-item"
  719. {...formItemLayout}
  720. label="服务年限"
  721. >
  722. {
  723. readOnly ?
  724. !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
  725. <Select
  726. mode="multiple"
  727. style={{ width: '200px' }}
  728. placeholder="请选择服务年限"
  729. value={this.state.serviceLife}
  730. onChange={(e) => {
  731. this.setState({
  732. serviceLife: e,
  733. })
  734. }}
  735. >
  736. {children}
  737. </Select>
  738. }
  739. {!readOnly && <span className="mandatory">*</span>}
  740. </FormItem>
  741. }
  742. {
  743. isVip == 6 &&
  744. <FormItem
  745. className="half-item"
  746. {...formItemLayout}
  747. label="会员服务年限"
  748. >
  749. {
  750. readOnly ?
  751. !!this.state.serviceLife ? this.state.serviceLife.toString() : "" :
  752. <div>
  753. {
  754. this.state.serviceLife.map((tag) =>
  755. <Tag
  756. key={tag}
  757. // closable={!isEdit}
  758. // afterClose={() => this.handleClose(tag)}
  759. // onClose={() => this.tagClose(tag)}
  760. onClick={() => isMedit == 1 && this.tagClose(tag)}
  761. >{tag + " "}{isMedit == 1 && <Icon type="close" />}</Tag>
  762. )
  763. }
  764. {
  765. isMedit == 1 && (this.state.serviceLife.length < 5) &&
  766. <Button
  767. size="small"
  768. type="primary"
  769. onClick={() => {
  770. this.setState({
  771. addYears: true,
  772. addyear: undefined,
  773. isGive: undefined,
  774. })
  775. }}>
  776. + 添加服务年限
  777. </Button>
  778. }
  779. </div>
  780. }
  781. </FormItem>
  782. }
  783. {
  784. isVip == 6 &&
  785. <FormItem
  786. className="half-item"
  787. {...formItemLayout}
  788. label="会员总服务年限"
  789. >
  790. {
  791. !this.state.yearSum ? "" :
  792. [
  793. { value: "0", key: "" },
  794. { value: "1", key: "一年" },
  795. { value: "2", key: "二年" },
  796. { value: "3", key: "三年" },
  797. { value: "4", key: "四年" },
  798. { value: "5", 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: 10 }}
  1052. className="half-middle"
  1053. >
  1054. <Button
  1055. className="submitSave"
  1056. type="primary"
  1057. onClick={() => {
  1058. this.setState({
  1059. isMedit: 1
  1060. })
  1061. }}
  1062. >
  1063. 我要编辑
  1064. </Button>
  1065. </FormItem>
  1066. </div>
  1067. }
  1068. {
  1069. ((!readOnly && isVip != 6) || (isVip == 6 && isMedit == 1)) &&
  1070. <div className="clearfix">
  1071. <FormItem
  1072. wrapperCol={{ span: 12, offset: 8 }}
  1073. className="half-middle"
  1074. >
  1075. <Button
  1076. className="submitSave"
  1077. type="primary"
  1078. onClick={() => {
  1079. this.onChange("submit");
  1080. }}
  1081. >
  1082. 保存
  1083. </Button>
  1084. <Button
  1085. className="submitSave"
  1086. type="ghost"
  1087. onClick={() => {
  1088. isVip == 6
  1089. ? this.setState({
  1090. isMedit: 0
  1091. })
  1092. : this.props.onCancel()
  1093. }}
  1094. >
  1095. 取消
  1096. </Button>
  1097. </FormItem>
  1098. </div>
  1099. }
  1100. {
  1101. // 会员项目子集列表
  1102. !!this.state.splitList && this.state.splitList.length > 0 &&
  1103. this.state.splitList.map((item) =>
  1104. // 标识为 3=删 不显示
  1105. item.type != 3 &&
  1106. <div
  1107. key={item.id}
  1108. className="clearfix"
  1109. style={{
  1110. width: "100%",
  1111. borderTop: "1px dashed #000000",
  1112. padding: "10px 0"
  1113. }}
  1114. >
  1115. <FormItem
  1116. className="half-item"
  1117. {...formItemLayout}
  1118. label="本次派单"
  1119. >
  1120. {item.serviceYear}
  1121. </FormItem>
  1122. <FormItem
  1123. className="half-item"
  1124. {...formItemLayout}
  1125. label="服务数量"
  1126. >
  1127. {item.commodityQuantity}
  1128. </FormItem>
  1129. {
  1130. (item.memberType == "0" || item.memberType == "1" || item.memberType == "2") &&
  1131. <FormItem
  1132. className="half-item"
  1133. {...formItemLayout}
  1134. label="付款情况"
  1135. >
  1136. {item.memberType == "0"
  1137. ? "已付会员节点全款" : item.memberType == "1"
  1138. ? "已付部分期款,需特批" : item.memberType == "2"
  1139. ? "未付款,需特批" : ""}
  1140. </FormItem>
  1141. }
  1142. {
  1143. (item.memberType == "1" || item.memberType == "2") &&
  1144. <div className="clearfix">
  1145. <FormItem
  1146. labelCol={{ span: 4 }}
  1147. wrapperCol={{ span: 16 }}
  1148. label="附件"
  1149. >
  1150. {item.pictureUrl ?
  1151. <div>
  1152. <ImgList fileList={splitUrl(item.pictureUrl, ",", globalConfig.avatarHost + "/upload")} ItemWidth={'96px'} />
  1153. </div> : <div />}
  1154. </FormItem>
  1155. </div>
  1156. }
  1157. <div className="clearfix">
  1158. <FormItem
  1159. labelCol={{ span: 4 }}
  1160. wrapperCol={{ span: 16 }}
  1161. label="项目说明"
  1162. >
  1163. {item.taskComment}
  1164. </FormItem>
  1165. </div>
  1166. {/* {
  1167. (isMedit == 0 || isMedit == 2) &&
  1168. <div className="clearfix">
  1169. <FormItem
  1170. wrapperCol={{ span: 12, offset: 10 }}
  1171. className="half-middle"
  1172. >
  1173. <Button type="danger"
  1174. onClick={() => {
  1175. const _this = this
  1176. confirm({
  1177. title: '确定要删除吗',
  1178. content: '确定删除本次派单吗',
  1179. okText: '确定',
  1180. okType: 'danger',
  1181. cancelText: '取消',
  1182. onOk() {
  1183. _this.deleteMemberSonProject(item.id)
  1184. },
  1185. onCancel() { },
  1186. });
  1187. }}
  1188. >删除</Button>
  1189. </FormItem>
  1190. </div>
  1191. } */}
  1192. </div>
  1193. )
  1194. }
  1195. {
  1196. (isMedit == 0 || isMedit == 2) &&
  1197. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1198. <div
  1199. className="clearfix"
  1200. style={{
  1201. width: "100%",
  1202. borderTop: "1px dashed #000000",
  1203. padding: "30px 0 10px 0"
  1204. }}
  1205. >
  1206. {
  1207. !this.state.addFrom &&
  1208. // this.state.splitList.length < this.state.yearSum &&
  1209. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1210. <div className="clearfix">
  1211. <Button
  1212. type="primary"
  1213. onClick={() => {
  1214. this.setState({
  1215. addFrom: true,
  1216. })
  1217. }}
  1218. >
  1219. + 本次派单
  1220. </Button>
  1221. </div>
  1222. }
  1223. {
  1224. this.state.addFrom &&
  1225. <div>
  1226. <FormItem
  1227. className="half-item"
  1228. {...formItemLayout}
  1229. label="本次派单"
  1230. >
  1231. <Select
  1232. placeholder="请选择本次派单年份"
  1233. style={{ width: "200px" }}
  1234. value={this.state.serviceYear}
  1235. onChange={(e) => {
  1236. let addId = ""
  1237. let addtext = ""
  1238. if (!!this.state.splitList) {
  1239. for (var i = 0; i < this.state.splitList.length; i++) {
  1240. if (this.state.splitList[i].serviceYear == e && this.state.splitList[i].type == 3) {
  1241. addId = this.state.splitList[i].id
  1242. addtext = this.state.splitList[i].taskComment
  1243. }
  1244. }
  1245. }
  1246. this.setState({
  1247. serviceYear: e,
  1248. recoveryId: addId,
  1249. taskComment: addtext,
  1250. });
  1251. }}
  1252. >
  1253. {this.state.serviceLife.length > 0 && this.state.serviceLife.map(function (item) {
  1254. return (
  1255. <Select.Option key={item} disabled={histYear.includes(item)}>
  1256. {item}
  1257. </Select.Option>
  1258. );
  1259. })}
  1260. </Select>
  1261. {<span className="mandatory">*</span>}
  1262. </FormItem>
  1263. <FormItem
  1264. className="half-item"
  1265. {...formItemLayout}
  1266. label="服务数量"
  1267. >
  1268. <Input
  1269. placeholder="请输入服务数量"
  1270. disabled={isVip == 6}
  1271. value={1}
  1272. style={{ width: "200px" }}
  1273. ref="commodityQuantity"
  1274. />
  1275. {<span className="mandatory">*</span>}
  1276. </FormItem>
  1277. <div className="clearfix">
  1278. <FormItem
  1279. labelCol={{ span: 4 }}
  1280. wrapperCol={{ span: 16 }}
  1281. label="项目说明"
  1282. >
  1283. <Input
  1284. type="textarea"
  1285. placeholder=""
  1286. autosize={{ minRows: 2 }}
  1287. value={this.state.taskComment}
  1288. onChange={(e) => {
  1289. this.setState({ taskComment: e.target.value });
  1290. }}
  1291. />
  1292. </FormItem>
  1293. </div>
  1294. <div className="clearfix">
  1295. <FormItem
  1296. wrapperCol={{ span: 12, offset: 8 }}
  1297. className="half-middle"
  1298. >
  1299. <Button
  1300. className="submitSave"
  1301. type="primary"
  1302. onClick={() => {
  1303. this.addMemberFirstSonProject()
  1304. }}
  1305. >
  1306. 保存
  1307. </Button>
  1308. <Button
  1309. className="submitSave"
  1310. type="ghost"
  1311. onClick={() => {
  1312. this.setState({
  1313. addFrom: false
  1314. })
  1315. }}
  1316. >
  1317. 取消
  1318. </Button>
  1319. </FormItem>
  1320. </div>
  1321. </div>
  1322. }
  1323. </div>
  1324. }
  1325. </div>
  1326. </Spin>
  1327. </Form>
  1328. {
  1329. this.state.addYears &&
  1330. <Modal
  1331. title="添加服务年限"
  1332. visible={this.state.addYears}
  1333. okText="添加"
  1334. onOk={() => {
  1335. if (!this.state.addyear) {
  1336. message.warn("请选择年份!")
  1337. return
  1338. }
  1339. if (this.state.isGive == undefined) {
  1340. message.warn("请选择是否赠送!")
  1341. return
  1342. }
  1343. let slist = this.state.serviceLife
  1344. let newYear = this.state.addyear
  1345. if (this.state.isGive == 0) {
  1346. newYear = newYear
  1347. } else if (this.state.isGive == 1) {
  1348. newYear = newYear + "(赠)"
  1349. }
  1350. slist.push(newYear)
  1351. this.setState({
  1352. serviceLife: slist,
  1353. commodityQuantity: slist.length,
  1354. yearSum: slist.length.toString(),
  1355. addYears: false
  1356. }, () => {
  1357. // let addId = ""
  1358. // if (!!this.state.splitList) {
  1359. // for (var i = 0; i < this.state.splitList.length; i++) {
  1360. // if (this.state.splitList[i].serviceYear == newYear && this.state.splitList[i].type == 3) {
  1361. // addId = this.state.splitList[i].id
  1362. // }
  1363. // }
  1364. // }
  1365. // addId == ""
  1366. // ? this.onChange()
  1367. // : this.updateMemberSonProject(addId)
  1368. })
  1369. }}
  1370. onCancel={() => {
  1371. this.setState({
  1372. addYears: false
  1373. })
  1374. }}
  1375. >
  1376. <Select
  1377. style={{ width: '200px', marginRight: 50 }}
  1378. placeholder="请选择年份"
  1379. onChange={e => {
  1380. this.setState({
  1381. addyear: e,
  1382. })
  1383. }}
  1384. >
  1385. {
  1386. vipYear.map(its => (
  1387. <Option
  1388. key={its}
  1389. disabled={this.state.serviceLife.toString().includes(its)}
  1390. >{its}</Option>
  1391. ))
  1392. }
  1393. </Select>
  1394. <RadioGroup
  1395. onChange={e => {
  1396. this.setState({
  1397. isGive: e.target.value
  1398. })
  1399. }}
  1400. value={this.state.isGive}
  1401. >
  1402. <Radio value={0}>非赠送</Radio>
  1403. <Radio value={1}>赠送</Radio>
  1404. </RadioGroup>
  1405. </Modal>
  1406. }
  1407. </Modal >
  1408. )
  1409. }
  1410. }
  1411. export default newEditProject;