myTask.jsx 83 KB

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