myTask.jsx 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468
  1. import React from "react";
  2. import $ from "jquery";
  3. import moment from "moment";
  4. import Picture from "@/manageCenter/publicComponent/picture";
  5. import "@/manageCenter/financialManage/distribute/public.less";
  6. import {
  7. Button,
  8. Form,
  9. Input,
  10. Select,
  11. Spin,
  12. Table,
  13. message,
  14. DatePicker,
  15. Modal,
  16. Radio,
  17. Cascader,
  18. Popconfirm
  19. } from "antd";
  20. import Assign from "@/manageCenter/publicComponent/assign";
  21. import { areaSelect } from "@/NewDicProvinceList";
  22. import "./table.less";
  23. import {
  24. getProcessStatus,
  25. getApproval,
  26. getTaskStatus,
  27. getLiquidationStatus,
  28. getProjectStatus,
  29. splitUrl,
  30. getboutique
  31. } from "@/tools";
  32. import { taskStatus, projectStatus } from "@/dataDic.js";
  33. const FormItem = Form.Item;
  34. const Task = React.createClass({
  35. loadData(pageNo) {
  36. this.state.data = [];
  37. this.setState({
  38. page: pageNo,
  39. loading: true
  40. });
  41. $.ajax({
  42. method: "get",
  43. dataType: "json",
  44. crossDomain: false,
  45. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  46. data: {
  47. pageNo: pageNo || 1,
  48. pageSize: this.state.pagination.pageSize,
  49. specially: 0, //个人
  50. name: this.state.nameSearch, //客户名称
  51. depId: this.state.departmenttSearch, //订单部门
  52. orderNo: this.state.orderNoSearch, //订单编号
  53. taskId: this.state.taskNoSearch, //任务编号
  54. taskStatus: this.state.taskStatus, //任务状态
  55. adminName: this.state.adminName //任务受理人
  56. },
  57. success: function(data) {
  58. let theArr = [];
  59. if (!data.data || !data.data.list) {
  60. if (data.error && data.error.length) {
  61. message.warning(data.error[0].message);
  62. }
  63. } else {
  64. for (let i = 0; i < data.data.list.length; i++) {
  65. let thisdata = data.data.list[i];
  66. theArr.push({
  67. key: i,
  68. orderNo: thisdata.orderNo, //订单编号
  69. id: thisdata.id, //任务ID
  70. taskName: thisdata.taskName, //名称
  71. cname: thisdata.cname, //项目品类
  72. receiverName: thisdata.receiverName, //受理人
  73. projectStatus: thisdata.projectStatus, //项目状态
  74. taskStatus: thisdata.taskStatus, //任务状态
  75. taskDate: thisdata.taskDate, //分配时间
  76. userName:
  77. thisdata.taskName.substring(0, 5) === "软件著作权"
  78. ? thisdata.userName +
  79. "(" +
  80. thisdata.commodityQuantity.toString() +
  81. "/" +
  82. thisdata.alreadyNumber +
  83. ")"
  84. : thisdata.userName, //用户名
  85. depName: thisdata.depName, //部门名称
  86. commodityQuantity: thisdata.commodityQuantity //任务数量
  87. });
  88. }
  89. }
  90. this.state.pagination.current = data.data.pageNo;
  91. this.state.pagination.total = data.data.totalCount;
  92. if (data.data && data.data.list && !data.data.list.length) {
  93. this.state.pagination.current = 0;
  94. this.state.pagination.total = 0;
  95. }
  96. this.setState({
  97. dataSource: theArr,
  98. pagination: this.state.pagination
  99. });
  100. }.bind(this)
  101. }).always(
  102. function() {
  103. this.setState({
  104. loading: false
  105. });
  106. }.bind(this)
  107. );
  108. },
  109. getInitialState() {
  110. return {
  111. searchMore: true,
  112. assignVisible: false,
  113. releaseDate: [],
  114. roleName: "",
  115. testFlag: true,
  116. boHuivisible: false,
  117. selectedRowKeys: [],
  118. departmentArr: [],
  119. selectedRows: [],
  120. attachmentUrl: [],
  121. contactList: [],
  122. paginations: false,
  123. loading: false,
  124. pagination: {
  125. defaultCurrent: 1,
  126. defaultPageSize: 10,
  127. showQuickJumper: true,
  128. pageSize: 10,
  129. onChange: function(page) {
  130. this.loadData(page);
  131. }.bind(this),
  132. showTotal: function(total) {
  133. return "共" + total + "条数据";
  134. }
  135. },
  136. columns: [
  137. {
  138. title: "任务编号",
  139. dataIndex: "id",
  140. key: "id"
  141. },
  142. {
  143. title: "任务名称",
  144. dataIndex: "taskName",
  145. key: "taskName",
  146. render: text => {
  147. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  148. }
  149. },
  150. {
  151. title: "订单编号",
  152. dataIndex: "orderNo",
  153. key: "orderNo"
  154. },
  155. {
  156. title: "业务类别",
  157. dataIndex: "cname",
  158. key: "cname"
  159. },
  160. {
  161. title: "客户名称",
  162. dataIndex: "userName",
  163. key: "userName",
  164. className: "userName"
  165. },
  166. {
  167. title: "任务状态",
  168. dataIndex: "taskStatus",
  169. key: "taskStatus",
  170. render: text => {
  171. return getTaskStatus(text);
  172. }
  173. },
  174. {
  175. title: "项目状态",
  176. dataIndex: "projectStatus",
  177. key: "projectStatus",
  178. render: text => {
  179. return getProjectStatus(text);
  180. }
  181. },
  182. {
  183. title: "分配时间",
  184. dataIndex: "taskDate",
  185. key: "taskDate"
  186. },
  187. {
  188. title: "订单部门",
  189. dataIndex: "depName",
  190. key: "depName"
  191. },
  192. {
  193. title: "操作",
  194. dataIndex: "caozuo",
  195. key: "caozuo",
  196. render: (text, record) => {
  197. return (
  198. <div>
  199. <Button
  200. type="primary"
  201. onClick={e => {
  202. e.stopPropagation(), this.evaluate(record, "咨询师");
  203. }}
  204. >
  205. 转交
  206. </Button>
  207. <Button
  208. type="primary"
  209. style={{ margin: "0 10px" }}
  210. onClick={e => {
  211. e.stopPropagation(), this.okCancel(record);
  212. }}
  213. >
  214. 添加工时
  215. </Button>
  216. </div>
  217. );
  218. }
  219. }
  220. ],
  221. dataSource: [],
  222. searchTime: [],
  223. columnsX: [
  224. {
  225. title: "业务项目名称",
  226. dataIndex: "commodityName",
  227. key: "commodityName"
  228. },
  229. {
  230. title: "项目类别",
  231. dataIndex: "cname",
  232. key: "cname"
  233. },
  234. {
  235. title: "项目数量",
  236. dataIndex: "commodityQuantity",
  237. key: "commodityQuantity"
  238. },
  239. {
  240. title: "金额(万元)",
  241. dataIndex: "commodityPrice",
  242. key: "commodityPrice"
  243. },
  244. {
  245. title: "负责人",
  246. dataIndex: "contacts",
  247. key: "contacts"
  248. },
  249. {
  250. title: "负责人电话",
  251. dataIndex: "contactsMobile",
  252. key: "contactsMobile"
  253. },
  254. {
  255. title: "主要项目",
  256. dataIndex: "main",
  257. key: "main",
  258. render: text => {
  259. return text ? "是" : "否";
  260. }
  261. },
  262. {
  263. title: "项目说明",
  264. dataIndex: "taskComment",
  265. key: "taskComment",
  266. render: text => {
  267. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  268. }
  269. }
  270. ],
  271. columnsA: [
  272. {
  273. title: "流程",
  274. dataIndex: "content",
  275. key: "content",
  276. align: "center"
  277. },
  278. {
  279. title: "操作人",
  280. dataIndex: "aName",
  281. key: "aName",
  282. align: "center"
  283. },
  284. {
  285. title: "时间",
  286. dataIndex: "createTimes",
  287. key: "createTimes",
  288. align: "center"
  289. }
  290. ],
  291. dataSourceX: [],
  292. dataSourceA: [],
  293. ContactsLists: [
  294. {
  295. title: "批次",
  296. dataIndex: "num",
  297. key: "num"
  298. },
  299. {
  300. title: "下证时间",
  301. dataIndex: "licenceTimes",
  302. key: "licenceTimes",
  303. render: (text, record) => {
  304. return (
  305. <div>
  306. <DatePicker
  307. style={{ marginTop: "5px" }}
  308. showTime
  309. format="YYYY-MM-DD"
  310. onOk={() => {}}
  311. value={
  312. record.licenceTimes ? moment(record.licenceTimes) : null
  313. }
  314. onChange={(data, dataString) => {
  315. record.licenceTimes = dataString;
  316. this.setState({ contactList: this.state.contactList });
  317. }}
  318. />
  319. </div>
  320. );
  321. }
  322. },
  323. {
  324. title: "下证数量",
  325. dataIndex: "alreadyNumber",
  326. key: "alreadyNumber",
  327. render: (text, record) => {
  328. return (
  329. <div>
  330. {
  331. <Input
  332. value={record.alreadyNumber}
  333. placeholder="请输入下证数量"
  334. key={record.id}
  335. required="required"
  336. onChange={e => {
  337. record.alreadyNumber = e.target.value;
  338. this.setState({ contactList: this.state.contactList });
  339. }}
  340. style={{ width: "120px" }}
  341. />
  342. }
  343. </div>
  344. );
  345. }
  346. },
  347. {
  348. title: "未下证数量",
  349. dataIndex: "notCount",
  350. key: "notCount"
  351. },
  352. {
  353. title: "操作",
  354. dataIndex: "dels",
  355. key: "dels",
  356. render: (text, record, index) => {
  357. return (
  358. <div>
  359. {
  360. <Popconfirm
  361. title="是否删除?"
  362. onConfirm={() => {
  363. this.confirmDelet(record);
  364. }}
  365. okText="删除"
  366. cancelText="不删除"
  367. >
  368. <Button
  369. style={{
  370. marginRight: "10px",
  371. color: "#ffffff",
  372. background: "#f00",
  373. border: "none"
  374. }}
  375. >
  376. 删除
  377. </Button>
  378. </Popconfirm>
  379. }
  380. {record.flag ? (
  381. ""
  382. ) : (
  383. <Button
  384. type="primary"
  385. onClick={e => {
  386. e.stopPropagation(), this.contactSave(record, index);
  387. }}
  388. >
  389. 保存
  390. </Button>
  391. )}
  392. </div>
  393. );
  394. }
  395. }
  396. ]
  397. };
  398. },
  399. /* 分派 */
  400. evaluate(record, nub) {
  401. this.setState(
  402. {
  403. nub: nub,
  404. assignData: record
  405. },
  406. () => {
  407. this.setState({
  408. assignVisible: true
  409. });
  410. }
  411. );
  412. },
  413. componentWillMount() {
  414. this.departmentList();
  415. this.loadData();
  416. },
  417. componentDidMount() {
  418. this.setColor();
  419. },
  420. setColor() {
  421. $(".userName span").after(
  422. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  423. );
  424. },
  425. tableRowClick(record) {
  426. this.state.RowData = record;
  427. if (record.taskName.substring(0, 5) === "软件著作权") {
  428. this.setState({
  429. speVisible: true,
  430. id: record.id,
  431. dataArr: record,
  432. commodityQuantity: record.commodityQuantity
  433. });
  434. } else {
  435. this.setState({
  436. visible: true
  437. });
  438. }
  439. this.xiangqing(record.id, record.taskName);
  440. this.xiangqings(record.orderNo);
  441. this.xiangmu(record.orderNo);
  442. this.loaduserss(record);
  443. },
  444. //点击修改任务详情
  445. tijiaoOk() {
  446. let attachmentUrls = [];
  447. if (this.state.attachmentUrl.length) {
  448. let picArr = [];
  449. this.state.attachmentUrl.map(function(item) {
  450. if (item.response && item.response.data && item.response.data.length) {
  451. picArr.push(item.response.data);
  452. }
  453. });
  454. attachmentUrls = picArr.join(",");
  455. }
  456. $.ajax({
  457. method: "POST",
  458. dataType: "json",
  459. crossDomain: false,
  460. url: globalConfig.context + "/api/admin/orderProject/updateOrderTask",
  461. data: {
  462. id: this.state.id, //任务编号
  463. orderNo: this.state.orderNo, //订单编号
  464. projectStatus: this.state.projectStatus, //项目状态
  465. taskStatus: this.state.taskStatus, //任务状态
  466. taskComment: this.state.taskComment, //说明
  467. startDate: this.state.startDate, //启动日期
  468. endDate: this.state.endDate, //结束日期
  469. acceptDate: this.state.acceptDate, //受理日期
  470. reviewDate: this.state.reviewDate, //评审日期
  471. publicityDate: this.state.publicityDate, //公示日期
  472. licenceDate: this.state.licenceDate, //发证日期
  473. attachmentUrl: attachmentUrls.length ? attachmentUrls : "", //附件
  474. contacts: this.state.contacts, //联系人
  475. contactMobile: this.state.contactMobile, //联系人电话
  476. legalPerson: this.state.legalPerson, //法人
  477. legalPersonTel: this.state.legalPersonTel, //法人电话
  478. certificateNumber: this.state.certificateNumber, //证书编号
  479. status: this.state.status, //状态
  480. formRetrieve: this.state.formRetrieve, //满意度表格
  481. taskRefund: this.state.taskRefund, //退单
  482. refundContent: this.state.refundContent, //退单信息
  483. retrieveContent: this.state.retrieveContent, //回收信息
  484. locationProvince: this.state.ProvinceCity[0],
  485. locationCity: this.state.ProvinceCity[1],
  486. locationArea: this.state.ProvinceCity[2],
  487. postalAddress: this.state.postalAddress, //详细地址
  488. arrivalMoney: this.state.arrivalMoney, //是否到款
  489. setUpAmount: this.state.setUpAmount, //立项金额
  490. declareUser: this.state.declareUser, //账号
  491. declarePwd: this.state.declarePwd, //密码
  492. outsourceName: this.state.outsourceName, //外包公司
  493. outsourcePrice: this.state.outsourcePrice //外包价格
  494. }
  495. }).done(
  496. function(data) {
  497. this.setState({
  498. loading: false
  499. });
  500. if (!data.error.length) {
  501. message.success("保存成功!");
  502. this.visitCancel();
  503. } else {
  504. message.warning(data.error[0].message);
  505. }
  506. }.bind(this)
  507. );
  508. },
  509. //点击修改任务详情
  510. tianjiaOk() {
  511. if (this.state.attachmentUrl.length) {
  512. let picArr = [];
  513. this.state.attachmentUrl.map(function(item) {
  514. if (item.response && item.response.data && item.response.data.length) {
  515. picArr.push(item.response.data);
  516. }
  517. });
  518. }
  519. $.ajax({
  520. method: "POST",
  521. dataType: "json",
  522. crossDomain: false,
  523. url: globalConfig.context + "/api/admin/orderProject/addTaskHours",
  524. data: {
  525. taskId: this.state.taskId, //任务编号
  526. hours: this.state.hours, //工时
  527. remarks: this.state.remarks, //说明
  528. taskDate: this.state.taskDate, //日期
  529. taskComment: this.state.taskComment //说明
  530. }
  531. }).done(
  532. function(data) {
  533. this.setState({
  534. loading: false
  535. });
  536. if (!data.error.length) {
  537. message.success("保存成功!");
  538. this.noCancel();
  539. } else {
  540. message.warning(data.error[0].message);
  541. }
  542. }.bind(this)
  543. );
  544. },
  545. //订单详情
  546. xiangqing(id) {
  547. $.ajax({
  548. method: "get",
  549. dataType: "json",
  550. crossDomain: false,
  551. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  552. data: {
  553. id: id
  554. },
  555. success: function(data) {
  556. let thisdata = data.data;
  557. if (data.error.length || data.data.list == "") {
  558. if (data.error && data.error.length) {
  559. message.warning(data.error[0].message);
  560. }
  561. } else {
  562. this.setState({
  563. id: thisdata.id, //ID
  564. orderNo: thisdata.orderNo, //订单编号
  565. userName: thisdata.userName, //客户名称
  566. taskName: thisdata.taskName, //任务名称
  567. cname: thisdata.cname, //项目品类
  568. contractNo: thisdata.contractNo, //合同编号
  569. projectStatus: thisdata.projectStatus.toString(), //项目状态
  570. taskStatus: thisdata.taskStatus.toString(), //任务状态
  571. taskDate: thisdata.taskDate, //分配时间
  572. taskComment: thisdata.taskComment, //说明
  573. attachmentUrl: thisdata.attachmentUrl
  574. ? splitUrl(
  575. thisdata.attachmentUrl,
  576. ",",
  577. globalConfig.avatarHost + "/upload"
  578. )
  579. : [], //图片地址
  580. salesmanName: thisdata.salesmanName, //订单负责人
  581. startDate: thisdata.startDate, //启动日期
  582. endDate: thisdata.endDate, //结束日期
  583. acceptDate: thisdata.acceptDate, //受理日期
  584. reviewDate: thisdata.reviewDate, //评审日期
  585. publicityDate: thisdata.publicityDate, //公示日期
  586. licenceDate: thisdata.licenceDate, //发证日期
  587. contacts: thisdata.contacts, //联系人
  588. contactMobile: thisdata.contactMobile, //联系人电话
  589. legalPerson: thisdata.legalPerson, //法人
  590. legalPersonTel: thisdata.legalPersonTel, //法人电话
  591. certificateNumber: thisdata.certificateNumber, //证书编号
  592. status: thisdata.status, //状态
  593. formRetrieve: thisdata.formRetrieve, //满意度表格
  594. taskRefund: thisdata.taskRefund, //退单
  595. refundContent: thisdata.refundContent, //退单信息
  596. retrieveContent: thisdata.retrieveContent, //回收信息
  597. arrivalMoney: thisdata.arrivalMoney, //是否到款
  598. setUpAmount: thisdata.setUpAmount, //立项金额
  599. declareUser: thisdata.declareUser, //账号
  600. declarePwd: thisdata.declarePwd, //密码
  601. outsourceName: thisdata.outsourceName, //外包公司
  602. outsourcePrice: thisdata.outsourcePrice //外包价格
  603. });
  604. }
  605. }.bind(this)
  606. }).always(
  607. function() {
  608. this.setState({
  609. loading: false
  610. });
  611. }.bind(this)
  612. );
  613. },
  614. //订单详情
  615. xiangqings(orderNos) {
  616. $.ajax({
  617. method: "get",
  618. dataType: "json",
  619. crossDomain: false,
  620. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  621. data: {
  622. orderNo: orderNos
  623. },
  624. success: function(data) {
  625. let thisdata = data.data;
  626. let ProvinceCityArr = [];
  627. let ProvinceS = thisdata.locationProvince; //省
  628. let citys = thisdata.locationCity; //市
  629. let Areas = thisdata.locationArea; //区
  630. ProvinceCityArr.push(ProvinceS, citys, Areas);
  631. if (data.error.length || data.data.list == "") {
  632. if (data.error && data.error.length) {
  633. message.warning(data.error[0].message);
  634. }
  635. } else {
  636. this.setState({
  637. processStatus: thisdata.processStatus, //流程状态
  638. liquidationStatus: thisdata.liquidationStatus, //结算状态
  639. approval: thisdata.approval, //特批状态
  640. orderRemarks: thisdata.orderRemarks, //订单留言
  641. salesmanName: thisdata.salesmanName, //营销员名称
  642. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  643. financeName: thisdata.financeName, //财务名称
  644. financeMobile: thisdata.financeMobile, //财务电话
  645. depName: thisdata.depName, //订单部门
  646. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  647. postalAddress: thisdata.postalAddress //详细地址
  648. });
  649. }
  650. console.log(this.state.ProvinceCity);
  651. }.bind(this)
  652. }).always(
  653. function() {
  654. this.setState({
  655. loading: false
  656. });
  657. }.bind(this)
  658. );
  659. },
  660. //项目列表
  661. xiangmu(orderNos) {
  662. $.ajax({
  663. method: "get",
  664. dataType: "json",
  665. crossDomain: false,
  666. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  667. data: {
  668. orderNo: orderNos
  669. },
  670. success: function(data) {
  671. let theArr = [];
  672. if (data.error.length || data.data.list == "") {
  673. if (data.error && data.error.length) {
  674. message.warning(data.error[0].message);
  675. }
  676. } else {
  677. for (let i = 0; i < data.data.length; i++) {
  678. let thisdata = data.data[i];
  679. theArr.push({
  680. key: i,
  681. id: thisdata.id,
  682. orderNo: thisdata.orderNo, //订单编号
  683. commodityId: thisdata.commodityId, //项目ID
  684. commodityName: thisdata.commodityName, //项目名称
  685. cname: thisdata.cname, //项目类别
  686. commodityPrice: thisdata.commodityPrice, //项目价格
  687. commodityQuantity: thisdata.commodityQuantity, //项目数量
  688. main: thisdata.main, //是否为主要任务
  689. taskComment: thisdata.taskComment, //任务说明
  690. contacts: thisdata.contacts, //联系人
  691. contactsMobile: thisdata.contactsMobile, //联系人电话
  692. taskStatus: thisdata.taskStatus, //是否分配
  693. contractNo: thisdata.contractNo, //合同编号
  694. certificateNumber: thisdata.certificateNumber
  695. });
  696. }
  697. }
  698. this.setState({
  699. dataSourceX: theArr
  700. });
  701. }.bind(this)
  702. }).always(
  703. function() {
  704. this.setState({
  705. loading: false
  706. });
  707. }.bind(this)
  708. );
  709. },
  710. //导出
  711. exportExec() {
  712. let departmentName = "",
  713. depart = this.state.departmentArr || [];
  714. depart.map(item => {
  715. if (this.state.departmentId == item.id) {
  716. departmentName = item.name;
  717. return;
  718. }
  719. });
  720. let data = {
  721. departmentId: this.state.departmentId,
  722. departmentName: departmentName,
  723. salesName: this.state.orderRefundSearch, //订单负责人
  724. startTime: this.state.releaseDate[0],
  725. endTime: this.state.releaseDate[1],
  726. grantStatus: this.state.grantStatus
  727. };
  728. window.location.href =
  729. globalConfig.context +
  730. "/api/admin/orderProject/exportMyTaskList?" +
  731. $.param(data);
  732. },
  733. //关闭详情
  734. visitCancel() {
  735. this.setState({
  736. visible: false,
  737. speVisible: false
  738. });
  739. this.reset();
  740. },
  741. visitOk() {
  742. this.setState({
  743. visible: false,
  744. speVisible: false
  745. });
  746. this.reset();
  747. },
  748. closeDesc(e, s) {
  749. this.state.showDesc = e;
  750. if (s) {
  751. this.loadData(this.state.page);
  752. }
  753. },
  754. closeAssign(e, s) {
  755. this.state.roleName = "";
  756. this.state.assignVisible = e;
  757. if (s) {
  758. this.loadData(this.state.page);
  759. }
  760. },
  761. //添加工时
  762. okCancel(record) {
  763. this.setState({
  764. lookVisible: true,
  765. taskId: record.id
  766. });
  767. },
  768. //测试
  769. getOrgCodeUrl(e) {
  770. this.setState({ orgCodeUrl: e });
  771. },
  772. //查看下证信息
  773. loaduserss(record) {
  774. $.ajax({
  775. method: "get",
  776. dataType: "json",
  777. crossDomain: false,
  778. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  779. data: {
  780. tid: record.id
  781. },
  782. success: function(data) {
  783. let theArr = [];
  784. let thisData = [];
  785. if (!thisData) {
  786. if (data.error && data.error.length) {
  787. message.warning(data.error[0].message);
  788. }
  789. thisData = {};
  790. } else {
  791. for (let i = 0; i < data.data.length; i++) {
  792. thisData = data.data[i];
  793. theArr.push({
  794. num: i + 1,
  795. key: i,
  796. id: thisData.id, //编号
  797. alreadyNumber: thisData.alreadyNumber, //下证数
  798. licenceTimes: thisData.licenceTimes, //下证时间
  799. notCount: thisData.notCount, //未下证数
  800. flag: true
  801. });
  802. }
  803. this.setState({
  804. contactList: theArr
  805. });
  806. }
  807. }.bind(this)
  808. }).always(
  809. function() {
  810. this.setState({
  811. loading: false
  812. });
  813. }.bind(this)
  814. );
  815. },
  816. //下证信息保存
  817. contactSave(record) {
  818. if (!record.licenceTimes) {
  819. message.warning("下证日期不能为空");
  820. return;
  821. }
  822. if (!record.alreadyNumber) {
  823. message.warning("下证数量不能为空");
  824. return;
  825. }
  826. this.setState({
  827. loading: true
  828. });
  829. $.ajax({
  830. url: globalConfig.context + "/api/admin/orderProject/createTaskProgress",
  831. method: "post",
  832. data: {
  833. taskId: this.state.id,
  834. licenceTimes: record.licenceTimes,
  835. alreadyNumber: record.alreadyNumber
  836. }
  837. }).done(
  838. function(data) {
  839. this.setState({
  840. loading: false
  841. });
  842. if (!data.error.length) {
  843. message.success("保存成功!");
  844. record.flag = true;
  845. this.loaduserss(this.state.dataArr);
  846. } else {
  847. message.warning(data.error[0].message);
  848. }
  849. }.bind(this)
  850. );
  851. },
  852. //下证信息删除
  853. contactDele(record) {
  854. this.setState({
  855. loading: true
  856. });
  857. $.ajax({
  858. url: globalConfig.context + "/api/admin/orderProject/delectTaskProgress",
  859. method: "post",
  860. data: {
  861. id: record.id
  862. }
  863. }).done(
  864. function(data) {
  865. this.setState({
  866. loading: false
  867. });
  868. if (!data.error.length) {
  869. this.loaduserss(this.state.dataArr);
  870. } else {
  871. message.warning(data.error[0].message);
  872. }
  873. }.bind(this)
  874. );
  875. },
  876. //点击新增下证信息
  877. addcontact() {
  878. this.state.contactList.push({
  879. num: this.state.contactList.length + 1,
  880. key: this.state.contactList.length,
  881. licenceTimes: "",
  882. alreadyNumber: "",
  883. notCount: "",
  884. dels: "",
  885. flag: false,
  886. aflag: false
  887. });
  888. this.setState({
  889. contactList: this.state.contactList
  890. });
  891. },
  892. //删除下证信息
  893. confirmDelet(record) {
  894. this.state.contactList.splice(record.key, 1);
  895. this.setState({
  896. contactList: this.state.contactList
  897. });
  898. if (record.id) {
  899. this.contactDele(record);
  900. }
  901. },
  902. caozuorizhi() {
  903. this.setState({
  904. visibleA: true
  905. });
  906. $.ajax({
  907. method: "get",
  908. dataType: "json",
  909. crossDomain: false,
  910. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  911. data: {
  912. id: this.state.id
  913. },
  914. success: function(data) {
  915. let theArr = [];
  916. if (data.error.length || data.data.list == "") {
  917. if (data.error && data.error.length) {
  918. message.warning(data.error[0].message);
  919. }
  920. } else {
  921. for (let i = 0; i < data.data.length; i++) {
  922. let thisdata = data.data[i];
  923. theArr.push({
  924. key: i,
  925. id: thisdata.id, //日志ID
  926. content: thisdata.content, //流程
  927. taskId: thisdata.taskId, //任务ID
  928. aName: thisdata.aName, //负责人
  929. createTimes: thisdata.createTimes //时间
  930. });
  931. }
  932. }
  933. this.setState({
  934. dataSourceA: theArr
  935. });
  936. }.bind(this)
  937. }).always(
  938. function() {
  939. this.setState({
  940. loading: false
  941. });
  942. }.bind(this)
  943. );
  944. },
  945. //关闭操作工时
  946. visitCancelA() {
  947. this.setState({
  948. visibleA: false
  949. });
  950. },
  951. nextCancel() {
  952. this.setState({
  953. addnextVisible: false
  954. });
  955. },
  956. //点击打卡项目详情
  957. tableRowClickX(record) {
  958. this.setState({
  959. jid: record.id, //项目ID
  960. kid: record.commodityId, //商品ID
  961. commodityName: record.commodityName, //金额
  962. commodityPrice: record.commodityPrice, //金额
  963. commodityQuantity: record.commodityQuantity, //数量
  964. taskComment: record.taskComment, //备注
  965. main: record.main.toString(), //是否为主要
  966. addnextVisible: true,
  967. addState: 0
  968. });
  969. },
  970. //关闭添加工时
  971. noCancel() {
  972. this.setState({
  973. lookVisible: false
  974. });
  975. this.reset();
  976. },
  977. search() {
  978. this.loadData();
  979. },
  980. reset() {
  981. this.state.id = ""; //任务编号
  982. this.state.orderNo = ""; //订单编号
  983. this.state.projectStatus = undefined; //项目状态
  984. this.state.taskStatus = undefined; //任务状态
  985. this.state.taskComment = ""; //说明
  986. this.state.startDate = ""; //启动日期
  987. this.state.endDate = ""; //结束日期
  988. this.state.acceptDate = ""; //受理日期
  989. this.state.reviewDate = ""; //评审日期
  990. this.state.publicityDate = ""; //公示日期
  991. this.state.licenceDate = ""; //发证日期
  992. attachmentUrl: []; //附件
  993. this.state.contacts = ""; //联系人
  994. this.state.contactMobile = ""; //联系人电话
  995. this.state.legalPerson = ""; //法人
  996. this.state.legalPersonTel = ""; //法人电话
  997. this.state.taskId = ""; //任务编号
  998. this.state.hours = ""; //工时
  999. this.state.remarks = ""; //说明
  1000. this.state.taskDate = ""; //日期
  1001. this.state.taskComment = ""; //说明
  1002. this.state.nameSearch = "";
  1003. this.state.releaseDate = [];
  1004. this.state.orderNoSearch = "";
  1005. this.state.taskNoSearch = "";
  1006. this.state.outsourceName = "";
  1007. this.state.outsourcePrice = undefined;
  1008. this.state.distribution = undefined;
  1009. this.state.departmenttSearch = undefined;
  1010. this.loadData(this.state.page);
  1011. },
  1012. searchSwitch() {
  1013. this.setState({
  1014. searchMore: !this.state.searchMore
  1015. });
  1016. },
  1017. //部门
  1018. departmentList() {
  1019. this.setState({
  1020. loading: true
  1021. });
  1022. $.ajax({
  1023. method: "get",
  1024. dataType: "json",
  1025. crossDomain: false,
  1026. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1027. data: {},
  1028. success: function(data) {
  1029. let thedata = data.data;
  1030. let theArr = [];
  1031. if (!thedata) {
  1032. if (data.error && data.error.length) {
  1033. message.warning(data.error[0].message);
  1034. }
  1035. thedata = {};
  1036. } else {
  1037. thedata.map(function(item, index) {
  1038. theArr.push({
  1039. key: index,
  1040. name: item.name,
  1041. id: item.id
  1042. });
  1043. });
  1044. }
  1045. this.setState({
  1046. departmentArr: theArr
  1047. });
  1048. }.bind(this)
  1049. }).always(
  1050. function() {
  1051. this.setState({
  1052. loading: false
  1053. });
  1054. }.bind(this)
  1055. );
  1056. },
  1057. render() {
  1058. const formItemLayout = {
  1059. labelCol: { span: 8 },
  1060. wrapperCol: { span: 14 }
  1061. };
  1062. let departmentArr = this.state.departmentArr || [];
  1063. return (
  1064. <div className="user-content">
  1065. <div className="content-title">
  1066. <span>任务派单管理</span>
  1067. </div>
  1068. <div className="user-search">
  1069. <Input
  1070. placeholder="客户名称"
  1071. value={this.state.nameSearch}
  1072. onChange={e => {
  1073. this.setState({ nameSearch: e.target.value });
  1074. }}
  1075. />
  1076. <Input
  1077. placeholder="订单编号"
  1078. value={this.state.orderNoSearch}
  1079. onChange={e => {
  1080. this.setState({ orderNoSearch: e.target.value });
  1081. }}
  1082. />
  1083. <Input
  1084. placeholder="任务编号"
  1085. value={this.state.taskNoSearch}
  1086. onChange={e => {
  1087. this.setState({ taskNoSearch: e.target.value });
  1088. }}
  1089. />
  1090. <Select
  1091. placeholder="选择部门"
  1092. style={{ width: 150, marginRight: "10px" }}
  1093. value={this.state.departmenttSearch}
  1094. onChange={e => {
  1095. this.setState({ departmenttSearch: e });
  1096. }}
  1097. >
  1098. {departmentArr.map(function(item) {
  1099. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  1100. })}
  1101. </Select>
  1102. <Button type="primary" onClick={this.search}>
  1103. 搜索
  1104. </Button>
  1105. <Button onClick={this.reset}>重置</Button>
  1106. <Button
  1107. type="primary"
  1108. style={{ marginLeft: "10px" }}
  1109. onClick={this.exportExec}
  1110. >
  1111. 导出Excel
  1112. </Button>
  1113. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1114. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1115. <span>订单时间 :</span>
  1116. <RangePicker
  1117. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1118. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1119. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1120. </div> */}
  1121. </div>
  1122. <div className="patent-table">
  1123. <Spin spinning={this.state.loading}>
  1124. <Table
  1125. columns={this.state.columns}
  1126. dataSource={this.state.dataSource}
  1127. pagination={this.state.pagination}
  1128. onRowClick={this.tableRowClick.bind(this)}
  1129. />
  1130. </Spin>
  1131. </div>
  1132. <Assign
  1133. title="任务"
  1134. selApi={"/api/admin/orderProject/projectDistribution"}
  1135. data={this.state.assignData}
  1136. showDesc={this.state.assignVisible}
  1137. closeDesc={this.closeAssign.bind(this)}
  1138. fenpaiData={8}
  1139. specially={0}
  1140. roleName={this.state.nub}
  1141. requestMethod={"post"}
  1142. />
  1143. <Modal
  1144. className="customeDetails"
  1145. footer=""
  1146. title="项目概况"
  1147. width="900px"
  1148. visible={this.state.visible}
  1149. onOk={this.visitOk}
  1150. onCancel={this.visitCancel}
  1151. >
  1152. <Form
  1153. layout="horizontal"
  1154. onSubmit={this.handleSubmit}
  1155. id="demand-form"
  1156. style={{ paddingBottom: "00px" }}
  1157. >
  1158. <Spin spinning={this.state.loading}>
  1159. <div className="clearfix">
  1160. <div className="clearfix">
  1161. <FormItem
  1162. className="half-item"
  1163. {...formItemLayout}
  1164. label="当前项目情况"
  1165. >
  1166. <Radio.Group
  1167. value={this.state.status}
  1168. onChange={e => {
  1169. this.setState({ status: e.target.value });
  1170. }}
  1171. >
  1172. <Radio value={0}>开启</Radio>
  1173. <Radio value={1}>暂停</Radio>
  1174. </Radio.Group>
  1175. <Button
  1176. type="primary"
  1177. size="small"
  1178. style={{ marginTop: "5px", position: "absolute" }}
  1179. onClick={this.caozuorizhi}
  1180. >
  1181. 操作日志
  1182. </Button>
  1183. </FormItem>
  1184. <FormItem
  1185. className="half-item"
  1186. {...formItemLayout}
  1187. label="合同编号"
  1188. >
  1189. <span>{this.state.contractNo}</span>
  1190. </FormItem>
  1191. </div>
  1192. <div className="clearfix">
  1193. <FormItem
  1194. className="half-item"
  1195. {...formItemLayout}
  1196. label="项目状态"
  1197. >
  1198. <Select
  1199. placeholder="选择项目状态"
  1200. style={{ width: "200px" }}
  1201. value={this.state.projectStatus}
  1202. onChange={e => {
  1203. this.setState({ projectStatus: e });
  1204. }}
  1205. >
  1206. {projectStatus.map(function(item) {
  1207. return (
  1208. <Select.Option key={item.value}>
  1209. {item.key}
  1210. </Select.Option>
  1211. );
  1212. })}
  1213. </Select>
  1214. </FormItem>
  1215. <FormItem
  1216. className="half-item"
  1217. {...formItemLayout}
  1218. label="是否特批"
  1219. >
  1220. <span>{getApproval(this.state.approval)}</span>
  1221. </FormItem>
  1222. <FormItem
  1223. className="half-item"
  1224. {...formItemLayout}
  1225. label="结算状态"
  1226. >
  1227. <span>
  1228. {getLiquidationStatus(this.state.liquidationStatus)}
  1229. </span>
  1230. </FormItem>
  1231. <FormItem
  1232. className="half-item"
  1233. {...formItemLayout}
  1234. label="流程状态"
  1235. >
  1236. <span>{getProcessStatus(this.state.processStatus)}</span>
  1237. </FormItem>
  1238. <FormItem
  1239. className="half-item"
  1240. {...formItemLayout}
  1241. label="订单编号"
  1242. >
  1243. <span>{this.state.orderNo}</span>
  1244. </FormItem>
  1245. </div>
  1246. <div className="clearfix">
  1247. <FormItem
  1248. className="half-item"
  1249. {...formItemLayout}
  1250. label="满意度表格"
  1251. >
  1252. <Radio.Group
  1253. value={this.state.formRetrieve}
  1254. onChange={e => {
  1255. this.setState({ formRetrieve: e.target.value });
  1256. }}
  1257. >
  1258. <Radio value={0}>未收回</Radio>
  1259. <Radio value={1}>已收回</Radio>
  1260. <Radio value={2}>其他</Radio>
  1261. </Radio.Group>
  1262. </FormItem>
  1263. <FormItem
  1264. className="half-item"
  1265. {...formItemLayout}
  1266. label="退单"
  1267. >
  1268. <Radio.Group
  1269. value={this.state.taskRefund}
  1270. onChange={e => {
  1271. this.setState({ taskRefund: e.target.value });
  1272. }}
  1273. >
  1274. <Radio value={0}>已完成</Radio>
  1275. <Radio value={1}>未完成</Radio>
  1276. <Radio value={2}>其他</Radio>
  1277. </Radio.Group>
  1278. </FormItem>
  1279. </div>
  1280. <div className="clearfix">
  1281. {
  1282. <FormItem
  1283. className="half-item"
  1284. {...formItemLayout}
  1285. label="(满意度)备注"
  1286. >
  1287. <Input
  1288. type="textarea"
  1289. placeholder="请输入备注"
  1290. rows={2}
  1291. value={this.state.retrieveContent}
  1292. onChange={e => {
  1293. this.setState({ retrieveContent: e.target.value });
  1294. }}
  1295. />
  1296. </FormItem>
  1297. }
  1298. {
  1299. <FormItem
  1300. className="half-item"
  1301. {...formItemLayout}
  1302. label="(退单)备注"
  1303. >
  1304. <Input
  1305. type="textarea"
  1306. placeholder="请输入备注"
  1307. rows={2}
  1308. value={this.state.refundContent}
  1309. onChange={e => {
  1310. this.setState({ refundContent: e.target.value });
  1311. }}
  1312. />
  1313. </FormItem>
  1314. }
  1315. </div>
  1316. <div className="clearfix">
  1317. <h3 className="sub-title">订单负责人信息</h3>
  1318. <FormItem
  1319. className="half-item"
  1320. {...formItemLayout}
  1321. label="负责人"
  1322. >
  1323. <span>
  1324. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1325. </span>
  1326. </FormItem>
  1327. <FormItem
  1328. className="half-item"
  1329. {...formItemLayout}
  1330. label="负责人电话"
  1331. >
  1332. <span>{this.state.salesmanMobile}</span>
  1333. </FormItem>
  1334. <FormItem
  1335. className="half-item"
  1336. {...formItemLayout}
  1337. label="财务负责人"
  1338. >
  1339. <span>{this.state.financeName}</span>
  1340. </FormItem>
  1341. <FormItem
  1342. className="half-item"
  1343. {...formItemLayout}
  1344. label="财务负责人电话"
  1345. >
  1346. <span>{this.state.financeMobile}</span>
  1347. </FormItem>
  1348. </div>
  1349. <div className="clearfix">
  1350. <h3 className="sub-title">外包信息</h3>
  1351. <FormItem
  1352. className="half-item"
  1353. {...formItemLayout}
  1354. label="外包公司"
  1355. >
  1356. <Input
  1357. value={this.state.outsourceName}
  1358. onChange={e => {
  1359. this.setState({
  1360. outsourceName: e.target.value
  1361. });
  1362. }}
  1363. placeholder="请输入外包公司"
  1364. style={{ width: "200px" }}
  1365. />
  1366. </FormItem>
  1367. <FormItem
  1368. className="half-item"
  1369. {...formItemLayout}
  1370. label="外包成本(万元)"
  1371. >
  1372. <Input
  1373. value={this.state.outsourcePrice}
  1374. onChange={e => {
  1375. this.setState({
  1376. outsourcePrice: e.target.value
  1377. });
  1378. }}
  1379. placeholder="请输入外包成本"
  1380. style={{ width: "200px" }}
  1381. />
  1382. </FormItem>
  1383. </div>
  1384. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1385. <div className="clearfix">
  1386. <h3 className="sub-title">联系信息</h3>
  1387. <FormItem
  1388. className="half-item"
  1389. {...formItemLayout}
  1390. label="客户名称"
  1391. >
  1392. <span>{this.state.userName}</span>
  1393. </FormItem>
  1394. <FormItem
  1395. className="half-item"
  1396. {...formItemLayout}
  1397. label="企业法人"
  1398. >
  1399. <Input
  1400. placeholder="请输入法人名称"
  1401. value={this.state.legalPerson}
  1402. style={{ width: "200px" }}
  1403. onChange={e => {
  1404. this.setState({ legalPerson: e.target.value });
  1405. }}
  1406. ref="commodityQuantity"
  1407. />
  1408. </FormItem>
  1409. <FormItem
  1410. className="half-item"
  1411. {...formItemLayout}
  1412. label="法人电话"
  1413. >
  1414. <Input
  1415. placeholder="请输入法人电话"
  1416. value={this.state.legalPersonTel}
  1417. style={{ width: "200px" }}
  1418. onChange={e => {
  1419. this.setState({ legalPersonTel: e.target.value });
  1420. }}
  1421. ref="commodityQuantity"
  1422. />
  1423. </FormItem>
  1424. <FormItem
  1425. className="half-item"
  1426. {...formItemLayout}
  1427. label="客户联系人"
  1428. >
  1429. <Input
  1430. placeholder="请输入联系人名称"
  1431. value={this.state.contacts}
  1432. style={{ width: "200px" }}
  1433. onChange={e => {
  1434. this.setState({ contacts: e.target.value });
  1435. }}
  1436. ref="commodityQuantity"
  1437. />
  1438. </FormItem>
  1439. <FormItem
  1440. className="half-item"
  1441. {...formItemLayout}
  1442. label="联系人电话"
  1443. >
  1444. <Input
  1445. placeholder="请输入联系人电话"
  1446. value={this.state.contactMobile}
  1447. style={{ width: "200px" }}
  1448. onChange={e => {
  1449. this.setState({ contactMobile: e.target.value });
  1450. }}
  1451. ref="commodityQuantity"
  1452. />
  1453. </FormItem>
  1454. <FormItem
  1455. className="half-item"
  1456. {...formItemLayout}
  1457. label="企业地址"
  1458. >
  1459. <Cascader
  1460. options={areaSelect()}
  1461. value={this.state.ProvinceCity}
  1462. placeholder="选择城市"
  1463. style={{ width: "200px" }}
  1464. onChange={e => {
  1465. this.setState({ ProvinceCity: e });
  1466. }}
  1467. />
  1468. </FormItem>
  1469. <FormItem
  1470. className="half-item"
  1471. {...formItemLayout}
  1472. label=""
  1473. ></FormItem>
  1474. <FormItem className="half-item" {...formItemLayout} label="">
  1475. <Input
  1476. placeholder="请输入详细地址"
  1477. value={this.state.postalAddress}
  1478. style={{ width: "200px", marginLeft: "12em" }}
  1479. onChange={e => {
  1480. this.setState({ postalAddress: e.target.value });
  1481. }}
  1482. ref="commodityQuantity"
  1483. />
  1484. </FormItem>
  1485. </div>
  1486. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1487. <div className="clearfix">
  1488. <h3 className="sub-title">任务信息</h3>
  1489. <FormItem
  1490. className="half-item"
  1491. {...formItemLayout}
  1492. label="任务编号"
  1493. >
  1494. <span>{this.state.id}</span>
  1495. </FormItem>
  1496. <FormItem
  1497. className="half-item"
  1498. {...formItemLayout}
  1499. label="任务名称"
  1500. >
  1501. <span>{this.state.taskName}</span>
  1502. </FormItem>
  1503. <FormItem
  1504. className="half-item"
  1505. {...formItemLayout}
  1506. label="任务状态"
  1507. >
  1508. <Select
  1509. placeholder="选择任务状态"
  1510. style={{ width: "200px" }}
  1511. value={this.state.taskStatus}
  1512. onChange={e => {
  1513. this.setState({ taskStatus: e });
  1514. }}
  1515. >
  1516. {taskStatus.map(function(item) {
  1517. return (
  1518. <Select.Option key={item.value}>
  1519. {item.key}
  1520. </Select.Option>
  1521. );
  1522. })}
  1523. </Select>
  1524. </FormItem>
  1525. <FormItem
  1526. className="half-item"
  1527. {...formItemLayout}
  1528. label="任务类别"
  1529. >
  1530. <span>{this.state.cname}</span>
  1531. </FormItem>
  1532. <FormItem
  1533. className="half-item"
  1534. {...formItemLayout}
  1535. label="证书编号"
  1536. >
  1537. <Input
  1538. placeholder="请输入证书编号"
  1539. value={this.state.certificateNumber}
  1540. style={{ width: "200px" }}
  1541. onChange={e => {
  1542. this.setState({ certificateNumber: e.target.value });
  1543. }}
  1544. ref="commodityQuantity"
  1545. />
  1546. </FormItem>
  1547. </div>
  1548. <div className="clearfix">
  1549. <h3 className="sub-title">申报系统账户信息</h3>
  1550. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1551. <FormItem
  1552. className="half-item"
  1553. {...formItemLayout}
  1554. label="用户名"
  1555. >
  1556. <Input
  1557. placeholder="请输入用户名"
  1558. value={this.state.declareUser}
  1559. style={{ width: "200px" }}
  1560. onChange={e => {
  1561. this.setState({ declareUser: e.target.value });
  1562. }}
  1563. />
  1564. </FormItem>
  1565. <FormItem
  1566. className="half-item"
  1567. {...formItemLayout}
  1568. label="密码"
  1569. >
  1570. <Input
  1571. placeholder="请输入密码"
  1572. value={this.state.declarePwd}
  1573. style={{ width: "200px" }}
  1574. onChange={e => {
  1575. this.setState({ declarePwd: e.target.value });
  1576. }}
  1577. />
  1578. </FormItem>
  1579. </div>
  1580. <div className="clearfix">
  1581. <h3 className="sub-title">项目申报进度</h3>
  1582. <FormItem
  1583. className="half-item"
  1584. {...formItemLayout}
  1585. label="启动时间"
  1586. >
  1587. <DatePicker
  1588. style={{
  1589. marginTop: "2px",
  1590. width: "200px",
  1591. height: "32px"
  1592. }}
  1593. showTime
  1594. format="YYYY-MM-DD"
  1595. onOk={() => {}}
  1596. value={
  1597. this.state.startDate
  1598. ? moment(this.state.startDate)
  1599. : null
  1600. }
  1601. onChange={(data, dataString) => {
  1602. this.setState({ startDate: dataString });
  1603. }}
  1604. />
  1605. </FormItem>
  1606. <FormItem
  1607. className="half-item"
  1608. {...formItemLayout}
  1609. label="完成时间"
  1610. >
  1611. <DatePicker
  1612. style={{
  1613. marginTop: "2px",
  1614. width: "200px",
  1615. height: "32px"
  1616. }}
  1617. showTime
  1618. format="YYYY-MM-DD"
  1619. onOk={() => {}}
  1620. value={
  1621. this.state.endDate ? moment(this.state.endDate) : null
  1622. }
  1623. onChange={(data, dataString) => {
  1624. this.setState({ endDate: dataString });
  1625. }}
  1626. />
  1627. </FormItem>
  1628. <FormItem
  1629. className="half-item"
  1630. {...formItemLayout}
  1631. label="受理时间"
  1632. >
  1633. <DatePicker
  1634. style={{
  1635. marginTop: "2px",
  1636. width: "200px",
  1637. height: "32px"
  1638. }}
  1639. showTime
  1640. format="YYYY-MM-DD"
  1641. onOk={() => {}}
  1642. value={
  1643. this.state.acceptDate
  1644. ? moment(this.state.acceptDate)
  1645. : null
  1646. }
  1647. onChange={(data, dataString) => {
  1648. this.setState({ acceptDate: dataString });
  1649. }}
  1650. />
  1651. </FormItem>
  1652. <FormItem
  1653. className="half-item"
  1654. {...formItemLayout}
  1655. label="评审时间"
  1656. >
  1657. <DatePicker
  1658. style={{
  1659. marginTop: "2px",
  1660. width: "200px",
  1661. height: "32px"
  1662. }}
  1663. showTime
  1664. format="YYYY-MM-DD"
  1665. onOk={() => {}}
  1666. value={
  1667. this.state.reviewDate
  1668. ? moment(this.state.reviewDate)
  1669. : null
  1670. }
  1671. onChange={(data, dataString) => {
  1672. this.setState({ reviewDate: dataString });
  1673. }}
  1674. />
  1675. </FormItem>
  1676. <FormItem
  1677. className="half-item"
  1678. {...formItemLayout}
  1679. label="公示时间"
  1680. >
  1681. <DatePicker
  1682. style={{
  1683. marginTop: "2px",
  1684. width: "200px",
  1685. height: "32px"
  1686. }}
  1687. showTime
  1688. format="YYYY-MM-DD"
  1689. onOk={() => {}}
  1690. value={
  1691. this.state.publicityDate
  1692. ? moment(this.state.publicityDate)
  1693. : null
  1694. }
  1695. onChange={(data, dataString) => {
  1696. this.setState({ publicityDate: dataString });
  1697. }}
  1698. />
  1699. </FormItem>
  1700. <FormItem
  1701. className="half-item"
  1702. {...formItemLayout}
  1703. label="发证时间"
  1704. >
  1705. <DatePicker
  1706. style={{
  1707. marginTop: "2px",
  1708. width: "200px",
  1709. height: "32px"
  1710. }}
  1711. showTime
  1712. format="YYYY-MM-DD"
  1713. onOk={() => {}}
  1714. value={
  1715. this.state.licenceDate
  1716. ? moment(this.state.licenceDate)
  1717. : null
  1718. }
  1719. onChange={(data, dataString) => {
  1720. this.setState({ licenceDate: dataString });
  1721. }}
  1722. />
  1723. </FormItem>
  1724. <FormItem
  1725. className="half-item"
  1726. {...formItemLayout}
  1727. label="立项金额(万元)"
  1728. >
  1729. <Input
  1730. placeholder="请输入立项金额"
  1731. value={this.state.setUpAmount}
  1732. style={{ width: "200px" }}
  1733. onChange={e => {
  1734. this.setState({ setUpAmount: e.target.value });
  1735. }}
  1736. ref="commodityQuantity"
  1737. />
  1738. </FormItem>
  1739. <FormItem
  1740. className="half-item"
  1741. {...formItemLayout}
  1742. label="是否到款"
  1743. >
  1744. <Radio.Group
  1745. value={this.state.arrivalMoney}
  1746. onChange={e => {
  1747. this.setState({ arrivalMoney: e.target.value });
  1748. }}
  1749. >
  1750. <Radio value={0}>未到企业</Radio>
  1751. <Radio value={1}>已到企业</Radio>
  1752. </Radio.Group>
  1753. </FormItem>
  1754. </div>
  1755. <div className="clearfix">
  1756. <FormItem
  1757. labelCol={{ span: 3 }}
  1758. wrapperCol={{ span: 16 }}
  1759. label="附件"
  1760. >
  1761. <Picture
  1762. fileList={e => {
  1763. this.setState({ attachmentUrl: e });
  1764. }}
  1765. pictureUrl={this.state.attachmentUrl}
  1766. visible={this.props.visible}
  1767. data={{
  1768. sign: "order_task_file",
  1769. url: "/api/admin/orderProject/uploadOrderTaskFile",
  1770. number: 8
  1771. }}
  1772. />
  1773. </FormItem>
  1774. </div>
  1775. <div className="clearfix">
  1776. <FormItem
  1777. labelCol={{ span: 3 }}
  1778. wrapperCol={{ span: 16 }}
  1779. label="备注"
  1780. >
  1781. <Input
  1782. type="textarea"
  1783. placeholder="请输入备注"
  1784. rows={4}
  1785. value={this.state.taskComment}
  1786. onChange={e => {
  1787. this.setState({ taskComment: e.target.value });
  1788. }}
  1789. />
  1790. </FormItem>
  1791. </div>
  1792. <div>
  1793. <h3 className="sub-title">项目业务</h3>
  1794. {this.state.processStatus == 0 ? (
  1795. <Button
  1796. type="primary"
  1797. onClick={this.addDetailed}
  1798. style={{
  1799. float: "right",
  1800. marginRight: "50px",
  1801. marginBottom: "15px"
  1802. }}
  1803. >
  1804. 添加项目明细
  1805. </Button>
  1806. ) : (
  1807. ""
  1808. )}
  1809. </div>
  1810. <div className="patent-table">
  1811. <Spin spinning={this.state.loading}>
  1812. <Table
  1813. columns={this.state.columnsX}
  1814. dataSource={this.state.dataSourceX}
  1815. pagination={this.state.paginations}
  1816. onRowClick={this.tableRowClickX}
  1817. />
  1818. </Spin>
  1819. </div>
  1820. <div className="clearfix">
  1821. <Button
  1822. className="cancel"
  1823. type="primary"
  1824. onClick={this.tijiaoOk}
  1825. style={{ marginLeft: "200px", marginTop: "10px" }}
  1826. htmlType="submit"
  1827. >
  1828. 保存
  1829. </Button>
  1830. <Button
  1831. className="cancel"
  1832. type="ghost"
  1833. onClick={this.visitCancel}
  1834. style={{ marginLeft: "50px", marginTop: "10px" }}
  1835. >
  1836. 取消
  1837. </Button>
  1838. </div>
  1839. </div>
  1840. </Spin>
  1841. </Form>
  1842. </Modal>
  1843. <Modal
  1844. maskClosable={false}
  1845. visible={this.state.lookVisible}
  1846. onOk={this.noCancel}
  1847. onCancel={this.noCancel}
  1848. width="500px"
  1849. title={"添加工时"}
  1850. footer=""
  1851. className="admin-desc-content"
  1852. >
  1853. <Form layout="horizontal" id="demand-form">
  1854. <Spin spinning={this.state.loading}>
  1855. <div className="clearfix">
  1856. <FormItem {...formItemLayout} label="工作日期">
  1857. <DatePicker
  1858. style={{ marginTop: "2px", width: "200px", height: "32px" }}
  1859. showTime
  1860. format="YYYY-MM-DD"
  1861. onOk={() => {}}
  1862. value={
  1863. this.state.taskDate ? moment(this.state.taskDate) : null
  1864. }
  1865. onChange={(data, dataString) => {
  1866. this.setState({ taskDate: dataString });
  1867. }}
  1868. />
  1869. </FormItem>
  1870. </div>
  1871. <div className="clearfix">
  1872. <FormItem {...formItemLayout} label="工作时长">
  1873. <Input
  1874. placeholder="请输入工作时长"
  1875. value={this.state.hours}
  1876. style={{ width: "200px" }}
  1877. onChange={e => {
  1878. this.setState({ hours: e.target.value });
  1879. }}
  1880. ref="commodityQuantity"
  1881. />
  1882. </FormItem>
  1883. </div>
  1884. <div className="clearfix">
  1885. <FormItem {...formItemLayout} label="工作内容">
  1886. <Input
  1887. type="textarea"
  1888. placeholder="请输入备注"
  1889. rows={4}
  1890. value={this.state.remarks}
  1891. onChange={e => {
  1892. this.setState({ remarks: e.target.value });
  1893. }}
  1894. />
  1895. </FormItem>
  1896. </div>
  1897. <div className="clearfix">
  1898. <Button
  1899. className="cancel"
  1900. type="primary"
  1901. onClick={this.tianjiaOk}
  1902. style={{ marginLeft: "100px", marginTop: "10px" }}
  1903. htmlType="submit"
  1904. >
  1905. 确定
  1906. </Button>
  1907. <Button
  1908. className="cancel"
  1909. type="ghost"
  1910. onClick={this.noCancel}
  1911. style={{ marginLeft: "50px" }}
  1912. >
  1913. 取消
  1914. </Button>
  1915. </div>
  1916. </Spin>
  1917. </Form>
  1918. </Modal>
  1919. <Modal
  1920. maskClosable={false}
  1921. visible={this.state.addnextVisible}
  1922. onOk={this.nextCancel}
  1923. onCancel={this.nextCancel}
  1924. width="800px"
  1925. title="项目任务详情"
  1926. footer=""
  1927. className="admin-desc-content"
  1928. >
  1929. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  1930. <Spin spinning={this.state.loading}>
  1931. <div className="clearfix">
  1932. <FormItem
  1933. className="half-item"
  1934. {...formItemLayout}
  1935. label="项目名称"
  1936. >
  1937. <span>{this.state.commodityName}</span>
  1938. </FormItem>
  1939. <FormItem
  1940. className="half-item"
  1941. {...formItemLayout}
  1942. label="项目数量"
  1943. >
  1944. <span>{this.state.commodityQuantity}</span>
  1945. </FormItem>
  1946. <FormItem
  1947. className="half-item"
  1948. {...formItemLayout}
  1949. label="金额(万元)"
  1950. >
  1951. <span>{this.state.commodityPrice}</span>
  1952. </FormItem>
  1953. <FormItem
  1954. className="half-item"
  1955. {...formItemLayout}
  1956. label="主要项目"
  1957. >
  1958. <span>{getboutique(this.state.main)}</span>
  1959. </FormItem>
  1960. <div className="clearfix">
  1961. <FormItem
  1962. labelCol={{ span: 3 }}
  1963. wrapperCol={{ span: 18 }}
  1964. label="服务说明"
  1965. >
  1966. <span>{this.state.taskComment}</span>
  1967. </FormItem>
  1968. </div>
  1969. </div>
  1970. </Spin>
  1971. </Form>
  1972. </Modal>
  1973. <Modal
  1974. maskClosable={false}
  1975. visible={this.state.speVisible}
  1976. onOk={this.visitOk}
  1977. onCancel={this.visitCancel}
  1978. width="900px"
  1979. title="项目概况"
  1980. footer=""
  1981. className="admin-desc-content"
  1982. >
  1983. <div className="clearfix">
  1984. <FormItem
  1985. className="half-item"
  1986. {...formItemLayout}
  1987. label="当前项目情况"
  1988. >
  1989. <Radio.Group
  1990. value={this.state.status}
  1991. onChange={e => {
  1992. this.setState({ status: e.target.value });
  1993. }}
  1994. >
  1995. <Radio value={0}>开启</Radio>
  1996. <Radio value={1}>暂停</Radio>
  1997. </Radio.Group>
  1998. <Button
  1999. type="primary"
  2000. size="small"
  2001. style={{ marginTop: "5px", position: "absolute" }}
  2002. onClick={this.caozuorizhi}
  2003. >
  2004. 操作日志
  2005. </Button>
  2006. </FormItem>
  2007. <FormItem
  2008. className="half-item"
  2009. {...formItemLayout}
  2010. label="合同编号"
  2011. >
  2012. <span>{this.state.contractNo}</span>
  2013. </FormItem>
  2014. </div>
  2015. <div className="clearfix">
  2016. <FormItem
  2017. className="half-item"
  2018. {...formItemLayout}
  2019. label="项目状态"
  2020. >
  2021. <Select
  2022. placeholder="选择项目状态"
  2023. style={{ width: "200px" }}
  2024. value={this.state.projectStatus}
  2025. onChange={e => {
  2026. this.setState({ projectStatus: e });
  2027. }}
  2028. >
  2029. {projectStatus.map(function(item) {
  2030. return (
  2031. <Select.Option key={item.value}>{item.key}</Select.Option>
  2032. );
  2033. })}
  2034. </Select>
  2035. </FormItem>
  2036. <FormItem
  2037. className="half-item"
  2038. {...formItemLayout}
  2039. label="是否特批"
  2040. >
  2041. <span>{getApproval(this.state.approval)}</span>
  2042. </FormItem>
  2043. <FormItem
  2044. className="half-item"
  2045. {...formItemLayout}
  2046. label="结算状态"
  2047. >
  2048. <span>{getLiquidationStatus(this.state.liquidationStatus)}</span>
  2049. </FormItem>
  2050. <FormItem
  2051. className="half-item"
  2052. {...formItemLayout}
  2053. label="流程状态"
  2054. >
  2055. <span>{getProcessStatus(this.state.processStatus)}</span>
  2056. </FormItem>
  2057. <FormItem
  2058. className="half-item"
  2059. {...formItemLayout}
  2060. label="订单编号"
  2061. >
  2062. <span>{this.state.orderNo}</span>
  2063. </FormItem>
  2064. </div>
  2065. <div className="clearfix">
  2066. <FormItem
  2067. className="half-item"
  2068. {...formItemLayout}
  2069. label="满意度表格"
  2070. >
  2071. <Radio.Group
  2072. value={this.state.formRetrieve}
  2073. onChange={e => {
  2074. this.setState({ formRetrieve: e.target.value });
  2075. }}
  2076. >
  2077. <Radio value={0}>未收回</Radio>
  2078. <Radio value={1}>已收回</Radio>
  2079. <Radio value={2}>其他</Radio>
  2080. </Radio.Group>
  2081. </FormItem>
  2082. <FormItem className="half-item" {...formItemLayout} label="退单">
  2083. <Radio.Group
  2084. value={this.state.taskRefund}
  2085. onChange={e => {
  2086. this.setState({ taskRefund: e.target.value });
  2087. }}
  2088. >
  2089. <Radio value={0}>已完成</Radio>
  2090. <Radio value={1}>未完成</Radio>
  2091. <Radio value={2}>其他</Radio>
  2092. </Radio.Group>
  2093. </FormItem>
  2094. </div>
  2095. <div className="clearfix">
  2096. {
  2097. <FormItem
  2098. className="half-item"
  2099. {...formItemLayout}
  2100. label="(满意度)备注"
  2101. >
  2102. <Input
  2103. type="textarea"
  2104. placeholder="请输入备注"
  2105. rows={2}
  2106. value={this.state.retrieveContent}
  2107. onChange={e => {
  2108. this.setState({ retrieveContent: e.target.value });
  2109. }}
  2110. />
  2111. </FormItem>
  2112. }
  2113. {
  2114. <FormItem
  2115. className="half-item"
  2116. {...formItemLayout}
  2117. label="(退单)备注"
  2118. >
  2119. <Input
  2120. type="textarea"
  2121. placeholder="请输入备注"
  2122. rows={2}
  2123. value={this.state.refundContent}
  2124. onChange={e => {
  2125. this.setState({ refundContent: e.target.value });
  2126. }}
  2127. />
  2128. </FormItem>
  2129. }
  2130. </div>
  2131. <div className="clearfix">
  2132. <h3 className="sub-title">订单负责人信息</h3>
  2133. <FormItem className="half-item" {...formItemLayout} label="负责人">
  2134. <span>
  2135. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2136. </span>
  2137. </FormItem>
  2138. <FormItem
  2139. className="half-item"
  2140. {...formItemLayout}
  2141. label="负责人电话"
  2142. >
  2143. <span>{this.state.salesmanMobile}</span>
  2144. </FormItem>
  2145. <FormItem
  2146. className="half-item"
  2147. {...formItemLayout}
  2148. label="财务负责人"
  2149. >
  2150. <span>{this.state.financeName}</span>
  2151. </FormItem>
  2152. <FormItem
  2153. className="half-item"
  2154. {...formItemLayout}
  2155. label="财务负责人电话"
  2156. >
  2157. <span>{this.state.financeMobile}</span>
  2158. </FormItem>
  2159. </div>
  2160. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2161. <div className="clearfix">
  2162. <h3 className="sub-title">联系信息</h3>
  2163. <FormItem
  2164. className="half-item"
  2165. {...formItemLayout}
  2166. label="客户名称"
  2167. >
  2168. <span>{this.state.userName}</span>
  2169. </FormItem>
  2170. <FormItem
  2171. className="half-item"
  2172. {...formItemLayout}
  2173. label="企业法人"
  2174. >
  2175. <Input
  2176. placeholder="请输入法人名称"
  2177. value={this.state.legalPerson}
  2178. style={{ width: "200px" }}
  2179. onChange={e => {
  2180. this.setState({ legalPerson: e.target.value });
  2181. }}
  2182. ref="commodityQuantity"
  2183. />
  2184. </FormItem>
  2185. <FormItem
  2186. className="half-item"
  2187. {...formItemLayout}
  2188. label="法人电话"
  2189. >
  2190. <Input
  2191. placeholder="请输入法人电话"
  2192. value={this.state.legalPersonTel}
  2193. style={{ width: "200px" }}
  2194. onChange={e => {
  2195. this.setState({ legalPersonTel: e.target.value });
  2196. }}
  2197. ref="commodityQuantity"
  2198. />
  2199. </FormItem>
  2200. <FormItem
  2201. className="half-item"
  2202. {...formItemLayout}
  2203. label="客户联系人"
  2204. >
  2205. <Input
  2206. placeholder="请输入联系人名称"
  2207. value={this.state.contacts}
  2208. style={{ width: "200px" }}
  2209. onChange={e => {
  2210. this.setState({ contacts: e.target.value });
  2211. }}
  2212. ref="commodityQuantity"
  2213. />
  2214. </FormItem>
  2215. <FormItem
  2216. className="half-item"
  2217. {...formItemLayout}
  2218. label="联系人电话"
  2219. >
  2220. <Input
  2221. placeholder="请输入联系人电话"
  2222. value={this.state.contactMobile}
  2223. style={{ width: "200px" }}
  2224. onChange={e => {
  2225. this.setState({ contactMobile: e.target.value });
  2226. }}
  2227. ref="commodityQuantity"
  2228. />
  2229. </FormItem>
  2230. <FormItem
  2231. className="half-item"
  2232. {...formItemLayout}
  2233. label="企业地址"
  2234. >
  2235. <Cascader
  2236. options={areaSelect()}
  2237. value={this.state.ProvinceCity}
  2238. placeholder="选择城市"
  2239. style={{ width: "200px" }}
  2240. onChange={e => {
  2241. this.setState({ ProvinceCity: e });
  2242. }}
  2243. />
  2244. </FormItem>
  2245. <FormItem
  2246. className="half-item"
  2247. {...formItemLayout}
  2248. label=""
  2249. ></FormItem>
  2250. <FormItem className="half-item" {...formItemLayout} label="">
  2251. <Input
  2252. placeholder="请输入详细地址"
  2253. value={this.state.postalAddress}
  2254. style={{ width: "200px", marginLeft: "12em" }}
  2255. onChange={e => {
  2256. this.setState({ postalAddress: e.target.value });
  2257. }}
  2258. ref="commodityQuantity"
  2259. />
  2260. </FormItem>
  2261. </div>
  2262. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2263. <div className="clearfix">
  2264. <h3 className="sub-title">任务信息</h3>
  2265. <FormItem
  2266. className="half-item"
  2267. {...formItemLayout}
  2268. label="任务编号"
  2269. >
  2270. <span>{this.state.id}</span>
  2271. </FormItem>
  2272. <FormItem
  2273. className="half-item"
  2274. {...formItemLayout}
  2275. label="任务名称"
  2276. >
  2277. <span>{this.state.taskName}</span>
  2278. </FormItem>
  2279. <FormItem
  2280. className="half-item"
  2281. {...formItemLayout}
  2282. label="任务状态"
  2283. >
  2284. <Select
  2285. placeholder="选择任务状态"
  2286. style={{ width: "200px" }}
  2287. value={this.state.taskStatus}
  2288. onChange={e => {
  2289. this.setState({ taskStatus: e });
  2290. }}
  2291. >
  2292. {taskStatus.map(function(item) {
  2293. return (
  2294. <Select.Option key={item.value}>{item.key}</Select.Option>
  2295. );
  2296. })}
  2297. </Select>
  2298. </FormItem>
  2299. <FormItem
  2300. className="half-item"
  2301. {...formItemLayout}
  2302. label="任务类别"
  2303. >
  2304. <span>{this.state.cname}</span>
  2305. </FormItem>
  2306. <FormItem
  2307. className="half-item"
  2308. {...formItemLayout}
  2309. label="证书编号"
  2310. >
  2311. <Input
  2312. placeholder="请输入证书编号"
  2313. value={this.state.certificateNumber}
  2314. style={{ width: "200px" }}
  2315. onChange={e => {
  2316. this.setState({ certificateNumber: e.target.value });
  2317. }}
  2318. ref="commodityQuantity"
  2319. />
  2320. </FormItem>
  2321. </div>
  2322. <div className="clearfix" style={{ marginTop: "10px" }}>
  2323. <FormItem
  2324. labelCol={{ span: 3 }}
  2325. wrapperCol={{ span: 14 }}
  2326. label="附件"
  2327. >
  2328. <Picture
  2329. fileList={e => {
  2330. this.setState({ attachmentUrl: e });
  2331. }}
  2332. pictureUrl={this.state.attachmentUrl}
  2333. visible={this.props.visible}
  2334. data={{
  2335. sign: "order_task_file",
  2336. url: "/api/admin/orderProject/uploadOrderTaskFile",
  2337. number: 8
  2338. }}
  2339. />
  2340. </FormItem>
  2341. </div>
  2342. <div className="clearfix">
  2343. <FormItem
  2344. labelCol={{ span: 3 }}
  2345. wrapperCol={{ span: 16 }}
  2346. label="备注"
  2347. >
  2348. <Input
  2349. type="textarea"
  2350. placeholder="请输入备注"
  2351. rows={4}
  2352. value={this.state.taskComment}
  2353. onChange={e => {
  2354. this.setState({ taskComment: e.target.value });
  2355. }}
  2356. />
  2357. </FormItem>
  2358. </div>
  2359. <div className="clearfix">
  2360. <h3 className="sub-title">项目申报进度</h3>
  2361. <FormItem
  2362. className="half-item"
  2363. {...formItemLayout}
  2364. label="启动时间"
  2365. >
  2366. <DatePicker
  2367. style={{ marginTop: "5px" }}
  2368. showTime
  2369. format="YYYY-MM-DD"
  2370. onOk={() => {}}
  2371. value={
  2372. this.state.startDate ? moment(this.state.startDate) : null
  2373. }
  2374. onChange={(data, dataString) => {
  2375. this.setState({ startDate: dataString });
  2376. }}
  2377. />
  2378. </FormItem>
  2379. <FormItem
  2380. className="half-item"
  2381. {...formItemLayout}
  2382. label="软著派单数量"
  2383. >
  2384. <span>{this.state.commodityQuantity}</span>
  2385. <Button
  2386. type="primary"
  2387. size="small"
  2388. style={{ marginLeft: "45px" }}
  2389. onClick={this.addcontact}
  2390. >
  2391. +增加下证信息
  2392. </Button>
  2393. </FormItem>
  2394. <div className="patent-table">
  2395. <Spin spinning={this.state.loading}>
  2396. <Table
  2397. columns={this.state.ContactsLists}
  2398. dataSource={this.state.contactList}
  2399. pagination={false}
  2400. />
  2401. </Spin>
  2402. </div>
  2403. </div>
  2404. <div className="clearfix">
  2405. <h3 className="sub-title">项目业务</h3>
  2406. <div className="patent-table">
  2407. <Spin spinning={this.state.loading}>
  2408. <Table
  2409. columns={this.state.columnsX}
  2410. dataSource={this.state.dataSourceX}
  2411. pagination={this.state.paginations}
  2412. onRowClick={this.tableRowClickX}
  2413. />
  2414. </Spin>
  2415. </div>
  2416. </div>
  2417. <div className="clearfix">
  2418. <Button
  2419. className="cancel"
  2420. type="primary"
  2421. onClick={this.tijiaoOk}
  2422. style={{ marginLeft: "200px", marginTop: "10px" }}
  2423. htmlType="submit"
  2424. >
  2425. 保存
  2426. </Button>
  2427. <Button
  2428. className="cancel"
  2429. type="ghost"
  2430. onClick={this.visitCancel}
  2431. style={{ marginLeft: "50px", marginTop: "10px" }}
  2432. >
  2433. 取消
  2434. </Button>
  2435. </div>
  2436. </Modal>
  2437. <Modal
  2438. width="800px"
  2439. visible={this.state.visibleA}
  2440. onCancel={this.visitCancelA}
  2441. title="操作日志"
  2442. footer=""
  2443. className="admin-desc-content"
  2444. >
  2445. <div className="patent-table patent-table-center">
  2446. <Spin spinning={this.state.loading}>
  2447. <Table
  2448. columns={this.state.columnsA}
  2449. dataSource={this.state.dataSourceA}
  2450. pagination={false}
  2451. />
  2452. </Spin>
  2453. </div>
  2454. </Modal>
  2455. </div>
  2456. );
  2457. }
  2458. });
  2459. export default Task;