myTask.jsx 91 KB

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