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. 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 < 5) &&
  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. ][this.state.yearSum]["key"]
  795. }
  796. </FormItem>
  797. }
  798. {
  799. // 会员合同期
  800. isVip == 6 &&
  801. <div className="clearfix">
  802. <FormItem
  803. className="half-item"
  804. {...formItemLayout}
  805. >
  806. </FormItem>
  807. <FormItem
  808. className="half-item"
  809. {...formItemLayout}
  810. label="合同期"
  811. >
  812. {
  813. readOnly ?
  814. !!this.state.contractTerm ? this.state.contractTerm.toString().replace(",", "至") : "" :
  815. <RangePicker
  816. style={{ width: 200 }}
  817. disabled={isMedit != 1}
  818. value={[
  819. this.state.contractTerm[0]
  820. ? moment(this.state.contractTerm[0])
  821. : null,
  822. this.state.contractTerm[1]
  823. ? moment(this.state.contractTerm[1])
  824. : null,
  825. ]}
  826. onChange={(data, dataString) => {
  827. this.setState({ contractTerm: dataString });
  828. }}
  829. />
  830. // <Select
  831. // mode="multiple"
  832. // style={{ width: '200px' }}
  833. // placeholder="请选择合同期"
  834. // disabled={isMedit != 1}
  835. // value={this.state.contractTerm}
  836. // onChange={e => {
  837. // this.setState({
  838. // contractTerm: e,
  839. // })
  840. // }}
  841. // >
  842. // {children}
  843. // </Select>
  844. }
  845. {!readOnly && <span className="mandatory">*</span>}
  846. </FormItem>
  847. </div>
  848. }
  849. {
  850. // 审计
  851. this.state.addProjectType == "3" &&
  852. <div className="clearfix">
  853. <FormItem
  854. labelCol={{ span: 4 }}
  855. wrapperCol={{ span: 16 }}
  856. label=""
  857. >
  858. <span style={{ color: "red" }}>注:派单年度的上年度总资产和收入。如,当前为2022年,那么需要填写2021年的总资产和收入!</span>
  859. </FormItem>
  860. {
  861. this.state.isYear && !readOnly &&
  862. <div className="clearfix">
  863. <FormItem
  864. className="half-item"
  865. label="企业上年度年份"
  866. {...formItemLayout}
  867. >
  868. <Select
  869. style={{ width: '200px' }}
  870. placeholder="请选择年份"
  871. value={this.state.lastYear}
  872. onChange={e => {
  873. this.setState({
  874. lastYear: e,
  875. })
  876. }}
  877. >
  878. {
  879. YearList.map(its => (
  880. <Option key={its}>{its}</Option>
  881. ))
  882. }
  883. </Select>
  884. <span className="mandatory">*</span>
  885. </FormItem>
  886. </div>
  887. }
  888. <FormItem
  889. className="half-item"
  890. label="企业上年度总资产(万元)"
  891. {...formItemLayout}
  892. >
  893. {
  894. readOnly ? this.state.lastYearCapital :
  895. <Input
  896. type='number'
  897. placeholder=""
  898. value={this.state.lastYearCapital}
  899. style={{ width: "200px" }}
  900. onChange={(e) => {
  901. this.setState({ lastYearCapital: e.target.value });
  902. }}
  903. />
  904. }
  905. {!readOnly && <span className="mandatory">*</span>}
  906. </FormItem>
  907. <FormItem
  908. className="half-item"
  909. label="企业上年度总收入(万元)"
  910. {...formItemLayout}
  911. >
  912. {
  913. readOnly ? this.state.lastYearIncome :
  914. <Input
  915. type='number'
  916. placeholder=""
  917. value={this.state.lastYearIncome}
  918. style={{ width: "200px" }}
  919. onChange={(e) => {
  920. this.setState({ lastYearIncome: e.target.value });
  921. }}
  922. />
  923. }
  924. {!readOnly && <span className="mandatory">*</span>}
  925. </FormItem>
  926. </div>
  927. }
  928. {
  929. // 普通项目说明
  930. isVip != 6 &&
  931. <div className="clearfix">
  932. <FormItem
  933. labelCol={{ span: 4 }}
  934. wrapperCol={{ span: 16 }}
  935. label="项目说明"
  936. >
  937. {readOnly ? this.state.taskComment :
  938. <Input
  939. type="textarea"
  940. placeholder=""
  941. autosize={{ minRows: 4 }}
  942. value={this.state.taskComment}
  943. onChange={(e) => {
  944. this.setState({ taskComment: e.target.value });
  945. }}
  946. />}
  947. </FormItem>
  948. </div>
  949. }
  950. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  951. {
  952. this.state.addProjectType === 5 &&
  953. <div className="clearfix">
  954. <FormItem
  955. className="half-item"
  956. {...formItemLayout}
  957. label="企业要求申报批次"
  958. >
  959. {readOnly ? (
  960. this.state.declarationBatch === 1 ? '第一批' :
  961. this.state.declarationBatch === 2 ? '第二批' :
  962. this.state.declarationBatch === 3 ? '第三批' :
  963. this.state.declarationBatch === 4 ? '第四批' : '未知'
  964. ) :
  965. <Select
  966. placeholder="请选择企业要求申报批次"
  967. style={{ width: "200px" }}
  968. value={this.state.declarationBatch}
  969. onChange={(e) => {
  970. this.setState({ declarationBatch: e });
  971. }}
  972. >
  973. <Select.Option value={1}>
  974. 第一批
  975. </Select.Option>
  976. <Select.Option value={2}>
  977. 第二批
  978. </Select.Option>
  979. <Select.Option value={3}>
  980. 第三批
  981. </Select.Option>
  982. <Select.Option value={4}>
  983. 第四批
  984. </Select.Option>
  985. </Select>}
  986. {!readOnly && <span className="mandatory">*</span>}
  987. </FormItem>
  988. <FormItem
  989. className="half-item"
  990. {...formItemLayout}
  991. label="申报年份"
  992. >
  993. {
  994. readOnly ? this.state.serviceYear :
  995. <Select
  996. style={{ width: '200px' }}
  997. placeholder="请选择申报年份"
  998. value={this.state.serviceYear}
  999. onChange={e => {
  1000. this.setState({
  1001. serviceYear: e,
  1002. })
  1003. }}
  1004. >
  1005. {
  1006. vipYear.map(its => (
  1007. <Option key={its}>{its}</Option>
  1008. ))
  1009. }
  1010. </Select>
  1011. }
  1012. {!readOnly && <span className="mandatory">*</span>}
  1013. </FormItem>
  1014. </div>
  1015. }
  1016. {
  1017. this.props.isIso || this.state.isIso ?
  1018. <div className="clearfix">
  1019. <FormItem
  1020. className="half-item"
  1021. {...formItemLayout}
  1022. label="是否包含认证费用"
  1023. >
  1024. {readOnly ? (
  1025. this.state.ifCertificationFee == "1" ? '包含' :
  1026. this.state.ifCertificationFee == "0" ? '不包含' : '未知'
  1027. ) : <Select
  1028. placeholder="请选择是否包含认证费用"
  1029. style={{ width: "200px" }}
  1030. value={this.state.ifCertificationFee}
  1031. onChange={(e) => {
  1032. this.setState({ ifCertificationFee: e });
  1033. }}
  1034. >
  1035. <Select.Option value={"0"}>否</Select.Option>
  1036. <Select.Option value={"1"}>是</Select.Option>
  1037. </Select>}
  1038. {!readOnly && <span className="mandatory">*</span>}
  1039. </FormItem>
  1040. </div> : null
  1041. }
  1042. {
  1043. isMedit == 0 && isVip == 6 &&
  1044. <div className="clearfix">
  1045. <FormItem
  1046. wrapperCol={{ span: 12, offset: 8 }}
  1047. className="half-middle"
  1048. >
  1049. <Button
  1050. className="submitSave"
  1051. onClick={() => {
  1052. this.setState({
  1053. isMedit: 1
  1054. })
  1055. }}
  1056. >
  1057. 重新编辑项目任务
  1058. </Button>
  1059. </FormItem>
  1060. </div>
  1061. }
  1062. {
  1063. ((!readOnly && isVip != 6) || (isVip == 6 && isMedit == 1)) &&
  1064. <div className="clearfix">
  1065. <FormItem
  1066. wrapperCol={{ span: 12, offset: 8 }}
  1067. className="half-middle"
  1068. >
  1069. <Button
  1070. className="submitSave"
  1071. type="primary"
  1072. onClick={() => {
  1073. this.onChange("submit");
  1074. }}
  1075. >
  1076. 保存
  1077. </Button>
  1078. <Button
  1079. className="submitSave"
  1080. type="ghost"
  1081. onClick={() => {
  1082. isVip == 6
  1083. ? this.setState({
  1084. isMedit: 0
  1085. })
  1086. : this.props.onCancel()
  1087. }}
  1088. >
  1089. 取消
  1090. </Button>
  1091. </FormItem>
  1092. </div>
  1093. }
  1094. {
  1095. // 会员项目子集列表
  1096. !!this.state.splitList && this.state.splitList.length > 0 &&
  1097. this.state.splitList.map((item) =>
  1098. // 标识为 3=删 不显示
  1099. item.type != 3 &&
  1100. <div
  1101. key={item.id}
  1102. className="clearfix"
  1103. style={{
  1104. width: "100%",
  1105. borderTop: "1px dashed #000000",
  1106. padding: "10px 0"
  1107. }}
  1108. >
  1109. <FormItem
  1110. className="half-item"
  1111. {...formItemLayout}
  1112. label="本次派单"
  1113. >
  1114. {item.serviceYear}
  1115. </FormItem>
  1116. <FormItem
  1117. className="half-item"
  1118. {...formItemLayout}
  1119. label="服务数量"
  1120. >
  1121. {item.commodityQuantity}
  1122. </FormItem>
  1123. {
  1124. (item.memberType == "0" || item.memberType == "1" || item.memberType == "2") &&
  1125. <FormItem
  1126. className="half-item"
  1127. {...formItemLayout}
  1128. label="付款情况"
  1129. >
  1130. {item.memberType == "0"
  1131. ? "已付会员节点全款" : item.memberType == "1"
  1132. ? "已付部分期款,需特批" : item.memberType == "2"
  1133. ? "未付款,需特批" : ""}
  1134. </FormItem>
  1135. }
  1136. {
  1137. (item.memberType == "1" || item.memberType == "2") &&
  1138. <div className="clearfix">
  1139. <FormItem
  1140. labelCol={{ span: 4 }}
  1141. wrapperCol={{ span: 16 }}
  1142. label="附件"
  1143. >
  1144. {item.pictureUrl ?
  1145. <div>
  1146. <ImgList fileList={splitUrl(item.pictureUrl, ",", globalConfig.avatarHost + "/upload")} ItemWidth={'96px'} />
  1147. </div> : <div />}
  1148. </FormItem>
  1149. </div>
  1150. }
  1151. <div className="clearfix">
  1152. <FormItem
  1153. labelCol={{ span: 4 }}
  1154. wrapperCol={{ span: 16 }}
  1155. label="项目说明"
  1156. >
  1157. {item.taskComment}
  1158. </FormItem>
  1159. </div>
  1160. {/* {
  1161. (isMedit == 0 || isMedit == 2) &&
  1162. <div className="clearfix">
  1163. <FormItem
  1164. wrapperCol={{ span: 12, offset: 10 }}
  1165. className="half-middle"
  1166. >
  1167. <Button type="danger"
  1168. onClick={() => {
  1169. const _this = this
  1170. confirm({
  1171. title: '确定要删除吗',
  1172. content: '确定删除本次派单吗',
  1173. okText: '确定',
  1174. okType: 'danger',
  1175. cancelText: '取消',
  1176. onOk() {
  1177. _this.deleteMemberSonProject(item.id)
  1178. },
  1179. onCancel() { },
  1180. });
  1181. }}
  1182. >删除</Button>
  1183. </FormItem>
  1184. </div>
  1185. } */}
  1186. </div>
  1187. )
  1188. }
  1189. {
  1190. (isMedit == 0 || isMedit == 2) &&
  1191. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1192. <div
  1193. className="clearfix"
  1194. style={{
  1195. width: "100%",
  1196. borderTop: "1px dashed #000000",
  1197. padding: "30px 0 10px 0"
  1198. }}
  1199. >
  1200. {
  1201. !this.state.addFrom &&
  1202. // this.state.splitList.length < this.state.yearSum &&
  1203. this.state.splitList.filter((item) => { return item.type != 3 }).length < this.state.yearSum &&
  1204. <div className="clearfix">
  1205. <FormItem
  1206. wrapperCol={{ span: 19, offset: 8 }}
  1207. className="half-middle"
  1208. >
  1209. <Button
  1210. type="primary"
  1211. onClick={() => {
  1212. this.setState({
  1213. addFrom: true,
  1214. })
  1215. }}
  1216. >
  1217. + 添加本次派单
  1218. </Button>
  1219. <span style={{ color: "#61BBE2", marginLeft: 10 }}>请填写本次派单的年份,派单表示立即安排人员开始相关的工作!!!</span>
  1220. </FormItem>
  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;