taskQuery.jsx 69 KB

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